Skip to content

feat(#1500): dispatch review and retro children on Codex - #1501

Closed
fullsend-ai-coder[bot] wants to merge 2 commits into
mainfrom
agent/1500-codex-native-dispatch
Closed

fullsend-ai-coder[bot] wants to merge 2 commits into
mainfrom
agent/1500-codex-native-dispatch

Conversation

@fullsend-ai-coder

Copy link
Copy Markdown
Contributor

Summary

Update review and retro dispatch so Codex native children can run
alongside the existing Claude Code / pi Agent-tool path. This is the
agents-repo companion to fullsend-ai/fullsend#6970.

Task selection stays need-based and independent of the dispatch API. A
listed persona is not a reason to launch a task, and a slot cap is not
a reason to drop one. Claude/pi still send the selected set in one
Agent-tool message. Codex maps registered personas to spawn_agent,
passes the assembled context package with fork_turns: "none", and
uses wait / wait_agent plus close_agent so at most four children
are open. A six-dimension review plus risk assessment therefore
schedules all seven tasks, then can launch the isolated challenger
after those slots are closed.

Retro still has no named persona roster. Unnamed investigation tasks
use the runtime's generic/default child, return results for root
synthesis, and do not inherit unrelated root context. Codex model
selection stays in the runtime; skills never pass Claude aliases.

Documentation

README, docs/review.md, and docs/retro.md add a conditional Codex
section that names the #6970 dependency and the live-verification
gate. The runtime table and harness runtime: defaults are unchanged.
Do not treat fleet review/retro on Codex as supported until both PRs
and a live run are available.

Testing

  • uv tool run skillsaw@0.18.0 --strict passed.
  • ./hack/lint-agent-docs passed.
  • Secret scan passed on the changed files.
  • pre-commit run could not fetch hook repos (HTTP 403); equivalent
    local checks (whitespace/EOF, gitleaks, lint-agent-docs, skillsaw)
    were run instead.
  • Live Codex review/retro was not executed: fullsend #6970 has not
    landed, and this sandbox cannot drive a fleet-shaped Codex run.

Context

Keep this PR linked to fullsend #6970. Do not merge as part of
implementation; the support-table flip is a follow-up after live
verification.


Closes #1500

Post-script verification

  • Branch is not main/master (agent/1500-codex-native-dispatch)
  • Secret scan passed (gitleaks — 5d9231bde12f2adea38e0623992008b5b7c2e61d..HEAD)
  • PR body secret scan passed (gitleaks — no-git)

Teach review and retro to use Codex native spawn_agent children
alongside the existing Claude/pi Agent-tool path. Selection stays
need-based; Codex runs at most four open children, then wait/close
before the rest and the isolated challenger. Retro keeps unnamed
generic children. Docs stay conditional on fullsend #6970 and live
verification.

Note: pre-commit could not fetch hook repos (HTTP 403). Equivalent
checks were run directly (whitespace/EOF, gitleaks, lint-agent-docs,
skillsaw --strict). Live Codex review/retro was not executed because
fullsend #6970 has not landed.

Closes #1500
@fullsend-ai-review

fullsend-ai-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:11 PM UTC · Completed 3:30 PM UTC

Commit: 917edbc · View workflow run →

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

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] N/A — This PR modifies files under protected paths configured in harness/review.yaml's REVIEW_PROTECTED_PATHS: agents/retro.md, agents/review.md (prefix agents/), and skills/pr-review/SKILL.md, skills/retro-analysis/SKILL.md (prefix skills/). The PR links to issue feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500 and its description explains the rationale for the change (adding conditional Codex native sub-agent dispatch support alongside the existing Claude Code / pi dispatch path), so sufficient context exists. Human approval is still always required for protected-path changes regardless of context.
Previous run

Review

Findings

Medium

  • [protected-path] N/A — This PR modifies files under protected paths configured in harness/review.yaml's REVIEW_PROTECTED_PATHS: agents/retro.md, agents/review.md (prefix agents/), and skills/pr-review/SKILL.md, skills/retro-analysis/SKILL.md (prefix skills/). The PR links to issue feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500 and its description explains the rationale for the change (adding conditional Codex native sub-agent dispatch support alongside existing Claude/pi dispatch), so sufficient context exists. Human approval is still always required for protected-path changes regardless of context.

Low

  • [logic-error] skills/pr-review/SKILL.md:458 — Step 3c-1 item 4 tells the orchestrator to spawn security-triage "using the step 4 item 2 dispatch shape" but then only locally restates the Claude Code and unlisted-pi overrides, plus "Codex Explore is instruction-only." Unlike those overrides, it does not restate the Codex spawn_agent / wait / close_agent sequence locally, even though this pre-pass is the only child that must finish and free its slot before step 4's four-slot batch. The lifecycle is present by cross-reference (the listed-Codex bullet at lines 811-814 already includes wait/close_agent, and item 4 requires the pre-pass to run synchronously), so a slot leak is not a demonstrated defect — but the local paragraph is incomplete relative to the Claude/pi overrides it chose to spell out inline.
    Remediation: In step 3c-1 item 4, restate the Codex lifecycle locally: spawn_agent with agent_type=security-triage (or the generic/default child if unlisted), fork_turns: "none", then wait and close_agent before proceeding to step 3d.

  • [fail-open] skills/pr-review/SKILL.md:458 — The pre-PR version of step 3c-1 treated read-only as a hard requirement for the security-triage pre-pass (an unlisted pi persona fell back to the built-in Explore type specifically "because this pre-pass must stay read-only"). The rewrite keeps that Explore fallback for Claude Code and unlisted pi, but for Codex it inherits step 4 item 2's unlisted branch (line 820), which uses the runtime note's generic/default child and states only that "Explore is instruction-only, not a per-child read-only sandbox." This is a disclosed platform limitation rather than a silent regression — Codex is not a supported fleet runtime yet (gated on fullsend #6970) — but it leaves this pre-pass with no fail-closed alternative when the persona is unlisted on Codex.
    Remediation: If security-triage is not a listed Codex persona, either skip the pre-pass and use the existing triage-failure fallback (treat all files as security-critical) instead of falling through to a non-read-only generic child, or state explicitly that instruction-only read-only is the accepted Codex policy for this step.

  • [doc-style] skills/pr-review/SKILL.md:458 — Step 3c-1 item 4's runtime-conditional dispatch instructions are written as an unbulleted inline prose paragraph, whereas the equivalent runtime-conditional dispatch shapes in step 4 item 2 (lines 808-821) and the scheduling paragraph (lines 826-831) use bold-lead-in bullet lists. See also: [logic-error] and [fail-open] findings at this location.
    Remediation: Format the step 3c-1 item 4 runtime conditions as a bulleted list with bold lead-ins, matching step 4 item 2's established style.

  • [naming-convention] agents/retro.md:70 — New prose uses hyphenated "sub-agent" in "the runner's Codex sub-agent default", while this file and skills/retro-analysis/SKILL.md otherwise use unhyphenated "subagents" (e.g. line 59 "Dispatch subagents", line 95 "from subagents").
    Remediation: Change "Codex sub-agent default" to "Codex subagent default" to match this file's established spelling.


Next steps:

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

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-coder

fullsend-ai-coder Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Finished Fix · ✅ Success · Started 3:32 PM UTC · Completed 3:43 PM UTC

Commit: 917edbc · View workflow run →

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

Restate the Codex spawn_agent/wait/close_agent lifecycle locally in
the security-triage pre-pass (step 3c-1 item 4) instead of relying on
cross-reference, format the runtime conditions as bold-lead-in
bullets to match step 4 item 2's style, and state explicitly that
instruction-only Explore is the accepted Codex policy for this
pre-pass until fleet review/retro on Codex is supported. Also fix
"Codex sub-agent" to "Codex subagent" in agents/retro.md to match the
file's established spelling. Regenerate .skillsaw-baseline.json's
ceiling for skills/pr-review/SKILL.md's context-budget violation to
reflect the added content (skillsaw baseline; no other content
changed).

Addresses #1501
@fullsend-ai-coder

Copy link
Copy Markdown
Contributor Author

🔧 Fix agent — iteration 1 (bot-triggered)

Addressed all four actionable review findings on PR #1501: restated the Codex spawn_agent/wait/close_agent lifecycle locally in skills/pr-review/SKILL.md step 3c-1 item 4, reformatted that step as bold-lead-in bullets matching step 4 item 2's style, stated explicitly that instruction-only Explore is the accepted Codex policy for this pre-pass, and fixed a hyphenation inconsistency in agents/retro.md. Recorded the mandatory protected-path merge-gate finding as a disagreement since it prescribes no content edit. Updated .skillsaw-baseline.json via the repo's make lint-baseline target so skillsaw --strict continues to pass after the legitimate content growth. Project CI showed one failing job (Functional Tests / functional-tests-complete) that is a pre-existing concurrency/fail-closed race between a synchronize and a labeled event on the same head SHA, unrelated to this diff; all other inspected jobs passed.

Fixed (4):

  1. [logic-error] SKILL.md:458 Codex slot lifecycle not restated locally: Rewrote step 3c-1 item 4 as a bulleted list (Claude Code, pi listed/unlisted, Codex listed/unlisted) that spells out spawn_agent with agent_type=security-triage (or the generic/default child if unlisted), fork_turns: "none", then wait (wait_agent on the pinned CLI) and close_agent before proceeding to step 3d, for both the listed and unlisted Codex cases.
  2. [fail-open] SKILL.md:458 unlisted Codex persona has no fail-closed alternative: Added an explicit statement in the new Codex-unlisted bullet that instruction-only Explore (not a per-child read-only sandbox) is the accepted Codex policy for this pre-pass until fleet review/retro on Codex is supported, matching this PR's broader disclosed-limitation stance for Codex support rather than silently falling through.
  3. [doc-style] SKILL.md:458 prose paragraph should be a bulleted list: Reformatted step 3c-1 item 4 as a bold-lead-in bullet list (Claude Code / Pi listed / Pi not listed / Codex listed / Codex not listed), matching step 4 item 2's established style.
  4. [naming-convention] retro.md:70 hyphenated "sub-agent" vs "subagent": Changed "Codex sub-agent default" to "Codex subagent default" to match the file's established spelling.

Disagreed (1):

  1. [protected-path] PR touches protected paths under harness/review.yaml: This is the mandatory protected-path merge-gate finding: its category is protected-path, so per policy it never prescribes a content edit, it only requires a human reviewer to approve the merge. No code change was made for this finding; the other findings below (logic-error, fail-open, doc-style, naming-convention) do name specific content edits in these same protected-path files and are independently authorized by their own remediations, so those were implemented.

Tests: passed

CI inspections (8):

  1. functional-tests-complete (Functional Tests) (transient-infra, failure): The rollup job's own fail-closed design mirrors the previous functional-tests-complete verdict for the same head SHA when a non-test-triggering label event runs the workflow. An earlier run for this same commit (triggered by push) was itself cancelled mid-flight by a concurrency race with the labeling event, so its gate job reported cancelled and the rollup mirrored that as failure forward. Reproduced independently of this PR's file changes (docs/skills only). Recommend rerunning the Functional Tests workflow for this PR; no code change is warranted since this is a timing race between two GitHub Actions trigger events, not a defect introduced by this diff.
  2. gate / behaviour (Behaviour Tests, labeled-event run) (unrelated, skipped): Skipped as part of the same labeled-event run that does not execute tests; the earlier run for this head SHA on the same workflow completed successfully.
  3. commit-lint (CI) (passing, success)
  4. test (CI) (passing, success)
  5. skillsaw (CI) (passing, success)
  6. vouch-gate (Vouch Check) (passing, success)
  7. script-test (Script tests) (passing, success)
  8. DCO (passing, success)
Decision points
  • For the fail-open finding, stated explicitly that instruction-only Explore is the accepted Codex policy rather than adding a skip-and-fallback branch (alternatives: Skip the pre-pass on unlisted Codex personas and reuse the existing triage-failure fallback (treat all files as security-critical), State explicitly that instruction-only read-only is the accepted Codex policy for this step; rationale: The simpler, explicit-statement option matches the PR's existing disclosed-limitation stance for Codex (fleet review/retro on Codex is not yet supported, gated on fullsend#6970) without adding new conditional control flow to an already-conditional dispatch step.)
  • Regenerated .skillsaw-baseline.json's context-budget ceiling for skills/pr-review/SKILL.md (alternatives: Trim the added review-fix content to stay under the existing 16,784-token baseline ceiling, Run make lint-baseline (uvx skillsaw baseline) to record the new, still-necessary token count; rationale: The review findings require restating the Codex lifecycle and reformatting as bullets, which legitimately grows the file by ~142 estimated tokens past the recorded ceiling. skillsaw --strict failed with only this violation newly unsuppressed; make lint-baseline is the repo's own blessed mechanism for this exact situation and only updated this file's recorded value/message (plus incidental reordering and a timestamp bump) — no other baseline entries changed in substance.)

Next steps:

  • /fs-review — request a re-review of the changes
  • /fs-fix <your instruction> — run another fix pass with specific guidance
  • Push commits directly — review re-runs automatically on push
    Updated by fullsend fix agent

@fullsend-ai-review

fullsend-ai-review Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 3:45 PM UTC · Completed 3:58 PM UTC

Commit: 760d846 · View workflow run →

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

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

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Tier 1 is dominated by a high protected-path count (4) but otherwise low-risk signals (bot author, no CI/dependency/security changes); Tier 2 shows moderate-to-high historical churn, multi-author contention, and fix/revert rates on these frequently-touched skill/docs files but low code age and no revert/sentiment flags; Tier 3 reflects a well-specified issue with matching scope and no risk labels or unresolved discussion; the weighted composite (50/30/20) of ~1.75/3/2 rounds to a moderate score of 2, since the change is a bot-authored, additive documentation/skill update with no code or security surface despite living in a historically active area of the repo.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had any activity in the last month. It will be closed in 2 weeks if no further activity occurs. Remove the stale label to reset the inactivity timer.

@github-actions github-actions Bot added the stale label Oct 26, 2026
dhshah13 added a commit to dhshah13/agents that referenced this pull request Oct 30, 2026
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>
@github-actions github-actions Bot removed the stale label Nov 7, 2026
@dhshah13

Copy link
Copy Markdown
Contributor

Superseded by #1849 and #1856, which shipped the Codex dispatch for review and retro, and by #1971 and #2013 for collaboration V2.

@fullsend-ai-retro

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

Copy link
Copy Markdown

🤖 Finished Retro · ❌ Failure (fullsend config could not be loaded, agent did not run: loading fullsend config: config.yaml: create_issues is no longer supported: move create_issues.allow_targets to tracker.<provider>.allowed_ta…) · Started 9:50 PM UTC · Completed 9:51 PM UTC

Commit: 760d846 · View workflow run →

This branch was previously deployed

1 inactive deployment
dev — 760d846d Deployed Sep 25, 2026 by fullsend-ai-coder[bot] via behaviour #84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Triggers review agent dispatch 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.

feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970

2 participants