Skip to content

/ship on Codex starts its audits with Codex's own subagent tools, not Claude Code's (#4476) - #4489

Merged
capy-ai[bot] merged 4 commits into
mainfrom
codex-ship-starts-audits-with-spawn-agent
Nov 18, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
codex-ship-starts-audits-with-spawn-agent

Conversation

@garrytan

@garrytan garrytan commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

On Codex, /ship and the other skills now start audit and reviewer subagents with Codex's own spawn_agent and wait on wait_agent, instead of Claude Code's Agent tool, which Codex can't call.
Why: Codex's /ship stopped at the Step 7 coverage audit and never finished (#4476).
Codex users need multi_agent = true under [features] in ~/.codex/config.toml.

What changed

Codex users running /ship hit a dead end at the test coverage audit: the Codex version of the skill told Codex to start a subagent with Claude Code's Agent tool, subagent_type and run_in_background, none of which Codex has, so the run stopped there. Now every audit and reviewer subagent in the Codex skills starts with Codex's spawn_agent (with fork_turns: "none" where the shared dispatch sentence is used) and waits on wait_agent for a final status.

  • One Codex dispatch sentence lives in hosts/codex.ts (setup loads hosts/ without the resolvers). Resolver sites render it on Codex, and the template sentences that spell out Claude Code's Agent call, plus the shared foreground-dispatch note, are rewritten for Codex through toolRewrites, the mechanism Hermes and OpenClaw already use.
  • Sites fixed on Codex: /ship's coverage, plan-completion, Greptile and docs audits and its same-model adversarial reviewer; /review's same-model reviewer; /document-release's doc review; /office-hours' second opinion, design sketch and spec review; the design reviewers; the /plan-ceo-review spec review; /autoplan's four phases; /context-restore's transcript readers.
  • The plan reviews' timed fallback reviewer needs a read-only Plan subagent type and a stoppable timer. Codex has neither, so on Codex it takes the unavailable path without launching anything.
  • Claude Code's render and every other host's are byte-identical to main. Five Codex SKILL.md files got smaller, so their size pins go down.
Why

gstack promises the same workflows on Codex as on Claude Code; a /ship that can't get past its own coverage audit breaks that promise for every Codex user.

Blast radius

Only the Codex render changes. The edits are host-gated in the resolvers or live in Codex's own toolRewrites, and no checked-in Claude SKILL.md changed in this diff while the Skill Docs Freshness check passed at this head (CI run 44329740543), so the Claude output is byte-identical to main. A new test renders every Codex skill and fails on any leftover Claude-only subagent call; it failed on main with 66 lines and passes here.

Pre-Landing Review

No blocking issues. The batched specialist review (testing, security, state machines, red team) found nothing; the same-model adversarial reviewer raised five informational notes, listed below, none above the blocking floor.

Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL hosts/codex.ts:11 CODEX_SUBAGENT_CALL and the autoplan/context-restore rewrites omit fork_turns: "none", so on Codex V2 those subagents inherit the parent transcript
  • INFORMATIONAL scripts/resolvers/outside-voice-steps.ts:750 Codex doc-review dispatch says wait until final status, then bounds it at a 5-minute timeout without a stop instruction
  • INFORMATIONAL scripts/resolvers/spec-review.ts:161 Codex non-CEO spec review says 'both inputs' but lists one
  • INFORMATIONAL docs/hosts.md:230 docs say multi_agent must be turned on; Codex config reference lists it on by default
  • INFORMATIONAL hosts/codex.ts:11 On Codex V2 wait_agent returns a status summary, not the child's final message
Exploratory QA

Smoke, 2 probes on the current head, both passed:

  • Rendered every Codex skill (bun run gen:skill-docs --host codex): no rendered file names subagent_type, run_in_background or TaskStop, and 16 files name spawn_agent.
  • Riskiest changed path, the reported failure: Codex's /ship sections/test-coverage.md now dispatches the Step 7 audit through spawn_agent then wait_agent (lines 7, 13 and 376 of the render). The working tree stayed clean.
Eval Results

Not run. The selector picked 8 PR probes (plan-ceo-review-plan-mode, plan-eng-coverage-audit, plan-review-report, review-exploratory-small-cli, ship-exploratory-late-input, ship-exploratory-plan-checks, ship-exploratory-small-cli, ship-exploratory-unavailable) and no quality judges. All of them run on the Claude render, which this PR leaves byte-identical to main, so none reads a changed input.

Issues

Fixes #4476

TODOS

No TODO items completed in this PR.

Documentation

Status: current. The documentation already describes the change, so no edits were made.

Scope: base 3ecd716 to head 43e9435 on codex-ship-starts-audits-with-spawn-agent: 11 committed files (hosts/codex.ts, three resolvers, docs/hosts.md, a changelog fragment and tests). Nothing was staged, unstaged or untracked.

Documentation health:

  • docs/hosts.md: Current. The new "Subagents on Codex" paragraph matches the code (spawn_agent/wait_agent, the multi_agent setting, no read-only Plan subagent type, and the NOT_SENT verify behavior).
  • docs/ADDING_A_HOST.md: Current. The toolRewrites row is still accurate.
  • README.md, CONTRIBUTING.md, AGENTS.md: Current. They make no Codex subagent claims.

Coverage debt: none found. The hosts.md paragraph lists fewer affected skills than the changelog fragment, which is acceptable because the fragment carries the full list.

Diagram drift: none.

Tests
  • Free test suite in CI at this exact tree (Free Tests run 44329740199): 1698 test files carried, 0 failed.
  • macOS and Windows tests passed in CI at this head (Free Tests 44329740199, Windows Smoke 44329739939).
  • Guards before push: typecheck, skill size, parity suite, context budget, module size, goldens and conflict markers passed.
Agent notes

Approvals

No approvals recorded for branch codex-ship-starts-audits-with-spawn-agent.
Plan: exempt: bug fix

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=5 fixed=0 scope=frozen unbound=1 ledgers_read=2 dispatches=4
Gate edits: none detected (6 listed, 2 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": 4489,
  "head": "43e94352b5ef0164594e229d1a8744d51c19eed7",
  "version": "1.100.0.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1698,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 44329740199,
      "attempt": 1,
      "tree": "55aa2cdbf70811b77bbeb7fcce17fc6312447ba6"
    }
  ],
  "calls": 23,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/gstack/ship-4489-43e9435",
  "head_tree": "55aa2cdbf70811b77bbeb7fcce17fc6312447ba6",
  "product_patch_id": "4da866d86b91ce087e2456beb6fdb37002393928",
  "gstack_version": "1.100.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 75,
    "rules": "1afa38a4be3b5eef",
    "base": "bf2c126b553fe1943a6be858c616d4b0a7f29228",
    "registry": "bf2c126b553fe1943a6be858c616d4b0a7f29228",
    "gate_scan": {
      "tagged": 0,
      "head": "43e94352b5ef0164594e229d1a8744d51c19eed7"
    },
    "reasons": [
      "runtime=75"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @55aa2cdbf708 (8 checks, current for 43e94352b5ef)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/44329740199/attempts/1",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/44329740199/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/44329739939/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=55aa2cdbf708 tests=37833 skipped=104 runs=44329740199/1 profiles=ci-reuse/free-tests heads=43e94352b5ef verified=2026-11-18T15:39:31.018Z"
  ],
  "issues": {
    "fixes": [
      4476
    ],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CONTRIBUTING.md against 3ecd7168..43e9435"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 5,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "ledgers_read": 2,
    "unbound": 1,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

… Claude Code's (#4476)

Codex skills now start audit and reviewer subagents with spawn_agent and wait on wait_agent. A new test fails if any Codex-rendered skill names subagent_type, run_in_background, TaskStop, task-notification or the Agent tool.

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.

garrytan and others added 3 commits November 18, 2026 14:43
…s, so every other host renders as before (#4476)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…e is unchanged (#4476)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ads hosts/ without the resolvers (#4476)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit fda9dea into main Nov 18, 2026
55 checks passed
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.

Codex /ship renders Claude-only Agent calls and stops at the coverage audit

1 participant