Skip to content

Implement native event-driven waiting for V2 - #769

Merged
GraciousGazelles merged 21 commits into
mainfrom
successor/w13775-native-event-wait-20260905-final3
Sep 6, 2026
Merged

GraciousGazelles merged 21 commits into
mainfrom
successor/w13775-native-event-wait-20260905-final3

Conversation

@GraciousGazelles

Copy link
Copy Markdown
Collaborator

Summary

  • keep V2 wait invocations owned by the runtime across internal lease expiries
  • wake on target completion, mailbox activity, cancellation, or subscription loss
  • preserve timeout-only behavior unless the native capability is explicitly requested
  • report subscription loss distinctly and mark the lifecycle item as failed

Validation

  • narrow Luna review and hosted CI are required for this fresh head
  • no local build, test, or formatting commands were run

This fresh successor preserves the earlier event-wait candidates while providing a formatter-clean candidate for hosted validation.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 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-05T11:14:23.704357Z 5bbcf9a 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 support for native_event_wait and handles SubscriptionLoss as a completion reason in the multi-agent wait tool. Specifically, it adds a native_event_wait parameter to the wait agent tool parameters, allowing invocations to remain pending across internal lease expiries. It also introduces SubscriptionLoss to represent when an event subscription is lost before a terminal state is reached, ensuring robust lifecycle handling. Corresponding tests and capability merging logic have been updated to support these features. I have no feedback to provide as there are no review comments.

@GraciousGazelles
GraciousGazelles changed the base branch from fix/w13775-event-driven-root-wait-20260905 to main September 5, 2026 23:23
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 6, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 6, 2026
@GraciousGazelles
GraciousGazelles added this pull request to the merge queue Sep 6, 2026
Merged via the queue into main with commit 924cd7c Sep 6, 2026
102 checks passed
@GraciousGazelles
GraciousGazelles deleted the successor/w13775-native-event-wait-20260905-final3 branch September 6, 2026 16:19
sedna-release-publisher Bot pushed a commit that referenced this pull request Sep 15, 2026
* feat: extend V2 waits to event-driven runtime ceiling

* style: format V2 wait regression

* fix: keep V1 wait timeout contract unchanged

* style: avoid duplicate V2 wait import

* feat(core): opt into native event wait lease rearming

* style(core): format native wait capability predicate

* style: apply hosted formatter fixes

* fix: allow zero-timeout native event waits

* fix native wait zero-timeout lease polling

* chore: fix wait handler formatting and argument comments

* fix: format lease timer test calls

* fix: match hosted rustfmt lease timer layout

* test(core): cover positive native wait lease renewal

* test(core): observe native wait lease renewals

* test(core): bound native lease observation

* test(core): make lease observer sendable

* test(core): pass shared session to lease helper

* test(core): repair native wait fixture lint

* style(core): align native wait formatting

* style(core): satisfy hosted rustfmt
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