Skip to content

docs(#1104): state the SEQUANT_MUTATION failedTest file-path contract in CLAUDE.md and the exec skill - #1112

Merged
admarble merged 5 commits into
mainfrom
feature/1104-docs-exec-qa-the-sequant-mutation-failedtest-contr
Sep 20, 2026
Merged

admarble merged 5 commits into
mainfrom
feature/1104-docs-exec-qa-the-sequant-mutation-failedtest-contr

Conversation

@admarble

@admarble admarble commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Closes #1104

Documents the SEQUANT_MUTATION marker contract that /qa §6i already enforces: failedTest starts with the test file path (<file> > <describe> > <case>) and the payload stays flat. CLAUDE.md's template line names the prefix, the exec skill gains a "Recording the mutation result" section in all three mirrors, and a gate test pins that section.

Acceptance criteria

  • AC-1: CLAUDE.md's marker template names the file-path prefix — grep -c 'failedTest":"<test file path> >' CLAUDE.md prints 1
  • AC-2: the exec skill documents the marker in all three mirrors, byte-identical — grep count 3, both diffs empty, lint:skill-sync 44 synced / 0 diverged
  • AC-3: gate test — npx vitest run scripts -t "exec skill documents the SEQUANT_MUTATION failedTest file prefix" → 1 passed; mutation-verified below
  • AC-4: npm run lint:skill-sync, npm run lint:skill-calls, npm run lint:skill-gates all exit 0 (AC text corrected on the issue: it named lint:skills, which does not exist)

Mutation-verified: AC-3 — deleted the "Recording the mutation result" section from .claude/skills/exec/SKILL.md; scripts/exec-skill-marker.test.ts > exec skill marker section > exec skill documents the SEQUANT_MUTATION failedTest file prefix failed (1 failed | 232 skipped); restored, 1 passed.

Test plan

  • AC-1..AC-3 commands above, run in the worktree by the runner
  • npm run lint:skill-sync (44/44), npm run lint:skill-calls, npm run lint:skill-gates — exit 0
  • no SKILL.md contains the word relay (grep -il relay over the three mirrors prints nothing)
  • npm test from a clean shell by the runner before merge (PLAN I-1)

🤖 Generated with Claude Code

Runner verification (guard-2026-09 wave 1, 2026-09-20)

  • qa verdict: READY_FOR_MERGE (second run; the first found the exec had never pushed, and AC-4 named a script that does not exist — AC text corrected on the issue).
  • Runner ran AC-1..AC-3 and the three skill lint gates in the worktree; mirrors byte-identical; no SKILL.md mentions relay.
  • Mutation re-verified after the runner strengthened the gate test: with the section deleted both cases fail; restored, 2 passed.
  • Runner fix: the gate test now also runs the documented example marker through parseMutationMarkers (a brace-bearing regex had tripped the tautology detectors brace counter; replaced with a line match). Detector: WARN 50%, non-blocking; tautology-detector-cli.test.ts` 6/6.
  • Full npm test from a clean shell on c94e16b6: 323 files, 6551 passed, 1 expected fail, 3 skipped, 353 s. (The run on bfa0311c had failed only the three tautology-detector CLI cases, fixed by that commit.)

@admarble
admarble merged commit b5088c7 into main Sep 20, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant