Skip to content

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

Open

Description

@admarble

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:

  1. 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.
  2. A failed write is silent for QA. createPR writes the body after exec. If that write fails or drops content, the run only warns (ADR-0004 Consequences: "only its body is stale"), and QA grades the stale body with no signal. This is the bug(run): GitHubProvider.postComment ignores gh's exit status, so a failed QA verdict post is silent #1312 class: a write that is never confirmed.
  3. --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.)
  4. §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.

Non-Goals

Graph metadata

  • Blocked by: none

Refs #1316, ADR-0004, #1312, #1311

Activity

  1. admarble commented on Oct 6, 2026

    @admarble
    ContributorAuthor

    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

    New: §6i step 1 has a second unbound input, the ACs from state

    Gap 2: a failed write is silent. Two paths, two origins

    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.

    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 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.

  2. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions