Repository navigation
Description
Problem
On Codex, review and retro delegate to native children only when the parent model resolves to collaboration V1 (ADR 0126). Any other parent runs with the multi-agent tools off and does the children's work in one context.
In the bundled catalog of the latest Codex, 0.166.0 (codex debug models --bundled), only two parents still resolve to V1:
| Model | multi_agent_version |
|---|---|
gpt-5.6-luna |
v1 |
gpt-5.5 |
none (V1 by default) |
gpt-6.1-sol, gpt-6.1-terra, gpt-6-sol, gpt-6-luna, gpt-6-astra, gpt-5.6-sol, gpt-5.6-terra |
v2 |
Every newer, cheaper model is on V2. Codex is planned to come out of experimental in the next release, and we can't keep it frozen on an older Codex or an older parent model. The pin today is 0.159.3. Supporting V2 is therefore a release blocker for leaving experimental.
Scope
- Spawn guard for V2. Extend the ADR 0126 admission policy to the V2 tools.
codexSpawnGuardMatcheralready matches^collaboration…; today it denies every V2 call. Atrust-v0.166.0(codex-rs/core/src/tools/handlers/multi_agents_spec.rs), the V2spawn_agenttakesmessage,task_name(both required),agent_type,fork_turns,modelandreasoning_effort. The same rules map across:agent_typemust be a registered role or absent, selecting the registereddefaultrole.fork_turnsmust explicitly select no fork: a string equal tononeafter trimming and case-insensitive comparison. At 0.166.0, omission inherits all history and"0"is invalid; V1 usesfork_context: falseinstead.- Set
expose_spawn_agent_model_overrides = falseunder[features.multi_agent_v2]to hidemodelandreasoning_effortfrom the spawn schema; continue refusing those keys in the hook so the runner keeps choosing the child model. - Set
disable_direct_message = trueunder[features.multi_agent_v2]to removesend_messageandfollowup_task, keeping hook denial as a backstop. The hook cannot distinguish running from finished children, and review/retro needs neither tool. - Allow
list_agents,interrupt_agentand V2wait_agentonly from the root. Report these andcollaborationspawn_agentasAgentto the ADR 0100 hooks, includingAgent/Taskmatcher support; denied message/follow-up tools remain unmapped. V2wait_agentaccepts onlytimeout_ms, never a target.
- Bootstrap gate. Let a parent that resolves to V1 or V2 delegate (
resolvesV1ininternal/runtime/codex_personas.goand the gate incodex_bootstrap.go); an absent catalog version means V1, whiledisabled, unknown, unlisted andgateway/parents stay non-delegating. Render[agents]and the[features.multi_agent_v2]table to match ADR 0159. Itsenabled = trueoverride reaches every child regardless of model; V2 does not applyagents.max_depth, so depth one relies on the hook and its documented fail-open limits. Keep the four-child cap at[agents] max_concurrent_threads_per_session = 4, not the root-inclusive feature-table key. - Child token accounting. Check that each child's rollout under V2 still carries a cumulative
token_count, so run totals include children (codex runtime: native multi-agent tools are on, so child runs go unmetered and unseen #7828). - Bump Codex to 0.166.0 independently in chore(#9085): bump codex to 0.166.0 and re-verify the re-check table #9088, with the usual bump checks: redact variants (
codex_redact.go), progress parsing (codex_progress.go), regeneratedtestdata/codexcaptures, and the catalog tests incodex_personas_test.go. Keep this selected version despite its October 29 release being younger than two weeks; the V2 implementation targets its semantics. - New ADR that supersedes ADR 0126's V1-only rule. Leave ADR 0126 unchanged.
- Docs. Update
docs/runtimes/codex.md(Sub-agents and the "Not supported" row),docs/runtimes.md, and the Codex row ofdocs/guides/getting-started/choosing-a-runtime.md. Today they say onlygpt-5.6-lunadelegates. - Live check. Run review and retro with a
gpt-6.1-solorgpt-6.1-terraparent and confirm that the children start, run their selected personas, and are counted in the token totals. Verify that every child result is processed by the security chain before entering the parent's context, including its block/withhold behavior. - Child-result security. V2
wait_agentreturns an acknowledgement, while child results arrive as injected messages outside the current PostToolUse path. Require every child result to pass the ADR 0100 chain (unicode, canary, suppression and redaction), with the same integrity and block/withhold semantics, before parent consumption. V2 delegation remains experimental until this delivery path is implemented and verified live; scanning the acknowledgement or stored transcripts is insufficient. Add the child result delivery path to every Codex bump's revalidation checklist.
Workaround until this lands
Only the parent has to be on V1. Child models come from subagents.<persona>, FULLSEND_CODEX_SUBAGENT_MODEL or subagents.default, so a gpt-5.6-luna parent can run its children on a newer model.
Related
- docs(adr): add ADR 0159, Codex sub-agents on collaboration V2 #9087, ADR 0159 for V2 delegation and its security requirements
- chore(#9085): bump codex to 0.166.0 and re-verify the re-check table #9088, independent Codex 0.166.0 bump
- codex runtime: run the review/retro sub-agent rosters through codex's native spawn_agent roles #6970, Codex sub-agents for review and retro
- fix(#6970): stop advising claude for review and retro on codex #9081, docs change that stops advising Claude Code for review and retro on Codex
- codex: a spawn denied for a mistyped role name drops the sub-agent silently #9073, recoverable spawn denials for unregistered roles
- codex runtime: native multi-agent tools are on, so child runs go unmetered and unseen #7828, metering of child runs
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fullsend-ai-triage commentedon Nov 3, 2026
🤖 Finished Triage · ✅ Success · Started 6:18 PM UTC · Completed 6:20 PM UTC
Commit:
90b7310· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.20
fullsend-ai-triage commentedon Nov 3, 2026
Triage notes for this request:
CODEX_VERSIONinimages/sandbox/Containerfile), which will need a bump alongside the Go changes.codex_bootstrap.go, so expect merge conflicts or rebases; it does not add V2 support. codex: a spawn denied for a mistyped role name drops the sub-agent silently #9073 (recoverable spawn denials for unregistered roles) is closely related to the V2agent_typecheck and is worth landing or coordinating with, but it is not treated as a blocker.send_message/followup_taskare denied outright or allowed only for open children. The new ADR should record the choice.gpt-6.1-*parent) needs real Codex credentials and probably has to be done or verified by a maintainer.Suggested test coverage:
Next steps:
/fs-code— agent creates a PR to implement this issue/fs-code <your instruction>— agent implements with your specific guidancefullsend-ai-triage commentedon Nov 3, 2026
🤖 Finished Triage · ✅ Success · Started 9:43 PM UTC · Completed 9:45 PM UTC
Commit:
90b7310· View workflow run →Runtime: claude · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.16
fullsend-ai-triage commentedon Nov 3, 2026
Open PRs already cover part of this issue's scope: the Codex 0.166.0 bump (scope item 4) and ADR 0159 for Codex sub-agents on collaboration V2 (scope item 5, and the design basis for the spawn guard, bootstrap gate and child-result security items). Both are ready for review, not drafts.
These PRs don't cover the rest of the scope. That includes the V2 spawn guard, the bootstrap gate change, the child token accounting check, the docs updates, the live check, and the child-result security delivery path. The issue stays open for that work, and the remaining items should be sequenced after the ADR settles the design.
A few notes for whoever picks up the rest:
codex_bootstrap.go, so expect rebases.agent_typecheck. Coordinate with it, but it is not a blocker.gpt-6.1-*parent) needs real Codex credentials, so a maintainer will likely need to run or verify it.Addressed by:
docs(adr): add ADR 0159, Codex sub-agents on collaboration V2
14 remaining items
fix(fullsend-ai#1500): treat fullsend's withheld notice as a final V2…
dhshah13 commentedon Nov 16, 2026
Item 7 ran against #9444 at 9c54377 and agents main 5fa2e3a3 (with fullsend-ai/agents#1971 and fullsend-ai/agents#2013): Codex 0.166.0 in the pinned images, OpenShell 0.0.116 on macOS arm64, a
gpt-6.1-solparent, children on the built-ingpt-5.6-luna, harness security on, no post-script.Live:
per_model_usagelists both models and sums totoken_usage.SubagentStopwith the post-tool chain, and each child's result reached the parent once as aFINAL_ANSWERmessage.Block and withhold, run on the stock Codex 0.166.0 binary against a fake Responses server that records every request, with this PR's adapter and chain scripts:
RESULT WITHHELD BY FULLSENDonce.Observation: the review parent dropped the challenger's kept findings after its own check of the repository. Every child result had reached it.
fix(codex): read the withheld notice ignoring whitespace around it
docs(codex): drop the V2 delegation experimental notes
refactor(codex): extend the spawn guard to collaboration V2 calls
refactor(codex): render the multi_agent_v2 feature table
refactor(codex): version-aware dispatch and child notes
test(codex): pin a V2-shaped child rollout head
docs(codex): describe the spawn guard's V2 policy and the rendered fe…
feat(codex): prototype SubagentStop gate for V2 child results
feat(codex)!: delegate from collaboration V2 parents
docs(fullsend-ai#6970): state the V1 or V2 gate and what the runs showed
docs(fullsend-ai#1500): list codex as a runtime for review and retro