Files
stack/apps/api/src/federation/constants.ts
Jason Woltje 14ae97bba4 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>
2026-02-03 22:00:43 -06:00

14 lines
331 B
TypeScript

/**
* 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";