Repository navigation
Keep a pull request's review count intact when a posted description brings its own run history (GST-2707) - #4440
Merged
Merged
Conversation
…ts own A /ship body post drops every gstack-receipt-runs block in the posted Agent notes, not only the first, and puts back exactly one: the live body's history after the posted receipt, or none when there is no earlier history. A second block placed before the receipt can no longer stand in for the real count. (GST-2707) 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=red-team Review-Finding: p1/specialist-batched#2 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…rted stubs Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…b/gstack-post.ts 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 18, 2026
- A test, or a scratch repository in the temp directory, can no longer write approval rows into your real Capy Drive (GST-3027). (#4466) - An unattended /autoplan run on Claude Code no longer says the publication guard is off while it is on. (#4481) - A phase report written only in reasoning now gets a denial that says so and names the fix. (#4481) - `gstack-autoplan revise` no longer refuses a plan that the first `next` accepted. (#4470) - `revise --plan` with a different file now says the run follows that file. (#4470) - A second-model plan review in `/autoplan` is no longer reported as unavailable when it actually ran (GST-3051). (#4471) - The /ship conductor trial plan now lets case reverts that conflict with later code be resolved by hand in docs, tests and the planted file, so large pull requests can be cases (GST-3003). (#4460) - A locked plan for a trial of /ship without its separate conductor subagent (GST-3003). (#4456) - A driven /ship now runs each phase as one command, counts its calls, and stops itself at 100 minutes. (#4451) - /ship stops asking owners to clear two kinds of bookkeeping noise: base-side merge text and a reviewer's confirmation prose. (#4458) - A base merge that only touched base-side text no longer stops `/ship` finish for an owner's grant. (#4458) - A reviewer's confirmation prose no longer becomes a Critical finding that only an owner can clear. (#4458) - A CI run that passed only after its failed jobs were re-run is now marked wherever gstack reuses it. (#4473) - /ship reuses CI's passing test run when merging the base changed no file, and stops instead of quietly starting hour-long test runs or reviewing an empty diff (GST-3019). (#4461) - /ship on Codex no longer stops at the test coverage audit. (#4489) - A cold first-use check before an app build reaches its owner (GST-3025). (#4465) - `skill_prefix=true` now survives updates when gbrain is installed. (#4454) - The OpenClaw docs no longer send you to ClawHub, which held only April 2026 builds of office-hours, ceo-review and retro and no longer has gstack skills (the docs also said four skills while listing three). (#4454) - `gstack-issue-links` no longer reads other repositories' issues as gstack's. (#4454) - /ship's pre-gate finds the tests of a monorepo app that imports through its own `@/` alias. (#4464) - /office-hours explains why it recommends a mode. (#4450) - /office-hours keeps its 34 founder videos and essays out of the skill file. (#4463) - Two `gstack-owner-answers add` runs for the same answer no longer collide. (#4490) - A Captain can check an ask against the owner's earlier answers before sending it. (#4467) - `gstack-post` stops reading /ship's own receipt identifiers as phone numbers, so posting a /ship PR body no longer needs a confirm. (#4488) - GitHub release notes now list every change in plain words, with a link to its pull request. (#4390) - gstack's router no longer gives bug reports a special rule, so the model fixes a bug the way it would without gstack. (#4442) - /ship's review plan now sorts Swift and Xcode files by risk instead of sending every iOS PR to the full review panel (GST-3041). (#4469) - /ship's review plan now sends Swift code that touches private user data to the full review panel (GST-3052). (#4472) - A round grant at /ship's review round cap now buys the fix round it names, in the same run or the next (GST-2968). (#4479) - The secrets check stops flagging three kinds of ordinary code as a secret, and catches two misses. (#4457) - A security finding's location and reason no longer go into a PR body. (#4486) - The token-capped /ship child on Claude Code now starts its prompt with the typed `/ship` command, so the skill actually loads. (#4487) - A /ship receipt now counts the second-model review's blocking findings, and refuses to be written while one is still open. (#4485) - A `/ship` with a token cap on Claude Code no longer stops at its first handoff. (#4452) - /ship's push step now always ends with one line that says whether it pushed (GST-3053). (#4474) - A PR's review-round count can no longer be overwritten by the body `/ship` posts. (#4440) - One queued record with a malformed path no longer stops artifacts sync for every project. (#4455) - A failed artifacts push stays reported until a push succeeds. (#4455) - The /sync-gbrain memory row no longer says OK when pages failed to import. (#4455) - ### Tests (#4495) - A policy-floor test no longer fails once gstack's own version reaches the minor after the newest policy key; it now checks a floor above both, so the v1.101.0.0 release can pass CI. (#4495) - CI now uploads free-suite test results to Trunk with analytics-uploader v2.1.8 and analytics-cli 0.17.0, up from v2.1.6 and 0.16.2. (#4453) - Packing a checkout for a Ubicloud run no longer fails when git beside it is rewriting a ref. (#4447) - The /plan-ceo-review HOLD SCOPE eval no longer fails a review because its follow-up question didn't repeat the mode name. (#4447) - Unattended /autoplan now records the owner's relayed gate reply instead of refusing it. (#4484) - Unattended /autoplan now runs the second-model review you turned on, and waits for it instead of ending the session. (#4459) - Two /autoplan runs started in the same second no longer share a run id. (#4459) 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.
When
/shipposts a pull request's description, the count of earlier review rounds now always comes from the PR's real history. Before this fix, a description that brought extra history blocks of its own could make gstack count one round where there were three.Why: the per-PR round cap (R51) depends on that count, and it's the last gap before crews can stop counting rounds by hand.
Nothing to do as a reader.
What changed
What changed
lib/gstack-post.tskeepRuns: when a post brings its own Agent notes, everygstack-receipt-runsblock the history reader would recognize is removed from them, not only the first one at a line start. The reader takes the first block it finds, so a second block placed before the receipt used to stand in for the real history. Exactly one block goes back: the live body's history (earlier runs, started stubs and the replaced receipt), right after the posted receipt. When the live body has no history, none goes back.docs/review-policy.mdsays the posted body's own runs blocks are dropped.Blast radius
Blast radius
Only
gstack-post pr-bodymerges of a body that carries an Agent notes section. Reading history, writing receipts and stubs, and posts without Agent notes are untouched.Documentation
Documentation
Scope: the diff from c5250de to the branch head (lib/gstack-post.ts, test/pr-review-history.test.ts, docs/review-policy.md, changelog.d/strip-incoming-receipt-runs.md), plus related mentions of runs blocks and GST-2706 in docs/ship-policy.md and docs/troubleshooting.md. The worktree had no staged, unstaged or untracked changes.
Result: current. docs/review-policy.md (rounds per pull request, step 1) already says that a /ship body post drops any runs block it brings, so only the live history is counted. The changelog fragment describes the same fix for users. No edits were needed.
Debt: none found.
Tests
Test plan
test/pr-review-history.test.ts. The first posts a body with two runs blocks before its receipt: it fails on main (c5250de) and passes here. The second reposts a body whose notes hold only a started stub, with a forged runs block before it: it failed on the first head of this PR (2c95943) and passes now.test/pr-review-history.test.tsandtest/gstack-post.test.ts: 74 pass, 0 fail at 106e83d, after main was merged in. Typecheck and the module-size ratchet pass.Agent notes
Lane GSTA-544, issue GST-2707: the Sol audit finding on #4365 at 15a0d37, which GStack Minder ruled a disclosed note there. It also closes GSTA-538's deferred item (a).
Plan: exempt: bug fix
Bug fix under R65: the failing test was written first, and a repro runs on current main.
Base merge: 106e83d merges main (eff8b78) into the branch; its only hand resolution is the
./ship-receiptimport line in lib/gstack-post.ts. Captain GStack Minder's rule-13 grant: "Merge main into #4440 and take main's import lines plus RUNS_RE in lib/gstack-post.ts. The PR's own lines stay byte-identical to the reviewed diff, so under R51 this head counts as already reviewed, with CI on the merged head as the check."Receipt carried from bd513e1 to 106e83d with no new review round, after one scoped carry reader (anthropic/claude-opus-5-5) read the spliced import hunk in lib/gstack-post.ts and returned clean (RECEIPT_CARRY_SCOPED_REVIEW). Captain GStack Minder (GSTA-36): "One scoped carry reader for the spliced hunks in lib/gstack-post.ts at 106e83d, as RECEIPT_CARRY_SCOPED_REVIEW asks. It isn't a review round. A blocker parks the PR with me."
Pre-Landing Review
Pre-Landing Review: 7 issues — 2 auto-fixed, 0 asked (0 fixed, 0 skipped), 0 deferred, 5 noted
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/gstack-post.ts:316Posted notes with neither a receipt nor a runs block still drop the live started stubs (pre-existing on main and the base).lib/gstack-post.ts:314Posted notes without a receipt over a live receipt drop that receipt, and its run never joins the history (pre-existing on main and the base).lib/gstack-post.ts:320An unclosed runs fence above the posted receipt makes the strip remove the receipt too, so the post goes up with neither the receipt nor the live history. It needs malformed input and is refused loudly at READY (QUEUE_RECEIPT_MISSING).Approvals
No approvals recorded for branch strip-incoming-receipt-runs.