Skip to content

ADR 010 vs ADR 005: Multi-token wire changes claim backward compat despite postcard's no-evolution constraint #84

Closed

Description

@thiras

Category: Cross-ADR Consistency

Severity: MEDIUM

Files: adr/010-multi-token.md (~lines 207, 241), adr/005-protocol.md (~line 184)

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

ADR 010 contradicts this in multiple places:

  • Line 207 (Scope of Changes table): claims adding payment_token to StreamRequest is "No (unknown field ignored by old nodes)"
  • Line 241 (Migration step 4): "nodes on old software ignore the payment_token field"

These cannot both be true. If postcard deserialization fails on unknown fields, old nodes will reject the new StreamRequest format entirely, not silently ignore payment_token.

Recommendation:
Either:

  1. The multi-token wire changes require cdn/client/v2 (new ALPN), and the Scope of Changes table + migration steps should reflect this as a breaking wire change
  2. Or payment_token must be added as an optional field with explicit backward-compat handling, with a rationale for why this specific case works despite postcard's general limitation

Surfaced by Copilot review on #83.

ADRs affected

  • ADR 010 (Multi-Token)
  • ADR 005 (Wire Protocol)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

design:consistency

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions