Design 08 sign-in-page: the watcher's folder treats unknown paths as the module's
Neither move-out nor program fits a folder only the module's own parts write, so its watcher leaves an unknown path in place and says it once (L-1).
This commit is contained in:
@@ -105,3 +105,7 @@ DMC-8 Yes: i3's opener runs in cmd/i3-tools, not the shared desktop package, so
|
||||
DMC-9 Yes: accept the runtime's module prefix on message ids; the sequence file of §12 keeps them unique.
|
||||
|
||||
PREPARE CHECK. The node-engine says no running for a module restarted in place at the same build (read in code and on the bus: the guard's restart 2026-11-23 23:41, no running followed). So §11's trigger for a restarted resolver does not fire: networkmanager also calls uplink-names on its bus reconnect (R2-5) and when routes shows its names missing at its health look; no new node-engine event in this milestone. Principle: events first, and the design names only events that fire.
|
||||
|
||||
## The build
|
||||
|
||||
L-1. The resource `sign-in-state` (§12's folder) carries `unknown` `module` (ADR 0422 §3: the module's own process reacts, as its README says and its tests show). The watcher leaves a path it does not know (anything but `watch.sock`, `check-address`, `pending/` and its files, `names.json`, `sequence`) as it is and writes it to the journal once per path; the README (§24) says so and one unit test (§25) shows it. Not `move-out` (ADR 0422 §4 would move the module's own files at every look), not `program` (§2: no other program writes there).
|
||||
|
||||
@@ -218,7 +218,10 @@ by nothing (DMC-6).
|
||||
watcher process, and the decision is unchanged (R2-1).
|
||||
12. **The two parts share the module's own local state, in one folder** (R2-1). `networkmanager` declares the
|
||||
directory `${machine:account-home}/.local/state/mesh/networkmanager` (owner `${machine:account}`, mode 0700) as
|
||||
its resource. When the module leaves, the node-engine keeps it while it holds files, as data, listed by `cleanup
|
||||
its resource `sign-in-state`, with `unknown` `module` (ADR 0422 §3; L-1): the module's own process reacts to a path
|
||||
it does not know. The watcher leaves any path but `watch.sock`, `check-address`, `pending/` and its files,
|
||||
`names.json` and `sequence` as it is, and writes it to its journal once per path. Not `move-out`, which would move
|
||||
the module's own files at every look (ADR 0422 §4); not `program`, since no other program writes there (§2). When the module leaves, the node-engine keeps it while it holds files, as data, listed by `cleanup
|
||||
list`, and nothing reads it then (DMC-6). In it:
|
||||
- `watch.sock` (mode 0600), the watcher's socket, made at its start: one JSON line asked, one answered. `state`
|
||||
answers the watcher's state (§23's read); `rating-again` makes the watcher subscribe again, read the rating now
|
||||
@@ -349,7 +352,8 @@ by nothing (DMC-6).
|
||||
two events from the network manager's own rating, that with the check switched off it neither opens nor keeps,
|
||||
and that the bundle calls `uplink-names` where a holder of `node-resolver` runs (ADR 0687 §2, §3; ADR 0689); and
|
||||
that the watcher's health is judged only once the tool runner has reached the bus, since its health tool is the
|
||||
bundle's (R3-4). Its review reads it.
|
||||
bundle's (R3-4); and that the watcher leaves a path in its folder it does not know as it is and writes it to its
|
||||
journal once per path (§12; L-1). Its review reads it.
|
||||
25. **Its tests** (ADR 0687 and ADR 0689, *How it is checked*), unit, with the network manager's D-Bus signals,
|
||||
logind, the user manager, the opener and the notification service stood in, and no bus: PORTAL at a join opens
|
||||
the page and shows one notification; PORTAL at the watcher's start does the same; PORTAL to FULL shows that the
|
||||
@@ -364,7 +368,8 @@ by nothing (DMC-6).
|
||||
connection comes back and on a running holder of `node-resolver`, `no holder` recorded as healthy; the health
|
||||
tool unhealthy for a watcher not subscribed and for a failed `uplink-names` call; 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); each tool. **One integration
|
||||
(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
|
||||
test** starts `networkmanager` whole, watcher and bundle, with no bus: it sees the page opened by the stood-in
|
||||
opener; then it starts a real bus holding `node-uplink`'s definition and a stand-in holder of `node-resolver`,
|
||||
and sees the kept events published in order with the times of their changes and `uplink-names` called (R-M4,
|
||||
|
||||
Reference in New Issue
Block a user