Skip to content

feat(codex)!: delegate from collaboration V2 parents - #9444

Merged
dhshah13 merged 10 commits into
fullsend-ai:mainfrom
dhshah13:feat/9085-codex-v2-enablement
Nov 17, 2026
Merged

dhshah13 merged 10 commits into
fullsend-ai:mainfrom
dhshah13:feat/9085-codex-v2-enablement

Conversation

@dhshah13

@dhshah13 dhshah13 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Codex parents on collaboration V2 now delegate to native children (ADR 0159). Each V2 child's final message passes the PostToolUse chain at SubagentStop before delivery; on a block the child continues, told to reply with the withheld notice. Codex builds the result message only after the child's turn completes, so the V2 rules from fullsend-ai/agents#1971 read the same format (Task name:, Sender:, payload) at 0.166.0. Includes the maintainer's cherry-picked prototype. fullsend-ai/agents#2013 (merged) lists RESULT WITHHELD BY FULLSEND verbatim, so this PR keeps that literal. Item 7 passed on this branch: #9085 (comment).

Related Issue

Part of #9085

Changes

  • fullsend-codex-hook.py: the V2 spawn policy; the SubagentStop phase answers every block with the fixed withheld-notice prompt (the reason goes to the findings log), passes only the exact notice after a block, and never emits continue: false.
  • codex_config.go: the [features.multi_agent_v2] table and, for V2 delegation, the SubagentStop handler.
  • codex_bootstrap.go, codex_personas.go: a V2 parent delegates when no child model selects V2, so no child the runner starts holds the spawn tool (the refactor(codex): report every mapped multi-agent call as Agent in the manifest mirror and matcher #9177 review's backstop); the V2 note quotes codexWithheldNotice.
  • Docs: runtimes/codex.md (gate, residuals, backstop), runtimes.md, architecture.md, the bump re-check row.

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic
  • go test ./internal/runtime/ -run 'Codex' -race -count=1 -timeout 15m, go vet ./..., make lint-md-links, npx vitepress build docs

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

dhshah13 and others added 7 commits November 13, 2026 09:13
The hook adapter's spawn guard admits the V2 spawn, reported as
collaborationspawn_agent, under the policy ADR 0159 decision 2 sets:
from the root thread only, a registered or absent agent_type, no model,
reasoning_effort or fork_context key, and fork_turns explicitly "none"
as codex reads it (trimmed, case-insensitive); omission, "0", numbers
and other strings are denied. The V2 wait, list and interrupt calls pass
through from the root like V1's wait, close and send_input; send_message,
followup_task and every other matched name stay denied. V1 policy and
its reasons are unchanged apart from the shared not-a-spawn-tool reason.

Bootstrap still declines every V2 parent, so the new paths are reached
by the adapter tests only.

Part of fullsend-ai#9085.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
config.toml states collaboration V2 as the [features.multi_agent_v2]
table instead of the scalar: `enabled = false` keeps the scalar's
semantics, so every run rendered today changes in that line alone, and
`enabled = true` (not reached by Bootstrap yet) brings the two
restriction keys ADR 0159 decision 3 names, rendered only then because
the table is deny_unknown_fields. renderCodexConfig takes the switch as
a trailing bool and refuses it without a roster, since the table
overrides [agents] enabled = false and would give an agent that runs in
one context the multi-agent tools. No thread cap is rendered in the
table: codex derives the V2 cap from the [agents] key plus the root.

Goldens: the three config goldens change in that line; a
config-delegating-v2.toml golden pins the enabled table.

Part of fullsend-ai#9085.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
Bootstrap carries the collaboration version the gate takes into the
roster, the developer instructions and the config switch: a V2 parent
would get the V2 feature table, the V2 dispatch note and V2 child notes.
Today the gate admits V1 parents only, so every rendered byte is
unchanged; the V2 paths are reached by the unit tests and the
config-delegating-v2.toml golden, and a Bootstrap test pins the table
off and the V1 note for a delegating V1 parent. The gate comment names
what widens the gate to V2: the checked delivery path and the V2
spawn's own backstop.

The V2 dispatch note (ADR 0159 decision 5) keeps the sentences the
agents repository keys on, puts the "Dispatch follows collaboration
V2." marker right after its third sentence, and carries V2's contract:
task_name, fork_turns "none", no model, reasoning_effort or
fork_context, wait_agent with only timeout_ms, results as messages
through the checked delivery path, the four-slot rule with eviction and
no close or follow-up call, the interrupt (an interrupted child sends
no result), an errored child final for its role, and the withheld
result. The V2 child note replaces V1's "no sub-agent tool" sentence
with the denial of every multi-agent call.

Part of fullsend-ai#9085.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
The rollout read's shell test writes one more child head, shaped like a
0.166.0 collaboration V2 child's session_meta line: parent_thread_id at
the top level and again under source.subagent.thread_spawn, with the
spawn's depth and agent_path, synthetic ids throughout. The read must
count it once as a child of the root, though it names the parent twice,
and its session_id must not read as the thread id. The testdata README
says what the head is modelled on.

Part of fullsend-ai#9085.

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

The runtime-implementation guide's spawn-guard row describes the hook as
it is on this branch: a V1 spawn_agent with fork_context false and a V2
collaborationspawn_agent with fork_turns "none" are admitted from the
root, the V1 and V2 control calls pass through from the root and are
denied from a child, and send_message, followup_task, the resume and
every other name are denied. The [features.multi_agent_v2] re-check row
says the runner renders the table on every run and points at codex's
collab_tools_enabled, which decides which children of a V2 parent get
the multi-agent tools; the hook-names re-check row points at codex's
fork_turns reading (SpawnAgentArgs::fork_mode), which the guard's V2
check mirrors.

Part of fullsend-ai#9085.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
Prototype for fullsend-ai#9085 item 8. On collaboration V2 a child's result reaches
the parent as an agent message, not as a tool result, so the PostToolUse
chain never sees it.

Codex runs SubagentStop in the child with last_assistant_message, the
text that becomes the result, before the parent is notified. A block
(exit 2 with a reason) makes the child continue instead of finishing.

- hooks.json: every PostToolUse group that covers Agent also gets a
  SubagentStop handler with the same scripts.
- Adapter: a SubagentStop phase presents the final message to the chain
  as an Agent tool result. A block appends a prompt telling the child to
  reply with a fixed withheld notice. `continue: false` is never
  emitted, because Codex would end the child and deliver the flagged
  message.
- Golden hooks-default.json regenerated.

Not included: admitting V2 in Bootstrap, and tests for the new phase.
Both belong to the enablement PR.

Known residuals: the gate fails open if the hook process itself fails,
an errored child's provider error text is not screened, and a child that
repeats flagged text runs until the parent's wait times out.

Assisted-by: Claude
Signed-off-by: Wayne Sun <gsun@redhat.com>
A Codex parent whose catalog model selects collaboration V2 now runs its
sub-agents as native children, as a V1 parent does (ADR 0159). Each V2
child's final message passes the PostToolUse chain at SubagentStop before
Codex delivers it. A block makes the child continue, told to reply with
the withheld notice, one Go const that the V2 runtime note quotes.

- Bootstrap admits a V2 parent when no child model selects V2. Codex
  gives a child of a V2 parent the multi-agent tools only when the
  child's own model selects V2 and applies no max_depth under V2, so a
  child the runner starts holds no spawn tool; for a spawn the guard did
  not screen, depth one still rests on the guard. Otherwise the parent
  runs in one context with a line naming the model.
- hooks.json carries the SubagentStop handler, with the scripts of the
  PostToolUse group that covers Agent, for a run that delegates from a
  V2 parent; every other run's hooks.json is unchanged.
- The adapter ends every block on the SubagentStop phase with the
  withheld-notice prompt, its own failures included, blocks a payload
  without a last_assistant_message string, passes the exact notice
  before the chain runs, and never emits continue: false.
- The V2 runtime note quotes the notice and states task_name's rules.
- Tests: the SubagentStop phase (block, clean pass, empty message,
  adapter failure), the V2 gate, the child-model backstop, and the
  handler's presence in hooks.json for V2 delegation only.
- Docs: the gate and its three limits, the backstop, V2 delegation as
  experimental until the live check, and the bump re-check row.

Part of fullsend-ai#9085.

BREAKING CHANGE: agents with the Agent tool, or no tools: list (review,
retro, code, fix), on a V2 parent model (gpt-5.6-sol, gpt-6.1-sol and
the other V2 entries of the 0.166.0 catalog) with harness security on
and no V2 child model now spawn native Codex children instead of running
in one context, and the children's tokens count in metrics.json. To keep
them off native Codex children, pin them to runtime: claude, as
docs/runtimes/codex.md recommends for review and retro.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
@dhshah13
dhshah13 requested a review from a team as a code owner November 13, 2026 18:44
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Enable native Codex delegation from collaboration V2 parents

✨ Enhancement 🧪 Tests 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Enable native delegation from eligible Codex V2 parents while keeping V2-capable children in one
 context.
• Check V2 child results before delivery; blocked children continue with a withheld-result notice.
• Add V2 spawn controls, regression tests, and documentation of experimental status and security
 limits.
Diagram

sequenceDiagram
    participant Bootstrap as Bootstrap
    actor Parent as V2 Parent
    participant Guard as Spawn Guard
    participant Child as Native Child
    participant Gate as Result Gate
    participant Chain as Security Chain
    Bootstrap->>Parent: Enable eligible V2 delegation
    Parent->>Guard: Request fresh-context spawn
    Guard->>Child: Admit registered role
    Child->>Gate: Final message at SubagentStop
    Gate->>Chain: Check as Agent result
    Chain-->>Gate: Allow or block
    alt Allowed
        Gate-->>Parent: Deliver child message
    else Blocked
        Gate-->>Child: Continue with withheld-notice prompt
        Child->>Gate: Check next final message
    end
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Add an upstream Codex result-delivery gate
  • ➕ Could enforce checks directly at delivery and avoid relying on hook-process availability.
  • ➖ Requires an upstream Codex change and delays V2 delegation; the current pinned CLI has no such gate.

Recommendation: Use the existing SubagentStop path for experimental enablement: it checks the final message before delivery without changing Codex. Keep the documented fail-open and provider-error limits explicit, and require the planned live review/retro run before treating V2 delegation as verified.

Files changed (21) +1317 / -259

Enhancement (4) +347 / -87
codex_bootstrap.goAdmit eligible V2 parents and generate V2 runtime instructions +87/-32

Admit eligible V2 parents and generate V2 runtime instructions

• Allows V2 parents to delegate when resolved child models stay off V2. Passes the collaboration version into role instructions, configuration, and hook generation.

internal/runtime/codex_bootstrap.go

codex_config.goRender the V2 feature table and SubagentStop hooks +79/-10

Render the V2 feature table and SubagentStop hooks

• Replaces the scalar V2 setting with a feature table that enables restrictions only for admitted V2 delegation. Adds SubagentStop handlers for PostToolUse groups covering Agent or Task.

internal/runtime/codex_config.go

fullsend-codex-hook.pyGuard V2 spawns and screen child final messages +120/-21

Guard V2 spawns and screen child final messages

• Admits registered root-thread V2 spawns only with fresh context and no model overrides, while allowing specified V2 control calls. At SubagentStop, presents the final message to the PostToolUse chain as an Agent result and continues blocked children with a withheld-notice prompt.

internal/runtime/codex_hook/fullsend-codex-hook.py

codex_personas.goSelect V2 child notes and reject V2-capable child models +61/-24

Select V2 child notes and reject V2-capable child models

• Adds a V2-specific role instruction and checks resolved run-level and persona models before a V2 parent delegates. Treats catalog-listed V2 parents as eligible for that check.

internal/runtime/codex_personas.go

Tests (12) +871 / -124
codex_bootstrap_test.goTest V2 bootstrap decisions and dispatch instructions +158/-21

Test V2 bootstrap decisions and dispatch instructions

• Covers V2 parent admission, V2 child-model rejection, generated assets, and the V2 dispatch contract. Pins the existing V1 instructions to detect regressions.

internal/runtime/codex_bootstrap_test.go

codex_config_test.goVerify V2 configuration and hook rendering +142/-49

Verify V2 configuration and hook rendering

• Tests both feature-table modes, TOML parsing, roster requirements, Agent-covering group selection, and V2-only SubagentStop handlers.

internal/runtime/codex_config_test.go

codex_golden_test.goGenerate V2 configuration and hook snapshots +28/-15

Generate V2 configuration and hook snapshots

• Extends golden-file coverage to V2 delegating configuration and hooks while adapting existing cases to the new renderer arguments.

internal/runtime/codex_golden_test.go

codex_hook_test.goExercise V2 spawn policy and result-gate outcomes +299/-17

Exercise V2 spawn policy and result-gate outcomes

• Adds admission and denial cases for V2 calls and fork arguments. Tests clean, blocked, malformed, empty, and withheld child messages, including adapter failures.

internal/runtime/codex_hook_test.go

codex_personas_test.goTest V2 role notes and child-model backstop +74/-15

Test V2 role notes and child-model backstop

• Verifies that V2 roles differ from V1 roles only in their child note, and checks parent-version selection and child-model rejection reasons.

internal/runtime/codex_personas_test.go

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

Adapt the config-guard test to the renderer switch

• Passes the disabled V2 setting when rendering the configuration used by the existing guard execution test.

internal/runtime/codex_run_test.go

codex_subagents_test.goCount captured-shape V2 child rollouts +18/-3

Count captured-shape V2 child rollouts

• Adds a V2 session-metadata fixture and verifies that reconciliation counts its child once despite two parent-thread references.

internal/runtime/codex_subagents_test.go

config-delegating-v2.tomlAdd a golden V2 delegating configuration +74/-0

Add a golden V2 delegating configuration

• Captures enabled V2 restrictions, registered roles, and parent instructions covering V2 dispatch and withheld results.

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

config-delegating.tomlUpdate the V1 delegating configuration snapshot +3/-1

Update the V1 delegating configuration snapshot

• Records the disabled V2 feature as a table rather than a scalar without changing the V1 dispatch contract.

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

config-gateway.tomlUpdate the gateway configuration snapshot +3/-1

Update the gateway configuration snapshot

• Records the disabled V2 feature table for a gateway run that does not delegate.

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

config.tomlUpdate the single-context configuration snapshot +3/-1

Update the single-context configuration snapshot

• Records the disabled V2 feature table in the default Codex configuration.

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

hooks-delegating-v2.jsonAdd a golden V2 SubagentStop hook configuration +68/-0

Add a golden V2 SubagentStop hook configuration

• Captures the generated V2 child-result handler alongside the existing PostToolUse chain and first-position spawn guard.

internal/runtime/testdata/codex/golden/hooks-delegating-v2.json

Documentation (5) +99 / -48
architecture.mdDescribe the implemented V2 delegation boundary +22/-14

Describe the implemented V2 delegation boundary

• Replaces the planned-policy description with the V2 child-model backstop and SubagentStop result gate. Records remaining failure modes and the live-verification requirement.

docs/architecture.md

runtime-implementation.mdDocument V2 hook contracts and Codex bump checks +11/-8

Document V2 hook contracts and Codex bump checks

• Explains V2 spawn admission, child-result screening, rollout reconciliation, and Codex behaviors that must be rechecked on version bumps.

docs/contributing/runtime-implementation.md

runtimes.mdList V2 parents as eligible for Codex sub-agents +1/-1

List V2 parents as eligible for Codex sub-agents

• Updates the runtime comparison to include direct-route Codex parents on collaboration V2.

docs/runtimes.md

codex.mdExplain V2 delegation, result handling, and residual risks +61/-24

Explain V2 delegation, result handling, and residual risks

• Documents eligibility, V2 spawn and result semantics, the withheld notice, child-model restrictions, and the experimental live-run gate.

docs/runtimes/codex.md

README.mdIdentify the source of the V2 rollout fixture +4/-1

Identify the source of the V2 rollout fixture

• Notes that the V2 rollout-head test is modeled on a Codex 0.166.0 capture with synthetic identifiers.

internal/runtime/testdata/codex/README.md

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:46 PM UTC · Completed 6:57 PM UTC

Commit: 032aaa4 · View workflow run →

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

@qodo-code-review

qodo-code-review Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0) 🔗 Cross-repo conflicts (0) 📜 Skill insights (0)

