You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(qa,run): §6i's inputs move into precheck.ts (ACs from the issue body, PR body fetched), --no-pr reads a worktree exec-summary file, and the orchestrator confirms markers landed #1341
Tier: mechanical Found: 2026-10-06, #1316 research (owner decision: keep the PR body, ADR-0004 stands)
Problem. QA's mutation evidence stays in the PR body. The research on #1316 found three places where that evidence can fail to reach QA without anyone noticing:
QA never says how it gets $PR_BODY.qa/SKILL.md §6i (~line 2594) passes "$PR_BODY" to parseMutationMarkers, but nothing in the skill assigns it. Each QA agent fetches the body its own way.
--no-pr has no body. With gate-test ACs, §6i reads Missing and caps the verdict at AC_MET_BUT_NOT_A_PLUS. (First decided as promptContext; revised to a worktree file precheck can read, see AC-2.)
§6i step 1 has no reliable AC source (found by the upstream trace): it reads ACs from state via a relative path that a worktree does not have, and spec rarely stores them.
AC
(Revised 2026-10-06 by owner decision after the upstream trace below: §6i's inputs move into precheck.ts; --no-pr uses a file a script can read, replacing promptContext.)
AC-1: scripts/qa/precheck.ts produces §6i's mutation check: it parses gate-test ACs from the issue body (parseAcceptanceCriteria + isGateTestEvidence, not state), fetches the PR body itself, and reports each gate-test AC's marker classification. §6i consumes that output and no longer references $PR_BODY or StateManager, and qa/SKILL.md does not grow (feat(qa): enforce the follow-up ledger — every deferred item resolves to filed/fixed/dropped; sibling scans search the defect class #1249 AC-5). Evidence: a precheck unit test with a fixture issue body and PR body, mutation-verified, plus a gate test scoped to §6i asserting $PR_BODY and StateManager are absent.
AC-2: When no PR exists (--no-pr, or before the PR opens), precheck reads markers from <worktree>/.sequant/exec-summary.md, which the orchestrator writes after each successful exec from composeExecSummary; with neither source, gate-test ACs report Missing as today. Evidence: a batch-executor test that the file is written after exec under noPr, and a precheck test that reads markers from it, both mutation-verified.
AC-3: After createPR writes or updates the body, the orchestrator reads the body back; if any marker parseMutationMarkersFromExecOutput found in exec's output is missing, it prints a warning naming the missing ACs via console.log (visible in parallel/MCP mode). Evidence: a unit test with a stubbed read-back missing one marker asserts the warning, mutation-verified by removing the comparison.
Upstream trace (2026-10-06): all three gaps come from earlier decisions, and §6i has a fourth unbound input
None of the three gaps has an incident yet. On today's runs, each QA agent found the markers by fetching the body itself. #1341 is preventive. #1305 is the one that has caused problems.
Gap 1: $PR_BODY unassigned. Origin: #939 (2026-08-14) built §6i outside #609's pattern
investigate(qa): extract deterministic gap-checks into pre-QA script gate #609 (2026-05-11) had already set the pattern: deterministic QA checks live in scripts/qa/precheck.ts. It fetches both the issue body and the PR body itself (gh pr view … --json body), and returns not_applicable with "No PR body available (PR not yet created…)". The AC literal-diff, one of QA's four PR-body reads, already follows it. §6i was written as inline npx tsx -e in the skill instead.
New: §6i step 1 has a second unbound input, the ACs from state
Step 1 runs new StateManager(process.cwd()). The constructor takes an options object, so the string is ignored and the path falls back to the relative .sequant/state.json. Worktrees have no such file (.sequant/* is gitignored), so from a worktree it reads an empty state.
Gap 2: a failed write is silent. Two paths, two origins
Create fails (the after-exec call, no PR yet): the warning at batch-executor.ts "PR after exec failed (retried after QA)" goes through log. Default execution mode is serial despite being labeled parallel #404 (2026-03-24) made log a no-op in parallel mode, the mode every MCP run uses. Silent.
Gap 3: --no-pr has no body. Origin: #1247 (2026-10-01) checked producers, not consumers
Before #1247, exec ignored --no-pr and opened a PR anyway, so QA had a body by accident. #1247 fixed the producer side ("no PR from either producer") and never asked what QA reads when there is none. ADR-0004's --no-pr text covers producers only.
Cross-cutting: warnings muted by parallel mode (#404)
Three non-verbose warnings are hidden on every MCP run: spec-recommendation parse failure (:1633), PR-after-exec create failure (:2189), and checkpoint commit failure (:2568, which leaves work uncommitted). #1340 fixed one more site. That is a separate class issue, not part of #1341.
AC-1 as filed adds a prose line for $PR_BODY. That leaves step 1's state dependency, the second unbound input. The fix that removes the cause moves §6i's inputs into precheck.ts: parse ACs from the issue body directly (no state) and fetch the PR body deterministically. That also covers consumer projects and runs without spec, and shrinks qa/SKILL.md. Precheck is a script, though, and cannot read the prompt, so under --no-pr it would need a source a script can read instead of promptContext. Owner fork.
changed the title [-]fix(qa,run): close the PR-body evidence delivery gaps — §6i names its $PR_BODY source, the orchestrator confirms markers landed, --no-pr threads exec's summary to QA[/-][+]fix(qa,run): §6i's inputs move into precheck.ts (ACs from the issue body, PR body fetched), --no-pr reads a worktree exec-summary file, and the orchestrator confirms markers landed[/+]on Oct 6, 2026
Activity
admarble commentedon Oct 6, 2026
Upstream trace (2026-10-06): all three gaps come from earlier decisions, and §6i has a fourth unbound input
None of the three gaps has an incident yet. On today's runs, each QA agent found the markers by fetching the body itself. #1341 is preventive. #1305 is the one that has caused problems.
Gap 1:
$PR_BODYunassigned. Origin: #939 (2026-08-14) built §6i outside #609's pattern$PR_BODYhas been unassigned since §6i was introduced (feat(qa): mutation-verification becomes a parseable §7 gate instead of honor-system prose #939, PR feat(#939): mutation-verification becomes a parseable /qa §6i gate #949). It is not a regression.scripts/qa/precheck.ts. It fetches both the issue body and the PR body itself (gh pr view … --json body), and returnsnot_applicablewith "No PR body available (PR not yet created…)". The AC literal-diff, one of QA's four PR-body reads, already follows it. §6i was written as inlinenpx tsx -ein the skill instead.New: §6i step 1 has a second unbound input, the ACs from state
new StateManager(process.cwd()). The constructor takes an options object, so the string is ignored and the path falls back to the relative.sequant/state.json. Worktrees have no such file (.sequant/*is gitignored), so from a worktree it reads an empty state.extractAcceptanceCriteria… to parse and store"), only in the sequant repo itself (the guard), and only when spec runs (--phases exec,qaskips it). Run as written, step 1 printeditems: 0for fix(platforms): PlatformProvider has no error contract — postPRComment is still unchecked and the ready gate's report-post catch is empty (#1312 follow-up) #1315 from both the main checkout and a worktree.gh pr view 1318 --json bodyand passed the AC evidence strings toisGateTestEvidenceby hand.Gap 2: a failed write is silent. Two paths, two origins
batch-executor.ts"PR after exec failed (retried after QA)" goes throughlog. Default execution mode is serial despite being labeled parallel #404 (2026-03-24) madeloga no-op in parallel mode, the mode every MCP run uses. Silent.worktree-manager.tswarns visibly, butupdateExistingreturnssuccess: true, because fix(run): exec that leaves work uncommitted reports success and the run passes with no PR — #534's empty-branch escape, reopened via a new route #879 defined success as "a PR exists" and ADR-0004 calls a stale body "a warning, not a failure". AC-2's read-back check covers this path; the create path is the muting class below.Gap 3:
--no-prhas no body. Origin: #1247 (2026-10-01) checked producers, not consumersBefore #1247, exec ignored
--no-prand opened a PR anyway, so QA had a body by accident. #1247 fixed the producer side ("no PR from either producer") and never asked what QA reads when there is none. ADR-0004's--no-prtext covers producers only.Cross-cutting: warnings muted by parallel mode (#404)
Three non-verbose warnings are hidden on every MCP run: spec-recommendation parse failure (
:1633), PR-after-exec create failure (:2189), and checkpoint commit failure (:2568, which leaves work uncommitted). #1340 fixed one more site. That is a separate class issue, not part of #1341.What this means for #1341
AC-1 as filed adds a prose line for
$PR_BODY. That leaves step 1's state dependency, the second unbound input. The fix that removes the cause moves §6i's inputs intoprecheck.ts: parse ACs from the issue body directly (no state) and fetch the PR body deterministically. That also covers consumer projects and runs without spec, and shrinksqa/SKILL.md. Precheck is a script, though, and cannot read the prompt, so under--no-prit would need a source a script can read instead ofpromptContext. Owner fork.[-]fix(qa,run): close the PR-body evidence delivery gaps — §6i names its $PR_BODY source, the orchestrator confirms markers landed, --no-pr threads exec's summary to QA[/-][+]fix(qa,run): §6i's inputs move into precheck.ts (ACs from the issue body, PR body fetched), --no-pr reads a worktree exec-summary file, and the orchestrator confirms markers landed[/+]