Skip to content

Document Workflow.randomUUID reset behavior - #3241

Merged
Quinn-With-Two-Ns merged 2 commits into
mainfrom
docs/random-uuid-reset-behavior
Dec 1, 2026
Merged

Quinn-With-Two-Ns merged 2 commits into
mainfrom
docs/random-uuid-reset-behavior

Conversation

@Quinn-With-Two-Ns

@Quinn-With-Two-Ns Quinn-With-Two-Ns commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

What changed?

Add two sentences to the Workflow.randomUUID() Javadoc describing UUID generation during replay and after a workflow reset.

Why?

Replay safety does not mean a reset reproduces UUIDs from the discarded portion of the run. This documents the existing behavior discussed in #3238.

Breaking changes?

None. Documentation only.

Validation

./gradlew --offline spotlessApply and git diff --check passed.


Note

Low Risk
Documentation and changelog only; no runtime or API behavior changes.

Overview
Clarifies Workflow.randomUUID() Javadoc so developers do not assume a workflow reset reproduces every UUID from the old run.

The new text states that replay keeps the same UUID sequence for the same call order, and that after a reset, calls before the reset point still match the prior run while calls after it use the new run ID and yield different UUIDs. CHANGELOG.md records the fix under Unreleased (issue #3238).

Reviewed by Cursor Bugbot for commit c6c5b4b. Bugbot is set up for automated code reviews on this repo. Configure here.

@Quinn-With-Two-Ns
Quinn-With-Two-Ns requested a review from a team as a code owner December 1, 2026 08:53
@Quinn-With-Two-Ns
Quinn-With-Two-Ns enabled auto-merge (squash) December 1, 2026 22:42
@Quinn-With-Two-Ns
Quinn-With-Two-Ns merged commit ac17796 into main Dec 1, 2026
25 checks passed
@Quinn-With-Two-Ns
Quinn-With-Two-Ns deleted the docs/random-uuid-reset-behavior branch December 1, 2026 22:53
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.

2 participants