vendor-manifest-coverage-test red on main: two stray .claude/worktrees gitlinks tracked in neither manifest nor exclude #112

Closed
opened 2026-08-28 17:30:31 +00:00 by matou-build-agent · 3 comments

What

git ls-files on main carries two stray gitlink entries (mode 160000):

  • .claude/worktrees/agent-a10bc7c3f7fcad70e → commit f5124979
  • .claude/worktrees/agent-ab3512f35f216dad9 → commit 02ff038b

They were committed in 43be97c (the docs commit) — worktree-isolation agent
debris that got git added by accident. They point at commits that are not
real submodules, so they are just noise in the tree.

Why it matters

onboarding/tests/vendor-manifest-coverage-test.sh enumerates git ls-files
and fails on any tracked path in neither vendor-manifest nor vendor-exclude.
These two paths are in neither, so the coverage test is red on main —
independent of any real manifest change. I hit this while landing #110 (the two
new scripts there ARE covered; the only failures are these two gitlinks).

Fix (two-way-door)

git rm --cached .claude/worktrees/agent-* and either add .claude/ to
.gitignore or to vendor-exclude. Revertible, provable by re-running the
coverage test (red → green). Filed as a follow-up from #110 per ADR 0174 (work
only the ticket in hand; file follow-ups).

## What `git ls-files` on `main` carries two stray gitlink entries (mode `160000`): - `.claude/worktrees/agent-a10bc7c3f7fcad70e` → commit `f5124979` - `.claude/worktrees/agent-ab3512f35f216dad9` → commit `02ff038b` They were committed in `43be97c` (the docs commit) — worktree-isolation agent debris that got `git add`ed by accident. They point at commits that are not real submodules, so they are just noise in the tree. ## Why it matters `onboarding/tests/vendor-manifest-coverage-test.sh` enumerates `git ls-files` and fails on any tracked path in neither `vendor-manifest` nor `vendor-exclude`. These two paths are in neither, so the coverage test is **red on `main`** — independent of any real manifest change. I hit this while landing #110 (the two new scripts there ARE covered; the only failures are these two gitlinks). ## Fix (two-way-door) `git rm --cached .claude/worktrees/agent-*` and either add `.claude/` to `.gitignore` or to `vendor-exclude`. Revertible, provable by re-running the coverage test (red → green). Filed as a follow-up from #110 per ADR 0174 (work only the ticket in hand; file follow-ups).
Author
Member

This was generated by AI during triage.

Ruled by agent under ADR 0174 — veto anytime

Ruling: bug + ready-for-agent + priority.

Why it's a two-way door: the whole change is removing two accidental gitlink entries from the index and adding a matching ignore/exclude rule. Fully revertible by a later commit (re-add the paths) or a label change, and provable by an existing probe: onboarding/tests/vendor-manifest-coverage-test.sh goes red → green. It touches none of the one-way-door list (no credentials, no security-posture change, no member-facing trust, no data destruction, no spend) and none of this repo's protected paths (.sandcastle, .forgejo) or prompt skeletons — so it does not need a session's standing, only a swarm worker.

priority (additive): the coverage test is red on main, so it fails on every branch cut from it, not just this ticket's. That's a queue-head justification; removable by hand once the urgency passes.

Verification (reproduced during triage):

  • git ls-files -s | grep '^160000' lists both .claude/worktrees/agent-a10bc7c3f7fcad70e and .claude/worktrees/agent-ab3512f35f216dad9, added in 43be97c.
  • bash onboarding/tests/vendor-manifest-coverage-test.sh exits 1 with two FAIL: … in neither onboarding/vendor-manifest nor onboarding/vendor-exclude lines — exactly the two gitlinks.
  • Neither path is in onboarding/vendor-manifest nor onboarding/vendor-exclude; .gitignore ignores only .claude/settings.local.json, not .claude/worktrees/.

Agent Brief

Category: bug
Summary: Remove two stray .claude/worktrees/agent-* gitlinks tracked on main and add an ignore/exclude rule so worktree-isolation debris can't be committed again — the vendor-manifest coverage test is red on main because of them.

Current behavior:
git ls-files on main carries two mode-160000 gitlink entries under .claude/worktrees/ (agent worktree-isolation debris git added by accident in the docs commit). They point at commits that are not real submodules. onboarding/tests/vendor-manifest-coverage-test.sh enumerates every tracked path and fails on any that is in neither onboarding/vendor-manifest nor onboarding/vendor-exclude; these two are in neither, so the test exits non-zero on main independent of any manifest change.

Desired behavior:
The two gitlinks are no longer tracked, the coverage test passes, and a future .claude/worktrees/ gitlink cannot be silently committed again (an ignore rule so git add/git status won't pick them up). The choice of stopping them via .gitignore vs onboarding/vendor-exclude is the agent's to make, but prefer .gitignore for .claude/worktrees/ (or all of .claude/ except already-tracked entries) so the paths never enter the index in the first place — vendor-exclude only silences the coverage test, it doesn't stop the git add.

Key interfaces / contracts:

  • The vendor-manifest coverage test's predicate: every git ls-files path must be covered by onboarding/vendor-manifest or onboarding/vendor-exclude. The fix must satisfy it by removing the paths, not by whitelisting agent debris in the manifest.
  • Removal is index-only (git rm --cached), never touching a worktree on disk — these gitlinks point at non-existent commits, so there's nothing to delete from the working tree.

Acceptance criteria:

  • git ls-files -s | grep '^160000' returns nothing.
  • bash onboarding/tests/vendor-manifest-coverage-test.sh exits 0.
  • The offline test sweep in CLAUDE.md still passes: for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done prints no FAIL:.
  • A newly created .claude/worktrees/agent-* gitlink no longer shows up in git status (it's ignored).

Out of scope:

  • Any change to the vendor-manifest / vendor-exclude rules beyond what's needed to make coverage pass for these paths.
  • Reworking the worktree-isolation mechanism itself (why agents create .claude/worktrees/ at all).
  • Touching .sandcastle/, .forgejo/, or any prompt skeleton.
> *This was generated by AI during triage.* ## Ruled by agent under ADR 0174 — veto anytime **Ruling:** `bug` + `ready-for-agent` + `priority`. **Why it's a two-way door:** the whole change is removing two accidental gitlink entries from the index and adding a matching ignore/exclude rule. Fully revertible by a later commit (re-add the paths) or a label change, and provable by an existing probe: `onboarding/tests/vendor-manifest-coverage-test.sh` goes red → green. It touches none of the one-way-door list (no credentials, no security-posture change, no member-facing trust, no data destruction, no spend) and none of this repo's protected paths (`.sandcastle`, `.forgejo`) or prompt skeletons — so it does not need a session's standing, only a swarm worker. **`priority` (additive):** the coverage test is red on `main`, so it fails on every branch cut from it, not just this ticket's. That's a queue-head justification; removable by hand once the urgency passes. **Verification (reproduced during triage):** - `git ls-files -s | grep '^160000'` lists both `.claude/worktrees/agent-a10bc7c3f7fcad70e` and `.claude/worktrees/agent-ab3512f35f216dad9`, added in `43be97c`. - `bash onboarding/tests/vendor-manifest-coverage-test.sh` exits **1** with two `FAIL: … in neither onboarding/vendor-manifest nor onboarding/vendor-exclude` lines — exactly the two gitlinks. - Neither path is in `onboarding/vendor-manifest` nor `onboarding/vendor-exclude`; `.gitignore` ignores only `.claude/settings.local.json`, not `.claude/worktrees/`. ## Agent Brief **Category:** bug **Summary:** Remove two stray `.claude/worktrees/agent-*` gitlinks tracked on `main` and add an ignore/exclude rule so worktree-isolation debris can't be committed again — the vendor-manifest coverage test is red on `main` because of them. **Current behavior:** `git ls-files` on `main` carries two mode-`160000` gitlink entries under `.claude/worktrees/` (agent worktree-isolation debris `git add`ed by accident in the docs commit). They point at commits that are not real submodules. `onboarding/tests/vendor-manifest-coverage-test.sh` enumerates every tracked path and fails on any that is in neither `onboarding/vendor-manifest` nor `onboarding/vendor-exclude`; these two are in neither, so the test exits non-zero on `main` independent of any manifest change. **Desired behavior:** The two gitlinks are no longer tracked, the coverage test passes, and a future `.claude/worktrees/` gitlink cannot be silently committed again (an ignore rule so `git add`/`git status` won't pick them up). The choice of stopping them via `.gitignore` vs `onboarding/vendor-exclude` is the agent's to make, but prefer `.gitignore` for `.claude/worktrees/` (or all of `.claude/` except already-tracked entries) so the paths never enter the index in the first place — vendor-exclude only silences the coverage test, it doesn't stop the `git add`. **Key interfaces / contracts:** - The vendor-manifest coverage test's predicate: every `git ls-files` path must be covered by `onboarding/vendor-manifest` or `onboarding/vendor-exclude`. The fix must satisfy it by removing the paths, not by whitelisting agent debris in the manifest. - Removal is index-only (`git rm --cached`), never touching a worktree on disk — these gitlinks point at non-existent commits, so there's nothing to delete from the working tree. **Acceptance criteria:** - [ ] `git ls-files -s | grep '^160000'` returns nothing. - [ ] `bash onboarding/tests/vendor-manifest-coverage-test.sh` exits 0. - [ ] The offline test sweep in `CLAUDE.md` still passes: `for t in tests/*.sh onboarding/tests/*.sh; do case "$t" in *fakebin*|*fixtures*) continue;; esac; bash "$t" || echo "FAIL: $t"; done` prints no `FAIL:`. - [ ] A newly created `.claude/worktrees/agent-*` gitlink no longer shows up in `git status` (it's ignored). **Out of scope:** - Any change to the vendor-manifest / vendor-exclude *rules* beyond what's needed to make coverage pass for these paths. - Reworking the worktree-isolation mechanism itself (why agents create `.claude/worktrees/` at all). - Touching `.sandcastle/`, `.forgejo/`, or any prompt skeleton.
Owner

Claimed by an interactive session (Ben + Claude) — swapped ready-for-agent → agent-working so the swarm skips it.

Claimed by an interactive session (Ben + Claude) — swapped ready-for-agent → agent-working so the swarm skips it.
Owner

Landed in d44e633 on main: git rm --cached both gitlinks, .claude/worktrees/ added to .gitignore. Proof: bash onboarding/tests/vendor-manifest-coverage-test.sh → PASS (every tracked path classified exactly once) (was 2× FAIL before).

Landed in `d44e633` on main: `git rm --cached` both gitlinks, `.claude/worktrees/` added to `.gitignore`. Proof: `bash onboarding/tests/vendor-manifest-coverage-test.sh` → `PASS (every tracked path classified exactly once)` (was 2× FAIL before).
ben 2026-08-28 17:48:25 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/dev-factory#112
No description provided.