Skip to content

fix: gitignore .claude/worktrees/ (the mandated per-session worktree dir) - #614

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/ignore-worktrees
Sep 17, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/ignore-worktrees

Conversation

@atrawog

@atrawog atrawog commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds .claude/worktrees/ to .gitignore.

The defect (RCA). AGENTS.md "Hard Cutover by Default" mandates every session
work in a linked feature worktree under .claude/worktrees/<slug>/. That path is
per-session, per-machine ephemeral state — the same class as .check/ and
scratchpad/, both already gitignored — but .gitignore omitted it.

Consequence (measured). Every session that follows the convention leaves the
tree dirty:

$ git -C charly status --short
?? .claude/worktrees/
$ bash scripts/verify-pins.sh
FAIL: charly: dirty working tree

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's
earlier gate runs).

How tested

$ git check-ignore -v .claude/worktrees/
.gitignore:82:.claude/worktrees/	.claude/worktrees/     # now ignored
$ git -C charly status --short
(clean — the worktree dir no longer dirties the tree)

The umbrella's scripts/verify-pins.sh FAIL: charly: dirty working tree clears
once this merges and the umbrella's task sync bumps the charly gitlink.

Rulebook compliance

  • R1: the failure was root-caused to a missing .gitignore entry, not dismissed.
  • R3: no duplication — one entry matching the existing .check//scratchpad/ pattern.
  • R4: the fix is at the source (the convention is mandated; the ignore was the gap),
    not a per-checkout workaround.

Change classification

  • Class: repository config (.gitignore).
  • Verification gate: git check-ignore + git status (pasted).
  • Attribution tier: analysed on a live system.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

…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)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 42b4b56d36e0744f6569c6e253e9d1b8d5897179 (base c81a28c789e5)

Security screen: PASS — single .gitignore addition; no secrets/egress, no scope mismatch, no guardrail weakening (scoped session-ephemeral path, consistent with existing .check//scratchpad/ entries, preserves the dirty-tree intent), no injection in body/comments.

Checklist: Change class = repo config (.gitignore, 1 file, +8/−0). A1 body supplies Summary / How tested with pasted git check-ignore -v + git status output / attribution footer in exact form / rulebook section — internally consistent with the diff (added entry lands at .gitignore:82, matching the pasted output). A2/A3 tier analysed on a live system is not inflated; no runtime bed applies to an ignore-file change. R1/R2/R3/R4/R5/R10, B13–B18, placement gate: PASS or N/A for a config-only change. One atomic commit; no comments on the thread to reconcile.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown
Contributor

[step: review]

Review — PASS

Head SHA: 42b4b56d36e0744f6569c6e253e9d1b8d5897179 (base c81a28c789e5)

Security screen: PASS — single .gitignore addition; no secrets/egress, no scope mismatch, no guardrail weakening (scoped session-ephemeral path, consistent with existing .check//scratchpad/ entries, preserves the dirty-tree intent), no injection in body/comments.

Checklist: Change class = repo config (.gitignore, 1 file, +8/−0). A1 body supplies Summary / How tested with pasted git check-ignore -v + git status output / attribution footer in exact form / rulebook section — internally consistent with the diff (added entry lands at .gitignore:82, matching the pasted output). A2/A3 tier analysed on a live system is not inflated; no runtime bed applies to an ignore-file change. R1/R2/R3/R4/R5/R10, B13–B18, placement gate: PASS or N/A for a config-only change. One atomic commit; no comments on the thread to reconcile.

Verdict: PASS


opencode/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 17, 2026 13:03
@github-actions
github-actions Bot merged commit 01df735 into main Sep 17, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 17, 2026
@aitrawog
aitrawog deleted the feat/ignore-worktrees branch September 25, 2026 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant