Skip to content

feat(#1500): dispatch sub-agents in waves on Codex - #1849

Merged
waynesun09 merged 5 commits into
fullsend-ai:mainfrom
dhshah13:feat/1500-codex-wave-dispatch
Oct 30, 2026
Merged

waynesun09 merged 5 commits into
fullsend-ai:mainfrom
dhshah13:feat/1500-codex-wave-dispatch

Conversation

@dhshah13

@dhshah13 dhshah13 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

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 with wait_agent and closed with close_agent; a timed-out wait moves to the next open child, so a slow child cannot hold a finished child's slot; date +%s after 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 (main had 36 characters of room). "Skip every time check" becomes "skip the checkpoints", so the child clock runs with TIMEOUT_SECONDS unset.
  • 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.yaml unchanged). 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 the agents/retro.md rule 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.md and docs/retro.md name agents[].subagents as the setting behind child models.
  • Protected paths (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, not refactor: 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 the wait of feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500 item 1: on the pinned Codex CLI the V1 wait tool is wait_agent, and wait names another tool.
  • Retro's unnamed children, and a persona the roster does not list, are spawned without agent_type; security-triage, when not listed, takes explore, which is instruction-only.
  • At the time-budget checkpoint the review closes its open children before it writes the failure result; on Codex that holds even when one step 4 child is still running.
  • Every Codex wait_agent passes timeout_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.
  • A Codex child still running after 900 s has failed. pi ends every sub-agent there (piAgentTimeoutSeconds in fullsend internal/runtime/pi_bootstrap.go), above the 13.1-minute correctness pass in docs/review.md. As on pi, a correctness or security pass cut there records the high sub-agent-failure finding. The parent measures the limit: date +%s after 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.
  • One target per 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.
  • Every denied spawn follows the runtime note: the parent executes the sub-agent definition. For the challenger, that definition returns 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.
  • Retro gets no overall deadline check here: feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500 preserves time-budget checks and retro has none. Enforce subagent dispatch time budgeting and guaranteed synthesis margin in retro agent #1638 tracks that gap on every runtime, and its fix needs no harness change (FULLSEND_ITERATION_DEADLINE, fullsend ADR 0105). Until then, two stalled waves fill the 30-minute timeout_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-test stops at its first failure. On macOS that is a sed failure in scripts/post-code-test.sh, step 19 of 53, which plain main fails the same way. The later steps were run directly on 331f182: scripts/public-text-scan-test.sh fails the same 18 cases as plain main, and the other 33 pass. Nine affected steps passed on f221270. After the final challenger-definition guard, the challenger-contract, remediation and environment-reachability steps were rerun and passed. CI's script-test runs all of them on Linux.
  • Agents CI never runs the Codex wording; the functional tests run review and retro on Claude Code.
  • The existing challenger-contract test passes with the denied-spawn guard removed in a disposable copy, so it does not validate that guard. No live denied-challenger case was run on this head.
  • Live runs on Codex 0.159.3 used an earlier form of this diff (the unpushed local commit a395dbb, before shutdown, the two-minute waits, the 900 s limit, the challenger's 240 s cut, the next-child rotation and the date +%s clock) with feat(codex)!: run sub-agents as native Codex children fullsend#8836 at 2762f3803 (2026-10-26) and 3c34754f8 (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 no subagents configured 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 without subagents. 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.
  • Not run live: the next-child rotation and the date +%s clock, a child that hangs past 900 s or the time budget, a challenger cut at 240 s, a wait_agent that times out, an errored, shutdown or not_found child, 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.
  • Known limit, unchanged by this PR: Codex 0.159.3 keeps a tool output in history up to the model's 10,000-token policy and cuts the middle beyond that, so a sub-agent result over about 48 KB would reach step 5 damaged. No run reached it.

Checklist

  • Conventional Commits title; every commit signed off
  • make lint, ./hack/lint-agent-docs, pre-commit run --all-files
  • Baseline, harness and workflow files unchanged

@dhshah13
dhshah13 requested a review from a team October 30, 2026 11:58
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 12:00 PM UTC · Completed 12:11 PM UTC

Commit: e6e7fb1 · View workflow run →

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

@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Dispatch review and retro sub-agents on Codex when a roster is available

✨ Enhancement 📝 Documentation 🕐 40+ Minutes

Grey Divider

AI Description

• Add roster-gated native Codex dispatch for review and retro while preserving Claude Code and pi
 behavior.
• Bound Codex child concurrency and waits, close children, and route terminal failures to existing
 fallbacks.
• Document the runtime dependency without claiming Codex support before live verification.
Diagram

graph TD
  R{"Runtime roster?"} -->|Codex| V["Review skill"] --> S["Codex children"] --> W["Wait and close"] --> F["Results or gaps"]
  R -->|Codex| T["Retro agent"] --> S
  R -->|Other runtime| L["Existing dispatch"]
  W -->|Review findings| C["Challenger pass"] --> F
Loading
High-Level Assessment

The following are alternative approaches to this PR:

1. Runtime-managed dispatch queue
  • ➕ Could centralize concurrency and child lifecycle rules across agents.
  • ➖ Requires a broader runtime contract and implementation beyond this agent-layer change.

Recommendation: Keep roster-gated dispatch in the agent instructions for this PR: it uses the available runtime tools without changing Claude Code or pi. Consider a runtime-managed queue if more agents need the same lifecycle policy.

Files changed (6) +71 / -58

Enhancement (3) +65 / -58
retro.mdDefine conditional Codex retro-child dispatch +1/-1

Define conditional Codex retro-child dispatch

• Specifies unnamed Codex children, bounded waits, closure, and terminal states for read-heavy tasks. Failed or long-running children become recorded gaps rather than retries.

agents/retro.md

review.mdMake review dispatch rules runtime-neutral +8/-2

Make review dispatch rules runtime-neutral

• Allows prompt-file-backed sub-agents to use either the Agent tool or roster-directed Codex spawning. Clarifies which child states invoke the review skill’s failure fallback.

agents/review.md

SKILL.mdDispatch Codex review children in bounded waves +56/-55

Dispatch Codex review children in bounded waves

• Adds roster-gated spawning, a four-open-child limit, bounded waits, closure, and fallback handling across review dispatch. Keeps the challenger after dimension children and adds Codex-specific time-budget handling while retaining Claude Code and pi dispatch paths.

skills/pr-review/SKILL.md

Documentation (3) +6 / -0
README.mdQualify Codex dispatch availability +2/-0

Qualify Codex dispatch availability

• Explains that Review and Retro use native Codex children only when the runtime provides a roster. Defers listing Codex as supported until live runs are linked.

README.md

retro.mdDocument the Codex retro verification gate +2/-0

Document the Codex retro verification gate

• Describes roster-dependent Codex dispatch without adding Codex to the supported-runtime list before a live retro run.

docs/retro.md

review.mdDocument the Codex review verification gate +2/-0

Document the Codex review verification gate

• Describes roster-dependent native child dispatch and retains the current supported-runtime list pending a linked live review run.

docs/review.md

@qodo-code-review

qodo-code-review Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

Code Review by Qodo

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

Grey Divider


Action required

1. Codex triage loses its classification ✓ Resolved
Description
The Codex triage branch instructs the orchestrator to close the child before step 3d without first
waiting for and collecting its result. Because step 3d depends on that classification, a Codex run
can lose the triage output and incorrectly fall back to treating every changed file as
security-critical.
Code

skills/pr-review/SKILL.md[R440-442]

+   - **Codex roster:** `agent_type`: `security-triage` when listed, else
+     `explore` (instruction-only; not an enforced read-only tool set).
+     Close it before step 3d.
Relevance

●●● Strong

Synchronous downstream dependency requires collecting the triage result before closure; similar
dispatch-sequencing corrections were accepted.

PR-#1181
PR-#1211

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed Codex triage instructions select an agent_type and then say only to close it before
step 3d, while the surrounding text states that its output feeds step 3d. The compliance requirement
calls for Codex children to be collected with wait and released with close, so the dispatch sequence
can discard the required classification result.

Keep agents-repository dispatch compatible with existing runtimes
skills/pr-review/SKILL.md[440-446]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

Issue description
The Codex triage child is closed before its result is explicitly collected, even though the triage output feeds the next classification step. This can discard the classification and trigger the all-files security-critical fallback.

Fix Focus Areas
- skills/pr-review/SKILL.md[440-446]

Recommended Fix
For the Codex triage path, wait on the spawned child with bounded `wait_agent` calls, collect and parse its result, then call `close_agent`. Treat errored, shutdown, not-found, completed-empty, and 900-second terminal states using the existing triage failure fallback, while retrying timed-out waits as specified by the Codex dispatch protocol.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Remediation recommended

2. Stalled children block later waves ✓ Resolved
Description
pr-review calls a child running past 900 seconds failed, but its timed-out-wait branch still says
to wait again and gives no instruction to close that running child. If a child reaches that limit
while selected tasks remain, Fullsend keeps its slot occupied until close_agent runs and does not
queue a spawn beyond the four-child limit.
Code

skills/pr-review/SKILL.md[R841-844]

+- **Codex roster:** at most four open. Start up to four; `wait_agent`
+  on one, collect, `close_agent` it, start the next; repeat until all
+  are collected and closed. A timed-out wait is no result: run the
+  Time budget checkpoint, wait again. `errored`, `shutdown`,
Relevance

●●● Strong

Timed-out running children retain slots, so repeated waits contradict the documented 900-second
failure and four-child dispatch limit.

PR-#1211

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The review skill states the 900-second failure rule but directs repeated waits after a timeout.
Fullsend’s dispatch note says children retain slots until closed; its ADR confirms the four-child
limit and that excess spawns are rejected rather than queued.

agents -> fullsend
skills/pr-review/SKILL.md[828-848]
External repo: fullsend-ai/fullsend, internal/runtime/codex_bootstrap.go [430-438]
External repo: fullsend-ai/fullsend, docs/ADRs/0126-fullsend-owned-codex-subagents.md [98-110]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
The review skill declares a child failed after 900 seconds, but its timed-out-wait path still directs another wait rather than closing the child and releasing its slot.

## Fix Focus Areas
- skills/pr-review/SKILL.md[828-848]
- agents/retro.md[59-59]

## Recommended Fix
Make the 900-second threshold an explicit transition: close the running child, apply that role’s failure fallback, and continue with remaining selected tasks when the overall time budget permits. Clarify the same close behavior for retro’s 900-second rule.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools


3. Codex retros can finish without a result ✗ Dismissed
Description
The new Codex dispatch rule in agents/retro.md permits each investigation child to run for up to
900 seconds but never checks the retro run’s remaining time before dispatching or waiting. When
several required investigations run sequentially, their waits can exhaust the 30-minute harness
timeout before the root writes agent-result.json.
Code

agents/retro.md[59]

+**Dispatch subagents for every read-heavy operation.** Your main context window is for synthesis, not data gathering. Retro has no named personas: every task is an unnamed child with a self-contained prompt. On Claude Code and pi: an Agent call without `subagent_type`. On Codex, when the runtime note lists registered roles: `spawn_agent` with the task as `message` and no `agent_type`; dispatch, wait (`wait_agent` with `timeout_ms` ≤ 120000) and close as the note directs; `errored`, `shutdown`, `not_found`, `completed` with an empty result, or a child running past 900 s is final: record the gap in `summary`, do not retry; a timed-out `wait_agent` is not final. Synthesis and `agent-result.json` stay in the root. Examples:
Relevance

●●● Strong

Clear timeout-budget reliability gap; sequential 900-second waits can exceed the documented
30-minute retro harness limit.

PR-#1181

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The added Codex instruction allows a child to remain active for 900 seconds and leaves synthesis and
result writing to the root. The retro skill calls for separate workflow, trace, comment, pattern,
and harness investigations, while the harness gives the entire run only 30 minutes.

agents/retro.md[59-59]
skills/retro-analysis/SKILL.md[48-53]
harness/retro.yaml[78-78]
agents/retro.md[81-84]

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

## Issue description
Codex retro investigations can consume the full harness timeout before the root writes its required result.

## Fix Focus Areas
- agents/retro.md[59-59]
- harness/retro.yaml[78-78]

## Recommended Fix
Have the root check the remaining run budget before starting or continuing Codex investigations. Stop dispatching and close outstanding children early enough to reserve time for synthesis, writing `agent-result.json`, and validation; record unfinished investigations as gaps.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools



Informational

4. Codex dispatch changes lack behavior tests 📜 Skill insight ▣ Testability
Description
The new Codex wave and final-state instructions change orchestration behavior without any added or
updated test covering those paths. Changes to slot refilling, child closure, timeout handling, or
fallback routing therefore reach runtime without an automated assertion of the intended behavior.
Code

skills/pr-review/SKILL.md[R841-846]

+- **Codex roster:** at most four open. Start up to four; `wait_agent`
+  on one, collect, `close_agent` it, start the next; repeat until all
+  are collected and closed. A timed-out wait is no result: run the
+  Time budget checkpoint, wait again. `errored`, `shutdown`,
+  `not_found` and `completed` with an empty result are final: close
+  it and apply the failure fallback (3c-1 item 6, 3c-2, step 5, 6d
Relevance

● Weak

Matching request for tests around runtime-dependent dispatch behavior was explicitly rejected in
precedent PR #1211.

PR-#1211

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The changed skill introduces multiple new Codex execution paths, while the supplied PR diff contains
no test-file modifications covering them.

skills/pr-review/SKILL.md[841-846]
Skill: code-implementation

Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution

Issue description
The PR changes production dispatch behavior for Codex children, including the four-child limit, wave refilling, closure, timeout handling, final states, and fallback routing, but adds no corresponding behavioral tests.

Fix Focus Areas
- skills/pr-review/SKILL.md[841-846]
- tests/[relevant Codex dispatch test file]

Recommended Fix
Add or update tests that exercise the Codex dispatch paths. Assert that all selected children are started in waves of at most four, each child is collected and closed, timed-out waits are retried, terminal states use the documented fallbacks, and the under-240-second budget closes remaining children and records the time-budget failure.

ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools

Dismiss ↗ | View ↗


Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #1501
  🌐 PR #1542
✅ Compliance rules (platform): 57 rules
✅ Skills: 4 invoked
  code-review
  code-implementation
  pr-review
  docs-review
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/fullsend (sha: 8b8c75bf) — View relationship
Review mode: Auto: ⚖️ Balanced: Downgraded extended -> standard: change is below the extended eligibility bar (hunks 13/18, lines 129/200; both must reach the floor). Router rationale: Complex Codex dispatch logic spans multiple independent review and retro paths.

Grey Divider

Tip of the day
💡 Did you know, you can route each severity your way: inline, summary, both, or drop

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

Comment thread skills/pr-review/SKILL.md Resolved
Comment thread agents/retro.md Resolved
Comment thread skills/pr-review/SKILL.md Resolved
@fullsend-ai-review fullsend-ai-review Bot added the risk/moderate PR risk: moderate label Oct 30, 2026
@fullsend-ai-review

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

Copy link
Copy Markdown

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

Details

Moderate 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 -->
Risk Assessment: moderate (2/5)

Details

Moderate 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.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Medium

Low

  • [unauthorized-change] skills/pr-review/SKILL.md:432 — Step 3c-1 item 4 (and the 3c-2 item 5 rewrite) trims existing Claude Code and pi wording and drops rationale (why Explore is kept for the read-only pre-pass, why haiku is used, why risk assessment is not serialised first). Issue feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500 authorizes adding Codex dispatch and requires Claude/pi behaviour to be preserved, not that adjacent instructions be trimmed (AGENTS.md rule 3). Behaviour is unchanged.
  • [pattern-inconsistency] skills/pr-review/SKILL.md:823 — The runtime bullet headers mix bold formatting: **Claude Code (no runtime note):**, **pi, persona listed:** and **Codex roster** (...): use three patterns; the same mix appears in 3c-1 item 4.
    Remediation: Standardize the runtime bullet headers to one convention.
  • [sub-agent-failure] N/A — The docs-currency sub-agent did not return findings: it timed out after 900 s. The three prior docs locations were re-read in the PR-head files, but no fresh docs-staleness scan of this diff was completed.

Earlier findings


4 finding(s) below the low severity threshold were not posted.

Previous run

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

Review

Findings

Medium

Low

  • [pattern-inconsistency] skills/pr-review/SKILL.md:820 — Dispatch-condition labels in step 3c-1 item 4, step 4 item 2 and the wave bullets now mix shapes (**pi, persona listed:**, **Claude Code (no runtime note):**, - **Codex roster** (...)). The base used **<Condition> (<Runtime>):**.
    Remediation: Use one label shape and keep the trailing colon inside the bold.
  • [unauthorized-change] skills/pr-review/SKILL.md:432 — To fit the skillsaw ceiling, existing Claude Code/pi text was condensed and rationale sentences dropped (haiku-for-speed, why Explore stays read-only for the security-triage pre-pass, the risk-assessment ordering note, "Sequential dispatch defeats the architecture's purpose"). Per-runtime behavior-bearing instructions remain; the reasoning is lost.
    Remediation: Where the token budget allows, restore short rationale clauses and condense the new Codex text instead.
  • [over-engineering] skills/pr-review/SKILL.md:833 — The 900 s per-child ceiling is new, is not part of the existing time budget, and is justified only in the PR description. docs/review.md records correctness taking ~13.1 min (~786 s) on a 2,475-line PR, leaving little margin on Codex.
    Remediation: Document the rationale in the skill or derive the limit from the remaining time budget.
  • [incorrect-doc] README.md:19 — "sub-agent roster" differs from the "registered sub-agent roles" wording in docs/review.md and docs/retro.md, and the "table lists codex once a live review and retro run..." sentence can be read as coupling the two agents' gates.
    Remediation: Align terminology and clarify that each agent's Runtimes cell changes after its own live run.
  • [stale-doc] docs/review.md:169 — Step 2 and the time-budget table describe Claude Code/pi dispatch only; Codex wave dispatch is not mentioned. Premature rather than wrong, since line 290 says Codex is unsupported.
    Remediation: When Codex support is declared, note wave dispatch (at most four open children).
  • [incomplete-doc] docs/review.md:220 — "What happens at the deadline" omits the Codex-specific rechecks (each timed-out wait_agent), the 900 s child ceiling, terminal child states, and closing children before the challenger. Forward-looking gap.
    Remediation: Add these details when Codex support is declared.

Labels: PR adds Codex sub-agent dispatch support to review/retro instructions

fullsend-ai-review[bot]

This comment was marked as outdated.

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 enhancement New feature or request labels Oct 30, 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.

Two findings on the Codex wave dispatch, posted inline.

Comment thread skills/pr-review/SKILL.md Resolved
Comment thread skills/pr-review/SKILL.md Resolved
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 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: 82c2987 · View workflow run →

Effort: high

@dhshah13

Copy link
Copy Markdown
Contributor Author

The two documentation findings in this review are deferred to the Codex support follow-up. When support is declared, docs/review.md will describe the four-child waves, timed-out-wait checkpoints, the 900 s child limit, terminal-state fallbacks, and closing children before the challenger. This PR keeps Codex marked unsupported; those documentation updates remain part of the support gate.

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>
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 4:18 PM UTC · Completed 4:40 PM UTC

Commit: fa8b394 · View workflow run →

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

@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 skills/pr-review/SKILL.md Resolved
Comment thread skills/pr-review/SKILL.md Resolved

@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 fa8b394. Both earlier findings are fixed:

  • A timed-out wait moves to the next open child.
  • The 900 s limit now has a date +%s clock that runs with TIMEOUT_SECONDS unset. 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_agent reports completed with a message, collect it.
  • Start correctness and security first.
  • Restore "not backgrounded" at SKILL.md:444.
  • Note the zero-headroom skillsaw ceiling.

@waynesun09
waynesun09 enabled auto-merge October 30, 2026 16:42
@waynesun09
waynesun09 added this pull request to the merge queue Oct 30, 2026
Merged via the queue into fullsend-ai:main with commit 2bde087 Oct 30, 2026
62 checks passed
jflowers pushed a commit to jflowers/fullsend-ai-agents that referenced this pull request Nov 1, 2026
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>
dhshah13 added a commit to dhshah13/fullsend that referenced this pull request Nov 3, 2026
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>
dhshah13 added a commit to dhshah13/fullsend that referenced this pull request Nov 17, 2026
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>

This branch was previously deployed

1 inactive deployment
dev — fa8b3945 Deployed Oct 30, 2026 by dhshah13 via behaviour #1484
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request 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.

Codex child-dispatch: completed-empty results must be treated as terminal, not 'still running' (blocked on #1500 / ADR 0126)

2 participants