Skip to content

Starter kit: a verifier that runs without network, and check_task.py warns about one that doesn't (F10-02) - #56

Merged
xdotli merged 2 commits into
mainfrom
starter/r10-offline-verifier
Sep 29, 2026
Merged

xdotli merged 2 commits into
mainfrom
starter/r10-offline-verifier

Conversation

@xdotli

@xdotli xdotli commented Sep 29, 2026

Copy link
Copy Markdown
Member

Round 10 funnel finding F10-02: the starter kit's template verifier downloaded pytest when it ran, inside a sandbox with no internet, so even a correct solution couldn't pass. check_task.py and the Arena's static gates both called the unchanged template clean.

What changes

  • The template runs its verifier without network. environment/Dockerfile installs pytest==8.4.1 and pytest-json-ctrf==0.3.5, and verifier/test.sh runs that pytest when the image has it (the pattern sensor-calibration-fit, seclog-bruteforce-triage, shift-schedule-verify and subtitle-overlap-qc already use). Only an image without pytest makes it download one. dogfood-hello-text had the same verifier and gets the same fix.
  • scripts/check_task.py warns (without failing) when verifier/test.sh installs or fetches (apt-get, pip or uv installs, curl, wget, uvx …) while task.md sets allow_internet: false (or BenchFlow's network_mode: no-network). A download that is only a fallback for an image without pytest, in an image whose Dockerfile installs pytest, is fine. New tests in scripts/test_check_task.py; no example or submission in the repository warns, and the old template does.
  • starting-kit/README.md: keep the Dockerfile's pytest line; check_task.py warns about the rest.

The Arena Space's static gates get the same check (S-VERIFIER-NETWORK, review severity) on the Space branch arena/r10-fixes, and its AGENTS.md drops the "second cp" workaround once this merges.

Replay on Daytona (real, Sept 29, 2026)

BenchFlow bench 0.7.6, --agent oracle --sandbox daytona --sandbox-user none (the Arena's oracle and no-op controls), on the packages copied the way PostTrain prepares them for bench 0.7 (environment: renamed sandbox:; allow_internet: false kept). The no-op copy comes from the Space's own validation_gates.py stage-noop.

Package Run Result
new template oracle reward 1.0 (verifier 7.5 s)
new template no-op reward 0.0 (/root/answer.json missing)
old template (main) oracle no reward: "verifier timed out after 180.0s" on all 3 attempts (BenchFlow retried twice)

With allow_internet: false, BenchFlow blocks the sandbox's network for the oracle agent, and the old verifier's apt-get/curl/uvx hung until the verifier's time limit. (For an LLM agent BenchFlow keeps the sandbox's network and enforces the no-web policy in the agent instead, so the old verifier may download there; the oracle and no-op controls and scripts/run_local.sh, which uses --network none, can't.)

Five sandboxes, labelled benchflow.owner=posttrain-r10-arena-replay, 721 sandbox-seconds at 1 vCPU / 2 GiB / 10 GiB: $0.017 at Daytona's list prices. Afterwards the label query returned {"items":[],"nextCursor":null} and each sandbox id (0d1ac466…, 6178bedd…, 4f827360…, 2ee312a9…, 7a357cff…) answered 404.

Checks

python3 scripts/check_task.py
python3 scripts/test_check_task.py
python3 scripts/test_check_submission.py

All pass; check_task.py prints no warning on the repository's packages.

…out network (F10-02)

The template's task.md sets allow_internet: false, but its verifier/test.sh
installed curl and uv and ran pytest through uvx every time it ran. In a
sandbox without network that download fails or hangs, so even the reference
solution can't pass: BenchFlow's oracle control on Daytona (bench 0.7.6,
--agent oracle) timed the unchanged template's verifier out at 180 s on all
three attempts, while the new template scored 1 and a no-op 0.

The template's Dockerfile now installs pytest==8.4.1 and pytest-json-ctrf==0.3.5,
and test.sh runs that pytest when the image has it (the pattern
sensor-calibration-fit and three other examples already use); only an image
without pytest makes it download one. dogfood-hello-text had the same
verifier and gets the same fix. The README's authoring steps say to keep the
Dockerfile's pytest line.
…rns the network off (F10-02)

The unchanged template passed check_task.py, so nothing short of a Docker
replay caught a verifier that needs the network the task turns off. The check
now prints a warning, without failing, when verifier/test.sh installs or
fetches (apt-get, pip or uv installs, curl, wget, uvx ...) and task.md sets
allow_internet: false (or BenchFlow's network_mode: no-network). A test.sh
that runs pytest from the image when it is there, in an image whose
Dockerfile installs pytest, is fine: the download is only a fallback.

No example or submission in the repository warns; the old template does.
scripts/test_check_task.py covers both, runs under pytest or on its own.
@xdotli
xdotli merged commit 127bb9d into main Sep 29, 2026
2 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