Repository navigation
Interface check: at every nominated commit, in the leg's own sandbox - #98
Merged
Merged
Conversation
The driver used to check a nomination once, when agent/CHAMPION first appeared, on the working tree, with the harness's Python. It now checks the commit CHAMPION names each time that commit changes, names it in BUDGET.md, and checks a failed commit again when the agent exits. The monte-carlo probe clones the workspace at that commit (only what its refs reach, as the verdict's bundle) and, when the leg is sandboxed and the workspace has a .venv, runs simulate() in the leg's image without network, with that venv mounted read-only and its interpreter. Without a sandbox or a .venv it runs on the host and says so. A kind's probe now receives the leg's LegSandbox (None on the host) in place of the interpreter path. The fake CLI commits its champion and nominates the real commit. The constitution tells agents the check reads the nominated commit with their .venv, and that the scoring rebuilds the environment from pyproject.toml and uv.lock. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016kmUsyYSEMPGiwbSuvR9hh
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
Thykof
added a commit
that referenced
this pull request
Nov 20, 2026
main's tree equals ce4aae2, this branch's base, so the branch's tree is kept unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016kmUsyYSEMPGiwbSuvR9hh
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.
What changed
The check follows the nomination. The driver used to check a champion once, the first time
agent/CHAMPIONappeared, and it checked the working tree. Now:agent/CHAMPIONnames (nominated_sha, which readsshaorcommitfor any kind) and runs the kind's probe whenever that commit changes.check interface at <sha>: ….The monte-carlo probe runs where the champion will run.
--no-local, so the clone holds only what the refs reach, the same objects the verdict'sworkspace.bundlecarries. A commit the agent amended away fails the check now instead of failing the verdict later..venv,simulate()runs in the leg's image with--network none. The tree is mounted as/workspace, the workspace's.venvread-only at/workspace/.venv, and the venv's interpreter runspython -m synth_lib.benchmark.nomination. The 120 s timeout stays, and a timed-out container is removed..venv: the check runs on the host interpreter, as before, and the message says so. A champion with no dependencies of its own still passes. One that has its own dependencies fails with the import error, the same as before this change.Interface for kinds.
CompetitionKind.probenow takes(agent_dir, snapshot, sandbox: LegSandbox | None)instead of(agent_dir, snapshot, python_exe).run_allbuilds oneLegSandbox(image and limits) that both the leg's container and the probe use.Constitution.
.venvand runs again each timeshachanges.pyproject.tomlanduv.locklist at that commit, because the scoring rebuilds the environment from those two files.Fake CLI. The fake CLI now commits its champion and nominates the real commit, so the fake-leg tests exercise the checkout.
Not in this PR
A
uv sync --frozen --offlinecheck that the venv matches the lockfile. A package installed withuv pipand not locked passes this check and is missing at the verdict. The constitution line above tells agents about this.Testing
pytest tests: 608 passed, 1 skipped. black 26.5.1 and flake8 7.1.2 are clean on the changed files.docker(tests/benchmark/conftest.py). It maps each mount to its host path and runs the command, covering four cases:ModuleNotFoundError;🤖 Generated with Claude Code
https://claude.ai/code/session_016kmUsyYSEMPGiwbSuvR9hh