Skip to content

ADR 005: Define postcard schema evolution strategy #24

Closed

Description

@thiras

Category: Technical Feasibility

ADR 005 notes: "Postcard has no schema evolution story — adding fields requires a new ALPN version (cdn/client/v2)."

This is a real concern even during PoC development. Message formats will change as the protocol evolves. Questions:

  1. Will pre-v1 releases accept breaking wire format changes without ALPN version bumps?
  2. How will version negotiation work when v2 is needed? Does iroh support ALPN fallback?
  3. Should optional fields use Option<T> from the start to allow backward-compatible additions?

Recommendation

  • Document that pre-1.0 releases may break wire compatibility without ALPN version bumps
  • Consider using Option<T> for fields likely to be added (e.g., StreamResponse.metadata: Option<Metadata>)
  • Plan the ALPN version negotiation mechanism before the first breaking change is needed

ADRs affected

  • ADR 005 (Wire Protocol)

Activity

  1. thiras commented on Mar 31, 2026

    @thiras
    ContributorAuthor

    Blocked by open PRs

    This issue is blocked until the following PRs land, as both modify ADR 005 (Wire Protocol) and will change the wire format baseline that schema evolution needs to account for:

    Once these are merged and ADR 005 stabilizes, we can define the schema evolution strategy on a settled wire format.

  2. added
    status:blocked
    on Mar 31, 2026
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

    status:blocked

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions