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
feat(spec/qa): check that an AC's declared verify command selects that issue's own tests #1074
#938 gave ACs an explicit Evidence:/Verify: clause, and #939 made the mutation record a parseable gate. Nothing checks that a declared verify command selects the tests it claims to.
#1059 shipped two ACs whose stated commands did not do what they said:
AC-6 — npx vitest run -t "497 AC-6". That pattern selects src/lib/workflow/drivers/codex.test.ts > 497 AC-6: warnings surfaced, not swallowed, which belongs to feat(#497): CodexDriver core — subprocess codex exec --json, SDK-typed parser, three-level outcome evaluator #1058. This issue's symlink-preservation tests are named 1059 AC-6. The declared command passes green while running an unrelated issue's tests — a false green that proves nothing about the AC. The AC also named an update --no-symlinks flag that does not exist.
AC-2 — grep -rl 'hooks.PreToolUse' src templates | wc -l was stated to return 1; it returns 3, the extra hits being a JSDoc comment describing the check and the test asserting it. The substantive requirement (one real TOML template) holds, and the test filters to /templates/ first — but the AC's own arithmetic is wrong.
Both were caught by a QA phase reading carefully. Neither would be caught by anything mechanical today.
Why it matters
This is the same family #939 addressed: evidence that looks executed but is not load-bearing. A -t pattern that matches a sibling issue's tests is strictly worse than no command, because the green tick is real — it just belongs to someone else's work. Epics that number ACs per-issue (497 AC-N alongside 1059 AC-N) make the collision likely rather than exotic.
Suggested shape
Cheap, in rough order of value:
Namespace the convention. Test names for issue N start with N AC-…, not the epic's number. A lint over -t "<pattern>" strings in issue bodies could check the pattern begins with the issue's own number.
Run the declared command during /qa and report what it selected — vitest prints the count; 0 tests or a file list outside the diff is the signal. classifyMutationMarker already does the analogous check for mutation records (does the named test file appear in the diff), so the precedent and the plumbing exist.
Flag arithmetic claims (… | wc -l → the AC states a number) by running them, rather than trusting the stated count.
Not urgent; it is a false-green class, not a live defect.
Activity