The build modules declare what their seat-list reader uses (A-488a, A-488b) #705

Merged
mesh-tools merged 2 commits from fix/build-node-consumes into main 2026-11-19 12:51:11 +00:00
2 changed files with 12 additions and 0 deletions
Showing only changes of commit daa5d3ea5f - Show all commits
@@ -277,6 +277,14 @@ func TestTheModuleRequiresNodeToolsItPullsThrough(t *testing.T) {
if !slices.Contains(m.Requires, "node-tools") {
t.Errorf("requires %v lack node-tools", m.Requires)
}
// Design 47 G A-488a: its runtime follows the seat list (seatlist.Start subscribes to the seat mesh-catalog's events), so the
// module consumes both, which makes its durable consumer <node>_mesh-build-node_tools: with none, the seat list is never
// read and the asks of a named asker are given back for ever.
for _, ev := range []string{"mesh-catalog.seat-definition-changed", "mesh-catalog.seat-definition-removed"} {
if !slices.Contains(m.Consumes, ev) {
t.Errorf("consumes %v lack %s", m.Consumes, ev)
}
}
}
// Design 47 G A-254, A-313, A-314: the module keeps a run's answer over what step-ended carries inline in the steps state's own
+4
View File
@@ -24,6 +24,10 @@
"serves": ["current", "drop", "pause", "resume", "steps", "kept-artifact", "output"]
}
],
"consumes": [
"mesh-catalog.seat-definition-changed",
"mesh-catalog.seat-definition-removed"
],
"config": {
"capacity": {
"type": "number",