Skip to content

v1.92.10.0 fix: /ship's scoped review pass runs again and reads the fix range (GST-619) - #3766

Merged
capy-ai[bot] merged 6 commits into
mainfrom
gst-619-scoped-pass-fixcheck
Nov 1, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
gst-619-scoped-pass-fixcheck

Conversation

@garrytan

@garrytan garrytan commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3766,
  "head": "f8bd24ca26b4b9fd3f5b90de71360a10ea64f23c",
  "version": "1.91.379.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 75,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "ecb887c483094764a2babe8b375d9a9d88d323d2",
  "product_patch_id": "2a315785fa2c473d28c51f82b1f0364bbd45b6b1",
  "gstack_version": "1.92.1.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 26,
    "rules": "150435b0a543019a",
    "base": "4eff47c5cf8464c1537194817ffa8984139d3ca0",
    "registry": "4eff47c5cf8464c1537194817ffa8984139d3ca0",
    "gate_scan": {
      "tagged": 0,
      "head": "f8bd24ca26b4b9fd3f5b90de71360a10ea64f23c"
    },
    "reasons": [
      "runtime=26<=50"
    ]
  },
  "pregate": "requires-remote cleared @ecb887c48309 (7 checks, current for f8bd24ca26b4)",
  "requires_remote": [
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41253394930",
    "pregate.json/remote_gate: remote-gate tree=ecb887c48309 tests=396 receipt=/home/user/.gstack/projects/garrytan-gstack/pregate/runs/20261031T233855Z-173188-9ac9/remote/remote.log sha256=594eaec545c7"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/ and README.md (131 files; review-policy.md, ship-policy.md, troubleshooting.md, unattended.md read)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 10,
    "fixed": 4,
    "scope": "frozen",
    "fix_checks": 2,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  }
}

What changed

Before (main 2d1b55d): the scoped pass is refused with BRIEF_RENDER_FAILED and no reader starts. After (this PR): the pass stages the Red Team, both voices and the QA audit on the fix range, and names the plan's fix-check on its own FIX_CHECK line.

Before (main 2d1b55d), a scoped pass after a blocking fix is refused with BRIEF_RENDER_FAILED and no reader starts. After this PR, the pass stages the Red Team, both voices and the QA audit, and names the plan's fix-check on its own FIX_CHECK: line. The Red Team reads the fix range, and the Step 11 voices still read the whole branch. Both captures come from the fixture in the new test, run on main and on this branch.

Why

After a blocking fix on a small range, gstack-review-plan plans NEXT: scoped: one fix-check, the Red Team and the voices on the range. gstack-review-dispatch pass refused every such plan with BRIEF_RENDER_FAILED: a pass dispatches no fix-check reader, so GEVA-82 had to render its briefs by hand. Even past that refusal, the pass would have staged its readers on the merge base, because the Capy pass program never passes --diff-base. Now pass leaves the fix-check out of the manifest and prints it as a FIX_CHECK: plan line. A scoped pass gives the Red Team the plan's fix_range.base, resolved to a full sha, as docs/review-policy.md describes. Until Step 11 has run, the adversarial pass and the outside voice in a scoped pass are Step 11's own voices, so they keep the merge base and read the whole branch. Once the plan flags carry --adversarial-ran, the whole scoped pass reads the range.

Failing-first proof. test/review-pass.test.ts "a scoped pass after a blocker fix (GST-619)" runs GEVA-2's exact invocation. On main 2d1b55d it fails at line 484 with BRIEF_RENDER_FAILED: a pass dispatches no fix-check reader (fix-check runs on its own), exit 1. On 07c1800 (the fix-check change alone) it fails on manifest.diff_base, which is the merge base instead of the range base. At ad0b7b6, where every scoped reader read the range, both current cases fail. GEVA-2's invocation expects the outside voice on the merge base b15303d… and receives the range base f80b3e1…. The --adversarial-ran case fails its reader-base check. On this branch both pass.

Blast radius

Only pass() in bin/gstack-review-dispatch and the per-reader diff base in lib/review-pass.ts (buildManifest, renderStage) change. Full passes and PASS: none plans behave as before, and the targeted reader keeps the merge base. No reviewer brief, checklist or depth rule changes, so every pin in test/review-packets-removed.test.ts holds and no no-loss replay is needed. No network calls, secrets, permissions, workflows, install scripts or dependencies are touched.

Approvals

No approvals recorded for branch gst-619-scoped-pass-fixcheck. Merges under the crew's standing rule 6 approval, through the train.

Pre-Landing Review

Pre-Landing Review: 4 issues — 4 auto-fixed, 0 asked, 0 deferred, 10 noted (one noted item was later fixed in d78b084 on the Captain's approval)

Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

Pass 1 (full, gate class) ran the batched specialist, the Red Team, the native adversarial pass, an outside voice on gpt-6.1-sol, a coverage audit and exploratory QA. QA ran 7 smoke probes and found no defects. Two readers flagged the Step 9 sentence this branch had added: it pointed the scoped fix-check at decision 3.5, whose hunks (git diff $PASS_HEAD) are empty inside a scoped pass. The remote pregate also failed test/review-packets-removed.test.ts, because that sentence changed the no-loss-pinned ship/sections/review-army.md. The fix restores main's bytes for both review-army files: lines 17-18 there already run the scoped fix-check inside the pass on git diff $RANGE_BASE. It also drops the size-ledger entry and corrects two changelog claims. Pass 2 (full, on the range) found nothing at the blocking floor. The Captain then approved fixing the first noted item below. Commit d78b084 stages Step-11-pending voices on the merge base, and one fix-check on git diff ad0b7b6 found nothing at the floor. The documentation re-audit then corrected the scoped-pass bullet in docs/review-policy.md (f8bd24c), and a second fix-check on that hunk returned NO FINDINGS.

Noted, not fixed (informational, below the blocking floor):

  • Fixed in d78b084: a scoped plan that still owed Step 11 staged its voices on the range base, so the adversarial pass and the outside voice never read the pass-1 diff.
  • From the fix-check: the base is chosen by one plan flag rather than per role. Forced specialists in a scoped pass now read the whole branch before Step 11. A numbers-triggered outside-voice rerun after Step 11 reads only the range, which ad0b7b6 already did. A docs-class scoped adversarial reader reads the merge base. An explicit --diff-base no longer reaches the Red Team, though no shipped caller passes it. The pinned review-army.md line 37 still says every Step 11 prompt from pass 2 on carries RANGE_BASE.
  • Nothing dispatches or verifies the scoped fix-check yet. The FIX_CHECK: line is the only signal, its wording ("Step 3.5 runs it on its own") differs from Step 9's "inside this pass", and the Capy pass program drops that line on resume (lib/capy-review-pass.js:44).
  • A full pass 2 still stages its readers on the merge base, and a scoped pass ignores review_scope all.
  • The guard for a scoped plan with an unreadable range base has no test, and it runs before the --diff-base check.

Sibling trial merge (crew rule 25)

#3736 (GST-507) edits the end of the same bin and is still open. Trial-merged its head 51e6ca3 with this branch at d78b084 in a scratch worktree: no conflicts, and test/review-pass.test.ts plus test/review-dispatch.test.ts passed 72 of 72 on the merged tree.

Documentation

Status: updated. One factual correction to docs/review-policy.md, no blockers.

Scope: base 2d1b55d, head d78b084. Selected files: bin/gstack-review-dispatch, lib/review-pass.ts, test/review-pass.test.ts and changelog.d/gst-619-scoped-pass-fixcheck.md. Nothing was staged, unstaged or untracked. The banned-terms check found none.

Documentation health:

  • docs/review-policy.md: updated. The Behavior changes bullet now says the native adversarial pass reads the fix range only once Step 11 has run, and otherwise reads the whole branch. The scoped-pass section and the targeted-reader and RANGE_BASE text already match the code.
  • docs/ship-policy.md: reviewed, no change.
  • docs/troubleshooting.md: reviewed, no change.
  • docs/unattended.md: reviewed, no change.
  • changelog.d/gst-619-scoped-pass-fixcheck.md: reviewed, protected, no change.

Coverage debt: the FIX_CHECK: planned line has reference coverage only in the changelog fragment. No diagram drift. The ship/ sections and generated SKILL.md files were not read, so their wording is unverified.

garrytan and others added 3 commits October 31, 2026 20:22
… on its own (GST-619)

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>
…dy runs inside the pass (GST-619)

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.

garrytan and others added 3 commits October 31, 2026 23:32
…11 voices keep the merge base (GST-619)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…il Step 11 runs (GST-619)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions github-actions Bot changed the title fix: /ship's scoped review pass runs again and reads the fix range (GST-619) v1.92.10.0 fix: /ship's scoped review pass runs again and reads the fix range (GST-619) Nov 1, 2026
@capy-ai
capy-ai Bot merged commit 3f79d81 into main Nov 1, 2026
62 checks passed
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