Repository navigation
feat(#937): structured gap findings — finite taxonomy replacing the lossy prose-scrape gap channel - #954
Merged
admarble merged 3 commits intoAug 21, 2026
Conversation
Replace the lossy prose-scrape gap channel between /qa, /loop, and `sequant ready` with a finite six-category taxonomy carrying required evidence, emitted as a SEQUANT_QA_GAPS marker and consumed by every existing gap consumer. - GapFinding schema (run-log-schema.ts): six categories, required evidence, recommendedAction of fix_now/document/pause_for_human. - qa-gaps-marker.ts parses the marker; parseQaSummary unions marker findings with the legacy prose scrape (never replaces), so an unclassifiable finding is never dropped. - /qa's Simple Fix and Standard templates (all three skill dirs) emit the marker via new §6j. - /loop and ready-gate.ts/batch-executor.ts exclude document/ pause_for_human findings from the fix loop (selectFixableGaps) — the structural fix for the #930 regression class. /loop's dead `### Required Fixes` extraction (a heading no QA template ever emitted) is replaced with marker parsing. - ReadyGapItem gains the taxonomy fields; sequant ready persists its final gap report (with marker) as an issue comment on any terminal state carrying a QA verdict, closing the terminal-scrollback hole. Closes #937
6 tasks
…arker /loop's shell-side marker extraction (grep -oE + sed) had no fenced-code- block awareness, unlike every TS-side parser for the durable-marker family (parseQaGapsMarker, parseMutationMarkers, parsePhaseMarkers), which all call stripMarkdownCode first. A marker quoted inside a code fence — e.g. this skill's own "QA Log Example" — would be mistaken for a real one. Replace the grep/sed + node-JSON.parse two-step with a single node -e that strips fenced/inline code (mirroring stripMarkdownCode's regexes) before matching, and picks the LAST marker if more than one survives (latest-wins, matching parseQaGapsMarker's semantics). Verified against 6 samples, including the fence-quoted marker and a stress case with both a fenced fake marker and a real trailing one. Follow-up from #937 QA (PR #954).
Contributor
Author
|
Fixed the fenced-code-block gap found in QA:
The other QA finding (AC-4's "manual verification on one live dogfood issue") is unchanged — it's not something a code fix can close; it needs this PR merged and exercised on a real issue. |
admarble
deleted the
feature/937-feat-qa-loop-ready-structured-gap-findings-fin
branch
August 21, 2026 12:57
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
Replaces the single-regex gap channel between
/qa,/loop, andsequant readywith a finite six-category taxonomy carrying required evidence, emitted as a<!-- SEQUANT_QA_GAPS: {...} -->marker and unioned (never replacing) with the legacy prose scrape.GapFindingschema (run-log-schema.ts):requirement_gap/dependency_gap/test_gap/repository_gap/risk_gap/execution_gap, requiredevidence,recommendedActionoffix_now/document/pause_for_human./qa's Simple Fix and Standard templates (all three skill dirs, byte-synced) emit the marker via new §6j;parseQaSummaryparses it and unions with the prose scrape so an unclassifiable finding is never dropped (AC-5)./loop,ready-gate.ts, andbatch-executor.tsexcludedocument/pause_for_humanfindings from the fix loop (selectFixableGaps) — the structural fix for the fix(lint): exclude gitignored scripts/dev from the widened lint/typecheck scope #930 regression class, where a loop chased a finding QA itself had framed as non-blocking./loop's dead### Required Fixesextraction (a heading no QA template ever emitted) is replaced with marker parsing.ReadyGapItemgains the taxonomy fields;sequant readynow persists its final gap report (with marker) as an issue comment on any terminal state carrying a QA verdict — closing the terminal-scrollback hole underacpolicy.Pre-PR AC Verification
GapFindingschema, six categories, requiredevidence, exportedsrc/lib/workflow/run-log-schema.ts;run-log-schema.test.tsGapFindingSchema (#937)— all 6 categories + missing-evidence rejectionparseQaSummaryprefers it, unions with proseskills/qa/SKILL.md§6j + both templates (3 dirs synced);phase-executor.test.ts— §6d-class finding absent from**Issues:**survives via the marker; malformed-marker and dedup cases covered/loopconsumesfix_now, excludesdocument; dead grep removedselectFixableGaps(phase-executor.ts) wired intoready-gate.tsfixableGapsandbatch-executor.ts:1610failedAcs;loop/SKILL.mdmarker-based extraction replaces the### Required Fixessed.ready-gate.test.ts"#937 AC-3 structured gap filtering",batch-executor.test.tsbuildLoopContext#937 testssequant readyposts final report w/ marker on terminal states w/ verdict;ReadyGapItemcarries schema fieldsRunReadyGateOptions.postReport, wired inready.tsandbatch-executor.ts'srun --ready-gatepath;ready-gate.test.ts"#937 AC-4 postReport" (4 tests) +ready.test.tswiring testparseQaSummary;phase-executor.test.ts"#937 AC-5" + existing marker-less fixtures unchangedDesign decisions (flagged in
/spec, applied as recommended)parseQaSummary— resolves the AC-2/AC-5 tension the issue itself flagged.ac-only) —MAX_ITERATIONS/TOKEN_BUDGETare exactly the states whose gap list must survive the terminal. This was an open human-decision question in the issue; applied the/specrecommendation.{"findings":[...]}(not a bare array) and uses a lazy[\s\S]*?-->regex, since the array-of-objects payload can't reuse the flat{[^}]+}family (SEQUANT_SPEC/SEQUANT_PHASE/SEQUANT_MUTATION).Test plan
npm run build— cleannpm run lint— cleannpm run lint:skill-sync/lint:skill-gates/lint:skill-calls— cleannpm test— 269 files, 5549 passed, 1 expected fail, 2 skipped/specCloses #937