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

+8 -5
View File
@@ -229,7 +229,10 @@ lowest-precedence prefix — a real prefix always wins — and is **never** adde
- The **return leg** to a `*`-leaf relies on peer interest: because `*` matches every
TG in the send/interest gate, the leaf advertises interest in the TG toward the
parent (`MsgPeerTgInterest`), and the parent's `isPeerInterestedTG` carries the
return audio back without needing any routable entry on the parent side.
return audio back. The leaf also accepts the returning audio via the wildcard match
(`matchesRoutable`) on its inbound-accept gate — because `*` is never added to
`m_all_prefixes`, `hasPrefixRoute` cannot serve this role, so the wildcard accept
is the mechanism that lets the leaf receive the return audio.
A startup `WARNING` is emitted when `*` is set on a reflector with more than one
trunk, as that is outside the intended single-uplink leaf pattern and may produce
@@ -239,10 +242,10 @@ unexpected fanout behaviour.
logic. A blacklisted TG is dropped before `isSharedTG`, `hasPrefixRoute`, or
interest advertisement are consulted.
**Ownership caveat.** A routable prefix must not be a longer decimal-string match
of a TG the local reflector owns: `isSharedTG` (and `hasPrefixRoute`) would then
route that TG away from the local owner. Keep routable prefixes pointed at TGs
owned by other reflectors — the same discipline that governs `REMOTE_PREFIX`.
**Delegation note.** A routable prefix more specific than this reflector's own
`LOCAL_PREFIX` intentionally delegates that sub-range elsewhere: longest-prefix-match
honors it and the more specific routable prefix wins. Point such a prefix at the
reflector that actually owns those TGs.
### Cluster TGs