Grey Divider


Remediation recommended

1. Child results can reach the parent unscreened on gate failure ✗ Dismissed
Description
The V2 SubagentStop gate fails open: a hook process that exits with a code other than 0 or 2,
times out, or fails to start lets the child's final message reach the parent unscanned, and a child
that ends in errored delivers its provider error text with no hook run on it. This is the
documented residual in the runtime docs, but it means a V2 child result can enter the parent's
context without the unicode, canary, suppression and redaction checks the ticket requires.

2. Flagged children can drain run budgets ✗ Dismissed
Description
run_subagent_stop responds to every blocked final message by continuing the child with the same
withheld-notice prompt, without limiting how many times that child can be continued. If a child
repeatedly produces flagged text, each attempt starts another model turn and hook invocation until
the parent interrupts it or the run ends, consuming tokens without delivering a result.


Informational

3. V2 parents stop delegating when a child model selects V2 ✗ Dismissed
Description
Bootstrap calls codexV2ChildModelReason after resolving child models and, for a V2 parent, sets
delegating to false and clears roles whenever the run-level child model or any persona model
selects V2. The ticket requires V2 to be enabled for every child regardless of model and an eligible
V2 parent to delegate, so a V2 parent configured with a V2 child model (for example gpt-6.1-terra)
runs in one context instead of delegating. The PR documents this as a deliberate backstop for the V2
spawn, but the ticket's success criteria are not met for those configurations, and the gate's own
note is the only signal a fleet operator gets.

Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #9177
✅ Compliance rules (platform): 96 rules
✅ Skills: 5 invoked
  writing-user-docs
  writing-adrs
  check-patch-coverage
  cutting-releases
  adr-corner
