Repository navigation
feat(#1500): dispatch Codex children on collaboration V2 - #1971
Conversation
When the runtime note says "Dispatch follows collaboration V2.", the review and retro agents spawn with task_name and fork_turns "none", collect each result from its message, wait without a target, and interrupt instead of close. fullsend emits the sentence once it admits V2 parents (fullsend-ai/fullsend#9085, ADR 0159 decision 5). The V1 instructions are unchanged. skills/pr-review/SKILL.md is at its context-budget ceiling, so the review agent's prompt carries the V2 rules for the skill's Codex steps. Signed-off-by: Dharit Shah <dhshah@redhat.com>
PR Summary by QodoSupport collaboration V2 child dispatch in review and retro agents
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
|
🤖 Finished Review · ✅ Success · Started 9:37 PM UTC · Completed 9:44 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.34 |
Code Review by Qodo
1. Custom review areas lose their identity
|
The V2 step 6d rule now sets only when the challenger starts and the 240 s recheck; the skill's skip rule and 600 s check still decide whether it runs. A result belongs to the persona spawned with that task_name, which is unique in the run, so persona names with `_` keep their identity. A timed-out wait is followed by another wait in review and retro. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
Risk Assessment: moderate (2/5) DetailsSmall diff touching protected agent definitions with high recent churn in review orchestration, balanced by opt-in runtime gating and focused scope against linked issue #1500. Previous runRisk Assessment: moderate (2/5) DetailsSmall diff touching protected agent definitions with high recent churn in review orchestration, balanced by opt-in runtime gating and focused scope against linked issue #1500. Previous run (2)Risk Assessment: moderate (2/5) DetailsSmall diff touching protected agent definitions with high recent churn in review orchestration, balanced by opt-in runtime gating and focused scope against linked issue #1500. Previous run (3)Risk Assessment: moderate (2/5) DetailsSmall diff touching protected agent definitions with high recent churn in review orchestration, balanced by opt-in runtime gating and focused scope against linked issue #1500. Previous run (4)Risk Assessment: moderate (2/5) DetailsSmall diff touching protected agent definitions with high recent churn in review orchestration, balanced by opt-in runtime gating and focused scope against linked issue #1500. |
ReviewFindingsMedium
Low
Earlier findings
1 finding(s) below the Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibWVkaXVtIiwiY2F0ZWdvcnkiOiJtaXNwbGFjZWQtYWJzdHJhY3Rpb24iLCJmaWxlIjoiYWdlbnRzL3Jldmlldy5tZCIsImlkIjoiZl9hMWQ2ZjMyNTNiZWRjYWFiIiwibGluZSI6MjYsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5Ijoic2NvcGUtZXhjZWVkZWQiLCJmaWxlIjoiYWdlbnRzL3Jldmlldy5tZCIsImlkIjoiZl8xODg2YjRjZjAzMzI1YWU2IiwibGluZSI6MjYsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJpbnRlbnQtY29oZXJlbmNlIn1dfQ== --> ReviewFindingsMedium
Low
Previous run (2)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOltdfQ== --> ReviewFindingsMedium
Previous run (3)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOltdfQ== --> ReviewFindingsMedium
Previous run (4)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOltdfQ== --> ReviewFindingsMedium
Labels: Cross-cutting review/retro agent feature work, matching the repo triage convention. |
|
🤖 Finished Review · ✅ Success · Started 9:48 PM UTC · Completed 9:54 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.14 |
waynesun09
left a comment
There was a problem hiding this comment.
Review-only pass: three MEDIUM findings on the V2 dispatch block, inline below.
… target interrupt_agent always takes the task name spawn_agent returned, while wait_agent never takes a target. A withheld result is the notice the runtime note quotes. A contract test pins the "Dispatch follows collaboration V2." gate in both agent prompts, which stay dormant until fullsend's runtime note emits that sentence. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 12:55 AM UTC · Completed 1:04 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.78 |
waynesun09
left a comment
There was a problem hiding this comment.
Review-only follow-up at 2c30c15: two MEDIUM findings. One is a reply in the existing withheld-notice thread, and one is a new inline comment on the agent_type rule for the triage child.
…withheld notice The Spawn bullet's "else omit it" now excepts step 3c-1, whose triage child falls back to the instruction-only explore role. No runtime note defines a withheld-result notice yet, so neither prompt matches one. The rule comes back with the exact text, pinned in the contract test, once fullsend defines the notice. The contract test's header no longer says fullsend already emits the marker: it does once fullsend admits V2 parents. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 5:36 PM UTC · Completed 5:44 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.49 |
waynesun09
left a comment
There was a problem hiding this comment.
Review-only follow-up at cfe3d14: two MEDIUM findings, inline below.
…atch Retro's V2 clause replaces its V1 rules, which defer to the runtime note, so it dropped two spawn rules that review's Spawn bullet keeps. It now says never `model`, `reasoning_effort` or `fork_context`, and a denied spawn follows the note's rule and is recorded in `summary`. Signed-off-by: Dharit Shah <dhshah@redhat.com>
The contract test only checked the gate sentence. It now also pins each rule in both V2 rule bodies by a phrase that must occur once; fails when close, fork_context, wait_agent, target or "next open child" appear, in any case, outside the sentences that rule out their V1 use; and pins both ends of every citation of a pr-review step or the Constraints rule in the review agent's V2 rules: the citation, and a phrase only the cited rule contains. Dropping a V2 rule, pasting a V1 call back, or renumbering either side of a citation fails make script-test. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 11:25 PM UTC · Completed 11:34 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.49 |
waynesun09
left a comment
There was a problem hiding this comment.
All findings answered and fixed through 5ef3ce6; the V2 rules stay dormant until fullsend emits the marker, and the contract test pins both ends.
|
/ok-to-test 5ef3ce6 |
|
Functional and behaviour tests authorized for |
9e51ca8
The codex row of the runtime guide named the parents fullsend allows, which is not the gate: delegation needs harness security on and a parent Codex resolves to collaboration V1 or V2 on the direct route, and a V2 parent delegates only when no child model selects V2. The row and the review/retro paragraph of the codex page now say that, and the code/fix paragraph points back to the same conditions. The run evidence said more than the runs showed. Every run exited 0, but in two of the three V1 review runs on fullsend-ai#6970 a persona the skill selects did not run and neither result said so (fullsend-ai#9073, fullsend-ai#9657), and in the V2 review run on fullsend-ai#9085 the parent dropped the challenger's kept findings after its own check of the repository (fullsend-ai#9657). The guide's callout, the Roles row of runtimes.md, the review/retro paragraph and the runtime internals now say so, and the denied-spawn sentence names the run it happened in. The review/retro paragraph and the internals use one wording for where the V1 runs were: locally on macOS Apple Silicon, natively and in a Fedora CoreOS (aarch64) podman VM. The Platforms bullet and the Not yet exercised lead name the same two places, and the lead gives the V1 and V2 runs a sentence each. The comment above codexSubagentNote now names every agents prompt that keys on the note: the pr-review skill, the review agent and the retro agent (fullsend-ai/agents#1849, fullsend-ai/agents#1971). Signed-off-by: Dharit Shah <dhshah@redhat.com>
Review and retro follow Codex collaboration V2 dispatch when the runtime note says
Dispatch follows collaboration V2., which fullsend emits once it admits V2 parents (fullsend-ai/fullsend#9085, ADR 0159 decision 5). The V1 instructions are unchanged.The V2 rules are dormant until then: fullsend main does not emit the sentence yet. The #9085 enablement change adds it as
codexV2DispatchMarker, pinned by its tests.scripts/codex-v2-dispatch-contract-test.shpins the sentence on this side.The rules read Codex 0.166.0's raw result message (
Task name:,Sender:, payload), which has to be checked again against the delivery path before V2 is admitted. There is no rule yet for a result the runner withholds: it comes back with the notice's exact text, pinned in the contract test, once fullsend defines that notice.Part of #1500, fullsend-ai/fullsend#6970 and fullsend-ai/fullsend#9085.
Changes
agents/review.md: V2 rules that replace thepr-reviewskill's Codex rules (steps 3c-1, 4 and 6d) and theclose_agentfinal-state rule: spawn with a uniquetask_nameandfork_turns: "none", each result arrives as its own message,wait_agenttakes onlytimeout_ms,interrupt_agenttakes the child's task name and replaces close, and an empty, errored, shut-down or missing child's payload or a child interrupted at 900 s is final for that sub-agent.agents/retro.md: the same rules for retro's unnamed tasks.scripts/codex-v2-dispatch-contract-test.sh,Makefile: pin the gate sentence and each V2 rule in both prompts, and thepr-reviewsteps and Constraints rule the review rules cite (make script-test).skills/pr-review/SKILL.mdis at its context-budget ceiling, so the rules live in the review agent's prompt instead of the skill. The contract test fails when a rule they cite moves.Testing
make lintpre-commit run --all-filesbash scripts/codex-v2-dispatch-contract-test.sh(fails when either prompt drops the sentence or a V2 rule, mentions close,fork_context,wait_agent, target or "next open child" outside the sentences that rule out their V1 use, or when a cited rule moves)Review bot
The review bot carries
f_a1d6f3253bedcaab(the V2 rules live in the agent prompt, a design preference whileSKILL.mdis at its ceiling) andf_1886b4cf03325ae6(scope, now info) until a maintainer other than the author resolves their threads. They are answered in r4557658287 and r4557658564.