Skip to content

feat(ship): batched specialists per shard; skip the coverage audit at zero code paths; gate-scan summary (GSTA-167) - #3625

Closed
garrytan wants to merge 2 commits into
gsta-167-review-packetsfrom
gsta-167-batched-review
Closed

garrytan wants to merge 2 commits into
gsta-167-review-packetsfrom
gsta-167-batched-review

Conversation

@garrytan

Copy link
Copy Markdown
Owner

Stacked on #3621 (reviewer packets). Part of GSTA-167 / GST-134. Draft until the no-loss replay runs both arms and #3621's final head is merged in.

What changed

  • Batched specialists per shard. At every depth, gstack-review-packet build packs every selected specialist of a pass into one specialist batched packet per shard that inlines all selected checklists, over the diff every selected specialist would read (only the exclusions they share). The reviewer ends with COVERED: a,b,…; a selected checklist missing from that line is uncovered= and REVIEW_COVERAGE_INCOMPLETE. One switch (SPECIALIST_PACKING) and --fanout parallel restore one packet per specialist. Red Team, adversarial, outside voice, fix-check and audits stay separate; selection and depth are unchanged.
  • Step 7 skips the coverage audit dispatch at zero code paths (docs, data or tests only) with an AUDIT_SKIPPED: line; the gate records its zero-paths row. The audit packet is audit-only and read-only (the parent writes and runs tests).
  • Gate scan prints a summary and an index line per hunk, no hunk text, for both /ship and /review; hunks go to the packets that read them.

Why

Replays on gstack-evals #36 and #34 showed one reader per specialist per shard (up to 14 readers at ≥0.5M each), a 1.84M coverage audit on a docs-only diff, and 45 KB of gate hunks carried in the parent's context.

Tests

8 new failing-first tests; 4 existing tests pass --fanout parallel because the default changed. test/ship-skip-actor.test.ts times out 4 cases at 1a558de with or without this change (pre-existing on the base).

Open in Capy

…ths, gate-scan summary for the parent (GSTA-167)

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

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

# Conflicts:
#	bin/gstack-review-packet
#	lib/review-packet-collect.ts
#	lib/review-packet.ts
#	scripts/resolvers/review-army.ts
#	ship/sections/review-army.md
#	ship/sections/test-coverage.md
#	ship/sections/test-coverage.md.tmpl
#	test/review-packet.test.ts
#	test/size-ledger/ship/gsta167-review-packets.json
@capy-ai

capy-ai Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Superseded by #3633 (combined with #3627 on main).

@capy-ai capy-ai Bot closed this Oct 30, 2026
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