Skip to content

Networking

Peerborne uses libp2p for all peer-to-peer networking. libp2p is a modular networking stack that handles transport, stream multiplexing, connection encryption, peer discovery, NAT traversal, and pubsub messaging — all in one framework.

Peerborne supports these transport protocols. The actual set used depends on the runtime (browser vs. Node.js) and network topology:

Transport Runtime Purpose
WebSocket Browser, Node.js Reliable bidirectional stream. Used for relay and bootstrap connections.
WebRTC Browser Browser-to-browser direct connections (STUN improves NAT traversal; TURN or Circuit Relay may be needed for restrictive NATs).
WebRTC Direct Node.js Node-to-Node direct connections.
WebTransport Browser (Chrome 97+) Modern, low-latency QUIC-based transport.
TCP Node.js Traditional stream transport for Node.js peers.
import { defaultConfig, defaultBootstrapConfig } from '@peerborne/core';
const bootstrapPeers = [
'/dns4/relay.example.com/tcp/443/wss/p2p/12D3KooW...',
];
const config = defaultConfig(defaultBootstrapConfig(bootstrapPeers));
// Pass config to Peerborne.initialize()
await swarm.initialize(config);

In practice, browser peers typically use WebSocket to reach a relay, and may upgrade to WebRTC or WebTransport for direct peer connections when NAT traversal succeeds.

defaultConfig is browser only: it stores blocks and data in IndexedDB, so initialize() rejects with indexedDB is not defined under Node.js. Node processes use defaultNodeConfig from @peerborne/core/node. Neither default includes the TCP transport. The Node default’s listen addresses bind no local socket, so a Node process accepts connections only through a Circuit Relay reservation. To let another node dial it directly, add a listen address that a configured transport can bind:

import { defaultBootstrapConfig } from '@peerborne/core';
import { defaultNodeConfig } from '@peerborne/core/node';
const config = defaultNodeConfig(defaultBootstrapConfig([]));
const libp2p = config.helia!.libp2p!;
libp2p.addresses = {
...libp2p.addresses,
listen: [...(libp2p.addresses?.listen ?? []), '/ip4/127.0.0.1/tcp/4010/ws'],
};

Peers learn each other’s addresses from identify and the discovery topic, and Peerborne dials them during loads and catch-up. Both defaults therefore refuse addresses outside the public internet, so a remote peer cannot make a node connect to services on its host or network:

  • defaultNodeConfig installs denyLocalNetworkDial. It refuses loopback, private, shared (CGNAT), link-local (including the 169.254.169.254 cloud metadata service), unique-local and other special-purpose IP addresses, Unix sockets, and DNS names that cannot be public, such as localhost, *.local, *.internal and single-label names. A public DNS name that resolves to a private address is not detected.
  • defaultConfig keeps libp2p’s browser connection gater, which refuses private and loopback addresses and insecure /ws WebSockets.
  • The background upgrade of a relayed connection dials only public addresses.

A node that dials the loopback listener above, a LAN peer, a Docker network or a relay on 127.0.0.1 or plain /ws opts in with the third argument of either builder:

const config = defaultNodeConfig(defaultBootstrapConfig([]), undefined, {
allowLocalNetworkDials: true,
});

The option admits every address and sets PeerborneConfig.allowLocalNetworkDials, which also lets relayed connections upgrade over local addresses. A custom libp2p config chooses its own connectionGater; denyLocalNetworkDial and isLocalNetworkAddress are exported for it.

Document updates are announced and delivered via GossipSub — a pubsub protocol built on libp2p. Each document has a corresponding pubsub topic derived from its document ID:

// Document /todo-list → topic: /peerborne/document/v3/todo-list
// Changes published to this topic reach all subscribed peers.

Relays admit the current document namespace by default. A custom pubsubDocumentPrefix requires a matching slash-terminated namespace in every relay’s TOPIC_ALLOWLIST. With an empty prefix, allow each concrete document topic or explicitly select unrestricted * mode. All peers must use the same runtime and topic prefix.

Topic names are public routing labels, not authentication, authorization, or wire validation. Application URLs such as /document/:id are unrelated and do not change.

GossipSub is best-effort:

  • Messages are relayed through the mesh, not stored
  • Peers that join late may miss announcements
  • There is no message persistence, acknowledgment, or guaranteed delivery
  • Initial load and catch-up use point-to-point bitswap / HTTP fetch, not GossipSub