✅ Web pages:
  +11 more
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/agents (sha: 9e51ca82) — View relationship
✅ Context preparation
  Commit messages: summarized; full text retained for this review
  Past issues: summarized; full text retained for this review
Review mode: Auto: 🧠 Deep: Broad delegation and security changes span many independent logic paths.

Grey Divider

Tip of the day
💡 Did you know, you can enable the Remediation agent and Qodo fixes findings in a dedicated fix PR

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread docs/runtimes/codex.md Resolved
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://577e0bd3-site.fullsend-ai.workers.dev

Commit: 4f9c773d0660471e381a1a649e5cee19db029463

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

fullsend-ai-review Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk: large change modifying existing behavior without a feature flag and with elevated churn in runtime files, balanced by zero protected or security-sensitive paths, solid test coverage, and full alignment with linked issue consensus.

Previous run

Risk Assessment: moderate (2/5)

Details

Moderate risk: large change modifying existing behavior without a feature flag and with elevated churn in runtime files, balanced by zero protected or security-sensitive paths, solid test coverage, and full alignment with linked issue consensus.

Previous run (2)

Risk Assessment: moderate (2/5)

Details

Moderate risk: large change modifying existing behavior with high git churn in runtime files, balanced by zero protected or security-sensitive paths, solid test coverage, and fully resolved linked issue consensus.

@fullsend-ai-review

fullsend-ai-review Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Looks good to me

Previous run

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

Looks good to me

Previous run (2)

<!-- fullsend:review-diff-hash:0cde77eea3f29b72262e46c511f298a11c460b48cd96be042da57e69d59dd2c8 -->
<!-- fullsend:review-head:9c54377c08d8a657851458db6dc0b738cbfbb5fb -->
<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOltdfQ== -->

Looks good to me

Previous run (3)

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

Looks good to me

Previous run (4)

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

Looks good to me


Labels: Codex runtime feature in the runner/runtime layer, matching labels on prior Codex runtime PRs.

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review fullsend-ai-review Bot added ready-for-merge All reviewers approved — ready to merge type/feature New capability request component/runner Agent runner behavior and lifecycle labels Nov 13, 2026
@dhshah13

Copy link
Copy Markdown
Contributor Author

qodo Finding 3 is intentional. Under V2, Codex gives a child the spawn tool whenever the child's own model selects V2 and applies no agents.max_depth (codex-rs/core/src/tools/spec_plan.rs:734-747, rust-v0.166.0), so delegating with a V2 child model would leave depth one to the spawn hook alone. Declining there is the admission backstop the #9177 review asked for before Bootstrap accepts V2 parents. The built-in child model, gpt-5.6-luna, is V1 in the 0.166.0 catalog, so a V2 parent delegates by default.

