Repository navigation
Conversation
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 fullsend-ai#1500
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 fullsend-ai#1501
Merge current main while preserving the original native-dispatch work. Require complete skill reads, fresh child context, bounded wait and close handling, isolated challenge, and explicit generic retro roles. Restrict review input discovery to task variables and supplied artifacts. BREAKING CHANGE: Codex review and retro require the paired native-child runtime update and a supported V1 collaboration model with close_agent. Parent-only substitution cannot satisfy the required child workflow. Signed-off-by: Dharit Shah <dhshah@redhat.com>
Functional tests are runningAuthorization passed for this commit. See the Functional Tests workflow for results. |
Functional tests did not runFunctional tests run automatically for org/repo members and collaborators on pull requests. For other contributors, a maintainer must add the |
|
🤖 Finished Review · ✅ Success · Started 7:38 PM UTC · Completed 7:58 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $5.52 |
|
Risk Assessment: elevated (3/5) DetailsRe-review anchoring applies: Tier 1 signals are unchanged from the prior assessment (10 files, protected-path count 6, no dependency changes, non-first-time author), Tier 2 still shows heavy 90-day fix/revert churn and multi-author contention on the touched skill/agent/doc files, and Tier 3 still shows a self-declared breaking-change title, a disclosed scope overrun needing maintainer sign-off, and no rollback safety net for protected agents/skills changes; no tier gives a specific reason to move off the prior score, so the elevated score of 3 is preserved. Previous runRisk Assessment: elevated (3/5) DetailsRe-review anchoring applies: Tier 1 signals are unchanged from the prior assessment (10 files, protected-path count still 6, no dependency changes, non-first-time author), and the diff between the prior head (ad5bc90) and current head (c80352f) is only 2 commits across 4 files consisting of wording/terminology fixes (removing an unvalidated V2 spawn branch, adding a credential path to a never-read list, fixing wait->wait_agent) -- none of which reduce the underlying risk drivers. Tier 2 still shows heavy 90-day fix/revert churn and multi-author contention on the touched skill/agent files, and Tier 3 still shows a self-declared BREAKING CHANGE title, an explicit unchecked human-approval merge gate in the PR body, and no feature-flag/rollback safety net for behavior changes to protected agents/ and skills/ files. No tier provides a specific, articulable reason to move off the prior score, so the elevated score of 3 is preserved. Previous run (2)Risk Assessment: elevated (3/5) DetailsRe-review of the current head vs prior assessment (4bbc3f2): Tier 1 signals remain in the same buckets (10 files, protected-path count still >=2 at 6, no dependency changes, non-first-time author), so per re-review anchoring the prior elevated score is the baseline. Tier 2 churn analysis shows continued high-frequency edits and fix/revert history on the touched skill/agent files plus notable change-coupling gaps, and Tier 3 shows unmet acceptance criteria (explicit PENDING live-workflow validation, unchecked merge gates) and no rollback/feature-flag safety net for a self-declared breaking dispatch-behavior change, so the elevated score of 3 is preserved. Previous run (3)Risk Assessment: elevated (3/5) DetailsRe-review of head 4bbc3f2: Tier 1 signals are effectively unchanged from the prior assessment (same file-count bucket, protected-path count still >=2, no dependency changes, non-first-time author), so per re-review anchoring the prior elevated score is preserved; the additional commit only added further churn on already high-frequency skill files and did not reduce the protected-path or breaking-change risk drivers, consistent with the protected-path-edit-with-breaking-change anchor (self-declared 'feat!' altering review/retro sub-agent dispatch behavior across 6 protected-path files). Previous run (4)Risk Assessment: elevated (3/5) DetailsWeighted composite (Tier1=2, Tier2=3, Tier3=2) computes to ~2.3, but 5 protected-path files touching agents/skills dispatch logic, a self-declared BREAKING CHANGE against review/retro sub-agent behavior, and heavy historical churn on the touched skill files push the score to elevated (3), consistent with the protected-path-edit-with-breaking-change anchor. |
ReviewFindingsMedium
Low
Re-review note: The prior medium Next steps:
Previous runReviewFindingsMedium
Low
Re-review note: Three findings from the prior review round are not observed in the current diff: the Next steps:
Previous run (2)ReviewFindingsMedium
Low
Re-review note: The prior review's high-severity Next steps:
Previous run (3)ReviewFindingsHigh
Medium
Re-review note: Both high-severity findings from the prior review (the Next steps:
Previous run (4)ReviewFindingsHigh
Medium
Low
Next steps:
|
Use the Claude/Codex config-root fallback in the risk child prompt, matching the composed risk skill. Align review scheduling with the validated singleton wait, collect and close sequence. Restrict missing-checkout discovery to named review inputs while preserving installed skill/helper reads and protected-path review. Normalize runtime dispatch wording and the retro section reference. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 8:09 PM UTC · Completed 8:29 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $5.46 |
Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 9:02 PM UTC · Completed 9:22 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $6.24 |
Signed-off-by: Dharit Shah <dhshah@redhat.com>
Remove the unvalidated V2 example before retro child dispatch, name wait_agent consistently, and include the harness credential mount in the review agent's existing never-read boundary. Signed-off-by: Dharit Shah <dhshah@redhat.com>
PR Summary by QodoAdd guarded Codex child-agent dispatch for review and retro
AI Description
Diagram
High-Level Assessment
Files changed (10)
|
Code Review by Qodo
1.
|
| The target repository is usually checked out at `/sandbox/workspace/target-repo/`. | ||
| That checkout is the base branch. Check only the named workflow paths | ||
| `/sandbox/workspace/target-repo/`, `/sandbox/workspace/pr-head/`, | ||
| `/sandbox/workspace/pr-diff.txt`, `/sandbox/workspace/prior-review.txt`, and | ||
| `/sandbox/workspace/pr-head.manifest`, or exact alternate paths explicitly | ||
| supplied by the runner. If required inputs are missing, report missing | ||
| context instead of searching `/sandbox/workspace`. Never read runtime |
There was a problem hiding this comment.
2. Reviews fail when the checkout has another name 🐞 Bug ☼ Reliability
The Workspace section of agents/review.md now allows only /sandbox/workspace/target-repo/ or an alternate path the runner explicitly supplies, and it removes the old fallback of searching /sandbox/workspace, telling the agent to report missing context instead. The review harness exports no checkout-path variable, so when the host clone isn't named target-repo (for example a local --target-repo /tmp/myrepo), the base-branch context and the protected-path checks that read it are unavailable on every runtime.
Agent Prompt
## Issue description
The review agent now forbids searching `/sandbox/workspace` for the target checkout, but the runner provides no checkout-path variable. When the checkout isn't named `target-repo`, the agent reports missing context instead of reviewing the PR.
## Fix Focus Areas
- agents/review.md[244-258]
- agents/review.md[28-56]
- harness/review.yaml[65-75]
## Recommended Fix
Pick one:
1. Allow a shallow, non-recursive discovery step that skips credential files, for example `find /sandbox/workspace -maxdepth 2 -name .git -type d -not -path '*/.env.d/*'`.
2. Export the checkout path from the harness (for example `TARGET_REPO_DIR` in `env.sandbox`) and add it to the named-variable lookup in the Execution checkpoints section.
Either way, keep the rules that forbid reading `.env.d/`, `.gcp-oidc-token` and `/tmp/.gcp-credentials.json`.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
There was a problem hiding this comment.
Fixed in b71798e: review reads the checkout from $FULLSEND_TARGET_REPO_DIR, which the runner always exports.
|
🤖 Finished Review · ✅ Success · Started 9:47 PM UTC · Completed 10:04 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $5.54 |
Codex wait_agent returns errored, shutdown, not_found, and completed with a null result at once, and re-waiting never changes them. The singleton loop only exited on a nonempty completed result, so a failed child kept the root waiting until the time budget (review) or the sandbox timeout (retro). Treat those statuses as final: close the ID (not_found counts as closed), apply the role's failure fallback, and count closed and not_found IDs as removed at the open-ID checkpoints. Runtime completeness checks still fail such a run. Pass fork_context: false on the Codex security-triage spawn; the runtime dispatch guard rejects a spawn that omits it. Tighten nearby Codex-only wording so pr-review stays within its existing context-budget ceiling. Signed-off-by: Dharit Shah <dhshah@redhat.com>
The chunked wc/tail/200-line read procedure works around Codex exec output truncation, but it applied to every runtime and added about ten extra tool turns to each Claude Code and pi review with no validation there. Keep the runtime-neutral "read the skill completely" rule and apply the chunk procedure on Codex only. Signed-off-by: Dharit Shah <dhshah@redhat.com>
The runner exports FULLSEND_TARGET_REPO_DIR for every agent, but the checkout is only named target-repo on GitHub Actions; GitLab and local runs use the project directory name. Add it to the review agent's named-variable lookup and point the Workspace section at it, keeping the credential never-read list. Give retro the same boundary: read environment inputs by exact name, never dump or prefix-filter the environment, and never read the runtime credential files. Signed-off-by: Dharit Shah <dhshah@redhat.com>
close_agent removes the Codex thread, so waiting on or closing a child that was already collected and closed reports not_found. The final-status rule was unscoped, so a root that re-checked a closed ID would apply the role's failure fallback (a sub-agent-failed finding in review, a failed investigation in retro) for a child that succeeded, while the runtime counts that child complete. Limit the rule to open IDs whose result is not collected and say that not_found on a closed ID is expected. In pr-review, offset the added tokens by dropping the pipeline-mode not_found repeat and shortening the principles cross-reference, keeping the existing context-budget ceiling. Signed-off-by: Dharit Shah <dhshah@redhat.com>
Only the first sentence of the chunked skill-read procedure named Codex; the steps after it read as unscoped, so Claude Code and pi could still apply them. Move the whole procedure into a nested "On Codex" bullet in review and retro and keep the runtime-neutral "read completely" rule in the parent. The pr-review time-budget checkpoint said runtime checks still fail without scoping it; on Claude Code and pi the post-script posts the time-budget notice. Move that clause into the Codex sentence (token-neutral). Give the review checkout's GitLab and local path as /sandbox/workspace/<project directory>, which is what the runner sets. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 2:22 AM UTC · Completed 2:44 AM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $5.27 |
There was a problem hiding this comment.
Note: The following review comments could not be posted on the diff (GitHub returned 422) and are included here instead:
skills/pr-review/SKILL.md(file-level): Line 752 · [low] data-exposure
Carried over from the prior review round: review's dimension sub-agent prompts are still composed only from sub-agents/{name}.md + meta-prompt.md + the context package (security-triage uses parts 1-3 only), and neither skills/pr-review/meta-prompt.md nor the sub-agents/*.md files (other than risk-assessment.md, which only gained a CODEX_HOME fallback) were touched by this PR. None of those templates mention .env.d/, .gcp-oidc-token, or /tmp/.gcp-credentials.json. Codex dimension spawns and the security-triage spawn both set fork_context: false, so children do not inherit agents/review.md's root-level never-read rules.
Suggested fix: Add the credential never-read list and workspace-search bounds to skills/pr-review/meta-prompt.md, and to the security-triage composed prompt (which doesn't include meta-prompt.md), so every dispatched child carries them.
| `not_found`, or `completed` with an empty or null result is final: stop | ||
| waiting, close it (`not_found` counts as closed), and apply the role's | ||
| fallback (3c-1, 3c-2, step 5, 6d); runtime checks still fail. Ignore | ||
| `not_found` on closed IDs. On timeout or `running`, wait again. Except |
There was a problem hiding this comment.
[low] logic-error
The Codex V1 wait loop's time-budget interaction is still ambiguous: step 4 says "On timeout or running, wait again. Except at the Time budget checkpoint, repeat until queue and open set are empty." The "Except" clause grammatically attaches to the loop's overall termination condition ("repeat until queue and open set are empty"), not to the "wait again" retry itself, and the Time budget checkpoint (line ~111, restated at line 846) still fires only "when a sub-agent returns after step 4" — timeout/running is explicitly defined elsewhere as not completion. Since this text only governs the Codex V1 dispatch path, and Codex is not yet a supported fleet runtime (no harness runtime: default points to it; README/docs/review.md say it stays conditional pending fullsend-ai/fullsend#7809), this cannot fire in production today — hence low rather than medium. It should still be tightened before Codex is enabled as a fleet runtime.
Suggested fix: Reword the checkpoint so it fires on every wait_agent return — including timeout, running, and absent — not only on completion: recompute REMAINING and apply the 240s failure path before waiting again.
| `close_agent` with `target` = that same ID only after collecting its | ||
| completed, nonempty result or a final failure status above. Await the | ||
| close acknowledgement, remove that ID, then refill. Repeat until the | ||
| queue and open set are empty. A timeout frees no slot; wait again. |
There was a problem hiding this comment.
[low] logic-error
This PR adds the same Codex singleton wait/close loop to retro ("A timeout frees no slot; wait again... Repeat until the queue and open set are empty"), but retro has no time-budget checkpoint concept at all (no TIMEOUT_SECONDS in harness/retro.yaml, no time-budget language in agents/retro.md or skills/retro-analysis/SKILL.md, confirmed absent from both this diff and the base branch). The Output section (line ~148) unconditionally requires the open-ID set to be empty before the first agent-result.json write, with no exception. A hung or long-pole Codex investigation child has no defined escape before harness/retro.yaml's 30-minute timeout_minutes kills the sandbox, leaving no output written. This mirrors review's still-imperfect fix (see the SKILL.md finding above) but retro doesn't even have the partial escape review has. Low severity for the same reason: Codex is not yet an enabled fleet runtime for retro.
Suggested fix: Before enabling Codex for retro, add a time-budget escape analogous to review's: past a defined remaining-time threshold, stop waiting, close only already-completed IDs, and allow writing agent-result.json (summarizing which investigations didn't finish) without requiring an empty open-ID set.
There was a problem hiding this comment.
Retro has no time budget on any runtime; a hung child already runs to the 30-minute kill on Claude and pi. Adding one is outside #1500.
| **Dispatch subagents for every read-heavy operation.** Your main | ||
| context window is for synthesis, not data gathering. Investigation | ||
| tasks are unnamed and have no persona roster — do not invent | ||
| `sub-agents/*.md` files for retro. Each child prompt is self-contained: |
There was a problem hiding this comment.
[low] data-exposure
The new root-level Execution checkpoints forbid env dumps and reading .env.d/, .gcp-oidc-token, and /tmp/.gcp-credentials.json, but children are explicitly self-contained ("the child starts with no memory of this conversation") and Codex children spawn with fork_context: false. Neither the child-dispatch text nor the example investigation prompts in skills/retro-analysis/SKILL.md repeat these constraints, so a spawned child (e.g. a harness-inspector task reading harness YAML that names these same credential mount paths) is not told to avoid them. This is instruction-level defense-in-depth, not a demonstrated leak.
Suggested fix: Include the named env-var lookup and credential never-read list explicitly in every retro child spawn message, and add them to the example prompts in skills/retro-analysis/SKILL.md.
|
|
||
| NOTE: the Agent tool MUST ONLY be invoked with prompts read from | ||
| `sub-agents/{name}.md` files | ||
| NOTE: sub-agent dispatch MUST ONLY use prompts read from |
There was a problem hiding this comment.
[low] scope-authorization
The env-variable allowlist and never-read rules in agents/review.md's Execution checkpoints/Workspace sections — now mirrored into agents/retro.md:17-21 as well — sit outside issue #1500's six-item Codex-dispatch scope, which says nothing about environment-variable read restrictions or workspace-search boundaries. This is unchanged in substance across the last several review rounds. The PR body itself discloses this directly: "This is hardening beyond #1500's scope and needs maintainer sign-off." Because the author discloses the gap and explicitly requests sign-off rather than hiding it, this reads as a disclosed process item rather than concealed scope creep — hence low rather than the medium severity used in prior rounds on this same content, now that it's a known, repeatedly-flagged, and openly-acknowledged item awaiting maintainer action.
Suggested fix: Obtain the explicit maintainer sign-off the PR body requests before merging this hardening alongside the #1500-authorized Codex-dispatch work, or split it into its own separately-authorized PR. The hardening itself is a legitimate security control — the outstanding issue is process/authorization, not content.
|
Draft until ADR 0126 (fullsend-ai/fullsend#7827) is decided; this encodes its V1 |
|
Closing in favour of a smaller Codex-only dispatch PR after ADR 0126 (fullsend-ai/fullsend#7827) is decided. |
|
🤖 Finished Retro · ✅ Success · Started 1:50 PM UTC · Completed 2:03 PM UTC Commit: Runtime: claude · Model: sonnet → claude-sonnet-5 · Effort: high · Cost: $2.99 |
|
PR #1542 (fullsend-ai/agents) never merged. It layered 10 human fix commits by dhshah13 onto bot-authored PR #1501, aiming to add Codex-native child-dispatch support to agents/review.md, agents/retro.md, and skills/pr-review/SKILL.md (issue #1500). Across 5 rounds of fullsend-ai-review over ~18 hours, every High/Medium logic/consistency finding (wait_agent contradictions, fail-open security-triage gap, close-before-write deadlock) was fixed within ~30-40 minutes of being raised — a strong rework-efficiency signal. Two findings persisted unresolved through all 5 rounds because they required a maintainer decision the author could not self-resolve: the protected-path human-approval gate (agents/.md and skills/ are protected) and scope-authorization for env/workspace hardening the author disclosed as beyond issue #1500's scope. No human other than the author ever commented on the PR. It was ultimately self-closed citing an unrelated pending ADR (fullsend-ai/fullsend#7827) in another repo, not because review findings were resolved. Two structural gaps surfaced during this retro already have open tracking issues, and this PR provides fresh corroborating evidence rather than a new proposal: (1) #1322 documents that agent-definition resolution under pull_request_target is pinned to main, not the PR head — PR #1542's workflow logs ( One genuine gap: a third-party review bot (qodo-code-review) found a real bug in the new dispatch logic -- a child agent that completes with an empty (but terminal) result can never be closed, because the instructions only distinguish 'has nonempty result' from 'still running.' fullsend-ai-review missed this across all 5 of its rounds, including the round that ran after qodo had already posted it. No existing issue covers this. Filed as a proposal below, scoped as guidance for whenever issue #1500's Codex-dispatch work is resumed, plus a systemic review-dimension improvement so this class of bug (unenumerated terminal states in wait/poll loops) is caught without relying on a third-party bot. Proposals filed |
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>
Summary
Review and retro instructions for Codex native child agents (
spawn_agent/wait_agent/close_agent, collaboration V1). Claude Code and pi dispatch is unchanged. Needs the runtime side in fullsend-ai/fullsend#7809.Related Issue
Addresses #1500, for fullsend-ai/fullsend#6970. Continues and supersedes #1501, whose V2
fork_turnsand barewaitcalls are rejected by #7809's dispatch guard; closing #1501 is the maintainers' call.Changes
Codex only:
agent_type: "default"for each investigation. Spawns always passfork_context: false; models stay a runner decision.errored,shutdown,not_foundorcompletedwith no result is final: close it and apply that role's existing failure fallback instead of waiting forever.time-budgetfailure; teardown reaps the rest.All runtimes:
$FULLSEND_TARGET_REPO_DIR(it is not alwaystarget-repo, e.g. on GitLab)..env.d/,.gcp-oidc-tokenor/tmp/.gcp-credentials.json. This is hardening beyond feat(review,retro): support Codex native sub-agent dispatch alongside fullsend #6970 #1500's scope and needs maintainer sign-off.docs/review.md/docs/retro.mdsay Codex stays unsupported until the runtime lands; no harnessruntime:default changes.BREAKING CHANGE: Codex review/retro need the paired runtime from fullsend-ai/fullsend#7809 and its V1 contract; V2 delegation is refused, not replaced with root-only work.
Testing
make lintpasses (skillsaw strict, 0 errors/warnings). The pr-review context-budget ceiling moved from 16,784 to 16,926 tokens in feat(#1500): dispatch review and retro children on Codex #1501's760d846, which this PR includes; the skill now sits at 16,925.Live runs with these instructions,
gpt-5.6-lunaat medium effort:Every child completed and was closed before the result was written, with at most 4 open at once. Triage, code and fix on the same build keep the no-child path or complete normally (see fullsend-ai/fullsend#7809).
Not covered: a live child that errors or returns empty, Claude/pi runs with the new text, and GitLab.
Checklist
!for breaking changes)