Commit Graph
3419 Commits
Author SHA1 Message Date
jschoubben b7ba5a3535 gitea: the whole test creates the state fingerprints and reads the stored version's key
Builds: design 47 H2 H-A-589 (2)
2026-11-25 17:39:26 +01:00
jschoubben 804f5c4ab4 failurekit: G8 kit-checked, a build module whose tests do not run the reproducible case is refused
Every build module claiming a node-build-* seat must hold a test that calls
conformance.Reproducible; mesh-build-node's tests now run it over its bundle
build, as mesh-build-go's and mesh-build-image's do. A row of the check's test
(a module with the rest of the kit and no reproducible case) is refused.

Builds: design 47 H2 H-A-591 (4), H-A-593 (3)
2026-11-25 17:39:00 +01:00
jschoubben f6dbeafeea mesh-build-image: G7 reproducible-image, buildah bud --timestamp 0 and the kit's case over a real build
The image's creation time and every layer file's time are the Unix epoch; the
image fixture (no fetching step) built by real buildah in two folders gives one
manifest digest (without the flag the case fails, naming the artifact and both
digests). No label names a commit, a folder, a time or a node; the version
label stays.

Builds: design 47 H2 H-A-591 (3), H-A-593 (3)
2026-11-25 17:38:12 +01:00
jschoubben 5c1911dd7c gitea: the package seats' bed passes the publish kit unchanged, no answer translated
Builds: design 47 H2 H-A-729, H-A-738 (1), H-A-593 (2)
2026-11-25 17:36:06 +01:00
jschoubben 1841bc959e build modules: G9 again-delays-default, 15s,90s in mesh-build-go, mesh-build-image and mesh-build-node
The default spans the tool runner's restart (three runs, 105 s); each module's
test reads the declared default and requires 15 s after the first run and 90 s
after the second.

Builds: design 47 H2 H-A-603, H-A-570 (5)
2026-11-25 17:35:57 +01:00
jschoubben 64f68ec3f0 mesh-build-go: G6 reproducible-go, the kit's case over a bundle, an archive and a Go package
The build step builds a fixture of each kind it builds twice, in two workspace
folders of other names and file times, and requires one digest per artifact.
The case names nothing to fix: the recipe's -trimpath and -buildvcs=false, the
epoch-timed sorted pack and the Go module zip give one digest (without
-trimpath the case fails, naming the artifact and both digests).

Builds: design 47 H2 H-A-591 (1) (5), H-A-593 (3)
2026-11-25 17:35:56 +01:00
jschoubben 7c1f61f735 gitea: G3 held-version-answered, the fingerprints state and other-bytes (go and npm seats)
A version the forge holds at another digest is answered other-bytes {digest,
kept fingerprint}, the call not failing, nothing stored, no transfer named in
the answer. The state fingerprints (16 MiB, key <name>.<version> escaped) is
written before the forge takes a version (a write refused at its cap refuses
the publish), deleted at removed (remove and retention) and read by versions.

Builds: design 47 H2 H-A-589 (1) (2) (3), H-A-612, H-A-593 (2), H-A-618 (1), H-A-667, H-A-729, H-A-732, H-A-738 (1)
2026-11-25 17:32:59 +01:00
jschoubben 0aed3065b5 distribution: G3 held-version-answered, the fingerprints state and other-bytes
A version held at another digest is answered other-bytes {digest, kept
fingerprint}, the call not failing, nothing stored, no transfer opened; the
reader compares the fingerprint. The state fingerprints (16 MiB, key
<name>.<version> escaped) is written before the store takes a version
(a write refused at its cap refuses the publish), deleted at removed and
read by versions. No fill finding.

Builds: design 47 H2 H-A-589 (1) (2) (3), H-A-612, H-A-593 (2), H-A-618 (1), H-A-667, H-A-729, H-A-732, H-A-738 (1)
2026-11-25 17:29:48 +01:00
jschoubben 8baa3f5ada mesh-provisioner: a read of a followed state before its copy is read is the fault away
H-A-717's answer to DQ-55: the holder's handlers ask WatchedStates.Unread before they read the
states it follows from its start; its own states, followed on first read, still wait.

Builds: design 47 H2 H-A-708 (2), H-A-717 (DQ-55)
2026-11-25 17:16:13 +01:00
jschoubben 3b7d5c8328 mesh-vault: a read of the assignments before their first view is answered is the fault away
H-A-717's answer to DQ-55: mesh-vault's word is answered as away, the view's owner verb named.

Builds: design 47 H2 H-A-708 (2), H-A-717 (DQ-55)
2026-11-25 17:15:24 +01:00
jschoubben 8f8d749bb8 mesh-build-go: the state steps asks 64 MiB
G17 steps-at-64: ADR 0690's state entries stay at 64 MiB.

Builds: design 47 H2 H-A-678, H-A-694
2026-11-25 17:13:38 +01:00
jschoubben c7681636a8 mesh-config: a read before its first view is answered is the fault away, naming the view
G21 config-first-view-away: views.Follower.Unread for the owners' views, WatchedStates.Unread
for the module's own states, whose watches start with the module.

Builds: design 47 H2 H-A-708 (2), H-A-717 (DQ-55 in part: mesh-config)
2026-11-25 17:12:31 +01:00
jschoubben 9c8ce82151 mesh-issues: the runner's show is read to its last page before a pipeline row is written
G20 issues-read-show-pages.

Builds: design 47 H2 H-A-709 (2)
2026-11-25 17:11:26 +01:00
jschoubben 5a82d93ccb gitea: a start ends the token files an earlier build kept, revoked at the forge, never read
G2 token-stand-in-goes (TypeScript half): at each start while a token file remains and once
this start's token is held, the forge's token lists are read before any token is deleted, a pair
is matched by the token's last eight characters and its scopes, revoked by its id and deleted;
a .tmp goes with its pair, a cut one unrevoked; a pair that stays is the finding
token-file-unrevoked. findingKey and findingValue move to findings.ts.

Builds: design 47 H2 H-A-575, H-A-602, H-A-642, H-A-699
2026-11-25 17:10:33 +01:00
jschoubben c1abd7e210 gitea: the Go bundles read a token from the vault alone, no token file stands in
G2 token-stand-in-goes (Go half): TokenFile, fromFile, DefaultStateDir, SourceFile, the
line at start naming the source and the two env lines go.

Builds: design 47 H2 H-A-575, H-A-602, H-A-642
2026-11-25 17:07:30 +01:00
jschoubben ce04011f96 gitea: a member whose base is no watched branch is merged plainly with the note, not refused
G1b unwatched-base-merged: judgeMember marks a member plain when its base is no
watched branch, whatever its repository; the note's words are the one constant
for both cases (DQ-49); the refusal row leaves the table and a row is added.

Builds: design 47 H2 H-A-704, H-A-717 (DQ-49)
2026-11-25 17:05:52 +01:00
jschoubben f282a74e59 gitea: the patch spool is read by the module's own account
Review round 1: since gitea runs as its own account, the tools no longer run as
the machine's account that owns the forge-patches directory; they read and
remove the named file as any other account may.

