node-engine: every process it runs gets MESH_NODE, a running one at its first pass after the update (issue 1984) #258

Merged
mesh-tools merged 3 commits from fix/mesh-node-composition into main 2026-11-25 14:35:24 +00:00
Member

Builds design 47 G A-342 (the node-engine sets MESH_NODE in every process it runs) and H2's lead answers H-A-711, H-A-713 and H-A-714 (hq design/47-H2-answers-61, files 03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md and -6.md). Issue 1984, rows AC15, AC16, AC17 (notes 37, 38, 40).

  • 32c5711: a module's composition is applied for its node (declarationOf sets For from the compositions' Node; a mixed or empty node errors, the apply refuses an empty For), so its processes get MESH_NODE. networkmanager's sign-in crash-loops on three machines for lack of it.
  • c312e6a: the refused composition writes nothing (1984/AC15).
  • 3c2e60d: a module taken as running its want's composition at the start has the unit of each process whose composed unit differs from its applied record's written again, by the one function the apply builds its record with (apply.ProcessWrote); only services restart; run-once and scheduled units are written, not run; no backup, no other resource, the have unchanged; a held module or one whose want names a new fingerprint is not touched; a process whose record names another bundle is left and said; a failed reload is said (1984/AC16, AC17).

What restarts at this delivery: every service a module's composition places, once, on every node, the tool runner among them (the mesh MCP server drops once). The operator accepted a one-time restart of every process, 2026-11-25 about 14:40 CET.

Quick or thorough: thorough. Every process gets the name from the one place that composes it, and the processes already running get it once at the start, not only the one module that crash-looped.

Tests: gofmt, go vet (plain and -tags integration) and go test ./... are clean (GOWORK=off with the repository's go.mod modfile). Each row was seen failing without its change.

Reviewed-by: mesh-code-reviewer@shanks, rounds 1 to 3, the last at 496c0000e37717205d745da184c955d854ef03c3 (not approved: two small findings and one design question). lead-47@shanks checked their fixes and H-A-714 at 3c2e60dc1f: the diff, the suite, and the another-bundle row failing without its line. No fourth round (rules-are-weighed).

Builds design 47 G A-342 (the node-engine sets MESH_NODE in every process it runs) and H2's lead answers H-A-711, H-A-713 and H-A-714 (hq design/47-H2-answers-61, files 03-DESIGN/01-to-be/47-milestones/H2-lead-answers-5.md and -6.md). Issue 1984, rows AC15, AC16, AC17 (notes 37, 38, 40). - 32c5711: a module's composition is applied for its node (declarationOf sets For from the compositions' Node; a mixed or empty node errors, the apply refuses an empty For), so its processes get MESH_NODE. networkmanager's sign-in crash-loops on three machines for lack of it. - c312e6a: the refused composition writes nothing (1984/AC15). - 3c2e60d: a module taken as running its want's composition at the start has the unit of each process whose composed unit differs from its applied record's written again, by the one function the apply builds its record with (apply.ProcessWrote); only services restart; run-once and scheduled units are written, not run; no backup, no other resource, the have unchanged; a held module or one whose want names a new fingerprint is not touched; a process whose record names another bundle is left and said; a failed reload is said (1984/AC16, AC17). What restarts at this delivery: every service a module's composition places, once, on every node, the tool runner among them (the mesh MCP server drops once). The operator accepted a one-time restart of every process, 2026-11-25 about 14:40 CET. Quick or thorough: thorough. Every process gets the name from the one place that composes it, and the processes already running get it once at the start, not only the one module that crash-looped. Tests: gofmt, go vet (plain and -tags integration) and go test ./... are clean (GOWORK=off with the repository's go.mod modfile). Each row was seen failing without its change. Reviewed-by: mesh-code-reviewer@shanks, rounds 1 to 3, the last at 496c0000e37717205d745da184c955d854ef03c3 (not approved: two small findings and one design question). lead-47@shanks checked their fixes and H-A-714 at 3c2e60dc1f37d53c1a7f5ac907aa8e976e3b8093: the diff, the suite, and the another-bundle row failing without its line. No fourth round (rules-are-weighed).
mesh-tools added 3 commits 2026-11-25 14:35:20 +00:00
declarationOf never copied the composition's Node into the declaration's For, so no process
placed by a composition got MESH_NODE. Compositions of two nodes, or a composition naming no node,
are refused.

Builds: design 47 G A-342
Builds: design 47 G A-342
A module taken as running its want's composition at the start (the agent's TakenAtStart, now the named
takenAtStartIn the node agent hands it) has the unit of each process whose composed unit differs from its
applied record's written again, by one function (apply.ProcessWrote, which the apply builds its record with
too), and the record takes it, so a second pass finds nothing. Nothing is applied: no backup, no other
resource, the have unchanged. A held module, or one whose want names a new fingerprint, is never taken as
running and is not touched. A process whose record names another bundle, or none, is left as it is and said
(H-A-714); a failed units reload is said.

What restarts: services only. Run-once steps and scheduled processes' units are written, not run or started.
Brother's two processes (brother-device, brother-watch; neither run-once nor scheduled) are services: each
restarts once, if brother runs its want's composition.

Builds: design 47 G A-342, H-A-711, H-A-713, H-A-714
mesh-tools merged commit 19db1971c7 into main 2026-11-25 14:35:24 +00:00
mesh-tools deleted branch fix/mesh-node-composition 2026-11-25 14:35:25 +00:00
Author
Member

{
"records": [
{
"instance": "record/main_164_0672e533",
"sequence": 86337,
"bytes": 1258,
"of-bytes": 65536,
"record": {
"milestone": "main.164",
"branch": "main",
"source": 164,
"call": "5b9d634f0c6a51c0",
"heads": {
"novox/mesh-host@258": "19db1971c7f0b4c06c71225086a2bac0e72d4a06"
},
"opened": "2026-11-25T14:35:25.256423825Z",
"form": 3,
"trace": {
"pulls": [
"novox/mesh-host@258"
],
"commits": [
"19db1971c7f0b4c06c71225086a2bac0e72d4a06"
],
"source": "164",
"call": "5b9d634f0c6a51c0",
"by": "lead-47@shanks",
"account": "shanks.node-tools",
"at": "2026-11-25T14:35:25.202Z"
},
"ended": {
"at": "2026-11-25T14:44:58.746691075Z",
"why": "every present node runs its entries"
},
"movers": 1,
"merge-called": "2026-11-25T14:35:25.202Z",
"phases": {
"build": {
"end": "2026-11-25T14:36:55.559482369Z",
"start": "2026-11-25T14:36:04.370023085Z"
},
"composition": {
"end": "2026-11-25T14:37:17.565120326Z",
"start": "2026-11-25T14:36:38.184789239Z"
},
"ended": "2026-11-25T14:37:30.33931949Z",
"integration": {
"end": "2026-11-25T14:37:18.412312615Z",
"start": "2026-11-25T14:36:04.370023085Z"
},
"lint": {
"end": "2026-11-25T14:37:30.33931949Z",
"start": "2026-11-25T14:36:04.370023085Z"
},
"placed": "2026-11-25T14:36:04.370023085Z",
"taken": "2026-11-25T14:35:50.805445636Z",
"unit": {
"end": "2026-11-25T14:37:23.728971529Z",
"start": "2026-11-25T14:36:04.370023085Z"
},
"validate": {
"end": "2026-11-25T14:36:38.184789239Z",
"start": "2026-11-25T14:36:04.370023085Z"
}
}
}
}
]
}

<!-- mesh-delivery:view --> { "records": [ { "instance": "record/main_164_0672e533", "sequence": 86337, "bytes": 1258, "of-bytes": 65536, "record": { "milestone": "main.164", "branch": "main", "source": 164, "call": "5b9d634f0c6a51c0", "heads": { "novox/mesh-host@258": "19db1971c7f0b4c06c71225086a2bac0e72d4a06" }, "opened": "2026-11-25T14:35:25.256423825Z", "form": 3, "trace": { "pulls": [ "novox/mesh-host@258" ], "commits": [ "19db1971c7f0b4c06c71225086a2bac0e72d4a06" ], "source": "164", "call": "5b9d634f0c6a51c0", "by": "lead-47@shanks", "account": "shanks.node-tools", "at": "2026-11-25T14:35:25.202Z" }, "ended": { "at": "2026-11-25T14:44:58.746691075Z", "why": "every present node runs its entries" }, "movers": 1, "merge-called": "2026-11-25T14:35:25.202Z", "phases": { "build": { "end": "2026-11-25T14:36:55.559482369Z", "start": "2026-11-25T14:36:04.370023085Z" }, "composition": { "end": "2026-11-25T14:37:17.565120326Z", "start": "2026-11-25T14:36:38.184789239Z" }, "ended": "2026-11-25T14:37:30.33931949Z", "integration": { "end": "2026-11-25T14:37:18.412312615Z", "start": "2026-11-25T14:36:04.370023085Z" }, "lint": { "end": "2026-11-25T14:37:30.33931949Z", "start": "2026-11-25T14:36:04.370023085Z" }, "placed": "2026-11-25T14:36:04.370023085Z", "taken": "2026-11-25T14:35:50.805445636Z", "unit": { "end": "2026-11-25T14:37:23.728971529Z", "start": "2026-11-25T14:36:04.370023085Z" }, "validate": { "end": "2026-11-25T14:36:38.184789239Z", "start": "2026-11-25T14:36:04.370023085Z" } } } } ] } <!-- mesh-act:view.record/main_164_0672e533.novox/mesh-host#258@1795617898754005205.bafba395 -->
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: novox/mesh-host#258