Repository navigation
Conversation
Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
…sions Signed-off-by: yaoyu-33 <[email protected]>
Signed-off-by: yaoyu-33 <[email protected]>
…n runtime settings - Refuse relative or non-normalized mounted-installer paths at seed, and raise the seed-rejection error for every mounted-installer conflict. - Pass the primary executable digest in lowercase, since the installer compares sha256sum output. - Document the musl pin, the mounted installer and opencode_model_call_timeout, and update the DeepSWE migration table, which still said the session path ignored them. - Test the installer argument order (empty release-digest slot, musl pin, mounted installer), OpenCode 2 with a musl pin, and the OpenCode 2 timeout rejection. - Drop the per-config binding test; the recipe is checked with gym env validate and resolve instead. - Name the mode "mounted installer" instead of "cached" or "native". Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test b159155 |
svcnvidia-nemo-ci
left a comment
There was a problem hiding this comment.
SHIP
LGTM — no concerns found.
Reviewed all 10 changed files, trusted base conventions, seed/restore callers, runtime-cache behavior, benchmark overlay consumers and existing tests. There were no prior formal reviews or inline findings to reconcile.
CI on b1591558 passed lint, core tests, all server-suite shards, sandbox tests, component locks and OpenCode conformance. The final snapshot showed 55 successful checks, 14 skipped checks and only this review still running. I did not rerun CI suites locally.
Focused probes ran against the admitted source in 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:main-offline, using Python 3.13.14. They confirmed libc-specific pin selection, uppercase digest handling, overlay composition, restore argument forwarding, provider-timeout configuration and preservation of previously installed bytes after rejected replacements. Installer probes used stub executables; I did not independently repeat the author’s real-model rollouts or verify real OpenCode timeout classification.
Note: formal approval is not available for this request, so this review is posted as a comment only.
Review generated by codex. This was a full review. Request a full review with /review reset=true.
The mounted installer checked the installed binary by version only, and no opencode_agent config uses it. Keep the digest-verified pins, including the musl pin, as the only offline runtime source. opencode_sandboxed_agent keeps its own mounted installer. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: yaoyu-33 <[email protected]>
|
/ok to test 0199678 |
What changed
opencode_agentsessions can now install a verified OpenCode runtime on both glibc and musl task images. They also acceptopencode_sandboxed_agent'sopencode_model_call_timeout.sandbox_musl_executable_pathandsandbox_musl_executable_sha256add a second verified pin. The installer identifies the sandbox's libc. On a musl image it copies the musl pin to private staging, checks its SHA-256, runs--version, and publishes it atomically in place of the primary pin. A musl pin requires the primary pin. Restoring a session into a sandbox that lacks the runtime follows the same path.opencode_sandboxed_agent's mounted installer (remote_opencode_install_script_path,remote_opencode_binary_path,remote_opencode_musl_binary_path) is not supported onopencode_agent, and the agent ignores those keys. It checked the installed binary by version only, and noopencode_agentconfig uses it. The digest-verified pins are the only offline runtime source.opencode_sandboxed_agentkeeps its installer unchanged.opencode_model_call_timeout. OpenCode 1's per-request provider timeout, in milliseconds, as on the relay. It is unset by default, in which case only the run'stimeoutbounds a model call. It is refused for OpenCode 2 and not applied to local/run.benchmarks/swebench/pro/opencode.yamlreads both pins from an optionalswebench_pro_opencode_runtimeblock.benchmarks/nemotron_3.5_super/sandbox_utils.yamlsupplies that block with the official OpenCode 1.17.11 x64 glibc and musl release binaries. Without the overlay, the recipe still downloads OpenCode.sandbox_executable_sha256passed config validation but failed every setup.The session trajectory returned on close comes from main. This PR only adds assertions for it to the borrowed-sandbox flow test.
This follows #4747 and needs no separate issue.
Compatibility and benchmark impact
opencode_agentconfigs behave the same.Validation
Linux, Python 3.13.14, at 0199678 (the PR head merged with main d1f6955):
pytest responses_api_agents/opencode_agent/tests: 1,169 passed, 25 skipped, 1 failed. The failure,test_pinned.py::test_stage_executable_rejects_wrong_or_broken_bytes_without_installing[format], is in a file this PR does not touch and fails the same way without it: dash reports status 2 for the malformed executable, and the test expects 126.Revert checks. Each new test fails when its fix is reverted:
Installer with real binaries. The real installer ran in Docker with the official OpenCode 1.17.11 x64 glibc and musl release binaries. Their SHA-256s match the overlay's pins.
alpine:3.20with both pins installed the musl build (674a7e…), and--versionreported 1.17.11.debian:bookworm-slimwith both pins installed the glibc build (0254a4…).alpine:3.20with only the glibc pin failed with "OpenCode executable version mismatch".Configs.
gym env validatepassed for:benchmarks/swebench/pro/opencode.yaml, with and withoutbenchmarks/nemotron_3.5_super/sandbox_utils.yaml;benchmarks/deepswe/opencode.yamlplus the overlay;benchmarks/nemotron_3.5_super/eval_container_config.yaml, at the previous head b159155.gym env resolveof the Pro recipe, at b159155, gives both libc pins with the overlay and none without it. The mounted-installer removal does not touch either config.pre-commit runon the changed files passed. All commits are signed off.Rollouts
These rollouts ran at the earlier head 8725170. The later fixes change only seed validation, the digest case and docs. The happy path is unchanged, and the installer check above covers it with the real binaries.
Two real ProtonMail WebClients tasks ran on Alpine 3.18.3 in Enroot with Qwen3-VL-8B-Instruct. A test driver called the Gym Resources and OpenCode session APIs with the original prompts, and the official SWE-bench Pro verifier graded each run in a fresh sandbox.
4feccbc9(extended attributes)xattr.08bb0991(TOTP input)React is not defined.The first TOTP attempt reached 63 successful model requests. Its next request exceeded the 65,536-token model context by one token. The graded replay declared 49,152 tokens and allowed up to 20 steps. Both graded attempts had
evaluation_completed=trueand left zero owned task sandboxes.Not covered:
opencode_model_call_timeouthas unit tests but no real-model run. How a timed-out model call is classified has not been checked against a real OpenCode run.🤖 Generated with Claude Code