From f450303e8ec991cc8eadc8caf8b07f19488f8eb5 Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 1 Oct 2026 14:45:31 +0200 Subject: [PATCH] A person invoking one tool holds it both ways it is addressed (the test, after #185) --- internal/inventory/people_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/inventory/people_test.go b/internal/inventory/people_test.go index 1085d57..a3a4ac6 100644 --- a/internal/inventory/people_test.go +++ b/internal/inventory/people_test.go @@ -42,8 +42,11 @@ func TestAPersonMayCallToolsAndNothingElse(t *testing.T) { if err != nil { t.Fatal(err) } - if len(perms.Publish) != 1 || perms.Publish[0] != "mesh.mod.mesh-catalog.tool.catalog_tools" { - t.Errorf("ada may publish %v, which should be the one tool and nothing else", perms.Publish) + // The one tool, both ways it is addressed (novox/hq ADR 0159): to whichever instance + // answers, and to the instance on one machine. Nothing else. + if len(perms.Publish) != 2 || perms.Publish[0] != "mesh.mod.mesh-catalog.tool.catalog_tools" || + perms.Publish[1] != "mesh.mod.mesh-catalog.tool.catalog_tools.*" { + t.Errorf("ada may publish %v, which should be the one tool, both ways addressed, and nothing else", perms.Publish) } for _, s := range perms.Publish { if strings.HasPrefix(s, "mesh.control") || strings.HasPrefix(s, "mesh.node") ||