Skip to content

Add GET /protocol/diff for stale clients #78

Description

@obeone

When a bridge learns it's running an old protocol revision, the only way to catch up today is to re-read the full PROTOCOL_TEXT, even if it's only one revision behind. That's wasted tokens for what's usually a small delta.

Sketch: add GET /protocol/diff?from=N that walks the forward-only PROTOCOL_HISTORY and returns a difflib unified diff between revision N and the current text, so a stale client can pull just the delta instead of the whole thing.

This adds a new read-only endpoint without touching PROTOCOL_TEXT, so no PROTOCOL_VERSION bump needed on its own.

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