Skip to content

Present frozen sandboxed questions to real coding harnesses - #55

Merged
dylanuys merged 1 commit into
stagingfrom
feat/harness-solvers
Nov 13, 2026
Merged

dylanuys merged 1 commit into
stagingfrom
feat/harness-solvers

Conversation

@dylanuys

Copy link
Copy Markdown
Contributor

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 (from inspect-swe, pinned in a new harness extra)
  • 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.
  • Samples, setup, sandbox and scorer are unchanged.

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

  • Claude Code and Codex attach provider-private extra_body fields (session metadata, cache keys) that the router protocol refuses. portable_request drops extra_body and extra_headers and leaves everything else.
  • Only exact releases are accepted (latest, stable, sandbox, auto are rejected), both when recording and when restoring.
  • A question with no sandbox, or one already presented to a harness, is rejected.
  • The harness extra also installs openai and anthropic: 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 by ModelInput.
  • Full yugos-evals suite: 730 passed, 11 skipped, 3 failed. The 3 failures are in test_python_unittest.py (missing cryptography module locally) and fail the same way on main.
  • Manual end-to-end run, not part of the suite: a frozen HumanEval question restored through this builder and run with run_competition_eval against a scripted router, in Docker with network_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

  • No PI harness; inspect-swe does not provide one.
  • No catalog entries or pack changes. Tasks whose scorers depend on their own agent's tools need their own adjustment before they are presented to a harness.
  • Not exercised on the Modal sandbox provider or with a paid model.

🤖 Generated with Claude Code

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T01:55:07.342382Z f96feed PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@dylanuys
dylanuys changed the base branch from main to staging November 13, 2026 22:27
@dylanuys
dylanuys merged commit 064afd6 into staging Nov 13, 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