Repository navigation
v1.92.42.0 fix(ship): notes-only review passes bind; carry handles large diffs; scoped carry route (GST-430, GST-448, GST-442, GST-444) - #3694
Merged
Conversation
…ested fixes no longer force a second review loop (GST-407, GST-384, GST-391) 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>
…-triggers Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # ship/DRIVER.md # ship/DRIVER.md.tmpl
…ds; trim elsewhere 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>
comparePath returns same only when every hunk sits where the base change puts it (patch-ids ignore positions) and treats a file-mode change as changed; the scoped-review packet says when a fence is truncated; --docs-result must be the posted audit's result; the --context-reviewed record goes beside the packet, outside the worktree. Negative controls for each. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A test edit routes as tests= only when it adds lines with no gate tag; a removed or changed line or an unreadable test diff goes through the full loop. Diffs skip textconv. A hunkless patch (binary, empty, mode-only) is same when its patch-id matches. Without --reviewed-base test files route as before. finish's packet path and attempt's state directory have fallbacks. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ew is release metadata (GBRA-251) gateEditedPaths reads removed lines only inside hunks; carry refuses when a path listing fails; docs freshness stops on a failed listing; attempt counts an unreadable state file. releasePaths includes stamp_files paths whose edit is a version swap under stamp_patterns. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t state A test-only edit with no gate tag gets the scoped fix-check of its test hunks instead of a lanes-only rerun. Packet write failures print a STOP or RECEIPT_CARRY_REFUSED. attempt's allowance uses an exclusive create. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…t diff outside context paths The attempt STOP no longer echoes the audit child's fix text. A scoped-review carry now requires the product patch-id without the context paths to match at both heads. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ch; name-only test globs only in test dirs A scoped-review packet section over 200 lines sends that path to the full loop instead of a truncated packet. The docs-result path match is exact. test_*.py, *Test.java and similar count as test code only under a test directory. 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>
…roubleshooting (docs-a-1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…like ship-release (run 41193336209) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-triggers Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # bin/gstack-ship-receipt
… and repair when a pass's tree moved (GST-430) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e receipt fails closed on a failed diff (GST-448) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… review; carry --dry-run writes no packet (GST-442) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…the --docs-requested fix; trims keep the cap (GST-442, GST-444) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… temp and diff refusals - A notes-only pass is recorded clean only when every finding is fixed, or noted or deferred below the blocking floor (never CRITICAL or blocking), by its logger-stamped action, and the findings account for the claimed issue and critical counts (GST-430). - The preflight scoped carry route commits and pushes the base-merge fix before writing the packet (GST-442). - patchId refuses by name on an unwritable TMPDIR; the tree receipt names why its diff failed (GST-448). - Step 16 stage 3 spells out --docs-requested with its --docs-result (GST-444). 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>
…ng reads UNVERIFIED (red-team, pass 1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…n rule, stale patch-id dirs swept - deriveFromFindings stamps gate rows with the session kind before deriving status, so a findings file cannot dispose of a gate finding the unattended logger forces open (outside-voice#1). - reviewFreshness reads a claimed row's findings with isOpenByAction, the rule the notes-only rewrite uses; noted and deferred clear a finding only when it is marked blocking: false and is not CRITICAL. - patchId sweeps gstack-patch-id-* directories over an hour old that a killed carry left in TMPDIR. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ion; resolved gate, skipped and below-floor actions stay CURRENT - isOpenFinding treats action 'open' (the logger's forced-open stamp) as open before a row's status or disposition. - reviewFreshness flags a claimed clean row only for an 'open' action or a CRITICAL or blocking deferral or note, so interactive kept and restored gates, skipped advisories and INFORMATIONAL deferrals read CURRENT as before. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…the git dir; changelog matches the review-log floor Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… finding reads UNVERIFIED (pass 2 red-team) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…fusal (docs-d-1 audit) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…hip-workflow-clarity pin) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…timeout (60 s); pregate literals check Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s can add its long receipt paths (windows-free-shard 1, run 41210080055) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
3 tasks done
…-triggers Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # bin/gstack-ship-receipt
The merge commit b10e2db wrote a truncated copy of the file. This is the three-way merge of both sides with the refused() union: main's codes plus RECEIPT_CARRY_SCOPED_REVIEW. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…into gst-430-notes-only-pass
5 tasks done
…pass Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai
Bot
changed the base branch from
gst-407-ship-rereview-triggers
to
main
November 1, 2026 07:16
|
😎 This pull request was merged. |
…th train 77 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e the ship goldens 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: # bin/gstack-ship-receipt
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
A review pass whose three findings were all notes is logged clean and reads CURRENT, so Step 11.5 binds it instead of forcing an extra rebind pass. Captured from
gstack-review-logandreviewFreshnesson #3684 head 4cc747c and on this branch.Before/after as text: A review pass whose three findings were all notes is logged clean and reads CURRENT, so Step 11.5 binds it instead of forcing an extra rebind pass. Captured from gstack-review-log and reviewFreshness on #3684 head 4cc747c and on this branch.
Why
Four follow-ups to #3684 (GST-407), each one a source of a paid re-review or a refusal with no way forward:
issues_found, and Step 11.5 then refused to bind it. The only way out was an extra rebind pass (CAPY-2, qm#2837). When a pass's tree moved, the refusal didn't say why or what to do.gstack-ship-receipt carryrefused every carry on a PR that adds about 8,300 receipts (harness-evals#147, a ~33 MB diff), because a git listing ran past the 1 MB output buffer. Each base move cost that PR about 3 hours of /ship.--docs-requestedfix (the follow-up from v1.92.16.0 fix: /ship stops re-running the review loop after base merges, test fixes and audit-requested doc fixes #3684's documentation exception).Blast radius
gstack-review-logandreviewFreshness(lib/review-evidence.ts,lib/headless-artifacts.ts),gstack-ship-receipt carry/write,gstack-tree-receipt,gstack-ship-preflight, and the ship template plus its four goldens. Every change fails closed: a skipped finding, an open gate, a CRITICAL or blocking note, a finding with no action, or an incomplete pass keepsissues_found; a claimed clean row with any unresolved CRITICAL reads UNVERIFIED; a diff git cannot produce refuses the tree receipt by name instead of reading as no change. No reviewer prompt, packet, depth or reviewer selection changed.Approvals
Source: gstack-approvals record for gst-430-notes-only-pass (display only; not an approval citation).
Summary
Notes-only passes (GST-430).
gstack-review-logrecords a completedrevieworreview-fix-checkrow claimed asissues_foundascleanonly when every finding's logger-stamped action isfixed/auto-fixed, ordeferred/notedon a non-CRITICAL finding markedblocking: false, and the findings account for the claimed counts.--findingsgate rows are stamped like inline ones. A pass whose tree moved now readscontent changed during review: the tree moved from <start> to <end> …with the repair (keep the checkout frozen, rerun on the frozen tree).Large diffs (GST-448). Carry and write read path listings with a 256 MB buffer, and the product patch-id streams
git diffthrough a file under.git/gstack-patch-idintogit patch-id --verbatiminstead of holding it in memory. Stale directories from a killed run are swept after an hour. The audit of finish/route foundgit()inlib/ship-bin-common.tsalready at a 64 MB buffer, so it is unchanged.Carry route (GST-442) and Step 16 routing (GST-444). Preflight prints
NEXT: carry routeforRECEIPT_CARRY_SCOPED_REVIEW, andcarry --dry-runwrites no packet and offers that route only when none of carry's other checks would refuse. Step 1.4 and Step 16 stages 2 and 3 name the scoped-review fix-check, the--context-reviewedrerun and the--docs-requestedfix. Trims in Steps 3, 12 and 16 keep ship/SKILL.md under its cap (61417 B, size ledger +7).Test Coverage
Every fix has a case that failed before it:
test/review-notes-only-pass.test.ts(new, with negative controls for each case that must keepissues_found),test/ship-receipt-carry-large-diff.test.ts(new, a 6,000-receipt PR writes and carries; one rescored receipt still refuses),test/ship-rereview-triggers.test.ts,test/ship-control-flow.test.tsandtest/train-gate.test.ts. Red/green logs are under the run's review directories (fix-p1*, fix-s11*, fix-r2*, fix-p2*).Tests ran: lane 1188 pass, 0 fail (at 9df9c6c); remote pregate 24346 pass, 0 fail (tree 39957d80)
Tests ran: typecheck count unavailable
Pre-Landing Review
Two full passes (pass 1: specialist-batched, adversarial-native, outside voice, red-team; pass 2 on ae38884..HEAD: specialist-batched and red-team) and six fix-checks logged 9 findings at the blocking floor: 8 in pass 1 and 1 in fix-check fc3. Those logged rows are what the REVIEW_LOOP counters tally. Step 11's adversarial and outside voices ran two rounds; their review-log rows carry no counts, and they found 7 more at the floor (3 in round 1, 4 in round 2 after folding duplicates). All 16 were fixed with failing-first tests. Of the six fix-checks, five returned no findings, and fc3's findings were fixed in c076c69.
REVIEW_LOOP: passes=2 blocking_found=9 deferred=0 noted=3 fixed=12 scope=frozen fix_checks=9
Gate edits: the change edits how /ship records and binds review passes, so every reviewer read it as gate code. No test was weakened or skipped.
Loop deviation (decision trail row 54). After pass 1 I ran a fix-check and a second Step 11 round before pass 2, instead of the policy's next step (full pass 2 on the range). It was corrected: pass 2 ran on ae38884..HEAD as the plan required. The two extra fix-checks ran before pass 2 and added review; none replaced any. The three later fix-checks (fc6, fc7, fc8) ran under the Captain's grants in the Approvals table. fc8 checked f30a520: Windows Free Tests at 1c625e9 failed the four large-diff cases because Git for Windows could not add the test's 216-character receipt directory (run 41210080055), so the fixture now sets
core.longpaths. No assertion or input changed.Review notes
These findings only fail closed (stricter or slower, never less review) or sit below the floor. They are recorded here and not fixed in this PR, under the Captain's rule from #3684. The
noted=3counter covers only the logged pass rows (pass 1 red-team#3 and pass 2's two notes). The other four bullets come from Step 11, whose rows carry no counts.noted/deferredstay open unlessblocking: false.reviewFreshnesskeeps the older floor for rows with noblockingfield, so rows logged before the field read as before.blockingfield deriveopenfordeferred/noted.Exploratory QA
CLI probe:
gstack-review-logwith a three-note pass, thenreviewFreshness, on #3684 head 4cc747c and on this branch. Before, the row isissues_foundand reads UNVERIFIED; after, it iscleanand reads CURRENT. Captured above.Eval Results
No separate PR eval run. These files are full-gate inputs, so the train's
gstack/full-gateprovides the paid evidence.Plan Completion
Plan note (fix-lane exemption, audited problem list under GST-407): GST-430 record notes-only passes clean and name the moved-tree cause and repair; GST-448 stream the patch-id and check finish/route and tree-receipt for buffered git calls; GST-442 route preflight's scoped refusal to the carry route; GST-444 route Step 16's scoped-review STOP and
--docs-requestedfix. All four are done. GST-443 (bind scoped records) stays open under GST-407.Issues
No GitHub issue. Linear: GST-430, GST-448, GST-442, GST-444 (parent GST-407).
TODOS
No TODO items completed in this PR.
Documentation
Status: blocked at finish's freshness check, shipped under the owner's named risk. Audit docs-d-1 updated
docs/ship-policy.md,docs/troubleshooting.mdanddocs/unattended.md(4ab7380); the re-audit docs-d-2 came back current. Debt:docs/review-policy.mddoes not describe how a notes-only pass is recorded.Scope: docs/, README.md, CHANGELOG.md, changelog.d/, ship/SKILL.md.tmpl, ship/DRIVER.md.tmpl, ship/sections/documentation.md.tmpl (audits docs-d-1, docs-d-2). DOCS_CAP: none declared.
Documentation exception: accepted by GStack Minder (GSTA-36) 2026-10-31 via GSTA-36 agent message: Docs inputs after audit docs-d-2 changed only by 1c625e9, a one-literal timeout change in lib/tree-receipt.ts (120_000 → 60_000, back to the file helper's value), and f30a520, which sets core.longpaths in the fixture of test/ship-receipt-carry-large-diff.test.ts so Git for Windows can add its long paths; no doc describes either, and no doc has been edited since the audit.
Named documentation risk (Step 16 stage 3, after 1c625e9 and f30a520): accepted by GStack Minder (GSTA-36) 2026-10-31 via GSTA-36 agent message: "Docs inputs after audit docs-d-2 changed only by 1c625e9, a one-literal timeout change in lib/tree-receipt.ts (120_000 → 60_000, back to the file helper's value), and f30a520, which sets core.longpaths in the fixture of test/ship-receipt-carry-large-diff.test.ts so Git for Windows can add its long paths; no doc describes either, and no doc has been edited since the audit."
Test plan
bun run typecheckexit 0, evidence FRESH at f30a520test/ship-receipt-carry-large-diff.test.tsat f30a520: 4 pass, 0 fail (Linux)Base merge (rule 19 carry)
This branch merges #3684 at b6a5bd1, which brought in main 1b46f37 and its
refused()union repair (main's set plusRECEIPT_CARRY_SCOPED_REVIEW). The merge was clean, so this PR's own product diff is unchanged. The receipt was carried from f30a520 to d7eea9e (2 base merges plus release metadata). The remote pregate ran 24423 tests with 0 failures on tree 09daece7.Retarget to main
#3684 landed as v1.92.16.0, so this PR now targets main. I merged main b71009c as 4361e6c using b6a5bd1 (#3684's reviewed head) as the merge base. Git's default merge base predates the squash, and with it the merge listed
RECEIPT_CARRY_SCOPED_REVIEWtwice inlib/result-codes-release.tsand brought back the gst-407 changelog fragment that the release had used up. This PR's own diff is byte-identical to b6a5bd1..d7eea9e (same patch-id). The remote pregate ran 24759 tests with 0 failures on tree f2ccd464.Train 77 rebind (rule 19, rule 23)
Train 77 dropped this PR: with main+#3778+#3786+#3776+#3785, the ship skeleton measured 61425 bytes, over maxSkeletonBytes 61420 (free run 41288304560). Main f739756 (v1.92.25.0) is merged in (3761ef3), and one Step 3 sentence is trimmed. "wait for the answer before editing or continuing" now reads "wait for the answer before any edit", so the skeleton measures 61412 bytes. The cap is unchanged. The first fix-check found the four ship goldens unregenerated (CRITICAL, host-config golden tests) plus an INFORMATIONAL wording note. Both are fixed in 8bf09f4, and the second fix-check found nothing. The remote pregate ran 24897 tests with 0 failures on tree 805c2b9c.
Train 79 rebind: main merge (rule 19)
After #3706 landed, this branch conflicted with main. GStack Minder granted one main merge: "Rule 19 grant for #3694: merge main once with your stated union resolution, with no force-push." Main 83ae96e (v1.92.30.0) is merged in as bcc9871. Only
bin/gstack-ship-receiptconflicted. The resolution keeps main's hoisted touched-path list, and its walk still visits only the paths that moved at either head or base (GST-448). The listing of those moved paths still refuses with RECEIPT_CARRY_REFUSED when git can't list them. The fix-check on the merge hunk found nothing. The skeleton is unchanged at 61412 bytes. The remote pregate ran 24922 tests with 0 failures on tree 5b6ceab0 ($0.08).