Repository navigation
feat(#1500): dispatch sub-agents in waves on Codex - #1849
Conversation
|
🤖 Finished Review · ✅ Success · Started 12:00 PM UTC · Completed 12:11 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.74 |
PR Summary by QodoDispatch review and retro sub-agents on Codex when a roster is available
AI Description
Diagram
High-Level Assessment
Files changed (6)
|
Code Review by Qodo
1.
|
|
<!-- fullsend:risk-assessment --> DetailsModerate risk reflects protected path modifications and high git churn across touched review files, balanced by modest diff size, absence of security-sensitive changes, runtime-gated opt-in activation, and tight alignment with linked issues. Previous run<!-- fullsend:risk-assessment --> DetailsModerate risk reflects protected path modifications and high git churn across touched review files, balanced by modest diff size, absence of security-sensitive changes, runtime-gated opt-in activation, and tight alignment with linked issues. |
ReviewFindingsMedium
Low
Earlier findings
4 finding(s) below the Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJjb21tZW50IiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJwYXR0ZXJuLWluY29uc2lzdGVuY3kiLCJmaWxlIjoic2tpbGxzL3ByLXJldmlldy9TS0lMTC5tZCIsImlkIjoiZl8xM2RiMGU4MjljMjFhNDkyIiwibGluZSI6ODIwLCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoidW5hdXRob3JpemVkLWNoYW5nZSIsImZpbGUiOiJza2lsbHMvcHItcmV2aWV3L1NLSUxMLm1kIiwiaWQiOiJmX2UzNGQ2NzMxZDc0ZjYzZTIiLCJsaW5lIjo0MzIsImFjdGlvbmFibGUiOmZhbHNlfSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJvdmVyLWVuZ2luZWVyaW5nIiwiZmlsZSI6InNraWxscy9wci1yZXZpZXcvU0tJTEwubWQiLCJpZCI6ImZfNDlkYzU4NWY4NTA3ODQzNyIsImxpbmUiOjgzMywiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImluY29ycmVjdC1kb2MiLCJmaWxlIjoiUkVBRE1FLm1kIiwiaWQiOiJmX2UwMmJjMDdmMWQ4Y2Y5NzMiLCJsaW5lIjoxOSwiYWN0aW9uYWJsZSI6ZmFsc2V9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InN0YWxlLWRvYyIsImZpbGUiOiJkb2NzL3Jldmlldy5tZCIsImlkIjoiZl9kNGUxNzQxNzQ5MDg0Y2E4IiwibGluZSI6MTY5LCJhY3Rpb25hYmxlIjpmYWxzZX0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiaW5jb21wbGV0ZS1kb2MiLCJmaWxlIjoiZG9jcy9yZXZpZXcubWQiLCJpZCI6ImZfNmM4YTQ2MDZlOWE4YTNmZSIsImxpbmUiOjIyMCwiYWN0aW9uYWJsZSI6ZmFsc2V9XX0= --> ReviewFindingsMedium
Low
Labels: PR adds Codex sub-agent dispatch support to review/retro instructions |
waynesun09
left a comment
There was a problem hiding this comment.
Two findings on the Codex wave dispatch, posted inline.
|
🤖 Finished Review · ❌ Failure (provider "openai": no OpenAI credential: set FULLSEND_OPENAI_AUDIENCE, FULLSEND_OPENAI_IDENTITY_PROVIDER_ID and FULLSEND_OPENAI_SERVICE_ACCOUNT_ID (or inference.openai in config.yaml) for Workload Ide…) · Started 3:55 PM UTC · Completed 3:55 PM UTC Commit: Effort: high |
|
The two documentation findings in this review are deferred to the Codex support follow-up. When support is declared, |
When the runtime note announces a Codex roster, review and retro dispatch through spawn_agent within the open-child limit, collect with bounded wait_agent calls, close every child, and treat errored, shutdown, not-found and completed-empty children, and a child running past 900 s, as final. On Codex a challenger still running when under 240 s remain is closed and falls back. Claude Code and pi wording keeps its behaviour. The docs name the fullsend #6970 dependency and the live verification gate; no support claim. Supersedes fullsend-ai#1501, replaces fullsend-ai#1542. Part of fullsend-ai#1500. Fixes fullsend-ai#1552. Signed-off-by: Dharit Shah <dhshah@redhat.com>
…hild past 900 s Size trims had removed two instructions: the Codex triage case lost its wait, so a parent could close the child before collecting the classification step 3d needs, and Claude Code and pi lost "wait for all", so a parent could reach step 5 with children running. The 900 s limit named a failed child but no close, so its slot stayed held. The limit now sits in the final-state list, and retro closes the child too. The README gate now matches the docs: each agent's row follows its own linked run. Signed-off-by: Dharit Shah <dhshah@redhat.com>
… 900 s limit A wait on a slow child held finished children's slots. A timed-out wait now moves to the next open child, in review and in retro, and retro starts the next task after each close. The 900 s limit had no clock. The parent runs `date +%s` after each spawn and at each timed-out wait, and a wait that times out 900 s past that child's spawn is final. Only a timed-out wait proves a child is still running, so a finished child is still collected. `completed` with no message replaces `completed` with an empty result, which also read on a clean `[]`. The retro sentence on Claude Code and pi goes, so both behave as on main. The reference to `agents[].subagents` moves from the skill to docs/review.md and docs/retro.md. Signed-off-by: Dharit Shah <dhshah@redhat.com>
… denied The note sends a denied role to the parent. For the challenger that has the parent adjudicate its own synthesis, against 6d's isolation and fullsend-ai#1500 item 5, and the guard exists to protect that isolation. A denied challenger spawn now takes 6d item 4: the merged findings stand and a low gap is recorded. Other roles follow the note, since step 4 starts before any synthesis exists. Signed-off-by: Dharit Shah <dhshah@redhat.com>
The runtime note requires the parent to execute a denied child's instructions. Keep that contract and make the challenger definition return an unavailable result when the orchestrator executes it after a Codex denial. Step 6d then uses its existing failure fallback without adjudicating the parent's own synthesis. Remove the conflicting exception from the dispatch shape. Native children, Claude Code and pi keep their existing challenger procedure. Signed-off-by: Dharit Shah <dhshah@redhat.com>
82c2987 to
fa8b394
Compare
|
🤖 Finished Review · ✅ Success · Started 4:18 PM UTC · Completed 4:40 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.39 |
waynesun09
left a comment
There was a problem hiding this comment.
LGTM at fa8b394. Both earlier findings are fixed:
- A timed-out wait moves to the next open child.
- The 900 s limit now has a
date +%sclock that runs withTIMEOUT_SECONDSunset. Codex 0.159.3 leaves an interrupted child non-final, so this clock is the only way out of that state.
The text matches fullsend's Codex runtime (Registered sub-agent roles:, max_concurrent_threads_per_session = 4, wait_agent timeout and final states). Every failure path ends in fewer approvals, never more.
Validated locally: make lint (skillsaw --strict) is grade A with 0 errors; skill-env-reachability, challenger-contract, remediation, review-body-fallback, pre-review and post-review tests pass (795 total); check-bundle is clean.
Non-blocking follow-ups:
- A contract assertion for the challenger's denied-spawn guard.
- Check the 240 s budget before each
wait_agent, not only after a timed-out wait. - Put the 900 s final rule ahead of "a timed-out wait is no result".
- Cap open children in retro.
- If
close_agentreportscompletedwith a message, collect it. - Start
correctnessandsecurityfirst. - Restore "not backgrounded" at SKILL.md:444.
- Note the zero-headroom skillsaw ceiling.
The maintainer's approval of fullsend-ai#1849 listed these as non-blocking. The skill starts `correctness` and `security` first and runs the time budget check before each wait, not only after a timed-out one. Under 240 s it closes every open child and fails only if a selected one had not finished, because a check before a wait does not prove a child is running. The final-state rule now sits ahead of "any other timed-out wait", and agents/review.md becomes its single home, since that file wins a conflict. That also frees the skill's budget without raising the baseline, and "not backgrounded" returns to step 3c-1. A message reported by `close_agent` is a result, not a failure, in review and retro. Retro states the four-open cap. The contract test pins the challenger's denied-spawn guard. Part of fullsend-ai#1500. Signed-off-by: Dharit Shah <dhshah@redhat.com>
The getting-started row said "in one context", which the page never defines, and implied every model that can spawn children delegates; it now names the allowed parents and says the parent otherwise does the sub-agents' work itself. The comment on codexSubagentNote still said the agents pr-review wording had not landed; it landed, with retro's, in fullsend-ai/agents#1849. Signed-off-by: Dharit Shah <dhshah@redhat.com>
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>
Summary
When the fullsend runtime note announces a Codex roster, review and retro dispatch their sub-agents as native Codex children within the open-child limit and treat errored, shutdown and not-found children, a child that completes with no message, and a child still running after 900 s, as final. Claude Code and pi behave as before. Requires the roster introduced by fullsend-ai/fullsend#8836 (merged).
Related Issue
Supersedes #1501, replaces #1542. Part of #1500. Fixes #1552. Companion of fullsend-ai/fullsend#6970 (ADR 0126, fullsend-ai/fullsend#7827); earlier attempt fullsend-ai/fullsend#7809 (closed). Keyed on the runtime note as fullsend-ai/fullsend#8836 merged it.
Changes
skills/pr-review/SKILL.md: Codex branch next to the pi and Claude Code branches (3c-1, step 4); at most four children open, collected withwait_agentand closed withclose_agent; a timed-out wait moves to the next open child, so a slow child cannot hold a finished child's slot;date +%safter each spawn and at each timed-out wait measures the 900 s limit; final states route to each step's existing fallback; the challenger starts after the step 4 children are closed and, under 240 s remaining, falls back to item 4. Net +33 characters (68,207 to 68,240; skillsaw estimate 17,060, the baselined ceiling); the baseline is untouched. The pi and Claude Code entries keep every argument; their labels, their rationale sentences and the 3c-2 rationale clause are cut to fit (mainhad 36 characters of room). "Skip every time check" becomes "skip the checkpoints", so the child clock runs withTIMEOUT_SECONDSunset.agents/review.md,agents/retro.md: dispatch NOTE made runtime-neutral; final states; retro's unnamed children through the generic route, the next task starting after each close; on Codex a retro child whose wait times out 900 s past its spawn is recorded as a gap (harness/retro.yamlunchanged).skills/retro-analysis/SKILL.md(feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500 item 3, "as needed") is unchanged: its thread prompts name no dispatch mechanism, so theagents/retro.mdrule covers them.skills/pr-review/sub-agents/challenger.md: when the Codex runtime sends a denied challenger task back to the orchestrator, the definition returns an unavailable result without adjudicating. Step 6d treats that non-JSON result as a failed challenger and retains the merged findings.docs/review.md,docs/retro.md,README.md: one conditional Codex paragraph each, keyed on the runtime providing a roster; no support claim.docs/review.mdanddocs/retro.mdnameagents[].subagentsas the setting behind child models.agents/,skills/): the agent definitions, review skill and challenger definition carry the dispatch and isolation instructions; feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500 (items 1, 3) and Codex child-dispatch: completed-empty results must be treated as terminal, not 'still running' (blocked on #1500 / ADR 0126) #1552 name these files. Human approval is required.Readings a maintainer may overrule
feat, notrefactor: at merge a user gets Codex dispatch once feat(codex)!: run sub-agents as native Codex children fullsend#8836 ships in a release.wait_agent, not thewaitof feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500 item 1: on the pinned Codex CLI the V1 wait tool iswait_agent, andwaitnames another tool.agent_type;security-triage, when not listed, takesexplore, which is instruction-only.wait_agentpassestimeout_ms≤ 120000, so the parent regains control while a child hangs. The CLI allows waits of up to an hour, and the live roots passed six minutes and an hour.piAgentTimeoutSecondsin fullsendinternal/runtime/pi_bootstrap.go), above the 13.1-minutecorrectnesspass indocs/review.md. As on pi, acorrectnessorsecuritypass cut there records the highsub-agent-failurefinding. The parent measures the limit:date +%safter each spawn and at each timed-out wait, kept with the child id, with no per-child file. Only a wait that times out on that child counts, because that alone proves it is still running, so a child that finished unpolled is still collected, and a stalled child can outlive 900 s by one rotation of waits.wait_agent, as the runtime note says, although the CLI takes several and returns the first to finish. The note's "call it again" is read as the tool: after a timed-out wait the parent calls it on the next open child, and a finished child returns at once on its turn.Challenger unavailable: isolated context required.without adjudicating when executed by the orchestrator after a Codex denial. The non-JSON result takes 6d item 4's existing failure fallback, preserving isolation and the merged findings. Native child execution, Claude Code and pi keep their existing challenger procedure.FULLSEND_ITERATION_DEADLINE, fullsend ADR 0105). Until then, two stalled waves fill the 30-minutetimeout_minutes, on Codex as on pi.Testing
make lint: 0 errors, 0 warnings, 12 suppressed../hack/lint-agent-docs: OK.pre-commit run --all-files: passed. gitlint: passed.make check-bundle: passed.make script-teststops at its first failure. On macOS that is asedfailure inscripts/post-code-test.sh, step 19 of 53, which plainmainfails the same way. The later steps were run directly on331f182:scripts/public-text-scan-test.shfails the same 18 cases as plainmain, and the other 33 pass. Nine affected steps passed onf221270. After the final challenger-definition guard, the challenger-contract, remediation and environment-reachability steps were rerun and passed. CI'sscript-testruns all of them on Linux.a395dbb, beforeshutdown, the two-minute waits, the 900 s limit, the challenger's 240 s cut, the next-child rotation and thedate +%sclock) with feat(codex)!: run sub-agents as native Codex children fullsend#8836 at2762f3803(2026-10-26) and3c34754f8(2026-10-27). A review ran eight step 4 sub-agents (seven in the second run), risk assessment among them, in waves of at most four, the challenger after the last was closed, every child closed; with nosubagentsconfigured every child ran on the default model. A retro ran four unnamed children through the generic route with the synthesis in the root, with and withoutsubagents. In every run the agent definitions also carried a test-only appendix that replaced forge access with local records, named the review personas to run, restated the four-open limit and the challenger order, and asked retro for generic delegations with the synthesis in the root: the runs show the text working with that appendix, not the text alone producing the schedule.date +%sclock, a child that hangs past 900 s or the time budget, a challenger cut at 240 s, await_agentthat times out, anerrored,shutdownornot_foundchild, a child that completes with no message, a denied spawn in review or retro, a review persona the roster does not list, the 3c-1 security triage (large PRs only; the test PR was small), pi on this branch. The runs need the fullsend side and cannot be reproduced from this branch alone.Checklist
make lint,./hack/lint-agent-docs,pre-commit run --all-files