Skip to content

feat(#597): /spec ac-linter title/body tension — coverage tightening - #600

Merged
admarble merged 3 commits into
mainfrom
feature/597-feat-spec-ac-linter-title-body-tension-coverage-ti
May 9, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/597-feat-spec-ac-linter-title-body-tension-coverage-ti

Conversation

@admarble

@admarble admarble commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #571 / #586. Tightens three confirmed false-negative classes in detectTitleBodyTension:

  • AC-1: separator widening. detectTitleBodyTension now splits on /[.\n:—]/ (period, newline, colon, em-dash). Catches Documentation note: trigger /fullsolve and capture output and Doc snippet — trigger workflow and capture output, both of which previously passed silently.
  • AC-3: suffix-tolerant runtime imperatives. Stem-aware regex construction inside the RUNTIME_IMPERATIVES.find() callback: \b<stem>(?:s|ed|ing)?\b for non-e-ending verbs, \b<stem>(?:e|es|ed|ing)\b for e-ending verbs (so capturing/reproducing also match, not just captured/reproduced). Multi-word phrases (verify by running, confirm at runtime) keep literal \b<phrase>\b matching.
  • AC-2: verbatim bug(fullsolve): unqualified Skill("loop") resolves to recurring-prompt skill, breaking quality loop #562 AC-5 fixture. The "motivating example from bug(fullsolve): unqualified Skill("loop") resolves to recurring-prompt skill, breaking quality loop #562 AC-5" test in src/lib/ac-linter.test.ts now uses the literal multi-line description string from the issue body, bypassing parseAcceptanceCriteria (per feat(spec): ac-linter title/body tension — coverage tightening #597 Non-Goals — parser multi-line drop is a separate concern).
  • AC-4: three new fixtures. it(...) blocks for colon separator, em-dash separator, and inflected captured/triggered.
  • AC-5: 3-mirror SKILL.md row. Title/body tension row in .claude/skills/spec/SKILL.md, skills/spec/SKILL.md, and templates/skills/spec/SKILL.md now mentions broadened separators (./\n/:/—) and inflections (triggered/captured). All three mirrors verified byte-identical.

Pre-PR AC Verification

AC Source Description Status Evidence
AC-1 Original Widen separator regex to /[.\n:—]/ ✅ Implemented src/lib/ac-linter.ts:318
AC-2 Original Replace paraphrased #562 AC-5 fixture with verbatim source ✅ Implemented src/lib/ac-linter.test.ts:228-243
AC-3 Original Suffix-tolerant runtime-imperative matching ✅ Implemented src/lib/ac-linter.ts:333-342 (stem-aware: handles inflections AND -e ending verbs' gerunds, exceeding the spec's (?:s|ed|ing|d)? recommendation)
AC-4 Original Three new fixtures (colon, em-dash, inflected) ✅ Implemented src/lib/ac-linter.test.ts:246-282
AC-5 Original 3-mirror SKILL.md update with broadened pattern ✅ Implemented .claude/skills/spec/SKILL.md:89 + 2 mirrors (verified byte-identical)

Test plan

  • npx vitest run src/lib/ac-linter.test.ts — 42 passed (was 39, +3 new fixtures)
  • npm run build — clean
  • npm run lint — clean
  • diff between three SKILL.md mirrors — empty
  • Live linter run against the three "❌ no" rows from issue body — all now ✅ warn
  • /qa 597

Quality Plan Alignment

N/A — issue body included no Feature Quality Planning section. Spec comment's Feature Quality Planning notes were honored: AC-2 fixture comment explicitly calls out parser bypass; sibling-site scan in ac-linter.ts confirmed no other code paths share the title/body split logic.

Closes #597

- AC-1: widen separator regex to /[.\n:—]/ in detectTitleBodyTension
- AC-3: stem-aware suffix tolerance for runtime imperatives so
  triggered/triggering/captured/capturing all warn
- AC-2: replace paraphrased #562 AC-5 fixture with verbatim source
- AC-4: add three new fixtures (colon separator, em-dash separator,
  inflected captured/triggered)
- AC-5: SKILL.md AC Quality Check row mentions broadened separators and
  inflections; mirrored across .claude/skills/, skills/, templates/skills/
admarble added 2 commits May 8, 2026 02:33
- Add negative fixture for `Implementation: trigger workflow` (Risks
  section sanity check; confirms DOC_NOUNS Non-Goal).
- Add slash-command-body fixtures for the new colon and em-dash
  separators (exercise RUN_SLASH_RE arm independently of inflections).
- Reword verbatim-fixture comment to match reality (#562 AC-5 is
  single-line; the test bypasses parseAcceptanceCriteria for isolation,
  not for #597's multi-line Non-Goal).
…-ac-linter-title-body-tension-coverage-ti

# Conflicts:
#	CHANGELOG.md
@admarble
admarble merged commit 62f192d into main May 9, 2026
8 checks passed
@admarble
admarble deleted the feature/597-feat-spec-ac-linter-title-body-tension-coverage-ti branch May 9, 2026 03:30
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(spec): ac-linter title/body tension — coverage tightening

1 participant