Design 08 sign-in-page: the watcher fails loudly when its first subscribe fails (C2-1)

This commit is contained in:
jochen
2026-11-25 01:11:49 +01:00
parent 6752a5cf3f
commit f15bc2fdb5
2 changed files with 9 additions and 2 deletions
@@ -129,3 +129,7 @@ NOTES taken: (a) node-resolver's real definition adds outside_writes to routes'
~~C-2b (corrects C-2). NetworkManager.service keeps no state and no health (ADR 0117 §4, §5: the mesh never starts, stops, enables or disables it; a unit check on a service not stated running is refused, ADR 0240 rule 1). The sign-in process's health is of kind exec, command `./uplink-tools health`, which asks the watcher's socket and exits non-zero when the watcher is not subscribed or the last uplink-names call stands failed (60s, 20s, 2 looks, 60s grace); with no tool check left, ADR 0227 rule 8 does not apply, and the check runs on the machine, so it works behind a sign-in page (ADR 0689). `uplink_health` stays a tool of the bundle, not a health check.~~ *Corrected by C-2c (2026-11-24): an exec check exists only for a container; the manifest validator refuses it on a process, and the node-engine runs exec checks only through the container runtime (the node-engine's `internal/apply/apply.go` `runtimeCheckArgs`, `internal/liveness/readiness.go`).*
C-2c (corrects C-2 and C-2b). NetworkManager.service keeps no state and no health (ADR 0117 §4, §5); the sign-in process's health is of kind unit (its unit `networkmanager-sign-in` active), judged on the machine without the bus; `uplink_health` stays a tool of the bundle, not a node-engine check, answering not subscribed and a failed uplink-names call, both also in `uplink_sign_in` and the journal; the watcher exits non-zero when it cannot subscribe again after the system bus returns, so its unit shows failing.
## Code review round 2
C2-1. When the watcher's first subscribe at its start fails while the system bus's socket already exists, it writes the reason to its journal and exits non-zero, as when it cannot subscribe again after the bus returns (C-2c; failure must be loud), so its unit shows failing and the service manager restarts it.
@@ -282,7 +282,9 @@ by nothing (DMC-6).
of the kernel on the socket's folder), then reads the rating and acts on it as on a change; `rating-again` (§12)
does the same at once. It redials the system bus only at those two, never in a loop (note d). When it cannot
subscribe again after the system bus returns, it writes the reason to its journal and exits non-zero, so its unit
shows failing and the machine's service manager restarts it (C-2c). It runs as `${machine:account}`, which on a machine with a graphical session is the
shows failing and the machine's service manager restarts it (C-2c). The same holds when its first subscribe at
its start fails while the system bus's socket already exists: it writes the reason to its journal and exits
non-zero (C2-1; failure must be loud). It runs as `${machine:account}`, which on a machine with a graphical session is the
person's (ADR 0689 §1).
15. **It opens the page and tells the person, at three moments** (ADR 0689 §1, §4). With the check on: when the
rating becomes PORTAL on the active connection; at its own start when the rating already is PORTAL; and when the
@@ -388,7 +390,8 @@ by nothing (DMC-6).
at the next moment; `uplink-names` called at the bundle's start, on a changed `check-address`, when the bus
connection comes back and on a running holder of `node-resolver`, `no holder` recorded as healthy; `uplink_health`
unhealthy for a socket that does not answer, a watcher not subscribed and a failed `uplink-names` call, healthy
for `no holder`; the watcher exits non-zero when it cannot subscribe again after the system bus returns (C-2c); a watcher restarted after its
for `no holder`; the watcher exits non-zero when it cannot subscribe again after the system bus returns (C-2c), and when its first
subscribe at its start fails while the system bus's socket exists (C2-1); a watcher restarted after its
events were published and `pending/` emptied makes message ids it has not used before, and the bus keeps them
(R3-1); `uplink_publish_again` publishes what waits (R3-5); a path in the folder of §12 it does not know is left as
it is and written to the journal once (L-1); each tool. **One integration