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
3 Commits
Author SHA1 Message Date
jschoubben 3c2e60dc1f node-engine: at its first pass after an update, a process taken as running gets its unit written again with MESH_NODE (1984/AC16, AC17; H-A-711, H-A-713, H-A-714)
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
2026-11-25 15:34:13 +01:00
jschoubben c312e6a30e node-engine: the refused composition test asserts nothing was written (1984/AC15)
Builds: design 47 G A-342
2026-11-25 15:00:26 +01:00
jschoubben 32c57111d6 node-engine: a module's composition is applied for its node, so its processes get MESH_NODE (design 47 G A-342)
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
2026-11-25 14:47:20 +01:00