Repository navigation
Description
Problem
The CHANGELOG gate wired into /qa §7 verdict algorithm by #585 / PR #601 cannot fire on scoped conventional-commit projects — including sequant itself.
templates/skills/qa/SKILL.md:2328:
user_facing=$(git log main..HEAD --oneline | grep -iE '^[a-f0-9]+ (feat|fix|perf|refactor|docs):' | wc -l | xargs || true)This regex matches only unscoped form (feat:, fix:). Sequant uses scoped form (feat(#NNN):, fix(area)!:) on 26/26 recent commits audited during PR #601 QA. So user_facing=0 → changelog_required=false → §7 branch short-circuits → gate effectively never fires.
Net effect: PR #601 correctly wires the gate, but it cannot deliver the value cited in the original /fullsolve 575 motivation because sequant's own commits aren't detected.
Acceptance Criteria
- AC-1:
user_facingregex broadened to match scoped + optional!forms:(feat|fix|perf|refactor|docs)(\\([^)]*\\))?!?:. Verify: Manual — read regex; test against real commit log shows ≥1 match on this repo's recent history. - AC-2: Mirrored across all three
qa/SKILL.mdfiles (templates/,.claude/,skills/). Verify: Manual —diffall three pairs produces empty output. - AC-3: §10a caveat tightened. Current text at line 2312 says "Projects without conventional commits silently skip this gate." Update to specify the form constraints — e.g. "Detection requires conventional-commit prefixes matching `(feat|fix|perf|refactor|docs)(...)?!?:`. Other formats silently skip (failsafe-off)." Verify: Manual — read updated paragraph.
- AC-4: Dogfood — after edit, run
git log main..HEAD --oneline | grep -iE '<new-regex>'against a feature branch with scoped commits (e.g., this issue's own branch) and confirm ≥1 match. Verify: Manual — paste output in PR body. - AC-5: Regression — verify the gate still no-ops when (a)
CHANGELOG.mdabsent and (b) commits are non-conventional (chore,ci,test). Verify: Manual — trace each scenario through §10a → §7.
Implementation Plan
- Edit
user_facing=regex at line 2328 in all threeqa/SKILL.mdcopies. - Update §10a caveat paragraph at line 2312 in all three copies.
- Run
node scripts/check-skill-sync.ts(ordiff) to confirm zero divergence. - Add
[Unreleased]CHANGELOG entry under `### Fixed`.
Why this is a follow-up, not part of #585
PR #601 was correctly scoped to "wire the gate into §7". The QA verdict was AC_MET_BUT_NOT_A_PLUS — all five ACs literally pass; AC-3 explicitly accepts no-op behavior on undetected prefixes. Expanding scope mid-PR would have violated the spec contract. The regex broadening is a separate detection-layer concern with its own AC and dogfood test plan.
Risk Assessment
- Likely failure mode: False positives on non-user-facing scoped forms — none exist;
feat(test):is still a feature,fix(ci):is still a fix. Conventional-commit semantics treat scope as orthogonal to type. - Not tested: Skill prompt content is LLM-interpreted; no executable unit test. Mitigated by AC-4's real-corpus dogfood.
Related
- feat(qa): wire CHANGELOG gate into §7 verdict algorithm so it actually blocks READY_FOR_MERGE #585 / PR feat(#585): wire CHANGELOG gate into /qa §7 verdict algorithm #601 (parent — wired the gate; this issue fixes the detection regex it depends on)
Activity
admarble commentedon May 9, 2026
→ PROCEED — Bug fix with clear ACs (5), well-scoped to a regex broaden across 3 mirrored qa/SKILL.md files.
Workflow:
exec → qa⚠ Touches qa/SKILL.md — confirm sync across all 3 mirror dirs (templates/, .claude/, skills/) per CLAUDE.md memory.
admarble commentedon May 9, 2026
Plan for #610 — Broaden §10a
user_facingregex(Plan originally drafted on duplicate issue #612 — transferred here. #612 closed as duplicate.)
Acceptance Criteria
^[a-f0-9]+ (feat|fix|perf|refactor|docs)(\([^)]*\))?!?:— accepts unscoped, scoped, breaking, and scoped-breaking forms. Verification: Manual Test (shell) — 8 positive cases.chore:,test:,ci:,build(deps):,style:,wip:. Verification: Manual Test (shell) — 6 negative cases.!marker. Verification: Inline diff review.qa/SKILL.mdmirrors byte-identical after edits. Verification:diffexit code 0 on each pair.feat:still matches; mergeddd6027b feat(#585):now detected (vs 0 hits with old regex). Verification: Manual Test (shell) — dogfood againstorigin/main.Implementation Plan
Phase 1 — Edit (3 mirrored SKILL.md files):
templates/skills/qa/SKILL.md— line 2328 regex + line 2312 caveat.claude/skills/qa/SKILL.md— same two editsskills/qa/SKILL.md— same two editsPhase 2 — CHANGELOG:
4. Append bullet under
[Unreleased]/### Changeddocumenting the regex broadening and dogfood gap closure.Phase 3 — Verification + ship:
5. Mirror sync:
diffall 3 pairs → expect empty.6. Shell verification (verbatim from issue body of #612): 8 positive, 6 negative, dogfood against
origin/main.7. Commit + push + open PR.
Sibling-site Scan
Pattern
(feat|fix|perf|refactor|docs):appears in 3 sites only — all line 2328 of the threeqa/SKILL.mdmirrors.user_facingsymbol same 3 sites. No other detection logic to broaden.Design Review
qa/SKILL.md, in place. No layer change.(\([^)]*\))?!?to the type group; rewrite one caveat paragraph. ~14 lines total.templates/,.claude/,skills/).chore:?" — out of scope; conventional-commit semantics classchore:as non-user-facing. AC-5 backward-compat requires unscopedfeat:to still match.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: disabled
Reasoning: Markdown-only diff, no UI surface, no executable test path. Simple Fix Mode in QA.
admarble commentedon May 9, 2026
/exec Progress Update — #610
AC Coverage Summary
chore:/test:/ci:/build:/style:!diffexit 0 on each pairdd6027b feat(#585):againstorigin/main~5..origin/mainCoverage: 5/5 ACs met
Files Changed
.claude/skills/qa/SKILL.mdskills/qa/SKILL.mdtemplates/skills/qa/SKILL.mdCHANGELOG.md[Unreleased]/### ChangedentryTotal: 4 files, +7/-6.
Quality Plan Alignment
N/A — no quality plan generated for this issue (markdown-only diff, simple-fix scope).
Test/Build/Lint Results
npm run build,npm run lint,npm test— N/A (markdown-only diff; skill prompt is LLM-interpreted at runtime, no executable code path).Self-Evaluation
[^)]*, which is permissive but matches conventional-commit semantics; (3) once this merges, sequant's own PRs will start triggering the §7 gate when they lack[Unreleased]entries — desired but worth flagging in case anyone has open PRs that would suddenly becomeAC_MET_BUT_NOT_A_PLUS.PR Status
Documentation Reminder
CHANGELOG entry added under
[Unreleased]/### Changed. No README/docs/ updates needed (skill prompt change, internal mechanism).Next Steps
/qareviewadmarble commentedon May 9, 2026
QA Review for Issue #610 (Simple Fix)
Size Gate
AC Coverage
(feat|fix|perf|refactor|docs)(\([^)]*\))?!?:accepting unscoped/scoped/breaking/scoped-breakingfeat:,feat(#585):,fix(area)!:,docs(#574):,fix(#592):,perf(api)!:,refactor:,docs!:. All 3 mirrors line 2328 updated.chore:,test:,ci:,build(deps):,style:,wip:— confirms type list unchanged, only suffix made optional.!feat,fix,perf,refactor,docs, with optional scope ((...)) and breaking marker (!)…". Reader can predict gate triggering without reading the regex.diffexit 0 between.claude/skills/qa/SKILL.md,skills/qa/SKILL.md,templates/skills/qa/SKILL.md.dd6027b feat(#585):now detectedorigin/main~5..origin/main: OLD regex returns 0 hits; NEW regex findsdd6027b feat(#585):(and adjacenteb11fa7 fix(#596):). Backward compat for unscopedfeat:confirmed via positive test.Coverage: 5/5 ACs fully met
Quality Metrics
any)CI Status
qa.markdownOnlyCiRelaxed)qa.markdownOnlyCiRelaxed)CI Summary: 6 passed, 2 pending (build matrix). Per markdown-only CI relaxation (#569), pending
build (*)checks on .md-only diffs are informational and do NOT forceNEEDS_VERIFICATION. 3-dot diff confirmed .md-only.Code Review
Strengths:
feat:) still matches per AC-5.(\([^)]*\))?and optional!are both standard regex idioms — no exotic constructs.diff).[Unreleased]/### Changedincludes issue ref(#610)and clearly documents the prefix list change.fc5d5c2 fix(#610):is detected by the new regex; CHANGELOG entry exists; §10a (now self-applied) does NOT demote — clean closure.Issues:
Notes:
[Unreleased]section now contains two entries describing the same §10a evolution: line 12 (feat(qa): wire CHANGELOG gate into §7 verdict algorithm so it actually blocks READY_FOR_MERGE #585) describes the original wiring with the unscoped prefix list, line 39 (fix(qa): broaden §10a user_facing regex to match scoped conventional commits #610) describes the broadening. This is acceptable for an unreleased version (both shipped together at next release), and intentionally preserves history. Reader sees both.feat(area(sub)):) won't match —[^)]*stops at first). Out of conventional-commit grammar; not flagged in any sequant commit. Acceptable.Sibling-site Considered
(feat|fix|perf|refactor|docs):searched across.claude/,skills/,templates/,src/,scripts/,docs/— appears in 3 sites only, all line 2328 of the 3 SKILL.md mirrors. All updated.user_facingsymbol same 3 sites. No additional detection logic to broaden.Test Coverage Analysis
N/A — markdown-only diff. Skill prompt is LLM-interpreted at runtime; no executable code path. Verification is shell-based (run in
/execand re-confirmed in QA): 8 positives, 6 negatives, 5 edge cases, dogfood vsorigin/main.Anti-Pattern Detection
No code patterns to scan. CHANGELOG growth: +1 line under existing
[Unreleased]/### Changed— appropriate format.CHANGELOG Verification
fix(#610):commit detected by NEW regex — dogfood ✓)[Unreleased]entry### Changed(#610); action verb "broadened"/"updated"Result: CHANGELOG requirements met. Dogfood: §10a (now in this PR) self-applies cleanly — no
AC_MET_BUT_NOT_A_PLUSdemotion from the gate this PR ships.Skill Command Verification
Skill files changed: 3 (qa/SKILL.md mirrors)
git log main..HEAD --onelinegitcommand, no flags changedgrep -iE '<new regex>'origin/main~5..origin/main) — finds expected commitsVerification Status: Passed
Self-Evaluation
origin/main. The new regex behaves exactly as specified and self-applies cleanly to this PR.npm test(skill prompts have no executable test path). This is a structural limitation of skill-prompt-as-code, not a defect of this PR.[Unreleased]entry will suddenly demote fromREADY_FOR_MERGEtoAC_MET_BUT_NOT_A_PLUS. Audited current open PRs (feat(spec,qa): detect behavior-rule implementations across skill+runtime touchpoints #552, bug(skills): potential silent misroute when unqualified Skill("security-review") added — mirrors #562 #568, none others on §10a path): all have CHANGELOG entries or non-user-facing prefixes. Low blast radius.Verdict: READY_FOR_MERGE
All 5 ACs met literally. Self-dogfood passes (this PR's own commit triggers the new gate; its CHANGELOG entry satisfies it). CI green on the 6 completed checks; pending build matrix is informational on .md-only diff. No follow-up gaps surface from sibling-site scan or adversarial re-read.
Documentation
[Unreleased]/### Changedwith issue ref(#610)Next Steps
build (20.x)andbuild (22.x)complete (informational — markdown-only diff).[Unreleased]entries.admarble commentedon May 9, 2026
/fullsolve Complete
Issue: #610 (originally invoked as
/fullsolve 612— pivoted to #610 as duplicate; #612 closed)Status: READY_FOR_MERGE
Summary
fc5d5c2READY_FOR_MERGEAC Coverage: 5/5 MET
Quality Metrics
qa.markdownOnlyCiRelaxed)fix(#610):commit; OLD regex returned 0 against same rangeRisk Assessment (from QA)
[Unreleased]entry will demote fromREADY_FOR_MERGEtoAC_MET_BUT_NOT_A_PLUS. Audited current open PRs (feat(spec,qa): detect behavior-rule implementations across skill+runtime touchpoints #552, bug(skills): potential silent misroute when unqualified Skill("security-review") added — mirrors #562 #568): all have CHANGELOG entries or non-user-facing prefixes. Low blast radius.npm testcoverage. Verification is shell-based one-shot. Future regression of the regex would not be caught by automated suite. Structural limitation of skill-as-prompt, not a defect of this PR.Iterations
Process Notes
feedback_check_existing_before_filingshould be added to prevent recurrence.gcafter PR feat(#585): wire CHANGELOG gate into /qa §7 verdict algorithm #601 merged externally, and again after dependabot bumped main to915fadf). Recovered both times viagit worktree addfrom the existing branch.PR: #613
Ready for human merge once build matrix completes (informational).
fix(#610): point §7 changelog_required prose at §10a as single source…
admarble commentedon May 9, 2026
Adversarial Re-Read — Gap Found and Fixed
User prompt "any gaps?" surfaced a real sibling-site I missed in the original /spec sibling-scan.
The Gap
§7 verdict algorithmprose at line 2056 was a duplicate spec of §10a's detection regex, still describing the OLD unscoped prefix list:After
fc5d5c2broadened §10a's regex to accept scoped/breaking variants, §7's prose became stale. A reader following §7 to the letter would conclude scoped commits don't triggerchangelog_required— contradicting §10a's actual code.Why the original sibling-scan missed it
/specand structured/qasearched for the regex literal(feat|fix|perf|refactor|docs):and found 3 hits at line 2328 (the actual code). It did NOT search for prose descriptions of the prefix list — different syntax, same semantics.Fix (commit
13ffe9e)Replaced the inline prefix-list duplicate with a pointer to §10a as single source of truth:
This applies the same pattern as the original fix: eliminate the drift surface by pointing the spec at the code, not duplicating it.
Verification
Process Lesson
Saving memory
feedback_sibling_scan_includes_prose— when broadening a regex/spec, sibling-site scan must search for prose descriptions, not just the code literal.PR #613: updated with
13ffe9eon top offc5d5c2. Verdict unchanged.fix(#610): broaden /qa §10a user_facing regex to scoped conventional …