The routable-prefix suite (added with the ROUTABLE_PREFIXES feature) had a
test file and docker-compose.routable.yml but was never invoked by the
runner, so it was silently skipped. Add a ROUTABLE phase after the TWIN
tests (generate --topology routable, bring up the dedicated mesh, run
test_routable.py, tear it down) and extend the cleanup trap to down the
routable compose file on interrupt.
Full suite now runs 89 tests: 52 trunk + 7 mqtt + 5 satellite-secrets
+ 6 logging + 17 twin + 2 routable.
Adds tests for satellite-axis and twin-axis per-client deltas,
retained rx bootstrap on subscribe, 500ms debounce invariant,
SATELLITE_FILTER respect, trunk-peer absence of peer/+/client/+/*
topics, and MQTT_NAME twin-mode validation.
Snapshot-housekeeping coverage is deferred together with Task 11.
Adds src/misc/Log.h / Log.cpp exposing geulog::{trace,debug,info,warn,error}
(subsystem, args...) with gate-before-format. Seven named loggers
(trunk, satellite, twin, client, mqtt, redis, core) share a mutex-guarded
deque drained by a single background worker thread writing to fd=1.
Levels come from [GLOBAL] LOG=*=warn,trunk=debug,... and are runtime-
settable via /dev/shm/reflector_ctrl (LOG SHOW / LOG sub=lvl / LOG RESET).
Writes continue to fd=1 so LogWriter file/syslog paths are unchanged.
Migrated hot paths only: audio relay, talker start/stop, handshake,
heartbeat, per-client RX, per-frame trunk/satellite/twin relay, plus the
ENOTCONN sendMsg race at ReflectorClient:302 (demoted to debug since it
is per-disconnect noise, not a fault).
Cold paths (startup banners, config validation, TLS/CA diagnostics,
MQTT/Redis publisher lifecycle) remain on raw cout/cerr and move in the
next commit.
TRUNK_DEBUG is removed; a startup warning points at LOG=trunk=debug.
Adds tests/test_twin.py with 7 tests covering the TWIN topology:
1–2. Twin handshake presence and absence of auth errors on ref1/ref2
3–4. PAIRED=1 trunk (refA↔DE pair) reported connected on all three sides
5. Twin wiring smoke test (no ERROR[TWIN], server-listen log present)
6. Twin disconnect/recovery: kill ref2, verify ref1 detects timeout,
verify re-handshake after restart
7. PAIRED trunk failover: kill ref1, verify refA still routes via ref2
run_tests.sh extended to tear down the default mesh, regenerate configs
with --topology twin, run test_twin.py, then restore the default topology.
The receive-side handlers (handleMsgTrunkTalkerStart, handleMsgTrunkAudio,
etc.) used isSharedTG() which only checks the remote peer's prefix. This
caused non-cluster TGs to be silently dropped on the receiving reflector —
e.g. a client on reflector-a talking on TG 40001 (owned by reflector-b)
would never reach reflector-b because reflector-b checked the TG against
reflector-a's prefix instead of its own.
Add isOwnedTG() that accepts TGs matching either the local or remote
prefix, and use it in all four receive handlers. The send-side still uses
isSharedTG() (remote prefix only) which is correct.
Also add a Docker-based integration test suite (tests/) with 11 automated
tests covering handshake, routing, cross-reflector audio delivery, cluster
TGs, heartbeat, disconnect cleanup, and trunk-to-trunk isolation. An
interactive mode lets users test arbitrary TG numbers with routing verified
via reflector logs. Topology is defined once in tests/topology.py.
Fix Dockerfile to copy built shared libraries to the runtime image.