Builds: design 47 H2 H-A-543
2026-11-25 17:02:17 +01:00
jschoubben 1d9e8d6824 gitea runs as its own account, so the vault gives it its own secret
gitea asks the vault for module/gitea/* from inside the machine's tool runner,
whose calls are named <machine>.node-tools, and the vault refuses that account:
every gitea tool and the seat git's merge-pull failed. Its manifest now declares
runs-as gitea, the user resource gitea (in the group docker, which the seat
git's note verb needs for docker exec into the forge's container),
secrets-owner gitea and the own secret broker, so the node-engine composes a
runtime of its own for it on the account <machine>.gitea.

Builds: design 47 H2 H-A-543, H-A-545 (1)
2026-11-25 17:02:17 +01:00
jochen cd17899328 networkmanager: the uplink-names moments test waits on each call, not on the scheduler
The test changed check-address while the bundle, running beside it, had not yet read it
for its start's call. On a temporary directory in memory with one CPU, as a build step
runs, nothing yields before the test's write, so the start's call read the empty address
every time (pipeline main.517, asks mwvdrpjpbb0cf9 and mwvdrpjpb6c9b9); on a disk the
fsync yielded and it passed. The stood-in resolver now says each uplink-names call, and
the test changes the address only after the call before it.

Builds: design 08 sign-in-page §13, §25
2026-11-25 01:37:04 +01:00
mesh-tools 5153e5fdc2 Merge pull request 'networkmanager opens a network's sign-in page on its own machine (design 08 sign-in-page)' (#755) from feat/sign-in-page-uplink into main 2026-11-25 00:20:12 +00:00
mesh-tools 1712612729 Merge pull request 'i3 serves node-display-session.open (design 08 sign-in-page, issue 935)' (#754) from feat/sign-in-page-i3 into main 2026-11-25 00:20:10 +00:00
jochen ac50980ba1 systemd-resolved: the names file write refuses naming its bound on the deadline (review r2 (3))
Past WriteUplinkNamesBound (15 s) the refusal read the bare signal the
deadline killed the process with ("install failed: signal: killed"); it
now names the bound and says the file was left as it was, for either
step (install or mv).

Builds: design 08 sign-in-page §6, C-8
2026-11-25 01:18:09 +01:00
jochen d859380669 systemd-resolved: the machine's socket answers routes with outside_writes too (review r2 (5))
It answered an empty outside_writes while the bus answered the kept
history; the socket now reads the guard's own history (its own history
file, the same the bus's tools() reads in production), so both answer
the same (§5, DQ-5).

Builds: design 08 sign-in-page §5, §9, DQ-5
2026-11-25 01:17:55 +01:00
jochen 8f86aedeae systemd-resolved: checkUnknownPaths knows exactly its own files (review r2 (4))
It treated the verb's own uplink-names.new as unknown and accepted any
bare *.tmp; it now knows exactly uplink-names, uplink-names.new,
uplink-names.applied and uplink-names.applied.tmp, as §6 and §8 name
them, and nothing else.

Builds: design 08 sign-in-page §6, §8, C-7
2026-11-25 01:17:26 +01:00
jochen 9a3149df88 i3: test the opener's no-kill run with pipes, never a real sleep
Code review round 2 (C-5 follow-up). openerRun's core is now runWithoutKilling(ctx,
*exec.Cmd), callable directly by a test with a command of its own. The test's child
blocks reading its stdin (a pipe held open past the bound); after confirming
TimedOut, the test closes the pipe to unblock it, then waits on the child's own
end (a byte written to an extra file just before it exits, read with a plain
blocking read) instead of sleeping and polling for a marker file. A kill at the
bound now leaves that read empty, which the test checked by reintroducing the old
signal and watching it fail.

Builds: design 08 sign-in-page §3, §29
2026-11-25 01:13:18 +01:00
jochen 8ca052a0c7 networkmanager: the whole test's runtime publishes only what the membership lists
The stand-in tool runner refuses a subject the module's membership does not list, as
the runtime's mayPublish does: the module's held seat's own-node events, read from its
manifest and the nodeuplink contract (MembershipFor's rule at mesh-delivery ef8dd120).
Another node's subject is refused and stays kept.

Builds: design 08 sign-in-page §4a, §25; lead answer C-1
2026-11-25 01:13:13 +01:00
jochen 349ef43a36 networkmanager: a watcher refused at its start by a bus that is there exits
When the first subscribe fails while the system bus's socket is already there, no file
event will make it again: the watcher writes the reason to its journal and exits
non-zero, so its unit shows failing instead of staying active and deaf.

Builds: design 08 sign-in-page §14; lead answer C2-1 (hq f15bc2fd)
2026-11-25 01:12:23 +01:00
jochen a74afe71f3 systemd-resolved: an unknown path in its directory is left and journalled once (review r1 C-7)
The checks/owned check refuses a directory without unknown (ADR 0422 §8).
/var/lib/node-resolver stays, its value "module" (lead answer L-1), not
"program": no other program writes there. The guard looks for a path it
does not know every round and, finding one, leaves it exactly as it is
and says so to the journal once, never every round.

Builds: design 08 sign-in-page §6, C-7
2026-11-24 22:01:21 +01:00
jochen bd6dcdcd0c systemd-resolved: judge "in place" from what resolved holds now (review r1 C-4, note c)
C-4: the guard reads the link's domains fresh with rawDomainsOf before
skipping a round, never trusting its own applied record alone, so a
network manager that rewrites the link's domains, or a restarted
resolved, is found and the names are set again.

note (c): fallback.json's since is the time of the guard's first round,
never the zero time; it moved only on a real turn before, so the first
round's write carried a zero since.

Builds: design 08 sign-in-page §7, §8, C-4
2026-11-24 22:01:01 +01:00
jochen 717f8ec2e5 systemd-resolved: answer with the generated contract's own types (review r1 C-6, C-8)
C-6: import noderesolver (mesh-networking's seat definition) at the zero
version; routes, route, unroute and uplink-names answer with its
RoutesAnswer, RouteAnswer, UnrouteAnswer and UplinkNamesAnswer, never a
map or a parallel struct, and uplink-names' input names is a JSON array
(arrayArg), never a comma- or space-split string.

C-8: the names file write's 15 s is the stated constant
WriteUplinkNamesBound, not an inline literal.

Builds: design 08 sign-in-page §2, §5, §6, §9, DQ-12, C-6, C-8
2026-11-24 22:00:15 +01:00
jochen a94f9f14aa i3: open's own non-killing opener run, the generated answer type, a hand-act on every call
Code review round 1 (C-5, C-6, note (b)):
- open's opener now runs through its own openerRun, which stops waiting at its bound
  without sending any signal, instead of internal/desktop's Exec, which kills the
  command's process group at its deadline; a browser started under the account's
  service manager is never torn down by open's own 10 s bound (DMC-8).
- open imports mesh-contracts' generated nodedisplaysession package at the zero
  version and answers with its OpenAnswer type and Started constants; main.go names
  the tool from its Seat and VerbOpen constants.
- Every call to open, refused or not, writes one act to the log of acts done by hand
  (DQ-7 says "each call"), not only one that reaches the opener.

Builds: design 08 sign-in-page §3, §29
2026-11-24 21:53:45 +01:00
jochen 397e627b02 networkmanager: the watcher's health is its unit's state
The sign-in process is judged by its unit being active, on the machine without the bus,
and NetworkManager's service keeps no state and no health again. The watcher exits
non-zero when it cannot subscribe once the system bus came back, so its unit shows
failing; uplink_health stays a tool that reads and no longer gives the names again.

Builds: design 08 sign-in-page §11, §13, §14, §23, §24, §25, §27; lead answer C-2c (hq 6752a5cf)
2026-11-24 21:53:29 +01:00
jochen 55a90d963e networkmanager: the watcher redials the system bus only at its socket's event
A refused or dropped system bus is dialled again only at the file event that makes its
socket and at rating-again, never because the socket is merely there, so a bus that
refuses the watcher is not dialled in a loop.

Builds: design 08 sign-in-page §14; lead answer note (d) (hq df22a138)
2026-11-24 21:50:49 +01:00
jochen 42b5a7aef3 networkmanager: the watcher socket's bound is a stated constant
Builds: design 08 sign-in-page §12; lead answer C-8 (hq df22a138)
2026-11-24 21:50:00 +01:00
jochen 77602d8586 networkmanager: NetworkManager's unit is checked beside the watcher's tool
NetworkManager's service carries a check of kind unit, still with no state, so the
watcher's tool check stands beside a check of another kind, as zfs's units stand beside
its watch process's tool check.

Builds: design 08 sign-in-page §27; lead answer C-2 (hq df22a138)
2026-11-24 21:49:42 +01:00
jochen ae7d0f874b systemd-resolved: declare the private-interface fact, the literal mesh0 (lead answer L-2)
The fact itself was missing from the manifest (R2's own gap): the guard
and the uplink-names verb's DefaultRouteLink already read
/etc/node-resolver/private-interface, but nothing rendered it. Its
template is the literal "mesh0" per L-2, quick not thorough: the live
interface, named the same way already by netcheck's TunnelInterface and
networkmanager's unmanaged-devices. One value every module reads instead
is L-2's finding, carried outside this milestone.

Builds: design 08 sign-in-page §7, DQ-1
2026-11-24 21:36:32 +01:00
jochen 691ad760d3 systemd-resolved: test that a changed list replaces the old one on the link (issue 960)
R2's acceptance criteria name this case directly: the file's list changes
while the default-route link stays the same, and the guard gives the new
names to that same link without moving them first.

Builds: design 08 sign-in-page §7, §9
2026-11-24 21:34:42 +01:00
jochen 0c2a95aacd systemd-resolved: README names uplink-names, its files and the guard's new duty (issue 960)
Says the verb and its answer, the two new files (uplink-names, its
applied record) and fallback.json, the guard's round over the default-
route link, the sudo -n install / mv -f commands, and that uplink-names
only sets how resolved answers those names over a link, never the link
itself.

Builds: design 08 sign-in-page §10
2026-11-24 21:33:25 +01:00
jochen e20d3c7548 M8 networkmanager: the folder's unknown is the module's
The folder the two parts share says unknown module, so the node-engine does nothing
inside it and the watcher reacts: a path it does not know is left as it is and written
to its journal once per path, at its start and at the file event that makes it; the
README says so.

Builds: design 08 sign-in-page §12, §24, §25, §27; lead answer L-1 (hq 3a3a18a9)
2026-11-24 21:31:51 +01:00
jochen dd35217275 M10 networkmanager: the whole-module test
The watcher, its system bus and desktop stood in, opens the page with no bus; then the
built bundle, played as the tool runner plays it over a real bus with node-uplink's
events and a stand-in holder of node-resolver, publishes the kept events in order
with the times of their changes, each matching the seat's definition, and calls
uplink-names.

Builds: design 08 sign-in-page §1, §25, §26, §33
2026-11-24 21:29:28 +01:00
jochen 20c53a14db M9 networkmanager, systemd-networkd: their READMEs
networkmanager's README says its two parts and their folder, how the watcher opens the
page and finds the session without the bus, the events it keeps and the bundle
publishes, and the uplink-names call; systemd-networkd's says it announces neither
event and opens nothing.

Builds: design 08 sign-in-page §24, §28
2026-11-24 21:26:45 +01:00
jochen 9f5614b35e systemd-resolved: routes answers the uplink's names and the mesh's fallback (issue 960)
routes (bus and the machine socket) gains uplink_names {names, link,
refused}, the applied list's names resolved holds on that link now, never
the file's, and mesh_resolvers {silent, since} from the guard's fallback
state. The guard writes that state at each of ADR 0688's two turns, and
once more at its own first round, since it goes at every boot.

Builds: design 08 sign-in-page §2, §8, §9
2026-11-24 21:26:30 +01:00
jochen dc27af2227 M8 networkmanager: the manifest declares the sign-in parts
The manifest declares the watcher as a process run as the account with uplink_health
as its health, the folder the two parts share (the account's, 0700), the running event
the bundle consumes, the three verbs it invokes and its five tools.

Builds: design 08 sign-in-page §11, §12, §13, §27
2026-11-24 21:26:14 +01:00
jochen 1dec6eb02c M7 networkmanager: its tools and health
The bundle serves uplink_sign_in, uplink_names_again, uplink_rating_again,
uplink_publish_again and uplink_health: the read of the reaction, the three acts the
parts do by themselves, and the watcher process's health, which also gives the names
again where the resolver no longer holds them.

Builds: design 08 sign-in-page §13, §23
2026-11-24 21:25:17 +01:00
jochen 786a23638b M6 networkmanager: the bundle gives the resolver the check's name
The bundle calls this node's node-resolver uplink-names with the check address's host
at its start, at a changed check-address, at its bus connection's return and when this
node's holder of node-resolver runs, reading the holder from the assignments; no holder
is recorded and no failure, a failed call stands failed in names.json until the next
moment.

Builds: design 08 sign-in-page §12, §13, §22
2026-11-24 21:23:56 +01:00
jochen b694c5e2a5 systemd-resolved: the guard applies the uplink's names every round (issue 960)
Each round it finds the link carrying the default route (the lowest-metric
kernel default route that is neither one route routed nor the private
network's interface), gives it the names from uplink-names's file plus
its own search and routing domains, and takes them off the link they were
on before when that differs. What it applied is kept in
uplink-names.applied, read at its own start so a restart never infers
which link to take them off, and a resolved refusal is journalled once
per change, not every round. The guard's own names are left out of
whether a link is judged `route` routed, so the fallback still gives a
link holding only them its default route back while the mesh's resolvers
are silent (ADR 0688 stands).

Builds: design 08 sign-in-page §7, §8
2026-11-24 21:23:06 +01:00
jochen f6646c7254 M5 networkmanager: the bundle publishes the kept events
The bundle publishes what the watcher kept, in order and under each event's own
message id, deleting each once the stream acknowledged it and keeping a refused one
for the next moment: its start, a file event on pending/ and its bus connection's
return. The watcher now names the events by the seat's generated contract.

Builds: design 08 sign-in-page §1, §20, §22
2026-11-24 21:22:01 +01:00
jochen a4169a2325 M4 networkmanager: open the page and tell the person
At a join, at the watcher's start and at a session's start while PORTAL, once per ask,
the watcher opens the check address with systemd-run --user and xdg-open in the
person's session and then shows the notification its outcome calls for, critical when
the open failed; it says when the network is open, and handles what it hears during
an open after it.

Builds: design 08 sign-in-page §15, §18, §19, §22
2026-11-24 21:20:20 +01:00
jochen a40d7fb1c4 systemd-resolved: serve uplink-names, writing the host names file (issue 960)
The verb checks each host name (root, wildcard, trailing dot, a label over
63 bytes, the mesh's own domain or under it, more than 8), writes
/var/lib/node-resolver/uplink-names whole through sudo -n install then
sudo -n mv -f, and answers the names with the link carrying the default
route (the lowest-metric kernel default route that is neither routed nor
the private network's interface) and when they were set.

Builds: design 08 sign-in-page §2, §5, §6
2026-11-24 21:19:35 +01:00
jochen fee3f8ab8b M3 networkmanager: the person's session
The watcher finds the person's graphical session from logind and the user manager's
environment, and acts on a session's start once that environment names a display; the
user manager sends no PropertiesChanged for Environment, so it is read again at the
file events on the X server's socket folder and the session's runtime directory, for
at most 60 s.

Builds: design 08 sign-in-page §15, §16, §17
2026-11-24 21:18:36 +01:00