Skip to content

feat(#1249): QA enforces a follow-up ledger, sibling scans search the defect class, end-to-end delivery is never "not tested" - #1288

Merged
admarble merged 6 commits into
mainfrom
feature/1249-feat-qa-enforce-the-follow-up-ledger-every-deferre
Oct 3, 2026
Merged

admarble merged 6 commits into
mainfrom
feature/1249-feat-qa-enforce-the-follow-up-ledger-every-deferre

Conversation

@admarble

@admarble admarble commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

QA now enforces a follow-up ledger, its sibling-site scan searches for a defect class, and an AC's end-to-end delivery can't be marked "Not tested".

  • AC-1 (Follow-up Ledger): a §7 gate (followup_ledger_status).
    • Every deferred item from spec, exec's PR body, the runner's context comments and QA's own document findings ends in one of three states: filed #N, fixed in this PR or dropped: <reason>.
    • An unresolved item holds the verdict at AC_MET_BUT_NOT_A_PLUS.
    • The rule replaces the old "Don't widen scope mid-PR; file a follow-up issue instead." It doesn't sit beside it.
  • AC-2: buildAutomatedPRBody renders a ## Follow-ups checklist from the latest QA pass's document findings, using the new latestPhaseResult helper. The resolution is a suffix on the description; SEQUANT_QA_GAPS's schema is unchanged (ADR 0007).
  • AC-3: the Sibling-site Scan names a defect class and searches for it. The Sibling sites considered: slot starts with Class searched: <class>. The precheck's siblingGrep is now only a symbol-level hint.
  • AC-4: end-to-end delivery is never "Not tested". QA runs the path or marks the AC PENDING, which leads to NEEDS_VERIFICATION. This is applied to all three Risk Assessment templates.
  • AC-5: .claude/skills/qa/SKILL.md went from 3,837 to 3,832 lines. lint:skill-sync passes for 47 skills.

Runner verification (2026-10-03)

  • Tests:
    • npx vitest run over the two new gate tests, worktree-manager.build-pr-body.test.ts, batch-executor.test.ts and ready-gate-run.test.ts: 187/187 passed.
    • npx tsc --noEmit and npm run lint:skill-sync: clean.
  • Runner fix (0d80d67): a finding whose description already ends in the ledger template's ⚠️ unresolved rendered as — ⚠️ unresolved — unresolved. It now renders one suffix. A new case covers this; it failed without the fix and passes with it.
  • Why the runner added the markers: the run's MCP server was sequant 2.18.0, which opens the PR only after QA. This body is therefore the old placeholder, and QA could not read mutation markers from it. The runner re-ran each gate mutation in the worktree. Each mutation was made on .claude/skills/qa/SKILL.md and restored with git checkout.

Mutation-verified: AC-1 — deleted the ELSE IF followup_ledger_status == "Unresolved" verdict branch; qa-followup-ledger-skill.test.ts "is a §7 gate" and "caps an unresolved ledger" failed; restored.

Mutation-verified: AC-3 — replaced "name the defect class and search the codebase for it — not for the symbol being changed" with "scan other files for the same pattern as the bug being fixed"; qa-sibling-scan-skill.test.ts "asks for the defect class" failed; restored.

Mutation-verified: AC-4 — deleted the "End-to-end delivery is never Not tested" paragraph; qa-sibling-scan-skill.test.ts "requires running the delivery path" failed; restored.

Fixes #1249

QA verdict: AC_MET_BUT_NOT_A_PLUS — acceptance criteria met, but not A+. The run broke to this PR for review rather than entering the quality loop; see the QA review comment for improvement notes.


🤖 Generated by sequant run

… the PR body

Entire-Checkpoint: b3fa9ac53b16
…-to-end delivery rule

Entire-Checkpoint: 872417b5b330
Entire-Checkpoint: 7a117d375651
…solved suffix, not two

QA finding from the #1249 run: the ledger template's '⚠️ unresolved' copied into a description rendered as '— ⚠️ unresolved — unresolved'.

Entire-Checkpoint: d80749c69249
@admarble admarble changed the title feat(#1249): feat(qa): enforce the follow-up ledger — every deferred item resolves to filed/fixed/dropped; sibling scans search the defect class feat(qa): enforce the follow-up ledger — every deferred item resolves to filed/fixed/dropped; sibling scans search the defect class (#1249) Oct 3, 2026
@admarble admarble changed the title feat(qa): enforce the follow-up ledger — every deferred item resolves to filed/fixed/dropped; sibling scans search the defect class (#1249) feat(#1249): QA enforces a follow-up ledger, sibling scans search the defect class, end-to-end delivery is never "not tested" Oct 3, 2026
@admarble
admarble merged commit 52395ca into main Oct 3, 2026
11 checks passed
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.

feat(qa): enforce the follow-up ledger — every deferred item resolves to filed/fixed/dropped; sibling scans search the defect class

1 participant