@qodo-code-review

Copy link
Copy Markdown

qodo Finding 3 is intentional. Under V2, Codex gives a child the spawn tool whenever the child's own model selects V2 and applies no agents.max_depth (codex-rs/core/src/tools/spec_plan.rs:734-747, rust-v0.166.0), so delegating with a V2 child model would leave depth one to the spawn hook alone. Declining there is the admission backstop the #9177 review asked for before Bootstrap accepts V2 parents. The built-in child model, gpt-5.6-luna, is V1 in the 0.166.0 catalog, so a V2 parent delegates by default.

Your reasoning matches the code and the PR docs, so the gate is intentional. I'd still leave finding 3 open, because the finding is accurate about the ticket's success criteria.

What I checked

  • internal/runtime/codex_bootstrap.go:215-218 turns delegation off for a V2 parent when a child model selects V2.
  • docs/runtimes/codex.md:241-252 documents the same rule, including the one-context log line operators will see.
  • I couldn't read the Codex source you cited (spec_plan.rs:734-747) because that repo isn't mounted here, so I'm relying on your citation for that part.

Where finding 3 stands

  • The evidence is accurate: a V2 parent with a V2 child model runs in one context, which the ticket's success criteria don't cover.
  • The suggested fix is partly done. The docs record the deviation, but they don't yet name a tracking issue for lifting the restriction, and the ADR doesn't cover it.

I haven't dismissed anything. If you want finding 3 closed as intentional, tell me and I'll dismiss it. Only the PR author can dismiss, so the tool will refuse if you aren't the author.

@dhshah13

Copy link
Copy Markdown
Contributor Author

qodo Dismiss finding 3 as intentional.

@qodo-code-review

Copy link
Copy Markdown

qodo Dismiss finding 3 as intentional.

Dismissed finding 3 ("V2 parents stop delegating when a child model selects V2") as intentional. The other two findings were already dismissed.

@codecov

codecov Bot commented Nov 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@dhshah13 dhshah13 added the ok-to-test Allow e2e CI to run after maintainer review (must be re-applied after each push) label Nov 13, 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-only pass: three MEDIUM findings, posted inline.

Comment thread internal/runtime/codex_bootstrap.go Resolved
Comment thread internal/runtime/codex_bootstrap.go Resolved
A SubagentStop block put the chain's reason ahead of the withheld-notice
prompt, and the child's next final message went through the chain again,
so a child could learn which stage fired and reword its result until one
passed.

- The adapter sends the fixed prompt in place of every block reason on
  this phase. The reason goes to the findings log only, where every call
  site already records it.
- Once codex sets stop_hook_active after a block, only the exact notice
  (ASCII whitespace trimmed) passes for the rest of the child's turn and
  the chain does not run; anything else blocks with the prompt.
