Repository navigation
check_task.py: warn when an offline task's verifier fetches data (F11-03) - #57
Merged
Merged
Conversation
…-03) The network check only knew tool downloads, and it let them all through once test.sh had the template's `command -v pytest` fallback and the image installed pytest. A verifier that fetched the file it grades with (curl -o, wget, git clone, hf download, or urllib/requests/httpx in test_outputs.py) then passed with no warning, and offline its reference solution scored 0. It now also warns, whatever the pytest fallback, when the verifier fetches files from a remote address: in test.sh, curl or wget into a file, a variable or a pipe (not into a shell: that runs an installer), git clone of a remote repository, hf download; in verifier Python, urllib, requests, httpx, urllib3, aiohttp, http.client, huggingface_hub downloads and pandas readers given a remote address. Addresses inside the sandbox (localhost, a bare service name), installers, package indexes and release binaries don't count as data. The message says to ship the data under verifier/, which reaches the sandbox only after the agent finishes. Tests cover each of the round-11 funnel's probes (wget, curl -o, git clone, hf download, a Hub URL with curl, urllib in test_outputs.py) and what isn't a data fetch. On 1,879 real verifiers on disk (SkillsBench, TMax, env0 and Harbor-style corpora) it flags 5, each a real run-time download.
…d the tool hosts match the Arena's gate
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.
Summary
scripts/check_task.pywarned only about tool downloads inverifier/test.sh, and it let all of them through once test.sh had the template'scommand -v pytestfallback and the Dockerfile installed pytest. A verifier that fetched the file it grades with passed with no warning. In round 11's funnel test, two such probes scored 0 for their reference solution with the network off.test.sh: curl or wget into a file, a variable or a pipe (not into a shell: that runs an installer),git cloneof a remote repository,hf download/huggingface-cli download, and Python run inline;verifier/*.py:urllib,requests,httpx,urllib3,aiohttp,http.client,huggingface_hubdownloads, and pandas readers given a remote address. Python is parsed withast, never imported.${X:-http://localhost:9003}), localgit clone, installers and package indexes, and release binaries.verifier/, which reaches the sandbox with the verifier after the agent finishes, asexamples/seclog-bruteforce-triagedoes.S-VERIFIER-NETWORKgets the same rules on its own branch (the lead ships it).Validation
python3 scripts/test_check_task.py: 15 passed on Python 3.12 and on macOS's Python 3.9.6. The new tests cover each of the funnel's probe lines (wget -q -O,curl -fsSL -o,git clone -q,hf download, a Hub URL with curl,urllib.request.urlopenin test_outputs.py), other fetch forms ($(curl …),curl | tar,>,-O,huggingface-cli,python3 -c) and the non-cases above.python3 scripts/check_task.pyandscripts/check_submission.pypass; the template and every example give no warning.$DATA_URL, and a fastText clone.Spend and external systems
No spendful validation. Nothing ran in a sandbox: the check reads files only.