Repository navigation
Conversation
…, as the review policy says (GST-2273) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
… never by a bare ledger id (GST-2273) 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>
This was referenced Nov 10, 2026
…273) Merges main (e9f38d6, with #4360). Resolving the conflicts with GST-2491's gate dispositions also fixes the three wrong closes from the cross-family audit of 36ce6ad: a fingerprint two findings share closes neither (ruledFinding, summary key counts), a ruling applies only at the commit the row read (not anywhere in range_base..commit), and the summary takes rulings only from a via:ship row. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
2 tasks done
Contributor
|
Superseded by #4435. A cross-family audit held this head because rulings could close more than the owner ruled. The rebuild at fa3e4a2 fixed those, but /ship's read-only review there found one more blocker: a gate finding held only in a dispatch ledger could be ruled. This PR was at its review-round cap, so the fix ships in #4435 with its own review. The branch stays in place. |
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.
An owner's ruling now closes a finding on a round-2 full pass and on a Step 11 voice, the way docs/review-policy.md already says it does, instead of only on an extra review round the owner granted. This unblocks three crew PRs (#4248, #4266, #4257) and harness-evals#361, which all stopped with the owner's ruling recorded but ignored.
Why
The docs promised that a loop at its round cap finishes with "an owner-ruled note … closed and listed", but only finish's fix-check chain read rulings. Crews parked PRs at the cap with the owner's ruling recorded and nothing to apply it.
Blast radius
Review-binding code:
lib/review-evidence.ts,lib/ruled-notes.ts,lib/review-scope.ts,lib/ship-release.ts(fix-check chain),lib/approval-record.ts(read roots),bin/gstack-review-read,bin/gstack-review-scope. The binding rules from #4260 stay: a ruling outside the reviewed range closes nothing, the lane's own row fields rule nothing, gate findings are never ruled, and an edit after the bound head still needs review. What counts as blocking does not change. The negative controls in test/ship-ruled-full-pass.test.ts and test/ship-finish-ruled-notes.test.ts hold on both main and this branch (script ran).Summary
gstack-review-readnow applies each approvedgstack-approvals rulerow whose head lies inside the range the row reviewed (range_base..commit, or the row's own commit when it names no range_base). A round-2 full pass whose only blocker is ruled readsCURRENT, so Step 11.5 can bind it (Stop a merge check from passing a test that was weakened after review (GST-2204) #4248's shape).gstack-review-scope summarycounts a ruled blocker that no row records, such as a Step 11 voice's ledger-only finding, asnotedinstead ofunrecorded(Let an owner's grant swap the second full review for one short recheck, and say which grant field to fix (GST-2244) #4266, Stop gstack-pr-wait, the land gate and the release cut from calling a head green while a check on it failed (GST-2252) #4257). It reads rulings only from the run's newest row. A ruling names a finding by fingerprint, or a ledger-only finding by<path:line>:<reviewer>.fixedorauto-fixedno longer holds the row open (harness-evals#361's real row).FIX_CHECK_OPENnow also names findings no ruling can close, such as a gate finding, instead of leaving only the generic nonconverged reason.incompletebinding) is promoted by rulings only if it read one committed tree: the start capture now records its commit, and the row must end there. Rows logged before this change must end at a commit made before the read began. A read that saw the tree change and then change back no longer binds just because its first and last trees match.GSTACK_CAPY=1, so finish, the receipt andgstack-approvals rulingssee the same rulings; onlyGSTACK_CAPY=1writes the mirror.Test Coverage
Coverage: 12 of 16 paths (75%), 4 gaps, audit only (Step 7 reader; no tests were written in /ship).
Tests ran: free 37027 (CI carry, free-tests run 42749804240 at 36ce6ad)
Tests ran: targeted 148
Pre-Landing Review
Pass 1 found 7 informational findings plus 2 blocking findings from the outside voice (openai/gpt-6.1-sol). Both blockers were fixed in f925d32:
bin/gstack-review-scopenow takes rulings only from the run's newest row, andlib/review-scope.tsno longer matches a ruling by bare id. Pass 2, a full pass over the fix range, came back clean.REVIEW_LOOP: passes=2 blocking_found=2 deferred=0 noted=9 fixed=2 scope=frozen ledgers_read=4 dispatches=8
Outside review: completed (openai/gpt-6.1-sol, host subagent).
Review notes
These are below the blocking floor (advisory, informational, test-gap or wording items). They're recorded here and not fixed in this PR.
bin/gstack-review-scope:220stop row selected without the via:ship and dedup rules summarizeReviewLoop uses; a standalone /review row can become the stop and drop the owner's rulings silentlylib/review-scope.ts:489path:line:reviewer ruling key is not run-unique; one ruling notes every ledger-only finding at that locus by that reviewerlib/ruled-notes.ts:68lane-written range_base widens which rulings applylib/review-scope.ts:485summary over-closes ledger-only findings (bare id, combined set)lib/review-scope.ts:488no gate exclusion for ledger-only ruled findingsbin/gstack-review-read:29review-read depends on the approval record and exits on a read errorlib/ruled-notes.ts:52legacy readOneTree fallback still admits A-B-Alib/ruled-notes.ts:69extra git spawns per rowlib/approval-record.ts:88tests can read real Drive approval rowsExploratory QA
Smoke at 8bbdd02, 2 probes, both passed: the
bin/gstack-review-readCLI contract (exit 0, one config line, empty stderr) andbun test test/ship-ruled-full-pass.test.ts(10 pass, 0 fail).Eval Results
No prompt-related files changed, so evals were skipped (eval:select lists 0 PR passes).
Scope Drift
Scope Check: CLEAN
Plan Completion
Plan: exempt bug fix (failing-first tests in this PR).
Issues
Refs #4271
Documentation
Status: current. The branch's documentation already matches the code, so no edits were needed.
Scope: base 46d5149 to head c512fb6 (3 commits, 13 committed files; nothing staged, unstaged or untracked). The doc changes are the new
ruled-notes-any-rowparagraph in docs/ship-policy.md and acannot be ruledparagraph in docs/troubleshooting.md. I checked both against lib/ruled-notes.ts, lib/ship-release.ts, lib/approval-record.ts and lib/review-scope.ts.Documentation health:
rulingsFor,readOneTreeand the mirror read rules)FIX_CHECK_OPEN … cannot be ruledoutput)Coverage debt: owner rulings on full passes and Step 11 voices have reference coverage in ship-policy.md and troubleshooting.md, but no how-to or tutorial. No diagrams drifted.
Test plan
bun run test(free lane): carried from CI, free-tests run 42749804240 at 36ce6ad, greenbun test test/ship-ruled-full-pass.test.ts test/ship-finish-ruled-notes.test.ts test/approval-record.test.ts test/review-loop-binding.test.ts test/review-notes-only-pass.test.ts test/review-scope-followups.test.ts test/review-scope-ledger-count.test.ts test/review-fix-range.test.ts(targeted lane): 148 pass, 0 failAgent notes