Commit Graph
4 Commits
Author SHA1 Message Date
Audric a2b5d448fa docs: TWIN protocol implemented; bump version 2026-04-15 22:29:36 +02:00
Audric 205153ad9c docs(TWIN): resolve open design questions; switch to active/active
Rewrite the TWIN protocol spec around the decisions agreed with the
sysop: active/active external-trunk ownership with sticky per-frame
socket selection (refA holds both TCP sockets, picks one, fails over
instantly), single [TRUNK_x] section with multiple hosts + PAIRED=1
on the external peer side, full TGHandler state mirror across the
twin link (including external-trunk-talker state via new
MsgTwinExtTalkerStart/Stop messages — types 123/124, replacing the
earlier MsgTwinRoleClaim/MsgTwinRoleState), 2s/5s heartbeat cadence,
TCP relay for twin audio, and split-brain tolerated during twin-link
outages with handshake-time state resync on reconnect.

No code yet; this is still a design doc pending implementation.
2026-04-15 19:00:39 +02:00
Audric bb4d058aaa docs(TWIN): note MsgTrunkFilter (122) is unused on twin links
The message-type table jumped from 121 to 123 without explaining why
122 is skipped. Add a row making explicit that MsgTrunkFilter is
satellite-only and not meaningful on a twin link (twins mirror all TGs).
2026-04-15 18:25:25 +02:00
Audric a84cde03a1 docs: add TWIN_PROTOCOL design draft for HA-pair reflector linking
Design-only draft (not yet implemented) introducing a dedicated [TWIN]
link type so two reflectors can act as a redundant pair with a shared
LOCAL_PREFIX — cleaner than abusing overlapping trunk prefixes for HA.
Covers handshake (ROLE_TWIN via MsgTrunkHello), cross-twin talker
arbitration, active/standby external-trunk ownership with priority-nonce
election, and flags 7 open design questions for sysop review before
coding begins.
2026-04-15 18:19:18 +02:00