Repository navigation
A used review grant can no longer be claimed again, plus two /ship finish fixes (GST-3560) - #4722
Merged
Merged
Conversation
…nish fixes (GST-3560) A grant for one follow-up review can no longer be claimed again once that review ran. /ship finish no longer calls the docs audit stale for a path a clean follow-up review read, and the CI-record timeout no longer counts local test runs. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
A static import pulled the whole review module graph into every gstack-ship-receipt command, which a minimal skill install used by the docs command test does not ship. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The CI-record timeout now stops the CI lookup while it runs, a read stamped with another grant no longer uses up this grant, and the docs check counts only paths unchanged since a clean follow-up review read them. Review-Finding: pass1/outside-voice#1 reader=outside-voice Review-Finding: pass1/outside-voice#2 reader=outside-voice Review-Finding: pass1/outside-voice#3 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
carryLane's async spawn had no error handler, so a launch failure crashed accept, finish and preflight instead of failing that lane. Review-Finding: pass2/outside-voice#2 reader=outside-voice 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 23, 2026
garrytan
added a commit
that referenced
this pull request
Nov 23, 2026
…two tests are tighter (GST-3567) Exploratory check on #4722's real run 45089670503: comparing whole files refused it, because main and the branch both edited docs/pregate.md and docs/troubleshooting.md in different places. The rule now uses ownLinesSame, the same own-lines comparison a base-only merge of a reviewed head meets, and lives in lib/pregate/run-check.ts. The red-run test checks the exit status, and a new test drives clear --run through the forwarded rule. Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: lib/pregate/run-check.ts:70:functional-contract reader=qa Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
capy-ai Bot
added a commit
that referenced
this pull request
Nov 23, 2026
…it (GST-3567) (#4728) /ship's final CI check (`gstack-ship-release accept`) now accepts a green pull request run that tested your branch merged onto a newer main, when main changed none of your lines. Why: before, it refused that run and you had to merge main and rerun CI, which never settles on a busy repo (harness-evals #576, gstack #4722). Nothing to do. Repos with a land step still re-check the merged tree; repos with `land: null` get no merged-tree check. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: lib/pregate/run-check.ts:70:functional-contract reader=qa Review-Finding: p2/outside-voice#1 reader=outside-voice
Merged
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.
A grant for one follow-up review of a fix can no longer be claimed again once that review ran, so one grant still buys one round.
/ship finish no longer calls the docs audit stale for a file a clean follow-up review read, and the CI-record timeout no longer counts local test runs.
Nothing to do: the merge checks only get stricter, and the timeout setting keeps its name and default.
What changed
gstack-ship-receipt claimreads the review log before it writes a claim. For a grant for a follow-up review, if a counted follow-up review already read under that grant (a row that names the grant, or an unstamped row logged after the grant was recorded), claim refuses withGRANT_SPENT. A row stamped with a different grant never spends this one. This closes the gap where a read planned throughgstack-review-plan --grantleft no claim in the PR body, so the same grant (an owner'sreview_loop_grantrow or a round grant) could be claimed for a second read. A run that already holds the claim can still claim again, and a malformed row still spends nothing.gstack-ship-release finish: a path the follow-up review read, and that is byte-identical since that review, no longer stales the Step 14.5 docs audit.DOCS: freshlists it asfix_checked=<n>. Before,DOCS: stale (<path>)stopped finish after a clean follow-up review at the current head, and no documented recovery applied.ci_record_timeout_snow bounds only finding and verifying the CI run.record-ciprintsCI_RECORD_PHASE: localbefore it runs CI-skipped files or an exception preflight here, and from that marker the caller allows up to an hour more. Before, harness-evals /office-hours -- kill the glazing in the final step #538's 445 remainder tests took about 880 s against a 900 s bound. A failure to startrecord-cistill returnsrecord_failed.GRANT_SPENT, review-policy (claim, and the docs check for reviewed paths), ship-policy and the merge-check reference page onci_record_timeout_s, and a changelog fragment.Tests
Each fix has a test that fails on main and passes here:
test/round-cap-ruling-path.test.ts(claim refuses a spent legacy grant and a spent round grant; negative controls for an unspent grant, a row stamped with another grant, a malformed row and a re-claim by the same run),test/ship-finish-fixed-links.test.ts(a path the follow-up review read counts as reviewed; an unread or later-changed path still refuses), andtest/ship-record-ci-reuse.test.ts(local runs past the bound still count the CI run; a CI phase past the bound stops and runs nothing here). Focused run: 18 files, 466 pass, 0 fail;bun run typecheckandtypecheck:testclean. CI is the full run.Agent notes
Follow-up to #4717 (GST-3546 attention 1) plus GST-3560 from HARN-64 (garrytan/harness-evals#538).
Approved: yes (record r-7a0f2abbc151). The full approval record stays private.
Plan: exempt: bug fix (GST-3560); bug fixes need no plan approval (R4)
Plan check: exempt bug fix
Open notes below the blocking floor, from the second-model and specialist reviews: no test yet for the base-merge patch-equivalence docs case; the 6 s bound in one record-ci test could flake on a slow runner; a timer kill races process exit, so the error path can report bound:false after a kill; a kill after the ledger write can make "nothing was recorded" untrue; a fix-check read is not a docs audit.
Ruled note: lib/ship-bin-common.ts:206:process-tree-kill at 4fb0441 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-23T00:23:26.892Z) at 2026-11-23T00:23:27.811Z: main's spawnSync timeout also kills only the direct child; a process-group kill with a Windows path is a separate fix. (approval a-53da98f10a97)