Skip to content

READY prints real trial merges and the second-model trail read, plus six small ship-tool fixes (GST-3200) - #4529

Merged
capy-ai[bot] merged 6 commits into
mainfrom
ship-tooling-small-fixes
Nov 19, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
ship-tooling-small-fixes

Conversation

@garrytan

@garrytan garrytan commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

READY now prints each open PR's trial-merge result and the reader of the second-model trail read, or a loud MISSING line, instead of lines left to fill in.
Why: agents dropped those lines as noise and skipped the trail read on three gate-class PRs. Six more small ship-tool bugs from 2026-11-19 reports are fixed here too.
Nothing to do: pass --trail <decisions.tsv> to gstack-ship-queue ready on risk-class PRs.

What changed
  • READY tail. gstack-ship-queue ready lists the open PRs into the base that change a file this PR changes. It prints one TRIAL_MERGES: line for each, built from git merge-tree at both heads: clean with its tree, or the conflicting files. With --trail, the Attention line of a PR whose review is gate or risk class names the reader from the trail's newest trail-read row. Without one it prints MISSING: cross-family trail read. gh or fetch failures print MISSING too.
  • Plan line. Plan: exempt: accepts bug-fix wording ("bug fix with failing-first tests", "bugfix", "bug-fix: ..."). /ship finish --plan now records the line it resolved, and ready uses that record when the PR body has no Plan line. The READY note marks it from: finish, so land accepts it.
  • Round grants. gstack-approvals round-grant and its reader refuse only gstack's own names ("gstack", "gstack no-stop default (K1)"), matched whole. "gstack-evals Captain" can now record a grant.
  • Hand-off destination. Both HOST_PUBLISH paths pass GH_REPO to gh repo view, which doesn't read it on its own. A fork pr-create hand-off names its head as owner:branch, and it refuses when the fork is on another host.
  • Targeted patch id. targetedPatchId() hashes the diff with core.quotePath=false, like the check that compares against it. A read on a non-ASCII path now carries across a docs-only change.
  • Relayed rulings. While a /ship run is open, gstack-approvals rule takes --owner-ref <thread>:<message id or time> with the owner's --by and --words. The approval row, the /ship record in the PR body and the Ruled note line are marked as relayed from that message. Without the flag, the refusal now has its own code, APPROVAL_RULING_RUN_OPEN, with accurate text.
  • Red-team redaction. rule --not-security is the owner's call that a red-team finding isn't a security finding. Its line then shows <path>:<line> (red-team, ruled not security class) and the reason. Security, auth and secret findings can't take it, and every other red-team line stays redacted.
Tests

Each item has a test that fails at main 45e6d54 and passes on this branch: pr-round-cli, review-round-grant, review-plan-targeted-delta, plan-record, the READY tail unit test, gstack-ship-queue, capy-host-publish (one test drives real gh against a fake API on a unix socket), security-finding-redaction, ship-finish-ruled-notes. Typecheck, typecheck:test, generated-file freshness, troubleshooting anchors, module-size ratchet, spawnSync tripwire, bun entry isolation, free-shard curation and the credential scan pass locally.

Known limits

The second-model review of the final head raised five issues. The maintainer chose to ship them as open notes:

  1. bin/gstack-approvals:213: self-attested --owner-ref relay by design: the source is checkable, nothing verifies it automatically.
  2. lib/plan-record.ts:249: finish's fallback copies raw --plan text into the public notes ref; an approved: line naming a local path would publish it.
  3. lib/gstack-post.ts:834: the MEDIUM confirm token binds origin, not the GH_REPO destination.
  4. lib/gstack-post.ts:859: the PR-URL check compares owner/repo, not the host.
  5. lib/ship-queue.ts:386: TRIAL_MERGES misses a rename's old path and treats the 200-PR list as complete (advisory line).

Another small gstack bug seen while shipping this PR, not changed here: gstack-ship-queue ready prints its own template line <flags against decision-trail row numbers, or No flags> under Attention instead of the flags.

Agent notes

GSTA-652 for GStack Minder (GSTA-36), issue GST-3200. Decision trail: captain drive reports/GSTA-652-decisions.tsv. Peer note for GBRA-108: handoffs/GSTA-652/gbrain-note.md.
Ruled note: bin/gstack-approvals:213:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:21:12Z) at 2026-11-19T16:21:30.762Z: self-attested --owner-ref relay by design: the source is checkable, nothing verifies it automatically (approval a-67487a0fd6cf)
Ruled note: lib/plan-record.ts:249:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:21:12Z) at 2026-11-19T16:21:30.913Z: finish's fallback copies raw --plan text into the public notes ref; an approved: line naming a local path would publish it (approval a-192b9566bc2a)
Ruled note: lib/gstack-post.ts:834:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:21:12Z) at 2026-11-19T16:21:31.083Z: the MEDIUM confirm token binds origin, not the GH_REPO destination (approval a-3a5064c95dfd)
Ruled note: lib/gstack-post.ts:859:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:21:12Z) at 2026-11-19T16:21:31.164Z: the PR-URL check compares owner/repo, not the host (approval a-f8f8f5d95690)
Ruled note: lib/ship-queue.ts:386:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:21:12Z) at 2026-11-19T16:21:31.238Z: TRIAL_MERGES misses a rename's old path and treats the 200-PR list as complete (advisory line) (approval a-e7c2b52effb8)
Ruled note: bin/gstack-approvals:212:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:55:28Z) at 2026-11-19T16:55:50.940Z: fixed in e99cada (Review-Finding trailer); the final full review at 0984bf3 did not raise it again (approval a-61a7696f9f4c)
Ruled note: lib/gstack-post.ts:855:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:55:28Z) at 2026-11-19T16:55:51.300Z: fixed in e99cada (Review-Finding trailer); the final full review at 0984bf3 did not raise it again (approval a-f2a468fdf6e8)
Ruled note: lib/plan-record.ts:285:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:55:28Z) at 2026-11-19T16:55:51.620Z: fixed in e99cada (Review-Finding trailer); the final full review at 0984bf3 did not raise it again (approval a-9b1c38bd2457)
Ruled note: bin/gstack-ship-queue:239:outside-voice at 0984bf3 ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-19T16:55:28Z) at 2026-11-19T16:55:51.924Z: fixed in e99cada (Review-Finding trailer); the final full review at 0984bf3 did not raise it again (approval a-90366fb3cd7c)

