Repository navigation
fix: gitignore .claude/worktrees/ (the mandated per-session worktree dir) - #614
Conversation
…dir) `AGENTS.md` "Hard Cutover by Default" mandates every session work in a linked feature worktree under `.claude/worktrees/<slug>/`. That directory is per-session, per-machine ephemeral state — the same class as `.check/` and `scratchpad/`, both of which are gitignored — but `.gitignore` omitted it. Consequence: every session that follows the convention leaves the tree dirty (`?? .claude/worktrees/`), and `scripts/verify-pins.sh` fails with `FAIL: charly: dirty working tree` — the pin gate reports a working tree that is actually clean of source changes. Adding the entry makes the mandated convention compatible with the gate. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)
Review — PASSHead SHA: Security screen: PASS — single Checklist: Change class = repo config ( Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
[step: review]Review — PASSHead SHA: Security screen: PASS — single Checklist: Change class = repo config ( Verdict: PASS opencode/deepseek-v4.1-flash — action-review. |
Summary
Adds
.claude/worktrees/to.gitignore.The defect (RCA).
AGENTS.md"Hard Cutover by Default" mandates every sessionwork in a linked feature worktree under
.claude/worktrees/<slug>/. That path isper-session, per-machine ephemeral state — the same class as
.check/andscratchpad/, both already gitignored — but.gitignoreomitted it.Consequence (measured). Every session that follows the convention leaves the
tree dirty:
So the pin gate reports a charly checkout that is actually clean of source
changes, purely because it uses the mandated worktree convention. This blocked
the umbrella's
task verify(opencharly/opencharly#212 and the campaign'searlier gate runs).
How tested
The umbrella's
scripts/verify-pins.shFAIL: charly: dirty working treeclearsonce this merges and the umbrella's
task syncbumps the charly gitlink.Rulebook compliance
.gitignoreentry, not dismissed..check//scratchpad/pattern.not a per-checkout workaround.
Change classification
.gitignore).git check-ignore+git status(pasted).analysed on a live system.Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)