Skip to content

fix(eval): exam world is a per-run CoW clone, never the shared checkout (#312) - #2134

Merged
joelteply merged 1 commit into
canaryfrom
fix/eval-ephemeral-workspace
Aug 3, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/eval-ephemeral-workspace

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

Root cause of the resident-room degradation: tool-bearing evals with no pinned workspace_root rooted the fork's hands at the CORE CWD — the real repo. Fixture writes + #209 wipes polluted the shared world, and the personas' workspace-map grounding faithfully described the pollution (conway/bakery debris narrated as their own projects). Mind-side isolation was already correct (fork_detached + NoopSink + volatile exclusion); the world side was the hole.

Fix: default workspace = per-run CoW clone of the checkout (clonefile/reflink, plain copy fallback) under temp, RAII-removed on every return path; provisioning failure refuses the run loudly. Explicit pins still win.

Validated: cargo check + cognition::eval tests green.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…kspace, never the shared checkout (#312)

Root cause of the exam↔live contamination that degraded the whole resident
room: with no pinned workspace_root, the eval fork's hands rooted at the CORE
CWD (the real repo). Fixture writes and #209 per-task wipes landed in the
shared world every persona perceives, and gym debris (conway_game_of_life,
work-*, bakery fixtures) accumulated as the personas' "own" projects — their
workspace-map grounding then faithfully described a polluted world, which read
as corrupted RAG. The MIND side was already isolated (fork_detached admission,
NoopSink persistence, volatile-tier exclusion); the WORLD side was the hole.

Fix: when a tool-bearing exam has no explicit workspace_root, provision a
per-run CoW clone of the shared checkout under the system temp dir (APFS
clonefile / reflink; plain copy where the FS lacks CoW — same platform split
as citizen-layer provisioning). Repo-nav exams still see the real tree;
writes and wipes land in the disposable copy; an RAII Drop removes it on
every return path. Provisioning failure fails LOUD and refuses to run —
no silent fallback to the shared checkout. Explicit workspace_root pins
(SWE-bench checkouts) still win unchanged.

Validated: cargo check + cognition::eval tests green (metal,accelerate).

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply enabled auto-merge (squash) August 3, 2026 16:09
@joelteply
joelteply merged commit 17278f5 into canary Aug 3, 2026
1 check passed
@joelteply
joelteply deleted the fix/eval-ephemeral-workspace branch August 3, 2026 16:09
joelteply added a commit that referenced this pull request Aug 3, 2026
…#312 tail) (#2135)

Pre-#2134 eval forks ran tool-bearing exams in the shared checkout (workspace_root
fell back to core cwd) and their artifacts got committed: conway_game_of_life/,
work-08ece9e8/, reverse_string.{rs,py}, add.swift, and an absolute-path Users/
mirror. The CoW-clone fix (17278f5) stops new debris; this removes what already
landed. Persona-owned work in their citizen workspaces is untouched.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Fable 5 <[email protected]>
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