mesh_watch: events published during a LAN stream's reopen go unheard with nothing said #15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose (fix): a
mesh_watchover the LAN says when its LAN stream had a gap, instead of losing the gap's events without a word.Refs macula-io/macula-mcp#11 (Jupiter's r2 note, PR 12 at
ca964f88). WithMACULA_LAN_ENTRYset, the entry point ends a topic's event stream when its token expires, andkeepHearing(src/reach_the_lan/hear_both.ts) opens it again with a fresh token. Events published on the LAN during that challenge+token round trip are not heard, and nothing says so. A fact also published on the mesh still arrives that way; a LAN-only fact is lost.Done when
lan_gaps: [{from, to}]beside the events, so an agent knows when it heard nothing.Widened purpose (Supervisor, 2026-12-02, via Mars)
Losing events without a word is real harm, so the gap is in scope. In order:
src/reach_the_lan/hear_both.tscovers same-path copies delivered by the two streams as well as the two paths (this is what #16 keys: topic plus the hash of the payload in one normal form, no publisher).mesh_watchsays so, with the gap's start and end times.macula-io/macula-mcp#16is folded into this package and closes with it. Tests use the 127.0.0.1 stand-in; nothing outside.Added Done-when (Supervisor, 2026-12-02)
{"$bytes"}payload and one for the LAN UTF-8 string, both hashing alike.lan_gaps: [{from, to}]with the gap's start and end.Refs macula-io/macula-mcp#16