Each open document processes at most 16 frames and 16 MiB of ciphertext at a time, and all documents together at most 64 frames and 64 MiB. A frame that arrives while the document’s budget is full is skipped, but the latest skipped frame of each GossipSub sender is retained, holding one of the shared credits. One at a time, a retained frame is checked to decrypt under the document’s current key; a frame that passes is kept and processed once a credit frees. A writer’s later frames carry its earlier changes inline, so this recovers the end of a typing burst. A sender’s frame is only replaced by a newer one from the same sender, and a frame that fails the check, including one under a retired epoch key, is never kept. At most eight senders and 16 MiB are kept per document; sync requests are dropped first, then the oldest frame. A frame skipped while the shared credits are exhausted is not retained.

@libp2p/gossipsub sends and accepts RPCs of at most 4 MiB, and the outbound limit is not configurable. A longer RPC is never sent: publish() resolves with no recipients and no error. Peerborne caps one serialized sync message at 3.5 MiB (MAX_GOSSIP_SYNC_MESSAGE_BYTES), leaving room for encryption, the GossipSub envelope and piggybacked control messages.

Every frame carries the retained change tree inline, so the cap is split in half:

  • One change may need at most 1.75 MiB on its own (MAX_CHANGE_FRAME_BYTES). A larger one is refused before a block is stored: change() or endChange() rejects with GossipFrameLimitError and nothing reaches history. The edit is already in the local document, because Yjs edits in place and Automerge marks the previous document outdated, so the instance is retired as for an oversized block; reopen it from accepted state and split the edit.
  • The retained tree is compacted once the change frame that carried it passes 1.75 MiB: the writer snapshots and keeps only its newest changes, up to 512 KiB of payload, and a depth-bound compaction keeps no more than that either. A concurrent change carried inline past that budget is pruned too, and the snapshot covers it. A tree that still serializes past 1.75 MiB, as when large membership changes are kept beside it, keeps only the newest change. A writer that adopts a published change frame prunes the same tree the same way. A requestSync() reply does not trigger this, since it can carry a snapshot the author never published. Retained trees then match, but load digests can still differ, because each writer signs its own snapshot. A reader keeps the larger tree, as with depth-bound compaction. A peer that missed the pruned changes recovers them through automatic catch-up.
  • No change within its own limit is refused for retained size: if its frame would not fit, as after adopting a requestSync() reply, the tree is compacted first and the change published again. A document change that then fails, for example because it cannot be signed, retires the instance, because the snapshot already holds the edit.

A requestSync() reply that does not fit GossipSub, usually because of its snapshot, is not sent and does not use up the response rate limit. The responder logs a warning and, when the reply needed a snapshot the requester lacks, publishes a small signed load notice instead, so a requester that lacks some of the writer’s state loads the document; see large catch-up.

By default GossipSub penalizes every peer ID beyond the tenth that it has seen from one IP address, and keeps a departed peer’s score for an hour. Peers behind one NAT share an address, and so do peers reached through a Circuit Relay addressed by /ip4, which count at the relay’s address. After enough churn, the 14th such peer fell below the graylist threshold: its subscriptions were ignored and it received no frames.

defaultConfig() and defaultNodeConfig() therefore set GossipSub’s IPColocationFactorWeight to 0. Document frames do not depend on that score: they are encrypted and signed, and receive capacity bounds what any sender can hold. A custom libp2p configuration that builds its own GossipSub service keeps the penalty unless it passes scoreParams: { IPColocationFactorWeight: 0 } or lists the shared addresses in IPColocationFactorWhitelist. Relays have their own setting; see running a relay.

Peerborne peers find each other through several mechanisms:

A static list of well-known peers that new nodes connect to first:

bootstrap: [
'/dns4/bootstrap.peerborne.dev/tcp/443/wss/p2p/12D3KooW...',
'/ip4/192.168.1.100/tcp/4002/p2p/12D3KooW...',
]

Bootstrap nodes introduce the new peer to the network. They do not store or relay document data.

Once connected, nodes participate in a distributed hash table (Kademlia) for peer and content routing. The DHT maps peer IDs to multiaddrs and CIDs to providers.

AutoNAT determines whether a peer is reachable from the public internet. If a peer is behind NAT, it cannot accept incoming connections and must use a relay.

Browsers and most home/office networks are behind NAT, which prevents direct incoming connections. Peerborne uses several mechanisms to work around this:

A relay node bridges traffic between two peers behind NAT:

