Skip to content

feat(codex)!: run sub-agents as native Codex children - #8836

Merged
dhshah13 merged 16 commits into
fullsend-ai:mainfrom
dhshah13:feat/6970-codex-native-children
Oct 29, 2026
Merged

dhshah13 merged 16 commits into
fullsend-ai:mainfrom
dhshah13:feat/6970-codex-native-children

Conversation

@dhshah13

@dhshah13 dhshah13 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

For a delegating agent on codex (Agent tool, harness security on, a parent model Codex resolves to collaboration V1), config.toml turns Codex's multi-agent tools on with the registered roles, depth one and four open children, binds the child models (a persona's own subagents entry in its role file, the run-level default otherwise) and the run's effort, and the runtime note becomes the dispatch bridge. Breaking: a subagents value that is not an OpenAI id, or not in the pinned CLI's bundled catalog, now fails Bootstrap for a delegating codex agent and names the key; fix with openai/<id> or a tombstone (<persona>: ~). So does a run effort a resolved child model does not support (at the pin only max on gpt-5.5).

Related Issue

Part of #6970. Built on PR 1 #8122, PR 2 #8213, PR 3 #8384, PR 4 #8569 and PR 4b #8712. The agents-side wording follows in fullsend-ai/agents after the merge, before the release that ships it.

Changes

  • Child model chain subagents.<persona>, FULLSEND_CODEX_SUBAGENT_MODEL, subagents.default, gpt-5.6-luna; every value checked for form (gateway/ and inherit refused) and against the bundled catalog.
  • Child effort: the run's effort is written as agents.default_subagent_reasoning_effort (codex otherwise resets every child to the run-level child model's catalog default) and checked, as codex checks it at spawn, against the run-level child model and every persona model; with no run effort the catalog default is checked against the persona models.
  • The [agents] block and the dispatch note: spawn_agent with a registered agent_type, fork_context: false, no model or effort argument, four open then close_agent, a denied spawn final.
  • An agent whose tools leave out Agent (triage, prioritize), a V2, unlisted or gateway/ parent, and every run with security off keep their config.toml, launch command and note (goldens). code and fix declare no tools:, so they delegate, as ADR 0126 says. A Run comment corrected (codex exits 1 on a failed turn).
  • The admission check counts, per iteration, the spawns seen in the stream (completed or failed items: a refused spawn used its admission) or in the children's rollouts on disk (a session_meta parent of the run's thread or a counted child), each child once by thread id, so a spawn the stream lost still counts; the usage fold reads both. Dropped notifications and a failed backfill stay warnings (refactor(codex): fail a run on a spawn the guard did not admit #8712). A gateway/ parent runs in one context.
  • Docs: the codex page (Child models, Sub-agents, At a glance, Troubleshooting) and the five pages that said there was no roster; the GitHub fleet workflows do not pass FULLSEND_CODEX_SUBAGENT_MODEL (subagents.default there); review/retro stay advised on Claude Code until a fleet-shaped run.

Testing

  • make lint; go test -race on internal/runtime and internal/cli green locally apart from 13 macOS-only launch and gateway-refresh tests that fail the same way on the base; new and changed functions 100% except the child-rollout read's exec-failure and cut paths and two debug-log read errors; Bootstrap 88.7% (88.0% before), Run 88.6%
  • npx vitepress build docs; base main 8d3ad4053; CODEX_VERSION=0.159.3
  • Live on codex-cli 0.159.3 (security on, effort medium, synthetic fixtures, the agents-side wording from a local branch), first pass on 2762f3803:
    • a non-OpenAI and an unlisted subagents value stop Bootstrap and name the key
    • a V2 parent (gpt-5.6-sol, gpt-6-astra): the stderr line, [agents] enabled = false, no role files, no child
    • children on gpt-5.6-luna with no entry, on subagents.default, and on FULLSEND_CODEX_SUBAGENT_MODEL over both
    • a listed model the API key is not served: that child ends errored, no other model, no retry, exit 0
    • review: nine children in waves, at most four open, all closed; correctness, security and challenger on their own entries (sol, astra, terra), the rest on luna, one per_model_usage entry per model. With no subagents, all on luna and every seeded finding reported; in the persona-model run the parent mistyped head_sha and missed one protected-path finding
    • retro: unnamed children (retro-sub<n>-generic) on subagents.default and on luna
  • Second pass on 3c34754f8 with the agents-side branch at a395dbb (based on agents main 332a2ec, not merged), all passing:
    • a V2 parent (gpt-5.6-sol, gpt-6-astra) again runs in one context with no role files
    • a role file edited mid-run blocks the next spawn and names the file; the child spawned before it ran
    • a role file replaced and a new file in the roles directory are blocked with their own reasons; a repository .codex/agents role does not load: with a registered name the child runs the runner's file, with a new name the spawn is refused as unregistered
    • review with the persona models and with no subagents: eight children each (no UI files, so no user-experience), every seeded finding reported in both
    • retro on subagents.default: four children on terra
  • Third pass on 8a079a027 (the review fixes), same agents-side tree, the fleet harnesses against a throwaway repo, all passing:
    • triage keeps one context; its config.toml is byte-equal to a run on main apart from the clone's path
    • code and fix delegate (default and explore registered, the spawn guard and the note), finish, and spawn no child
  • Effort on 4c0c0560d (the round-3 fixes), same fixture, all passing:
    • a luna parent at --effort high with the echo persona on sol: both children ran every turn at high, the persona on sol included; the spawns passed no effort
    • --effort max with subagents.default: openai/gpt-5.5 fails Bootstrap naming the key, the model and the levels it supports; no model call
  • Not run: a Fedora host; a cancel or a time-budget stop with children open; a hung child; a live gpt-5.5 parent; a fleet-shaped review or retro through the fleet workflows; FULLSEND_CODEX_SUBAGENT_MODEL as a GitLab CI/CD variable

Review bot

Accepted limits the review bot carries until a maintainer resolves their threads: f_4b6fee91f1f37887 (a dropped notification warns, settled on #8712), f_efb308455583964a (admissions are counted, not tied to ids) and f_cf3a96a46ab1e6f0 (the declared break). All three are named in docs/runtimes/codex.md and answered in r4403292719, r4403293533 and r4402696615.

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO) — human and human-directed agent sessions only
  • I wrote this contribution myself and can explain all changes in it

🤖 Generated with Claude Code

…DEX_SUBAGENT_MODEL

For a delegating agent (tools include Agent, harness security on, parent
model on collaboration V1 by the ADR 0126 gate) Bootstrap resolves each
child's model in the order decided on fullsend-ai#6970: subagents.<persona>, then
FULLSEND_CODEX_SUBAGENT_MODEL, then subagents.default, then gpt-5.6-luna.
A persona with its own entry carries the validated bare OpenAI id in its
role file; default and explore never carry one. The run-level default is
returned and not yet bound. Values are checked for form
(translateCodexModel's rules, less a gateway/ spec and inherit) and for
presence in the pinned CLI's bundled catalog (codex debug models
--bundled, read by Bootstrap); whether the provider serves a listed model
is only known at the child's first request. A key naming no persona,
explore included, fails as on pi.

BREAKING CHANGE: a delegating agent on runtime codex now fails Bootstrap
when an agents[].subagents value is not an OpenAI id or is not in the
pinned CLI's bundled catalog, naming the key. Case: a review entry
carrying xai-vertex/... and google-vertex/... subagents values written
for pi, run with runtime: codex and an OpenAI model override; before, the
values were ignored and the agent ran in one context. Fix: set
openai/<id> on those entries, or tombstone them (<persona>: ~) in the
repository's .fullsend/config.yaml so the run-level default applies.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
For a delegating agent config.toml replaces [agents] enabled = false
(fullsend-ai#7829) with the ADR 0126 block: enabled, four open children, depth one,
the run-level child model, and one [agents.<name>] table per registered
role file. The runtime note becomes the dispatch bridge: the roster, the
spawn arguments the guard admits (fork_context: false, no model or
effort), the four-slot rule with close, no resume, an errored child
final, a denied spawn final, and the chunked-read rule of fullsend-ai#7832
unchanged. Every other agent, and every run with harness security off,
gets the same config.toml and note as before; the goldens prove it.

Two Run comments are corrected while children become reachable: the
backpressure warning no longer says nothing can spawn, and the doc
comment no longer says codex exits 0 on a failed turn (a failed or
interrupted primary turn exits 1 on the pinned codex).

Signed-off-by: Dharit Shah <dhshah@redhat.com>
…cripts

The discovery rule for the roster, the child model chain with
FULLSEND_CODEX_SUBAGENT_MODEL, the transcript name of a child, the
At-a-glance entry and the V1-parent limit on the codex page; the
Sub-agents row of the runtime matrix; subagents on codex in the config
reference; the transcript pointer of fullsend run; the architecture line
without its not-yet clause; the two contributor statements that said the
roster was not wired. The keep-review-and-retro-on-Claude recommendation
stays until a fleet-shaped run completes; its reason no longer says there
is no roster.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:02 AM UTC · Completed 12:21 AM UTC

Commit: 2762f38 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $5.34

@github-actions

github-actions Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://a6dc8557-site.fullsend-ai.workers.dev

Commit: 29d64bb0b2b68472e6fccec0a20b8235bd65f19b

@codecov

codecov Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.97297% with 6 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/runtime/codex_subagents.go 94.23% 3 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Oct 27, 2026
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Preserving moderate risk anchored to prior review as Tier 1 signals remain unchanged following a merge commit from main with no PR-owned file modifications, where large diff size and runtime file churn are balanced by zero protected or security-sensitive changes, no CI or dependency modifications, 34% test file ratio, and gated activation aligned with linked issue #6970.

Previous run

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Preserving moderate risk anchored to prior review as Tier 1 signals remain unchanged after a single documentation line edit, with the large diff size and runtime file churn offset by zero protected or security-sensitive changes, no CI or dependency modifications, 34% test file ratio, and direct alignment with linked issue #6970.

Previous run (2)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Preserving moderate risk anchored to prior review as the incremental rollout-head read refinement leaves Tier 1 signals unchanged, with large diff size and elevated runtime file churn balanced by zero protected or security-sensitive changes, no CI or dependency edits, solid test coverage (34%), and direct alignment with linked issue #6970.

Previous run (3)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Preserving moderate risk anchored to prior review as the large diff size and elevated git churn across runtime files remain balanced by zero protected or security-sensitive modifications, absence of CI or dependency changes, strong test coverage (34%), and close alignment with linked issue #6970.

Previous run (4)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Preserving moderate risk anchored to prior review as large diff size and elevated churn across runtime files remain balanced by zero protected or security-sensitive modifications, absence of CI or dependency changes, high test coverage, and close alignment with linked issue #6970.

Previous run (5)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Preserving moderate risk anchored to prior review as large diff size and elevated churn across runtime files remain balanced by zero protected or security-sensitive modifications, absence of CI or dependency changes, high test coverage, and close alignment with linked issue #6970.

Previous run (6)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large diff size and elevated churn in runtime files remain balanced by zero protected or security-sensitive modifications, absence of CI or dependency changes, and close alignment with linked issue #6970, maintaining moderate risk.

Previous run (7)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large diff size and high recent churn in runtime files remain balanced by zero protected or security-sensitive modifications, absence of CI or dependency changes, and close alignment with linked issue #6970, preserving moderate risk following minor incremental updates.

Previous run (8)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large diff size and high recent churn in runtime files are balanced by zero protected or security-sensitive modifications, absence of CI or dependency changes, and clear alignment with linked issue #6970 scope, maintaining moderate risk across incremental refactoring commits.

Previous run (9)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large diff size and high recent churn across runtime files are balanced by zero protected or security-sensitive path modifications and clear alignment with linked issue scope, yielding moderate risk.

Previous run (10)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large diff size and high recent churn across runtime files are balanced by zero protected or security-sensitive path modifications and clear alignment with linked issue scope, yielding moderate risk.

Previous run (11)

<!-- fullsend:risk-assessment -->
Risk Assessment: moderate (2/5)

Details

Large diff size and high recent churn across runtime files are balanced by zero protected or security-sensitive path modifications and clear alignment with linked issue scope, yielding moderate risk.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [fail-open] internal/runtime/codex_run.go:722 — The spawn-admission check can still pass a run when spawn evidence is incomplete. Dropped stream notifications, including a failed backfill, only produce a warning. The other source, the child rollouts on disk, is agent-writable: deleting a rollout or editing its session_meta parent keeps it out of the count. A spawn whose stream items were lost and whose rollout was removed or edited is absent from both counts and needs no admission. The code's own comment in codex_subagents.go names this gap. This is a gap in a secondary detection layer behind the mandatory PreToolUse spawn guard, so it is advisory.
    Remediation: Use a runner-owned spawn ledger that cannot lose entries. Until then, consider failing delegating runs when notification loss cannot be reconciled against trustworthy evidence.

  • [auth-bypass] internal/runtime/codex_run.go:740 — The fallback check trusts an admission count read from the agent-writable .security/findings.jsonl. countCodexSpawnAdmissions counts any JSON line named codex_spawn_guard_admit without authenticating its producer or binding it to a spawn, and compareCodexSpawnAdmissions compares aggregate counts only. An injected agent can append forged admissions, and surplus legitimate admissions can cover a later unadmitted spawn. This defeats the fallback meant to catch a hook failure. As above it is a weakness in the secondary layer, and the PR documents it as a limit.
    Remediation: Record admissions outside the agent's writable boundary and bind each one to a unique invocation or child identity, then reconcile per spawn instead of by aggregate count.

Low

  • [breaking-config] internal/runtime/codex_personas.go:131 — resolveCodexChildModels makes Bootstrap fail for a non-nil subagents.<key> that names a built-in role (line 125), a skipped persona (line 129) or no registered persona (line 131). This applies only to a delegating codex agent (collaboration V1 parent, harness security on). A config with stale or unknown subagent keys stops working. The ! in the PR title declares the break and the behavior matches pi.
    Remediation: Make sure the release notes or migration docs list this stricter validation. Optionally warn instead of failing for one release.

Earlier findings

  • docs/runtimes/codex.md:210, backward-incompatible — still informational (reclassified, unchanged): the codex page documents the break and its fix (an openai/<id> value or a <persona>: ~ tombstone, lines 154–158).
Previous run

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJmYWlsLW9wZW4iLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9ydW4uZ28iLCJpZCI6ImZfNGI2ZmVlOTFmMWYzNzg4NyIsImxpbmUiOjcyMiwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImF1dGgtYnlwYXNzIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWUvY29kZXhfcnVuLmdvIiwiaWQiOiJmX2Vm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FsL3J1bnRpbWUvY29kZXhfc3ViYWdlbnRzLmdvIiwiaWQiOiJmXzlhYzQzZTkzMzc1NDNhZGUiLCJsaW5lIjoyNTAsImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJsb2dpYy1lcnJvciIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NvZGV4X3N1YmFnZW50cy5nbyIsImlkIjoiZl80Y2E2MzdjZmY2MmM1NDZhIiwibGluZSI6NDc4LCJhY3Rpb25hYmxlIjp0cnVlfV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzRiNmZlZTkxZjFmMzc4ODciLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfZWZiMzA4NDU1NTgzOTY0YSIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl9jZjNhOTZhNDZhYjFlNmYwIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzMyNjQwOTg1NzEyN2JkZjEiLCJzdGF0dXMiOiJyZWNsYXNzaWZpZWQifSx7ImlkIjoiZl9hNjEwYzVjYTRiMjc4Mzk4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMDdhNTk1ZmNkODM3ZjRkNyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzY0ZGJjZmU3MjY5MTg5NDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl85YWM0M2U5MzM3NTQzYWRlIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNGNhNjM3Y2ZmNjJjNTQ2YSIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Medium

  • [fail-open] internal/runtime/codex_run.go:722 — Dropped notifications (and a failed backfill) still only warn. Stream receivers plus on-disk child rollouts cross-check the spawn count, but neither proves completeness: a child whose notifications were lost may have no rollout yet, or an agent-writable rollout can be removed or edited before reconciliation, so an unadmitted spawn can escape the check and the run can succeed. Unchanged since the prior review.
    Remediation: Use a runner-owned, complete spawn/admission record, or fail delegating runs when lost notifications cannot be reconciled against trustworthy records.
  • [auth-bypass] internal/runtime/codex_run.go:740 — Admission reconciliation compares aggregate counts (completed <= admitted) rather than binding each spawn to its own admission; role, model, effort and fork_context are not matched, and countCodexSpawnAdmissions counts any JSON record with the expected name from the agent-writable findings log. A surplus or fabricated admission can cover a later unadmitted spawn. Unchanged since the prior review.
    Remediation: Record admissions outside the agent's writable boundary and correlate each spawn with a unique single-use admission covering role, model, effort and context policy.

Low

  • [breaking-config] internal/runtime/codex_personas.go:97 — A subagents value that is not an OpenAI id or is not in the pinned CLI's bundled catalog, and a run effort a child model does not support, now fail Bootstrap for a delegating codex agent. The ! in the title declares the break and docs/runtimes/codex.md describes the error and the fix (openai/<id> or a tombstone), but there is no explicit upgrade note. Unchanged since the prior review.
    Remediation: Add an explicit upgrade/breaking-change note (docs or release notes) naming the new failures and the openai/<id> or tombstone fix.

Earlier findings

  • docs/runtimes/codex.md:210, backward-incompatible — reclassified (informational): V2/unlisted/gateway/ parents run in one context with a printed notice, documented in docs/runtimes/codex.md.
Previous run (2)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJmYWlsLW9wZW4iLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9ydW4uZ28iLCJpZCI6ImZfNGI2ZmVlOTFmMWYzNzg4NyIsImxpbmUiOjcyMiwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImF1dGgtYnlwYXNzIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWU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A dropped spawn notification only produces a warning, and the on-disk child count reads agent-writable rollout files: a spawn whose stream items are lost and whose rollout is deleted or stripped of its parent is counted by neither side, so admission verification can be skipped. This push (rollout-head read in codex_subagents.go) does not touch this path. The limit is documented (docs/runtimes/codex.md, "a spawn hidden from both sides") and was settled on refactor(codex): fail a run on a spawn the guard did not admit #8712, so it stays advisory.
    Remediation: Use a runner-owned child lifecycle/audit source, or fail the run when notification loss prevents trustworthy reconciliation.
  • [auth-bypass] internal/runtime/codex_run.go:740 — Still present. Admission verification compares a count of codex_spawn_guard_admit lines in the agent-writable .security/findings.jsonl with the spawn total, so a planted line, or a surplus admission for a call codex rejected before emitting an item, can cover a spawn that bypassed the hook (counts, not ids). Unchanged by this push and documented as a known limit.
    Remediation: Record admissions through a runner-owned channel and tie each to its dispatch, consuming it at most once; keep the writable log for diagnostics only.

Low

  • [breaking-config] internal/runtime/codex_personas.go:97 — Still present. Bootstrap hard-fails when a subagents.* model is not an OpenAI id, is not in the pinned catalog, or does not support the run effort, so a subagents: config that worked before can abort every delegating Codex run. The PR is declared breaking (feat(codex)!) and each error names the key and the fix; the remaining gap is an explicit migration note.
    Remediation: Optionally state the new failure modes and the tombstone migration in the release notes or docs/runtimes/codex.md.

Earlier findings

  • internal/runtime/codex_subagents.go:478, logic-error, resolved: the rollout-head read now prints 2 for a first line that is not a whole session_meta record (it must end in } and a newline), Cut is parsed from it, and countCodexChildRollouts counts a cut head with no parent by its file-name or content id (excluding the primary's own file). New cases cover a cut after the marker, a closed fragment and an unclosed line, with the spawn lost from the stream.
  • docs/runtimes/codex.md:210, backward-incompatible, reclassified (stays info): the spawn-admission failure condition is documented with a pointer to Troubleshooting and covered by the declared ! breaking change; no contract gap found.

Labels: The PR changes the codex runtime and substantially updates runtime, CLI and config-reference docs.

Previous run (3)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZX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hbmdlIn0seyJpZCI6ImZfNjRkYmNmZTcyNjkxODk0MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzlhYzQzZTkzMzc1NDNhZGUiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [logic-error] internal/runtime/codex_subagents.go:478 — A torn session_meta first line counts as a readable record as soon as it contains the "type":"session_meta" marker (m=1). In the record shape the tests use, the marker comes before both id and parent_thread_id, so a child's first line cut after the marker yields Meta=true with an empty Parent. countCodexChildRollouts then skips it as a root (it skips Meta heads in the file-name loop and Parent == "" in the walk), even though its file name carries a non-primary thread id. If the stream also lost that spawn, the child counts toward neither the admission total nor usage. The new empty/cut-head tests only cut before the marker (the existing "a session_meta root cut before its id is not counted" case encodes this behaviour).
    Remediation: Tell a complete session_meta record from a truncated one (for example, require a closed line or a parsed payload) and treat an incomplete record by its file-name identity, excluding the primary thread. Add a regression test for a cut after the marker but before parent_thread_id, with the spawn missing from the stream.
  • [fail-open] internal/runtime/codex_run.go:722 — Still present. Dropped spawn notifications only produce a warning, and the on-disk child count is agent-writable evidence: a missing sessions directory reads as empty, and a rollout deleted or stripped of parent_thread_id leaves children == 0, which skips admission verification. The incremental change adds file-name identity and de-duplication but does not make the disk evidence trusted. The limit is documented and was settled on refactor(codex): fail a run on a spawn the guard did not admit #8712, so this stays advisory.
    Remediation: Use a runner-owned child lifecycle/audit source, or fail the run when notification loss prevents trustworthy reconciliation.
  • [auth-bypass] internal/runtime/codex_run.go:740 — Still present. Admission verification compares a count of codex_spawn_guard_admit lines in the agent-writable .security/findings.jsonl, so a planted line can cover a spawn that bypassed the hook, and an admission for a call codex rejected before emitting an item can cover a later unadmitted spawn (counts, not ids). Documented as a known limit; unchanged by this push.
    Remediation: Record admissions through a runner-owned channel and tie each to its dispatch, consuming it at most once; keep the writable log for diagnostics only.

Low

  • [breaking-config] internal/runtime/codex_personas.go:97 — Still present. Bootstrap now hard-fails when a subagents.* model is not an OpenAI id (line 66), does not support the run effort (line 85), or is not in the pinned catalog (line 97), so a subagents: config that worked before can abort every delegating Codex run. The PR is declared breaking (feat(codex)!) and each error names the key and the fix; the remaining gap is an explicit migration step for existing users.
    Remediation: Optionally add a short migration note in the release notes or docs/runtimes/codex.md.

Earlier findings

  • docs/runtimes/codex.md:210, backward-incompatible, reclassified (stays info): the spawn-admission failure condition is documented with a pointer to Troubleshooting and covered by the declared ! breaking change; no contract gap found.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR
Previous run (4)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJmYWlsLW9wZW4iLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9ydW4uZ28iLCJpZCI6ImZfNGI2ZmVlOTFmMWYzNzg4NyIsImxpbmUiOjcyMiwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImF1dGgtYnlwYXNzIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWUvY29kZXhfcnVuLmdvIiwiaWQiOiJmX2VmYjMwODQ1NTU4Mzk2NGEiLCJsaW5lIjo3NDAsImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJicmVha2luZy1jb25maWciLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9wZXJzb25hcy5nbyIsImlkIjoiZl9jZjNhOTZhNDZhYjFlNmYwIiwibGluZSI6ODksImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoiaW5mbyIsImNhdGVnb3J5IjoiY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NmYwIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzMyNjQwOTg1NzEyN2JkZjEiLCJzdGF0dXMiOiJyZWNsYXNzaWZpZWQifSx7ImlkIjoiZl9hNjEwYzVjYTRiMjc4Mzk4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMDdhNTk1ZmNkODM3ZjRkNyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzY0ZGJjZmU3MjY5MTg5NDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl85YWM0M2U5MzM3NTQzYWRlIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Medium

  • [fail-open] internal/runtime/codex_run.go:722 — Incomplete spawn telemetry can still let a delegating run succeed. Stream drops and failed backfills only warn. The disk fallback catches a lost spawn only while its rollout is intact, and rollouts are agent-writable, so deleting one or editing its session_meta hides it. A spawn hidden from both the stream and the disk counts as zero children, and the admission cross-check is skipped. The PR documents this as a known limit, and the per-spawn PreToolUse guard is the primary control. The code at this location is unchanged since the prior review apart from a comment, so the prior severity stands.
    Remediation: Optional hardening: collect spawn evidence through a runner-controlled channel or keep rollouts in protected storage. When completeness cannot be established, fail the run instead of reading missing evidence as no spawn.

  • [auth-bypass] internal/runtime/codex_run.go:740 — The admission cross-check does not authenticate the admission records or tie them to individual spawns. It counts every JSON line named codex_spawn_guard_admit in the agent-writable findings log and compares totals only. Planted records, or an unused real admission, can cover an unadmitted spawn. This matters only if the primary spawn guard hook fails or is tampered with. The PR documents the gap as accepted residual risk. The code is unchanged since the prior review, so the prior severity stands.
    Remediation: Optional hardening: record admissions outside agent-writable storage and match each spawn to its own admission. If Codex lacks the identifiers for that, rely on a fail-closed dispatch boundary rather than aggregate counts.

Low

  • [breaking-config] internal/runtime/codex_personas.go:89 — The change is declared breaking (feat(codex)!). An existing subagents config can now fail Bootstrap for a delegating codex agent in three cases. These are a value that is not an OpenAI id, a value not in the pinned CLI's bundled catalog, and a run effort that a resolved child model does not support (at the pin, max on gpt-5.5). Each error names the key and gives a fix, and the PR body documents it, so the break is disclosed. The remaining risk is that downstream repos with a previously valid subagents config fail at Bootstrap.
    Remediation: Optional: run the same validation during config or lint, and list the break in the release notes.

Earlier findings

  • docs/runtimes/codex.md:210, backward-incompatible — still reclassified at info (below the posting threshold). The one-commit delta since the prior review changed only comments, an error string and doc wording.
  • internal/runtime/codex_subagents.go, logic-error — resolved by an earlier change, as recorded before.
Previous run (5)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJmYWlsLW9wZW4iLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9ydW4uZ28iLCJpZCI6ImZfNGI2ZmVlOTFmMWYzNzg4NyIsImxpbmUiOjcyMiwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImF1dGgtYnlwYXNzIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWUvY29kZXhfcnVuLmdvIiwiaWQiOiJmX2VmYjMwODQ1NTU4Mzk2NGEiLCJsaW5lIjo3NDAsImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJicmVha2luZy1jb25maWciLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9wZXJzb25hcy5nbyIsImlkIjoiZl9jZjNhOTZhNDZhYjFlNmYwIiwibGluZSI6ODksImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoiaW5mbyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6ImRvY3MvcnV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NzaWZpZWQifSx7ImlkIjoiZl9hNjEwYzVjYTRiMjc4Mzk4Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfMDdhNTk1ZmNkODM3ZjRkNyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzY0ZGJjZmU3MjY5MTg5NDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 -->

Review

Findings

Medium

  • [fail-open] internal/runtime/codex_run.go:722 — Dropped stream notifications and failed backfills no longer fail a delegating run; they only warn. The replacement evidence is the child rollouts on disk (and, under --debug, the sandbox debug log), which the agent can edit or delete. If a spawn got past the hook (timeout or failure path) and its stream items were also lost, deleting its rollout or changing its parent_thread_id drops it from both counts, and a zero count skips the admission check entirely. This is a defense-in-depth cross-check behind the digest-verified dispatch hook, so the severity is bounded, but the trade-off weakens the prior fail-closed behavior.
    Remediation: Keep fail-closed behavior for dropped notifications/failed backfills until spawn evidence comes through a channel the agent cannot write, or record the accepted reduction explicitly in ADR 0126.

  • [auth-bypass] internal/runtime/codex_run.go:740 — The admission cross-check counts codex_spawn_guard_admit lines from the agent-writable .security/findings.jsonl by count, not by id, so a compromised agent can append a forged admission to cover a spawn the hook never admitted. The limitation predates this push and is documented in the code comment and docs; it matters only when a spawn also gets past the hook.
    Remediation: Record admission decisions through a runner-trusted channel and bind each to its tool invocation or child thread.

Low

  • [breaking-config] internal/runtime/codex_personas.go:89 — Bootstrap now also fails when the run effort is not supported by a resolved child model in the bundled catalog (at the pin, only max on gpt-5.5). A new Bootstrap failure mode; the error names the remedy and the PR is declared breaking (!).

Earlier findings

  • internal/runtime/codex_subagents.go:250, logic-error — resolved: codexCountDroppedInLog now requires exactly two counts and returns an error on Atoi failure instead of discarding it.
  • docs/runtimes/codex.md:210, backward-incompatible — reclassified to info: V2 and gateway parents keep running in one context as before; the remaining change is the declared breaking one.
Previous run (6)

<!-- fullsend:review-findings-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sImZpbGUiOiJkb2NzL3J1bnRpbWVzL2NvZGV4Lm1kIiwiaWQiOiJmXzY0ZGJjZmU3MjY5MTg5NDAiLCJsaW5lIjoxOTYsImFjdGlvbmFibGUiOnRydWV9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfY2YzYTk2YTQ2YWIxZTZmMCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8zMjY0MDk4NTcxMjdiZGYxIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2E2MTBjNWNhNGIyNzgzOTgiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8wN2E1OTVmY2Q4MzdmNGQ3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNjRkYmNmZTcyNjkxODk0MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [logic-error] internal/runtime/codex_subagents.go:250 — Under --debug, codexCountDroppedInLog runs grep -c ... 2>/dev/null; grep -c ... 2>/dev/null; true. Every grep status, including 2 (permission or I/O error, or a directory in place of the log), becomes exit 0 with no count, which the caller reads as zero drops. A delegating --debug run in that state passes the dropped-notification check instead of failing with codex_spawn_without_admission. The docs/runtimes/codex.md text ("the runner could not read codex's log to find out") reads as if an unreadable log fails the run, so the doc and the code disagree. The new test forces openshell itself to exit 1, so no test runs a grep that fails. Low severity because the log is agent-writable and the docs already list removing a drop line from it as a known gap.
    Remediation: Keep each grep status; accept 0 and 1 as counts, treat 2 or a missing count as dropsUnread for a log that exists but cannot be read (a missing log can keep counting zero), or reword the codex.md sentence to say only an unfinished command fails the run. Add a real-shell test with an unreadable log or a directory at the log path.
  • [breaking-config] internal/runtime/codex_personas.go:89 — agents.<name>.subagents values are now validated at Bootstrap, so a value that used to be ignored now fails the run. The ! in the title and the PR body document this, and the error names the key and the fix. Informational.
  • [backward-incompatible] docs/runtimes/codex.md:210 — Delegating codex agents run natively only on a collaboration-V1 parent on the direct route; a V2, unlisted or gateway/ parent runs in one context with a single stderr line. The behaviour is documented here. Informational.
Previous run (7)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJicmVha2luZy1jb25maWciLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9wZXJzb25hcy5nbyIsImlkIjoiZl9jZjNhOTZhNDZhYjFlNmYwIiwibGluZSI6ODksImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoiZG9jcy9ydW50aW1lcy9jb2RleC5tZCIsImlkIjoiZl8zMjY0MDk4NTcxMjdiZGYxIiwibGluZSI6MjEwLCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6Im1lZGl1bSIsImNhdGVnb3J5Ijoic3RhbGUtZG9jIiwiZmlsZSI6ImRvY3MvY2xpL2FnZW50Lm1kIiwiaWQiOiJmX2E2MTBjNWNhNGIyNzgzOTgiLCJsaW5lIjo0MzUsImFjdGlvbmFibGUiOnRydWV9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImVycm9yLWhhbmRsaW5nLWlkaW9tIiwiZmlsZSI6ImludGVybmFsL3J1bnRpbWUvY29kZXhfcGVyc29uYXMuZ28iLCJpZCI6ImZfMDdhNTk1ZmNkODM3ZjRkNyIsImxpbmUiOjEwNCwiYWN0aW9uYWJsZSI6dHJ1ZX0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiZG9jLXN0eWxlIiwiZmlsZSI6ImRvY3MvcnVudGltZXMvY29kZXgubWQiLCJpZCI6ImZfNjRkYmNmZTcyNjkxODk0MCIsImxpbmUiOjE5NiwiYWN0aW9uYWJsZSI6dHJ1ZX1dLCJkaXNwb3NpdGlvbnMiOlt7ImlkIjoiZl9jZjNhOTZhNDZhYjFlNmYwIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzMyNjQwOTg1NzEyN2JkZjEiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfYTYxMGM1Y2E0YjI3ODM5OCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzA3YTU5NWZjZDgzN2Y0ZDciLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl82NGRiY2ZlNzI2OTE4OTQwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn1dfQ== -->

Review

Findings

Low

  • [breaking-config] internal/runtime/codex_personas.go:89 — A subagents value that codex used to ignore now fails Bootstrap for a delegating codex agent. This covers a non-OpenAI id, an id missing from the pinned CLI catalog, a built-in role name, and an unregistered persona. The PR declares the break: the title carries ! and the commit has a BREAKING CHANGE footer. The check lives in resolveCodexChildModels.
    Remediation: Keep the ! marker and the migration note (openai/<id> or a tombstone <persona>: ~).
  • [backward-incompatible] docs/runtimes/codex.md:210 — Codex runs now emit per-child transcripts (transcripts/<agent>-sub<seq>-<role>.jsonl, generic for the default role, explore kept) and per_model_usage in metrics. Consumers that parse transcript filenames will see the new naming. The Artifacts row documents it.
    Remediation: Mention the artifact naming in release notes and keep the generic and explore role names stable.

Earlier findings

  • docs/cli/agent.md:435, stale-doc — resolved by change. The --subagent row now describes the codex fallback.
  • internal/runtime/codex_personas.go:104, error-handling-idiom — resolved by change.
  • docs/runtimes/codex.md:196, doc-style — resolved by change.
Previous run (8)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJicmVha2luZy1jb25maWciLCJmaWx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IjoiZl8wN2E1OTVmY2Q4MzdmNGQ3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNjRkYmNmZTcyNjkxODk0MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [breaking-config] internal/runtime/codex_config.go — A delegating codex agent now fails Bootstrap when an agents[].subagents value is not an OpenAI id or is not in the pinned CLI bundled catalog, and (new in the latest push) when a subagents key names a persona codex skipped. Configs accepted before can now be rejected. The PR title carries the ! marker and the docs give the fix (openai/<id> or a tombstone).
    Remediation: Keep the ! marker and carry the migration note into the release notes.
  • [backward-incompatible] docs/runtimes/codex.md — Codex sub-agents now run as native Codex children and the stricter child-model validation changes which existing codex configs are accepted. The latest push only changes internal signatures (codexRoles, resolveCodexChildModels).
    Remediation: Keep the migration guidance in the docs.
  • [sub-agent-failure] N/A — The challenger sub-agent did not return findings: invalid adjudication accounting (the merged entry moved the finding to a file that was in neither input and dropped both prior ids). Using pre-challenger finding set.

Earlier findings

  • docs/cli/agent.md:435, stale-doc — resolved by change.
  • internal/runtime/codex_personas.go:104, error-handling-idiom — resolved by change.
  • docs/runtimes/codex.md:196, doc-style — resolved by change.

Labels: PR changes Go code for the codex runtime backend.

Previous run (9)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJicmVha2luZy1jb25maWciLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9jb25maWcuZ28iLCJpZCI6ImZfY2YzYTk2YTQ2YWIxZTZmMCIsImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoiZG9jcy9ydW50aW1lcy9jb2RleC5tZCIsImlkIjoiZl8zMjY0MDk4NTcxMjdiZGYxIiwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InN0YWxlLWRvYyIsImZpbGUiOiJkb2NzL2NsaS9hZ2VudC5tZCIsImlkIjoiZl9hNjEwYzVjYTRiMjc4Mzk4IiwibGluZSI6NDM1LCJhY3Rpb25hYmxlIjp0cnVlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJlcnJvci1oYW5kbGluZy1pZGlvbSIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NvZGV4X3BlcnNvbmFzLmdvIiwiaWQiOiJmXzA3YTU5NWZjZDgzN2Y0ZDciLCJsaW5lIjoxMDQsImFjdGlvbmFibGUiOnRydWV9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL3J1bnRpbWVzL2NvZGV4Lm1kIiwiaWQiOiJmXzY0ZGJjZmU3MjY5MTg5NDAiLCJsaW5lIjoxOTYsImFjdGlvbmFibGUiOnRydWV9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfY2YzYTk2YTQ2YWIxZTZmMCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8zMjY0MDk4NTcxMjdiZGYxIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2E2MTBjNWNhNGIyNzgzOTgiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl8wN2E1OTVmY2Q4MzdmNGQ3Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNjRkYmNmZTcyNjkxODk0MCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= -->

Review

Findings

Low

  • [breaking-config] internal/runtime/codex_config.go — Intentional, documented breaking change (marked !): for a delegating codex agent with security on, an agents[].subagents value that is not an OpenAI id or is not in the pinned CLI bundled catalog now fails Bootstrap, naming the key. A subagents map written for pi or Claude Code can stop a codex run. The error names the fix (openai/<id> or a <persona>: ~ tombstone).
    Remediation: Optional: call out the break in the release notes.

  • [backward-incompatible] docs/runtimes/codex.md — Bootstrap checks every resolved model, including the gpt-5.6-luna floor, against the catalog bundled with the pinned CLI, so a CODEX_VERSION bump can turn a previously valid subagents value into a Bootstrap failure. Both behaviours are documented, and the agents-side wording follows in a separate repo.
    Remediation: Land the fullsend-ai/agents wording before the release that ships this, and note catalog pinning in the release notes.

Previous run (10)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJicmVha2luZy1jb25maWciLCJmaWxlIjoiaW50ZXJuYWwvcnVudGltZS9jb2RleF9jb25maWcuZ28iLCJpZCI6ImZfY2YzYTk2YTQ2YWIxZTZmMCIsImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoiZG9jcy9ydW50aW1lcy9jb2RleC5tZCIsImlkIjoiZl8zMjY0MDk4NTcxMjdiZGYxIiwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InN0YWxlLWRvYyIsImZpbGUiOiJkb2NzL2NsaS9hZ2VudC5tZCIsImlkIjoiZl9hNjEwYzVjYTRiMjc4Mzk4IiwibGluZSI6NDM1LCJhY3Rpb25hYmxlIjp0cnVlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJlcnJvci1oYW5kbGluZy1pZGlvbSIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NvZGV4X3BlcnNvbmFzLmdvIiwiaWQiOiJmXzA3YTU5NWZjZDgzN2Y0ZDciLCJsaW5lIjoxMDQsImFjdGlvbmFibGUiOnRydWV9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL3J1bnRpbWVzL2NvZGV4Lm1kIiwiaWQiOiJmXzY0ZGJjZmU3MjY5MTg5NDAiLCJsaW5lIjoxOTYsImFjdGlvbmFibGUiOnRydWV9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfYTYxMGM1Y2E0YjI3ODM5OCIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzA3YTU5NWZjZDgzN2Y0ZDciLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl82NGRiY2ZlNzI2OTE4OTQwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfY2YzYTk2YTQ2YWIxZTZmMCIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl8zMjY0MDk4NTcxMjdiZGYxIiwic3RhdHVzIjoib3BlbiJ9XX0= -->

Review

Findings

Low

  • [breaking-config] internal/runtime/codex_config.go — Unchanged. A delegating codex agent now fails Bootstrap when an agents[].subagents value is not an OpenAI id or is not in the pinned CLI's bundled catalog, or when a key names no registered persona. The ! marker and BREAKING CHANGE footer flag this; advisory only.
    Remediation: Carry the break and the openai/<id> / tombstone fix into the release notes.
  • [backward-incompatible] docs/runtimes/codex.md — Unchanged. Delegation now depends on the parent model resolving to collaboration V1; V2 or unlisted parents fall back to a single context with one stderr line. The docs state this limit; advisory only.
    Remediation: Make sure the migration note covers the parent-model requirement.

Earlier findings

  • docs/cli/agent.md:435, stale-doc — resolved: the --subagent row now covers codex values and the codex fallback, and the cross-reference below the table links Codex § Child models.
  • internal/runtime/codex_personas.go:104, error-handling-idiom — resolved: the unknown-key error now distinguishes a built-in role from an unregistered persona in plain wording.
  • docs/runtimes/codex.md:196, doc-style — resolved: the delegation paragraph is rewrapped to the line-wrapping rule.
Previous run (11)

<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6InN0YWxlLWRvYyIsImZpbGUiOiJkb2NzL2NsaS9hZ2VudC5tZCIsImlkIjoiZl9hNjEwYzVjYTRiMjc4Mzk4IiwibGluZSI6NDM1LCJhY3Rpb25hYmxlIjp0cnVlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJlcnJvci1oYW5kbGluZy1pZGlvbSIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NvZGV4X3BlcnNvbmFzLmdvIiwiaWQiOiJmXzA3YTU5NWZjZDgzN2Y0ZDciLCJsaW5lIjoxMDQsImFjdGlvbmFibGUiOnRydWV9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImRvYy1zdHlsZSIsImZpbGUiOiJkb2NzL3J1bnRpbWVzL2NvZGV4Lm1kIiwiaWQiOiJmXzY0ZGJjZmU3MjY5MTg5NDAiLCJsaW5lIjoxOTYsImFjdGlvbmFibGUiOnRydWV9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImJyZWFraW5nLWNvbmZpZyIsImZpbGUiOiJpbnRlcm5hbC9ydW50aW1lL2NvZGV4X2NvbmZpZy5nbyIsImlkIjoiZl9jZjNhOTZhNDZhYjFlNmYwIiwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImJhY2t3YXJkLWluY29tcGF0aWJsZSIsImZpbGUiOiJkb2NzL3J1bnRpbWVzL2NvZGV4Lm1kIiwiaWQiOiJmXzMyNjQwOTg1NzEyN2JkZjEiLCJhY3Rpb25hYmxlIjpmYWxzZX1dfQ== -->

Review

Findings

Medium

  • [stale-doc] docs/cli/agent.md:435 — The --subagent flag row says a cleared entry resolves "the way an unmentioned one does (its frontmatter model, then subagents.default)", and lines 438-439 link only to the pi page for how subagents map to persona dispatch. This PR makes subagents take effect on codex, where docs/runtimes/codex.md (Child models) documents a different chain (subagents.<persona>, FULLSEND_CODEX_SUBAGENT_MODEL, subagents.default, gpt-5.6-luna), says persona frontmatter model: is never applied, and accepts only OpenAI ids from the bundled catalog. docs/cli/ pages are manually maintained and this one is not updated in the PR.
    Remediation: Qualify the fallback wording by runtime (on codex, frontmatter model: is ignored and the fallback is the run-level child default) and link Codex › Child models next to the pi link.

Low

  • [error-handling-idiom] internal/runtime/codex_personas.go:104 — The unknown-key error in resolveCodexChildModels is misleading: explore is a registered codex role (it gets an [agents."explore"] table) but is excluded from the persona set, so subagents.explore is reported as "not a registered codex role"; and the skipped-persona parenthetical is printed even when nothing was skipped (pi_personas.go separates the two cases).
    Remediation: Use persona wording (e.g. subagents.%s: %q is not a configurable persona; registered personas: %s), report reserved keys such as explore explicitly, and mention a skipped persona only when the key matches one.
  • [doc-style] docs/runtimes/codex.md:196 — In the Sub-agents section, line 195 runs past 100 columns and line 196 is an orphaned short line ("that catalog; for any"), breaking the ~80-column wrapping rule in docs/contributing/documentation.md.
    Remediation: Rewrap lines 193-200 evenly at about 80 columns.
  • [breaking-config] internal/runtime/codex_config.go — A delegating codex agent now fails Bootstrap on an agents[].subagents value that is not an OpenAI id or not in the pinned CLI bundled catalog; codex previously ignored these values. Commit metadata is in order (feat(codex)!: with a BREAKING CHANGE: trailer and migration path; PR title carries !), but docs/runtimes/codex.md does not say that pi-shaped values codex used to accept now fail.
    Remediation: Optionally add one sentence to docs/runtimes/codex.md § Child models saying so, with the openai/<id> or tombstone fix.
  • [backward-incompatible] docs/runtimes/codex.md — The runtime-note and dispatch wording contract with fullsend-ai/agents is not yet aligned: the agents-side wording is stated to land after this merge but before the shipping release, and nothing enforces that order. Pi-shaped subagents values in real configs (this repo's .fullsend/config.yaml has google-vertex entries) would fail codex Bootstrap for delegating agents.
    Remediation: Link the agents-repo PR or issue from this PR, gate the release on it, and confirm no shipped subagents defaults are non-OpenAI values.

Next steps:

  • /fs-fix — agent addresses review findings automatically
  • /fs-fix <your instruction> — agent fixes with your specific guidance
  • Push commits directly — review re-runs automatically on push
  • /fs-fix-stop — disable automatic fix runs for this PR

fullsend-ai-review[bot]

This comment was marked as outdated.

A subagents key that names no persona failed Bootstrap with "is not a
registered codex role" and a note about a skipped persona, printed even
when none was skipped; explore, a built-in role, read as unknown.

The reserved key now says it is a built-in role on the run-level child
model; any other key says no persona of that name is registered, as pi
does. Discovery still prints a skipped persona's warning above it.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
The agent --subagent row described only pi's fallback for a cleared
entry and linked only the pi page. It now names codex's (the run-level
child model, OpenAI ids from the pinned catalog) and links Codex › Child
models. The Sub-agents paragraph on the codex page is rewrapped at about
80 columns.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:30 AM UTC · Completed 12:47 AM UTC

Commit: 3c34754 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.96

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Oct 27, 2026
@dhshah13 dhshah13 added the ok-to-test Allow e2e CI to run after maintainer review (must be re-applied after each push) label Oct 27, 2026
@dhshah13
dhshah13 marked this pull request as ready for review October 27, 2026 12:55
@dhshah13
dhshah13 requested a review from a team October 27, 2026 12:55
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Run eligible Codex sub-agents as native children

✨ Enhancement 📝 Documentation 🧪 Tests 🕐 40+ Minutes

Grey Divider

AI Description

• Enable guarded native Codex children for delegating agents with security enabled and a V1 parent
 model.
• Resolve child models by persona, runner override, config default, then built-in default; reject
 invalid selections during Bootstrap.
• Document delegation limits and preserve single-context behavior for ineligible runs.
Diagram

graph TD
  A["Agent settings"] --> B["Codex Bootstrap"] --> C{"V1 delegation?"}
  C -->|yes| D["Child model resolver"] --> E["Codex config"] --> F["Spawn guard"] --> G["Native children"]
  C -->|no| H["Single context"]
Loading
High-Level Assessment

The gated native-child approach fits the existing Codex role files and runner-owned spawn guard. Enabling delegation for V2 parents or without security would bypass the established policy; orchestrating children outside Codex would duplicate its lifecycle and change how skills dispatch work. Retain the gate and verify the documented fleet-shaped run before recommending Codex for review and retro.

Files changed (19) +1052 / -95

Enhancement (3) +241 / -32
codex_bootstrap.goWire eligible runs to native-child configuration +65/-12

Wire eligible runs to native-child configuration

• Resolves and validates child models before writing config, then supplies the registered roster and default model to the renderer. Eligible parents receive a dispatch note; ineligible runs retain the single-context note.

internal/runtime/codex_bootstrap.go

codex_config.goRender bounded native-child roster in config.toml +47/-14

Render bounded native-child roster in config.toml

• Renders enabled Codex agents with registered role files, a run-level child model, depth one, and four concurrent children. Runs without roles retain the disabled agents block.

internal/runtime/codex_config.go

codex_personas.goResolve and validate Codex child models +129/-6

Resolve and validate Codex child models

• Implements persona, runner-variable, config-default, and built-in precedence. Rejects unknown keys and invalid or unlisted models, and writes explicit models only to persona roles with their own entries.

internal/runtime/codex_personas.go

Tests (7) +702 / -29
codex_bootstrap_test.goCover Bootstrap delegation and compatibility +220/-13

Cover Bootstrap delegation and compatibility

• Tests early model rejection, disabled delegation paths, roster configuration, role-file digests, runner override precedence, and the dispatch-note contract.

internal/runtime/codex_bootstrap_test.go

codex_config_test.goVerify delegated config rendering and escaping +118/-9

Verify delegated config rendering and escaping

• Checks roster limits, file references, unchanged nondelegating output, and TOML parsing when role descriptions contain special characters.

internal/runtime/codex_config_test.go

codex_golden_test.goAdd golden cases for delegated configuration +19/-2

Add golden cases for delegated configuration

• Generates snapshots for an enabled native-child config and a persona role with an explicit model, while retaining existing single-context cases.

internal/runtime/codex_golden_test.go

codex_personas_test.goExercise child-model precedence and validation +260/-4

Exercise child-model precedence and validation

• Covers override combinations, tombstones, unknown and reserved keys, invalid providers, catalog membership, and role-file model rendering.

internal/runtime/codex_personas_test.go

codex_run_test.goAdapt the config-guard test to the renderer signature +1/-1

Adapt the config-guard test to the renderer signature

• Passes empty roster and child-model arguments when generating the existing guarded configuration.

internal/runtime/codex_run_test.go

config-delegating.tomlSnapshot enabled native-child configuration +70/-0

Snapshot enabled native-child configuration

• Adds the expected delegating Codex config, including the dispatch note, three registered roles, the default child model, and concurrency and depth limits.

internal/runtime/testdata/codex/golden/config-delegating.toml

correctness-model.tomlSnapshot a persona-specific child model +14/-0

Snapshot a persona-specific child model

• Adds a role-file golden showing an explicit OpenAI model alongside the existing child instructions.

internal/runtime/testdata/codex/golden/roles/correctness-model.toml

Documentation (9) +109 / -34
architecture.mdMark native Codex children as implemented +1/-1

Mark native Codex children as implemented

• Removes the statement that the documented runner-owned child policy is not yet implemented.

docs/architecture.md

agent.mdClarify Codex subagent override requirements +4/-3

Clarify Codex subagent override requirements

• Documents Codex model restrictions and explains that a tombstoned persona entry uses the run-level child model rather than pi's frontmatter precedence.

docs/cli/agent.md

run.mdDocument Codex child-model output and transcripts +5/-1

Document Codex child-model output and transcripts

• Adds the Codex Bootstrap model summary and the native-child transcript naming convention.

docs/cli/run.md

runtime-implementation.mdUpdate Codex delegation internals +4/-7

Update Codex delegation internals

• Describes reachable spawn hooks and both runtime notes, replacing the obsolete account of disabled delegation. Retains the recommendation to await a fleet-shaped run.

docs/contributing/runtime-implementation.md

choosing-a-runtime.mdReflect experimental native children in runtime guidance +2/-2

Reflect experimental native children in runtime guidance

• Replaces claims that Codex has no subagent roster while continuing to recommend Claude Code for review and retro until fleet verification.

docs/guides/getting-started/choosing-a-runtime.md

config-reference.mdSpecify Codex subagent configuration constraints +4/-2

Specify Codex subagent configuration constraints

• Identifies Codex as a consumer of the subagents map and points readers to its OpenAI-model and discovered-persona requirements.

docs/reference/config-reference.md

runtimes.mdAdd native children to the runtime comparison +2/-2

Add native children to the runtime comparison

• Updates the Codex subagent and role rows to reflect gated native children and the remaining fleet-verification caveat.

docs/runtimes.md

codex.mdDocument Codex child models and delegation policy +82/-12

Document Codex child models and delegation policy

• Adds model precedence, Bootstrap validation, eligibility, spawn limits, fallback behavior, and child artifact guidance. Corrects the failed-turn exit-code explanation.

docs/runtimes/codex.md

codex_run.goCorrect Codex run-behavior comments +5/-4

Correct Codex run-behavior comments

• Clarifies that stream verdicts determine failed turns regardless of process exit and that dropped stream notifications remain warnings.

internal/runtime/codex_run.go

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

🤖 Review · ❌ Terminated · Started 12:57 PM UTC · Ended 1:06 PM UTC

Commit: 3c34754 · View workflow run →

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review October 29, 2026 00:36

Superseded by updated review

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added requires-manual-review Review requires human judgment component/docs User-facing documentation labels Oct 29, 2026

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review sweep: 1 MEDIUM finding. It is in the review body because the line is outside the diff.

[MEDIUM] docs/contributing/runtime-implementation.md:206: the runtime.BootstrapInput row does not list the new Effort() method

This PR adds Effort() string to runtime.BootstrapInput (internal/runtime/bootstrap.go:52-56). Its doc comment says the codex runtime binds it as every native child's effort. The interface table row at docs/contributing/runtime-implementation.md:206 lists the interface's methods one by one: Plugins, ModelAliases, AgentSubagents, ParentModel and OpenAIProviderAttached. It does not list Effort(). docs/contributing/go-code.md ("Interface documentation") and AGENTS.md both say that a doc listing an interface's methods must be updated when the interface gains one. A runtime author who reads this row will not learn that the harness passes the resolved run effort to Bootstrap.

Suggestion: add the method to the row. For example: "the run's resolved effort (Effort() string: the harness effort after the agents: entry and --effort, or "" when none is set; codex binds it as every native child's effort and checks it against each child model's supported levels)".

The runtime.BootstrapInput row in runtime-implementation.md did not list
Effort(), added in 4c0c056, or SandboxName(). go-code.md's interface
rule asks a doc that lists an interface's methods to list all of them.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
@dhshah13

Copy link
Copy Markdown
Contributor Author

[MEDIUM] docs/contributing/runtime-implementation.md:206: the runtime.BootstrapInput row does not list the new Effort() method

Agreed. The row now lists Effort() string in your wording, with "when set" before codex's binding, since "" leaves each child at the run-level child model's catalog default. It also lists SandboxName(), which it missed too; go-code.md asks for every method. Fixed in 10d9fb0.

@fullsend-ai-review

fullsend-ai-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:07 PM UTC · Completed 2:22 PM UTC

Commit: 10d9fb0 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.25

fullsend-ai-review[bot]

This comment was marked as outdated.

@dhshah13

Copy link
Copy Markdown
Contributor Author

@waynesun09 i have closed all the open threads and gaps.

@dhshah13
dhshah13 requested a review from waynesun09 October 29, 2026 19:03

@waynesun09 waynesun09 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM at 10d9fb0. My earlier findings are resolved and CI is green. The open review-bot threads on dropped spawn notifications and count-based admission against the agent-writable findings log are the documented limits this check has carried since #8712 (counts, not ids; a forged admission is not caught), so they don't block.

@dhshah13
dhshah13 enabled auto-merge October 29, 2026 21:53
@fullsend-ai-review

fullsend-ai-review Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 9:56 PM UTC · Completed 10:08 PM UTC

Commit: 29d64bb · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.03

@fullsend-ai-review fullsend-ai-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the review comment for full details.

Comment thread internal/runtime/codex_run.go Resolved
Comment thread internal/runtime/codex_run.go Resolved
Comment thread internal/runtime/codex_personas.go Resolved
@dhshah13
dhshah13 added this pull request to the merge queue Oct 29, 2026
Merged via the queue into fullsend-ai:main with commit dfe2add Oct 29, 2026
32 checks passed

This branch was successfully deployed

1 active and 1 inactive deployments
site-preview — 29d64bb0 Deployed Oct 29, 2026 by github-actions[bot]
dev — 29d64bb0 Deployed Oct 29, 2026 by dhshah13 via behaviour #18275
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/docs User-facing documentation component/runner Agent runner behavior and lifecycle go Pull requests that update go code ok-to-test Allow e2e CI to run after maintainer review (must be re-applied after each push) requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants