Skip to content

durable: replay decodes service results with the recovering build's decoder, which the journal doesn't record #276

Closed as not planned

Description

@reka18

What happens

Replay decodes a recorded service result through the recovering Runner's WithEventDataDecoder, and the journal doesn't record which decoder the result was recorded under. So what Assign sees on replay depends on the build that recovers, not the build that recorded:

  • A build with no decoder for done records a settle. Live, Assign saw map[string]any.
  • A later build registers DecodeAs[User] for done and recovers the instance. On replay, Assign sees a User.

Within one build, live and replay agree. The docs say to register the decoder before results are recorded. But a journal written before #258 and one written after it are both format 3, so a reader can't tell whether a Record's result was decoded live, or what type it had.

Why it matters later, not now

durable is unreleased, so no journal from another build exists yet. Before the first release, durable needs either a journal format bump that marks decoded results, or an explicit statement that changing a decoder after recording changes replay.

Relates to: #258, #264

Activity

  1. reka18 commented on Nov 19, 2026

    @reka18
    ContributorAuthor

    Closed into #253, which tracks the compatibility items to decide before durable's first release. durable is unreleased, so this can't happen yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions