Skip to content

Fix ready notes, landing decisions, release PR descriptions and squash messages (GST-3343) - #4596

Merged
capy-ai[bot] merged 7 commits into
mainfrom
ready-land-fixes
Nov 21, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
ready-land-fixes

Conversation

@garrytan

@garrytan garrytan commented Nov 21, 2026 •

Copy link
Copy Markdown
Owner

Landing a ready PR now reads its gate decisions from the PR's ready note, and the ready note, a reopened release PR and a stacked PR's squash message now say the right thing.
Each of these stopped a landing or left a wrong public record until someone fixed it by hand; the goal is unattended shipping that lands on its own.
Nothing to do as a reader.

What changed
  • gstack-ship-queue ready writes the signed, applied, non-security gate decisions into the ready note, and landing reads them from there beside its own approval store, under the same checks. When both hold a decision for the same finding, the newer one wins. --accept-gate-disposition still decides what lands. Security decisions stay private and are never written to the public note.
  • The ready note shows the decision trail's flags from its trail-read row instead of a placeholder line, and calls a PR from a fork an outside PR that was not trial-merged, rather than a sibling.
  • Reopening a release PR rewrites its description with the new release notes. Off Capy it edits the PR with gh and fails if GitHub refuses; on Capy it hands the new description to the host's PR tool instead of writing to GitHub as the owner.
  • When /ship's finish step left no plan line, the ready note writes the plan's public form without the plan record's row.
  • A stacked PR's squash message no longer repeats its parent's trailers.
  • docs/ship-budget.md says how to restart the budget meter for a stopped run whose spending record was already closed, and docs/troubleshooting.md says landing also reads the ready note's decisions.
Tests

Each code fix has a test that failed first: test/ship-queue-land-direct.test.ts (including a newer store decision beating an older ready-note one), test/ship-queue-ready-tail.test.ts, test/release-stamp.test.ts (including the reopen hand-off on Capy), test/plan-record.test.ts and test/squash-message.test.ts. The nine focused test files passed locally at f78d2f7 (227 tests), and the full free suite passed in CI at the same tree (run 44885071384).

Why

Landing, release and squash records should be right without a person copying files or fixing text by hand.

Blast radius

Only gstack's own shipping tools change: gstack-ship-queue ready, land and verify, gstack-release-stamp open on a reopen, and the squash message land writes. A ready note written before this change has no decisions in it, so landing reads only the local store, as before.

Documentation

Status: updated. One factual fix in docs/troubleshooting.md; no blockers.

Scope: 6 commits (6cac5ab..ebdab82), 17 files changed. Covers the gate decisions that land now reads from the READY note, the trail-read flags line, how fork PRs are labelled in trial merges, the release PR body being rewritten on reopen, the plan line taken from /ship finish, trailers in a stacked PR's squash message, and restarting the budget meter for a stopped run whose spending record was already closed. The working tree had no uncommitted or new files.

Documentation health:

  • docs/troubleshooting.md: updated. The QUEUE_GATE_DISPOSITION entry now says land also reads the signed non-security rows from the READY note, and that security-class rows never go in the note.
  • docs/ship-policy.md: current (already updated on this branch).
  • docs/unattended.md: current (already updated on this branch).
  • docs/ship-budget.md: current (already updated on this branch).
  • docs/releases.md: current.
  • changelog.d/ready-land-fixes.md: current (read only, never edited).

Coverage debt: none found. Diagram drift: none.

Agent notes

Small-fix batch A (GST-3343), items 4, 6, 7, 8, 9 and 10. Item 4 took option (b): ready writes the dispositions into the refs/notes/gstack-trains note, because #4581's row reached the drive only by a hand copy and refs/notes travels with the repository. #4592 landed on main mid-run and conflicted in lib/release-stamp.ts; the conflict was resolved under Captain GStack Minder's written grant (GSTA-36), and the reopen hand-off was added at the same time.

Approved: yes (record r-058d4dfecba0). The full approval record stays private.
Plan: exempt: bug fix batch, failing tests first (R65)
Plan check: exempt bug fix
Review-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-21 via written grant relayed by the lane GSTA-684 (CREW rule 13); approval a-34f6a9d06701: Post-review main merge of #4592 (6cac5ab) needed a conflict resolution in lib/release-stamp.ts, plus the Capy pr-body hand-off the Captain asked to fold in; one scoped fix-check read it with no blocker. (fix-check at f78d2f7, 1 finding)

Review notes (below the blocking floor, not fixed here): round 2's red team noted that an invalid store row sharing an id with a valid ready-note row would hide the note row (unreachable in practice; land refuses); the adversarial reader noted string ordering of recorded_at for hand-built timestamps and clock skew between machines (both fail closed); the fix-check noted that the HOST_PUBLISH troubleshooting entry does not yet mention the reopen pr-body hand-off.

CI_CARRY: accepted ci-carry tree=7b60e21ba2d3 tests=38651 runs=44885071384/1 profiles=ci-reuse/free-tests heads=f78d2f73d1f4
PREGATE: requires-remote cleared tree=7b60e21ba2d3 head=f78d2f73d1f4 checks=8 of 8

{
  "schema_version": 1,
  "pr": 4596,
  "head": "f78d2f73d1f4777ec1ad8070564dd3965797de7e",
  "version": "1.102.1.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 227,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 36,
  "session_kind": "unattended",
  "run": "ship-4596",
  "head_tree": "7b60e21ba2d35146229c332288864f6e62c227c3",
  "product_patch_id": "4aa75b95cbf64ab32c21e89da9c00f72ecfa50d5",
  "gstack_version": "1.102.1.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 125,
    "rules": "85b3923b1a978e41",
    "base": "c0fd3bfd146fe313da1f34cb6f03bb9787dedad7",
    "registry": "c0fd3bfd146fe313da1f34cb6f03bb9787dedad7",
    "gate_scan": {
      "tagged": 0,
      "head": "f78d2f73d1f4777ec1ad8070564dd3965797de7e"
    },
    "reasons": [
      "gate-class",
      "risk:security",
      "runtime=125"
    ],
    "risk": [
      "security"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @7b60e21ba2d3 (8 checks, current for f78d2f73d1f4)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44885071384/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44884603734/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=7b60e21ba2d3 tests=38651 skipped=72 runs=44885071384/1 profiles=ci-reuse/free-tests heads=f78d2f73d1f4 verified=2026-11-21T08:35:23.000Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md (docs/troubleshooting.md updated)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 4,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 1,
    "rounds": 3,
    "dispatches": {
      "specialist": 2,
      "red-team": 2
    }
  },
  "review_loop_exception": {
    "accepted_by": "Captain GStack Minder (GSTA-36)",
    "date": "2026-11-21",
    "via": "written grant relayed by the lane GSTA-684 (CREW rule 13); approval a-34f6a9d06701",
    "reason": "Post-review main merge of #4592 (6cac5ab3) needed a conflict resolution in lib/release-stamp.ts, plus the Capy pr-body hand-off the Captain asked to fold in; one scoped fix-check read it with no blocker.",
    "fix_check": {
      "head": "f78d2f73d1f4777ec1ad8070564dd3965797de7e",
      "findings": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

garrytan and others added 2 commits November 21, 2026 06:49
… recorded elsewhere, and release, plan and squash messages stay accurate

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 21, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 5 commits November 21, 2026 06:55
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e both hold one

Review-Finding: p1/red-team#1 reader=red-team
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…w body to the host on Capy

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…eady note

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 7fe1900 into main Nov 21, 2026
83 checks passed
@garrytan garrytan mentioned this pull request Nov 21, 2026
capy-ai Bot added a commit that referenced this pull request Nov 21, 2026
- Habits from nine teams, written into gstack. (#4585)
- Three more habits from teams that run evals. (#4602)
- The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611)
- The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609)
- The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605)
- The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587)
- gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576)
- Free Tests shards finish closer together. (#4578)
- The weekly test-time recording can land again on its own. (#4581)
- The job-log tree.json step's recommended sleep is long enough for real runners. (#4589)
- Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579)
- Windows Setup E2E finishes sooner on install changes. (#4575)
- Skills no longer stop on Codex when they clean up temp files. (#4612)
- /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622)
- Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582)
- gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629)
- The README and docs no longer say gstack makes your agent fix more bugs. (#4598)
- `/eval-plan` now writes eval plans that waste less money. (#4591)
- /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592)
- Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623)
- Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626)
- A quarantined test that the runner skipped now fails the run instead of passing it. (#4590)
- A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613)
- Free Tests runs its shards on 16-core runners. (#4600)
- /office-hours asks for ground truth first. (#4468)
- Every startup session ends with a dated test. (#4468)
- /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621)
- Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596)
- /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580)
- Results PRs with large captured agent sessions can be reviewed. (#4574)
- /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595)
- /ship's review readers are now told never to stop processes they didn't start. (#4607)
- /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606)
- /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608)
- The slowest free test file is now six files. (#4588)
- Step 11.5 keeps a reviewed head current across base-only merges. (#4577)
- On a Capy install, only the owner's opt-in sends telemetry. (#4597)
- New page: working across agent systems. (#4583)

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