Peering: what two servers exchange
cartopolis.org and rug.example agree to mix. The client talks to its home only; the peers talk to each other over one signed stream, inside each other's interest areas. NEW all of it; the signing and the fetch guard are the fediverse's, built.
jeroen's app
cartopolis.org
rug.example
1 POST /federation/peers { shares offered } · signed with the instance key
peered { shares: people, things, chat } · at once (open) or after an operator's yes (listed)
2 wss://…/federation/stream, one per pair, signed at the upgrade
3 Interest { areas }: merged circles where its people are, every few seconds, both ways
4 GET /federation/things?near=… once per new area → cached · models by hash, licence-gated
5 every tick: Avatars { anna: geo, heading, velocity } · Things · Say — inside the areas only
read on a task of its own into the spatial index · bounded queue, drop oldest · freshness on every state
6 WorldSnapshot: what is within jeroen's reach, home and peer alike, minus hidden layers · anna carries age_ms
7 Touch { the stand } (as today)
Touch { jeroen@cartopolis.org, thing, point } → the script runs there → Things come back
8 Rate { hz } when rug.example falls behind · dropped 10 min past 5 s of lag, the operator told
the app never learns rug.example's address and rug.example never learns the app's; blocks and the word filter apply on both servers' fan-out