A seat's verb keeps a node of its own; only a module's tool gives it to the subject #24

Merged
mesh-admin merged 3 commits from fix/a-seat-verbs-node-is-its-own into main 2026-10-01 13:44:23 +00:00
Showing only changes of commit 809e2b11ec - Show all commits
+1 -1
View File
@@ -101,7 +101,7 @@ test("a host initialises, lists the mesh's tools and calls one", async (t) => {
const listed = byId.get(2)!.result.tools; const listed = byId.get(2)!.result.tools;
assert.deepEqual(listed.map((x: { name: string }) => x.name), ["mesh-controller.push", "mesh-controller.status", "shop.price"], assert.deepEqual(listed.map((x: { name: string }) => x.name), ["mesh-controller.push", "mesh-controller.status", "shop.price"],
"the modules' tools and the roles', named the way a person names them"); "the modules' tools and the roles', named the way a person names them");
const price = listed[1]; const price = listed[2];
assert.ok(price.inputSchema, "a tool with no schema is one an agent cannot call"); assert.ok(price.inputSchema, "a tool with no schema is one an agent cannot call");
// A module's bare property map arrives as a schema an agent can read, its words kept — and // A module's bare property map arrives as a schema an agent can read, its words kept — and
// `node`, the machine to ask when the module runs on several (novox/hq ADR 0159), beside them. // `node`, the machine to ask when the module runs on several (novox/hq ADR 0159), beside them.