Repository navigation
v1.91.362.0 ship: one call per review pass on Capy (GSTA-167 calls PR 2) - #3665
Conversation
…ted fix program; unattended push defers the guard offer; calls meter (GSTA-167 calls PR 1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ACK_SESSION_KIND reader) 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>
…nked briefs, intent before create (GSTA-167 calls PR 2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…g start and stops on a failed reader every run) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ueued readers reconciled and timed out, a budget stop ends the pass) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d briefs via cat (replay C1-34 breaks) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… CLI is given them (PR #3665 review) 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: # capy/skill/gstack/SKILL.md
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…calls-2 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # capy/skill/gstack/SKILL.md
…calls-2 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # capy/skill/gstack/SKILL.md
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/helpers/ship-bin-fixture.ts
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # capy/skill/gstack/SKILL.md
… already consumed Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… a minute for a done reader's summary (replay C2-34) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
E2E Evals: ✅ PASS125 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $32.74 rule/judge cost | reconcile exit: 0 Profile: pr / mode Full gate restored by:
Rule and judge shards
Fail-closed reconciliationSliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry. Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
…he targeted reader with the voices Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Correction to this PR's READY (GSTA-167): the byte-identity claim holds for pass 1 only. Under the default What reviewers get is a superset of the range, so no blocker is lost, but those passes read more than main's sections specify and cost about twice as much (GSTA-197's replay C4-36: 10.42M reader tokens on pass 2 against 4.68M on pass 1). Pass 1, and The fix, which forwards |
…dation: line, the marker its brief prescribes (#3665 integration) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…lls-3 (Rule 19 grant; PR 3's side of the 7 PR 2 files) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…d a severity word used as a word is no finding (GST-434, GST-435) (#3677) * fix(ship): collect counts a reply with no finding and no clean marker as a non-review, never clean (GSTA-167) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship): a label word used as a word is no finding, and a paragraph finding keeps its detail bullets (GST-435) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship): a negation counts only when it applies to the label; compact table rows keep their label; register the review-ledger fixtures (pre-landing review) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship): negation stops at a conjunction, a summary line with a blocker stays, detail bullets need no gap and no locus; a re-sent review voids a refusal and the outside voice can be collected unavailable (pre-landing review) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship): bold and code marks keep a negated label a word, a subject phrase with and/or stays negated, table negation counts, --unavailable refuses an output with findings, VOIDED needs a re-send (fix-check) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship): a quoted label counts at the end of its line and in table cells, which ends a negated subject, and a negated subject never cancels a label on a file:line line (fix-check) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(ship): a line naming a file:line or a table row always keeps a finding; "of which" stays inside a negated subject (fix-check) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(ship): the review-pass fake outside voice ends with its Recommendation: line, the marker its brief prescribes (#3665 integration) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * revert(ship): parseFindings labels and negation back to main; GST-435 moves to its own PR (seed branch gsta-435-seed). Keeps the non-review rule and the detail-bullet merge (split) 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>
Follows #3662 (GSTA-167 calls PR 1, landed in v1.91.355.0); this PR now targets main. Plan: autoplan-20261031012136 (APPROVED, gate_rev=2), items C2 and C3.
What changed
The Capy skill now runs each /ship review pass as one call to the checked-in pass program instead of a hand-walked dispatch list. (Image render failed on this machine, so the text version follows.)
Before/after as text: The Capy skill now runs each /ship review pass as one call to the checked-in pass program instead of a hand-walked dispatch list
gstack-review-dispatch passplans a review pass and writes a staged manifest: audit readers marked first, then specialists with QA and the other audits, then the Red Team, then Step 11's voices. Each brief is rendered by the existing renderer once its inputs exist.chunk) and are checked bysentbefore the reader is created.lib/capy-review-pass.js, served bygstack-review-dispatch program, runs a whole pass in one call that returns within 200 s.PASS: noneis read only from the last line, so a branch filename cannot suppress the reviewers.laneModel) and stops when no model is given;extrascan be inline JSON, acwdinput prefixes every shell call, and a reader that is done without a summary gets a 60 s grace.targetedreader with Step 11's voices on the merge base, with the same brief and ledger fields main's render CLI writes.Why
"In the GSTA-189 replay one pass took about 10 parent calls," and the Red Team brief went out wrong twice because a file read cut its long lines. A review pass is now one call, and each brief reaches its reader byte for byte.
What reviewers see
Unchanged. The manifest path renders all 16 GSTA-189 baseline briefs byte-identical (pass 1 and pass 2 specialists and Red Team, Step 11 adversarial and outside voice). Which reviewers run, depth, efforts and the blocking floor are unchanged.
Tests
test/review-pass.test.tscovers the manifest stages, render equivalence, Red Team gating, forward-only states, chunked transport and the program against a fake host with real bins, plus the five rerun and input cases this /ship added. Counts are under Test Coverage and Test plan.Blast radius
The change adds subcommands to
bin/gstack-review-dispatchand a new program that only the Capy skill's loader runs, and it rewrites one paragraph of capy/skill/gstack/SKILL.md. The existing render, sent, collect, judge and verify paths are untouched; this run's own ledger verified clean through them (script ran:VERIFY: clean briefs=16 outputs=16 voided=1; the voided send was a truncated read caught bysentand resent whole).Approvals
No approvals recorded for branch gsta-167-calls-2.
Summary
Running a /ship review pass from Capy took about ten parent calls, and a long brief could be cut on the way to its reader. A pass is now one call to a checked-in program that plans, renders, dispatches, polls and collects from a manifest it can resume. This /ship found five ways that program could stall or skip work on a rerun or a crafted filename, and fixed each with a test that failed first.
Test Coverage
Step 7 audit (pass 1, at f8c835e): 19 of 25 paths tested (76%), 0 tests written (audit-only), 6 gaps proposed as tests.
Tests: test/review-pass.test.ts 14 → 19 (+5 new, each failed before its fix).
Remaining gaps, proposed tests: chunk refusing an edited brief;
passrefusing a foreign --pass id;passusage errors; readManifest version guard;mark --beforebad input and set-once; specialistFindings with no merged file.Tests ran: typecheck count unavailable
Tests ran: focused 121
Tests ran: remote gate 616
Pre-Landing Review
Pass 1 (standard depth, 6 specialists, Red Team, QA, coverage audit): 2 blocking findings from the Red Team, both fixed with failing-first tests (lib/capy-review-pass.js: a rerun after a failed review-log start skipped the start; a failed reader wedged the pass on NEXT: poll). Pass 2 (scoped): fix-check and Red Team found nothing at the floor.
Step 11 (Opus native adversarial, high; outside voice on openai/gpt-6.1-sol, both on the full PR diff): 3 more findings at the floor, each reproduced by a test that failed first and then fixed: a filename with a
PASS: noneline suppressed every reader; a queued reader whose start result was lost polled forever; a budget stop from the closing note was overridden byNEXT: judge. A bound fix-check (decision 3.5) read those fixes: nothing at the floor. The receipt's review loop counts the review rows only, so its blocking_found=2 and fixed=2 do not include these three Step 11 fixes.Re-check at 9e6a469 (after the main merge and the replay fixes): one fix-check read every product change since 2cd4fac. Nothing at the floor; one note, listed below.
Re-check at 35b1221 (merge of main v1.91.358.0, which adds the targeted review pass): one fix-check read the merge resolution and the new targeted stage, and the plan's targeted reader (class money, from lib/review-ledger.ts) read the whole diff on the merge base. Neither found anything at the floor; their notes are listed below.
REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=14 fixed=2 scope=frozen fix_checks=3 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: completed on openai/gpt-6.1-sol. One finding was refuted, two were fixed, and the rest are listed under Review notes.
Review notes
Below the floor, not looped:
sentFileandoutputFileare exported but unused (maintainability, simplification).readerLineignores its manifest parameter.passruns gstack-review-plan twice.--diff-base, so a pass 2 run through it reads the whole branch (native adversarial).extrasis written through the host's file tool, which expands~and resolves against the jam's directory, while the bin reads the quoted path aftercd input.cwd. With a~or relativeout, or acwdother than the jam's directory, the pass stops on a missing extras file. Use an absoluteout(re-check fix-check).changed(outside voice); the 32 KB return cap can cut the NEXT line; a crash between collect and mark collects twice; a queued reader waiting for sibling slots can hit the 20-minute stop; an exit-2 note gets budget wording; a rerun after a budget resume notes the readers twice (native adversarial, fix-checks).passtakes the targeted reader's merge base with a baregit merge-base <base> HEAD, whilerender --role targetedtriesorigin/<base>first, so a stale local base widens what the reader reads (re-check fix-check).recordwithoutjamorstepskips the note with no line saying so (targeted reader).tools.capy.writedoes not exist in the real host" (this /ship called it from Capy execute programs throughout).Exploratory QA
CLI surface. Pass 1 at f8c835e: six smoke probes, five passed and one was inconclusive (capture 002 used a fixture in the wrong shape; capture 006 tested the same contract with the documented shape and passed). Pass 2 at 55fe76b: four smoke probes, all passed, evidence verdict
pass. Not covered by live probes: thepass,stageandmarkstate transitions and the program end to end (unit tests cover them).Design Review
No frontend files changed — design review skipped.
Eval Results
Not run by this lane. The eval selector fell back to the full gate because the changelog fragment is an unknown dependency; the train's
gstack/full-gatecovers it.Plan Completion
Plan completion audit: not run (no plan is bound to this branch and no docs/designs/ file matches).
Verification Results
No plan checks supplied. Exploratory QA pass 2: every probe passed; none failed, blocked or went unrun.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. The docs match the diff, so I made no edits.
Scope: 12 committed files from aa6cd26 to 2cd4fac on gsta-167-calls-2. These add
gstack-review-dispatch pass/chunk/show/stage/mark/program,lib/review-pass.tsandlib/capy-review-pass.js, and change the Capy /ship loader.Documentation health:
Coverage debt:
show,stageandmark --log-start/--beforeare documented only in the bin's usage text. This is a common gap. There are no critical gaps and no diagram drift.Test plan
bun run typecheck: passbun teston eight files (review-pass, review-dispatch, review-targeted, ship-driver, ship-budget-reader-drift, module-size-ratchet, bun-entry-isolation, spawnsync-timeout-tripwire) at 35b1221: all greenbun run gen:skill-docsleaves the tree cleanIssues
Refs #3665
Refs #3671