Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: goldens and the dispatcher registration test carry the verbs listing (--advertise verbs)

garrytanc15bc6b0bb3b
diff --git a/test/bootstrap-dispatcher.serial.test.ts b/test/bootstrap-dispatcher.serial.test.ts
index 05cb90e397..8de9150b36 100644
--- a/test/bootstrap-dispatcher.serial.test.ts
+++ b/test/bootstrap-dispatcher.serial.test.ts
@@ -641,10 +641,10 @@ describe('MCP registration verification [FIX7]', () => {
const serveTail = (argv: string[]) => argv.slice(argv.indexOf('--') + 2);
const adds = (calls: string[][]) => calls.filter((c) => c[1] === 'mcp' && c[2] === 'add');
- test('a fresh registration pins the registration surface (full)', async () => {
+ test('a fresh registration pins the registration surface (full) and lists the verbs (GBRA-199)', async () => {
const { runner, calls } = mcpHost({ initialReg: null });
expect((await runHooks(runner)).result).toBe(0);
- expect(serveTail(adds(calls)[0])).toEqual(['serve', '--surface', 'full']);
+ expect(serveTail(adds(calls)[0])).toEqual(['serve', '--surface', 'full', '--advertise', 'verbs']);
}, 30_000);
test('never narrow: a replaced entry keeps its pinned surface, a bare serve stays bare, --surface wins', async () => {
diff --git a/test/fixtures/goldens/doctor/content-pglite-json.json b/test/fixtures/goldens/doctor/content-pglite-json.json
index 4122135ad0..be8ca32b37 100644
--- a/test/fixtures/goldens/doctor/content-pglite-json.json
+++ b/test/fixtures/goldens/doctor/content-pglite-json.json
@@ -47,7 +47,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "pglite — serve IPC socket not present; enabled but NO resolve path exists right now: the IPC socket is only bound by a running `gbrain serve` (stdio or --http) — until one is up, hooks/reflex degrade to no_serve on this brain (host capability may still supply pointers; policy skill carries otherwise) — policy skill not installed; run `gbrain integrations install retrieval-reflex --target <host-repo>`",
"name": "retrieval_reflex_health",
@@ -448,7 +448,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/early-stop-connection-failure.json b/test/fixtures/goldens/doctor/early-stop-connection-failure.json
index baf1eb4a4d..029bc4384f 100644
--- a/test/fixtures/goldens/doctor/early-stop-connection-failure.json
+++ b/test/fixtures/goldens/doctor/early-stop-connection-failure.json
@@ -323,7 +323,7 @@
"docs": "docs/protocol/MEMORY_VERBS_v1.md#install-the-4-command-quickstart",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/early-stop-null-engine-connect-error.json b/test/fixtures/goldens/doctor/early-stop-null-engine-connect-error.json
index 75d3e56207..e0c4e592bf 100644
--- a/test/fixtures/goldens/doctor/early-stop-null-engine-connect-error.json
+++ b/test/fixtures/goldens/doctor/early-stop-null-engine-connect-error.json
@@ -232,7 +232,7 @@
"docs": "docs/protocol/MEMORY_VERBS_v1.md#install-the-4-command-quickstart",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/early-stop-null-engine-fast.json b/test/fixtures/goldens/doctor/early-stop-null-engine-fast.json
index 9a42e6ae7c..726c28cdb5 100644
--- a/test/fixtures/goldens/doctor/early-stop-null-engine-fast.json
+++ b/test/fixtures/goldens/doctor/early-stop-null-engine-fast.json
@@ -232,7 +232,7 @@
"docs": "docs/protocol/MEMORY_VERBS_v1.md#install-the-4-command-quickstart",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/early-stop-null-engine-no-config.json b/test/fixtures/goldens/doctor/early-stop-null-engine-no-config.json
index 187d94f25d..4b611f8a99 100644
--- a/test/fixtures/goldens/doctor/early-stop-null-engine-no-config.json
+++ b/test/fixtures/goldens/doctor/early-stop-null-engine-no-config.json
@@ -226,7 +226,7 @@
"docs": "docs/protocol/MEMORY_VERBS_v1.md#install-the-4-command-quickstart",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
index 88066b738b..217b8b44fa 100644
--- a/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-pglite-json.json
@@ -48,7 +48,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "pglite — serve IPC socket not present; enabled but NO resolve path exists right now: the IPC socket is only bound by a running `gbrain serve` (stdio or --http) — until one is up, hooks/reflex degrade to no_serve on this brain (host capability may still supply pointers; policy skill carries otherwise) — policy skill not installed; run `gbrain integrations install retrieval-reflex --target <host-repo>`",
"name": "retrieval_reflex_health",
@@ -449,7 +449,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
@@ -4783,7 +4783,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "pglite — serve IPC socket not present; enabled but NO resolve path exists right now: the IPC socket is only bound by a running `gbrain serve` (stdio or --http) — until one is up, hooks/reflex degrade to no_serve on this brain (host capability may still supply pointers; policy skill carries otherwise) — policy skill not installed; run `gbrain integrations install retrieval-reflex --target <host-repo>`",
"name": "retrieval_reflex_health",
@@ -5184,7 +5184,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
index 2e94746121..ced326b460 100644
--- a/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
+++ b/test/fixtures/goldens/doctor/hot-checks-postgres-json.json
@@ -443,7 +443,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
@@ -5179,7 +5179,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.json
index e0d52042c0..126200e097 100644
--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json
+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json
@@ -44,7 +44,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "pglite — serve IPC socket not present; enabled but NO resolve path exists right now: the IPC socket is only bound by a running `gbrain serve` (stdio or --http) — until one is up, hooks/reflex degrade to no_serve on this brain (host capability may still supply pointers; policy skill carries otherwise) — policy skill not installed; run `gbrain integrations install retrieval-reflex --target <host-repo>`",
"name": "retrieval_reflex_health",
@@ -430,7 +430,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/json-pglite-fast.json b/test/fixtures/goldens/doctor/json-pglite-fast.json
index e41b800cec..8a7b244e5a 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fast.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fast.json
@@ -45,7 +45,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "pglite — serve IPC socket not present; enabled but NO resolve path exists right now: the IPC socket is only bound by a running `gbrain serve` (stdio or --http) — until one is up, hooks/reflex degrade to no_serve on this brain (host capability may still supply pointers; policy skill carries otherwise) — policy skill not installed; run `gbrain integrations install retrieval-reflex --target <host-repo>`",
"name": "retrieval_reflex_health",
@@ -320,7 +320,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.json
index 77340d704a..fc81396390 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json
@@ -47,7 +47,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "pglite — serve IPC socket not present; enabled but NO resolve path exists right now: the IPC socket is only bound by a running `gbrain serve` (stdio or --http) — until one is up, hooks/reflex degrade to no_serve on this brain (host capability may still supply pointers; policy skill carries otherwise) — policy skill not installed; run `gbrain integrations install retrieval-reflex --target <host-repo>`",
"name": "retrieval_reflex_health",
@@ -433,7 +433,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.json
index feaf1fa688..1d98dbd6bd 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -427,7 +427,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/json-postgres-unreachable-fast.json b/test/fixtures/goldens/doctor/json-postgres-unreachable-fast.json
index 670a3155d3..719b7df09b 100644
--- a/test/fixtures/goldens/doctor/json-postgres-unreachable-fast.json
+++ b/test/fixtures/goldens/doctor/json-postgres-unreachable-fast.json
@@ -272,7 +272,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",
diff --git a/test/fixtures/goldens/doctor/json-postgres-unreachable.json b/test/fixtures/goldens/doctor/json-postgres-unreachable.json
index a5dda76785..43ecf8b261 100644
--- a/test/fixtures/goldens/doctor/json-postgres-unreachable.json
+++ b/test/fixtures/goldens/doctor/json-postgres-unreachable.json
@@ -271,7 +271,7 @@
"next": "report",
"requires_exclusive": false,
"user_message": "Which agent app should get gbrain memory? The install guide has a one-line command for each.",
- "why": "Register `<absolute path to gbrain> serve --surface full` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
+ "why": "Register `<absolute path to gbrain> serve --surface full --advertise verbs` as a stdio MCP server in your agent host; the install section lists the exact command per harness (Claude Code, Codex, Grok Build, opencode, OpenClaw)."
},
"message": "No agent harness was detected. Wire one when the user picks an agent app.",
"name": "harness_wiring",