Repository navigation
fix(eval): exam world is a per-run CoW clone, never the shared checkout (#312) - #2134
Merged
Merged
Conversation
…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
enabled auto-merge (squash)
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]>
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.
Root cause of the resident-room degradation: tool-bearing evals with no pinned
workspace_rootrooted 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