Repository navigation
After a pull request's second review round, an approved extra check now leads to a /ship sign-off (GST-3546) - #4717
Merged
Conversation
…ow leads to a /ship sign-off (GST-3546) The review planner, claim and write accept both ways of recording the approval, the approval no longer needs a stop record, a check row that doesn't count no longer uses it up, gstack builds the diff the checker reads, long reasons fit, and finished or dead /ship runs stop blocking gstack upgrades. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Review-Finding: p1/specialist-batched#1 reader=security Review-Finding: p1/specialist-batched#2 reader=state-machines Review-Finding: p1/specialist-batched#3 reader=state-machines Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/red-team#2 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: p2/outside-voice#1 reader=outside-voice Review-Finding: p2/outside-voice#2 reader=outside-voice Review-Finding: p2/outside-voice#3 reader=outside-voice Review-Finding: p2/adversarial-native#1 reader=adversarial-native Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… at any age Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 22, 2026
Merged
Merged
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.
After a pull request's two review rounds, an approved extra check of the fixes now ends in a /ship sign-off instead of a dead end.
Why: three projects (gbrain #10068, gskills #23–#25, gstack #4712) had no way to finish after a ruling at the round limit and skipped the sign-off or bent their records.
Nothing to do: the next /ship uses it.
What changed
gstack-ship-receipt claimandwritenow accept both ways of recording the approval for one more scoped check after the round limit.docs/review-policy.md#one-grant-pathanddocs/troubleshooting.md.Tests
New
test/round-cap-ruling-path.test.tshas 13 cases, one per reported failure plus the review findings. Run against main at 2ab2aad, all 9 original cases that can load there fail; the upgrade-hold cases need the new module. Each review fix added a case that fails on the code before it (3 of 3 after round 1, 3 of 3 after the extra check). Focused suites at the final code: 118 tests pass. CI's full free run at 2b11ffa passed.Approvals
Approvals
Approved: yes (record r-23f8f6209764). The full approval record stays private.
Plan: exempt: bug fix (GST-3546); bug fixes need no plan approval (R4)
Plan check: exempt bug fix
Review notes
Below the blocking floor; recorded here and not fixed in this PR.
lib/ship-run-record.ts:62thisRunOwner now returns null when the ancestor walk reaches a wrapper process (a shell or similar) whose parent is init (ppid<=1). Before this change it returned that orphaned wrapper as the owner. With no owner, ownerGone cannot prove the run ended, so the run keeps holding gstack upgrades and abasf-784e06c66d90security finding, details recorded privatelysf-d5ee1d766831security finding, details recorded privatelybin/gstack-approvals:255(targeted reader): the add guard's spelling gap, fixed in the extra check by matching anyreview_loop_grantmention.test/round-cap-ruling-path.test.ts(second-model review): the add guard's refusal had no negative test; the extra check added the spellings.lib/ship-release.ts:308(second-model review): after a spent grant, release's fix-check chain and receipt clearing can print different lines; the receipt still refuses.lib/ship-run-live.ts:37(second-model review): a budget ledger rebuilt byresume --rebuild-from-recordkeeps holding upgrades until it closes or ages out (fails safe).lib/fix-check-clearing.ts:107(targeted reader on the final head): a legacyreview_loop_grantrow that an older run already spent throughgstack-review-plan --grant(which wrote no claim) could be claimed again by a later run; a follow-up should checkgrantSpentat claim for legacy rows.Documentation
Status: updated. One factual fix, no blockers.
Scope: base 2ab2aad to head 06ccb4b (3 commits, 23 files; nothing staged, unstaged or new). The branch's own docs (review-policy.md #one-grant-path, troubleshooting.md, the changelog.d fragment) were checked against the code and are accurate.
Documentation health:
Coverage debt:
gstack-ship-run livehas reference-only coverage (its --help text and troubleshooting.md). No critical gaps. No diagram drift.Agent notes
Lane GSTA-815 for GStack Minder (GSTA-36). Grant kinds unified in
lib/review-round-grant.ts(legacyreview_loop_grant <head>rows parse as fix-check grants with pr 0);clearByGrantanswers a no-stop grant through this run's claim and reads only the first counted row (a counted read that found issues spends the grant);gstack-approvals addrefuses a self-recordedreview_loop_grantrow inside an open /ship run unless it carries--owner-refand--words;grantSpentcounts only counted rows;claimedFixCheckHunksbuilds the fix-check packet;lib/ship-run-live.tsplusgstack-ship-run livereplace the Capy installer's file-age-only open-run check;abandonRefusalskips the 60-minute wait when the owner is provably gone. After round 2 the second-model review found 4 blockers; GStack Minder granted one scoped fix-check (a-20e83bf68893) at 16518df, which came back clean at 06ccb4b.