You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WaitForCondition: round-trip initialState through SerDes before first check #671
In the Python SDK, wait_for_condition round-trips initial_state through the configured serdes before the first check runs, so the check sees the same serialized-then-deserialized shape on every poll. The Java SDK currently passes config.initialState() raw into the first check and only normalizes the check result through SerDes afterward, so the first poll's input state differs in shape from subsequent polls (which are deserialized from the checkpoint).
start() passes config.initialState() directly. executeCheckLogic normalizes the check result via serializeAndDeserializeResult(result.value()), and resumeCheckLoop deserializes currentState from the checkpoint - but the initial state itself is never round-tripped before the first check.
Proposed behavior
Round-trip config.initialState() through the configured SerDes before invoking the first check, so the check observes a consistent shape on every attempt and non-serializable initial state fails fast.
Activity