Two NAT-isolated Chromium peers loading encrypted document history through Circuit Relay after the test gives peer B peer A's relayed circuit address; an optional direct path is shown as unverified.
The cross-NAT path is verified through Circuit Relay; a direct path remains unverified.
View diagram at full sizeFit diagram to page

Evidence boundary: The solid relay path represents the narrow CI-backed result: two NAT-isolated Chromium processes with separate signing identities connect only through Circuit Relay. Peer A creates an Automerge document and a signed editor invitation; peer B accepts it by dialing the circuit rendezvous address the offer carries, loads the encrypted bootstrap, and then both peers make fresh edits that converge in each direction. A second document checks that a reader invitation grants read access and that the reader’s edit is refused. The test does not establish a separate bootstrap-discovery proof edge. The topology has app servers and a relay but no application database service. It does not demonstrate Yjs or Loro documents, which cannot be shared, direct WebRTC/DCUtR, relay failover, or production deployment behavior.

The relay forwards encrypted packets. It sees metadata (peer IDs, timing, data volume) but cannot decrypt document content.

Relayed connections are limited connections in libp2p. Peerborne runs Bitswap on them by default (helia.bitswap.runOnLimitedConnections: true), so a peer reachable only through a relay can still fetch change blocks within the relay’s circuit data and duration limits. Setting it to false stops block fetches over relays, which can stall loads and invitations.

Streams that accept limited connections, Bitswap included, open on the existing relayed connection to the peer. On its own, libp2p reuses only unlimited connections and dials a new circuit for each such stream. libp2p limits inbound connections per host, five per second by default, and counts every relayed connection against the relay’s host, so a burst of block requests would be refused and the load would stall. The stream opens on the relayed connection at once. When the peer also has a direct or WebRTC address that this node has a transport for, one libp2p dial per relayed connection runs in the background to upgrade it, and later streams use the unlimited connection if that dial succeeds. Streams that need an unlimited connection always get the libp2p dial, and DCUtR upgrades are unaffected.

Different peers that arrive through one relay share that per-host budget. defaultConfig and defaultNodeConfig therefore set connectionManager.inboundConnectionThreshold to DEFAULT_INBOUND_CONNECTION_THRESHOLD (128 per second). libp2p still bounds open connections with maxConnections, and refuses a new inbound connection while 10 upgrades are pending (maxIncomingPendingConnections), so more than ten peers arriving at the same moment still see refusals. A custom libp2p config should set the same option; with the libp2p default, the sixth peer to join or reconnect through a relay within a second is refused.

DCUtR (Direct Connection Upgrade through Relay)

Section titled “DCUtR (Direct Connection Upgrade through Relay)”

After an initial relayed connection, peers attempt to establish a direct WebRTC connection using DCUtR. The relay facilitates the hole-punching handshake; if successful, peers communicate directly, reducing relay load and latency.

  • STUN servers help peers discover their public IP and port for WebRTC hole-punching.
  • TURN servers relay media when direct WebRTC connections are impossible (e.g., symmetric NAT). TURN is more expensive than Circuit Relay but handles a broader range of NAT types.

Relays are the most important infrastructure component in a Peerborne deployment, and their trust properties matter:

What relays can see:

  • Peer IDs and multiaddrs of connecting peers
  • Connection timing and duration
  • Data volume and message frequency
  • PubSub topic IDs (derived from document IDs)

What relays cannot see:

  • Document content (encrypted with the document key; AES-GCM by default)
  • Signing keys or document keys
  • ACL entries or identity information (embedded in encrypted blocks)

What relays can do:

  • Drop, delay, or reorder messages
  • Terminate transport connections and forward relayed traffic
  • Censor specific peers or topics
  • Log metadata about who communicates with whom

What relays cannot do:

  • Decrypt document content without the document key
  • Forge application-level signatures without the signing private key
  • Authenticate as another peer at the libp2p level (Noise provides end-to-end peer authentication)
  • Modify encrypted blocks (detected via CID integrity check)

A relay that loses its identity file restarts with a new peer ID and breaks clients pinned to the old identity. The standard relay image persists an app-managed key on its /shared volume; hosted deployments must likewise mount durable storage at RELAY_IDENTITY_KEY_PATH. DNS (/dns4/...) changes address resolution but /p2p/<peerID> still pins the relay identity. Never share one private identity between concurrently running relays.

Use the SDK’s structured progress callback to distinguish dialing, transport opening, secure-channel setup, retries, and final failure:

await peerborne.connect([relayMultiaddr], {
signal: AbortSignal.timeout(30_000),
maxAttempts: 3,
retryDelayMs: 1000,
onProgress: (event) => console.info('Peerborne connection', event),
});

Events contain only stage, address index/count, attempt limits, elapsed time, cancellation state, and a fixed error-type label. Native progress details, addresses, raw errors, invitation URLs, and document data are not included. The rejected error remains available to the caller for controlled debugging; use the progress event when recording diagnostics. Observer exceptions and rejections are isolated from the operation.

The default is one attempt. At most three attempts are allowed, and only transport failures, closed connections, or timeouts qualify for retry. Authentication failures and caller cancellation stop the attempt sequence. An established transport does not establish a relay reservation or verify an invitation. Applications should report those later phases separately. The optional NetworkStats container still requires explicit record*() calls.

GossipSub can drop frames, a writer can edit while disconnected, and a writer that has pruned its retained tree cannot resend older changes inline. Every open default (non-coordinated) document therefore asks members for missed updates without an application call. It sends the signed sync request that document.requestSync() sends:

  • shortly after open(), create(), invitation acceptance or a restored checkpoint;
  • when a peer subscribed to the document’s topic connects or reconnects;
  • when the CRDT holds remote changes that wait for missing dependencies (Automerge’s queued changes, Yjs pending structs or deletions);
  • when a frame names a change that cannot be fetched;
  • when a verified member’s request names, as its own head, a change this replica does not hold;
  • when a current writer’s load notice shows that this replica lacks some of the writer’s state;
  • 1 to 2 s after a frame adds a change this replica did not hold, so the change’s author sees a member’s request that names it even when the frame reached members only through a relay; changes applied before the request share it;
  • otherwise every 30 to 60 s, drawn uniformly around 45 s.

A request names the requester’s head, up to 32 recent tips, its known snapshots and its libp2p PeerId. It is signed by a current reader or writer and encrypted with the document key. A request is ignored, and rejected by topic validators, unless that PeerId is the GossipSub publisher of its frame, so a member cannot speak for other peers. Members learn the requester’s PeerId, which GossipSub’s signed from field already shows them. A writer answers when the requester lacks its head or its snapshot, or else a concurrent branch whose delivered history the writer keeps, with an ordinary signed update, so every reply passes the normal signature, ACL and admission checks. A reader answers only a current writer whose request shows it lacks a change in a frame it signed itself, as after it reopened from an earlier checkpoint, by publishing that frame again unchanged; see local checkpoints. Replies go to the whole topic, so one request repairs every replica that is behind in the same way.

  • Signals that arrive within 0.5 to 1.5 s are coalesced into one request. A document sends at most one request per 5 s (minRequestIntervalMs), and while a detected gap stays open that spacing doubles up to the periodic interval. A request that follows an applied change waits only for the 2 s sync-request rate limit, so a member sends at most one every 2 s however fast writers edit, a frame whose change the replica already holds triggers none, and one that cannot be sent is not retried.
  • Advertised heads are counted per member signing key, however many PeerIds the member uses. One member triggers at most one request per kind of signal per 30 s (peerCooldownMs), and a document verifies at most four advertisements at once, refilled at one per 2 s.
  • Topic names are public, so a peer subscribing to the topic counts on its own only if it recently sent a verified request or writer frame. All other peers share one cooldown per document.
  • An advertisement expires after three periodic intervals, a member’s newer advertisement replaces its older one, and a verified request naming a head the replica holds retracts it. An expired or unresolved advertisement closes as abandoned, not repaired, and the member’s advertisements are then ignored for 5 minutes, doubling to 2 hours. An advertisement expires without that penalty while the last catch-up load from its peer reached no responder or failed only on transport or its deadline, or when it came from a sole writer that is disconnected when it expires.
  • A periodic request is postponed once when another member asks with the same head, since writers’ replies reach every subscriber.
  • All documents of one Peerborne instance share a request bucket of 16, refilled at four per second. Periodic requests leave four tokens for requests a gap or a new peer triggered, and the periodic interval stretches with the number of open documents so that they plan at most half of the rate (beyond about 90 documents at the default interval). At most one catch-up load runs at a time, and at most one per peer every 10 s. A catch-up load is aborted after 5 minutes, and its slot is released then even if the load has not stopped.
  • Responders, including readers that re-serve a frame, keep the existing limits: one reply per document every 2 s, a 60 s freshness window and a 128-entry replay ledger, however many members ask.
  • Change blocks a frame cites without carrying are fetched within that frame’s bounded fetches; the ones left unfetched, failed or waiting out a retry delay are reported to catch-up as missing changes. A missing change is not held, and neither is a change that references it, so the gap stays open and later replies are walked down to it until it arrives. A cross-linked change whose inline copy sits below a change the replica already holds, such as a snapshot boundary, is taken from the frame instead of being fetched. A writer replies with a concurrent branch it received inline to a requester whose head it holds, and carries the branch in its next change, so a reply repairs that branch after its author leaves; see which blocks a replica can serve.

A reply carries the responder’s retained tree and, when the requester lacks it, the snapshot. When a reply that carries the snapshot does not fit a GossipSub frame, the writer answers the request with a load notice instead. The notice names the request, the writer’s PeerId and the snapshot, and, when the CRDT provider can encode one in 16 KiB, the writer’s state version: Automerge heads, a Loro version vector, or a Yjs state vector with its delete set. It is signed by the writer, encrypted under the document key like a frame, and at most 32 KiB; a notice that does not fit with the version, as with very long keys, is sent without it. A writer sends one notice per request, at most one every 2 s to each requesting peer, and at most four every 2 s in all.

The snapshot can be the only cover of a change. A Yjs writer that restores a checkpoint writes under a new client, so its later edits do not depend on its own earlier changes that no member received. Once compaction prunes those changes from its tree, a member can hold every head the writer names and still lack them, and only the snapshot carries them. The notice is how that member learns it.

A requester accepts a notice only from the GossipSub publisher it names, only within 60 s of one of its own eight latest requests, once per writer and request, and only when a current writer’s signature verifies. One writer’s notice is checked at most once per peerCooldownMs, and the checks share the advertisement budget. Topic validators, which also run on peers that only relay the notice, verify every notice that names a current writer’s key, as they do requests, and reject a forged one, so GossipSub penalizes its sender.

A requester whose document already covers the noticed version loads nothing. It remembers that writer’s notice for that state and answers the writer’s next one without verifying it, but it does not list the snapshot as known: nothing binds the snapshot a notice names to the writer that signed it, so another writer could otherwise stop a requester from receiving that snapshot. The writer therefore keeps answering the requester’s requests with notices. Otherwise the notice counts as that writer advertising state this replica lacks, until the document covers the version or, without a version, holds the snapshot or one that includes it. A request that names a head this replica holds does not retract it. Without a version, a requester that lacks the snapshot always loads, since it cannot tell what the snapshot holds. A writer’s notices that stay unresolved for three periodic intervals, counted from the first, close the gap as abandoned and penalize that writer, as an unresolved advertisement does.

Once the gap outlives the first request by 15 s (loadAfterMs), a head that two members advertise, or notices from two writers, can trigger an authenticated V4 load. So can local evidence (pending CRDT state or an unfetched change) or a fresh signed advertisement or notice from the connected sole writer, or a fresh notice that the replica’s own key signed on another of its devices. A writer is the sole writer when the verified writer ACL holds no other writer or, on a replica that is itself a writer, no writer besides the replica’s own key: a founder and its one collaborator are each other’s sole writer. A load on a notice from the replica’s own key queries only the device that sent it and accepts one valid response signed by that key, however many other writers exist, since the replica trusts its own key. Such a notice is never penalized, and a penalty that an unresolved advertisement from another of the replica’s devices earns does not hold it back. A sole-writer advertisement or notice is used before local evidence. Its load rechecks that the writer ACL has not changed and still holds only that writer and the replica’s own key, queries only the advertising peer, and accepts one valid response from that writer, since no other writer exists to agree with it. Adding or removing a writer invalidates the advertisement or notice. Every other catch-up load of a replica that is itself a writer, beside exactly one other writer, such as one that local evidence triggered, likewise accepts one valid response from that writer, from whichever connected peer serves it: the replica’s own devices are the only other voters, so any quorum it could reach would load that writer’s state. Its session captures the writer ACL, and the load fails if the ACL changes before the response applies. Other loads prefer the newest connected writer that named the head or sent a notice and enforce the configured quorum, so a reader of a document with two or more writers, or a writer with two or more other writers, loads only once two of them agree. One such writer’s notice opens a gap that no load repairs, and notices from two writers lead to a quorum load that fails while their load responses differ, as they do when each writer signed its own snapshot, so such a replica can stay behind until the writers converge. All paths require resolveLoadSecurityCommitments. Readers cannot sign load responses. A load that returns state, or whose responses fail verification, while leaving an advertised head unknown penalizes its advertisers, never the replica’s own key. Under the same conditions, a load from a writer’s peer that leaves that writer’s noticed state unheld penalizes that writer, and an unfetched change the load does not reveal is not escalated again for an hour. A load that reaches no responder, as during a partition, or fails only on transport or its deadline, such as a probe that times out against a writer slowed by load, penalizes nobody, leaves unfetched changes open and retries after the delay, and advertisements and notices from the peer it tried expire without a penalty until a load from that peer is answered. Each load that leaves anything unresolved doubles the delay before the next, from 60 s (loadIntervalMs) up to 64 minutes. After the third load of a gap that a responder answered without two advertising members, a gap that stays open waits the full 64 minutes between loads. Only a repair resets the delay, but a member’s next verified advertisement or notice undoes the doublings of loads that reached no responder, so catch-up resumes soon after a partition heals. Each member does so at most once per 5 minutes, doubling to 2 hours. Closing the document aborts a load in progress.

A writer that adopts another writer’s pruned tree, under a snapshot it never received, can hold changes that neither its tree nor its own latest snapshot conveys. Before it serves a load, a writer therefore checks that every change it holds is carried or cited by its tree or covered by its latest snapshot, and otherwise takes a snapshot first. A load that is not a first load fetches and installs only the changes above the served snapshot’s boundary, which the agreed digest binds, and fails unless it applies or already holds that snapshot.

A responder captures the state it serves a load as soon as the frame it is applying finishes, ahead of the frames queued behind it, serves the response it captured when it advertised that state, and rechecks the requester’s access against its applied ACLs just before sending, without waiting for the queue. In-process fixtures show that edits between the advertisement and the load do not make the load fail, and that a burst of frames slower to apply than the 5 s deadline does not delay it past the frame being applied; see initial-load quorum.

A load response carries the snapshot and the retained tree in one encrypted response of at most 10 MiB. A responder whose response would be larger logs a warning that names its size and the limit and sends nothing. It checks the state the response carries before building it, so it also declines the quorum probe when that state alone exceeds the limit, and the load fails for lack of responses; otherwise a quorum-bound loader logs that a responder that advertised the document sent an empty response. That replica cannot serve the document by load; see limitations.

await peerborne.initialize({ ...config, antiEntropy: { enabled: false } });
document.antiEntropyStatus; // enabled, running, phase, gap, requests, loads, ...
document.subscribeToAntiEntropy('status', (event, status) => {
if (event.type === 'repaired') console.info('caught up', event.afterMs);
});

Events are gap, request, load, repaired and abandoned. Catch-up runs only for signed documents on a node with a libp2p identity; coordinated documents request their controller checkpoint on the document topic. requestSync() still sends a request at once, within its 2 s rate limit, and restarts the periodic delay. While a gap is open, it counts as the request that the gap’s load follows.

An application restoring an encrypted checkpoint reconnects its transport and opens the restored document; catch-up then requests missed updates. Fresh nonces, timestamp bounds, recent-request deduplication and response throttling bound replay and amplification, and known roots avoid repeatedly sending an already received update. Catch-up requires an online member that holds the missing state and the current key; it does not restore a lost identity or recover an unknown group-key epoch.

  • Relay identity requires durable storage. Restart preserves the peer ID only while the configured identity file survives. Losing it requires clients to learn a new peer ID.
  • No relay meshing. Each relay operates independently. There is no relay-to-relay routing.
  • Topic allowlists are not Circuit Relay policy. TOPIC_ALLOWLIST controls only which GossipSub topics the relay node auto-subscribes to. It does not inspect or restrict opaque, Noise-encrypted Circuit Relay streams, authenticate publishers, or authorize documents.
  • Readiness is local evidence. /readyz confirms local startup and seed subscriptions, not a remote reservation or end-to-end convergence.
  • No durable storage on relay. The relay does not store messages. If a subscriber is offline, it misses messages.

Verified in CI:

  • WebSocket transport through Circuit Relay in Docker-backed NAT tests
  • Cross-NAT encrypted document retrieval (real Peerborne nodes behind NAT)
  • Basic peer discovery (bootstrap connection) in integration tests
  • GossipSub message delivery in NAT topology

Not verified:

  • WebRTC direct connection upgrade (DCUtR)
  • WebTransport transport
  • Relay failover (kill one relay, verify peers reconnect through another)
  • Live post-load convergence under network partition
  • AutoNAT detection and relay fallback
  • DHT content/provider routing at scale