From daa5d3ea5f037e4e46ac0badc7a11342df71f6a4 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 19 Nov 2026 13:41:12 +0100 Subject: [PATCH] mesh-build-node consumes the seat list's events, so its runtime's consumer exists Its runtime follows the seat list (seatlist.Start subscribes to mesh-catalog.seat-definition-changed and -removed); with no consumes there was no consumer shanks_mesh-build-node_tools, the seat list was never read and the asks of a named asker were given back. Builds: design 47 G A-488a (hq 25df48ad) Claude-Session: https://claude.ai/code/session_01JG73KHUnBze48rdua8u2sy --- .../mesh-build-node/cmd/mesh-build-node/manifest_test.go | 8 ++++++++ modules/mesh-build-node/module.json | 4 ++++ 2 files changed, 12 insertions(+) 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",