You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ac-parser requires an ID prefix, so human-written issues parse to zero ACs — blinds the ready gate's Non-Goal classifier #850
Cause: all five patterns in AC_PATTERNS (ac-parser.ts:48-72) require an ID prefix — AC-1:, B2:, **AC-1**. The comment at :67-70 excludes the bare - [ ] form deliberately, as too ambiguous.
The consequence is that ordinary human-written issues parse to zero ACs. #686 even has a correct ## Acceptance Criteria heading, but its items read - [ ] An npm run gen-types script runs ... with no ID, so it still yields zero.
Observed downstream effect: the ready gate's Non-Goal input is exactly parseNonGoals(body) (batch-executor.ts:641, ready.ts:176). With an empty list, gapTouchesNonGoals returns false immediately at :211 — that classifier is dead for these issues.
This is not merely a "write better issues" problem. Every TS-side AC consumer (scope analyzer, AC linter, /testgen) is blind on issues authored by hand, and the workaround — rewriting the issue body to satisfy the parser — makes the tooling pass while leaving the gap intact.
Acceptance Criteria
AC-1: Checkbox items under an explicit ## Acceptance Criteria heading parse as ACs even without an ID prefix, with synthesized stable IDs.
AC-2: The bare-checkbox form is only honored under that heading, so unrelated checklists elsewhere in a body are not misread as ACs.
#850 — ac-parser requires an ID prefix, so human-written issues parse to zero ACs — blinds the ready gate's Non-Goal classifier
Open
────────────────────────────────────────────────────────────────
→ PROCEED — Bare-checkbox ACs under explicit heading; scoped to the AC heading with fixtures from real issues
Commands:
sequant run 850 -Q
spec → exec → qa · 4 ACs
────────────────────────────────────────────────────────────────
⚠ Every TS-side AC consumer (scope analyzer, linter, /testgen) inherits the fix — regression surface beyond the ready gate
────────────────────────────────────────────────────────────────
All four ACs are measurable and pass the linter (no vague/unmeasurable/open-ended flags). One substantive issue is not a wording problem but a spec-vs-fixture contradiction — see Open Questions Q1/Q2. Summary:
AC-1/AC-2/AC-4 — crisp, testable, no changes needed.
Non-Goals:⚠️ No Non-Goals section in the issue body. Implicit from context: not relaxing the bare-checkbox rule outside the AC heading (AC-2 is itself the guard), and not touching parseNonGoals/the ready-gate classifier (that's the downstream beneficiary, not the change site).
Metric
Value
Status
Feature count
1 (heading-scoped bare-checkbox parsing)
✅
AC items
4
✅
Directory spread
src/lib/ (+ test fixtures)
✅
Verdict: ✅ SCOPE_OK — but with a wide regression surface: every TS-side AC consumer inherits the behavior change (scope/analyzer.ts, ac-linter.ts, chain-preflight.ts:hasAcceptanceCriteria, /testgen, ready gate). The core edit is small; the blast radius is not. Quality loop should stay on.
Acceptance Criteria
AC-1: Bare checkbox items under ## Acceptance Criteria parse as ACs with synthesized stable IDs
Verification: Unit Test Scenario: Given a body with ## Acceptance Criteria followed by - [ ] Some requirement (no ID) → When parseAcceptanceCriteria runs → Then it returns that item with a synthesized stable ID (e.g. AC-1), stable across re-parses of the same body. Assumptions: Heading match must be case-insensitive — real issue #703 uses ## Acceptance criteria (lowercase "criteria"). Synthesized IDs must not collide with any explicit AC-N IDs also present (the current seenIds dedupe would silently drop a collision).
AC-2: Bare-checkbox form honored ONLY under the AC heading
Verification: Unit Test Scenario: Given a body with unrelated - [ ] checklists under other headings (e.g. ## Open questions, ## Test plan) and no AC heading → When parsing → Then those checkboxes are not returned as ACs (result stays 0). Section ends at the next heading of any level (follow the existing parseNonGoals boundary rule).
AC-3: Issues #745, #686, #703, #750 are fixtures asserting a non-zero parsed-AC count
Verification: Unit Test (fixture-based) Scenario: Given each real matcha-maps issue body as a committed fixture → When parsing → Then non-zero AC count. ⚠️ CONTRADICTION — this AC is not satisfiable as literally worded (see Open Questions Q1/Q2). Measured today:
❌ no AC heading — only ## Open questions ... bare boxes
0 → must stay 0 under AC-2
❌ non-zero here would violate AC-2
AC-4: Existing ID-prefixed parsing is unchanged
Verification: Unit Test (regression) Scenario: Given the existing ac-parser.test.ts corpus (**AC-1:**, **B2:**, bold-wrapped, no-colon **AC-1**, #803/#414 fixtures) → When parsing after the change → Then identical results. The whole existing suite must stay green.
Implementation Plan
Phase 1: Heading-scoped parse (AC-1, AC-2, AC-4)
src/lib/ac-parser.ts — Convert parseAcceptanceCriteria from stateless per-line to section-aware, mirroring the proven pattern in src/lib/workflow/ready-gate.ts:234 parseNonGoals (heading regex + inSection flag + capture-until-next-heading). Track an inAcSection flag toggled by ^#{1,6}\s+acceptance\s+criteria\b (case-insensitive).
First, run the existing AC_PATTERNS on every line (preserves AC-4 exactly, regardless of section). Then, only when inAcSection, add a fallback for bare - [ ] <text> lines that matched no existing pattern.
Synthesized IDs: assign AC-<n> by appearance order among bare items, with a collision guard against seenIds (bump n until free). Deterministic on a fixed body → "stable". Document why the guard exists.
Confirm the bare fallback stays disabled outside the section (AC-2) and never overrides an explicit ID on the same line (AC-4).
Phase 2: Fixtures + tests (AC-3, resolved per Q1/Q2 decision)
Mutation-verify each fixture gate (CLAUDE.md testing rule): delete the fixture's checkbox payload / the AC heading, confirm exactly that test fails, restore, record in the PR body.
Design Review
Where does this logic belong?src/lib/ac-parser.ts only. Downstream consumers call parseAcceptanceCriteria/hasAcceptanceCriteria and inherit the fix for free — no consumer edits needed or wanted.
What's the simplest correct approach? Add a heading-scoped bare-checkbox fallback layered on top of the existing patterns, rather than rewriting the pattern set. Rejected: a new regex in AC_PATTERNS for bare boxes — it can't be heading-scoped (patterns are applied per-line without section context), so it would violate AC-2.
What existing pattern does this follow?parseNonGoals in ready-gate.ts — same "toggle inSection on a heading regex, collect bullets until the next heading" shape. Reuse its boundary semantics for consistency.
Regression surface > change size. Run the full suite, not just ac-parser.test.ts, before pushing — scope/, chain-preflight, and /testgen all read this parser. (memory: full-suite-on-API-breaks.)
Fixture provenance. matcha-maps is a private dogfood repo; capture the four bodies as committed fixtures so the test is hermetic and doesn't hit the network.
Section boundary on nested subheadings. If an AC section contains a ### Sub heading, the parseNonGoals-style "any next heading ends the section" rule would cut it short. Recommendation: accept it (matches existing convention); revisit only if a real issue hits it.
Recommended Workflow
Phases: exec → qa Quality Loop: enabled Reasoning: Matches the /assess recommendation (spec → exec → qa, quality-loop=true). Wide regression surface across every AC consumer justifies the loop. testgen skipped — the change has a single, comprehensive existing home (ac-parser.test.ts); generating separate stubs would fragment the suite rather than help. All ACs are unit-testable in that one file.
Label Review
Current: (none) Recommended:bug, planned Reason: A real parser defect (human-written ACs silently parse to zero), not a new feature. No UI/browser surface → no ui label, no test phase. Quality Loop: Will auto-enable via the assess marker + SCOPE regression surface.
Bare checkboxes under ## Acceptance Criteria parse with synthesized stable AC-N IDs (case-insensitive heading, collision-guarded)
AC-2
✅ Implemented
Bare form honored ONLY under the AC heading; section closes at next heading (mirrors parseNonGoals)
AC-3
⚠️ Partial — resolved per spec Q2
#686→4, #703→2, #745→6 committed as fixtures. #750→0 (see contradiction below)
AC-4
✅ Implemented
ID patterns run on every line unchanged; 26 existing tests + #745 (6 via ID path) green
AC-3 vs AC-2 contradiction (spec Q2) — needs maintainer confirmation
#750 has no ## Acceptance Criteria heading (only ## Open questions … checkboxes). AC-3 wants it non-zero; AC-2 requires those to parse to 0. Both cannot hold. AC-2 is the issue's actual requirement, so #750 ships as the AC-2 negative fixture (asserts 0) — the strongest proof unrelated checklists aren't misread. #745 (spec Q1) was already rewritten to **AC-N:** IDs, so it exercises the existing path; the new bare path is genuinely covered by #686 and #703.
inAcSection toggles on AC_HEADING_RE, closes at next heading. Independently mutation-verified: widening AC_HEADING_RE to match any heading fails exactly 4 tests incl. #750→0.
AC-3
Original
Issues #745, #686, #703, #750 are fixtures asserting a non-zero parsed-AC count
⚠️ PENDING
3/4 satisfy the literal wording: #686→4, #703→2, #745→6 (all committed, verified against live bodies). #750 asserts 0, not non-zero — see contradiction below. Awaiting maintainer confirmation.
AC-4
Original
Existing ID-prefixed parsing unchanged
✅ MET
ID patterns run on every line regardless of section; all 26 pre-existing tests green + #745 fixture (6 via ID path).
Coverage: 3/4 fully met; AC-3 PENDING a maintainer decision (not a code gap).
⚠️ AC-2 vs AC-3 contradiction (the one open item)
AC-3 lists #750 as a non-zero fixture, but #750 has no ## Acceptance Criteria heading — only ## Open questions … bare checkboxes. AC-2 requires exactly those to parse to 0. The two cannot both hold; the implementation correctly prioritizes AC-2 (the issue's core requirement) and ships #750 as the AC-2 negative fixture. This was surfaced in /spec Q2 ("Needs maintainer confirmation before exec") and in the exec PR. This is an AC-wording defect, not an implementation defect — no code change resolves it. Do not/loop this; it needs a one-line maintainer decision: reword AC-3 to move #750 to the negative-fixture role (recommended), or reject the reinterpretation.
Clean section-aware refactor that mirrors the proven parseNonGoals boundary rule; existing patterns run unchanged so AC-4 is structurally guaranteed.
Collision guard (do { AC-${++bareCount} } while seenIds.has) is correct and deterministic — a synthesized ID can never be silently dropped against an explicit one.
Fixtures are the real, verbatim matcha-maps bodies (verified byte-identical to live issues bar a trailing newline) — hermetic, no network, no synthetic-fixture trap.
Tests are behavior-focused (assert IDs + descriptions + counts); no tautologies.
Issues: None blocking.
Suggestions (non-blocking):
Ordering edge case: a bare item appearing before an explicit **AC-1:** under the same heading would synthesize AC-1 first and then drop the explicit one via dedupe (first-occurrence-wins, matching existing behavior). Not reachable in the fixtures; noting for awareness.
Likely failure mode: an issue whose AC section uses a heading variant the regex misses (e.g. ## ACs, ## Requirements) would silently fall back to zero — but that's the pre-existing behavior, not a regression, and ## Acceptance Criteria (+ case variants) is the dominant real-world form.
Not tested: the ordering edge case above (bare-before-explicit collision) has no dedicated test; low value since it mirrors documented dedupe behavior.
Sibling sites considered: none — parseAcceptanceCriteria is the single source; downstream consumers inherit the fix by design.
Finding: Clean — the diff commits four untrusted issue bodies as test fixtures and only parses them as data; #745's <sub> note and #750's "Open questions" are descriptive/product content, not agent-directed instructions, and none were acted on.
Status: Clean
Adversarial Re-Read
Findings: No blocking gaps. Verified: (1) ran the parser against all four verbatim motivating-example fixtures — counts match the issue body's own diagnosis (#686 "yields zero" → now 4); (2) exec's mutation claims independently re-checked — the AC-2 gate genuinely fails under mutation (4 tests), not a tautology; (3) process state clean (committed, on feature branch, 0 behind main); (4) sibling sites cited above; (5) no Non-Goals expansion — diff is ac-parser + tests + fixtures + CHANGELOG only. The single surfaced gap is the AC-2/AC-3 contradiction, which is an AC-wording issue, not code.
Status: Gaps Found (AC-wording contradiction — external decision required)
Verdict: NEEDS_VERIFICATION
The implementation is A+ quality: AC-1, AC-2, AC-4 fully met and independently verified; CI green; hermetic real-world fixtures; no regressions across the consumer blast radius. The only open item is the AC-2-vs-AC-3 contradiction for #750, which cannot be satisfied jointly and requires a maintainer decision to reword AC-3 (recommended: adopt #750 as the negative fixture per spec Q2). This is not a code defect and is not/loop-able.
Ordering edge case — fixed in 17755be8. A bare checkbox listed before an explicit **AC-1:** under the same heading previously synthesized AC-1 first and silently dropped the author's explicit AC-1 via first-occurrence dedupe. The parser now pre-scans the whole body for explicit IDs, so synthesis skips IDs owned by explicit markers anywhere. Mutation-verified: reverting the explicitIds guard fails exactly the new test (skips IDs taken by explicit markers that appear after the bare item, 36 passed / 1 failed); restored, all 37 pass.
The branch was also merged with origin/main (6e4ee30b, union-resolved CHANGELOG conflict) — it had gone CONFLICTING, which was blocking CI dispatch.
AC Coverage
AC
Source
Description
Status
Notes
AC-1
Original
Bare checkboxes under ## Acceptance Criteria parse with synthesized stable IDs
✅ MET
Section-aware loop + full-body collision guard; 11 dedicated tests incl. determinism, case-insensitive heading, and both collision orderings.
The pre-scan fix is minimal and structurally sound: explicit-ID ownership is computed over the whole body once, so synthesis order can never shadow an author's ID regardless of line order.
New test mutation-verified per repo policy (recorded in commit 17755be8).
Deliberate non-changes:
Indented checkboxes ( - [ ]) remain unmatched — consistent with every existing anchored (^-) pattern, and matching them would sweep nested sub-task checklists under an AC item into the AC list (a false-positive class AC-2 exists to prevent).
Risk Assessment
Likely failure mode: unchanged from prior review — heading variants like ## Requirements still parse to zero, which is pre-existing behavior, not a regression.
Not tested: none outstanding; the previously-untested ordering edge now has a mutation-verified test.
Sibling sites considered: none — parseAcceptanceCriteria is the single source; consumers inherit the fix.
Sibling-line audit: the only other seenIds consumer is push() dedupe for duplicate explicit IDs — first-occurrence-wins is pre-existing, documented behavior.
Trust-Boundary Check
Finding: Clean — fixtures remain parsed-as-data only; the new commits touch parser logic, tests, and CHANGELOG merge only.
Status: Clean
Adversarial Re-Read
Findings: No gaps. Verified: (1) re-ran all four verbatim fixtures post-fix — counts unchanged (the pre-scan cannot alter fixture results since none mix bare-before-explicit); (2) the mutation evidence is a real post-fix validation, not a bug repro; (3) process state clean — committed, pushed, MERGEABLE, 1 commit behind main (under threshold); (4) sibling sites cited above; (5) no Non-Goals expansion — the AC-3 reword narrows, not widens, the contract.
Status: Clean
Verdict: READY_FOR_MERGE
All four ACs met under the now-consistent AC text, CI fully green at the reviewed commit, both prior-review gaps closed with mutation-verified coverage, and no remaining improvement suggestions.
Activity
admarble commentedon Jul 29, 2026
#850 — ac-parser requires an ID prefix, so human-written issues parse to zero ACs — blinds the ready gate's Non-Goal classifier
Open
────────────────────────────────────────────────────────────────
→ PROCEED — Bare-checkbox ACs under explicit heading; scoped to the AC heading with fixtures from real issues
Commands:
sequant run 850 -Q
spec → exec → qa · 4 ACs
────────────────────────────────────────────────────────────────
⚠ Every TS-side AC consumer (scope analyzer, linter, /testgen) inherits the fix — regression surface beyond the ready gate
────────────────────────────────────────────────────────────────
admarble commentedon Jul 29, 2026
Complexity: Standard (4 ACs, ~2 directories)
AC Quality Check
All four ACs are measurable and pass the linter (no vague/unmeasurable/open-ended flags). One substantive issue is not a wording problem but a spec-vs-fixture contradiction — see Open Questions Q1/Q2. Summary:
Scope Assessment
Non-Goals:⚠️ No Non-Goals section in the issue body. Implicit from context: not relaxing the bare-checkbox rule outside the AC heading (AC-2 is itself the guard), and not touching
parseNonGoals/the ready-gate classifier (that's the downstream beneficiary, not the change site).src/lib/(+ test fixtures)Verdict: ✅ SCOPE_OK — but with a wide regression surface: every TS-side AC consumer inherits the behavior change (
scope/analyzer.ts,ac-linter.ts,chain-preflight.ts:hasAcceptanceCriteria,/testgen, ready gate). The core edit is small; the blast radius is not. Quality loop should stay on.Acceptance Criteria
AC-1: Bare checkbox items under
## Acceptance Criteriaparse as ACs with synthesized stable IDsVerification: Unit Test
Scenario: Given a body with
## Acceptance Criteriafollowed by- [ ] Some requirement(no ID) → WhenparseAcceptanceCriteriaruns → Then it returns that item with a synthesized stable ID (e.g.AC-1), stable across re-parses of the same body.Assumptions: Heading match must be case-insensitive — real issue #703 uses
## Acceptance criteria(lowercase "criteria"). Synthesized IDs must not collide with any explicitAC-NIDs also present (the currentseenIdsdedupe would silently drop a collision).AC-2: Bare-checkbox form honored ONLY under the AC heading
Verification: Unit Test
Scenario: Given a body with unrelated
- [ ]checklists under other headings (e.g.## Open questions,## Test plan) and no AC heading → When parsing → Then those checkboxes are not returned as ACs (result stays 0). Section ends at the next heading of any level (follow the existingparseNonGoalsboundary rule).AC-3: Issues #745, #686, #703, #750 are fixtures asserting a non-zero parsed-AC count
Verification: Unit Test (fixture-based)
⚠️ CONTRADICTION — this AC is not satisfiable as literally worded (see Open Questions Q1/Q2). Measured today:
Scenario: Given each real matcha-maps issue body as a committed fixture → When parsing → Then non-zero AC count.
## Acceptance Criteria, bare boxes## Acceptance criteria(lowercase), bare boxes**AC-N:**IDs## Open questions ...bare boxesAC-4: Existing ID-prefixed parsing is unchanged
Verification: Unit Test (regression)
Scenario: Given the existing
ac-parser.test.tscorpus (**AC-1:**,**B2:**, bold-wrapped, no-colon**AC-1**, #803/#414 fixtures) → When parsing after the change → Then identical results. The whole existing suite must stay green.Implementation Plan
Phase 1: Heading-scoped parse (AC-1, AC-2, AC-4)
src/lib/ac-parser.ts— ConvertparseAcceptanceCriteriafrom stateless per-line to section-aware, mirroring the proven pattern insrc/lib/workflow/ready-gate.ts:234 parseNonGoals(heading regex +inSectionflag + capture-until-next-heading). Track aninAcSectionflag toggled by^#{1,6}\s+acceptance\s+criteria\b(case-insensitive).AC_PATTERNSon every line (preserves AC-4 exactly, regardless of section). Then, only wheninAcSection, add a fallback for bare- [ ] <text>lines that matched no existing pattern.AC-<n>by appearance order among bare items, with a collision guard againstseenIds(bump n until free). Deterministic on a fixed body → "stable". Document why the guard exists.Phase 2: Fixtures + tests (AC-3, resolved per Q1/Q2 decision)
src/lib/__fixtures__/ac-parser/(or inline verbatim strings, matching the existing fix(merge-check): combined-branch-test runs npm test/build without reinstalling deps after a lockfile change → false BLOCKED #803/MCP server: add true E2E tests with real protocol client #414 in-test style — pick one; inline matches current convention).sequant ready <issue>— post-resolve A+ QA gate (#683) #686 (→4) and fix(#701): correct 3 README/release-tooling blockers before 2.5 #703 (→2, also asserts lowercase heading). Recommended: source chore(deps): bump the production-dependencies group with 4 updates #745's original pre-restructure bare body (it was rewritten to IDs per its own<sub>note referencing this issue) so it exercises the new path rather than the old patterns; if the original is unrecoverable, reconstruct the bare form from its current ACs.## Open questionscheckboxes are correctly not misread), which is the strongest possible AC-2 test. This requires reinterpreting AC-3 for fix(cleanup-worktree): deletes remote branch before PR is merged — closes the open PR unmerged #750 (Q2).Design Review
src/lib/ac-parser.tsonly. Downstream consumers callparseAcceptanceCriteria/hasAcceptanceCriteriaand inherit the fix for free — no consumer edits needed or wanted.AC_PATTERNSfor bare boxes — it can't be heading-scoped (patterns are applied per-line without section context), so it would violate AC-2.parseNonGoalsinready-gate.ts— same "toggleinSectionon a heading regex, collect bullets until the next heading" shape. Reuse its boundary semantics for consistency.Feature Quality Planning
Notable items:
ac-parser.test.ts, before pushing —scope/,chain-preflight, and/testgenall read this parser. (memory: full-suite-on-API-breaks.)Open Questions
**AC-N:**IDs (its<sub>note cites this very issue) and parses to 6 via existing patterns. Recommendation: use its original bare-checkbox body as the fixture so it exercises the new path; reconstruct if the original is unrecoverable. Impact if ignored: AC-3 passes while the new code has zero coverage from this fixture.## Acceptance Criteriaheading — only## Open questions ...with bare checkboxes. AC-2 requires those to parse to 0; AC-3 requires fix(cleanup-worktree): deletes remote branch before PR is merged — closes the open PR unmerged #750 non-zero. These cannot both hold. Recommendation: reinterpret fix(cleanup-worktree): deletes remote branch before PR is merged — closes the open PR unmerged #750 as the AC-2 negative fixture (assert parse == 0) — it's the best real-world proof that unrelated checklists aren't misread. Impact if we instead force non-zero: we'd have to honor bare boxes outside the AC heading, breaking AC-2 and re-opening the "any checklist is an AC" ambiguity the original parser guarded against. Needs maintainer confirmation before exec.### Subheading, theparseNonGoals-style "any next heading ends the section" rule would cut it short. Recommendation: accept it (matches existing convention); revisit only if a real issue hits it.Recommended Workflow
Phases: exec → qa
Quality Loop: enabled
Reasoning: Matches the
/assessrecommendation (spec → exec → qa, quality-loop=true). Wide regression surface across every AC consumer justifies the loop. testgen skipped — the change has a single, comprehensive existing home (ac-parser.test.ts); generating separate stubs would fragment the suite rather than help. All ACs are unit-testable in that one file.Label Review
Current: (none)
Recommended:
bug,plannedReason: A real parser defect (human-written ACs silently parse to zero), not a new feature. No UI/browser surface → no
uilabel, notestphase.Quality Loop: Will auto-enable via the assess marker + SCOPE regression surface.
→ add labels
bugandplannedviagh issue edit.admarble commentedon Jul 29, 2026
--- PROGRESS UPDATE (exec) ---
PR: #861
AC Coverage
## Acceptance Criteriaparse with synthesized stableAC-NIDs (case-insensitive heading, collision-guarded)parseNonGoals)AC-3 vs AC-2 contradiction (spec Q2) — needs maintainer confirmation
#750 has no
## Acceptance Criteriaheading (only## Open questions …checkboxes). AC-3 wants it non-zero; AC-2 requires those to parse to 0. Both cannot hold. AC-2 is the issue's actual requirement, so #750 ships as the AC-2 negative fixture (asserts 0) — the strongest proof unrelated checklists aren't misread. #745 (spec Q1) was already rewritten to**AC-N:**IDs, so it exercises the existing path; the new bare path is genuinely covered by #686 and #703.Key files changed
src/lib/ac-parser.ts— section-aware parse + heading-scoped bare-checkbox fallbacksrc/lib/ac-parser.test.ts— 10 new testssrc/lib/__fixtures__/ac-parser/issue-{686,703,745,750}.md— real hermetic fixturesCHANGELOG.md— Fixed entryChecks
npm run build✅ ·npm run lint✅ ·ac-parser.test.ts36 passed · consumer suites (ac-linter/scope/chain-preflight/state-manager) 231 passedsequant ready <issue>— post-resolve A+ QA gate (#683) #686 heading → feat(cli):sequant ready <issue>— post-resolve A+ QA gate (#683) #686 fixture fails) — see PR body table.Quality Plan Alignment
admarble commentedon Jul 29, 2026
QA Review for Issue #850
PR: #861 · Reviewed commit:
8e94f14fAC Coverage
## Acceptance Criteriaparse with synthesized stable IDsac-parser.ts:214-260section-aware loop + collision-guardedAC-Nsynth. Tests cover synthesis, determinism across re-parses, case-insensitive heading (## Acceptance criteria), and explicit-marker collision skip.inAcSectiontoggles onAC_HEADING_RE, closes at next heading. Independently mutation-verified: wideningAC_HEADING_REto match any heading fails exactly 4 tests incl.#750→0.Coverage: 3/4 fully met; AC-3 PENDING a maintainer decision (not a code gap).
AC-3 lists #750 as a non-zero fixture, but #750 has no
## Acceptance Criteriaheading — only## Open questions …bare checkboxes. AC-2 requires exactly those to parse to 0. The two cannot both hold; the implementation correctly prioritizes AC-2 (the issue's core requirement) and ships #750 as the AC-2 negative fixture. This was surfaced in/specQ2 ("Needs maintainer confirmation before exec") and in the exec PR. This is an AC-wording defect, not an implementation defect — no code change resolves it. Do not/loopthis; it needs a one-line maintainer decision: reword AC-3 to move #750 to the negative-fixture role (recommended), or reject the reinterpretation.CI Status
CI Summary: 5 passed, 0 pending, 0 failed.
Quality Metrics
any)Test Coverage Analysis
src/lib/ac-parser.tsac-parser.test.ts(36 tests, +10 new)Consumer blast radius re-run green: ac-linter, scope, chain-preflight, state-manager — 231 passed, no regressions.
Code Review
Strengths:
parseNonGoalsboundary rule; existing patterns run unchanged so AC-4 is structurally guaranteed.do { AC-${++bareCount} } while seenIds.has) is correct and deterministic — a synthesized ID can never be silently dropped against an explicit one.Issues: None blocking.
Suggestions (non-blocking):
**AC-1:**under the same heading would synthesizeAC-1first and then drop the explicit one via dedupe (first-occurrence-wins, matching existing behavior). Not reachable in the fixtures; noting for awareness.- [ ]) aren't matched (anchored^-), consistent with existing patterns.Detection Pattern Verification
N/A — no skill-markdown regex/grep/awk/jq/sed changes (fixtures are
src/lib/__fixtures__/*.md, not skill dirs).Behavior-Rule Survival Check
N/A — no AC triggers the behavior-rule heuristic; the old ID-required behavior is intentionally preserved (AC-4), not replaced.
CLI Registration Verification
N/A — no option-interface changes.
Execution Evidence / Script Verification
N/A —
src/libonly; noscripts/,bin/, or CLI changes.CHANGELOG Verification
fix(#850))Result: CHANGELOG requirements met.
Risk Assessment
## ACs,## Requirements) would silently fall back to zero — but that's the pre-existing behavior, not a regression, and## Acceptance Criteria(+ case variants) is the dominant real-world form.parseAcceptanceCriteriais the single source; downstream consumers inherit the fix by design.parseACLineuntouched.Trust-Boundary Check
Finding: Clean — the diff commits four untrusted issue bodies as test fixtures and only parses them as data; #745's
<sub>note and #750's "Open questions" are descriptive/product content, not agent-directed instructions, and none were acted on.Status: Clean
Adversarial Re-Read
Findings: No blocking gaps. Verified: (1) ran the parser against all four verbatim motivating-example fixtures — counts match the issue body's own diagnosis (#686 "yields zero" → now 4); (2) exec's mutation claims independently re-checked — the AC-2 gate genuinely fails under mutation (4 tests), not a tautology; (3) process state clean (committed, on feature branch, 0 behind main); (4) sibling sites cited above; (5) no Non-Goals expansion — diff is
ac-parser+ tests + fixtures + CHANGELOG only. The single surfaced gap is the AC-2/AC-3 contradiction, which is an AC-wording issue, not code.Status: Gaps Found (AC-wording contradiction — external decision required)
Verdict: NEEDS_VERIFICATION
The implementation is A+ quality: AC-1, AC-2, AC-4 fully met and independently verified; CI green; hermetic real-world fixtures; no regressions across the consumer blast radius. The only open item is the AC-2-vs-AC-3 contradiction for #750, which cannot be satisfied jointly and requires a maintainer decision to reword AC-3 (recommended: adopt #750 as the negative fixture per spec Q2). This is not a code defect and is not
/loop-able.Next Steps
READY_FOR_MERGE./docs 850before merge (parser-internal; likely N/A).fix(#850): pre-scan explicit AC IDs so bare-before-explicit ordering …
admarble commentedon Jul 30, 2026
QA Review for Issue #850 (re-run: all gaps fixed)
PR: #861 · Reviewed commit:
6e4ee30b(supersedes the8e94f14freview)Both open items from the prior
NEEDS_VERIFICATIONreview are resolved:sequant ready <issue>— post-resolve A+ QA gate (#683) #686/fix(#701): correct 3 README/release-tooling blockers before 2.5 #703 remain the non-zero fixtures. The implementation and the ACs are now consistent.17755be8. A bare checkbox listed before an explicit**AC-1:**under the same heading previously synthesizedAC-1first and silently dropped the author's explicit AC-1 via first-occurrence dedupe. The parser now pre-scans the whole body for explicit IDs, so synthesis skips IDs owned by explicit markers anywhere. Mutation-verified: reverting theexplicitIdsguard fails exactly the new test (skips IDs taken by explicit markers that appear after the bare item, 36 passed / 1 failed); restored, all 37 pass.The branch was also merged with
origin/main(6e4ee30b, union-resolved CHANGELOG conflict) — it had goneCONFLICTING, which was blocking CI dispatch.AC Coverage
## Acceptance Criteriaparse with synthesized stable IDsAC_HEADING_REfails 4 tests incl.#750→0); unchanged since.Coverage: 4/4 AC items fully met.
CI Status
CI Summary: 5 passed, 0 pending, 0 failed (run 30509661836 at
6e4ee30b). PR isMERGEABLE.Quality Metrics
any)tsc --noEmitCode Review (delta since prior review)
Strengths:
17755be8).Deliberate non-changes:
- [ ]) remain unmatched — consistent with every existing anchored (^-) pattern, and matching them would sweep nested sub-task checklists under an AC item into the AC list (a false-positive class AC-2 exists to prevent).Risk Assessment
## Requirementsstill parse to zero, which is pre-existing behavior, not a regression.parseAcceptanceCriteriais the single source; consumers inherit the fix.seenIdsconsumer ispush()dedupe for duplicate explicit IDs — first-occurrence-wins is pre-existing, documented behavior.Trust-Boundary Check
Finding: Clean — fixtures remain parsed-as-data only; the new commits touch parser logic, tests, and CHANGELOG merge only.
Status: Clean
Adversarial Re-Read
Findings: No gaps. Verified: (1) re-ran all four verbatim fixtures post-fix — counts unchanged (the pre-scan cannot alter fixture results since none mix bare-before-explicit); (2) the mutation evidence is a real post-fix validation, not a bug repro; (3) process state clean — committed, pushed,
MERGEABLE, 1 commit behind main (under threshold); (4) sibling sites cited above; (5) no Non-Goals expansion — the AC-3 reword narrows, not widens, the contract.Status: Clean
Verdict: READY_FOR_MERGE
All four ACs met under the now-consistent AC text, CI fully green at the reviewed commit, both prior-review gaps closed with mutation-verified coverage, and no remaining improvement suggestions.
Next Steps
MERGEABLE)./docs 850is likely N/A (parser-internal fix; CHANGELOG entry already present).fix(#850): parse bare-checkbox ACs under an Acceptance Criteria headi…