diff --git a/modules/mesh-build-node/cmd/mesh-build-node/manifest_test.go b/modules/mesh-build-node/cmd/mesh-build-node/manifest_test.go index 03d182e38..a42a2795f 100644 --- a/modules/mesh-build-node/cmd/mesh-build-node/manifest_test.go +++ b/modules/mesh-build-node/cmd/mesh-build-node/manifest_test.go @@ -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 _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 diff --git a/modules/mesh-build-node/module.json b/modules/mesh-build-node/module.json index 1f141d375..f7e290458 100644 --- a/modules/mesh-build-node/module.json +++ b/modules/mesh-build-node/module.json @@ -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",