Skip to content

Describe query handler replay time and non-monotonic boundaries - #384

Merged
rmcdaniel merged 2 commits into
mainfrom
general/215-replay-clock-query-handler-docs
Nov 26, 2026
Merged

rmcdaniel merged 2 commits into
mainfrom
general/215-replay-clock-query-handler-docs

Conversation

@rmcdaniel

Copy link
Copy Markdown
Member

Doc-only correction for durable-workflow/.github#215. The website review (durable-workflow.github.io#619) found that docs/sdk-reference.md called query handler reads unavailable. In fact a query handler reads the time of the queried history's final supported scalar boundary (BusinessReplayClock.snapshot(), covered by test_supported_query_prefix_is_immutable_and_unknown_final_prefix_is_unavailable). Only other prefixes, including grouped boundaries, are unavailable.

This PR also:

No code changes.

🤖 Generated with Claude Code

A query handler reads the time of the queried history's final supported
scalar boundary; only other prefixes are unavailable. Inline and local
operations stay unavailable until Core defines a persisted time, and the
clock is not guaranteed monotonic.

Refs durable-workflow/.github#215

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review of #384: inline steps are unavailable because the first run produces
their value before history records a time, not because no row is recorded.
Signal and update deliveries, condition waits and search-attribute upserts
also raise. A redrive query whose history ends at its start reads the
redrive start, and values come from the carrier or the consumed boundary.

Refs durable-workflow/.github#215

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@rmcdaniel

Copy link
Copy Markdown
Member Author

Independent review: PASS at a0ed0c4509414a48046c80e908867e38e753dc86 after one blocking round.

Round 1 (blocking):

  • The inline reason was wrong: these steps are unavailable because the first run produces their value before history records a time.
  • The catch-all for signal and update deliveries, condition waits and search-attribute upserts had been dropped.

Both are fixed, plus the redrive start-event query edge case and the "carrier or consumed boundary, not a running maximum" wording. Every claim matches main and its tests. CI: 21 pass, 4 intended skips.

🤖 Generated with Claude Code

@rmcdaniel
rmcdaniel merged commit b6dc03f into main Nov 26, 2026
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant