diff --git a/03-DESIGN/01-to-be/08-milestones/sign-in-page-lead-answers.md b/03-DESIGN/01-to-be/08-milestones/sign-in-page-lead-answers.md index fdcf3bfe..192d40bb 100644 --- a/03-DESIGN/01-to-be/08-milestones/sign-in-page-lead-answers.md +++ b/03-DESIGN/01-to-be/08-milestones/sign-in-page-lead-answers.md @@ -112,6 +112,8 @@ L-1. The resource `sign-in-state` (§12's folder) carries `unknown` `module` (AD L-2. The fact `private-interface` renders the literal `mesh0`. Quick, not thorough: the private network's interface on the laptop is `mesh0`, and netcheck and networkmanager's configuration already name it literally; one value every module reads is the thorough fix, outside this milestone (a finding the lead carries; the laptop's assignment names the tunnel `wg0`, which contradicts what runs). +L-3. Read on the laptop on 2026-11-25: the node-engine sets no `MESH_NODE` for a process resource (the unit holds only `MESH_FINGERPRINT`; zfs-watch's on another machine has none), so the watcher, a process, cannot know its node. The watcher needs no node: it opens and notifies without one; a kept change in `pending/` holds the event's name, its sequence and its body without the node; the bundle (which the tool runner gives `MESH_NODE`) fills its node into the subject, the message id `..` and the body when it publishes. Quick, not thorough: the thorough fix (the node-engine gives every process resource `MESH_NODE`) is a finding the lead carries. + ## Code review round 1 Lead answers to code review round 1 of the milestone sign-in-page (fix-1981@g14, 2026-11-24). Each names what settles it. diff --git a/03-DESIGN/01-to-be/08-milestones/sign-in-page.md b/03-DESIGN/01-to-be/08-milestones/sign-in-page.md index ade65daf..f172d65d 100644 --- a/03-DESIGN/01-to-be/08-milestones/sign-in-page.md +++ b/03-DESIGN/01-to-be/08-milestones/sign-in-page.md @@ -218,7 +218,9 @@ by nothing (DMC-6). page a bundle never runs; the part that must work without the bus may not need the bus to start. So: - **the watcher** is a process resource of `networkmanager`, as the zfs module's watch is: its `name` `networkmanager-sign-in`, `artifact` `tools`, `run` `./uplink-tools watch`, `user` `${machine:account}`, - started by the machine's service manager at boot and kept running, needing no bus; its `health` of kind `unit`: + started by the machine's service manager at boot and kept running, needing no bus and no node: the node-engine + gives a process resource no `MESH_NODE`, and the watcher opens, notifies and keeps events without one + (L-3); its `health` of kind `unit`: its unit `networkmanager-sign-in` active, judged on the machine without the bus, so it holds behind a sign-in page (ADR 0689; C-2c). The watcher exits non-zero when it cannot subscribe again after the system bus returns (§14), so its unit shows failing. It @@ -245,8 +247,8 @@ by nothing (DMC-6). and act on it as on a change. - `check-address`, written whole by the watcher (beside and renamed over) at its start and whenever the network manager's check address changes: the address on one line, empty when there is none. - - `pending/`, the kept events: one file each, `.json` with a ten-digit sequence, holding `{subject, - message_id, body}`, written whole by the watcher and deleted by the bundle once the bus acknowledged it (§20). + - `pending/`, the kept events: one file each, `.json` with a ten-digit sequence, holding `{event, + sequence, body}`, the body without `node` (L-3), written whole by the watcher and deleted by the bundle once the bus acknowledged it (§20). - `names.json`, written whole by the bundle: its last `uplink-names` call, `{names, result, at}`, `result` one of `ok`, `no holder` or the failure. - `sequence`, written whole by the watcher (beside and renamed over): the next sequence of its message ids and @@ -326,8 +328,10 @@ by nothing (DMC-6). - the rating leaving PORTAL for FULL, with a session: summary "The network is open", body ": signed in."; any other end shows nothing. 20. **The events are kept by the watcher and published by the bundle, in order** (ADR 0689 §2; H-M5, R2-1, R2-11). - The watcher writes each event of §21 into `pending/` (§12) at its change, with `at` the time of the change and a - `message_id` of `..` made once, the sequence taken from `sequence` (§12). It keeps at most 256 files, a stated constant (R2-7); past + The watcher writes each event of §21 into `pending/` (§12) at its change, with `at` the time of the change, its + name and its sequence, taken from `sequence` (§12), and no node (L-3). The bundle, which the tool runner gives + `MESH_NODE`, fills its node in when it publishes: into the subject `.`, into the body's `node`, and + into the `message_id` `..`, the same for every publish of one file. It keeps at most 256 files, a stated constant (R2-7); past that it deletes the oldest with a journal line naming it. The bundle publishes them in sequence order on the seat's subject (§1), each with its `message_id` as the bus's message id (the runtime prefixes it with the module, `networkmanager...`, which is the bus's id; DMC-9), so a second publish of one is dropped by