Skip to content

/ship's push step ends with one line that says whether it pushed (GST-3053) - #4474

Merged
capy-ai[bot] merged 3 commits into
mainfrom
ship-push-prints-one-stable-line-gst-3053
Nov 18, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
ship-push-prints-one-stable-line-gst-3053

Conversation

@garrytan

@garrytan garrytan commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

/ship's push step now always ends with one line that says what happened: PUSH: pushed …, PUSH: already_pushed … or PUSH: failed reason=<code>, with the remote, branch and full commit.
Why: an eval grader looked for a git push call and counted 48 real /ship pushes as "no push"; scripts and graders can now match this one line instead.
If a script of yours matched the old PUSH: ALREADY_PUSHED <short sha> or PUSH: pushed <short sha> to origin/<branch> lines, update it; the exit status is unchanged.

What changed
  • gstack-ship-release push (/ship Step 17) ends with exactly one of PUSH: pushed remote=origin ref=<branch> head=<full sha>, PUSH: already_pushed remote=origin ref=<branch> head=<full sha> or PUSH: failed reason=PUSH_REFUSED|PUSH_REJECTED|PUSH_GIT_FAILED.
  • The three reason codes are registered in lib/result-codes-release.ts, each with a docs/troubleshooting.md entry. The format is documented at docs/unattended.md#push-line.
  • Step 17 in ship/SKILL.md.tmpl and ship/DRIVER.md.tmpl now names the line, trimmed to stay under the skill and driver size limits. Generated files and golden copies are regenerated, and a changelog entry is added.
Blast radius

Only the text of /ship's push output changes. What gets pushed, when, and the exit codes are the same. A search of the repository found no reader of the old lines outside the updated tests and golden files.

Tests
  • The full free test suite passed in CI at 2294465 (run 44231639842).
  • This branch's own push printed PUSH: pushed remote=origin ref=ship-push-prints-one-stable-line-gst-3053 head=2294465066182c2f99d64ba0016213463aaa0c14.
Why

Outside tools need a stable way to tell whether /ship pushed. An eval grader searched for a git push call, found none in 48 real runs that did push, and scored them all as "no push". One fixed line, always last, is something any script can match.

Test Coverage

New tests in test/ship-release.test.ts failed 3 of 3 on main at 29e9502 and pass here. They cover a push, a rerun at the pushed head, and refused, rejected and failed pushes with their exit codes. Coverage of the changed paths is 9 of 11. The two paths without their own test both end in PUSH_GIT_FAILED when git cannot reach the remote, and the smoke check below exercises that case.

Pre-Landing Review

No blocking findings. Four low-severity notes are left open for a follow-up:

  1. lib/ship-release.ts:817: a push refused by a server-side hook ([remote rejected]) is reported as PUSH_REJECTED with merge advice, which cannot fix a hook refusal.
  2. lib/result-codes-release.ts:617 and docs/troubleshooting.md: "nothing was pushed" can be wrong if git push times out after the remote accepted the branch. A rerun prints already_pushed.
  3. lib/ship-bin-common.ts:171: the line stays last only while a push report is under 30 lines. Push prints about 8 lines today.
  4. lib/ship-release.ts:771: an unexpected exception inside the push step would end the run with no PUSH: line.

One more note: the PUSH_GIT_FAILED path after the remote lookup has no test of its own.

Exploratory QA

Two checks against a scratch repository with a local remote both passed. A push and then a rerun printed pushed and then already_pushed with the full commit. An unreachable remote printed PUSH: failed reason=PUSH_GIT_FAILED as the last line, with exit 3.

Documentation

Status: current. The docs already match the change, so no edits were made.

Scope: branch ship-push-prints-one-stable-line-gst-3053, base 29e9502 to head 2294465, 3 commits, with no staged, unstaged or untracked content. Audited the changed docs, the authored ship templates and the changelog fragment against lib/ship-release.ts and lib/result-codes-release.ts, and scanned the rest of the repo for the old PUSH line format.

File Status
docs/unattended.md Current: the #push-line section matches the code (line shapes, exit codes, the line coming last, stderr for usage errors)
docs/troubleshooting.md Current: the three PUSH_* anchors match the result codes and the doctor anchor map
ship/SKILL.md.tmpl Current: Step 17 names the PUSH: line and already_pushed
ship/DRIVER.md.tmpl Current
changelog.d/ship-push-prints-one-stable-line-gst-3053.md Read only, not edited

Coverage debt: none. Diagram drift: none.

Agent notes

Approvals

No approvals recorded for branch ship-push-prints-one-stable-line-gst-3053.
Plan: exempt: bug fix (R65)
Plan check: exempt bug fix

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen ledgers_read=3 dispatches=1
Gate edits: none detected (13 listed, 11 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

{
  "schema_version": 1,
  "pr": 4474,
  "head": "2294465066182c2f99d64ba0016213463aaa0c14",
  "version": "1.100.0.0",
  "base": "main",
  "gate": {
    "free": {
      "pass": 1690,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "free",
      "run": 44231639842,
      "attempt": 1,
      "tree": "be410bb6d0f3866a3baec49bb1c3cca229993e8f"
    }
  ],
  "calls": 33,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/gst-3053-ship",
  "head_tree": "be410bb6d0f3866a3baec49bb1c3cca229993e8f",
  "product_patch_id": "666e86b21b3427ff93dcaeeb04382f39b1871545",
  "gstack_version": "1.100.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 116,
    "rules": "85446ac5884d68a3",
    "base": "29e950227b2d6b87a0529492885f42e522483969",
    "registry": "29e950227b2d6b87a0529492885f42e522483969",
    "gate_scan": {
      "tagged": 0,
      "head": "2294465066182c2f99d64ba0016213463aaa0c14"
    },
    "reasons": [
      "runtime=116"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @be410bb6d0f3 (8 checks, current for 229446506618)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44231639842/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44231639842/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44231645300/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=be410bb6d0f3 tests=37713 skipped=105 runs=44231639842/1 profiles=ci-reuse/free-tests heads=229446506618 verified=2026-11-18T03:48:28.588Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, ship/SKILL.md.tmpl, ship/DRIVER.md.tmpl, changelog fragment (base 29e95022..2294465)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 3,
    "dispatches": {
      "specialist": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

garrytan and others added 2 commits November 18, 2026 01:59
…e outcome

Outside tools graded /ship runs as "no push" because they looked for a git
push call, and /ship pushes through gstack-ship-release push. Every push run
now ends with exactly one line:

  PUSH: pushed remote=origin ref=<branch> head=<full sha>
  PUSH: already_pushed remote=origin ref=<branch> head=<full sha>
  PUSH: failed reason=PUSH_REFUSED|PUSH_REJECTED|PUSH_GIT_FAILED

Exit status is unchanged. The reason codes have troubleshooting entries, and
docs/unattended.md#push-line documents the line for probe authors. (GST-3053)

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

Copy link
Copy Markdown

😎 This pull request was merged.

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 18, 2026 03:51
@capy-ai
capy-ai Bot merged commit 33b1a96 into main Nov 18, 2026
82 of 83 checks passed
capy-ai Bot added a commit that referenced this pull request Nov 18, 2026
…ne numbers (#4480) (#4488)

Posting a /ship PR body no longer stops on a phone-number warning for
the run id and commit ids that /ship writes into it.

Why: most /ship runs hit this confirm (#4480, and #4474), which turned a
privacy guard into noise people click past.

Nothing to do: the next /ship post goes through without `--confirm`.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: v1/outside-voice#1 reader=outside-voice
Review-Finding: v1/adversarial-native#1 reader=adversarial-native
This was referenced Nov 18, 2026
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>
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