fix(container): link /scratch to the read-only surface scratch root #1146
No reviewers
Labels
No labels
burndown-2026-06
pressure-test
sunday-sprint
coherence-core
consult
headless
interactive
P0
P1
P2
P3
P4
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
coilyco-flight-deck/ward!1146
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "issue-1142"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The composed container doctrine promises
/scratchas the writable escape hatch on read-only surface sessions, but those sessions keep their scratch root on the gitcache volume (<gitcache>/surface-scratch) for verification headroom, so/scratchnever existed. The read-only half of the contract held and the escape-hatch half did not, so every read-only agent paid an ENOENT tax rediscovering a writable path.Bootstrap now links the doctrine-promised
/scratchpath to the actual scratch root right afterprepareScratchSpace, taking the issue's preferred direction: the doctrine text stays the authoritative contract and the mount becomes true, while the storage stays where the disk headroom is. The alias step is idempotent, repoints a stale link, and leaves a pre-existing real directory alone. On writable engineer runs the scratch root already is/scratch, so the alias is a no-op.The branch also carries a debt-burndown commit: recent reaper-committed work landed without the pre-commit gate, leaving
mainred on the code-comments hook (40 violations) and the issue-refs hook. That red gate blocked any hook-clean commit, so this branch reflows the offending comment blocks and rewrites the terse doc refs first.Verification:
TestEnsureScratchAliascovers the fresh link, the write-through probe from the issue, idempotent re-run, stale-link repoint, and the pre-existing-directory case. On a fresh read-only director surface,ls -ld /scratchnow shows the alias andtouch /scratch/probesucceeds.closes #1142
ward.workflow: pull-request-and-merge
🤖 Generated with Claude Code