Skip to content

feat(#585): wire CHANGELOG gate into /qa §7 verdict algorithm - #601

Merged
admarble merged 1 commit into
mainfrom
feature/585-feat-qa-wire-changelog-gate-into-7-verdict-algorit
May 9, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/585-feat-qa-wire-changelog-gate-into-7-verdict-algorit

Conversation

@admarble

@admarble admarble commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Closes the orphan-rule gap where /qa §10a's prose said "Do NOT give READY_FOR_MERGE if CHANGELOG entry missing" but §7's verdict algorithm silently ignored it.
  • New ELSE IF changelog_required AND changelog_missing branch in §7 demotes READY_FOR_MERGE → AC_MET_BUT_NOT_A_PLUS when CHANGELOG.md exists, branch has user-facing conventional-commit prefixes, and [Unreleased] lacks an entry. Reuses §10a's existing detection — zero logic duplication.
  • Prose caveat at §10a documents the conventional-commit-prefix dependency (projects without them silently skip, failsafe-off).
  • Mirrored across all three qa/SKILL.md copies (.claude/skills/, templates/skills/, skills/); CHANGELOG entry added (dogfoods the new gate).

Pre-PR AC Verification

AC Source Description Status Evidence
AC-1 Original §7 includes changelog_missing branch demoting READY_FOR_MERGE → AC_MET_BUT_NOT_A_PLUS ✅ Implemented templates/skills/qa/SKILL.md:2086-2087, between execution_evidence == "Incomplete" and quality_plan_status == "Not Addressed"
AC-2 Original No-op when CHANGELOG.md absent ✅ Implemented Variable definition at :2056 — changelog_required = true IFF CHANGELOG.md exists AND ...; absent file → branch skips
AC-3 Original No-op when no user-facing commit prefix ✅ Implemented Same variable at :2056 requires `feat:
AC-4 Original Mirrored across all three qa/SKILL.md files ✅ Implemented diff zero output across all three pairs (verified post-edit)
AC-5 Original Regression — proper [Unreleased] entry still verdicts READY_FOR_MERGE ✅ Implemented Trace: when changelog_required = true AND changelog_missing = false, the AND short-circuits — branch falls through to remaining gates

Test plan

Quality Plan Alignment

N/A — spec plan did not include a Feature Quality Planning section (this is a markdown-prose-only verdict-algorithm wiring change).

Closes #585

§10a's prose rule "Do NOT give READY_FOR_MERGE if CHANGELOG entry
missing" was orphaned — the §7 verdict-determination algorithm did not
include a `changelog_missing` branch, so the gate silently passed when
READY_FOR_MERGE was otherwise eligible (surfaced during /fullsolve 575
round-1).

- Add `changelog_required` and `changelog_missing` to §7's verification-
  gates variable list, defined in terms of §10a's existing CHANGELOG.md
  file-presence + conventional-commit-prefix detection + [Unreleased]
  entry check (no logic duplication).
- Insert a new ELSE-IF branch in §7's verdict-determination chain
  between `execution_evidence == "Incomplete"` and
  `quality_plan_status == "Not Addressed"` that demotes
  READY_FOR_MERGE → AC_MET_BUT_NOT_A_PLUS when the gate trips.
- Document the conventional-commit-dependency caveat in §10a prose:
  projects without conventional commits silently skip (failsafe-off).
- Mirrored across all three qa/SKILL.md copies (.claude/skills,
  templates/skills, skills); diff-verified zero divergence.
- CHANGELOG entry added (dogfoods the new gate).

No-op when CHANGELOG.md is absent (AC-2) or only non-user-facing
prefixes (chore:|test:|ci:) appear in `git log main..HEAD` (AC-3).
@admarble
admarble merged commit dd6027b into main May 9, 2026
8 checks passed
@admarble
admarble deleted the feature/585-feat-qa-wire-changelog-gate-into-7-verdict-algorit branch May 9, 2026 15:52
admarble added a commit that referenced this pull request May 9, 2026
…commits (#613)

* fix(#610): broaden /qa §10a user_facing regex to match scoped conventional commits

The §7 CHANGELOG gate wired by #585/PR #601 cannot fire on scoped
conventional-commit projects — including sequant itself. The §10a
detection regex matched only unscoped form (feat:, fix:), but sequant
uses scoped form (feat(#NNN):) on 26/26 audited recent commits, so
user_facing=0 → changelog_required=false → §7 branch short-circuits
→ gate effectively no-op'd on sequant's own dogfood (the very
/fullsolve 575 regression case the original issue cited).

Update regex from `(feat|fix|perf|refactor|docs):` to
`(feat|fix|perf|refactor|docs)(\([^)]*\))?!?:` across all three
qa/SKILL.md mirrors. The new pattern accepts unscoped, scoped,
breaking, and scoped-breaking forms; still rejects
chore:/test:/ci:/build:/style: per conventional-commit semantics.
Rewrite §10a "Caveat" paragraph to enumerate the prefix list with
optional scope and ! marker, so readers can predict gate triggering
without reading the regex.

Verified:
- 8/8 positive cases match (feat:, feat(#585):, feat!:, feat(scope)!:,
  fix(area)!:, docs!:, refactor:, fix(#592):)
- 6/6 negative cases reject (chore:, test:, ci:, build(deps):,
  style:, wip:)
- Dogfood: NEW regex detects merged dd6027b feat(#585):; OLD returns 0
- All 3 SKILL.md mirrors byte-identical post-edit

* fix(#610): point §7 changelog_required prose at §10a as single source of truth

Adversarial re-read after first-pass QA surfaced a missed sibling-site:
§7's verdict-algorithm prose at line 2056 was a duplicate spec of §10a's
detection regex, still describing the OLD unscoped prefix list
(feat:|fix:|perf:|refactor:|docs:). After fc5d5c2 broadened §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 trigger changelog_required, contradicting §10a's actual code.

Replace the inline prefix list in §7 with a pointer to §10a:
"changelog_required = true IFF §10a's user_facing count > 0 (single
source of truth — see §10a for the regex)". Eliminates the drift
surface; future regex changes only need to update §10a.

Sibling-site scan in /spec missed this because it grep'd for the
regex literal, not for prose descriptions of the prefix list.

Mirrored across all 3 qa/SKILL.md copies. Verified byte-identical.
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): wire CHANGELOG gate into §7 verdict algorithm so it actually blocks READY_FOR_MERGE

1 participant