Repository navigation
Review and ship tools: read Codex numbered severities, check Remote Control sessions, see every worktree - #4681
Merged
Merged
Conversation
Numbered-heading severities from Codex reviews are read (#4231). The /autoplan publication check accepts Remote Control's bridge_status root (#4298). Interactive /autoplan approvals import under their own run id (#4402). /ship's version picker sees every git worktree (#4196). gstack-pr-shots uses the real base branch when origin/HEAD names the feature branch (#4141, #3733). Co-authored-by: larsonthune <[email protected]> Co-authored-by: vilano93 <[email protected]> Co-authored-by: szsunyuan <[email protected]> Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
… split when it cannot help (#4369) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 tasks done
Keep a clean second-model review with numbered section headings clean, and import an interactive /autoplan run under its newest run id with only that run's answers. Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
An abandoned older interactive run in the same directory no longer marks a newer approved run as unanswered. Review exception granted by GSTA-36 for #4681. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Recording an interactive run under its own run id makes the privacy scanner refuse imports on branches whose name holds digits. That change returns in its own PR, designed around the scanner. lib/approval-record.ts, lib/plan-record.ts and their tests match main again. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 22, 2026
This was referenced Nov 23, 2026
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.
Five fixes from outside reports. The too-large-diff fix line now suggests only folders the policy can exclude, Codex findings written as
### 1. Highkeep their severity, /autoplan's report check runs in Remote Control sessions, /ship's version picker sees all worktrees, and PR before/after images use the real base.Why: each reproduced on main with a failing test and gave a wrong answer.
Nothing to do after merge.
What changed, per report
### 1. High — titleand## 2. Critical — …give no severity: 3 of 4 new cases fail.lib/outside-review-result.ts: a label may start with a heading and then a bullet or number. A "high-level" prose control stays unlabelled.system/bridge_statusrecord getsunrecognized_shape:preamble:system:bridge_statusand enforcement is skipped.lib/claude-journal-records.tsaccepts that one record (null parent, no message) above the first turn, like a SessionStart attachment. A second null-parent prompt next to it still denies ascompeting_root.../elsewhere/wt1holding a higher VERSION:siblings: [].bin/gstack-next-versionaddsgit worktree list --porcelainto the workspace_root scan, compares real paths, and skips its own top level.workspace_root: nullstill disables it.src/, 0.35 MB of docs) prints "landsrc/**"; after that policy lands, it excludes 0 files and the line asks forsrc/**again.suggest()inlib/review-exclude.tsranks folders by the bytes of files a policy could exclude, judged by path (data, logs, docs, binary assets; never code or tests), and suggests nothing when those cannot reach the ceiling, so the line says split the PR. Patterns already in the base policy are never suggested again.origin/HEAD→feature, the default base is the feature head, so before and after match.lib/pr-shots.tsuses the shared default-base resolver, then falls back to main, then master.Not taken from PR #4231: part 1, which lets a quoted declaration inside the publication no-op stand in for the phase report. It loosens a check that exists to prove the report was written, so it needs its own decision.
Security read
gstack-next-versionnow runsgit worktree list --porcelainandgit rev-parse --show-toplevelthrough its existingrunCommand(argument array, no shell, 15 s timeout). Paths are only read withstatandgit -C, as the existing scan already did.gstack-pr-shotsnow calls the shared default-base resolver, which may rungh pr view(5 s timeout) andgit ls-remoteagainst the configured remote, as the /ship gates already do.Review notes (14, none blocking; 5 shipped as notes by ruling)
Second-model review findings marked as blocking, each ruled a note by the reviewer's owner:
Ruled note: lib/pr-shots.ts:75:outside-voice at e91936b ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T10:57Z) at 2026-11-22T10:57:51.191Z: Screenshot-only and it fails loudly: the tool refuses with a message asking for --base instead of rendering; no data loss, noted for a follow-up. (approval a-6e4f721d3c2a)
Ruled note: bin/gstack-next-version:433:outside-voice at e91936b ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T10:58Z) at 2026-11-22T10:58:13.095Z: Not a regression against main: main reads sibling VERSION files with the same unbounded read; this PR only adds git-linked worktrees to that set. (approval a-9c8b9e5dad6b)
Ruled note: lib/claude-journal-records.ts:385:outside-voice at e91936b ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T11:22Z) at 2026-11-22T11:22:10.741Z: Not a regression against main: main let every bridge_status session through unchecked (an advisory), so a competing bridge root was never checked before either. (approval a-112a19f9ebbc)
Ruled note: bin/gstack-next-version:415:outside-voice at e91936b ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T11:22Z) at 2026-11-22T11:22:11.133Z: Not a regression against main: main never scanned linked worktrees outside the Conductor layout, so quoted paths there were missed before too. (approval a-5c08ffab4dba)
Ruled note: lib/pr-shots.ts:77:outside-voice at e91936b ruled by GSTA-36 (relayed from GSTA-36:2026-11-22T11:22Z) at 2026-11-22T11:22:11.550Z: Screenshot-only regression C excepted: a default branch named with + falls back to main or master, or refuses; noted for the #4402 follow-up. (approval a-390d85e69f31)
Below the blocking floor, recorded and not fixed in this PR:
lib/review-exclude.ts:667(raised three times) The folder suggestion still counts files the policy keeps, such as config JSON under a data folder and files under.github/or.gstack/, so it can suggest a folder that excludes nothing. Advice only; the ceiling itself is still enforced.lib/review-exclude.ts:686When patterns are already active, the "this gets under the limit" estimate still counts their bytes.lib/pr-shots.ts:73The default-base lookup can now rungh pr viewandgit ls-remote(5 s timeout each), so an offline run can take up to about 10 s longer.bin/gstack-next-version:410Every linked worktree is scanned with two git calls each; a hung path can slow version picking, and recent scratch worktrees can hold version slots (no collision, possibly skipped slots).lib/outside-review-result.ts:169A section heading like### 2. High (overview)can now read as a High finding; the bullet form already had this risk.lib/claude-journal-records.ts:291The bridge-record fix assumes the record carries acwd; if real records lack it, the session is refused as before (fails safe).Gate edits: none detected (8 listed, 3 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Documentation
Status: current. No documentation edits were needed for this branch.
Scope: commits 094263d..e636f03 (13 files: bin/gstack-config, bin/gstack-next-version, bin/gstack-pr-shots, lib/review-exclude.ts, lib/pr-shots.ts, lib/outside-review-result.ts, lib/claude-journal-records.ts, the tests, and one changelog.d fragment). There were no staged, unstaged or untracked changes. The audit searched the repository's Markdown and templates for every changed public surface.
Documentation health:
Coverage debt: the widened worktree scan in gstack-next-version has reference coverage only, in the gstack-config comment and the changelog fragment. The landing-report label 'Sibling Conductor worktrees' undersells it. The Codex numbered-heading severity fix and the autoplan bridge_status fix are internal and need no docs.
Diagram drift: none.
Issues
Fixes #4298
Fixes #4369
Fixes #3733
Refs #4141
Refs #4196
Refs #4231
Refs #4402
Refs #4681
Agent notes
Outside-report lane GSTA-802 (GST-3484).
Plan: exempt: bug fixes from outside reports, each with a failing-first test on main.
/ship (run ship4681b) on e91936b (tree be51090): one read-only final review, because the PR already had two review rounds on earlier heads. Panel: batched specialist, red team, native adversarial and a second-model review (openai/gpt-6.2-sol). Pre-Landing Review: 14 issues — 0 auto-fixed, 2 asked (0 fixed, 2 skipped), 0 deferred, 12 noted (5 by ruling). Head e636f03 only merges main into e91936b; this PR's own lines are byte-identical (same patch id), and CI is green there.
The #4402 run-id change was split out of this PR (it made the privacy scanner refuse imports on numbered branches) and returns in its own PR. The pr-shots default-branch cases (
lib/pr-shots.ts:75and:77) go on that follow-up's list.A cross-family trail read (openai/gpt-6.2-sol) checked the decision trail, review rows and rulings. It found no new defect and corrected three ruling reasons, which were re-recorded with the reviewer's owner's approval.
test/pr-shots.test.ts appears to trigger Playwright's lazy browser install: its CLI capture test renders through the installed browse helper, which runs gstack-browser-ensure and downloads Chromium on first use (tracked as GST-3520). That test times out at 5 s locally, on main too, so CI is the evidence for it.