Repository navigation
fix: remove own scratch and dependency installs at every handoff (#267) - #268
Conversation
Only Delivery Finalization required cleanup, after a terminal outcome, so reviews, proof runs, experiments and abandoned attempts left their scratch and node_modules behind. The core Handoff section now requires every agent to remove what it created, use the harness session scratchpad, and name anything it keeps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
What: PASS: independent review found no actionable findings at exact head Reviewed the complete diff against base Acceptance and cleared concerns, all locations at the reviewed head:
Verification performed by this review:
Limits: this review ran the scoped operations contract suite, not the full repository suite or release-check. Behavioral Live Verification remains pending normal user work, per repository policy. A separately delegated read-only reviewer also returned PASS with no actionable findings after checking the same candidate and acceptance criteria. |
What changed: The core Handoff section now requires every agent, whatever the outcome, to remove the scratch files, snapshot copies and dependency installs it created before its final handoff, using the harness session scratchpad when one exists.
Why: Only Delivery Finalization required cleanup, after a terminal delivery outcome, so reviews, proof runs, repros and abandoned attempts left about 220 GB of scratch on bestia and idle
node_moduleson all three machines.So what: Independent review runs on the exact head; then the user decides the merge.
Closes #267
Change
global/AGENTS.mdHandoff: one paragraph. Covers every outcome (merged, review, research, proof run, experiment, failed or abandoned); keep evidence in the Issue, PR or durable record; disposable files go in the harness session scratchpad, otherwise one named task folder; anything kept is named in the handoff with reason and next owner; remove only what you created, and the finalization module's exceptions for dirty, shared, user-owned, active and ambiguous resources still apply.tests/test_operations_contract.py:test_every_handoff_removes_the_agents_own_scratchasserts each clause inside the Handoff section (red before the edit: 7 failures; green after).versionctl prepare patch; CHANGELOG entry.Placement: the core is the only always-loaded owner.
finalization.mdloads only at a terminal disposition andorchestration.mdonly when delegating, so a read-only reviewer or abandoned attempt never reached either. The new text points at finalization for safety exceptions instead of duplicating them.Elon record
idle-cleanupjob owns that).orchestration.md,finalization.mdandimplementation.mdin full; ran the new test red then green;versionctl release-checkon 24300c7:release candidate OK: v17.4.8.Proof
python3 -m unittest tests.test_operations_contract: 22 tests OK.🤖 Generated with Claude Code