Resync hq ADR references 0044-0054 -> 0039-0049 after the hq record reconciliation
This commit is contained in:
+3
-3
@@ -1,7 +1,7 @@
|
||||
// The tool-serving harness. A module declares its tools through registerModuleTools; a runtime
|
||||
// (the mesh's per-node tool host) collects the registrations and serves them through the command
|
||||
// surface. HOW a tool is declared and served is settled and lives here; the tools themselves, and
|
||||
// the API client they call, live in the module (novox/hq ADR 0044).
|
||||
// the API client they call, live in the module (novox/hq ADR 0039).
|
||||
|
||||
import type { ToolDefinition } from "../contracts/index.js";
|
||||
import type { Broker } from "../messaging/index.js";
|
||||
@@ -66,7 +66,7 @@ export function listTools(env: NodeJS.ProcessEnv = process.env): { module: strin
|
||||
* other — two tools answering one name is a fault, not a race to resolve.
|
||||
*/
|
||||
export async function serveTools(broker: Broker, env: NodeJS.ProcessEnv = process.env): Promise<() => void> {
|
||||
// Each tool is served on its own key, namespaced by its module (novox/hq ADR 0052): a caller
|
||||
// Each tool is served on its own key, namespaced by its module (novox/hq ADR 0047): a caller
|
||||
// invokes `<module>.<tool>`, only the module that serves it answers, and the module's account is
|
||||
// scoped to serve.<module>.* — so one module cannot answer another's calls. The module is the
|
||||
// namespace, so a tool name need only be unique within its module, not across the whole mesh.
|
||||
@@ -90,7 +90,7 @@ export async function serveTools(broker: Broker, env: NodeJS.ProcessEnv = proces
|
||||
};
|
||||
}
|
||||
|
||||
/** The broker key a tool is served on and invoked by — the module namespaces the tool (ADR 0052). */
|
||||
/** The broker key a tool is served on and invoked by — the module namespaces the tool (ADR 0047). */
|
||||
export function toolKey(module: string, tool: string): string {
|
||||
return `${module}.${tool}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user