Development record
The guard allows a bare git stash in a clone with more than one worktree, where the stash stack is shared. git stash is one stack per repository, not per worktree, so an agent's stash-then-lint-then-pop on a clean tree in one lane popped another lane's entry in the Gropius sweep of 2026-09-19 (session gropiusllm-66, forty lanes on one clone); the pop succeeded and the entry landed in the wrong tree with no message either lane could act on. abcd guard check "git stash pop" and "git stash" both answer allow at v0.9.0, and the hazard registry carries no stash entry. Wanted: a warn (not a block) on bare git stash and git stash pop when git worktree list reports more than one worktree, naming the shared stack and the safe successors (a stash with a message and a pop by that entry, or a scratch commit on the lane's own branch). A single-worktree clone keeps allow.
The guard allows a bare git stash in a clone with more than one worktree, where the stash stack is shared. git stash is one stack per repository, not per worktree, so an agent's stash-then-lint-then-pop on a clean tree in one lane popped another lane's entry in the Gropius sweep of 2026-09-19 (session gropiusllm-66, forty lanes on one clone); the pop succeeded and the entry landed in the wrong tree with no message either lane could act on. abcd guard check "git stash pop" and "git stash" both answer allow at v0.9.0, and the hazard registry carries no stash entry. Wanted: a warn (not a block) on bare git stash and git stash pop when git worktree list reports more than one worktree, naming the shared stack and the safe successors (a stash with a message and a pop by that entry, or a scratch commit on the lane's own branch). A single-worktree clone keeps allow.
Grounds
- pursued: a bare stash warns where worktrees share the stack and nowhere else; shown wrong by a single-worktree clone warning or a multi-worktree bare pop allowing (TestSharedStashWarnsInAMultiWorktreeClone, TestSharedStashCountsRealWorktrees)
Frontmatter
| id | iss-2609190338340796 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2609190338340796-the-guard-allows-a-bare-git-stash-in-a.md
open on GitHub ↗ · commit history ↗