inventory: a person's one tool is granted naming that person as the caller too (hq issue 365)
mesh/merge-gate pass: builds build-agent, mesh-controller, route-proxy → ace, g14, novox, shanks; no bus step; every machine composes with the change as it…
mesh/repo-check pass: its merge-check.sh passed
mesh/delivery delivered
mesh/delivery-group group fix/365-a-tool-call-names-its-caller delivered: every member is delivered
mesh/merge-gate pass: builds build-agent, mesh-controller, route-proxy → ace, g14, novox, shanks; no bus step; every machine composes with the change as it…
mesh/repo-check pass: its merge-check.sh passed
mesh/delivery delivered
mesh/delivery-group group fix/365-a-tool-call-names-its-caller delivered: every member is delivered
This commit is contained in:
@@ -44,15 +44,17 @@ func TestAPersonMayCallToolsAndNothingElse(t *testing.T) {
|
|||||||
}
|
}
|
||||||
// The one tool, both ways it is addressed (novox/hq ADR 0159): to whichever instance
|
// 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.
|
// answers, and to the instance on one machine. Nothing else.
|
||||||
// And asking what answers (novox/hq ADR 0197), which claims nothing and calls nothing.
|
// And asking what answers (novox/hq ADR 0197), which claims nothing and calls nothing. Each way again
|
||||||
|
// naming ada as the caller and nobody else (novox/hq issue 365).
|
||||||
var tools []string
|
var tools []string
|
||||||
for _, s := range perms.Publish {
|
for _, s := range perms.Publish {
|
||||||
if !strings.HasPrefix(s, "$SRV.") {
|
if !strings.HasPrefix(s, "$SRV.") {
|
||||||
tools = append(tools, s)
|
tools = append(tools, s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(tools) != 2 || tools[0] != "mesh.mod.mesh-catalog.tool.catalog_tools" ||
|
want := []string{"mesh.mod.mesh-catalog.call.catalog_tools.*.person~ada", "mesh.mod.mesh-catalog.call.catalog_tools.person~ada",
|
||||||
tools[1] != "mesh.mod.mesh-catalog.tool.catalog_tools.*" {
|
"mesh.mod.mesh-catalog.tool.catalog_tools", "mesh.mod.mesh-catalog.tool.catalog_tools.*"}
|
||||||
|
if strings.Join(tools, " ") != strings.Join(want, " ") {
|
||||||
t.Errorf("ada may publish %v, which should be the one tool, both ways addressed, and nothing else", perms.Publish)
|
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 {
|
for _, s := range perms.Publish {
|
||||||
|
|||||||
Reference in New Issue
Block a user