Skip to content

check_task.py: warn about verify-time installs, sourced helpers, Python shell-outs, datasets and cloud copies (F12-02) - #58

Merged
xdotli merged 1 commit into
mainfrom
starter/r12-offline-verifier-installs
Sep 30, 2026
Merged

xdotli merged 1 commit into
mainfrom
starter/r12-offline-verifier-installs

Conversation

@xdotli

@xdotli xdotli commented Sep 30, 2026

Copy link
Copy Markdown
Member

Round-12 funnel finding F12-02. For a task with allow_internet: false, check_task.py was silent on a verifier that:

  • installs a tool when it runs (pip3/apt-get/uvx/npx): the template's pytest fallback excused every download once the Dockerfile installed pytest;
  • sources a helper script that downloads;
  • runs curl or wget from its Python (subprocess, os.system);
  • uses datasets.load_dataset, aws s3 or gsutil.

Four of the funnel's probes scored 1.0 online and 0.0 with the network denied, and the check said "structure valid".

What changed

  • Tools: a download counts outside the template's fallback for an image without pytest. The fallback is the branch after a command -v pytest check; the if !, || and { } forms count too. An install still passes when environment/Dockerfile installs the same packages:
    • families: pip, apt, apk, npm, uv tool;
    • apt's python3-X counts as pip's X;
    • npm ci lets npx run a project's own tools.
  • Installs that still count: options that install anyway (--target, --upgrade, --isolated).
  • Not downloads: pip with --no-index; a local package with --no-deps and no build isolation; a tool that is only looked up (command -v npx).
  • Data:
    • aws s3, gsutil and gcloud storage copies;
    • datasets.load_dataset from the Hub;
    • numpy's loadtxt/genfromtxt, and pandas reading a remote address (object stores too);
    • a URL built from parts;
    • what the verifier's Python runs with subprocess or os.system.
  • Helpers: a script under verifier/ that test.sh sources or runs is followed one level.
  • Behavior change: an installer or release binary fetched outside the fallback is now a tool download (before, the fallback excused it along with everything else).
  • CONTRIBUTING.md: says what the warning covers.

Evidence

  • The funnel's 45 probes: 42 warn and the 3 that need no network don't. The Arena Space's S-VERIFIER-NETWORK (same rules, Space branch arena/r12-fixes) gives identical findings on all 45.
  • False-positive scan: the 1,879 real verifiers round 11 scanned. Both checkers give the same result on every verifier.
    • Data fetches in 34, each a real run-time download: round 11's 5, plus 27 whose install_judge_deps.py pip-installs through subprocess, plus 2 that call datasets.load_dataset on a Hub dataset.
    • Tool downloads in 106, all in tasks with the network on.
    • None of the 219 tasks that turn the network off gets a warning. Before two fixes in this branch, 19 did: npm ci projects running npx jest, and local pip install --no-deps --no-build-isolation.
  • Tests: scripts/test_check_task.py passes (24) on Python 3.12 and macOS's 3.9.6. check_task.py and check_submission.py pass on the kit and submissions/, with no new warning.

…on shell-outs, datasets and cloud copies (F12-02)

For a task with the network off, the round-12 funnel's probes found check_task.py silent on a verifier that installs a
tool when it runs (pip3/apt-get/uvx/npx: the template's pytest fallback excused every download once the Dockerfile
installed pytest), sources a helper that downloads, runs curl from its Python (subprocess, os.system), or uses
datasets.load_dataset, aws s3 or gsutil. Four of them scored 1.0 online and 0.0 with the network denied.

- A tool download counts outside the template's fallback for an image without pytest (the branch after a
  `command -v pytest` check, also `if !`, `||` and `{ }` forms), unless environment/Dockerfile installs what it names
  (pip, apt, apk, npm and uv tool families; apt's python3-X counts as pip's X; npm ci lets npx run a project's tools).
  An option that installs anyway (--target, --upgrade, --isolated) still counts; pip with --no-index, or a local package
  with --no-deps and no build isolation, needs nothing. A tool only looked up (command -v npx) isn't a download.
- Data: aws s3, gsutil and gcloud storage copies; datasets.load_dataset from the Hub; numpy's loadtxt/genfromtxt and
  pandas reading a remote address (object stores too); a URL built from parts; what the verifier's Python runs with
  subprocess or os.system.
- A script under verifier/ that test.sh sources or runs is followed one level.
- An installer or release binary fetched outside the fallback is now a tool download (it was excused with the rest).

The funnel's 45 probes: 42 warn, the 3 that need no network don't; the Arena Space's S-VERIFIER-NETWORK gives the same
findings. On 1,879 real verifiers: data fetches in 34 (the 5 round 11 found, 27 whose install_judge_deps.py
pip-installs through subprocess, 2 datasets.load_dataset from the Hub), each a real run-time download; tool downloads in
106, all in tasks with the network on; none of the 219 tasks that turn the network off gets a warning.
@xdotli
xdotli merged commit 4fffddf into main Sep 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant