Skip to content

fix(#1853): tighten the Codex wave after maintainer review - #1856

Merged
dhshah13 merged 3 commits into
fullsend-ai:mainfrom
dhshah13:fix/1500-codex-wave-followups
Nov 1, 2026
Merged

dhshah13 merged 3 commits into
fullsend-ai:mainfrom
dhshah13:fix/1500-codex-wave-followups

Conversation

@dhshah13

@dhshah13 dhshah13 commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Applies the eight non-blocking follow-ups from the approval of #1849 to the Codex wave dispatch. Claude Code and pi behave as before. The Codex text applies only when the runtime note lists a roster, which fullsend v0.53.0 (fullsend-ai/fullsend#8836) ships on its experimental Codex runtime.

Related Issue

Fixes #1853. Part of #1500. Follows #1849.

Changes

  • skills/pr-review/SKILL.md, Codex wave bullet: correctness and security start first; the time budget check runs before each wait, not only after a timed-out wait; the final-state rule comes ahead of "any other timed-out wait". Under 240 s the parent closes every open child, collects what those closes return, and writes the time-budget failure only if a selected child is unfinished, unstarted ones included: a check before a wait does not prove a child is running, and the unconditional failure could post "This PR was NOT reviewed" with every result in hand. A final-state close also collects a completed message before any fallback. 6d's recheck moves before each wait and keeps the same exception.
  • skills/pr-review/SKILL.md step 3c-1: "not backgrounded" is restored.
  • agents/review.md: now the only statement of review's Codex final states. The 900 s rule comes first, and a message reported by close_agent is the sub-agent's result, not a failure. The skill points here for that list, so it no longer exists twice, and states the close_agent rule itself in step 4 and 6d.
  • agents/retro.md: states the four-open cap, and a message reported by close_agent is the task's result, not a gap.
  • scripts/pr-review-challenger-contract-test.sh: pins the challenger's denied-spawn guard in sub-agents/challenger.md and 6d's close_agent exception.

Readings a maintainer may overrule

  • The clock step stays in the skill's dispatch shape, because it is a procedure step taken at spawn. Only the final-state rule moves.

Skillsaw ceiling

skills/pr-review/SKILL.md is now 68,242 characters, 2 more than on main. The baselined ceiling of 17,060 estimated tokens is 68,243 characters, so 1 remains, and any larger addition needs an equal cut: CONTRIBUTING.md forbids regenerating the baseline for it. This PR leaves the baseline untouched.

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.
  • bash scripts/pr-review-challenger-contract-test.sh: passed. With the guard removed from challenger.md, its three new assertions fail; with 6d's exception removed, its assertion fails.
  • Every make script-test step that reads a changed file was run directly and passed. On macOS make script-test itself stops at the sed failure in scripts/post-code-test.sh, as on plain main. CI runs every step on Linux.
  • Not run live: none of this wording has run on Codex.

Checklist

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

🤖 Generated with Claude Code

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

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

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 5:52 PM UTC · Ended 5:53 PM UTC

Commit: 22e1c68 · View workflow run →

Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment /fs-review to retry.

@dhshah13
dhshah13 marked this pull request as ready for review October 30, 2026 17:52
@dhshah13
dhshah13 requested a review from a team October 30, 2026 17:52
@qodo-code-review

Copy link
Copy Markdown

PR Summary by Qodo

Tighten Codex review dispatch and sub-agent result handling

🐞 Bug fix 🧪 Tests 📝 Documentation 🕐 20-40 Minutes

Grey Divider

AI Description

• Prioritize correctness and security reviews, and check Codex time budgets before each wait.
• Treat messages returned by close_agent as results and keep review final-state rules in one
 place.
• Restore synchronous triage guidance and test the challenger's denied-spawn safeguard.
Diagram

graph TD
  A["Selected reviewers"] --> B["Codex roster"] --> C{"Budget under 240s?"}
  C -->|No| D["Wait and close"] --> E{"Final state?"}
  E -->|Yes| F["Failure fallback"]
  E -->|No| B
  C -->|Yes, unfinished| G["Time-budget failure"]
Loading
High-Level Assessment

Keep the targeted guidance changes: they preserve the existing dispatch model while making the pre-wait checkpoint and result handling explicit. Centralizing review final states in agents/review.md avoids maintaining a second list in the skill; a broader dispatch redesign is unnecessary for these follow-ups.

Files changed (4) +24 / -17

Bug fix (3) +18 / -17
retro.mdClarify Codex retro dispatch limits and close results +1/-1

Clarify Codex retro dispatch limits and close results

• States the four-open-child cap for retro tasks. A completed message reported by 'close_agent' is treated as the task result rather than a gap.

agents/retro.md

review.mdConsolidate review sub-agent final-state guidance +4/-3

Consolidate review sub-agent final-state guidance

• Places the 900-second timeout alongside other final states and distinguishes ordinary timed-out waits. Clarifies that a completed message from 'close_agent' is a review result, not a failure.

agents/review.md

SKILL.mdTighten Codex wave ordering and pre-wait budget checks +13/-13

Tighten Codex wave ordering and pre-wait budget checks

• Starts correctness and security first, checks the time budget before waits, and defers final-state definitions to agents/review.md. Restores the synchronous triage instruction and moves the challenger budget recheck before each wait.

skills/pr-review/SKILL.md

Tests (1) +6 / -0
pr-review-challenger-contract-test.shPin the challenger's denied-spawn safeguard +6/-0

Pin the challenger's denied-spawn safeguard

• Adds assertions that a denied spawn cannot trigger parent-side adjudication and must return the fixed non-JSON result for the existing failure fallback.

scripts/pr-review-challenger-contract-test.sh

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 5:52 PM UTC · Completed 5:53 PM UTC

Commit: 22e1c68 · View workflow run →

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

Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment /fs-review to retry.

@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


Informational

1. Protected paths require human approval 📜 Skill insight § Compliance
Description
The active protected-path configuration covers agents/, scripts/, and skills/, including every
file changed by this PR. This change therefore requires human approval and must not receive an
automated approval.
Code

skills/pr-review/SKILL.md[R840-847]

+- **Codex roster:** at most four open. Start up to four, `correctness`
+  and `security` first. Before each wait, run the Time budget
+  checkpoint: under 240 s, close all; if any selected had not finished,
+  write the `time-budget` failure. `wait_agent` on one, collect,
+  `close_agent` it, start the next; repeat until all are closed. On a
+  final state (`agents/review.md`), close it and apply the failure
+  fallback (3c-1 item 6, 3c-2, step 5, 6d item 4). Any other timed-out
+  wait is no result: call it again on the next open child.
Relevance

● Weak

Exact protected-skills human-approval finding was rejected previously for this same path and
governance rationale.

PR-#753

ⓘ Recommendations generated based on similar findings in past PRs

Evidence
The PR modifies files under the configured protected prefixes, including the Codex dispatch
instructions in skills/pr-review/SKILL.md; the repository configuration explicitly marks
agents/, scripts/, and skills/ as protected.

skills/pr-review/SKILL.md[840-847]
harness/review.yaml[91-98]
Skill: pr-review

Dismiss ↗ | View ↗


Grey Divider

Context sources
✅ Linked PRs:
  🌐 PR #1849
✅ Compliance rules (platform): 56 rules
✅ Skills: 4 invoked
  code-review
  code-implementation
  pr-review
  docs-review
✅ Cross-repo context — repo relationships
  Explored: repo: fullsend-ai/fullsend (sha: 25811c9a) — View relationship
Review mode: Auto: ⚖️ Balanced: Dispatch, timeout, and failure semantics carry meaningful behavioral risk.

Grey Divider

Tip of the day
💡 Did you know, you can show, collapse, or hide each part of a finding: code, evidence, and all

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Review · ⚠️ Cancelled · Started 5:56 PM UTC · Ended 5:59 PM UTC

Commit: 22e1c68 · View workflow run →

Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment /fs-review to retry.

@dhshah13

Copy link
Copy Markdown
Contributor Author

/fs-review

@fullsend-ai-review

Copy link
Copy Markdown

🤖 Finished Review · ⚠️ Cancelled · Started 5:56 PM UTC · Completed 5:58 PM UTC

Commit: 22e1c68 · View workflow run →

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

Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment /fs-review to retry.

@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 6:00 PM UTC · Completed 6:09 PM UTC

Commit: 22e1c68 · View workflow run →

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

@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

Small 46-line PR touching protected review files with high recent git churn, balanced by exact alignment with linked issue #1853 and complete acceptance criteria coverage.

Previous run

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

Details

Small 46-line PR touching protected review files with high recent git churn, balanced by exact alignment with linked issue #1853 and complete acceptance criteria coverage.

Previous run (2)

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

Details

Small 41-line PR touching protected review files with high recent git churn, balanced by exact alignment with linked issue #1853 and complete acceptance criteria coverage.

@fullsend-ai-review

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

Copy link
Copy Markdown

Review

Findings

Medium

  • [protected-path] agents/review.md — This PR modifies protected governance/infrastructure paths: agents/retro.md, agents/review.md, scripts/pr-review-challenger-contract-test.sh, and skills/pr-review/SKILL.md. The PR links issue fix(review,retro): follow-ups from the Codex wave dispatch review #1853 and explains the rationale, so context is sufficient, but human approval is always required for protected-path changes regardless of context.
Previous run

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

Review

Findings

Medium

  • [protected-path] agents/retro.md — This PR modifies protected governance/infrastructure files: agents/retro.md, agents/review.md, scripts/pr-review-challenger-contract-test.sh, skills/pr-review/SKILL.md. It links issue fix(review,retro): follow-ups from the Codex wave dispatch review #1853 and the description explains the rationale, but human approval is always required for protected-path changes regardless of context. The dimension reviews (correctness, security, intent, style, docs) found no further issues.
    Remediation: Human maintainer review and approval of the protected-path changes.
Previous run (2)

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

Review

Findings

Medium

  • [protected-path] agents/review.md — This PR modifies protected governance/infrastructure paths: agents/retro.md, agents/review.md, scripts/pr-review-challenger-contract-test.sh, and skills/pr-review/SKILL.md. It links fix(review,retro): follow-ups from the Codex wave dispatch review #1853 and the description explains the rationale (eight follow-ups to the Codex wave dispatch), but human approval is always required for protected-path changes, regardless of context.

@fullsend-ai-review fullsend-ai-review Bot added the requires-manual-review Review requires human judgment label Oct 30, 2026
@dhshah13
dhshah13 requested a review from waynesun09 October 30, 2026 18:25
@dhshah13
dhshah13 enabled auto-merge October 30, 2026 20:05

@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 review findings on the Codex close_agent handling in skills/pr-review/SKILL.md. Both are inline.

Comment thread skills/pr-review/SKILL.md Resolved
Comment thread skills/pr-review/SKILL.md Resolved
The skill told the parent to apply the failure fallback after a close
even when `close_agent` returned the child's result, which only
agents/review.md and retro said to keep. Step 4's final-state close and
6d's 240 s recheck now collect a `completed` message, and the under
240 s failure turns on what the close shows.

Part of fullsend-ai#1500.

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 10:55 PM UTC · Completed 11:02 PM UTC

Commit: 6b3a539 · View workflow run →

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

@dhshah13
dhshah13 requested a review from waynesun09 October 30, 2026 23:07
@fullsend-ai-review

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

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 8:45 PM UTC · Completed 8:51 PM UTC

Commit: 98bad6f · View workflow run →

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

@dhshah13
dhshah13 added this pull request to the merge queue Nov 1, 2026

This branch was previously deployed

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

Labels

ok-to-test 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.

fix(review,retro): follow-ups from the Codex wave dispatch review

2 participants