Repository navigation
test(#1095): property-based and metamorphic tests for parsers; fix checklist AC counting - #1114
Merged
admarble merged 6 commits intoSep 20, 2026
Conversation
…d omit contradictory AC coverage line Entire-Checkpoint: 2d5acfceeba9
…parsers Entire-Checkpoint: fae87f179df9
Entire-Checkpoint: 19f1ae4fe8b7
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
fast-check(dev) and four property files: ac-parser, parseQaSummary/buildQaVerdictComment, and the mutation / qa-gaps marker round-trips (16 property-file tests).parseQaSummarynow counts checklist and bold-prefixed AC lines;buildQaVerdictCommentomits theAC coverage:line when counts are absent or0/Nunder a passing verdict.Acceptance criteria
--project unit -t propertyruns the new properties (16 tests across 4 files, all green).parseQaSummary(phase-executor.ts);-t checklistgreen.buildQaVerdictComment(parseQaSummary never sees the verdict, per spec Open Question 2);-t consistencygreen.^-).fc.assertpasses{ seed }fromFC_SEED;FC_SEED=42and unseeded runs both green.npm run build && npm testdeferred to the runner per the runner context; the build (run by the vitest global setup),tscandnpm run lintpass locally.^4.1.11); chore(deps-dev): bump vitest from 4.1.11 to 5.0.1 #1082 not touched.Mutation verification
Mutations were applied on a clean, committed tree and restored. Existing example tests stay green under both mutants (206/206 and 83/83), so the properties add coverage.
Mutation-verified: AC-2 — disabled the checklist branch in
parseQaSummary(table-only); src/lib/workflow/phase-executor.property.test.ts failed; restored.Mutation-verified: AC-4 — parser loop skips the last input line; src/lib/ac-parser.property.test.ts failed; restored.
The AC-4 mutation as literally named (drop the last AC when indented) is vacuous, since the base parser already drops indented AC lines; a real mutant was used instead (spec Open Question 1).
Notes
}inside aSEQUANT_MUTATIONvalue,} -->inside aSEQUANT_QA_GAPSvalue. Generators encode that contract.formatexists for either marker; the round-trip tests use a test-local mirror of the documented shape.batch-executor.test.ts > withActivityHook (#543) > returns the input config unchanged when onProgress is undefinedfails under the orchestrator env and passes withSEQUANT_*unset: bug(test): suite isn't hermetic against the SEQUANT_* env phases inject — exec sees red tests it didn't cause and opens no PR #1086.Closes #1073
🤖 Generated with Claude Code
Runner verification (guard-2026-09 wave 1, 2026-09-20)
FC_SEEDplumbing present in all four property files; no vitest bump (fast-check ^4.10.2 on vitest ^4.1.11).batch-executor.tshunk is insidebuildQaVerdictCommentonly;phase-executor.tshunks are insideparseQaSummaryonly. Trial merge with fix(#1070): post failing qa verdicts (AC_NOT_MET) to the issue #1118: clean.npm testfrom a clean shell on this branch: 326 files, 6565 passed, 1 expected fail, 3 skipped, 368 s.