Repository navigation
check_task.py: warn about verify-time installs, sourced helpers, Python shell-outs, datasets and cloud copies (F12-02) - #58
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round-12 funnel finding F12-02. For a task with
allow_internet: false,check_task.pywas silent on a verifier that:pip3/apt-get/uvx/npx): the template's pytest fallback excused every download once the Dockerfile installed pytest;curlorwgetfrom its Python (subprocess,os.system);datasets.load_dataset,aws s3orgsutil.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
command -v pytestcheck; theif !,||and{ }forms count too. An install still passes whenenvironment/Dockerfileinstalls the same packages:python3-Xcounts as pip'sX;npm ciletsnpxrun a project's own tools.--target,--upgrade,--isolated).--no-index; a local package with--no-depsand no build isolation; a tool that is only looked up (command -v npx).aws s3,gsutilandgcloud storagecopies;datasets.load_datasetfrom the Hub;loadtxt/genfromtxt, and pandas reading a remote address (object stores too);subprocessoros.system.verifier/thattest.shsources or runs is followed one level.Evidence
S-VERIFIER-NETWORK(same rules, Space brancharena/r12-fixes) gives identical findings on all 45.install_judge_deps.pypip-installs throughsubprocess, plus 2 that calldatasets.load_dataseton a Hub dataset.npm ciprojects runningnpx jest, and localpip install --no-deps --no-build-isolation.scripts/test_check_task.pypasses (24) on Python 3.12 and macOS's 3.9.6.check_task.pyandcheck_submission.pypass on the kit andsubmissions/, with no new warning.