Repository navigation
Description
Epic: field-2026-09-28 (downstream non-Node adoption) Tier: mechanical Graph: tracker #1203
Problem. buildAutomatedPRBody always writes Fixes #N (worktree-manager.ts:1629), and the exec skill template always writes Closes #<issue> (exec/SKILL.md:998, both copies). No setting, flag or label changes this. Multi-PR issues, issues with a post-merge AC and tracking issues close on merge unless someone edits the PR body by hand. Incidental keywords too. GitHub parses a closing keyword anywhere in a PR body, table cells included. In the field, an issue was closed on merge by an agent-written AC-mapping row that began with the closing verb and the issue number. The PR's own summary said it delivered only part of the issue.
Unsettled: does a closing reference survive the keyword being edited out? GitHub's docs say editing it out removes the link. One field observation reported that the reference survived an edit, but that PR shows no closing reference today, and its target was already closed, so the case doesn't settle it. Either way, guard before gh pr create and check again before merge; don't rely on after-the-fact edits.
Check first: does state reconcile (#1044, isIssueMergedIntoMain) depend on the closing link? If so, refs mode needs its own merge detection.
AC
- AC-1: A setting
run.prIssueLink: "closes" | "refs"(defaultcloses) controls the keyword inbuildAutomatedPRBody. Evidence:npx vitest run src/lib/workflow/worktree-manager.test.ts - AC-2: An issue carrying a configurable label (default
no-autoclose) getsRefs #Nwhatever the setting. Evidence:npx vitest run src/lib/workflow/worktree-manager.test.ts - AC-3: The exec skill's PR template follows the same rule, in all three skill copies. Evidence:
grep -n "Refs #" .claude/skills/exec/SKILL.md skills/exec/SKILL.md templates/skills/exec/SKILL.md - AC-4: In
refsmode, or for a labelled issue, the automated PR path rewrites every<closing verb> #Nfor the linked issue anywhere in the generated body (including tables) toRefs #Nbeforegh pr create. Evidence:npx vitest run src/lib/workflow/worktree-manager.test.ts - AC-5: /merger and /fullsolve query
closingIssuesReferencesbefore merging and stop, naming the issue, when it lists an issue that isn't meant to close. Evidence:grep -n "closingIssuesReferences" skills/merger/SKILL.md skills/fullsolve/SKILL.md
Graph metadata
- No dependency edges; frontier from wave 1.
May touch
src/lib/workflow/worktree-manager.tssrc/lib/settings.ts.claude/skills/merger/SKILL.mdskills/merger/SKILL.mdtemplates/skills/merger/SKILL.md.claude/skills/fullsolve/SKILL.mdskills/fullsolve/SKILL.mdtemplates/skills/fullsolve/SKILL.md.claude/skills/exec/SKILL.mdskills/exec/SKILL.mdtemplates/skills/exec/SKILL.md
File overlap (don't run in the same wave; merge one first):
- fix(worktree): TS provisioning runs
npm ci/pip install -qin repos with no manifest to install from — the shell path guards, TS doesn't #1196:.claude/skills/exec/SKILL.md,skills/exec/SKILL.md,src/lib/workflow/worktree-manager.ts,templates/skills/exec/SKILL.md - feat(worktree): configurable worktree root #1199:
src/lib/settings.ts,src/lib/workflow/worktree-manager.ts
Activity
admarble commentedon Sep 29, 2026
Context for wave 2 (graph-run #1203) — checked against the merged
worktree-manager.ts(after #1196 / PR #1212 and #1193 / PR #1211; the file changed +96/−46).buildAutomatedPRBodyis now atworktree-manager.ts:1666, with theFixes #${issueNumber}line at:1679, and its caller is at:1791. The exec skill'sCloses #<issue>is atexec/SKILL.md:997in all three copies (.claude/skills,skills,templates/skills), not two. The issue's approach still applies to the merged file; nothing in #1196 touched the PR-body path.Launch constraints (read before starting) — all phases, including the
qaphase:execandqaphases must NOT run the fullnpm test. Every MCP phase has a hard 30-minute wall, and wave-1 exec phases ran 25–29 min. Run only the AC Evidence commands and the test files next to the code you change, in the foreground withtimeout. CI runs the full suite.failedTestfield in<!-- SEQUANT_MUTATION: … -->must start with the test file path (src/…/x.test.ts > describe > case). A describe name or bare test title there floors /qa §6i to AC_NOT_MET.Refs #1203or "tracker tracker(graph): field report 2026-09-28 — downstream non-Node adoption gaps (10 nodes) #1203". Never put a closing verb (Fixes/Closes/Resolves) next to tracker(graph): field report 2026-09-28 — downstream non-Node adoption gaps (10 nodes) #1203 anywhere in the PR body, tables included. The PR should close only this issue.admarble commentedon Sep 29, 2026
@/tmp/existing_comment.md
fix(#1197): use GraphQL for closingIssuesReferences, gh pr view --jso…
admarble commentedon Sep 29, 2026
QA Verdict: AC_NOT_MET
AC coverage: 4/4 met
Gaps:
run.prIssueLink == "refs"or the issue carriesrun.prNoCloseLabel, the expected set is empty, and finding<issue-number>in the list must stop the merge.Suggestions:
Fixes: #1197), bold (**Fixes** #1197), and a repo prefix (Fixes owner/repo#1197). GitHub's docs list the repo-prefixed form as closing; I didn't confirm the colon and bold forms against GitHub. The merge guard is the backstop here, which makes the AC-5 gap matter more.fix(#1197): merge guard allows no closing refs in refs/no-autoclose m…
admarble commentedon Sep 29, 2026
Runner follow-up (graph-run #1203) — QA verdict
AC_NOT_MET(AC-5). Fixed on PR #1215 @3b30dbaa:/mergerand/fullsolve(3 copies each) now compute the allowed set fromrun.prIssueLink,run.prNoCloseLabeland the issue's labels. In refs/label mode it's empty, so the PR's own issue inclosingIssuesReferencesstops the merge. Snippet run against this issue: default gave [1197]; refs mode gave []; label mode gave [].Fixes owner/repo#N(prefix kept). The colon and bold forms are left to the merge guard, and the function comment says so.worktree-manager.test.tsnow holds#1197cases, so the command fails on base.Executed:
npx vitest run src/lib/workflow/worktree-manager.test.ts src/lib/workflow/worktree-manager.build-pr-body.test.ts src/lib/workflow/config-resolver.pr-issue-link.test.ts→ 33/33; AC-3/AC-5 greps match. Mutation markers in the PR body.admarble commentedon Sep 29, 2026
QA Verdict: AC_NOT_MET
AC coverage: 4/4 met
Gaps:
fix(#1197): merge guard strips JSONC comments before jq and fails clo…
admarble commentedon Sep 29, 2026
QA Verdict: NEEDS_VERIFICATION
AC coverage: 5/5 met
Gaps:
admarble commentedon Sep 29, 2026
Runner verification, round 2 (graph-run #1203): NEEDS_VERIFICATION discharged. The second QA pass found that the AC-5 guard read the JSONC
.sequant/settings.jsonwith rawjq, which silently fell back tocloses. Fixed on PR #1215 @030afbe6: whole-line//comments are stripped beforejq, and a parse error fails closed. I ran the snippet for issue 1197 against agenerateSettingsJsoncfile:The third QA pass returned 5/5 met; its only gap was the pending CI
testcheck, which is nowsuccessat030afbe6. The PR still closes only [1197].feat(#1197): opt out of closing keywords — Refs #N for issues a PR sh…