Repository navigation
v1.94.41.0 fix(ship): receipt counts bind by finding id, scoped re-check, lighter READY, head= on the result line (GSTA-258 L4) - #3926
Merged
Conversation
…re-check after a refused carry, READY tail, head= on the result line (GSTA-258 L4; GST-1136, GST-1168, GST-1179) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…fter a closing quote (ggstack#71); repin ship/sections/review-army.md under GST-508+GST-464+GST-967+GSTA-258-L4 (brief-identity no-loss check: every cut brief unchanged) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… cut path walk or moved base context; legacy READY asks for the cross-family read) Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p1/specialist-batched#2 reader=testing Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p1/red-team#3 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… and packets over 64 KB; fingerprint trailers bind findings with a ledger_id; the runs fence closes only on its own line) Review-Finding: v/outside-voice#1 reader=outside-voice Review-Finding: v/outside-voice#2 reader=outside-voice Review-Finding: v/adversarial-native#1 reader=adversarial-native Review-Finding: v/targeted#1 reader=targeted 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>
…ch spawns several git and bun runs; the carry tests ran past bun's 5 s default locally) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 tasks done
lib/ship-receipt.ts KEY_ORDER keeps flaky_exception (#3911) and no_stop. bin/gstack-ship-receipt: main's review_exclude help and digest refusal text plus --no-stop help; the J1 re-check block before one planCarry call carrying both stackParent (#3928) and recheck; the recheck risk-class check after the digest check. test/review-packets-removed.test.ts keeps both NO_LOSS_REPLAYS keys (GST-940 and GST-508+GST-464+GST-967+GSTA-258-L4). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
test/review-packets-removed.test.ts takes main's version (#3903 moved the review pins to test/fixtures/review-pins/). This branch's two pin entries become pin files with GSTA-202's recipe: a new replays/GST-508+GST-464+GST-967+GSTA-258-L4.json and the files/ship/sections/review-army.md.json repin to 22c37a64. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…GSTA-258 L4) The rule 19 merge of main 1ccab0d put #3929's push-guards wording (61,418 on main) together with J1's head=<sha> in the GSTACK_RESULT line, measuring 61,429. Three rewordings beside that line bring the skeleton back to 61,418; the branch ledger entry drops by 11 and the ship goldens are regenerated. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
#3920 (GSTA-258 build C) conflicts, resolved mechanically: - bin/gstack-ship-receipt: keep this branch's ship-recheck import beside main's depth import (now with platformReceiptDepth) and review-risk import; the help keeps --no-stop beside main's --declare-risk and --platform-review. - review-army pin: both sides repinned ship/sections/review-army.md, which merged cleanly; repin it to the merged bytes under a combined GSTA-258-C+GSTA-258-L4 replay (pin-file recipe, GSTA-202). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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
gstack-review-scope summarypairs a row finding with its ledger entry byledger_id(<pass dir>/<merged.jsonl id>), counts a fix from each fix commit'sReview-Finding: <id> reader=<role>trailer, counts a late defer once, and dedupes rows that record their head by kind, pass, head and finding ids. What can't bind printsREVIEW_SCOPE_UNBOUND: <what>: <why>andunbound=Ninstead of a silent zero (a tokenless row, apNledger with no review row, a stray ledger_id or trailer).Severity:field after a closing quote (ggstack#71, 1 of 4 identical findings raised to CRITICAL) parses as the reader wrote it. Both reproduce on main with failing-first tests. Per-findingBlocks: nowas already fixed on main by GST-1031 (v1.93.38.0 fix(review): one record per native finding at its stated severity; blocker count keys on Blocks; fix-check is never a pass (GST-1031) #3894); the verdict line was the only inflation left when the v1.94.0.0 ship: CI is the one full test run (CI carry, tree cache, /ship beside CI) #3901, v1.94.10.0 ci: run Windows checks by path (ship-90-90 plan D, GST-1135) #3904 and v1.94.4.0 captain docs: plan-first rule matches R65 (no plan review for bug fixes) #3908 outputs were reparsed on main.gstack-ship-receipt carrykeeps refusingRECEIPT_CARRY_PRODUCT_CHANGED, and when the change is small it also printsRECHECK: eligible … packet=<file>. One reader pluscarry --recheck <record.json>(bound to from, head and the packet's sha256) rebinds the receipt. A deeper review depth or another risk class still refuses.gstack-ship-preflightroutes it. Not eligible (each tested): a rebase or retargeted stack, a receipt with no review_depth, more than 20 changed product paths, a binary path, moved base context, or a packet over 400 lines or 64 KB.gstack-receipt-runsblock (newest 30); review fixes carryledger_idand theReview-Findingtrailer (ship review-army template).gstack-ship-queue readyaddsREVIEW_LOOP:, aTRIAL_MERGES:line and theAttention:stub (reviewed by <model>on risk-class receipts,self-auditedotherwise); docs/unattended.md asks for the cross-family trail read only on risk-class PRs. The receipt already carried across a base move by product patch-id, and the Step 7, 8 and 14.5 audits already run on a small model and can't block (ship/DRIVER.md), so neither needed code.GSTACK_RESULT: skill=ship status=complete head=<full sha> run=<dir>;parseResultreads the optional token.no_stop: [{class, reason, evidence}]andwrite --no-stop.Why
Captains read the receipt's counts at merge time, and they were wrong in a repeatable way. On main, the GBEV-3 shape reproduces its wrong receipt exactly (three blockers counted and two counted as fixes, where the truth was two blockers and one fix), and the GEVA-223 shape counts eighteen blockers, half of them unrecorded, where the truth was nine blockers, all of them fixed. The verdict-line inflation cost three extra fix-check grants on #3901, #3904 and #3908. J1 replaces a full second /ship (about 100k credits on gbrain-evals #246/#247) with one reader for small post-review changes.
Not in this PR
PR-event CI reuse in
scripts/ci-tree-reuse.ts(plan E). It would reverse a pinned safety property of the requiredfree-testscheck ("only a push to main consumes", test/ci-reuse-workflow-wiring.test.ts) and edit .github/workflows/free-tests.yml, for a saving that applies only when a dispatch run already tested the same tree. Left for a separate, reviewed change.Prompt and packet text (no-loss rule)
The collector severity fix changes parsing only (
lib/review-ledger.ts: the native verdict line and aSeverity:field after a closing quote). No reviewer prompt or packet changed.ship/sections/review-army.mdchanged only in lead instructions outside the reviewer-brief cut spans (a finding'sledger_id, theReview-Findingtrailer, logging a late defer when it's decided); every brieflib/review-brief.tscuts from it still hashes to its pin (test/review-packets-removed.test.ts).Pre-Landing Review
REVIEW_LOOP: passes=2 blocking_found=6 deferred=0 noted=4 fixed=5 scope=frozen unrecorded=3 ledgers_read=5 fix_checks=1 dispatches=4
That line comes from installed gstack 1.94.0.0, which still has the GST-1168 bug: the three it calls unrecorded are the Step 11 fixes in 64cab9f. This PR's own summarizer binds them by their
Review-Findingtrailers and leaves one trailer unbound:v/targeted#1, an informational fix whose Step 11 row recorded no findings list.Pass 1's blockers were fixed in 8788d24. Pass 2 found notes only. Step 11's voices found 3 CRITICALs, fixed in 64cab9f. One scoped fix-check (granted, below) found 2 informational notes and nothing blocking; the targeted money reader found nothing.
The first exception, from the standing grant (approval a-818f1333f880), covered one scoped fix-check at 68f34a6, which found 2 informational notes and nothing blocking.
Review-loop exception: accepted by GStack Minder 2026-11-03 via GSTA-36's call relayed by GSTA-258, 2026-11-03 (approval a-25399d1ed86f): L4's clean Opus reader over the 120-line git show --cc at 7e2f0e2 counts as #3926's second exception, scoped to those resolution hunks, no further rounds (fix-check at 7e2f0e2, 0 findings)
Review-loop exception: accepted by GStack Minder 2026-11-03 via GSTA-36's call relayed by GSTA-258, 2026-11-03 (approval a-8f37391dbc8c): third, last exception on #3926: the 11-byte ship-skeleton wording trim next to J1's line, with the -11 size-ledger entry and the regenerated ship goldens; one clean Opus scoped reader on that trim (each rewording keeps its meaning), no further rounds (fix-check at e15ba87, 0 findings)
Base merge (rule 19)
GStack Minder granted one merge of main bf2bcf1 (train 101: #3916, #3866, #3906, #3902, #3928) into this branch. The merge commit is 7e2f0e2. The conflicts were all on lines this PR had changed itself, so each resolution keeps both sides:
KEY_ORDERin lib/ship-receipt.ts keepsflaky_exception(v1.94.9.0 feat(pregate): owner-granted flaky exception for named cases in a red run (GST-1096) #3911) andno_stop.planCarrycall, which now passes bothstackParent(v1.94.15.0 fix(ship-receipt): carry a stacked PR's receipt after its parent squash-merges into main (GST-1199) #3928) andrecheck. Main's rewordedreview_excludehelp and digest refusal sit next to the--no-stophelp and the re-check's risk-class check.NO_LOSS_REPLAYSkeys (GST-940 and this PR's).J1 also works on #3928's path. In a scratch fixture where a stacked child changed a product line after its parent squash-landed, carry printed
RECHECK: eligible. Its packet held the child's edit plus one header line for the landed parent commit, and--recheckcarried. One Opus reader read the 120-linegit show --ccof the merge and found it clean.A second granted merge, of main 1ccab0d (train 103), is 04a02bc. Its only conflict was test/review-packets-removed.test.ts: #3903 moved the review pins into one file per pin under test/fixtures/review-pins/, so the merge takes main's test and adds this PR's two pin files there (a new replay for GST-508, GST-464, GST-967 and GSTA-258-L4, and the repinned ship/sections/review-army.md).
That merge summed two in-budget skeleton edits, #3929's push-guards wording and this PR's
head=<sha>in theGSTACK_RESULTline, to 61,429 bytes against the fixed 61,420 cap, and Free Tests went red on the parity suite. e15ba87 trims 11 bytes of wording next to J1's line ("record, prints", "QUEUE_RECEIPT_STALE: HEAD moved past", "STOPs early"), drops the branch size-ledger entry from 412 to 401 bytes and regenerates the four ship goldens. The skeleton is back to 61,418. One Opus reader checked that each rewording keeps its meaning and found nothing, and the targeted money reader reran on e15ba87 and found nothing.A third granted merge, of main bf2cab3 (train 105), is 1b31842. #3920 (GSTA-258 build C) conflicted in two places, both resolved mechanically. bin/gstack-ship-receipt keeps this PR's ship-recheck import beside main's depth and review-risk imports, and its help keeps
--no-stopbeside main's--declare-riskand--platform-review. Both sides had repinned ship/sections/review-army.md, which itself merged cleanly, so the pin moves to the merged bytes under a combinedGSTA-258-C+GSTA-258-L4replay (GSTA-202's pin-file recipe). Outside the review pins, the merged tree's +/- lines against main are this PR's own lines. The receipt carried with one scoped Opus reader on the base context next to the bin/gstack-ship-receipt hunks, which found it clean.Open review notes (below the blocking floor, not fixed)
reader=, so when two readers raise the same path:line:category it can mark the wrong one fixed. It fails closed (unrecorded is overcounted).?::, so a later fingerprint trailer for it stays unrecorded. It also fails closed.--recheckrecord is self-attested, the same trust model as--scoped-review.gstack-postdrops thegstack-receipt-runsblock. It survives carry.<…>placeholder lines for trial merges and Attention flags; the lane replaces them before sending.core.abbrevbetween the two carry calls refuses the record (it fails closed).p1/red-team#1reads as a GitHub cross-repo reference (owner/repo#N).gstack-issue-linksprintsRefs p1/red-team#1lines for the trailers (its--outrecord stays empty, so the receipt is unaffected), and GitHub would link those repos if they existed (none do today). Follow-up: a ledger id separator GitHub doesn't parse.Review-Findingtrailers bind within the run's committer-date window, so a rebased earlier run's trailer can match a restarted id. The dispatch totals still count a duplicated row; the receipt counts dedupe it.Sibling merges (rule 25)
bun run typecheckexits 0 on every merged tree. The shared files' tests pass, except two gstack-ship-receipt cases (E18 and the release-metadata-only carry) that time out the same way on a clean main bf2cab3 checkout on this machine and pass in CI.Documentation
Scope: read-only audit of the 4ec1722..68f34a6 diff (37 files) against the candidate docs list, with a doc-tree grep for stale strings. Result: current. The docs already cover the head= GSTACK_RESULT line, RECHECK eligible/not eligible, REVIEW_SCOPE_UNBOUND/review_loop.unbound, and the changelog fragment; no stale references found. Debt: the gstack-receipt-runs receipt block and the gstack-ship-receipt write --no-stop flag / no_stop field are undocumented (candidates docs/ship-policy.md, docs/unattended.md); not filled because the mode forbids edits.
Security call-out (R45)
No workflow, setup, install or upgrade script changes, no new dependency, no secrets read. New subprocesses are local
git log(trailers) andgit diff(re-check packet) only; the packet is written under.git/gstack/.Blast radius
/ship's review summary and receipt,
gstack-ship-receiptcarry/result,gstack-ship-queue readyoutput, the ship review-army template. Rows and findings without ids keep the old path:line pairing.Refs GST-1136, GST-1168, GST-1179 (Capy issues; close on merge).
Approvals
Approved: yes (record r-d559527f57c4). The full approval record stays private: this repository is public or its visibility is unknown.