Skip to content

v1.92.52.0 ship: the parent runs Step 9.2.1's QA probes; the pass refuses a QA reader (GST-450) - #3686

Merged
capy-ai[bot] merged 12 commits into
mainfrom
gst-450-qa-parent
Nov 2, 2026
Merged

capy-ai[bot] merged 12 commits into
mainfrom
gst-450-qa-parent

Conversation

@garrytan

@garrytan garrytan commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3686,
  "head": "ebadd1e2707ffc4cb89eb6cabc499ddabaef6897",
  "version": "1.92.40.0",
  "base": "main",
  "gate": {
    "typecheck": {
      "pass": 1,
      "fail": 0,
      "skip": 0
    },
    "focused": {
      "pass": 274,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "07d7b762234ac2d9f6058a077ac31c692d3d0594",
  "product_patch_id": "481e3cf611a280d98b89bd40da5eb6249104eaae",
  "gstack_version": "1.92.40.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 37,
    "rules": "150435b0a543019a",
    "base": "6ffbfb8ef1d7d64113f7768b9819b1bd48148e17",
    "registry": "6ffbfb8ef1d7d64113f7768b9819b1bd48148e17",
    "gate_scan": {
      "tagged": 0,
      "head": "ebadd1e2707ffc4cb89eb6cabc499ddabaef6897"
    },
    "reasons": [
      "runtime=37<=50"
    ]
  },
  "pregate": "requires-remote cleared @07d7b762234a (1 checks, current for ebadd1e2707f)",
  "requires_remote": [
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41349223722",
    "pregate.json/remote_gate: remote-gate tree=07d7b762234a tests=651"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3670
    ],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/review-policy.md, ship/DRIVER.md(.tmpl), capy/skill/gstack/SKILL.md, ship/sections, changelog.d/gst-450-qa-parent.md"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 4,
    "fixed": 4,
    "scope": "frozen",
    "fix_checks": 6,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  }
}

What changed

Phase 4: the parent runs Step 9.2.1's probes after Step 8.1, inside the program it already makes

Phase 4: the parent runs Step 9.2.1's probes after Step 8.1, inside the program it already makes.

Before/after as text: Phase 4: the parent runs Step 9.2.1's probes after Step 8.1, inside the program it already makes
--- Before · ship/DRIVER.md.tmpl § 4. Judgment: Steps 8.1, 8.2, 9.3, 9.4 and Step 11 at 088bfc5 · source text
+++ After · ship/DRIVER.md.tmpl § 4. Judgment: Steps 8.1, 8.2, 9.3, 9.4 and Step 11 on this branch · source text
 ## 4. Judgment: Steps 8.1, 8.2, 9.3, 9.4 and Step 11
+Step 8.1, 9.2.1's probes, 8.2 (`Scope Check:`) on the todos and commits files, then the core checklist, Steps
-Steps 8.1 and 8.2 (`Scope Check:`) on the todos and commits files, then the core checklist, Steps
 9.3, 9.4 and the repeat decision as written (`gstack-review-plan` included;
 `JUDGMENT: ok` before any fix), fixes and persistence in
 one program. Prints `Pre-Landing Review:`, `Gate edits:`. `NEXT: stop` stops; `full` or

Phase 3: no QA reader subagent, only 9.2.1's Reads

Phase 3: no QA reader subagent, only 9.2.1's Reads.

Before/after as text: Phase 3: no QA reader subagent, only 9.2.1's Reads
--- Before · ship/DRIVER.md.tmpl § 3. Audits and review: Steps 7, 8, 9, 9.1, 9.2, 9.2.1 at 088bfc5 · source text
+++ After · ship/DRIVER.md.tmpl § 3. Audits and review: Steps 7, 8, 9, 9.1, 9.2, 9.2.1 on this branch · source text
 ## 3. Audits and review: Steps 7, 8, 9, 9.1, 9.2, 9.2.1
 One program: the audit readers `READER:` names (Step 7 from `sections/test-coverage.md`, Step 8 from
+`sections/plan-completion.md`, each run as written; Step 7 may write tests, so it settles first), 9.2.1's Reads only and the pass
+(above): Step 9's plan and start, Step 9.1's specialists and 9.2's Red Team from
+`sections/review-army.md` as written. `Coverage:` and Step 8's line come from `--audit` when no
-`sections/plan-completion.md`, each run as written; Step 7 may write tests, so it settles first), Step 9.2.1's QA reader (that step of
-`sections/review-army.md` as its brief) and the pass (above): Step 9's plan and start, Step 9.1's
-specialists and Step 9.2's Red Team as written. `Coverage:` and Step 8's line come from `--audit` when no
 reader ran.

Why

Step 9.2.1 says "Only the parent runs report-only discovery," but since #3648 the /ship driver sent it out as a QA reader subagent, so the reader refused on every pass and the parent ran the probes afterward anyway (handoffs/GSTA-167/replay-c4-36.md:34, replay-c5-36.md:41). Now the parent runs the probes inside Phase 4's existing program, after Step 8.1 collects the plan checks, and the pass program refuses a QA extra before it creates any reader.

Blast radius

The change touches the /ship driver (ship/DRIVER.md and its template), the Capy skill's extras line, lib/review-pass.ts's extras guard and docs/review-policy.md. It is safe because the guard only refuses extras named qa or carrying the section's parent-only line; the Step 7 and 8 extras still run (review-pass test 'extras as JSON', script ran). The section text in ship/sections/review-army.md is unchanged.

Approvals

No approvals recorded for branch gst-450-qa-parent.

Summary

/ship on Capy wasted a reader call each pass on a QA subagent that always refused, because the driver contradicted its own section. The fix follows the section: Phase 3 does 9.2.1's Reads only, and Phase 4 runs Step 8.1, then the probes, then Scope Check, dedup and Fix-First. The record's Checks heading names Exploratory QA:, and the pass program stops on a QA extra.

How it broke: #3544 (v1.91.309.0) added the parent-only line to Step 9.2.1. Before #3648, ship/SKILL.md inlined the whole review-army section, so the parent ran 9.2.1 itself. #3648 (v1.91.345.0) turned it into a QA reader, and #3665 (v1.91.362.0) told the Capy skill to put it in extras.

Merge of main 6ffbfb8 (v1.92.40.0, with #3670 and #3696 landed), under the Captain's Rule 19 grant: four files conflicted. The capy skill takes main's paragraph and reads "Steps 7, 8 and 14.5 (step: "14.5") use extras"; the record takes main's shorter wording and adds Exploratory QA:; Phase 3 becomes "9.2.1's Reads only and the pass (above): Steps 9-9.2 from sections/review-army.md as written."; test/review-pass.test.ts keeps this PR's QA-extra test and all of main's new tests. ship/DRIVER.md renders at 12,283 of 12,288 bytes, 3 under #3696's landed 12,286.

Trial merges (Rule 25) at ebadd1e: #3702 (c5036a6) and #3820 (f4cd041) merge cleanly, DRIVER.md at 12,283 bytes. #3698 (0003d49) conflicts in capy/skill/gstack/SKILL.md, ship/DRIVER.md(.tmpl) and test/ship-driver.test.ts: take #3698's lines and drop 9.2.1, so the audit readers read "Audit readers (Steps 7, 8, 14.5) cannot block, so each runs at low effort on a small model, Step 14.5 once on Sonnet 5.5; findings go to the PR body" in the driver and in the ship-driver assertion; that trial renders 12,281 bytes and ship-driver, context-budget-ratchet and gen-skill-docs-checks pass 79/0. #3798 (38f1619) conflicts in capy/skill/gstack/SKILL.md (take #3798's line, drop 9.2.1) and test/review-pass.test.ts (this PR's plan extra with #3798's host(dir, ...)); that trial passes ship-driver and context-budget-ratchet 29/0 and the three touched review-pass tests 3/0.

Test Coverage

All new code paths have test coverage (Coverage: deterministic; each of 4 changed runtime files has a changed test naming it).
Failing-first: on main, the ship-driver 9.2.1 test and the audit-readers line failed, and the review-pass QA-extra test created 3 readers where 0 were expected. The directory-prompt test failed on EISDIR before the guard read moved into a try. All of these pass on this branch.
Tests ran: typecheck count unavailable
Tests ran: focused 274

Pre-Landing Review

Pass 1 found 2 INFORMATIONAL issues, both auto-fixed: a vacuous ordering assertion and stale "QA reader" comments. Step 11's native adversarial review found 4: two were fixed (the byte trim had dropped "in its words" from the record's Decisions heading, which is now restored, and a directory prompt threw a raw EISDIR). One was deferred (#3688) and one was noted. Pass 2's red team found 1 CRITICAL, fixed: Phase 4 ran the probes before Step 8.1 collected the plan checks. Two red-team findings were noted. All three fix-checks were clean. After the base merge of main 2d1b55d (f02a104), the receipt carry refused because GST-482 changed the context around two unchanged lib/review-pass.ts hunks; a fourth fix-check over those hunks in their new context was clean (NO FINDINGS). A second base merge (main 3f79d81, v1.92.10.0) brought GST-619's two scoped-pass tests, which passed a qa extra that this PR refuses; they now pass a Step 8 plan audit extra, and a fifth fix-check over that change was clean (NO FINDINGS). After the merge of main 6ffbfb8 the product diff moved, so a sixth fix-check read the resolution (remerge diff, fresh machine): one INFORMATIONAL finding, fixed in ebadd1e (the changelog fragment still said the skill lists only Steps 7 and 8 as extras).
REVIEW_LOOP: passes=2 blocking_found=1 deferred=0 noted=4 fixed=4 scope=frozen fix_checks=6 dispatches=8
Gate edits: none detected (4 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: openai/gpt-6.1-sol, no actionable findings.

Deferred findings

Blocking findings in code this PR did not change (review scope: frozen); filed as issues and not closed by this PR.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL ship/DRIVER.md.tmpl:85 Phase 4 program now holds up to 5 min of QA probes plus judgment and fixes; a 600 s execute default could cut it off
  • INFORMATIONAL ship/DRIVER.md.tmpl:39 The 200 s return rule has no resume path for 9.2.1 probes, whose smoke budget is 5 minutes plus required plan checks
  • INFORMATIONAL ship/DRIVER.md.tmpl:85 Phase 4 as one pre-written program sits awkwardly with 9.2.1's await-before-acting rule; QA defects reach 9.3/9.4 only mid-program, and a faithful run may split the phase
  • INFORMATIONAL test/ship-driver.test.ts:222 (fix-check 3) a Value comment still says QA coverage was empty for C4-36/C5-36, where the replays show the parent ran the probes after the refusal

Exploratory QA

The parent ran the probes itself, as this PR's driver now says. Surface: functional (lib/review-pass.ts extras through the Capy pass program, and the ship/DRIVER.md contract), with no plan file bound. The revalidation at 55fad6a passed 3 of 3: a non-QA extra runs; a QA extra, by name or by brief, and a directory prompt stop with 0 readers; and the driver orders Step 8.1, the probes, 8.2 and 9.3. The first probe set was inconclusive because one capture's name filter matched no test, and it is kept as history.

Eval Results

The eval selector picked 260 dependent gate cases from lib/review-pass.ts, which is about the whole gate. They are deferred to the merge train's gstack/full-gate, because this lane's spend cap is $15.

Scope Drift

Scope Check: CLEAN

Plan Completion

Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches).

Issues

Refs #3670

Verification Results

No Step 8.1 obligations (no plan bound).

TODOS

No TODO items completed in this PR.

Documentation

Status: updated (one factual correction, no blockers)

Scope: base 088bfc5 to head bf3ba5d on gst-450-qa-parent, 7 committed files (no staged, unstaged or untracked content). Audited the driver, the Capy skill, the ship review-army and plan-completion sections, the ship section index and docs/review-policy.md against the change that moves Step 9.2.1 Exploratory QA back to the parent and makes gstack-review-dispatch pass refuse a QA extra.

Documentation health:
docs/review-policy.md Updated (verbatim dispatch item 6: the pass stage now lists 'the specialists with the other audit readers' and states that a QA extra is refused because Step 9.2.1's probes are the parent's)
ship/DRIVER.md(.tmpl) Current (changed in this branch; template and output agree)
capy/skill/gstack/SKILL.md Current (changed in this branch; extras are Steps 7, 8 and 14.5, never 9.2.1)
ship/sections/review-army.md Current (Step 9.2.1 already parent-only)
ship/sections/plan-completion.md Current (handoff to 9.2.1 matches the new Phase 4 order)
ship/SKILL.md Current
changelog.d/gst-450-qa-parent.md Current (matches the diff)

Coverage: the QA-extra refusal is documented in the changelog fragment (reference) and docs/review-policy.md (explanation); the Exploratory QA: record line is in ship/DRIVER.md. No new public surface lacks coverage.

Diagram drift: none; no diagram references the changed components.

Test plan

  • bun run typecheck: pass
  • focused at c368bd6, after the merge of main 6ffbfb8 (ship-driver, review-dispatch, gen-skill-docs-checks, parity-suite, skill-md-size, module-size-ratchet 130; review-pass 46; context-budget-ratchet and context-bill 98): 274 pass, 0 fail; ebadd1e changes only the changelog fragment
  • remote pregate (UBI_OWNER=gsta167) at tree 07d7b762: 651 tests, 0 failed, $0.05
  • CI at ebadd1e: all checks passed

garrytan and others added 2 commits October 31, 2026 12:12
…ection says; the pass program refuses a QA extra (GST-450)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan and others added 4 commits October 31, 2026 12:42
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tra is refused (GST-450)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	test/review-pass.test.ts
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai

capy-ai Bot commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Note from the pick-up triage (GSTA-246): #3688 was filed against this PR's QA refusal. readManifest resumes a manifest written before the refusal existed, so a resumed pass can still dispatch an audit/qa reader. Since the refusal only exists in this PR, I closed #3688 on main; please cover the resume path here (check the guard when a manifest is resumed, not only when it's built).

garrytan and others added 3 commits November 1, 2026 20:47
…qa-parent

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	capy/skill/gstack/SKILL.md
#	ship/DRIVER.md
#	ship/DRIVER.md.tmpl
#	test/review-pass.test.ts
…he merge of main

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title ship: the parent runs Step 9.2.1's QA probes; the pass refuses a QA reader (GST-450) v1.92.52.0 ship: the parent runs Step 9.2.1's QA probes; the pass refuses a QA reader (GST-450) Nov 2, 2026
@capy-ai
capy-ai Bot merged commit dac7137 into main Nov 2, 2026
55 checks passed
garrytan added a commit that referenced this pull request Nov 2, 2026
…cond Rule 19 grant)

Resolve the #3686 conflict only: the audit-readers line reads 'Audit readers (Steps 7, 8, 14.5) cannot block, so each runs at low effort on a small model, Step 14.5 once on Sonnet 5.5; findings go to the PR body' in DRIVER.md(.tmpl) and its test; capy SKILL.md:49 takes #3686's 'Steps 7, 8 and 14.5' plus this PR's phrase edits.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant