Skip to content

v1.91.345.0 feat(ship): compact driver plus preflight/release bins over the restored reviewers (GSTA-167) - #3648

Merged
capy-ai[bot] merged 22 commits into
mainfrom
gsta-167-turns
Oct 31, 2026
Merged

capy-ai[bot] merged 22 commits into
mainfrom
gsta-167-turns

Conversation

@garrytan

@garrytan garrytan commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3648,
  "head": "3a124e77ef6cc9f8409966e3471fcca8d084bf49",
  "version": "1.91.342.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 32221,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "b5085a75afad914d81ee0e6cfccd87db048e3e43",
  "product_patch_id": "d6136e57cc9a9efc888af9376948a327e03f6706",
  "gstack_version": "1.91.342.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 2353,
    "rules": "55726fab80631072",
    "base": "53522b1bbc60b3dc820842371f80ebc9db7911ec",
    "registry": "53522b1bbc60b3dc820842371f80ebc9db7911ec",
    "gate_scan": {
      "tagged": 1,
      "head": "3a124e77ef6cc9f8409966e3471fcca8d084bf49"
    },
    "reasons": [
      "gate-class",
      "runtime=2353>50"
    ]
  },
  "pregate": "requires-remote cleared @b5085a75afad (1 checks, current for 3a124e77ef6c)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/41146646880",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41146646880",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41146646851",
    "pregate.json/remote_gate: remote-gate tree=b5085a75afad tests=24081"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      3633,
      3637
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md and docs/ (re-audit docs-a2-3648 after the main merge; branch doc patches re-read)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 11,
    "deferred": 0,
    "noted": 20,
    "fixed": 21,
    "scope": "frozen",
    "fix_checks": 5,
    "dispatches": {
      "specialist": 12
    }
  }
}

What changed

Before and after: what a parent agent reads and how many calls /ship's mechanics take

Before: a parent agent runs /ship by reading the 61 KB skill and doing Steps 1-3, 5, 12 and 15-17 one shell call at a time. After: it reads a 9 KB driver and runs those steps through two commands. Reviewer briefs stay exactly as they are on main.

