feat(#292): implement protocol version checking

Add protocol version validation during connection handshake.
- Define FEDERATION_PROTOCOL_VERSION constant (1.0)
- Validate version on both outgoing and incoming connections
- Require exact version match for compatibility
- Log and audit version mismatches

Fixes #292

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-03 22:00:16 -06:00
parent d373ce591f
commit 14ae97bba4
3 changed files with 115 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
/**
* Federation Protocol Constants
*
* Constants for federation protocol versioning and configuration.
*/
/**
* Current federation protocol version
* Format: MAJOR.MINOR
* - MAJOR version: Breaking changes to protocol
* - MINOR version: Backward-compatible additions
*/
export const FEDERATION_PROTOCOL_VERSION = "1.0";