Repository navigation
Conversation
Entire-Checkpoint: 3ead1a2cdfed
…sing QA (AC_NOT_MET): escaping every > rewrote each rendered marker's failedTest separators and broke the #1297 state-summary test; the single-line regex dropped markers whose JSON spans lines, which the issue's Non-Goal keeps parsing. Escape only the > of a --> inside a value, and match lazily to the first } --> without crossing another <!--. Entire-Checkpoint: 3da69c1f546e
… <!-- on render QA round 2: the (?!<!--) guard dropped markers whose values hold an HTML comment, including PR #1035's AC-4 marker. Temper on the marker opener instead, and escape <!-- in rendered values so they round-trip. Corpus of 150 PR bodies vs main: 8 gain markers, 0 lose. Entire-Checkpoint: efad8e95472e
…r-whose-text-contai
admarble
deleted the
feature/1305-fix-qa-a-sequant-mutation-marker-whose-text-contai
branch
October 16, 2026 13:12
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
A
SEQUANT_MUTATIONmarker whoseac,mutationorfailedTestcontains}used to parse to nothing, because the regex stopped at the first}. A mutation such asregex changed to /x{9}/dropped the marker from QA §6i and from the exec carry-over, which floored the verdict.MUTATION_MARKER_REGEXnow matches lazily to the first} -->and never crosses into the next<!-- SEQUANT_MUTATION:opener. Braces and HTML comments inside values are safe, and a marker whose JSON spans lines still parses (the issue's Non-Goal: every existing marker must still parse). An unterminated marker can't swallow the next one.renderMutationMarkerescapes only-->and<!--inside a value (as--\u003eand\u003c!--), so a rendered value can neither end the comment early nor look like the next marker. Every other character renders as before, including the>separators infailedTest.parseMutationMarkers,parseMutationMarkersFromExecOutput), with braces in each field and-->inmutation. There are also cases for literal>rendering, multi-line markers and an unterminated marker. The property test generator now includes{and}, and its test-local formatter isrenderMutationMarker.Runner fix after QA (AC_NOT_MET, round 1)
The first QA round found two regressions in the exec commit, and both are fixed in e296399:
>rewrote each rendered marker'sfailedTestseparators and brokebatch-executor.test.ts(the fix(run): PR body falls back to the placeholder when exec writes no "## Summary" heading, dropping exec's mutation markers and AC table #1297 state-summary test).[^\n]*?regex dropped markers whose JSON spans lines.The narrower escape and the tempered regex fix both.
Runner fix after QA (AC_NOT_MET, round 2)
The round-1 guard
(?!<!--)dropped markers whose values hold an HTML comment, including PR #1035's real AC-4 marker (failedTestnames<!-- guards:count -->). c954b26 tempers on the marker opener instead and escapes<!--on render. New tests cover a<!--in a value, the marker opener in a value, and #1035's marker verbatim.Corpus check (runner):
parseMutationMarkersonmainand on this branch, over the 150 PR bodiesgh pr list --state all --search 'SEQUANT_MUTATION in:body'returns: 142 unchanged, 8 gain markers (#989, #1085, #1205, #1207, #1225, #1240, #1291, #1357), 0 lose one.AC mapping
npx vitest run src/lib/workflow/mutation-marker.test.ts: 26/26 pass. Mutation recorded belowmutation-marker.property.test.ts: the generator's filter no longer excludes}, and the boundary case round-tripsremoved } brace {x} --> endTargeted run by the runner:
mutation-marker.test.ts,mutation-marker.property.test.tsandbatch-executor.test.tsgave 181/181 passed. Full-suite evidence is CI's.Mutation verification
Mutation-verified: AC-1 — restored the old
[^}]+regex;mutation-marker.test.ts > mutation-marker > renderMutationMarker round-trip (#1305) > mutation holds a regex quantifier: round-trips through both entry pointsfailed (with 4 more cases in the same block); restored.Also checked:
[^\n]*?fails exactlystill parses a marker whose JSON spans lines.<!--fails exactlyparses a hand-written marker holding an HTML comment (PR #1035).<!--render escape fails exactlymutation holds the marker opener: round-trips through both entry points.Fixes #1305
🤖 Generated with Claude Code