From 6df409e4e96c464ff0ac5d0d5a165ad633be6fb0 Mon Sep 17 00:00:00 2001 From: jochen Date: Tue, 24 Nov 2026 21:02:26 +0100 Subject: [PATCH] Design 08 sign-in-page: the prepare's answers in the design lines The prepare found the grant a bundle needs for a machine's event missing, a link with only uplink names read as routed, the running event silent for a restart and the folders kept when a module leaves; the lead's answers settle each, and the lines now say what the code will do so the developers decide nothing. --- .../sign-in-page-lead-answers.md | 29 ++++ .../01-to-be/08-milestones/sign-in-page.md | 136 ++++++++++++------ .../42-the-machines-modules-in-order.md | 2 +- 3 files changed, 122 insertions(+), 45 deletions(-) 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 9e3f5c4d..c69dcc78 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 @@ -76,3 +76,32 @@ R3-3 (seams-and-tools: invokes). Add seat:node-resolver.routes to networkmanager R3-4 (health-and-events notes). The README says the watcher's health is judged only once the tool runner has reached the bus; uplink_sign_in counts the events dropped past the 256 bound. R3-5 (seams-and-tools note). Add the tool uplink_publish_again, which asks the publish of the kept events now, with a unit test. Principle: every act a module does by itself can be started by a tool. R3-6 (security-and-upgrade note). The prepare confirms, on each machine that runs networkmanager, that the tool runner runs as the same account as the watcher (the folder is 0700). + +## The prepare + +Lead answers to the prepare of design 08's milestone sign-in-page (fix-1981@g14, 2026-11-24). Each names what settles it; the prepare's recommendations are taken unless said. + +DQ-1 The guard learns the private network's interface name as a rendered fact beside `suffix`. Principle: the mesh owns the truth; nothing is guessed. +DQ-2 The link carrying the default route is the lowest-metric default route's link that is neither routed (a VPN's) nor the private network's; none when there is none. Principle: the design leaves the builder no choice (ADR 0687 §2 means the network's own link). +DQ-3 routes answers, per link, the applied list's names that resolved holds on that link now. Principle: evidence over assertion. +DQ-4 mesh-sdk joins the group only to refresh its test copies of the three seats and the two tests that assert today's verbs; the seat-name constants stay. Principle: one release, one check; nothing seat-specific is added to mesh-sdk (ADR 0613 §5). +DQ-5 The guard's machine socket answers routes the same as the bus. Principle: one answer per verb. +DQ-6 Yes: i3's force input and its answer fields (i3, watcher) are optional fields in node-display-session's definition. Principle: a seat's contract names every field a holder answers. +DQ-7 open is class act and each call is written to the log of acts done by hand, with its caller and why, as issue 935 asks. Principle: an act on the person's screen by an agent is read back later (tools-are-how-a-module-is-spoken-to). +DQ-8 "No holder" is read from the assignments, never from the bus's no-responders text. Principle: read the owner's state. +DQ-9 The watcher hears the user manager's environment change (org.freedesktop.systemd1.Manager PropertiesChanged on Environment on the person's systemd); the developer proves it with a unit test against a recorded signal and checks it once on the laptop; if the user manager sends no such signal, §15's file event on the X socket folder is the trigger and the design line says so. Principle: events first; evidence over assertion. +DQ-10 Yes: §16's WAYLAND_DISPLAY import applies to a Wayland session's start block only. +DQ-11 Yes: correct design 42's citation to §29–§31. +DQ-12 Yes: the contracts modules carry the generated packages; holders import them at the zero version (ADR 0573 §2, §4). + +DMC-1 Yes: the tool runner may not publish a node seat event naming its machine today; mesh-delivery's grants part grants it for the holder's own node only (this also covers nftables), and mesh-delivery joins the group with its ordering edge before the holders. Principle: a gap in the delivery system is built there (design-it-as-it-should-be). +DMC-2 Yes: the guard leaves the uplink names out of its judgement of a routed link, so the fallback still applies to a link holding only uplink names (ADR 0688 stands). +DMC-3 Yes: each holder takes its own subcommands and tools from its manager.go; main.go stays the byte-equal copy. +DMC-4 Yes: the bundle hears a reconnect as the first heartbeat answered after a missed one. Principle: use what the runtime gives. +DMC-5 Yes: the five tools and the health tool are listed in the manifest's tools (§27). +DMC-6 The module's folders are removed when the module leaves only as the node-engine does for a directory resource; where it keeps a directory that still holds files, the design says the folders are kept and why (state of the module, harmless). Principle: the design says what the mesh does, never an intention it does not carry out. +DMC-7 Yes: write a README for networkmanager and for systemd-networkd. +DMC-8 Yes: i3's opener runs in cmd/i3-tools, not the shared desktop package, so its 10 s bound is its own. +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. 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 98c481f6..2e0ab536 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 @@ -15,6 +15,8 @@ decisions: - "ADR 0636" - "ADR 0613" - "ADR 0303" + - "ADR 0573" + - "ADR 0363" --- # Design 08, milestone sign-in-page — a network's sign-in page opens by itself on the person's desktop @@ -31,17 +33,18 @@ part of the sign-in reaction calls it (ADR 0689 §3). The purpose and the whole [sign-in-page-lead-answers.md](sign-in-page-lead-answers.md), cited by their keys (R-M2 and the like). It closes issue 960 (§5 to §10, on the machines where the resolver runs) and issue 935 (§3, §29). -**Where.** Three repositories, one delivery group with one check: mesh-networking (the contracts module -`mesh-connectivity-contracts`: §1, §2), mesh-contracts (§3) and mesh-catalog (`systemd-resolved` §5 to §10, -`networkmanager` §11 to §27, `systemd-networkd` §28, `i3` §29 to §31, the copy of the retired words §32). **Ordering -edges**, which the delivery plan derives: the three seat definitions before any holder that serves or publishes what -they add, and before any module whose `invokes` names it (the manifest validator refuses a name no definition holds, -design 26); `systemd-resolved` serving `uplink-names` before `networkmanager` calls it (a served verb). **No new -grant**: the grants part already grants every holder the publish of its held seats' event subjects (mesh-sdk's -`EmitSeat`, design 47 G A-10, §276, §498), so `networkmanager`'s claim of `node-uplink` is its grant to publish §1's -events, and nothing in mesh-delivery's grants part changes (R-M3). The grant covers its own node's subjects only: an -event subject with a part `` is granted to that node's account alone (the seat definition's `Subject` rule, -ADR 0363 §2; R2-10). +**Where.** Five repositories, one delivery group with one check: mesh-networking (the contracts module +`mesh-connectivity-contracts`: §1, §2), mesh-contracts (§3), mesh-sdk (its test copies, §4), mesh-delivery (the grants +part, §4a) and mesh-catalog (`systemd-resolved` §5 to §10, `networkmanager` §11 to §27, `systemd-networkd` §28, `i3` +§29 to §31, the copy of the retired words §32). **Ordering edges**, which the delivery plan derives: the three seat +definitions before any holder that serves or publishes what they add, and before any module whose `invokes` names it +(the manifest validator refuses a name no definition holds, design 26); mesh-delivery's grants part (§4a) before the +holders whose bundles publish a machine's event through the tool runner (`networkmanager`); `systemd-resolved` +serving `uplink-names` before `networkmanager` calls it (a served verb). **The grant** (DMC-1, correcting R-M3): the +grants part grants a held seat's events to the module's own account, and grants the tool runner, which carries a +bundle, a carried module's held-seat events only where the event names no machine; `sign-in-asked.` names the +machine, so §4a builds that grant. It covers the holder's own node's subjects only: an event subject with a part +`` is granted to that node's account alone (the seat definition's `Subject` rule, ADR 0363 §2; R2-10). **What exists today, and its fate.** `node-uplink`'s definition gives the read verbs `resolvers` and `links` and no events; `networkmanager`'s `uplink-tools` answers those two and watches nothing: both stay. `node-resolver` has @@ -52,9 +55,10 @@ beside `i3_exec` that issue 935 asks for. **Going back one version** (U-N7; R3-2 delivered, one delivery group of the three seat definitions and their holders together, since the manifest check refuses a holder without its seat's new verbs and a seat definition without its holders' `serves`, in either order. Then: `systemd-resolved` back leaves the names on the link until the -network manager changes that link's domains, and nothing else; `networkmanager` back removes the watcher's process and -its state folder (§12) with the resource, publishes no more and calls nothing; `i3` back drops `open`; nothing else -stays behind. +network manager changes that link's domains, and its folder `/var/lib/node-resolver` with its files kept (§6); +`networkmanager` back removes the watcher's process, keeps its state folder with its files (§12), publishes no more +and calls nothing; `i3` back drops `open`. The kept folders are listed by the node-engine's `cleanup list` and read +by nothing (DMC-6). ## The seats' definitions @@ -97,13 +101,15 @@ stays behind. 63 bytes), the root, the mesh's own domain or a name under it (ADR 0247 §12's rule for `route`, for the same reason), more than 8 names. - `routes`'s answer gains `uplink_names` `{names, link, refused}`, read from what resolved holds for that link, not - from the file, with `refused` the reason resolved last refused them, or empty (H-N6); and `mesh_resolvers` + `routes`'s answer gains `uplink_names` `{names, link, refused}`: `names` are the names of the applied list (§8) + that resolved holds on that link now (DQ-3), never the file's, with `refused` the reason resolved last refused them, or empty (H-N6); and `mesh_resolvers` `{silent, since}`: whether the mesh's resolvers are silent now, by ADR 0688's guard, and since when (S-N5). Why 8 names: the network manager has one check address; 8 leaves room and keeps the guard's round small. 3. **`node-display-session` is defined whole, with the verb `open`** (ADR 0687 §4, changing ADR 0208 §3; ADR 0613 §1, §3; ADR 0636 §5). In `mesh-contracts` the definition holds `reload`, `workspaces` and `windows` as `i3` answers - them today and every field today's definition holds, its `receives` unchanged (U-M3), and `open`, required of every + them today and every field today's definition holds, its `receives` unchanged (U-M3); `reload` gains `force` as an + optional input and `i3` and `watcher` as optional answer fields, the descriptions staying the definition's (DQ-6); + and `open`, of class act (DQ-7), required of every holder so that any holder of the display session serves it the same way (ADR 0687 §4: i3 or sway). Its callers are the modules whose manifest `invokes` it and the operator, through the mesh MCP server; the sign-in reaction is not one (ADR 0689 §3; U-N6). @@ -118,37 +124,57 @@ stays behind. - **the encoding** (U-M2, R2-9): RFC 3986's unreserved characters (letters, digits, `-`, `.`, `_`, `~`) and `:` `/` `?` `#` `[` `]` `@` `&` `=` `+` `%` are kept as they are; every other character is percent-encoded, as the bytes of its UTF-8 form. Nothing is refused for a character, and no shell reads the address. -4. **No layout of the three seats stays in mesh-sdk** (ADR 0613 §3, §5). A type mesh-sdk still holds for one of - these seats moves into the seat's contract in this milestone, with every importer, and mesh-sdk keeps no copy; the - prepare step names each one it finds, or that it found none. +4. **mesh-sdk keeps no layout of the three seats, and refreshes its test copies** (ADR 0613 §3, §5; DQ-4, DQ-12). + The prepare found no type layout of these seats in mesh-sdk. mesh-sdk joins the group only to replace its test + copies of the three definitions (`go/seatlist/seatlisttest/seats/`: `node-uplink.json`, `node-resolver.json`, + `node-display-session.json`) with the whole definitions, and the two tests that assert today's verbs + (`go/catalogue/node_resolver_test.go`, `graphical_session_test.go`, and `uplink_verbs_test.go`); its seat-name + constants stay, being names and not layouts, and nothing seat-specific is added to it. The contracts modules carry + the generated packages as the generator places them (`go/seats/nodeuplink`, `noderesolver`, + `nodedisplaysession` and their TypeScript packages, with their artifacts), and `systemd-resolved`, + `networkmanager` and `i3` import them at the zero version for the subjects, the verbs and the bodies (ADR 0573 + §2, §4). + **4a. The grants part grants the tool runner its node's machine events of the seats its carried modules hold** + (DMC-1). mesh-delivery's grants part composes the tool runner's account, which is per node, with the publish of + the event subjects carrying its own node of every seat a module it carries holds, so a bundle's + `sign-in-asked.` is let through (and nftables' `allowances-changed` with it); no other node's subject. Its + test: a tool runner carrying a holder of `node-uplink` is granted `mesh.seat.node-uplink.event.*.` and + no other node's. ## The resolver answers the check's names (`systemd-resolved`) 5. **`systemd-resolved` serves `uplink-names` on the mesh** (ADR 0687 §2). Its claim of `node-resolver` serves `uplink-names` beside its three verbs, through the node's tool runner as `${machine:account}`. It is not served on the machine's socket: its caller is on the bus, and a host name of the network manager's check is no VPN's data - (ADR 0247 §31 to §34 hold for those). + (ADR 0247 §31 to §34 hold for those). The socket's `routes` answers the same as the bus's, `uplink_names` and + `mesh_resolvers` included (DQ-5). 6. **The names are kept in one file the guard reads** (ADR 0687 §2). The verb writes `/var/lib/node-resolver/uplink-names`, root's, mode 0644, one name per line, empty for an empty list, whole: it runs `sudo -n install -m 0644 -o root -g root /dev/stdin /var/lib/node-resolver/uplink-names.new` with the lines on its input, then `sudo -n mv -f /var/lib/node-resolver/uplink-names.new /var/lib/node-resolver/uplink-names` (U-M5). The `sudo` module's one rule for `${machine:account}` covers both; no module carries sudo rules of its own. The module - declares the directory `/var/lib/node-resolver` (root, 0755) as its resource, so the node-engine removes it, both - files with it, when the module leaves; the names stay until then, or until a call with an empty list (S-N6). Why a + declares the directory `/var/lib/node-resolver` (root, 0755) as its resource. When the module leaves, the + node-engine keeps the directory while it holds files, as data, listed by `cleanup list`, and nothing reads it then + (DMC-6); the names stay until a call with an empty list or a person's cleanup (S-N6). Why a file on the machine: the guard, as root, reads only the machine and resolved, as it does today; the file holds across a restart of resolved, of the guard and of the machine, and the caller states the names again at each of its starts (§13). 7. **The guard gives the names to the link that carries the default route, every round** (ADR 0687 §2, changing ADR 0247 §16). In each round of its pass over links (ADR 0688's round as built: every 5 s, or after `answer-within` when that is longer; design 50 resolver-fallback §2; S-N6), the guard reads the names file and - finds the link carrying the default route: the kernel's IPv4 default route with the lowest metric, or the IPv6 one - when there is no IPv4 default, never the private network's interface and never a link `route` routed. It sets that + finds the link carrying the default route: among the kernel's IPv4 default routes, or the IPv6 ones when there is + no IPv4 default, the one with the lowest metric whose link is neither one `route` routed (a VPN's) nor the private + network's interface; none when there is no such link (DQ-2). The private network's interface name it reads from a + fact the module renders beside `suffix`, `/etc/node-resolver/private-interface`, from the node's tunnel + interface the mesh holds in its assignment (DQ-1). It sets that link's domains, through resolved, to the domains the link has plus one routing-only domain `~` per name, keeping every search domain and routing domain it has, and takes the names off the link it gave them to before, when that differs. A round in which they are in place changes nothing. It never sets a link's servers, its default route for names (that stays ADR 0688's fallback alone), its addresses or its routes (ADR 0117 §13, §14; ADR 0247 §13): the link stays one a network manager gave servers and not one `route` routed, so ADR 0688's fallback gives - it its default route back while the mesh's resolvers are silent, as before. + it its default route back while the mesh's resolvers are silent, as before. The guard leaves the applied uplink + names out when it judges whether a link is routed (all its domains routing-only), so a link holding only those + names is not taken for a routed one (DMC-2). 8. **The guard keeps what it applied in a file of its own** (R-M2). After each change it writes `/var/lib/node-resolver/uplink-names.applied`, root's, mode 0644, whole (written beside and renamed over): `{names, link, at, refused}`, the list it applied, the link, when, and resolved's refusal or empty. At its start it reads @@ -164,7 +190,9 @@ stays behind. link, the old one losing them; the link keeps its search domains; a guard restarted with an applied file takes the names off the link it names; a changed list replaces the old one on the link; a link that has only those names is still given its default route back while the mesh's resolvers are silent (ADR 0688's test of that, issue 1981's - AC1, still passes); each refusal of §2; `routes` answers `uplink_names` from resolved, with `refused`, and + AC1, still passes), a link with no search domain of its own and only the uplink names included (DMC-2); the link + chosen is the lowest-metric one that is neither routed nor the private network's, none when there is none, the + private interface read from its fact (DQ-1, DQ-2); each refusal of §2; the socket's `routes` equal to the bus's; `routes` answers `uplink_names` from resolved, with `refused`, and `mesh_resolvers`. 10. **Its README** says the verb, the two files, the guard's new duty, the commands of §6 and that `uplink-names` sets only how resolved answers names over a link, never the link. @@ -182,12 +210,16 @@ stays behind. - **the bundle** `uplink-tools`, in the tool runner once it reaches the bus, as today: it answers `resolvers` and `links`, serves the tools and the health tool (§23), publishes the kept events (§20) and calls `uplink-names` (§13). It reads the watcher's state only through the module's own local state (§12). + - **the shared code** (DMC-3): `main.go`, `uplink.go`, `uplink_test.go` and `copies_test.go` stay byte-equal + between `networkmanager` and `systemd-networkd`; `main.go` takes each holder's own subcommands and tools from its + own `manager.go`, where `networkmanager`'s adds `watch` and the tools of §23 and `systemd-networkd`'s adds none. ADR 0689 names `uplink-tools` as the reacting part; the record-writer adds a progressive insight naming the 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; the node-engine removes it, and all it holds, when the module leaves. In it: + its resource. 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 and act on it as on a change. @@ -198,7 +230,7 @@ stays behind. - `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 - kept files, never reset while the folder lives, removed with it (R3-1), so an id is never used twice. + kept files, never reset while the folder lives (R3-1), so an id is never used twice. Nothing else reads or writes the folder. 13. **The bundle gives the resolver the check's host name** (ADR 0687 §2; R-N6, H-M3, S-M1, R2-5). At its start, @@ -213,8 +245,14 @@ stays behind. journal with the reason, makes its health unhealthy (§23) and is asked again at the next such moment or by its tool (§23), never on a timer (the lead's answer of 2026-11-24: events first). Its manifest `invokes` `seat:mesh-module-assigner.assignments`, `seat:node-resolver.uplink-names` and `seat:node-resolver.routes`, which - `uplink_sign_in` reads (§23; R3-3). The prepare reads whether the - node-engine says `running` for a module it restarted, and writes it in the milestone file. + `uplink_sign_in` reads (§23; R3-3). **The moments, corrected by the prepare** (the + prepare's check): the node-engine says no `running` for a module restarted in place at the same build, so a + restarted resolver is met by two more moments, with no new node-engine event in this milestone: the bus connection + coming back, and the health look, at which `uplink_health` reads `/node-resolver.routes` and calls + `uplink-names` again when a holder runs and the names it last gave are not in `uplink_names.names`. **The bus + connection coming back** is the first heartbeat of its consumer answered after a missed one (mesh-sdk's + `OnHeartbeat` and `Missed`; DMC-4). **`no holder`** is read from `mesh-module-assigner.assignments` (its node, + `seats`) naming no holder of `node-resolver` on its node, never from the bus's no-responders text (DQ-8). 14. **The watcher watches the network manager's rating as it changes** (ADR 0687 §3; R2-1). It hears the network manager's `PropertiesChanged` signal on the system bus for `Connectivity`, `PrimaryConnection`, `ConnectivityCheckEnabled`, `ConnectivityCheckAvailable` and `ConnectivityCheckUri`, an event the network manager @@ -236,13 +274,17 @@ stays behind. `RuntimePath`): the session is the one of type `x11` or `wayland`, not remote, whose state is `active` or `online`. Its session bus is `unix:path=/bus`. Its display is in the user manager's environment, read over that bus (the systemd user manager's `Environment`), into which the session's start block imports - `DISPLAY`, `WAYLAND_DISPLAY` and `XAUTHORITY` (ADR 0208 §17). No such session, or no display named there, is no + `DISPLAY` and `XAUTHORITY` (ADR 0208 §17): that is the X11 start block's import today; a Wayland holder's start + block imports `WAYLAND_DISPLAY` (DQ-10). No such session, or no display named there, is no session. It reads no other module's files or code (ADR 0689 Considered Options). -17. **How it hears a session start.** It hears logind's `SessionNew` signal on the system bus. For a session of its - own account of type `x11` or `wayland`, it waits for the user manager's environment to name a display, rereading - it at each file event of the kernel on `/tmp/.X11-unix` (an X server's socket) and on the session's - `RuntimePath` (a Wayland socket), for at most 60 s, a stated constant (R2-7); past that it writes to its journal - that the session's start was not acted on. Then §15's third moment applies. +17. **How it hears a session start** (DQ-9). It hears logind's `SessionNew` signal on the system bus. For a session + of its own account of type `x11` or `wayland`, it waits for the user manager's environment to name a display: it + hears the user manager's `PropertiesChanged` for `Environment` on `org.freedesktop.systemd1.Manager`, on the + session bus of §16, and rereads the environment at each, for at most 60 s, a stated constant (R2-7); past that it + writes to its journal that the session's start was not acted on. Then §15's third moment applies. The developer + proves the signal with a unit test against a recorded signal and checks it once on the laptop; if the user manager + sends no such signal, the trigger is the file events of the kernel on `/tmp/.X11-unix` (an X server's socket) and + on the session's `RuntimePath` (a Wayland socket) instead, and this line is corrected to say so. 18. **How it opens the page** (ADR 0689 §1; R2-3). It runs, with the session bus and `XDG_RUNTIME_DIR` of §16 in its environment, `systemd-run --user --collect --quiet --wait -- xdg-open
`, the address as one argument and never through a shell, so the browser runs under the person's user manager in their session and outlives the @@ -262,7 +304,8 @@ stays behind. 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 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, so a second publish of one is dropped by + 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 the bus as a duplicate, awaiting the stream's acknowledgement, and deletes each file once acknowledged; it does so at its start, at each file event of the kernel on `pending/` and when its bus connection comes back. A publish refused or unacknowledged stays in `pending/`, is written to its journal and counted (§23), and is published again @@ -301,7 +344,7 @@ stays behind. - `uplink_health` (the health tool of §11): unhealthy while the watcher's socket does not answer, while the watcher is not subscribed, or while the last `uplink-names` call stands failed, naming which; `no holder` is healthy. -24. **Its README** says the two parts and their shared folder, that the watcher opens the page and tells the person on +24. **Its README**, written whole in this milestone (DMC-7), says the two parts and their shared folder, that the watcher opens the page and tells the person on its own machine without the bus, how it finds the session (§16, §17), that it keeps and the bundle publishes the 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 @@ -327,26 +370,31 @@ stays behind. and sees the kept events published in order with the times of their changes and `uplink-names` called (R-M4, R2-1). 26. **Nothing names a network in it** (ADR 0687 §6): §33 holds for its code, configuration and tests. -27. **Its manifest** declares the process of §11, the directory of §12, the `consumes` and `invokes` of §13, and +27. **Its manifest** declares the process of §11, the directory of §12, the `consumes` and `invokes` of §13, the + five tools of §23 under `tools` (the manifest validator refuses a tool health check whose tool is not listed; DMC-5), and keeps its claim of `node-uplink`, its package, its configuration file and its service as today. The prepare confirms, on each machine that runs `networkmanager`, that the tool runner runs as the same account as the watcher, `${machine:account}`, since the folder of §12 is that account's alone (mode 0700), and writes it in the milestone file (R3-6). -28. **`systemd-networkd`'s README says it announces neither event and opens nothing** (ADR 0687 §1): systemd-networkd +28. **`systemd-networkd`'s README, written whole in this milestone (DMC-7), says it announces neither event and opens nothing** (ADR 0687 §1): systemd-networkd cannot tell a sign-in page. Its review reads it. ## The display session's verb (`i3`) 29. **`i3` serves `open`** (ADR 0687 §4; H-M2, U-M2). Its claim of `node-display-session` serves `open` beside its three verbs, as the tool `node-display-session.open`. It checks the address by §3's refusals and percent-encodes - it by §3's encoding; it finds the session's bus and runtime directory with its `desktop` package, asks `xdg-mime query + it by §3's encoding; it finds the session's bus and runtime directory with its `desktop` package, used only to + find the session; its opener runs in `cmd/i3-tools`, not in the shared `desktop` package, whose `Exec` kills a + command at its deadline, so its 10 s bound is its own (DMC-8). It asks `xdg-mime query default x-scheme-handler/` for the program, refusing when there is none, and runs `systemd-run --user --collect --quiet --wait -- xdg-open
` with the address as one argument, never a command line: not through i3's IPC `exec`, which hands a shell a line. The run's outcome is decided as §18 decides it (10 s), and the answer names the program only once it started. It reads the command from the entry's `Exec` line in the XDG data directories. With no graphical session it refuses, as its other tools answer. Its manifest declares the package `xdg-utils` present (ADR 0303 §2). It writes one journal line per call, the address, opened or refused, and the - program or the reason (R2-14). + program or the reason (R2-14). **`open` is an act**: each call is written to the log of acts done by hand through + `seat:mesh-hand-acts.hand-act`, with its caller and why, as issue 935 asks and as nftables writes its acts; its + manifest `invokes` it (DQ-7). 30. **`i3` hears nothing of the uplink** (ADR 0689 §3, replacing ADR 0687 §5). It consumes no `node-uplink` event and reads no kept event at its session's start, so ADR 0443 §3 holds untouched. Checked by the milestone's code review: no consumer of `node-uplink`'s events and no read of kept events in `i3`. @@ -355,7 +403,7 @@ stays behind. https, a file path and each other refusal of §3; an address holding `'`, `;`, a space, `$(`, `,` and `"` is handed on percent-encoded as one argument and no shell reads it (R2-9); an opener that fails is refused with its status and names no program; one that ends well answers `opened` with the program; one still running at its bound answers - `opening`. The live tests are the main file's acceptance test 3. + `opening`; each call writes one act to the log of acts done by hand (DQ-7). The live tests are the main file's acceptance test 3. ## Words and checks diff --git a/03-DESIGN/01-to-be/42-the-machines-modules-in-order.md b/03-DESIGN/01-to-be/42-the-machines-modules-in-order.md index 7ad5d5d1..682a61ce 100644 --- a/03-DESIGN/01-to-be/42-the-machines-modules-in-order.md +++ b/03-DESIGN/01-to-be/42-the-machines-modules-in-order.md @@ -319,7 +319,7 @@ one http or https address in the person's default browser, in their session, as opened it and refusing every other scheme and a file path; `i3` serves it, beside its own `i3_exec`, for any caller over the bus (issue 935). `i3` does not react to a network's sign-in page: the uplink's holder opens that page on its own machine (ADR 0689 §1, design 08 §7). Every line it builds is in design 08's milestone part -[sign-in-page](08-milestones/sign-in-page.md), §3 and §26 to §28. +[sign-in-page](08-milestones/sign-in-page.md), §3 and §29 to §31. ## Phase 3 — one machine model