Skip to content

check_task.py: warn when an offline task's verifier fetches data (F11-03) - #57

Merged
xdotli merged 3 commits into
mainfrom
starter/r11-verifier-data-fetch
Sep 29, 2026
Merged

xdotli merged 3 commits into
mainfrom
starter/r11-verifier-data-fetch

Conversation

@xdotli

@xdotli xdotli commented Sep 29, 2026

Copy link
Copy Markdown
Member

Summary

  • What changed: scripts/check_task.py warned only about tool downloads in verifier/test.sh, and it let all of them through once test.sh had the template's command -v pytest fallback 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.
  • What it warns about now: a verifier that fetches files from a remote address when it runs, whatever the pytest fallback:
    • 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 / huggingface-cli download, and Python run inline;
    • in verifier/*.py: urllib, requests, httpx, urllib3, aiohttp, http.client, huggingface_hub downloads, and pandas readers given a remote address. Python is parsed with ast, never imported.
  • What doesn't count as data: the sandbox's own services (localhost, a bare service name, ${X:-http://localhost:9003}), local git clone, installers and package indexes, and release binaries.
  • The fix it suggests: keep the data under verifier/, which reaches the sandbox with the verifier after the agent finishes, as examples/seclog-bruteforce-triage does.
  • Docs: the kit README says what the check warns about.
  • The Arena's side: the Space's static gate S-VERIFIER-NETWORK gets the same rules on its own branch (the lead ships it).
  • Why this is the smallest change: it stays one warning in the same script, with no new dependency (standard library, Python 3.9+).

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.urlopen in test_outputs.py), other fetch forms ($(curl …), curl | tar, >, -O, huggingface-cli, python3 -c) and the non-cases above.
  • python3 scripts/check_task.py and scripts/check_submission.py pass; the template and every example give no warning.
  • The funnel's 11 probes: p4 and p7–p11 now warn; p1–p3 and p5 keep their tool warning; p6 (network on) stays quiet.
  • False positives: on 1,879 real verifiers on this machine (SkillsBench, TMax, env0, curation runs and Harbor-style corpora), it flags 5, ignoring their network setting. Each is a real run-time download: Wikimedia and Gutenberg data, a $DATA_URL, and a fastText clone.
  • No credentials, private eval content or checkpoints.

Spend and external systems

No spendful validation. Nothing ran in a sandbox: the check reads files only.

…-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.
@xdotli
xdotli merged commit 14879a6 into main Sep 29, 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