Repository navigation
Starter kit: a verifier that runs without network, and check_task.py warns about one that doesn't (F10-02) - #56
Merged
Merged
Conversation
…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.
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 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.pyand the Arena's static gates both called the unchanged template clean.What changes
environment/Dockerfileinstallspytest==8.4.1andpytest-json-ctrf==0.3.5, andverifier/test.shruns that pytest when the image has it (the patternsensor-calibration-fit,seclog-bruteforce-triage,shift-schedule-verifyandsubtitle-overlap-qcalready use). Only an image without pytest makes it download one.dogfood-hello-texthad the same verifier and gets the same fix.scripts/check_task.pywarns (without failing) whenverifier/test.shinstalls or fetches (apt-get, pip or uv installs, curl, wget, uvx …) whiletask.mdsetsallow_internet: false(or BenchFlow'snetwork_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 inscripts/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.pywarns about the rest.The Arena Space's static gates get the same check (
S-VERIFIER-NETWORK, review severity) on the Space brancharena/r10-fixes, and its AGENTS.md drops the "secondcp" workaround once this merges.Replay on Daytona (real, Sept 29, 2026)
BenchFlow
bench0.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:renamedsandbox:;allow_internet: falsekept). The no-op copy comes from the Space's ownvalidation_gates.py stage-noop./root/answer.jsonmissing)With
allow_internet: false, BenchFlow blocks the sandbox's network for the oracle agent, and the old verifier'sapt-get/curl/uvxhung 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 andscripts/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
All pass;
check_task.pyprints no warning on the repository's packages.