Skip to content

Prevent targetless native waits in leaf agents - #886

Merged
GraciousGazelles merged 1 commit into
mainfrom
p0/w14081-targetless-wait-guard
Sep 21, 2026
Merged

GraciousGazelles merged 1 commit into
mainfrom
p0/w14081-targetless-wait-guard

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • reject targetless native-event waits for non-root, non-orchestrator agents before arming an unbounded lease
  • keep mailbox-only native waits available to the root and explicitly designated orchestrator roles
  • document the target requirement in the wait tool contract and built-in wait-role guidance

Validation

  • git diff --check
  • hosted Rust validation required; no local build or test was run

The guard is intentionally scoped to the downstream native-event capability. Ordinary targeted waits and non-native waits retain their existing behavior.

@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 restriction on targetless native event waits, limiting them to root and orchestrator agents to prevent potential deadlocks or indefinite waits in leaf agents. The changes include updates to behavior documentation in TOML files, modifications to the wait_agent tool parameters and descriptions, and the implementation of a validation check in the wait.rs handler, accompanied by unit tests to verify the new access logic. There are no review comments to address.

@chatgpt-codex-connector

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-21T06:55:03.875641Z d57d1e8 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.

@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit 6d19bc9 Sep 21, 2026
128 of 133 checks passed
@GraciousGazelles
GraciousGazelles deleted the p0/w14081-targetless-wait-guard branch September 21, 2026 12:26
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