Repository navigation
Present frozen sandboxed questions to real coding harnesses - #55
Merged
Merged
Conversation
Add yugos_evals.harnessed: a task builder that constructs a frozen question's native task and replaces its solver with Claude Code, Codex CLI or OpenCode (inspect-swe) at one exact release. The harness runs in the task's sandbox and its model requests return through Inspect, so they are routed and metered like any other turn. Provider-private headers and body fields the harnesses attach are dropped before the request reaches the router protocol.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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
Adds
yugos_evals.harnessed, a task builder that takes a frozen sandboxed question, constructs its native task with the builder it already names, and replaces only the solver with a real coding harness at one exact release:claude_code,codex_cli,opencode(frominspect-swe, pinned in a newharnessextra)harness_question(question, harness=..., version=...)re-records a frozen question without reloading its source. The copy is a separate source (<source>@<harness>) and carries no difficulty labels, since evidence measured with a task's own agent does not describe a harness.The harness runs inside the task's sandbox. Its model requests go to a proxy on localhost in the container and return to Inspect's model on the host, so every turn reaches the router protocol like any other turn and the sandbox needs no network.
Why
Requests from a real harness differ from requests produced by a task's built-in agent: different system messages, tool lists and turn structure. This lets the same frozen tasks be run with the request shape a harness really sends, without a second evaluation loop.
Details
extra_bodyfields (session metadata, cache keys) that the router protocol refuses.portable_requestdropsextra_bodyandextra_headersand leaves everything else.latest,stable,sandbox,autoare rejected), both when recording and when restoring.harnessextra also installsopenaiandanthropic: Inspect's agent bridge needs both SDKs to read the harnesses' requests.Validation
packages/yugos-evals/tests/test_harnessed.py: 8 tests covering re-recording and restore, pin and input rejections, and that a filtered harness request is accepted byModelInput.yugos-evalssuite: 730 passed, 11 skipped, 3 failed. The 3 failures are intest_python_unittest.py(missingcryptographymodule locally) and fail the same way onmain.run_competition_evalagainst a scripted router, in Docker withnetwork_mode: none, for all three harnesses (Claude Code 2.1.311, Codex CLI 0.167.2, OpenCode 1.19.5). Each made a tool call chosen by the router, returned the tool result on the next router call, and was graded correct by the native scorer. No provider calls were made.Not included
inspect-swedoes not provide one.🤖 Generated with Claude Code