- codexWithheldNotice's comment says the V2 review and retro rules in the
  agents repository must list the same text.
- Tests: after a block, a clean but different message, an empty, null,
  missing or non-string one, and the notice with more text or a hidden
  separator all block without running the chain; the prompt is the whole
  of stderr and the reason is in the findings log.
- Docs: the gate after a block, the limit for a child that never replies
  with the notice, and a bump re-check of stop_hook_active.

Part of fullsend-ai#9085.

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

fullsend-ai-review Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:29 PM UTC · Completed 8:38 PM UTC

Commit: 9c54377 · View workflow run →

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

@fullsend-ai-review fullsend-ai-review Bot removed the ready-for-merge All reviewers approved — ready to merge label Nov 13, 2026
fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 13, 2026 20:38

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 13, 2026
ederign pushed a commit to ederign/agents that referenced this pull request Nov 15, 2026
… result

fullsend-ai/fullsend#9444 has the Codex runtime send exactly
`RESULT WITHHELD BY FULLSEND` in place of a V2 child's result when its
security chain blocks that result. Review and retro now list a payload
that is exactly that notice as final without a result, so review applies
the sub-agent's failure fallback and retro records the gap in `summary`,
instead of reading it as the persona's result.

- agents/review.md, agents/retro.md: the notice joins the V2
  final-without-result payloads.
- scripts/codex-v2-dispatch-contract-test.sh: pins the notice once in
  each prompt and in each V2 rule body, the way it pins the gate
  sentence.

The V2 rules stay dormant until fullsend emits the gate sentence.

Part of fullsend-ai#1500, fullsend-ai/fullsend#6970 and fullsend-ai/fullsend#9085.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
The SubagentStop gate passes the notice with ASCII whitespace around it,
so a parent can receive it padded. The V2 runtime note now calls a
message whose payload is `RESULT WITHHELD BY FULLSEND`, ignoring
whitespace around it, a withheld result, matching the agents
repository's V2 review and retro rules.

Part of fullsend-ai#9085.

Signed-off-by: Dharit Shah <dhshah@redhat.com>
Review and retro have now run on a V2 parent with the SubagentStop gate,
so codex.md and architecture.md no longer call V2 delegation
experimental.

Part of fullsend-ai#9085.

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

fullsend-ai-review Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:27 PM UTC · Completed 3:36 PM UTC

Commit: 4f9c773 · View workflow run →

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

@fullsend-ai-review fullsend-ai-review Bot removed the ready-for-merge All reviewers approved — ready to merge label Nov 16, 2026
@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review November 16, 2026 15:36

Superseded by updated review

@fullsend-ai-review fullsend-ai-review Bot added the ready-for-merge All reviewers approved — ready to merge label Nov 16, 2026
@dhshah13
dhshah13 requested a review from waynesun09 November 16, 2026 21:20
@dhshah13
dhshah13 added this pull request to the merge queue Nov 17, 2026
Merged via the queue into fullsend-ai:main with commit 27ef67b Nov 17, 2026
64 checks passed
@dhshah13
dhshah13 deleted the feat/9085-codex-v2-enablement branch November 17, 2026 21:11

This branch was successfully deployed

1 active deployment
site-preview — 4f9c773d Deployed Nov 16, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/runner Agent runner behavior and lifecycle ok-to-test Allow e2e CI to run after maintainer review (must be re-applied after each push) ready-for-merge All reviewers approved — ready to merge risk/moderate PR risk: moderate type/feature New capability request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants