Skip to content

feat(eval): workspace-root seam (#49) — deterministically root a persona's hands at a target repo before her cycle - #1947

Merged
joelteply merged 1 commit into
canaryfrom
feat/eval-workspace-root-seam
Jul 8, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/eval-workspace-root-seam

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The last gate on the Hermes-beating SWE-bench matrix. --solver ours produced a 0-byte diff because the
eval-fork persona's file engine defaulted to the core cwd (std::env::current_dir()), and the "she calls
create-workspace herself" prompt didn't reliably reroot it — a false ZERO that lied about the solver.

Fix (opt-in, regression-safe): CognitionEvalParams.workspace_root: Option<String> (None → unchanged for every
existing path). When set, cognition/eval runs code/create-workspace through the persona's OWN identity-bearing
executor (cycle.acting().executor) BEFORE her cycle. create-workspace keys on caller identity, so this reroots
the fork's hands at the repo — her edits land in the clone, deterministically, with NO reliance on the model
choosing to call create-workspace itself. Fails LOUD if requested-but-unroutable (a silent no-root would score a
false zero). Mirrors load_harness's exact tool/ctx/execute_native_batch pattern.

VALIDATED live: eval with --workspace_root + a "write SEAM_PROOF.txt" task → the file landed IN THE CLONE
(content "ROOTED"), NOT the core cwd. Her hands now sit exactly where Claude-as-agent sat when solving flask-4045
by hand → RESOLVED. run_ours.py updated to pass --workspace_root (drops the model-self-call directive).

This unblocks the local-model × {ours,opencode,raw} × SWE-bench matrix — the actual "can we beat Hermes" number.
[[fallbacks-are-illegal-fail-loud]] [[eval-mutates-persona-lift-needs-isolation]]

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…ona's hands at a target repo before her cycle

The last gate on the Hermes-beating SWE-bench matrix. `--solver ours` produced a 0-byte diff because the
eval-fork persona's file engine defaulted to the core cwd (std::env::current_dir()), and the "she calls
create-workspace herself" prompt didn't reliably reroot it — a false ZERO that lied about the solver.

Fix (opt-in, regression-safe): `CognitionEvalParams.workspace_root: Option<String>` (None → unchanged for every
existing path). When set, cognition/eval runs `code/create-workspace` through the persona's OWN identity-bearing
executor (cycle.acting().executor) BEFORE her cycle. create-workspace keys on caller identity, so this reroots
the fork's hands at the repo — her edits land in the clone, deterministically, with NO reliance on the model
choosing to call create-workspace itself. Fails LOUD if requested-but-unroutable (a silent no-root would score a
false zero). Mirrors load_harness's exact tool/ctx/execute_native_batch pattern.

VALIDATED live: eval with --workspace_root <clone> + a "write SEAM_PROOF.txt" task → the file landed IN THE CLONE
(content "ROOTED"), NOT the core cwd. Her hands now sit exactly where Claude-as-agent sat when solving flask-4045
by hand → RESOLVED. run_ours.py updated to pass --workspace_root (drops the model-self-call directive).

This unblocks the local-model × {ours,opencode,raw} × SWE-bench matrix — the actual "can we beat Hermes" number.
[[fallbacks-are-illegal-fail-loud]] [[eval-mutates-persona-lift-needs-isolation]]

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 0c84bd6 into canary Jul 8, 2026
@joelteply
joelteply deleted the feat/eval-workspace-root-seam branch July 8, 2026 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant