Skip to content

fix(ship): make the five judge-flagged workflow spots match the code (GST-1346) - #4004

Merged
capy-ai[bot] merged 6 commits into
mainfrom
capy/gst-1346-ship-judge-repair-2
Nov 4, 2026
Merged

capy-ai[bot] merged 6 commits into
mainfrom
capy/gst-1346-ship-judge-repair-2

Conversation

@garrytan

@garrytan garrytan commented Nov 4, 2026 •

Copy link
Copy Markdown
Owner

Draft: /ship in progress; the body is replaced at Step 19. Clarity-only repair for main's red ship/SKILL.md workflow judge (backstop run 41884510834). (GST-1346)

Open in Capy

{
  "schema_version": 1,
  "pr": 4004,
  "head": "8254d606eb395cd9f46c62f44e7e2addef0707bf",
  "version": "1.95.5.0",
  "base": "main",
  "gate": {
    "tests": {
      "pass": 1588,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "tests",
      "run": 41906673907,
      "attempt": 1,
      "tree": "1e5d570ab77b711075aa3df987a241124e8e148f"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "1e5d570ab77b711075aa3df987a241124e8e148f",
  "product_patch_id": "f242b22a0b8a64afc9676a4ec4e20bb93a0ac2de",
  "gstack_version": "1.96.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 178,
    "rules": "374e8bedc8e587f2",
    "base": "622e8b1f76d293b647eca7b33d9dd060ab618b21",
    "registry": "622e8b1f76d293b647eca7b33d9dd060ab618b21",
    "gate_scan": {
      "tagged": 0,
      "head": "8254d606eb395cd9f46c62f44e7e2addef0707bf"
    },
    "reasons": [
      "gate-class",
      "risk:secret",
      "runtime=178"
    ],
    "risk": [
      "secret"
    ],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @1e5d570ab77b (7 checks, current for 8254d606eb39)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41906673907/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41906673718/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=1e5d570ab77b tests=35529 skipped=113 runs=41906673907/1 profiles=ci-reuse/free-tests heads=8254d606eb39 verified=2026-11-04T20:35:42.833Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "blocked",
    "scope": "AGENTS.md, CLAUDE.md, CONTRIBUTING.md, README.md and docs/ (139 files) against the ship workflow diff 622e8b1f..bd23540a; the audit's corrections to docs/review-policy.md, docs/ship-policy.md and docs/unattended.md move to a follow-up PR",
    "exception": {
      "accepted_by": "GStack Minder (Captain)",
      "date": "2026-11-04",
      "via": "GSTA-278 Captain message (Option 1)",
      "reason": "I accept the named docs risk: the docs keep main's existing wording until the follow-up lands."
    }
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 5,
    "deferred": 0,
    "noted": 0,
    "fixed": 5,
    "scope": "frozen",
    "fix_checks": 2,
    "rounds": 3,
    "ledgers_read": 4
  },
  "review_targeted": {
    "classes": [
      "secret"
    ],
    "rules": "15cc5c485da5af30",
    "brief_sha": "7f92a0d0a8319c3c0e076fb3b1a4689c45120b2be2c14dfc7d4cb03aafa9d6a5",
    "product_patch_id": "f242b22a0b8a64afc9676a4ec4e20bb93a0ac2de",
    "status": "done",
    "findings": 0,
    "raised_by": "targeted"
  }
}

What changed

Step 1's carry now names the push, the CI wait and the pregate in the order the tools need

Step 1's carry now names the push, the CI wait and the pregate in the order the tools need.

Before/after as text: Step 1's carry now names the push, the CI wait and the pregate in the order the tools need
--- Before · ship/SKILL.md.tmpl § Step 1: Pre-flight at 622e8b1 · source text
+++ After · ship/SKILL.md.tmpl § Step 1: Pre-flight on this branch · source text
@@ ⋯ 7 unchanged ⋯ @@
    restore access. `DIFF:` is the stat and commit count.
 
 4. **Carry check.** An open PR prints `PR: #<n>` and its `gstack-ship-receipt carry --pr <n> --base <base> --dry-run` line.
+   `CARRY: would carry` (base merge committed, same product patch-id): skip review and Step 14.5,
+   fix what it broke (CHANGELOG, size caps), commit, `gstack-ship-release push --branch <branch-name>
+   --early`, `gstack-ci-carry wait --base <base>`, run `gstack-pregate --allow-repo-commands`, then carry without
+   `--dry-run` plus `--pregate .gstack/tmp/pregate.json`. `CARRY: carried` binds HEAD and ends
+   the run with its `GSTACK_RESULT:` line. A failed check, HEAD moving after pregate, `current`, or `refused` with no
+   `NEXT: carry route` re-runs Steps 2–16. Steps 17–21 then publish.
-   `CARRY: would carry` (base merge committed, same product patch-id): skip review, fix
-   what it broke (CHANGELOG, size caps), run `gstack-pregate --allow-repo-commands`, then carry
-   without `--dry-run` plus `--pregate .gstack/tmp/pregate.json`. `CARRY: carried` binds HEAD and
-   ends the run. A failed check, HEAD moving after pregate, `current`, or `refused` with no
-   `NEXT: carry route` re-runs Steps 2–16.
 
 5. Display historical readiness using the dashboard below, then finish Step 1.
    Prior CLEAR reviews or dashboard skips never replace Step 9's gates.

Why

Main's backstop judge failed the ship/SKILL.md workflow case at 622e8b1 (run 41884510834) because the prose and the code gave different answers in five places. Each spot now gives one answer, and that answer is what the code and the review plan's DISPATCH: lines already do. The judge itself is being removed in a separate lane (GST-1346), so this lands as a normal PR with no behavior change.

Blast radius

Only the ship skill's prose and its generated copies change: ship/SKILL.md, three sections, the outside-voice resolvers and the four ship goldens. The reviewer briefs that lib/review-brief.ts cuts from ship/sections/adversarial.md stay byte-identical, which the brief-body test in test/review-packets-removed.test.ts proves (script ran). Every prompt file is the same size or smaller than on main, and the skeleton is 61,395 of its 61,420-byte cap.

Approvals

Approved: yes (record r-5e5e940d7bdd). The full approval record stays private: this repository is public or its visibility is unknown.

Summary

Five places in /ship gave two answers, and the code wins in each one:

  • Step 11's adversarial passes. The Codex challenge, the structured review and every CODEX_MODE branch now run on DISPATCH: outside-voice, and the native pass on DISPATCH: adversarial-native, as ship/DRIVER.md:87-88 and lib/review-depth.ts:591-613 do. The text no longer says the native pass always runs.
  • The fix-loop cap now reads the same in the review policy and Step 9.4: two rounds under frozen (the plan's NEXT: stop) and the third fix cycle under other scopes.
  • Step 16. finish runs stages 1–4, diffs --reviewed-tree with gstack-wtree and prints ROUTE: (lib/ship-release.ts:204-279). It STOPs on an uncommitted non-release file (:163), checks each lane's receipt and reruns, carries or defers it (:426-450). The text says what to pass when no reviewed tree was saved, and that a stage 5 commit is content-preserving.
  • Step 1 carry. The carry commits, pushes with gstack-ship-release push --early (the secrets scan runs first, lib/ship-release.ts:577), waits for CI, runs the pregate and then carries, because carry refuses a head that isn't pushed. It skips Step 14.5 and ends the run with its own GSTACK_RESULT: line.
  • Consent. Step 5's CI-carry push asks no consent, and Step 6.5's Greptile question says it can't undo that push (lib/greptile-early.ts:147).

Test Coverage

No new code paths: this changes prose and its renders. Existing prose pins were kept by restoring their phrases in the templates rather than editing tests. The one test edit is test/outside-voice-preflight.test.ts, whose ship branch pinned the "always runs" sentence the judge flagged.

Tests ran: tests 1588 files (carried from CI run 41906673907/1)

Pre-Landing Review

REVIEW_LOOP: passes=1 blocking_found=5 deferred=0 noted=0 fixed=5 scope=frozen ledgers_read=3 fix_checks=2

The full gate-class panel ran once at dffa58c. Specialist, red-team and targeted readers found nothing. Codex found one blocker, a carry push before the secrets scan, which was fixed at 4602f40. The first fix-check found two blockers in that fix: a dropped "continue to stage 2" pin, and a pregate placed before the push. Both were fixed at bd23540. The owner's granted fix-check (approval a-8f0ef233cda7) on bd23540 was clean at the floor. The summary counts the fix-check's "what I checked" line as one more blocker, and it counts the structured-review note below as fixed.

Gate edits: none detected.

Outside review: completed (codex, gpt-6-astra). Recommendation: request changes because the carry path could push credentials before its secret scan (fixed at 4602f40e, then reworked at bd23540a).

Review notes

Below the blocking floor, left as notes:

  • Structured-review override. A user's "structured review" request now also needs DISPATCH: outside-voice, which matches ship/DRIVER.md:88 (only planned voices run). Codex and adversarial-native both raised it.
  • CI wait on repos without lanes. On a repo whose base maps no ship_lanes_from, gstack-ci-carry wait exits 1 (no_profile). The carry then takes the full ship. It fails closed.
  • Carry NEXT line. lib/ship-preflight.ts:99's carry NEXT: line still leaves out the push. The follow-up PR fixes it, along with the docs.

Design Review

No frontend files changed — design review skipped.

Eval Results

The ship/SKILL.md workflow judge was not run at this head: the Captain cancelled it after Garry asked for that judge to be removed.

Review bot comments

No review bot comments.

TODOS

No TODO items completed in this PR.

Documentation

Status: blocked under the owner's named risk. The re-audit (gst1346r2-docs-2) corrected docs/review-policy.md, docs/ship-policy.md and docs/unattended.md. They had said diff-plus-blocking keeps the two-round cap, and the carry order lacked the push. Those docs edits are classed as code, and a third review round is not allowed, so they move to the follow-up PR.

Scope: AGENTS.md, CLAUDE.md, CONTRIBUTING.md, README.md and docs/ (139 files) against 622e8b1..bd23540.

Documentation exception: accepted by GStack Minder (Captain) 2026-11-04 via GSTA-278 Captain message (Option 1): I accept the named docs risk: the docs keep main's existing wording until the follow-up lands.

Test plan

  • bun run test: carried from CI run 41906673907/1 at 8254d60 (1588 files, green)
  • Focused: 27 files including parity-suite, context-budget-ratchet, module-size-ratchet, skill-md-size-guard, size-ledger, goldens and ship-control-flow, 0 fail; bun run typecheck clean

🤖 Generated with Claude Code

…(GST-1346)

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

trunk-io Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 5 commits November 4, 2026 20:02
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tage 1 wording (fix-check)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tches ship Step 1 (Step 14.5)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Documentation: updated
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…order matches ship Step 1 (Step 14.5)"

This reverts commit 5151144.
@capy-ai
capy-ai Bot marked this pull request as ready for review November 4, 2026 20:42
@capy-ai
capy-ai Bot merged commit 15dac66 into main Nov 4, 2026
42 checks passed
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