The node-engine never overwrites a rank wait with the composer's mark; the composer's watch ends with its run (H-A-480) #252

Merged
mesh-tools merged 3 commits from fix/rank-wait-kept into main 2026-11-22 15:22:37 +00:00
3 Commits
Author SHA1 Message Date
jschoubben 43839ae66a H-A-480 c: test the rank wait and the clear's guard; say a mark lost to every race
Review round 1: the line that never marks a module waiting for its rank and the
clear's "only while the have still says the mark" had no failing test; each now
has one. A mark whose every write lost its race is now said, not dropped silently
(P-failure-loud).

Builds: design 47 H2 H-A-480 (review round 1 finding)
2026-11-22 16:19:14 +01:00
jschoubben a22769bbc6 H-A-480 b: the composer's watch ends with the agent's stop
The composer's loop and its hearers outlived the node agent's run and logged after
it ended; the node agent now waits for them (Composer.Wait) once its run stops.

Builds: design 47 H2 H-A-480
2026-11-22 16:12:10 +01:00
jschoubben cb5eddeba8 H-A-480 a: the composer's mark is a compare-and-set on the have's revision
Under load, a rank wait settle wrote between the composer's read of a have and its
mark was overwritten by the mark and never written again. The mark and its clear
now write over the revision they read (a lost race reads again and keeps the other
cause), a module waiting for its rank is never marked, and a mark on a module that
never ran is cleared at the next pass that composes it.

Builds: design 47 H2 H-A-480 (and its addendum), H §771, H-A-59
2026-11-22 16:12:10 +01:00