{
  "schema_version": 1,
  "pr": 4529,
  "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
  "version": "1.101.0.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1710,
      "fail": 0,
      "skip": 6,
      "unit": "files",
      "source": "ci",
      "runs": [
        "44568067736/1"
      ]
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 44568067736,
      "attempt": 1,
      "tree": "4199e7a654e76117f5d356fc24b6a431ae8fa623"
    }
  ],
  "calls": 57,
  "session_kind": "unattended",
  "run": "ship-4529",
  "head_tree": "4199e7a654e76117f5d356fc24b6a431ae8fa623",
  "product_patch_id": "c23eb32426a11cc91db661b41627d7e572c7e8cb",
  "gstack_version": "1.101.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 249,
    "rules": "1afa38a4be3b5eef",
    "base": "9610ba43db3b9c9992eec69e555d94a99d9c807d",
    "registry": "9610ba43db3b9c9992eec69e555d94a99d9c807d",
    "gate_scan": {
      "tagged": 0,
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8"
    },
    "reasons": [
      "gate-class",
      "runtime=249"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @4199e7a654e7 (8 checks, current for 0984bf373588)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44568067736/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44568067736/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44565762003/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=4199e7a654e7 tests=38243 skipped=105 runs=44568067736/1 profiles=ci-reuse/free-tests heads=0984bf373588 verified=2026-11-19T16:46:59.434Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md and CONTRIBUTING.md against the committed diff 45e6d549..HEAD (re-audit a2; a1 updated docs/review-policy.md and docs/troubleshooting.md)"
  },
  "review_loop": {
    "passes": 3,
    "blocking_found": 10,
    "deferred": 0,
    "noted": 19,
    "fixed": 7,
    "scope": "frozen",
    "rounds": 3,
    "dispatches": {
      "specialist": 3,
      "red-team": 3
    }
  },
  "ruled_notes": [
    {
      "finding": "bin/gstack-approvals:213:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "self-attested --owner-ref relay by design: the source is checkable, nothing verifies it automatically",
      "at": "2026-11-19T16:21:30.762Z",
      "approval": "a-67487a0fd6cf",
      "relayed": "GSTA-36:2026-11-19T16:21:12Z"
    },
    {
      "finding": "lib/plan-record.ts:249:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "finish's fallback copies raw --plan text into the public notes ref; an approved: line naming a local path would publish it",
      "at": "2026-11-19T16:21:30.913Z",
      "approval": "a-192b9566bc2a",
      "relayed": "GSTA-36:2026-11-19T16:21:12Z"
    },
    {
      "finding": "lib/gstack-post.ts:834:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "the MEDIUM confirm token binds origin, not the GH_REPO destination",
      "at": "2026-11-19T16:21:31.083Z",
      "approval": "a-3a5064c95dfd",
      "relayed": "GSTA-36:2026-11-19T16:21:12Z"
    },
    {
      "finding": "lib/gstack-post.ts:859:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "the PR-URL check compares owner/repo, not the host",
      "at": "2026-11-19T16:21:31.164Z",
      "approval": "a-f8f8f5d95690",
      "relayed": "GSTA-36:2026-11-19T16:21:12Z"
    },
    {
      "finding": "lib/ship-queue.ts:386:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "TRIAL_MERGES misses a rename's old path and treats the 200-PR list as complete (advisory line)",
      "at": "2026-11-19T16:21:31.238Z",
      "approval": "a-e7c2b52effb8",
      "relayed": "GSTA-36:2026-11-19T16:21:12Z"
    },
    {
      "finding": "bin/gstack-approvals:212:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "fixed in e99cada (Review-Finding trailer); the final full review at 0984bf3 did not raise it again",
      "at": "2026-11-19T16:55:50.940Z",
      "approval": "a-61a7696f9f4c",
      "relayed": "GSTA-36:2026-11-19T16:55:28Z"
    },
    {
      "finding": "lib/gstack-post.ts:855:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "fixed in e99cada (Review-Finding trailer); the final full review at 0984bf3 did not raise it again",
      "at": "2026-11-19T16:55:51.300Z",
      "approval": "a-f2a468fdf6e8",
      "relayed": "GSTA-36:2026-11-19T16:55:28Z"
    },
    {
      "finding": "lib/plan-record.ts:285:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "fixed in e99cada (Review-Finding trailer); the final full review at 0984bf3 did not raise it again",
      "at": "2026-11-19T16:55:51.620Z",
      "approval": "a-9b1c38bd2457",
      "relayed": "GSTA-36:2026-11-19T16:55:28Z"
    },
    {
      "finding": "bin/gstack-ship-queue:239:outside-voice",
      "head": "0984bf3735884c1ea035ec40e1f73fc9b23960f8",
      "by": "Captain GStack Minder (GSTA-36)",
      "reason": "fixed in e99cada (Review-Finding trailer); the final full review at 0984bf3 did not raise it again",
      "at": "2026-11-19T16:55:51.924Z",
      "approval": "a-90366fb3cd7c",
      "relayed": "GSTA-36:2026-11-19T16:55:28Z"
    }
  ],
  "gate_dispositions": []
}

Open in Capy

garrytan and others added 2 commits November 19, 2026 14:02
…five small ship-tool bugs

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>
@trunk-io

trunk-io Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 4 commits November 19, 2026 15:43
A /ship run can no longer lift a red-team finding's redaction, a PR URL can't hand off to a different repository's PR, finish's saved Plan line is bound to its head, and READY under a train policy reads --trail and trial-merges non-ASCII paths.

Review-Finding: p1/outside-voice#1 reader=outside-voice
Review-Finding: p1/outside-voice#2 reader=outside-voice
Review-Finding: p1/outside-voice#3 reader=outside-voice
Review-Finding: p1/outside-voice#4 reader=outside-voice
Review-Finding: p1/outside-voice#5 reader=outside-voice
Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/adversarial-native#4 reader=adversarial-native
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>
…he train ready route

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>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 19, 2026 17:03
@capy-ai
capy-ai Bot merged commit 2714e9f into main Nov 19, 2026
84 checks passed
@garrytan garrytan mentioned this pull request Nov 19, 2026
capy-ai Bot added a commit that referenced this pull request Nov 19, 2026
- `gstack-artifact validate` no longer passes a run.json that gstack-autoplan never wrote. (#4494)
- /ship's changed-number check no longer stops on tests that only share a word with the change (#4478). (#4496)
- On Capy, /ship no longer edits or comments on pull requests as you. (#4518)
- The destructive-command check stops asking about scratch deletes and catches the real damage it used to miss. (#4513)
- The destructive-command check reads commands more carefully, closing gaps found after the last release. (#4525)
- The Codex readiness check and the second-model review now pick the same model for a custom Codex provider (GST-3089). (#4491)
- gstack's Codex hooks work when your Codex folder's path has a `(`, `&` or other shell character in it. (#4528)
- Uninstalling gstack keeps your own Codex hooks trusted. (#4528)
- Codex hook setup matches Codex more closely. (#4528)
- On Windows, setup copies the Claude Code hook code that gstack's Codex hooks import (#4528)
- /review's checklist on Codex reads shell commands more carefully. (#4528)
- On Codex, gstack now suggests the right skill for a prompt and stops destructive commands before they run. (#4512)
- On Codex, /review is now held once when it tries to finish without its adversarial pass or its report, as it already is on Claude Code. (#4522)
- On Codex, gstack's skill suggestion now names the skill the way Codex lists it. (#4523)
- On Codex, gstack's suggested prompts and docs now name skills the way Codex lists them. (#4524)
- /review on Codex with gpt-6.1-sol is no longer held back for a second-model pass it already ran. (#4526)
- On Codex, office-hours, plan-design-review and gstack-upgrade work again when you name them. (#4510)
- gstack knows when Codex is running unattended. (#4510)
- Codex reviewers start with a clean context. (#4510)
- Docs no longer say Codex has no hook support. (#4510)
- A command whose output was cut off no longer counts as a finished read. (#4492)
- A folder marked as published data can no longer hide source code or agent files from /ship's review. (#4516)
- Correction to the on-by-default helper hooks entry: the hook still routes only to /review, /qa and /verify, so skills you've installed yourself aren't suggested yet. With gstack's skills it routes 14 of 60 real bug reports (was 17), and long prompts are no longer skipped. (#4505)
- /sync-gbrain's read check now works when the first page in your code source is over 64 KB. (#4497)
- Free-suite CI no longer fails before any test runs when Ubuntu's package mirror is slow. (#4530)
- Syncing a second repo no longer makes the first one ask for /sync-gbrain again. (#4532)
- gstack's helper hooks are now on by default in Claude Code, OpenClaw and Hermes, and the prompt-routing hook fires on real bug reports. (#4503)
- `gstack-pregate clear --receipt` accepts a remote gate run from before a merged release when the release only regenerated a declared release output. (#4483)
- The second-model review now keeps the reviewer's own result, and reports a used-up budget as a budget stop. (#4515)
- When the reviewer wrote its review to the result file it was asked for, Codex then replaced that file with its short closing message ("Done, I wrote the review"), so the review was thrown away and reported as missing its markers. (#4515)
- When the provider refuses the call with HTTP 402 Payment Required (usually a metering proxy that hit its allowance, or an account out of credits or quota), gstack used to record only "exit 1". (#4515)
- The pre-commit /verify check now fails a check that times out, and its checks share one time budget (GST-3201). (#4527)
- /ship's review collector no longer reads a reviewer's own scope list or list of passed checks as findings (GST-3201). (#4527)
- Merge-queue stack tests fail when git cannot list a PR's added test files (GST-3201). (#4527)
- /ship can now review results PRs that publish raw session data. (#4511)
- /ship's review pass works when the checkout you ship isn't the project's default checkout. (#4507)
- A second review round no longer reports done when nothing was reviewed. (#4520)
- The prompt-routing hook now suggests skills you install yourself, and no longer sends ordinary bug reports to /qa (GST-3123). (#4506)
- gstack's script runner and merge-queue checks now also refuse cut-off output. (#4502)
- A failed second-model review reports the cause that actually stopped it, and the runner never deletes its own prompt. (#4519)
- `gstack-ship-queue ready` now fills in the trial merges and the second-model trail read instead of printing lines to fill. (#4529)
- Five small ship-tool fixes. (#4529)
- A ruling the owner gives while a `/ship` run is open can be relayed. (#4529)
- /ship no longer kills a working test run as stalled when the test command starts its workers in their own session. (#4533)
- /ship no longer stops a review because the state-machine reader started its reply the way its instructions say. (#4504)
- When Claude Code runs /verify right before a commit, it now gets a quick check instead of the full fix loop (GST-3150). (#4508)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant