Repository navigation
Report leased and empty poll statuses like the worker protocol - #509
Merged
Merged
Conversation
The worker protocol requires poll_status "leased" on a workflow task claim, and published PHP (2.5.14 and 2.8) reports "leased" and "empty" for workflow, activity and query polls alike. Native reported "task" and "timeout". It now reports the same two values. The wake hint task_queue_changed and every refusal status are unchanged. The cross-kind poll contract, which accepted either claim status, now requires "leased". Part of #325. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 20, 2026
Member
Author
|
Branch updated with main ( |
|
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Part of #325.
Native reported
poll_status: "task"on a claim and"timeout"on an empty poll. The worker protocol (resources/platform-protocol-specs/worker-protocol-api.openapi.yaml) requiresconst: leasedon a workflow task claim. Published PHP 2.5.14 and 2.8.0 reportleasedandemptyfor workflow, activity and query polls alike. Native now reports the same two values for all three kinds. Thetask_queue_changedwake hint and every refusal status are unchanged.A raw query-poll probe against published PHP 2.8.0 and native showed this difference directly (see #499). No published SDK branches on these two values: the Rust SDK checks only stop, unavailable and capacity statuses, and passes the field through to callers.
The cross-kind poll contract, which accepted either claim status, now requires
leased.Tests
Three assertions in
rust/tests/execution/cross_kind_poll.rsnow expectleasedandempty. Atc4e37fd28the full native suite passes on SQLite locally: 116 library tests (20 ignored) and 277 execution tests (1 ignored).🤖 Generated with Claude Code