Repository navigation
Closed
Labels
cliCLI commands and interfaceenhancementNew feature or requestneeds-improvementAC met but improvements recommendedplannedImplementation plan approvedqaQA skill and quality assurance
Description
Problem
Several QA gap-checks are deterministic — they don't need an AI agent to evaluate. Today they live as prompts the QA agent executes inline, paying token cost on every QA run regardless of whether the check would even apply.
Candidates that look scriptable:
| Check | Today (in QA prompt) | Could be (pre-QA script) |
|---|---|---|
| Verbatim motivating-example fixtures (Section 6d Q1) | Agent extracts fenced code from issue body, runs against impl | scripts/qa/extract-fixtures.sh <issue> → fixture array; pipeline runs each |
| Sibling-site grep against diff hunks (§4 Q5, §5) | Agent reasons about the bug pattern and greps | Extract changed identifiers from diff, grep codebase, report sites |
| AC literal verification (Section 1) | Agent compares AC text to acceptance text | Diff AC checkboxes from issue body vs PR description |
| File-coverage vs spec scope | Agent reads spec output and compares to diff files | Parse spec's "Implementation Plan" file list, diff vs git diff --name-only |
| Detection-pattern corpus (Section 6c) | Already partially scripted (the section runs grep on a corpus), but invocation is agent-driven | Pure script: detect skill markdown changes → run pattern → check sample-count gate |
A pre-QA gate that fails fast on these cheaply produces:
- Faster fail signal — script in seconds vs agent in minutes.
- Lower per-run token cost — gap-checks that pass deterministically don't get prompted.
- No false positives from agent reasoning — script finds it or not; no "agent forgot to check."
QA agent retains: judgment calls (is this gap material? is this the right fix? is this dismissable as out-of-scope?), risk assessment, AC verdict.
Strategy
Phase A — Inventory
- AC-1: Walk every gap-check in
qa/SKILL.mdand classify:- Deterministic (script can answer yes/no with no judgment)
- Pattern + judgment (script can surface candidates; agent decides materiality)
- Pure judgment (only AI can evaluate)
- AC-2: Estimate per-PR run frequency for each (always vs. conditional on file type).
Phase B — Prototype
- AC-3: Build a
scripts/qa-precheck.sh(orsrc/lib/qa/precheck.ts) that runs the Deterministic subset on the diff + issue body and emits a structured findings file (gap-precheck.json). - AC-4: QA skill reads the precheck findings as input context, skipping its own version of those checks. Falls back to inline checks if precheck fails or is skipped.
Phase C — Measure
- AC-5: On 5+ representative PRs, compare QA token cost with and without precheck. Confirm net reduction.
- AC-6: Confirm gap-detection coverage doesn't regress (precheck + slimmed QA finds the same gaps as today's full QA on a known-buggy fixture set).
Open Questions
- Where does the precheck run — pre-phase hook in
phase-executor.ts, or as part of QA's own setup? Hook is cleaner separation; QA-internal is simpler to ship. - Sequant currently calls some grep/awk in
qa/SKILL.mdcode blocks (feedback_grep_codes_in_skillsnotes — those need|| trueeverywhere). A script wrapper avoids the repeated|| truediscipline. - This pairs with investigate(metrics): gap-check signal-to-noise — does flagged → action rate justify cumulative QA prompt cost? #608 (gap-check signal-to-noise): if a section is found low-action-rate by investigate(metrics): gap-check signal-to-noise — does flagged → action rate justify cumulative QA prompt cost? #608, dropping it is cheaper than scripting it. Run investigate(metrics): gap-check signal-to-noise — does flagged → action rate justify cumulative QA prompt cost? #608 first to inform Phase A scope.
Non-Goals
- Replacing the AI judgment passes (Section 6d's "is this material?" reasoning, AC verdict logic).
- Refactoring all of
qa/SKILL.md. Surgical extraction of the deterministic subset only. - New gap-checks. Inverse direction.
References
- investigate(metrics): gap-check signal-to-noise — does flagged → action rate justify cumulative QA prompt cost? #608 — gap-check signal-to-noise; informs which checks are worth keeping at all
- PR fix(#513): simplify adversarial self-evaluation to 2-field risk assessment #514 (fix: simplify adversarial self-evaluation to 2-field risk assessment #513) — prior simplification of adversarial self-evaluation
qa/SKILL.mdSection 6c (lines 1814+), 6d (lines 1978+) — current inline implementationsfeedback_grep_codes_in_skills(in CLAUDE.md / memory) —|| truediscipline that scripts avoid
Metadata
Metadata
Assignees
Labels
cliCLI commands and interfaceenhancementNew feature or requestneeds-improvementAC met but improvements recommendedplannedImplementation plan approvedqaQA skill and quality assurance
Activity
admarble commentedon May 9, 2026
→ PARK — Body explicitly defers Phase A scope to #608 findings: "This pairs with #608: if a section is found low-action-rate by #608, dropping it is cheaper than scripting it. Run #608 first to inform Phase A scope."
Resume after: #608 reports per-section action rate (its AC-4/AC-5).
admarble commentedon May 10, 2026
Supersedes prior assess from 2026-05-09 (PARK)
→ PARK — Body explicitly defers Phase A scope to #608 findings: "This pairs with #608: if a section is found low-action-rate by #608, dropping it is cheaper than scripting it. Run #608 first to inform Phase A scope."
Resume after: #608 reports per-section action rate (its AC-4/AC-5).
feat(#608): mine gap-check signal-to-noise across recent merged PRs (#…
admarble commentedon May 11, 2026
Supersedes 2 prior assessments (most recent: 2026-05-10)
→ PROCEED — #608 (the gating dependency) merged today in f7b1c04. Phase A scope can now be informed by #608's per-section action-rate findings.
Workflow: spec → exec → qa
Command:
npx sequant run 609 -q
⚠ Read #608's findings before scoping Phase A — some gap-checks may be cheaper to drop (per #608's signal-to-noise data) than to script. Body explicitly anticipated this trade-off.
admarble commentedon May 11, 2026
Spec Plan — #609 extract deterministic gap-checks
Complexity: Standard (6 ACs, 3 directories) · Verdict:⚠️ SCOPE_WARNING (auto-enables quality loop)
Key context: #608 already classified the 6 main sections
docs/investigations/qa-gap-signal-to-noise.md(merged today in f7b1c04) found:Key implication: §6c and §6d are remove/gate candidates, NOT script candidates — an inline file-glob conditional is cheaper than shelling out. The script-shaped value-add work is: verbatim-fixture extraction + sibling-grep on changed identifiers + AC checkbox literal-diff.
Acceptance Criteria
scripts/qa/precheck.ts→.sequant/gap-precheck.json. Verification: Unit + Integration. Scope: fixture extraction, sibling-grep, AC literal-diff. Excludes §6c/§6d (inline gates).measureSkillCost()proxy. Verification: Manual.Implementation Plan
Phase A — Inventory (largely pre-done by #608)
Phase B — Prototype
4. Scope: script handles value-add only; §6c/§6d/§4 Q5 use inline file-glob gates.
5. Build
scripts/qa/precheck.tsfollowingqa-cache-cli.tsshape. Output:.sequant/gap-precheck.jsonwithpass | fail | not_applicable+ findings per section. Exit 0 always.6. Add
scripts/qa/precheck.test.ts(fixture extraction, identifier extraction, AC parse).7. Edit qa/SKILL.md: §6c file-glob precondition (emit nothing when false); §6d collapse to 1-paragraph adversarial prompt; new "Phase 0c: Precheck Findings" between 0b and Phase 1 CI check.
8. Mirror to
templates/skills/qa/andskills/qa/; runnpx tsx scripts/check-skill-sync.ts.Phase C — Measure
9. AC-5: 5 PRs (≥1 skill-md, ≥1 code-only, ≥1 docs-only); per-PR cost delta.
10. AC-6: fixture set from
feedback_motivating_example_regression.md,feedback_dogfood_detection_patterns.md, PR #547/#533.11. Report at
docs/investigations/qa-precheck-extraction.md.Open Questions
Findings:slot. The 5-sub-prompt table is what produced 9 findings / 0 actions.scripts/qa/vssrc/lib/qa/? → Recommendscripts/qa/precheck.tsto matchqa-cache-cli.ts/tautology-detector-cli.tsneighbors.Recommended Workflow
spec → testgen → exec → qawith quality loop enabled. Overrides /assess'sspec → exec → qaby adding testgen because AC-3/AC-4 have Unit/Integration Test verification.Command:
admarble commentedon May 11, 2026
/qa Review — #609
Verdict:
AC_MET_BUT_NOT_A_PLUSAll 6 ACs MET. Precheck script runs cleanly end-to-end, 27/27 tests pass, the three SKILL.md mirrors are byte-identical, and
npm run buildis green. NotREADY_FOR_MERGEfor two reasons surfaced by the Adversarial Re-Read: (1) the work is uncommitted (0 commits ahead oforigin/main), and (2) AC-5 / AC-6 deliverables use methodology proxies rather than literal empirical replay (acknowledged by the investigation doc itself).AC Coverage
scripts/qa/precheck.ts→.sequant/gap-precheck.jsonStrengths
extractFixtures,extractACIDs,diffACIDs,extractIdentifiersFromDiff,findSiblingSites) from CLI wrapper — testable without subprocess.safeExecswallows all errors, every check has afail/not_applicablefallback, exit code is always 0.fetchDiff()usesorigin/main...HEAD(not localmain) perfeedback_worktree_stale_main.md.feedback_synthetic_test_fixture_trap.md.precheck.tsfollows theqa-cache-cli.ts/tautology-detector-cli.tsneighbor shape that the spec plan endorsed.Adversarial Re-Read — Gaps Found (non-blocking)
#547/#533issue-body replay viagh issue view) deferred to post-merge. Defensible per spec plan but flagged for visibility.Minor (won't block merge)
extractFixturesheading gating resetscurrentHeadingon any^#{1,6}header — fence-open time correctly consultsEXCLUDED_HEADING_NAMES. Low-risk edge case for nested headings under Setup/Reproduction.findSiblingSitesshell-quotessearchRootswith'…'but doesn't escape internal'. Safe because the only callers pass["src", "scripts", "bin"]or[]. Future-proof withJSON.stringify.extractIdentifiersFromDiffregex doesn't matchexport default function foo(). Edge case in this repo.Next Steps
/qa 609so the precheck self-detects its own new identifiers and validates against a non-trivial diff.Documentation: Before merging, run
/docs 609to generate feature documentation if user-facing surface area changed (here it's internal QA tooling — likely N/A).admarble commentedon May 11, 2026
/exec — #609 implementation committed & PR open
PR: #628 (commit
7b2fde3)/qawas run pre-commit and returnedAC_MET_BUT_NOT_A_PLUS(all 6 ACs MET; demotion was for uncommitted state + empirical-replay-deferred). This/execrun committed the previously-uncommitted work, added the CHANGELOG entry, pushed the branch, and opened the PR.Pre-PR Quality Gates
npm run buildnpm run lintnpx vitest run scripts/qa/precheck.test.tsnpx tsx scripts/check-skill-sync.tssynced qa/SKILL.md — 3/3 matchnpx tsx scripts/qa/precheck.ts --issue 609smoke.sequant/gap-precheck.json, exit 0Pre-PR AC Verification
docs/investigations/qa-precheck-extraction.mdPhase A — 22-row table covering §1 through §6escripts/qa/precheck.ts→.sequant/gap-precheck.jsonqa/SKILL.mdconsumes precheck + inline fallbackFiles Changed (7 files, +1,724 / −156)
scripts/qa/precheck.ts(new, 618 LOC)scripts/qa/precheck.test.ts(new, 414 LOC)docs/investigations/qa-precheck-extraction.md(new, 302 LOC).claude/skills/qa/SKILL.md,skills/qa/SKILL.md,templates/skills/qa/SKILL.md(mirrored edits: +Phase 0c, §6c precondition + Step 4 jq-prefer, §6d trim)CHANGELOG.md([Unreleased] → Added)Quality Plan Alignment
safeExecswallows errors; every check hasfail/not_applicablefallback; exit 0 alwaysextractFixtures,extractACIDs,diffACIDs,extractIdentifiersFromDiff,findSiblingSites) testable without subprocessqa-cache-cli.ts/tautology-detector-cli.tsneighbor shape (spec-plan-endorsed); noany;origin/main...HEADfor diff perfeedback_worktree_stale_main.mdfeedback_synthetic_test_fixture_trap.md; no synthetic markersPre-PR Confidence Check
AC_MET_BUT_NOT_A_PLUSverdict explicitly accepts proxy deliverables for this scope.Next Steps
/qa 609once the PR is up so the precheck self-detects its own new exported functions on a non-trivial diff (expected per QA Adversarial Re-Read).docs/investigations/qa-precheck-extraction.mdpost-merge, OR file a follow-up issue.admarble commentedon May 11, 2026
/qa Re-Review — #609 (post-commit on PR #628)
Verdict:
AC_MET_BUT_NOT_A_PLUSRe-run on now-committed work (commit
7b2fde3, was uncommitted at prior 5:46 UTC run). PR #628 is OPEN, MERGEABLE, all 7 CI checks green (build 20.x/22.x, typecheck, validate-skills, validate-plugin, Plugin Structure, Hooks Validation, Setup Directory). Verdict staysAC_MET_BUT_NOT_A_PLUSbecause AC-5/AC-6 remain methodology proxies (acknowledged design tradeoff per spec plan); reason (1) "uncommitted state" from prior QA is now resolved.Precheck Findings (self-dogfood)
[AC-1..AC-6]≡ PR body ACs[AC-1..AC-6];missingInPR: []Source:
.sequant/gap-precheck.json(schemaVersion 1). The precheck script ran cleanly end-to-end against its own diff and produced the expected self-detection profile.AC Coverage
docs/investigations/qa-precheck-extraction.mdPhase A covers §1 through §6escripts/qa/precheck.ts→.sequant/gap-precheck.jsonscripts/check-skill-sync.tsreports qa/SKILL.md as synced 3/3 (other divergences pre-existing, unrelated to #609)Coverage: 6/6 MET. Original ACs: 6/6. Derived ACs: none (spec plan had no quality-plan-derived ACs).
CI Status
CI Summary: 8 passed, 0 pending, 0 failed.
Quality Metrics
any)Build Verification
npm run build(feature)npx vitest run scripts/qa/precheck.test.tsscripts/check-skill-sync.ts)scripts/qa/precheck.ts --issue 609).sequant/gap-precheck.jsonTest Coverage Analysis
scripts/qa/precheck.tsscripts/qa/precheck.test.ts.claude/skills/qa/SKILL.mdtemplates/skills/qa/SKILL.mdskills/qa/SKILL.mddocs/investigations/qa-precheck-extraction.mdCHANGELOG.mdCoverage: 1/1 changed source file has tests. Critical paths without tests: None.
Code Review
Strengths:
extractFixtures,extractACIDs,diffACIDs,extractIdentifiersFromDiff,findSiblingSites) — testable without subprocesssafeExecswallows errors; every check has afail/not_applicablefallback; exit code is always 0fetchDiff()usesorigin/main...HEADperfeedback_worktree_stale_main.md(local main can drift)feedback_synthetic_test_fixture_trap.mdprecheck.tsfollows theqa-cache-cli.ts/tautology-detector-cli.tsneighbor shape that the spec plan endorsedIssues (non-blocking):
extractIdentifiersFromDiffregex does not matchexport default function foo()— no such declarations in this repo's difffindSiblingSitesshell-quotessearchRootsentries with'…'but does not escape internal'— safe because only callers pass hardcoded["src", "scripts", "bin"]/^(?:export\s+)?(?:const|let|var)\s+…/) aftertrimStart()matches indented local declarations inside functions too — produces noisy identifier surfacing (24 identifiers vs ~7 exports for this PR). Findings are safe (0 sibling sites means no false-MET signal) but signal-to-noise is lower than the doc impliesSuggestions (post-merge follow-ups, not blocking):
docs/investigations/qa-precheck-extraction.mdonce investigate(qa): extract deterministic gap-checks into pre-QA script gate #609 lands, OR file a follow-up issue tracking the AC-5/AC-6 empirical-validation deferralSkill Command Verification
Skill files changed: 3 (qa/SKILL.md across
.claude/skills/,templates/skills/,skills/)Commands extracted from the Phase 0c block + §6c precondition + §6c Step 4 jq path:
npx tsx scripts/qa/precheck.ts --issue "$issue"jq -r .schemaVersion "$precheck"1jq -r '.checks.fixtures.fixtures[] | …'git diff origin/main...HEAD --name-only | grep -E …xargs grep -lE '\b(grep|awk|jq|sed)\b|/[^/]+/[gim]?'Verification Status: Passed.
CLI Registration Verification
N/A — no
RunOptions/bin/cli.tschanges in this diff.Skill Change Review
npx tsx scripts/qa/precheck.ts --issue 609executed → exit 0, valid JSONschemaVersion,checks.fixtures,checks.siblingGrep,checks.acLiteralDiffall present and match the types in the scriptgh(already a sequant prereq) +jq(already used throughoutqa/SKILL.md)Smoke Test
npx tsx scripts/qa/precheck.ts --issue 609.sequant/gap-precheck.jsonnpx vitest run scripts/qa/precheck.test.tsnpx tsx scripts/check-skill-sync.tsnpm run buildfetchCurrentPrNumberfail-soft)null, downstream safely skipsSmoke Test Status: Complete.
Adversarial Re-Read
Findings: No gaps that block merge.
not_applicablefor issue investigate(qa): extract deterministic gap-checks into pre-QA script gate #609; verified by inspection of issue body — code-like text is in inline backticks and markdown tables, not fenced blocks under non-excluded headings. Correct.vitest run,check-skill-sync, dogfood-CLI execution) — not bug repros. AC-5/AC-6 evidence is explicitly labeled "methodology proxy" with empirical-replay deferral acknowledged in the investigation doc. No conflation.Status: Clean.
Self-Evaluation
extractIdentifiersFromDiffpicking up indented local consts as if they were top-level identifiers — produces noisy sibling-grep input. Mitigated because 0-sibling-site rows are safe (no false MET signal); the agent can ignore noise. A follow-up tightening (track hunk indent) is the natural next step but not blocking.7b2fde3pushed, PR open); (2) AC-5/AC-6 empirical-replay deferred — UNCHANGED but acknowledged by spec plan and the investigation doc itself.CHANGELOG Verification
CHANGELOG.mdexistsfeat(#609)commit)[Unreleased]entry present(#609)Result: CHANGELOG requirements met.
Documentation
[Unreleased] → Added)docs/investigations/qa-precheck-extraction.md(Phase A/B/C deliverables)Verdict: AC_MET_BUT_NOT_A_PLUS
All 6 ACs MET, all 8 CI checks green, PR open and mergeable. Not promoted to
READY_FOR_MERGEbecause AC-5 (5+ PRs token cost) and AC-6 (regression coverage) use methodology proxies rather than literal empirical replay — design tradeoff acknowledged by spec plan and investigation doc. Perfeedback_qa_break_vs_loop.mdthis verdict should break and proceed to merge; do NOT loop.Next Steps
docs/investigations/qa-precheck-extraction.md, OR file a follow-up issue for AC-5/AC-6 empirical validation.extractIdentifiersFromDiffto top-level declarations only (would drop the 24→~7 surfaced-identifier noise for the typical PR).admarble commentedon May 11, 2026
/fullsolve Complete — #609
Status: AC_MET_BUT_NOT_A_PLUS — ready for human review & merge
Progress
7b2fde3, PR #628 opened at 5:51 UTC)AC Coverage
6/6 MET. See QA re-review for per-AC evidence: #609 (comment)
scripts/qa/precheck.ts→.sequant/gap-precheck.jsonQuality Metrics
npm run buildnpx vitest run scripts/qa/precheck.test.tsscripts/check-skill-sync.ts--issue 609)Risk Assessment
extractIdentifiersFromDiffregex matches indented local consts aftertrimStart(), producing noisy candidate-identifier rows. Mitigated because 0-sibling-site rows are safe (no false MET signal); agent can ignore noise. Tightening to top-level-only declarations is a natural post-merge follow-up.feedback_qa_break_vs_loop.md.PR
#628 —
feat(#609): extract deterministic QA gap-checks into precheck script#628
Mergeable: CLEAN · CI: 8/8 green · Verdict: AC_MET_BUT_NOT_A_PLUS
Ready for human review and merge. Optional post-merge follow-ups noted in QA re-review.
fix(#609): close three gaps surfaced in post-commit QA
admarble commentedon May 11, 2026
/qa Re-Review (post-gap-fix) — #609
Verdict:
READY_FOR_MERGECommit
92c23fd. All three gaps surfaced in the priorAC_MET_BUT_NOT_A_PLUSre-review (#issuecomment-4424775253) are fixed; PR #628 is open, MERGEABLE, all 8 CI checks green; AC-5 and AC-6 promoted from "methodology proxy" to literal empirical replay against 6 historical merged PRs.Gaps Addressed (vs prior /qa)
extractIdentifiersFromDiffmatched indented locals (24 ids: 17 noise + 7 top-level).trimStart(). Dogfood on this PR: 31 top-level identifiers, 0 function-body locals--base-sha/--head-shaCLI flags; replay against #623 #620 #621 #617 #622 + #547 (AC-6 demo); per-PR table appended to investigation docPrecheck Findings (self-dogfood on this commit)
[AC-1..AC-6]≡ PR body ACs;missingInPR: []AC Coverage
docs/investigations/qa-precheck-extraction.mdPhase Ascripts/qa/precheck.ts→.sequant/gap-precheck.jsonscripts/check-skill-sync.ts→synced qa/SKILL.md — 3/3 match--base-sha/--head-sha: 4/6 skip §6c, aggregate ≈ −1,002 tok/PR. Per-PR table in investigation docgh issue viewCoverage: 6/6 MET. Original ACs: 6/6. Derived ACs: none.
CI Status
CI Summary: 8 passed, 0 pending, 0 failed. Mergeable state: CLEAN.
Quality Metrics
any)Build Verification
N/A —
npm run buildpassed (tsc clean) after merge of origin/main.Test Coverage Analysis
scripts/qa/precheck.tsscripts/qa/precheck.test.ts(30/30)Coverage: 1/1 changed source file has tests. Critical paths without tests: None.
Code Review
Strengths:
--base-sha/--head-shaflags (/^[0-9a-f]{4,40}$/validation beforegit diff <base>...<head>shellout) — proactive even though current callers are trusted^\+[^+](true added lines, excluding the+++ filenamemarker) per skill-md file. Empirical correctness validated against 6 historical PRs (4 skips + 2 triggers with grounded justification each)skips indented (function-body local) declarationsuses real-shape diff input (perfeedback_synthetic_test_fixture_trap.md) and asserts the dogfood-observed dichotomy (alpha+topLevelmatched;localConst,localLet,nestedskipped)Issues (non-blocking):
.trimStart()had silently defeated it. Worth a code-review-checklist item: when removing whitespace-stripping, re-check the regex anchors. (Comment is updated in this commit.)Suggestions (post-merge follow-ups, not blocking):
extractIdentifiersFromDiffstill doesn't catchexport default function foo()— non-blocking, noexport default functionin current repo. Add an(?:default\s+)?branch when convenient--reportflag) so the investigation doc's table is reproducible by anyoneTest Quality Review
alpha,topLevel) not on internal regex stateAnti-Pattern Detection
Code Patterns
scripts/qa/precheck.ts:368git diff ${base}...${head})/^[0-9a-f]{4,40}$/SHA validation immediately aboveCritical Issues: 0. Warnings: 0.
Call-Site Review
New exported items in this commit: none —
fetchDiff's new arity is internal. The newbaseSha/headShafields onRunOptionsare consumed by exactly one new call site (runPrecheck→fetchDiff(opts.baseSha, opts.headSha)), and both are plumbed unconditionally fromparseArgs. No loop sites, no missing guards.Execution Evidence
npm run buildnpx vitest run scripts/qa/precheck.test.tsnpx tsx scripts/check-skill-sync.tsnpx tsx scripts/qa/precheck.ts --issue 609scripts/qa/precheck.ts --issue X --base-sha Y --head-sha Z× 6 PRsEvidence status: Complete (5 distinct command shapes executed end-to-end).
Script Verification Override
N/A — execution evidence is Complete (5 commands, real PRs).
Skill Command Verification
Skill files changed: 3 (qa/SKILL.md across
.claude/skills/,templates/skills/,skills/).git diff origin/main...HEAD --name-only | grep | while read -r f; do git diff … -- "$f" | grep -E '^\+[^+]' | grep -qE …)jq -r .schemaVersion "$precheck"1jq -r '.checks.fixtures.fixtures[] | …'Verification Status: Passed.
CLI Registration Verification
N/A — no
RunOptions/bin/cli.tschanges (the new--base-sha/--head-shaare flags onscripts/qa/precheck.ts, not the sequant CLI).Skill Change Review
.checks.fixtures.fixtures[]/.checks.siblingGrep.identifiers[]/.checks.acLiteralDifffield names match the TypeScript types in precheck.tsgh,jq,git— all standard sequant prereqsSmoke Test
npx tsx scripts/qa/precheck.ts --issue 609--issue 608 --pr 623 --base-sha df6277c --head-sha f7b1c04--base-sha NOT-A-SHA --head-sha foonull(no shell-injection); fixturesfail-softnpx vitest run scripts/qa/precheck.test.tsscripts/check-skill-sync.tsSmoke Test Status: Complete.
Adversarial Re-Read
Findings: No gaps that block merge.
not_applicablefor investigate(qa): extract deterministic gap-checks into pre-QA script gate #609 (verified by inspection — issue body has no fenced motivating-example payload under non-Setup headings)92c23fdcleanly merged origin/main (feat(cli): run renderer follow-ups — frame stability, attempt counter, summary teardown (#618 follow-up) #624's content + my gap-fix) — no merge conflict markers remain; AC state initialized & all 6 set tometextractIdentifiersFromDiffis a single function; replay flags add one if-branch)git diff <base>...<head>shellout could be a shell-injection vector if SHAs came from untrusted input. Guarded with/^[0-9a-f]{4,40}$/validation; non-matching SHAs returnnulland the fixture/sibling checks fail-soft. Verified manually with--base-sha NOT-A-SHA(no shellout fired)Status: Clean.
Self-Evaluation
extractIdentifiersFromDiffexisting tests still pass (top-level decls still match). Replay mode parsing tested inparseArgsunit tests.measureSkillCost()'s 1.3 tok/word heuristic drifts when retokenized by a future Claude family, the −1,002 tok/PR figure shifts proportionally — but the structural argument (4/6 PRs skip §6c under the new gate vs 0/6 under the old gate) is hard data and would survive.CHANGELOG Verification
CHANGELOG.mdexistsfeat(#609)+fix(#609)commits[Unreleased]entry present(#609)referenced; updated to mention diff-hunk gate + empirical replayResult: CHANGELOG requirements met.
Documentation
[Unreleased] → Addedbullet)docs/investigations/qa-precheck-extraction.md): empirical 5-PR replay section + AC-6 fixture-extraction replay section + correction to prior calibration claimVerdict: READY_FOR_MERGE
All 6 ACs MET (empirically, not proxy). All 8 CI checks green. PR mergeable: CLEAN. All three gaps from the prior
AC_MET_BUT_NOT_A_PLUSre-review are closed with verifiable evidence (replay output, dogfood JSON, 30/30 tests). Code quality is high: shell-injection guard on the new flags, real-shape test fixtures, surgical SKILL.md edits, proactive correction of a prior calibration claim. No outstanding gaps that block merge.Next Steps
/cleanto remove the worktree post-merge (the issue will auto-close on merge via theFixes #609footer convention).feat(#609): extract deterministic QA gap-checks into precheck script (#…
admarble commentedon May 11, 2026
Documentation Generated
File:
docs/features/qa-precheck.mdSections Included
/qasections they replace/qaoutput — "Precheck Findings" table vs "unavailable — inline fallback used"npx tsx scripts/qa/precheck.ts --issue N [--pr P] [--out path].sequant/gap-precheck.jsonschema v1 examplepass/fail/not_applicable)Next Steps
Ready to merge.
docs: backfill user-facing docs for issues since v2.2.0
fix(qa): anchor the §6c precondition to real regex shapes (#853)
fix(#853): classify a deferred QA turn as no-verdict, not unparseable (…
fix(qa): anchor the §6c precondition to real regex shapes (#853)