docs(routable): fix routing example, delegation note, return-leg accept, test refs

- Replace wrong "ownership caveat" in all three files with a neutral
  delegation note: a more specific routable prefix intentionally delegates
  that sub-range via longest-prefix-match; point it at the reflector that
  actually owns those TGs.
- Fix the README example: align it with the actual test topology
  (leaf 222100 → natlit 222 → natlde 262 → far 263, two transit nodes,
  three trunk links); every REMOTE_PREFIX now equals the peer's LOCAL_PREFIX
  with no collisions; add the natlde return-path trunk section.
- Add a sentence in both README and PEER_PROTOCOL.md explaining that the
  *-leaf accepts returning audio via matchesRoutable on its inbound-accept
  gate (hasPrefixRoute cannot serve this role since * is not in m_all_prefixes).
- Fix tests/TESTS.md: remove non-existent topology_routable.py reference
  (routable topology lives in topology.py/ROUTABLE_REFLECTORS, generated by
  python3 generate_configs.py → docker-compose.routable.yml); correct
  "two hops away" to "two transit nodes away (three trunk links)".
This commit is contained in:
Audric committed 2026-06-15 21:42:28 +02:00
1 parent b18f3e8141
commit 013040d1fb
4 files changed
+43 -27

No files matched your search

+3 -3
View File
@@ -12,7 +12,7 @@ The integration tests verify the trunk protocol, satellite links, twin (HA-pair)
A separate harness (`run_redis_tests.sh`) runs `test_redis.py` (13 tests) against a single-reflector + Redis stack. See [Redis Integration Tests](#redis-integration-tests) below.
A separate harness runs `test_routable.py` (2 tests) against a dedicated routable-prefix topology. See [Routable Prefixes](#routable-prefixes) below.
A separate stack runs `test_routable.py` (2 tests) against a dedicated routable-prefix topology (defined in `topology.py`). See [Routable Prefixes](#routable-prefixes) below.
**Requirements:** Docker, Docker Compose, Python 3.7+ (stdlib only, no pip packages).
@@ -133,7 +133,7 @@ Internal port for `[TWIN]` is always 5304; satellite is 5303.
| `docker-compose.test.yml` | Generated compose file (do not edit manually) |
| `topology_redis.py` | Topology for the Redis test harness (single reflector + Redis). |
| `generate_redis_configs.py` | Generates `configs-redis/*.conf` and `docker-compose.redis.yml`. |
| `test_routable.py` | Routable-prefix tests (2 cases): explicit multi-hop transit (forward + return) and `*` wildcard with blacklist veto. Runs on a dedicated compose stack generated from `topology_routable.py`. |
| `test_routable.py` | Routable-prefix tests (2 cases): explicit multi-hop transit (forward + return) and `*` wildcard with blacklist veto. Runs on a dedicated compose stack; configs and `docker-compose.routable.yml` are generated by `python3 generate_configs.py` (routable topology defined in `topology.py` under `ROUTABLE_REFLECTORS`), then started via `docker compose -f docker-compose.routable.yml up -d --build` and exercised with `python3 -m pytest test_routable.py`. |
| `test_redis.py` | Redis-backed config-store tests (13 cases): users, trunk filters, live-state hashes, outage/resync, import idempotence, peer-node mirroring + sanitization, dynamic trunk add/remove. |
| `run_redis_tests.sh` | Redis test orchestrator with `up`/`test`/`down`/`all` subcommands. |
| `configs-redis/` | Generated Redis-harness configs (do not edit manually) |
@@ -273,7 +273,7 @@ Run separately via `test_routable.py` against a dedicated topology.
| # | Test | What it verifies |
|---|------|-----------------|
| R1 | Explicit transit forward + return | A client on a leaf reflector activates a TG owned by a far reflector two hops away; audio traverses both transit hops (explicit `ROUTABLE_PREFIXES` on each intermediate trunk) and the return audio reaches the leaf via peer interest |
| R1 | Explicit transit forward + return | A client on a leaf reflector activates a TG owned by a far reflector two transit nodes away (three trunk links); audio traverses both transit hops (explicit `ROUTABLE_PREFIXES` on each intermediate trunk) and the return audio reaches the leaf via peer interest |
| R2 | `*` wildcard + blacklist veto | A client on a `*`-configured leaf reaches a remote TG via its single uplink; a TG listed in `BLACKLIST_TGS` on the same link is dropped regardless of the wildcard, confirming blacklist-before-routable evaluation order |
### Twin Protocol (HA-pair)