networkmanager: the watcher names no node; the bundle fills in its own

The node-engine gives the watcher's process no MESH_NODE, so the watcher refused to
start and crash-looped on g14. It needs none: a kept change holds its event, its
sequence and its body, and the bundle fills its own node into the subject, the message
id <node>.<event>.<sequence> and the body when it publishes, the same at every publish.

Builds: design 08 sign-in-page §11, §12, §20; lead answer L-3 (hq 09c9a3e3)
This commit is contained in:
jochen
2026-11-25 14:32:03 +01:00
parent 17e1bfb6d3
commit e539cf6e99
8 changed files with 151 additions and 58 deletions
+4 -3
View File
@@ -23,9 +23,9 @@ written whole (beside, then renamed over):
|---|---|
| `watch.sock` | the watcher's socket: one JSON line asked, one answered; `state` answers its state, `rating-again` makes it subscribe again and act on the rating read now |
| `check-address` | NetworkManager's check address, written by the watcher at its start and at each change |
| `pending/` | the kept events, one `<sequence>.json` each, written by the watcher and deleted by the bundle once the bus acknowledged it |
| `pending/` | the kept changes, one `<sequence>.json` each holding the event, its sequence and its body with no node, written by the watcher and deleted by the bundle once the bus acknowledged it |
| `names.json` | the bundle's last `uplink-names` call: the names, its result (`ok`, `no holder` or the failure) and when |
| `sequence` | the next sequence of the watcher's message ids, never reset while the folder lives |
| `sequence` | the next sequence of the watcher's kept changes, never reset while the folder lives |
The folder's `unknown` is `module`: the node-engine does nothing inside it, and the watcher leaves any other path it
finds there as it is and writes it to its journal once per path. When the module leaves, the node-engine keeps the
@@ -63,7 +63,8 @@ From NetworkManager's own rating the watcher keeps `node-uplink`'s two events, `
the address opened, when) and `sign-in-ended` (node, link, network, when, and why: `signed-in`, `left` or
`no-longer-asked`), at most 256 of them, the oldest dropped past that with a journal line. With the check switched
off (not enabled, or not available) it neither opens nor keeps anything. The bundle publishes them in order on the
seat's subject `mesh.seat.node-uplink.event.<event>.<node>`, each under its own message id, awaiting the stream's
seat's subject `mesh.seat.node-uplink.event.<event>.<node>`, each under the message id `<node>.<event>.<sequence>`,
the bundle's own node filled into the subject, the id and the body (the watcher names no node), awaiting the stream's
acknowledgement, at its start, at each new kept event and when its bus connection comes back; a refused one waits for
the next moment. Nothing in the mesh consumes them: they are its record, read with `nats.nats_stream_messages`
filtered to `mesh.seat.node-uplink.event.*.<node>`, their time in `at`.