Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cb891c05d |
No files matched your search
@@ -93,11 +93,13 @@ Remove yours when you are done:
|
||||
|
||||
git worktree remove /path/outside/the/repo/wt-<slug>
|
||||
|
||||
Measured 2026-10-05: that command **succeeds** under the agent sandbox (rc 0, on a throwaway
|
||||
worktree in the session scratchpad) — earlier sessions recorded it as blocked, and that
|
||||
record was wrong, or at least no longer true. Try it; it probably works. If it is refused,
|
||||
say so in your handoff and leave the worktree registered — do **not** `rm -rf` the directory,
|
||||
which leaves a registered worktree pointing at nothing and still holding the branch.
|
||||
Measured 2026-10-05: on a worktree **you created yourself, in the session scratchpad**, that
|
||||
command **succeeds** — rc 0, no prompt, with or without a branch checked out. The "worktree
|
||||
removal is sandbox-blocked" note in circulation is about the `.claude/worktrees/agent-*` ones
|
||||
belonging to *other* sessions, some of which are additionally `locked` on git's own terms. So:
|
||||
remove yours, and only yours. If removal is refused, say so in your handoff and leave the
|
||||
worktree registered — do **not** `rm -rf` the directory, which leaves a registered worktree
|
||||
pointing at nothing and still holding the branch.
|
||||
|
||||
If someone *else's* stale worktree is holding the branch you need, do not try to reclaim the
|
||||
branch name. Push a `rework/<pr-number>` branch to the PR's refspec instead.
|
||||
|
||||
@@ -67,9 +67,12 @@ during the session that wrote §0, and it is now cited in the doc.
|
||||
**A claim of mine was wrong and is corrected in the doc.** I had it recorded that
|
||||
`git worktree remove` is blocked by the agent sandbox. Provoked rather than assumed: created
|
||||
a throwaway detached worktree in the scratchpad and removed it — **rc 0**, and
|
||||
`git worktree list` no longer shows it. §0 therefore tells agents to try it, and the
|
||||
`rework/<pr-number>` escape hatch is now scoped to *someone else's* stale worktree holding a
|
||||
branch, which is a real and separate problem (31 of them).
|
||||
`git worktree list` no longer shows it. §0 therefore tells agents to remove their own, and
|
||||
scopes the "blocked" note to what it actually covers: *other* sessions'
|
||||
`.claude/worktrees/agent-*`, some of which are additionally `locked` on git's own terms. The
|
||||
`rework/<pr-number>` escape hatch is now scoped to someone else's stale worktree holding a
|
||||
branch, which is a real and separate problem (31 of them). Both of my own worktrees in this
|
||||
session were removed cleanly at rc 0 after pushing.
|
||||
|
||||
`spec-immutability` is avoidable-not-tolerated: taken from
|
||||
`decisions/2026-10-01-render-selftest-runs-in-gate.md`, which records
|
||||
|
||||
Reference in new issue
Block a user