Repository navigation
Apply parallel group policy eligibility to query and validation tasks - #1384
Merged
Merged
Conversation
Query tasks and update-validation tasks replay a run's history, but they skipped the replay eligibility checks. A worker without a policy the run recorded could answer a query from a misread replay, or record an update validation decision from one. Query and update-validation dispatch now apply the same policy check as workflow tasks, in claims and in task offers. A query waits for a capable worker. An update whose fresh validators cannot replay the run is refused at once with update_validator_parallel_group_policy_unsupported, and nothing is recorded. Fixes #1382 Refs durable-workflow/.github#232 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Member
Author
|
Independent review: PASS at head 12dd9f6 This closes the routing gap I asked to be fixed before advertisement on server#1381. What I verified
Non-blocking notes
|
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.



Fixes #1382. Follow-up to #1381 for durable-workflow/.github#232. It must land before any explicit policy is advertised.
What changes
parallel_group_policieseligibility as workflow tasks (group_policies_supported, from Route explicit-policy runs only to workers that register their policies #1381):claim_query_in) and query offers (peek_query_offer)claim_update_validation_in) and validation offers (peek_validation_offer)409 update_validator_parallel_group_policy_unsupported, and nothing is recorded.Tests (
tests/execution/parallel_group_replay_tasks.rs)propagaterun, a legacy query worker keeps polling and never receives the query. A capable worker claims it.update_validation,query_*andqueries_*execution tests on SQLite (57 in total)🤖 Generated with Claude Code