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
durable: StateAt returns a later checkpoint's state for a compacted step, with no error #275
On a Store that doesn't implement HistoryStore, StateAt loads the latest checkpoint as its baseline. A request for a step before that checkpoint passes the range check, replays no Records, and returns the checkpoint's state, which is later than the step asked for, with a nil error. A time-travel read gives the wrong answer and doesn't say so.
This has applied to instances driven by Fire since checkpoints were added. #237 makes it reachable for timer-driven instances too: their tick barriers used to step over the checkpoint interval, so they never compacted. #237's changelog discloses the behavior.
Possible fix
The checkpoint envelope already carries NextStep. StateAt could return ErrStepOutOfRange for a step below the loaded baseline's step when the Store has no HistoryStore, so a caller learns the step was compacted away. Steps could report the same lower bound.
This changes StateAt's behavior, so it needs a decision.
Activity
reka18 commentedon Nov 19, 2026
Closing for now: this came out of a review, not a failure anyone has hit. Reopen it if it turns up in practice.