Skip to content

Define versioning strategy for events and sync protocol #31

@intendednull

Description

@intendednull

Problem

The spec has no versioning mechanism for events or the sync protocol. As the system evolves, peers running different versions need to interoperate or gracefully degrade.

Options to explore

  1. Version field in CreateServer — the genesis event declares the protocol version. All events in that server's DAG conform to that version.

  2. ALPN-style protocol negotiation — at the sync layer, peers negotiate protocol version before exchanging events. Iroh already uses ALPN for protocol routing.

  3. Event kind versioning via serde — use #[serde(default)] and optional fields for backward-compatible evolution. New event kinds are ignored by old peers (unknown variants).

  4. Epoch events — a special event that declares "from this point forward, use protocol version N." Requires admin vote.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions