Skip to main content

Module volley

Module volley 

Source
Expand description

Chat-plane volley — the boot paint pass (CONCORD_CHAT_PLANE_VOLLEY_DESIGN.md).

Paints every channel’s CURRENT-epoch chat plane from stored state in a few batched multi-filter REQs on the shared warm community client. No per-plane clients, no NIP-42 warmups, no dial storms: a cold fetch_plane per plane pays a connect + per-relay warmup gauntlet, which is how a 47-channel boot became a 36s crawl. Auth-gating relays contribute nothing to a batch (they CLOSE REQs whose authors aren’t the connection’s authed key); the planes also live on the non-gating relays, and anything held ONLY by a gating relay still arrives via the verification sweep behind this.

Non-authoritative by design: chat planes carry nothing that needs verifying before display. The control plane folds AFTER paint and enforces retroactively (retro-hide revokes a banned member’s painted rows). Epochs rotated while offline make these filters return silence — never lies — and the rekey walk behind this repaints the channel under its new epoch.

Structs§

PaintTarget
One channel to paint. since = the chat’s last held message (seconds, minus the caller’s slack) so the page carries only genuinely-new wraps.
VolleyStats
Stage timing + hit counts for the boot log — the volley is a performance feature, and every regression so far was found by reading these.

Functions§

paint_all
Paint every target’s latest page. Returns (channel_hex, new) per channel that gained messages (callers own the logging) plus stage stats.