nodegrant: the node's grant holds the catalog verb module the composer asks (A-461b)

The composer asks the trunk build of another node's module through the seat mesh-catalog's verb module (declared in the manifest); the golden grant lacked its call subject, so the ask hung to the node's bound in every pass and held the integration tests.

Builds: design 47 G-22 A-461b
This commit is contained in:
2026-11-17 09:39:03 +01:00
parent 0612916af0
commit 1a6a380507
2 changed files with 20 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
package nodegrant
import (
"slices"
"testing"
)
// Design 47 G A-461b: the node asks the seat mesh-catalog's verbs entry, module and seat-definitions through the seat's call
// subjects, so its grant holds each; a grant without one makes that call hang until the node's own bound (the verb module was
// declared in the manifest but missing here, which held the node-engine's integration tests for 58 s).
func TestTheNodeGrantHoldsTheCatalogVerbsTheComposerAsks(t *testing.T) {
p := For("it1")
for _, verb := range []string{"entry", "module", "seat-definitions"} {
want := "mesh.seat.mesh-catalog.call." + verb + ".node~it1"
if !slices.Contains(p.Publish, want) {
t.Errorf("the node's grant does not publish to %s", want)
}
}
}
+1
View File
@@ -116,6 +116,7 @@
"$SRV.PING.node-tools.NODE",
"mesh.control.NODE.>",
"mesh.seat.mesh-catalog.call.entry.node~NODE",
"mesh.seat.mesh-catalog.call.module.node~NODE",
"mesh.seat.mesh-catalog.call.seat-definitions.node~NODE",
"mesh.seat.node-backup.call.backed-up.NODE.node~NODE",
"mesh.seat.node-backup.call.now.NODE.node~NODE",