/ship now takes fewer agent turns. Each turn of a parent agent costs about 0.25-0.4M tokens on Capy (gstack-evals #36 replay 4: Steps 9-11.5 cost 14.65M and Steps 12-17 cost 12.19M, mostly in parent turns), so the savings come from making fewer calls, not from giving reviewers less to read.

  • gstack-ship-preflight does Steps 1-3 and Step 5 (branch guard, status, fetch, diff stat, PR and receipt carry, scope, base merge, distribution, policy, runtime lines, the pregate and every test lane) in one call that prints at most 30 lines.
  • gstack-ship-release does Step 12's version, Steps 15-16's release commit and verification, and Step 17's push. Under queue_mode stamp-at-merge or changelog_fragments the version step prints VERSION: skipped (policy: ...) and writes nothing; under changelog_fragments its NEXT: names the branch's own changelog.d/<slug>.md, and finish commits that fragment as release metadata.
  • ship/DRIVER.md is a short driver a parent agent reads instead of the whole skill. Its audit, review, adversarial and documentation phases tell the agent to run those sections exactly as written.
  • The token budget counts only this agent's own work. The Capy meter reads the agent's own thread (subagents included) inside the same program as the budget command. A reviewer batch is measured only between a reading right before its reviewers start and one right after they finish, so the parent's own work no longer inflates reviewer prices. Steps are priced at the run's own median cost per call. The small-run rule keeps light diffs in one context instead of paying 2-4.5M to start a child, and /ship runs the budget in observe mode: it records tokens and credits per program and stops only past the cap.
  • Handoff briefs list exact line ranges for the child to read. Every section is read whole, so reviewer briefs are the section's own text.
  • gstack-review-dispatch is the hash-checked brief and collect gate described below.

The hash-checked brief and collect gate

No-loss round 4b found that 75 of 112 dispatched briefs differed from the rendered ones, and one arm lost 8 blockers. bin/gstack-review-dispatch closes both ends without changing what any reviewer reads:

  1. render cuts each reader's brief out of its section and fills only declared slots (diff base, excludes, stack, learnings, checklist paths, the Red Team's findings, the outside voice's diff). A section that lost an anchor refuses instead of rendering something else.
  2. sent hashes the prompt a dispatch actually passed. A hash that differs from the rendered brief is BRIEF_MISMATCH, and that review does not count.
  3. collect is the only way findings reach merged.jsonl. It hashes the raw output and keeps every label as written, wherever it stands on the line.
  4. judge lets lead judgment add or promote a finding, with a logged reason, and fold a duplicate into one at least as severe. It refuses any judged set that drops or downgrades a collected finding, including one built from a merged file that leaves a collected id out.
  5. verify --ledger replays all of it from the run's ledger, per render: each pass's sends against that pass's brief, a collected output for every sent reader, output hashes against merged lines, and a fresh rerun of the judgment. It prints VERIFY: clean only when nothing was lost. A mismatched send that was re-sent exact before anything was collected shows as voided=N.

This /ship dogfooded it. On pass 2 the parser from my own pass-1 fix kept only 3 of the adversarial reader's 7 findings. Re-collecting with the fixed parser picked up all of them: the ledger shows three collects of that output, and the duplicates are folded, never dropped. The run's ledgers verify clean:

pass 1: VERIFY: clean briefs=7 outputs=7 voided=0
pass 2 + fix-checks: VERIFY: clean briefs=14 outputs=16 voided=0

The honest #36 replay (GSTA-189) at adfd172: VERIFY: clean briefs=16 outputs=16 voided=1.

Replay costs

All numbers are this thread's own counter (cost.tokens, cost.credits), setup excluded.

Arm gstack-evals #34 gstack-evals #36
C (control, main) 44.9M tokens (replay 6C) 52.5M tokens, stopped in Step 9 (replay 6C)
E (review segment + docs reader) 34.7M tokens (replay 7E) 45.5M tokens (replay 7E)
G (this PR's driver, observe mode) 20.4M tokens / 7,683.88 credits ≈ $11.53 (replay 8G) 32.8M tokens / 9,016.06 credits ≈ $13.52, no outside voice (replay 8G)
G, honest #36 with all 9 reviewers (GSTA-189) 55.7M tokens / 12,607.53 credits ≈ $18.91 (replay 9G)

The 9G run spent 22.9M more than 8G: pass 2, both voices and the extra calls. Reports: handoffs/GSTA-167/replay6c-*.md, replay7e-*.md, replay8g-*.md, replay9g-36.md in the GStack Minder drive.

Summary

/ship on Capy takes fewer agent turns, and every reviewer's brief and findings now pass through a hash-checked gate. Two commands do the fixed shell work, a short driver replaces reading the whole skill, and gstack-review-dispatch proves each reviewer got its brief unchanged and that no finding was dropped or downgraded on the way back. Reviewer prompts are byte-identical to main.

Pre-Landing Review

REVIEW_LOOP: passes=2 blocking_found=11 deferred=0 noted=20 fixed=21 scope=frozen fix_checks=5 dispatches=12

  • Pass 1 (9 readers, full depth): 3 CRITICAL (release-path bypass for package.json and bun.lock, verify could print clean without proving no loss, judge accepted self-folds and fold cycles) and 7 informational, all fixed in 530daf0.
  • Pass 2 (9 readers on the fix range): 4 CRITICAL in the pass-1 fix (labels not first on the line were dropped at collect, judge over a merged subset, a sent reader never collected, release paths decided before --build), fixed in e0c3868; 10 below the floor, listed under Review notes.
  • Fix-checks: the first found 2 CRITICAL (an indented bold sub-line ended a label section; no path for a failed reader), fixed in adfd172 together with the Captain's per-render verify change; the second found 1 CRITICAL (a shared briefs directory read as tampered), fixed in d0ae523 under GStack Minder's CREW 23 word; the third found nothing at the floor. After the one merge of main at 53522b1 (GStack Minder's Rule 19 grant; v1.91.342.0 ship-policy: gstack versions its own PRs at merge time (changelog_fragments on; GSTA-154 P) #3654 turned on changelog fragments), the fourth checked the merge's two resolution hunks and found 1 CRITICAL: releasePaths did not count the branch's changelog.d/<slug>.md as release metadata, so finish would stop on the fragment Step 13 writes under gstack's policy. Fixed in 927c917 under GStack Minder's CREW 23 word, along with the version NEXT line and DRIVER.md Step 13; the fifth found nothing at the floor. The review log holds the third fix-check's row twice; the count here is the five that ran.
  • The docs re-audit after the merge (docs-a2-3648, below) noted that the fragment left out the changelog_fragments skip; that wording was added in 3a124e7, after the audit, and the post-audit snapshot was taken after it.

Gate edits: 88 listed, 57 read, 0 findings. The one tagged hunk (RH-16, lib/ship-budget.ts: observe mode removes the reservation marker) was read; observe mode reserves nothing, so it is not a relaxation.

Reviewer briefs are byte-identical to main

No-loss round 3 showed that shortening what reviewers read loses blockers, so this PR leaves every reviewer brief alone:

  • I rendered all 13 hosts at main (ae3d58c) and at this branch and normalized the output path. Only ship/SKILL.md, sections/budget-handoff.md, sections/tests.md and the new ship/DRIVER.md differ. All 100 reviewer files are identical: specialists, Red Team, adversarial, outside voice, checklists, test-coverage, plan-completion and documentation.
  • gstack-review-plan output (pass 1, 2 and 3, --json, the fix-check prompt) is identical on the sample diff 959c8a6..9184ffd.
  • The full output is in the GStack Minder drive at handoffs/GSTA-167/turns-parity.txt.
  • test/review-packets-removed.test.ts now pins the sha256 of the reviewer briefs, the checklists, the fix-check prompt and the depth rules. Changing any of them fails the test until it is repinned with a no-loss replay id.

No-loss round 4 is still running. If it shows a loss for this branch, this PR gets reverted.

Why

The Captain moved GSTA-167's cost work from reviewer context to agent turns, the compact driver and the preflight and release commands, on top of the restored reviewers from #3638. Garry: "ship the best cheaper one for now".

What was left out, and why

These parts of #3633 and #3637 are not in this PR, because each one changes what a reviewer sees, which reviewers run, or how findings are rated:

  • gstack-review-packet and its libraries, parallel or batched fanout, --like, collect, and pricing reviewers by packet size
  • moving the Step 7 and Step 8 audit prompts into separate packet-only sections
  • the docs-audit packet and gstack-docs-candidate apply (driver fix 3 was skipped because the docs audit is itself a reader that rates findings)
  • edits to review-army, adversarial, outside-voice, review-collect and review-policy
  • the gate-scan block that prints only a summary in review/SKILL.md
  • the review-plan change that keeps every specialist when the diff scope can't be read. It's a real fix, but it changes which reviewers run, so it needs its own no-loss replay.

Open product question (driver fix 4)

gstack-ship-release version skips the version bump only when the repo's ship policy says queue_mode stamp-at-merge. gstack-evals has no .gstack/ship-policy.json; its CHANGELOG just says unit PRs leave VERSION alone. So the gstack-evals #34 replay would still bump the version. Fixing that takes one of two things: gstack-evals adds a ship policy, or gstack gets a new policy setting (for example bump: never). That's a product decision for Garry.

Review notes

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

  • INFORMATIONAL lib/ship-release.ts:214 sealed guard fail-closed branch untested
  • INFORMATIONAL lib/review-ledger.ts:175 rerun_rejects and judged_or_merged_unreadable untested
  • INFORMATIONAL lib/ship-bin-common.ts:101 no test edits TODOS.md after a lane receipt
  • INFORMATIONAL lib/ship-bin-common.ts:75 versionOnlyEdit untested for package-lock and new manifests
  • INFORMATIONAL test/ship-release.test.ts:119 no recorded fails-before run for the pass-1 regression tests
  • INFORMATIONAL lib/ship-release.ts:168 version-only check uses the reviewed tree, not the lane evidence tree; not a regression
  • INFORMATIONAL lib/review-ledger.ts:180 judge events from before the upgrade fail verify; an open ledger with delegate measured runs as auto
  • INFORMATIONAL lib/review-ledger.ts:47 phantom findings from label words in prose cannot be dropped, only folded
  • INFORMATIONAL lib/ship-audit.ts:84 single tree read decodes binary files as text
  • INFORMATIONAL lib/review-ledger.ts:61 nested evidence bullets inherit the heading label

Follow-ups below the blocking floor

These were found during this /ship and left for a follow-up because none of them would fail a test, break production, or lose data:

  • judge expects one merged file per ledger. A run that keeps one merged file per pass is refused until the files are concatenated (GSTA-189). Either accept per-pass files or have DRIVER.md say one merged file per run.
  • A reader rendered twice before it is sent shows a NOT_SENT row for the first render.
  • An unindented bold-only sub-line (**Fix:**) still ends a label section.
  • collect cannot tell which subagent produced an output, so a voided mismatched send cannot be told apart from the exact re-send by the ledger alone.
  • Label words in prose (0 CRITICAL, LOW_WATERMARK) become findings the judge can fold but not drop, and the first label on a line wins, not the strongest.
  • No test exercises file_changed_since_render after the newest-render narrowing.
  • Coverage gaps: the sealed-guard fail-closed branch, rerun_rejects and judged_or_merged_unreadable, a TODOS.md edit after a lane receipt, and versionOnlyEdit for package-lock.json and new manifests.
  • lib/ship-audit.ts reads the whole tracked test tree once (about 43 MB here), binaries included.
  • Judge events written by ac3bd7b's binary lack judged_sha256 and merged_ids, so judge must be rerun once with the new binary before verify.
  • The version-only check for package.json uses the reviewed tree, not the lane evidence tree (not a regression).
  • Step 7's coverage audit: lanes()'s malformed --lane branch and Report.render's over-MAX_LINES cap in lib/ship-bin-common.ts have no tests.
  • gstack-ship-preflight's POLICY: line prints four policy keys but not the ship: lines (the changelog_fragments one included) that Step 3 says it carries (fix-check 4, informational).
  • DRIVER.md Step 13 says to write the entry "where NEXT: says"; in a repo with no version source the version step's NEXT line names no file (fix-check 5, informational).
  • gstack-ship-receipt carry treats changelog.d/<slug>.md as a product file (lib/ship-receipt.ts:151), so moving an entry into a fragment loses the carry. GStack Minder is filing it for the changelog-fragments owner; not fixed here.
  • Test timing: one review-plan-cli case takes about 5.9 s against bun's 5 s default on a 4-core machine, and ship-section-fixture's shard-retry case once saw a leftover gstack-ship-secload-* temp dir and passed on its rerun.

Documentation

Status: current. The audit made no edits and found no blockers.

Scope: base 53522b1bbc60b3dc820842371f80ebc9db7911ec to HEAD 927c917b890a, which matches the candidate head. That covers 71 committed files, with nothing staged, unstaged or untracked. 130 candidate docs were inventoried. I re-audited this branch's own doc patches after the main merge (v1.91.342.0, changelog_fragments). Only ship/DRIVER.md(.tmpl) Step 13 and the ship/SKILL.md.tmpl POLICY line changed since the a1 audit. Both match lib/ship-release.ts and lib/ship-preflight.ts.

Documentation health:

  • ship/DRIVER.md, ship/DRIVER.md.tmpl: current. Step 13 writes the entry where gstack-ship-release version's NEXT: says: the fragment under changelog_fragments, [Unreleased] under stamp-at-merge, or the version heading otherwise.
  • ship/SKILL.md.tmpl: current. The preflight ship: lines bind Steps 12-16, matching the preflight POLICY line.
  • capy/skill/gstack/SKILL.md: current.
  • docs/ship-budget.md: current.
  • docs/ship-policy.md: current. Its changelog_fragments row already says Step 12 writes no version and Step 13 writes <dir>/<branch-slug>.md.
  • docs/review-policy.md, docs/troubleshooting.md, docs/unattended.md, docs/capy-install.md: current.
  • changelog.d/gsta-167-turns.md: not edited (release metadata). It omits that the version step also skips under changelog_fragments; the parent owns that wording.
  • README.md, AGENTS.md, CLAUDE.md: current. No skill table or project-structure change is needed.

Coverage debt:

  • BRIEF_MISMATCH, BRIEF_RENDER_FAILED, JUDGMENT_REJECTED and VERIFY: no brief records have no docs/troubleshooting.md anchors (reference gap).
  • gstack-review-dispatch is documented only as reference in docs/review-policy.md, with no how-to.
  • gstack-ship-preflight and gstack-ship-release are documented only in ship/DRIVER.md, docs/ship-budget.md and the fragment, with no how-to.
  • Running /document-generate would cover these gaps.

Diagram drift: none found.

Blast radius

These change: the brief and collect gate around every /ship reviewer (prompts are unchanged; how they are passed and collected is checked), /ship's mechanics on every host (Steps 1-3, 5, 12 and 15-17 now go through the two commands), gstack-ship-budget, the handoff brief, and the Capy launch file, which now adds the checkout's bin/ to the end of PATH. Reviewer prompts, review depth and finding rules do not change.

Approvals

Date Ask Words Covers
2026-10-30 Ship the cheaper /ship now, while no-loss round 4 runs Garry: "ship the best cheaper one for now" (relayed by the Captain) this PR; it gets reverted if round 4 shows a loss

Issues

Refs #3633
Refs #3637

Test plan

  • bun run test:ubicloud (free lane on Ubicloud) at 3a124e7: pass, tests_ran=32221 (evidence FRESH).
  • Focused set (54 files, parity and module-size ratchet included) at 927c917: green except one flaky case that passed on its rerun at the same tree; bun run typecheck, typecheck:test, gen:skill-docs (default and codex) clean.
  • Every regression test added in this /ship fails at the commit before its fix and passes after it, including the changelog-fragments finish test added in 927c917.
  • PR CI green at 927c917 (pull_request runs; the PR merges cleanly since the main merge).

Open in Capy

…light/release bins, own-jam meter, dispatch-pair metering, ship/DRIVER.md

Ports the non-reviewer parts of #3633 (gsta-167-pr34) and #3637 (gsta-167-pr5 @2914400)
onto main ae3d58c (v1.91.331.0). Reviewer briefs, checklists, the fix-check prompt and
the depth rules are byte-identical to main and now pinned in
test/review-packets-removed.test.ts.

Left out: gstack-review-packet and its libs, parallel/batched fanout, --like, collect,
the audit prompt split, the docs-audit packet, review-army/adversarial/outside-voice
edits, the gate-scan summary-only block and the review-depth scope-error change.
Packet-bytes reader pricing is dropped from gstack-ship-budget; handoff READ ranges
send each section whole; the driver runs the audit, review, adversarial and
documentation sections as written.

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

trunk-io Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 5 commits October 30, 2026 14:24
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

# Conflicts:
#	CHANGELOG.md
#	docs/capy-install.md
…s captured value after the main merge (own-jam meter, driver and reviewer-batch prose, GSTA-167)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…emplate to its test lane (GSTA-167)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…inimal setup checkout still renders (GSTA-167)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… it launches the shebang bin and sh stubs directly (GSTA-167)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot marked this pull request as draft October 30, 2026 14:59
garrytan and others added 14 commits October 30, 2026 15:28
…Step 14.5 audit, the review child starts at Step 9, a metered dispatch:docs role, and the driver's record headings (GSTA-167)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… a clean pass, at most 12), gstack-ship-preflight --audit for single reads and deterministic audits, an observe-mode ledger with note and credits, 240 s wait pings, and small-model audit readers (GSTA-167)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…f with no reading makes it parent-metered (METER: parent), it never delegates on an unknown charge, and reconcile charges the parent's counter delta (GSTA-167 replay 7e)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…mmary, never a fresh idle; return settles the child's open step reservation (GSTA-167 replay 7e)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…estimate meter instead of booking its projection; measured meters still settle it (GSTA-167 replay 7e)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…11 and fix-check below-floor findings are notes at pass 1

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-review-dispatch render/sent/collect/judge/verify)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- verify requires each output's brief rendered and sent verbatim, reruns judge
  against the recorded judged.jsonl hash, and flags outputs collected after judge
- judge drops self-folds, fold cycles and chains
- prose findings parse a leading label or a label heading, not any severity word
- releasePaths: manifests count as release metadata only for version-only edits,
  lockfiles never; TODOS.md stays out of lane-evidence exemptions
- push stops when the sealed-output guard did not run
- ship-audit reads the test tree once instead of one git grep per file
- drop the uncalled --delegate measured mode; doc/help step-number fixes

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- collect keeps a finding wherever its label stands (headings, table rows,
  mid-line, Informational and upper-case labels); only top-level list items
  inherit a label heading, and any heading or bold-only line ends it
- judge treats a merged file missing any collected id as a drop; verify flags
  merged_ids_missing and a sent reader never collected (NOT_COLLECTED)
- finish computes release paths after --build, so a build that rewrites
  package.json is a build-input change

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
- verify treats each render as one dispatch of its reader, so a two-pass
  ledger compares pass-1 sends with pass-1 briefs (later renders print as
  <reader>@2); outputs bind to the latest send of their own render
- a mismatched send re-sent byte-exact before anything was collected is void
  and counted (voided=N on the verdict line); one that produced an output
  stays MISMATCH
- an indented bold sub-line no longer ends a label section (fix-check)
- docs: a failed reader is collected from its failure text

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e; absolute ledger paths

- a later render into the same briefs directory overwrites the earlier brief by
  design, so verify checks a brief file only for the newest render of that path
- collect and judge record absolute output, merged and judged paths, so verify
  reads them from any directory
- docs: a failed reader's failure text is parsed like any output

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>
Rule 19 grant (GStack Minder): one merge of main after #3654. The branch's
CHANGELOG entry moves to changelog.d/gsta-167-turns.md; CHANGELOG.md stays at
main's version. ship/SKILL.md.tmpl keeps the branch's Step 3 text with main's
"Steps 12-16"; ship/SKILL.md and the four ship goldens regenerated.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Fix-check 4 (CRITICAL) after the main merge: releasePaths omitted
<changelog_fragments.dir>/<branch-slug>.md, so finish stopped on the
fragment Step 13 writes under gstack's policy, or routed it to re-review.
version now names the fragment in its Step 13 NEXT line instead of
[Unreleased], DRIVER.md Step 13 writes and lints where NEXT says, and the
preflight POLICY line says Steps 12-16.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan and others added 2 commits October 30, 2026 22:35
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot marked this pull request as ready for review October 31, 2026 00:08
@github-actions github-actions Bot changed the title feat(ship): compact driver plus preflight/release bins over the restored reviewers (GSTA-167) v1.91.345.0 feat(ship): compact driver plus preflight/release bins over the restored reviewers (GSTA-167) Oct 31, 2026
@capy-ai
capy-ai Bot merged commit 2127729 into main Oct 31, 2026
62 checks passed
garrytan added a commit that referenced this pull request Oct 31, 2026
…CRITICAL, batched checklists by name (GSTA-167)

Integrates parts 1 and 2 with gstack-review-dispatch (#3648):
- lib/review-ledger.ts parseFindings: a prose voice's "Blocks: yes" makes its
  own line, or the finding on the line just before it, CRITICAL in
  merged.jsonl (normalizer v2, certified by round 5's G1), so judge refuses a
  lead that keeps it below the floor; with no finding before it the Blocks
  line is its own CRITICAL finding. "Blocks: no" never lowers a label.
- lib/review-brief.ts: the outside-voice brief no longer appends "Give each
  finding a severity"; the section's prompt now asks for Severity and Blocks,
  so the brief is the certified section prompt plus the branch diff.
- bin/gstack-review-dispatch render --checklists takes the plan's
  checklists= names (review/specialists/<name>.md) as well as paths and
  refuses an unknown one, since the batched reader is now every depth's
  specialist dispatch.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot added a commit that referenced this pull request Oct 31, 2026
… floor in both voices, one batched specialist, data-file classifier (#3660)

* feat(review): variant G part 4: data files no code names are docs in classifyDiff, untested state-matrix cells map below the floor per cell (GSTA-167 PR-a)

Part 4a: lib/review-depth.ts owns DATA_PATH (JSON, JSONL, NDJSON, CSV, TSV, raster
images; YAML, TOML and SVG stay code) and applies the data rule only in classifyDiff,
to candidates lib/review-collect.ts finds no non-docs consumer for (git grep of
basenames at head, merge base and, live, the working tree; data-to-data chains four
deep; over 2,000 candidates keeps all code; a grep failure fails closed). classifyPath
and every path-only caller are unchanged; the receipt gate scan decides through
gateScanNeeded (path-only), so it cannot be skipped. gstack-ship-preflight computes
RUNTIME_LINES with classifyDiff over gstack-review-plan --json (now with consumed).

Part 4b: lib/review-scope.ts mapStateMatrixOutput maps an "untested cell" finding to
INFORMATIONAL when its cell has test null in the same output's matrix and it is the
only finding on that cell; gstack-state-matrix findings prints it for Step 9.2 before
the merge. state-machines.md is byte-identical; check still reads the raw output.

Reviewer-brief pins repinned under no-loss replay PR-a (Arm 4: plan identity at the 14
cohort heads; free exact re-score of saved C, D and A' findings).

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

* feat(review): variant G parts 1 and 3: blocking floor in both prose voices, specialists at medium (GSTA-167)

Part 1: the native adversarial and outside-voice prompts end with the blocking
floor ("would fail a test, break production, or lose data or secrets") and ask
each finding for Severity and Blocks: yes|no. Additive rule: a finding is
CRITICAL when its label rule says so or it says Blocks: yes; Blocks: no never
lowers one (proseVoiceSeverity, BLOCKING_FLOOR in lib/review-scope.ts).
Part 3: ROLE_EFFORT puts specialists at medium; Red Team, native adversarial
and fix-check stay full; light's batched specialist (carries the Red Team
prompt) stays full; --no-tiers sends specialists to host.

Repinned reviewer briefs with no-loss replay G1 (live Arm G1, not yet run):
ship/sections/review-army.md, ship/sections/adversarial.md,
review/sections/adversarial.md, lib/review-depth.ts. Merge only on G1's pass.
Review-skill parity ratio 1.3136 -> 1.3180 and the gstack-review size pins
+537 for the approved +0.3k tokens per voice.

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

* feat(review): variant G part 2: lean ensemble, one batched specialist at every depth (GSTA-167)

planReview dispatches one 'specialist batched' at standard and full depth (and
light, which adds the Red Team checklist): Testing and Security always on code
and gate class, plus State-machines, Data-migration, API-contract and Design
when scope asks; a forced checklist always joins. Maintainability, Performance
and Simplification are read only when forced (SKIP names them). LIGHT_FIXED is
[testing, security]; BATCH_SCOPED joins DEPTH_RULES so old receipts re-plan.
The Red Team rule and prompt are unchanged; it reads the batched reader's
merged findings. specialistsFor stays as the legacy selection the dispatch
compare script models.

Repinned reviewer briefs with no-loss replay L (live Arm L, scored L∘G1 vs G1;
not yet run): ship/sections/review-army.md, lib/review-depth.ts. Merge only on
L's pass.

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

* feat(review): variant G on #3648's dispatch: Blocks: yes collects as CRITICAL, batched checklists by name (GSTA-167)

Integrates parts 1 and 2 with gstack-review-dispatch (#3648):
- lib/review-ledger.ts parseFindings: a prose voice's "Blocks: yes" makes its
  own line, or the finding on the line just before it, CRITICAL in
  merged.jsonl (normalizer v2, certified by round 5's G1), so judge refuses a
  lead that keeps it below the floor; with no finding before it the Blocks
  line is its own CRITICAL finding. "Blocks: no" never lowers a label.
- lib/review-brief.ts: the outside-voice brief no longer appends "Give each
  finding a severity"; the section's prompt now asks for Severity and Blocks,
  so the brief is the certified section prompt plus the branch diff.
- bin/gstack-review-dispatch render --checklists takes the plan's
  checklists= names (review/specialists/<name>.md) as well as paths and
  refuses an unknown one, since the batched reader is now every depth's
  specialist dispatch.

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

* chore(changelog): GSTA-167 variant G reviewer stack fragment

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

* fix(review): consumer scan survives grep.lineNumber/grep.column; collect reads separate-line Severity/Blocks

/ship pass 1 (PR #3660): the Red Team CRITICAL at lib/review-collect.ts:120 and the
informational findings in the same batch. proseVoiceSeverity had no caller and is
removed; the normalizer v2 table now runs through parseFindings, the path collect uses.

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

* fix(review): collect keeps every prose blocker and one id per finding

/ship pass 2 (PR #3660): an unlabeled line carrying an inline Blocks: yes collects as
CRITICAL again; Severity/Blocks continuation needs a colon, stops at a list item, heading,
bold paragraph opener or a repeated field, and never swallows a top-level bullet or its
section label; the native voice's FIXABLE collects as CRITICAL under its role with or
without a dispatch name; the consumer scan adds --no-color.

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

* fix(review): a later finding's fields never land on the one before it; explicit Severity wins its line

/ship pass 2 Red Team (PR #3660): prose after a finding's Severity/Blocks field, a
post-blank paragraph or a line in an indented block starts the next finding, and a
line's explicit Severity: label decides it over other label words on the line.

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

* fix(review): FIXABLE outranks a Severity label on its line; a blocker keeps its own id and subject

/ship fix-check (PR #3660): labels are named before the strongest is taken, so a one-line
native FIXABLE ... Severity: Medium collects as CRITICAL; a later finding starts at a
file:line after the open finding's fields, field bullets stay on their finding, a field
line may omit the colon, and continuation prose never replaces a list item's subject.

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

* docs(changelog): GSTA-167 fragment adds round 6 and the collect and consumer-scan fixes

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