feat: add replay-safe UUID, time, and random helpers - #674
Closed
zhongkechen wants to merge 1 commit into
Closed
Conversation
zhongkechen
temporarily deployed
to
ai-pr-review-runtime
September 1, 2026 04:23 — with
GitHub Actions
Inactive
zhongkechen
temporarily deployed
to
ai-pr-review-runtime
September 1, 2026 04:24 — with
GitHub Actions
Inactive
zhongkechen
had a problem deploying
to
ai-pr-review-runtime
September 1, 2026 04:24 — with
GitHub Actions
Failure
Contributor
Codex AI reviewNo actionable findings. Residual risk is low: completed-operation replay is covered, but tests were not executed under the required read-only review constraints. Reviewed commit |
zhongkechen
marked this pull request as draft
September 2, 2026 18:11
zhongkechen
marked this pull request as ready for review
September 3, 2026 17:18
zhongkechen
had a problem deploying
to
ai-pr-review-runtime
September 3, 2026 17:18 — with
GitHub Actions
Error
zhongkechen
marked this pull request as draft
September 3, 2026 17:18
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.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Issue Link, if available
#545
Stacked on #607, which introduces the extension operations SPI. This PR is intentionally based on
codex/extension-operation-refactorand should be retargeted tomainafter #607 merges.Description
DurableReplaySafeValueOperation, a context-free built-in extension family implemented throughExtensionContextandExtensionOperation.Instantvalues, and pseudorandomdoublevalues.uuid,now, andrandom) and overloads for caller-provided names.UUID,Now, andRandomsubtypes.Demo/Screenshots
Each value is generated once and returned from its checkpoint on replay.
Checklist
Testing
Unit Tests
Yes. Added
DurableReplaySafeValueOperationTestand updated facade API coverage.mvn -pl sdk -Dtest=DurableReplaySafeValueOperationTest,DurableOperationFacadeTest testIntegration Tests
Yes. Added
ReplaySafeValueIntegrationTest, which forces a replay and verifies that the returned UUID,Instant, andrandom value match their stored STEP results.
Examples
The extension author documentation now includes a complete usage example. A separate deployed example was not added
because the helpers are direct value-returning operations and the replay behavior is covered by the local integration
test.
Additional validation:
mvn spotless:checkmvn -pl sdk -DskipTests package