Repository navigation
Fail unattested query and validation rebuilds that read entry time - #382
Merged
Merged
Conversation
A query or validation rebuild without the workflow task's replay_clock let a body that catches ReplayClockUnavailable at entry build different state, and the query answered with it silently. A rebuild now records an entry read that it could only find unavailable because its task has no replay_clock key (or an invalid one), and fails the query or validation. An explicit null, which server#1338 sends when no start is provable, attests that the workflow task had no carrier either, so the rebuild proceeds. Refs durable-workflow/.github#215 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #382: an empty group carries the entry time into the next resume, so the entry mark now follows the time through preserve_boundary instead of only the first resume. An object this SDK rejects was rejected on the workflow task too, so a rebuild treats it like an explicit null. The docstring, reference and CHANGELOG match, and a corpus variant pins the empty-group case. Refs durable-workflow/.github#215 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Member
Author
|
Independent review: PASS at Round 1 (blocking): an empty group ( The fix: Evidence:
Non-blocking nit: the uneven CHANGELOG wrapping. 🤖 Generated with Claude Code |
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.



What
Follow-up to #380 for durable-workflow/.github#215. The independent review of the matching Rust change found a gap that Python shares.
The gap: a query or pre-accept validation rebuild with no
replay_clocklets a body that catchesReplayClockUnavailableat entry (try: ctx.replay_now() except ...) build different state from its workflow task. The query then answers with that state silently.The fix: a rebuild now records an entry read that it found unavailable only because its own task doesn't attest the carrier, and that read fails the query or validation.
replay_clocknull(durable-workflow/server#1338: run has no provable start)Unchanged:
query_state()andvalidate_update()(no Server) keep treating no carrier as attested-none, so they stay consistent with offlinereplay().Evidence
tests/test_business_replay_clock_query_attestation.pycovers:Worker._run_query_taskruns with the key absent, null and an object.business-clock-query-entry-attestationruns a tolerant body through two workflow-task leases and three query tasks. It fails on base, where the key-absent query completes withNone.pytest -m "not integration"(8018 passed, 3 skipped),ruff,mypyandvalidate-regression-corpus.py --base-ref origin/mainall pass.Refs durable-workflow/.github#215
🤖 Generated with Claude Code