Skip to content

Reject reverse ancestor agent waits - #895

Merged
GraciousGazelles merged 4 commits into
mainfrom
codex/f2409-reverse-wait-guard-20260925
Sep 25, 2026
Merged

GraciousGazelles merged 4 commits into
mainfrom
codex/f2409-reverse-wait-guard-20260925

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • reject Multi Agent V2 wait targets that resolve to the current agent or an ancestor
  • return an actionable decision-complete handoff diagnostic instead of entering a reverse wait
  • preserve descendant/sibling waits and add focused unit/integration coverage

Validation

  • rustfmt --edition 2024 (coordination host)
  • git diff --check (coordination host)
  • hosted GitHub checks required; no local build/test run

Fixes f2409.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-09-24T23:40:22.004612Z ed973f6 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request introduces a check to prevent agents from waiting on themselves or their ancestors (reverse waiting), which could otherwise lead to deadlocks. It implements the reverse_wait_error helper function to validate wait targets against the current agent's path, returning a model-facing diagnostic error if a cyclic dependency is detected. Additionally, comprehensive unit and integration tests have been added to verify this behavior. There are no review comments, so we have no further feedback to provide.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit c2e7617 Sep 25, 2026
113 of 121 checks passed
@GraciousGazelles
GraciousGazelles deleted the codex/f2409-reverse-wait-guard-20260925 branch September 25, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant