Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test: regenerate goldens for the starter registration surface and stdio surface fields

garrytan0f19b352de06
diff --git a/docs/protocol/AGENT_OPERATOR_v1.md b/docs/protocol/AGENT_OPERATOR_v1.md
index 7f9baab7a9..84535669d7 100644
--- a/docs/protocol/AGENT_OPERATOR_v1.md
+++ b/docs/protocol/AGENT_OPERATOR_v1.md
@@ -361,7 +361,7 @@ stdout (`--json`):
"options": [
{
"id": "wire",
- "label": "Register `<absolute path to gbrain> serve --surface 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)."
+ "label": "Register `<absolute path to gbrain> serve --surface starter` 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)."
},
{
"id": "skip",
@@ -540,7 +540,9 @@ gbrain returns these content blocks:
}
},
"checked_at": "2026-10-03T16:20:00.000Z",
- "contract_version": 1
+ "contract_version": 1,
+ "surface": "full",
+ "surface_source": "default"
}
```
@@ -1101,7 +1103,7 @@ each with a `fix`.
so call them by name. Where `request_tools` is not callable (the `verbs`
surface, `--access read-only`, or `mcp.allow_session_widen` off), the fix is
the CLI equivalent rendered `tell_user_to_run`, and its `why` names the
- lasting route: `GBRAIN_SURFACE=full` in the harness's gbrain server env.
+ lasting route: `GBRAIN_SURFACE=full` in the env of the harness's MCP server entry for gbrain.
Coach at most once per topic, at a natural point, and never about something
the user turned off on purpose.
diff --git a/llms-full.txt b/llms-full.txt
index 243ae4d9b9..65f2c1e87b 100644
--- a/llms-full.txt
+++ b/llms-full.txt
@@ -3444,7 +3444,7 @@ stdout (`--json`):
"options": [
{
"id": "wire",
- "label": "Register `<absolute path to gbrain> serve --surface 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)."
+ "label": "Register `<absolute path to gbrain> serve --surface starter` 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)."
},
{
"id": "skip",
@@ -3623,7 +3623,9 @@ gbrain returns these content blocks:
}
},
"checked_at": "2026-10-03T16:20:00.000Z",
- "contract_version": 1
+ "contract_version": 1,
+ "surface": "full",
+ "surface_source": "default"
}
```
@@ -4184,7 +4186,7 @@ each with a `fix`.
so call them by name. Where `request_tools` is not callable (the `verbs`
surface, `--access read-only`, or `mcp.allow_session_widen` off), the fix is
the CLI equivalent rendered `tell_user_to_run`, and its `why` names the
- lasting route: `GBRAIN_SURFACE=full` in the harness's gbrain server env.
+ lasting route: `GBRAIN_SURFACE=full` in the env of the harness's MCP server entry for gbrain.
Coach at most once per topic, at a natural point, and never about something
the user turned off on purpose.
diff --git a/src/commands/bootstrap.ts b/src/commands/bootstrap.ts
index d01e80fe05..63984f9c29 100644
--- a/src/commands/bootstrap.ts
+++ b/src/commands/bootstrap.ts
@@ -64,8 +64,8 @@ import {
removeClaudeHooks,
} from '../core/bootstrap/hooks.ts';
import { removeCodexHooks, writeCodexHooks } from '../core/bootstrap/codex-hooks.ts';
-import { registeredSurface, stdioServeArgv } from '../core/mcp-registration.ts';
-import { parseSurfaceFlag, type McpSurface } from '../mcp/surface.ts';
+import { isRegistrationSurface, registeredSurface, stdioServeArgv } from '../core/mcp-registration.ts';
+import type { McpSurface } from '../mcp/surface.ts';
import {
guardReceiptOverwrite,
readHarnessReceiptState,
@@ -1086,7 +1086,9 @@ async function runHooks(
// gbrain binary still matches. This flag forces the hand-wired MCP
// registration through anyway.
const mcpEvenIfPlugin = rest.includes('--mcp-even-if-plugin');
- const surfaceFlag = parseSurfaceFlag(rest);
+ const surfaceArg = rest.includes('--surface') ? flagValue(rest, '--surface') ?? '' : undefined;
+ if (surfaceArg !== undefined && !isRegistrationSurface(surfaceArg)) { console.error(`unknown --surface '${surfaceArg}' — pass --surface verbs, starter, or full`); return 2; }
+ const surfaceFlag = surfaceArg ?? null;
const state = readManifest(ws);
if (state.state !== 'initialized') {
diff --git a/src/core/cli-flag-registry.generated.ts b/src/core/cli-flag-registry.generated.ts
index 742267af39..4403532462 100644
--- a/src/core/cli-flag-registry.generated.ts
+++ b/src/core/cli-flag-registry.generated.ts
@@ -24,7 +24,7 @@ export const CLI_FLAG_REGISTRY: Record<string, readonly string[]> = {
'backup': ['--accept-pending', '--background', '--brain', '--confirm-authority-reviewed', '--confirm-backup-compatible', '--confirm-quiesced', '--dir', '--explain', '--follow', '--full', '--help', '--into', '--json', '--mode', '--no-accept-pending', '--output', '--path', '--progress-interval', '--progress-json', '--quiet', '--restore-only', '--source', '--timeout', '--wait'],
'bench': ['--baseline', '--brain', '--force', '--from', '--help', '--json', '--label', '--limit', '--source', '--threshold-jaccard', '--threshold-latency-multiplier', '--threshold-top1', '--to', '--tool'],
'book-mirror': ['--accept-pending', '--access', '--add', '--allowed-operations', '--asof', '--author', '--background', '--bound-slug-prefixes', '--brain', '--chapters-dir', '--client', '--context-file', '--date', '--dated-since', '--days', '--dry-run', '--entities', '--explain', '--federated-read', '--follow', '--full', '--fuzzy', '--help', '--http', '--id', '--include-deleted', '--json', '--kind', '--limit', '--max-turns', '--model', '--multimodal', '--no-accept-pending', '--no-autopilot-install', '--no-confirm', '--no-follow', '--page', '--params', '--path', '--phase', '--progress-interval', '--progress-json', '--quiet', '--recent', '--refresh-operations', '--scopes', '--session', '--since', '--slug', '--slugs', '--source', '--sources', '--stale', '--surface', '--timeout', '--timeout-ms', '--title', '--to', '--url', '--wait', '--yes'],
- 'bootstrap': ['--abbrev-ref', '--abort', '--accept-visibility-change-consequences', '--active', '--all', '--allow-unverified-remote', '--auto', '--brain', '--branch', '--cached', '--confirm', '--count', '--delete-brain', '--diff-filter', '--dim', '--env', '--error-unmatch', '--exclude-standard', '--exit-code', '--file', '--force', '--gbrain-bin', '--get', '--get-url', '--git-dir', '--git-path', '--harness', '--heads', '--help', '--home', '--hostname', '--http', '--id', '--init', '--install', '--is-ancestor', '--is-inside-work-tree', '--jq', '--json', '--local', '--mcp-even-if-plugin', '--minimal', '--name', '--name-only', '--no-capture', '--no-cron', '--no-hooks', '--no-seat', '--no-tags', '--no-verify', '--no-write-fetch-head', '--only', '--others', '--pat-file', '--path', '--pglite', '--porcelain', '--port', '--private', '--project', '--pure', '--push', '--push-only', '--quiet', '--rebase', '--refresh-operations', '--refresh-skills', '--remove', '--repair', '--scope', '--scopes', '--seat', '--set', '--short', '--show', '--show-toplevel', '--skills', '--skip', '--source', '--status', '--surface', '--to', '--token', '--token-name', '--unset-all', '--url', '--verify', '--version', '--visibility', '--workspace', '--yes'],
+ 'bootstrap': ['--abbrev-ref', '--abort', '--accept-visibility-change-consequences', '--active', '--all', '--allow-unverified-remote', '--auto', '--bearer-token-env-var', '--brain', '--branch', '--cached', '--confirm', '--count', '--delete-brain', '--diff-filter', '--dim', '--env', '--error-unmatch', '--exclude-standard', '--exit-code', '--file', '--force', '--gbrain-bin', '--get', '--get-url', '--git-dir', '--git-path', '--harness', '--header', '--heads', '--help', '--home', '--hostname', '--http', '--id', '--init', '--install', '--is-ancestor', '--is-inside-work-tree', '--issuer-url', '--jq', '--json', '--local', '--mcp-even-if-plugin', '--mcp-only', '--mcp-url', '--minimal', '--name', '--name-only', '--no-capture', '--no-cron', '--no-hooks', '--no-seat', '--no-tags', '--no-verify', '--no-write-fetch-head', '--oauth-client-id', '--oauth-client-secret', '--only', '--others', '--pat-file', '--path', '--pglite', '--porcelain', '--port', '--private', '--project', '--pure', '--push', '--push-only', '--quiet', '--rebase', '--refresh-operations', '--refresh-skills', '--remove', '--repair', '--scope', '--scopes', '--seat', '--set', '--short', '--show', '--show-toplevel', '--skills', '--skip', '--source', '--status', '--surface', '--to', '--token', '--token-name', '--unset-all', '--url', '--verify', '--version', '--visibility', '--workspace', '--yes'],
'brainstorm': ['--brain', '--force-rechunk', '--force-resume', '--help', '--json', '--judge-model', '--limit', '--list-runs', '--max-cost', '--max-far-set', '--max-ideas-per-judge-call', '--no-save', '--probe', '--resume', '--save', '--source', '--stale', '--strict-budget', '--yes'],
'cache': ['--brain', '--help', '--json', '--source', '--yes'],
'calibration': ['--access', '--add', '--allowed-operations', '--asof', '--bound-slug-prefixes', '--brain', '--client', '--date', '--dated-since', '--days', '--dry-run', '--entities', '--federated-read', '--full', '--fuzzy', '--help', '--holder', '--http', '--id', '--include-deleted', '--json', '--key-prefix', '--kind', '--limit', '--model', '--multimodal', '--no-autopilot-install', '--page', '--params', '--path', '--phase', '--recent', '--refresh-operations', '--regenerate', '--scopes', '--scrub-gstack', '--session', '--since', '--slugs', '--source', '--sources', '--stale', '--surface', '--to', '--undo-wave', '--url', '--with-calibration', '--yes'],
@@ -40,10 +40,10 @@ export const CLI_FLAG_REGISTRY: Record<string, readonly string[]> = {
'code-refs': ['--all-sources', '--brain', '--force', '--help', '--json', '--lang', '--limit', '--no-embed', '--no-json', '--probe', '--source', '--yes'],
'compile-context': ['--brain', '--budget', '--check', '--help', '--include', '--json', '--out', '--source', '--stdout', '--target'],
'config': ['--accept-pending', '--admin-intent', '--all', '--all-from', '--background', '--brain', '--call-site', '--coverage-override', '--dataset', '--db-url', '--dim', '--dry-run', '--egress', '--embedding-dimensions', '--embedding-model', '--expected-state', '--explain', '--follow', '--force', '--from', '--harness', '--help', '--http', '--input', '--json', '--limit', '--markdown', '--min', '--no-accept-pending', '--no-autopilot-install', '--no-embedding', '--no-hooks', '--only', '--out', '--path', '--pattern', '--probe', '--progress-interval', '--progress-json', '--provider', '--query', '--quiet', '--raw', '--recommended', '--session', '--shadow', '--since', '--slot', '--source', '--stale', '--status', '--suite', '--surface', '--target', '--threshold', '--timeout', '--to', '--url', '--wait', '--what-if-threshold', '--yes'],
- 'connect': ['--agent', '--auto', '--bearer-token-env-var', '--bind', '--brain', '--client-id', '--client-secret', '--credentials-file', '--env', '--force', '--fresh-token', '--grant-types', '--harness', '--header', '--help', '--http', '--install', '--issuer-url', '--json', '--mcp-only', '--mcp-url', '--name', '--oauth', '--oauth-client-id', '--oauth-client-secret', '--public-url', '--pure', '--register', '--remove', '--root', '--scope', '--scopes', '--show-token', '--source', '--status', '--timeout-ms', '--token', '--token-endpoint-auth-method', '--url', '--version', '--yes'],
+ 'connect': ['--agent', '--auto', '--bearer-token-env-var', '--bind', '--brain', '--client-id', '--client-secret', '--credentials-file', '--env', '--force', '--fresh-token', '--grant-types', '--harness', '--header', '--help', '--http', '--install', '--issuer-url', '--json', '--mcp-only', '--mcp-url', '--name', '--oauth', '--oauth-client-id', '--oauth-client-secret', '--public-url', '--pure', '--register', '--remove', '--root', '--scope', '--scopes', '--show-token', '--source', '--status', '--surface', '--timeout-ms', '--token', '--token-endpoint-auth-method', '--url', '--version', '--yes'],
'connectors': ['--accept-pending', '--all', '--background', '--brain', '--cookie', '--dry-run', '--embed', '--explain', '--follow', '--force', '--full', '--help', '--install', '--json', '--limit', '--no-accept-pending', '--no-browser', '--probe', '--progress-interval', '--progress-json', '--quiet', '--source', '--timeout', '--token', '--try-oauth', '--wait', '--window-days', '--yes'],
'conversation-parser': ['--brain', '--help', '--json', '--source'],
- 'creds': ['--allow-create-db', '--allow-docker', '--brain', '--chat-model', '--content-root', '--db-only', '--embedding-dimensions', '--embedding-model', '--expansion-model', '--force', '--git', '--grant-types', '--help', '--http', '--ids', '--issuer-url', '--json', '--key', '--local-postgres', '--mcp-only', '--mcp-url', '--migrate-only', '--model', '--no-embedding', '--no-git', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--out', '--passphrase-env', '--path', '--pglite', '--prefer-postgres', '--provenance', '--provider', '--query', '--schema-pack', '--scopes', '--skip-embed-check', '--source', '--status', '--supabase', '--to', '--url', '--version'],
+ 'creds': ['--allow-create-db', '--allow-docker', '--brain', '--chat-model', '--content-root', '--db-only', '--embedding-dimensions', '--embedding-model', '--expansion-model', '--force', '--git', '--grant-types', '--help', '--http', '--ids', '--issuer-url', '--json', '--key', '--local-postgres', '--mcp-only', '--mcp-url', '--migrate-only', '--model', '--no-embedding', '--no-git', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--out', '--passphrase-env', '--path', '--pglite', '--prefer-postgres', '--provenance', '--provider', '--query', '--schema-pack', '--scopes', '--skip-embed-check', '--source', '--status', '--supabase', '--surface', '--to', '--url', '--version'],
'db-repair': ['--accept-pending', '--apply', '--apply-rewrites', '--background', '--brain', '--break-lock', '--db-url', '--dry-run', '--explain', '--filter', '--follow', '--force', '--force-retry', '--format', '--help', '--http', '--json', '--locks', '--name', '--no-accept-pending', '--path', '--prefer-postgres', '--probe', '--progress-interval', '--progress-json', '--quiet', '--remediate', '--restart', '--skip-verify', '--source', '--supabase', '--timeout', '--undo-last-rewrite', '--url', '--version', '--wait', '--yes'],
'decide': ['--all', '--all-from', '--brain', '--call-site', '--dataset', '--dry-run', '--egress', '--embedding-dimensions', '--embedding-model', '--from', '--help', '--input', '--json', '--limit', '--min', '--out', '--provider', '--query', '--recommended', '--shadow', '--since', '--slot', '--source', '--status', '--suite', '--target', '--threshold', '--what-if-threshold', '--yes'],
'doctor': ['--abandon', '--abbrev-ref', '--abort', '--accept-pending', '--admin-intent', '--adopt-columns', '--adopt-permissions', '--all', '--all-from', '--allow-old-serve', '--allow-shell-jobs', '--allow-unverified-remote', '--apply', '--apply-rewrites', '--auto', '--auto-fix', '--background', '--brain', '--branch', '--break-lock', '--by-mention', '--cached', '--call-site', '--catch-up', '--check', '--client', '--concurrency', '--confidence', '--confirm', '--content-audit', '--count', '--dataset', '--db-url', '--delete-brain', '--detach', '--diff-filter', '--dim', '--dir', '--drain', '--dry-run', '--egress', '--embedding-dimensions', '--embedding-model', '--env', '--exclude', '--exclude-standard', '--exit-code', '--expect', '--expected-epoch', '--expected-state', '--explain', '--facts', '--fast', '--federated-read', '--fetch-timeout-ms', '--ff-only', '--file', '--fix', '--follow', '--force', '--force-rechunk', '--force-retry', '--force-schema', '--format', '--fresh', '--from', '--from-pages', '--full', '--gbrain-bin', '--get', '--get-url', '--git-common-dir', '--git-dir', '--git-path', '--hard', '--harness', '--help', '--home', '--http', '--id', '--ignore-env-override', '--include-ambiguous', '--include-flagged', '--include-gitignored', '--include-hidden', '--include-pseudo', '--include-repairs', '--index-audit', '--init', '--input', '--install', '--is-ancestor', '--is-inside-work-tree', '--job-isolation', '--jq', '--json', '--lang', '--limit', '--link-source', '--link-type', '--local', '--locks', '--log-noop', '--manifest', '--markdown', '--max-cost', '--max-cost-usd', '--max-jobs', '--max-rss', '--max-usd', '--max-waiting', '--mcp-only', '--migrate-legacy', '--migrate-only', '--min', '--mode', '--multimodal', '--name', '--name-only', '--nice', '--no-accept-pending', '--no-autopilot-install', '--no-capture', '--no-cron', '--no-edit', '--no-embed', '--no-embedding', '--no-extract', '--no-hooks', '--no-migrate', '--no-pull', '--no-renames', '--no-schema-pack', '--no-tags', '--no-verify', '--no-write-fetch-head', '--non-interactive', '--older-than', '--once', '--only', '--operations', '--others', '--out', '--output', '--overwrite', '--parallel', '--params', '--pat-file', '--path', '--path-format', '--pglite', '--phase', '--pid-file', '--porcelain', '--port', '--prefer-postgres', '--preset', '--preview', '--probe', '--probe-pglite', '--progress-interval', '--progress-json', '--project', '--provider', '--prune-orphans', '--pure', '--push', '--push-only', '--query', '--queue', '--quiet', '--rate', '--reauth', '--rebase', '--recommended', '--refresh', '--refresh-operations', '--refresh-skills', '--regenerate', '--reissue', '--remediate', '--remediation-plan', '--remove', '--repo', '--request-id', '--reranker', '--reset', '--reset-checkpoint', '--restore-only', '--resume', '--retry-failed', '--review-lower', '--scope', '--scopes', '--select', '--self-transfer', '--session', '--set', '--set-upstream-to', '--shadow', '--short', '--show-current', '--show-token', '--show-toplevel', '--since', '--skills', '--skills-dir', '--skip', '--skip-bare-tweet', '--skip-failed', '--skip-urls', '--skip-verify', '--slot', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--staged', '--stale', '--status', '--strategy', '--strict', '--suite', '--supabase', '--surface', '--symbol-kind', '--symbolic-full-name', '--takes-holders', '--target', '--target-score', '--threshold', '--timeout', '--to', '--token', '--token-name', '--token-ttl', '--top-k', '--trust', '--type', '--uninstall', '--unsafe-bypass-dream-guard', '--unset-all', '--untracked-files', '--url', '--user', '--vectors', '--verbose', '--verify', '--version', '--wait', '--wait-drain', '--what-if-threshold', '--window', '--workers', '--working-tree', '--yes'],
@@ -65,11 +65,11 @@ export const CLI_FLAG_REGISTRY: Record<string, readonly string[]> = {
'founder': ['--brain', '--help', '--json', '--mcp-only', '--since', '--source', '--until'],
'friction': ['--agent', '--base', '--brain', '--compare', '--help', '--hint', '--json', '--kind', '--message', '--no-redact', '--phase', '--run-id', '--severity', '--source', '--transcript-path', '--transcripts'],
'frontmatter': ['--allow-catch-all', '--batch', '--brain', '--cached', '--diff-filter', '--dry-run', '--exclude-standard', '--fix', '--force', '--full-name', '--get', '--git-common-dir', '--help', '--importable', '--include-ambiguous', '--include-catch-all', '--json', '--literal-pathspecs', '--name-only', '--no-verify', '--others', '--path', '--show-prefix', '--show-toplevel', '--source', '--stage', '--staged', '--stdin', '--type', '--uninstall'],
- 'google': ['--access', '--account', '--allow-create-db', '--allow-docker', '--brain', '--calendar-id', '--chat-model', '--client-id', '--client-json', '--client-secret', '--code', '--consent-state', '--content-root', '--db-only', '--embedding-dimensions', '--embedding-model', '--expansion-model', '--force', '--git', '--grant-types', '--help', '--history-days', '--http', '--issuer-url', '--json', '--key', '--kind', '--limit', '--local-postgres', '--mcp-only', '--mcp-url', '--migrate-only', '--model', '--no-browser', '--no-embedding', '--no-git', '--no-probe', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--paste', '--path', '--pglite', '--port', '--prefer-postgres', '--provenance', '--purge-client', '--query', '--reauth', '--retry-failed', '--schema-pack', '--scopes', '--services', '--skip-embed-check', '--source', '--status', '--supabase', '--sync-budget-ms', '--timeout-ms', '--to', '--token-command', '--url', '--version', '--via', '--yes'],
+ 'google': ['--access', '--account', '--allow-create-db', '--allow-docker', '--brain', '--calendar-id', '--chat-model', '--client-id', '--client-json', '--client-secret', '--code', '--consent-state', '--content-root', '--db-only', '--embedding-dimensions', '--embedding-model', '--expansion-model', '--force', '--git', '--grant-types', '--help', '--history-days', '--http', '--issuer-url', '--json', '--key', '--kind', '--limit', '--local-postgres', '--mcp-only', '--mcp-url', '--migrate-only', '--model', '--no-browser', '--no-embedding', '--no-git', '--no-probe', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--paste', '--path', '--pglite', '--port', '--prefer-postgres', '--provenance', '--purge-client', '--query', '--reauth', '--retry-failed', '--schema-pack', '--scopes', '--services', '--skip-embed-check', '--source', '--status', '--supabase', '--surface', '--sync-budget-ms', '--timeout-ms', '--to', '--token-command', '--url', '--version', '--via', '--yes'],
'graph-query': ['--brain', '--depth', '--direction', '--help', '--include-foreign', '--json', '--mcp-only', '--source', '--type'],
'hook': ['--allow-unverified-remote', '--auto', '--brain', '--branch', '--cached', '--count', '--diff-filter', '--end-of-options', '--env', '--get', '--harness', '--help', '--jq', '--json', '--name-only', '--others', '--path', '--porcelain', '--pure', '--quiet', '--seat', '--session', '--show-current', '--show-toplevel', '--source'],
'import': ['--accept-pending', '--allow-empty', '--allow-noncanonical-root', '--apply', '--background', '--brain', '--cached', '--diff-filter', '--dim', '--embedding-dimensions', '--embedding-model', '--empty', '--exclude', '--exclude-standard', '--explain', '--follow', '--force', '--force-rechunk', '--format', '--fresh', '--help', '--include-gitignored', '--is-shallow-repository', '--json', '--log-noop', '--name-only', '--no-accept-pending', '--no-embed', '--no-embedding', '--no-gpg-sign', '--no-pull', '--no-renames', '--no-verify', '--only', '--others', '--path', '--probe', '--progress-interval', '--progress-json', '--quiet', '--show-toplevel', '--skip-failed', '--slugs', '--source', '--source-id', '--stale', '--status', '--supabase', '--timeout', '--to', '--url', '--verify', '--wait', '--workers'],
- 'init': ['--allow-create-db', '--allow-docker', '--brain', '--break-lock', '--chat-model', '--check', '--content-root', '--db-only', '--dim', '--embedding-dimensions', '--embedding-model', '--expansion-model', '--force', '--git', '--grant-types', '--help', '--http', '--issuer-url', '--json', '--key', '--local-postgres', '--mcp-only', '--mcp-url', '--migrate-only', '--model', '--no-autopilot-install', '--no-embedding', '--no-expand', '--no-git', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--only', '--path', '--pglite', '--prefer-postgres', '--probe', '--provenance', '--query', '--quiet', '--save', '--schema-pack', '--scopes', '--show-toplevel', '--skip-embed-check', '--source', '--stale', '--status', '--supabase', '--to', '--touchpoint', '--url', '--version', '--yes'],
+ 'init': ['--access', '--allow-create-db', '--allow-docker', '--brain', '--break-lock', '--chat-model', '--check', '--content-root', '--db-only', '--dim', '--embedding-dimensions', '--embedding-model', '--expansion-model', '--force', '--git', '--grant-types', '--help', '--http', '--issuer-url', '--json', '--key', '--local-postgres', '--mcp-only', '--mcp-url', '--migrate-only', '--model', '--no-autopilot-install', '--no-embedding', '--no-expand', '--no-git', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--only', '--path', '--pglite', '--prefer-postgres', '--probe', '--provenance', '--query', '--quiet', '--save', '--schema-pack', '--scopes', '--show-toplevel', '--skip-embed-check', '--source', '--stale', '--status', '--supabase', '--surface', '--to', '--touchpoint', '--url', '--version', '--yes'],
'integrations': ['--auto', '--brain', '--dry-run', '--help', '--json', '--overwrite', '--refresh', '--source', '--target'],
'integrity': ['--accept-pending', '--auto', '--backend', '--background', '--brain', '--confidence', '--cost', '--dry-run', '--explain', '--follow', '--fresh', '--help', '--json', '--limit', '--no-accept-pending', '--probe', '--progress-interval', '--progress-json', '--quiet', '--review-lower', '--skip-bare-tweet', '--skip-urls', '--source', '--supabase', '--timeout', '--type', '--url', '--wait'],
'jobs': ['--abbrev-ref', '--access', '--add', '--aliases', '--all', '--allow-empty', '--allow-shell-jobs', '--allowed-operations', '--apply', '--asof', '--auto', '--background', '--backoff-delay', '--backoff-jitter', '--backoff-type', '--batch-size', '--bound-slug-prefixes', '--brain', '--break-lock', '--by-mention', '--cached', '--catch-up', '--cli-path', '--client', '--cluster-errors', '--concurrency', '--confidence', '--confirm-destructive', '--cost-estimate', '--date', '--dated-since', '--days', '--delay', '--detach', '--diff-filter', '--dir', '--drain', '--dry-run', '--embedding-dimensions', '--embedding-model', '--empty', '--entities', '--exclude', '--exclude-standard', '--expect', '--explain', '--facts', '--federated-read', '--filters', '--fix', '--follow', '--force', '--force-break-lock', '--force-retry', '--format', '--fresh', '--from-meetings', '--full', '--full-history', '--fuzzy', '--hard-deadline', '--health-interval', '--help', '--http', '--id', '--idempotency-key', '--ids', '--images', '--include-deleted', '--include-frontmatter', '--include-gitignored', '--include-hidden', '--include-null-signature', '--infer-dates', '--inject-bootstrap', '--inline', '--input', '--install', '--interval', '--is-ancestor', '--is-shallow-repository', '--job-id', '--job-isolation', '--json', '--kind', '--limit', '--lock-duration-ms', '--log-noop', '--markdown', '--max-age', '--max-attempts', '--max-cost', '--max-cost-usd', '--max-crashes', '--max-rss', '--max-sources', '--max-stalled', '--max-usd', '--max-waiting', '--mcp-only', '--min-context', '--missing-path', '--model', '--multimodal', '--name-only', '--ner', '--nice', '--no-auto-embed', '--no-autopilot-install', '--no-bulk', '--no-delegate', '--no-embed', '--no-extract', '--no-gpg-sign', '--no-hard-deadline', '--no-inject', '--no-pull', '--no-renames', '--no-schema-pack', '--no-verify', '--no-worker', '--non-interactive', '--now', '--older-than', '--once', '--only', '--order', '--others', '--output', '--override-disabled', '--pace', '--pace-max-concurrency', '--pack', '--page', '--parallel', '--params', '--path', '--pause', '--phase', '--pid-file', '--priority', '--probe', '--prune-orphans', '--queue', '--queue-only', '--quiet', '--reason', '--rebuild', '--recent', '--redact-secrets', '--reenrich-after', '--refresh-ms', '--refresh-operations', '--replace', '--repo', '--reset-checkpoint', '--resume', '--retry-failed', '--retry-held', '--review-lower', '--scopes', '--segment-limit', '--select', '--serial', '--session', '--show-toplevel', '--sigkill-rescue', '--since', '--skip-bare-tweet', '--skip-failed', '--skip-urls', '--sleep', '--slug', '--slugs', '--source', '--source-id', '--sources', '--src-subpath', '--stale', '--status', '--strategy', '--surface', '--swap-only', '--target', '--thin', '--thin-threshold', '--timeout', '--timeout-ms', '--to', '--trust', '--type', '--types', '--uninstall', '--url', '--user', '--vectors', '--verbose', '--verify', '--watch', '--wedge-rescue', '--workers', '--working-tree', '--yes'],
@@ -83,7 +83,7 @@ export const CLI_FLAG_REGISTRY: Record<string, readonly string[]> = {
'mounts': ['--alias', '--brain', '--database-path', '--database-url', '--db-path', '--db-url', '--engine', '--help', '--id', '--json', '--mcp-url', '--path', '--skills-dir', '--source'],
'notability-eval': ['--brain', '--embedding-dimensions', '--embedding-model', '--help', '--in', '--json', '--out', '--repo', '--skip-llm', '--source', '--status', '--target-high', '--target-low', '--target-medium'],
'notices': ['--brain', '--help', '--json', '--source'],
- 'onboard': ['--access', '--add', '--allowed-operations', '--asof', '--auto', '--bound-slug-prefixes', '--brain', '--check', '--client', '--date', '--dated-since', '--days', '--entities', '--explain', '--federated-read', '--from-pages', '--full', '--fuzzy', '--help', '--history', '--http', '--id', '--include-deleted', '--json', '--kind', '--limit', '--max-usd', '--model', '--multimodal', '--no-autopilot-install', '--only', '--page', '--params', '--path', '--phase', '--recent', '--refresh-operations', '--remediate', '--remediation-plan', '--resume', '--scopes', '--session', '--since', '--slugs', '--source', '--sources', '--stale', '--surface', '--target-score', '--to', '--url', '--yes'],
+ 'onboard': ['--access', '--add', '--allowed-operations', '--asof', '--auto', '--bound-slug-prefixes', '--brain', '--check', '--client', '--date', '--dated-since', '--days', '--entities', '--explain', '--federated-read', '--from-pages', '--full', '--fuzzy', '--help', '--history', '--http', '--id', '--include-deleted', '--json', '--kind', '--limit', '--max-usd', '--model', '--multimodal', '--no-autopilot-install', '--only', '--page', '--params', '--path', '--phase', '--probe', '--recent', '--refresh-operations', '--remediate', '--remediation-plan', '--resume', '--save', '--scopes', '--session', '--since', '--slugs', '--source', '--sources', '--stale', '--surface', '--target-score', '--to', '--url', '--yes'],
'orphans': ['--accept-pending', '--background', '--brain', '--count', '--explain', '--follow', '--help', '--include-pseudo', '--json', '--mode', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--source', '--timeout', '--wait'],
'pages': ['--brain', '--dry-run', '--help', '--json', '--older-than', '--source'],
'pglite-repair': ['--brain', '--break-lock', '--dry-run', '--expect', '--help', '--http', '--json', '--path', '--probe', '--source', '--vectors', '--yes'],
@@ -100,7 +100,7 @@ export const CLI_FLAG_REGISTRY: Record<string, readonly string[]> = {
'reindex-code': ['--accept-pending', '--apply', '--background', '--brain', '--break-lock', '--concurrency', '--db-url', '--dry-run', '--embedding-dimensions', '--embedding-model', '--expect', '--explain', '--follow', '--force', '--help', '--http', '--json', '--max-cost', '--max-cost-usd', '--max-runtime', '--max-usd', '--no-accept-pending', '--no-embed', '--non-interactive', '--only', '--path', '--progress-interval', '--progress-json', '--quiet', '--source', '--status', '--timeout', '--trust', '--wait', '--workers', '--yes'],
'reindex-frontmatter': ['--apply', '--brain', '--concurrency', '--dry-run', '--expect', '--force', '--help', '--json', '--max-cost', '--max-usd', '--non-interactive', '--slug-prefix', '--source', '--trust', '--workers', '--yes'],
'reindex-search-vector': ['--accept-pending', '--background', '--brain', '--dry-run', '--explain', '--follow', '--help', '--json', '--no-accept-pending', '--progress-interval', '--progress-json', '--quiet', '--resume', '--source', '--timeout', '--wait', '--yes'],
- 'reinit-pglite': ['--abbrev-ref', '--all', '--allow-create-db', '--allow-docker', '--allow-empty', '--apply', '--brain', '--break-lock', '--cached', '--chat-model', '--concurrency', '--confirm-destructive', '--content-root', '--db-only', '--diff-filter', '--dim', '--embedding-dimensions', '--embedding-model', '--empty', '--exclude', '--exclude-standard', '--expansion-model', '--expect', '--filters', '--fix', '--force', '--force-break-lock', '--format', '--full', '--full-history', '--git', '--grant-types', '--hard-deadline', '--help', '--http', '--include-gitignored', '--include-hidden', '--interval', '--is-ancestor', '--is-shallow-repository', '--issuer-url', '--json', '--key', '--local-postgres', '--max-age', '--max-cost', '--max-sources', '--max-usd', '--mcp-only', '--mcp-url', '--migrate-only', '--missing-path', '--model', '--name-only', '--no-auto-embed', '--no-bulk', '--no-delegate', '--no-embed', '--no-embedding', '--no-extract', '--no-git', '--no-gpg-sign', '--no-hard-deadline', '--no-pull', '--no-renames', '--no-schema-pack', '--no-sync', '--no-verify', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--others', '--parallel', '--path', '--pglite', '--prefer-postgres', '--priority', '--provenance', '--query', '--quiet', '--repo', '--reset-checkpoint', '--retry-failed', '--retry-held', '--schema-pack', '--scopes', '--serial', '--show-toplevel', '--skip-embed-check', '--skip-failed', '--slugs', '--source', '--source-id', '--src-subpath', '--stale', '--status', '--strategy', '--supabase', '--timeout', '--to', '--trust', '--url', '--verify', '--version', '--watch', '--workers', '--working-tree', '--yes'],
+ 'reinit-pglite': ['--abbrev-ref', '--all', '--allow-create-db', '--allow-docker', '--allow-empty', '--apply', '--brain', '--break-lock', '--cached', '--chat-model', '--concurrency', '--confirm-destructive', '--content-root', '--db-only', '--diff-filter', '--dim', '--embedding-dimensions', '--embedding-model', '--empty', '--exclude', '--exclude-standard', '--expansion-model', '--expect', '--filters', '--fix', '--force', '--force-break-lock', '--format', '--full', '--full-history', '--git', '--grant-types', '--hard-deadline', '--help', '--http', '--include-gitignored', '--include-hidden', '--interval', '--is-ancestor', '--is-shallow-repository', '--issuer-url', '--json', '--key', '--local-postgres', '--max-age', '--max-cost', '--max-sources', '--max-usd', '--mcp-only', '--mcp-url', '--migrate-only', '--missing-path', '--model', '--name-only', '--no-auto-embed', '--no-bulk', '--no-delegate', '--no-embed', '--no-embedding', '--no-extract', '--no-git', '--no-gpg-sign', '--no-hard-deadline', '--no-pull', '--no-renames', '--no-schema-pack', '--no-sync', '--no-verify', '--non-interactive', '--oauth-client-id', '--oauth-client-secret', '--others', '--parallel', '--path', '--pglite', '--prefer-postgres', '--priority', '--provenance', '--query', '--quiet', '--repo', '--reset-checkpoint', '--retry-failed', '--retry-held', '--schema-pack', '--scopes', '--serial', '--show-toplevel', '--skip-embed-check', '--skip-failed', '--slugs', '--source', '--source-id', '--src-subpath', '--stale', '--status', '--strategy', '--supabase', '--surface', '--timeout', '--to', '--trust', '--url', '--verify', '--version', '--watch', '--workers', '--working-tree', '--yes'],
'remote': ['--brain', '--help', '--json', '--mcp-only', '--only', '--remediation-plan', '--scopes', '--source', '--timeout'],
'repair': ['--all', '--apply', '--brain', '--diff', '--expect', '--help', '--include-ambiguous', '--include-repairs', '--json', '--limit', '--max-cost', '--max-usd', '--no-embed', '--only', '--remediate', '--remediation-plan', '--skip', '--source', '--stale', '--yes'],
'repair-jsonb': ['--accept-pending', '--background', '--brain', '--dry-run', '--explain', '--follow', '--help', '--json', '--no-accept-pending', '--probe', '--progress-interval', '--progress-json', '--quiet', '--source', '--supabase', '--timeout', '--url', '--wait'],
diff --git a/src/core/mcp-registration.ts b/src/core/mcp-registration.ts
index 2578b111b8..afc0457e20 100644
--- a/src/core/mcp-registration.ts
+++ b/src/core/mcp-registration.ts
@@ -22,6 +22,11 @@ export { shellQuote };
*/
export const REGISTRATION_SURFACE: McpSurface = 'starter';
+/** A registration command's surface value (`verbs`, `starter` or `full`). */
+export function isRegistrationSurface(v: unknown): v is McpSurface {
+ return v === 'verbs' || v === 'starter' || v === 'full';
+}
+
/**
* `<bin> serve --surface <surface>`. `null` renders a bare `<bin> serve`
* (config/default resolution): never-narrow keeps an existing bare
diff --git a/src/core/ops/request-tools.ts b/src/core/ops/request-tools.ts
index 9c75a04169..e89729a234 100644
--- a/src/core/ops/request-tools.ts
+++ b/src/core/ops/request-tools.ts
@@ -125,7 +125,7 @@ async function widenStdioSession(ctx: OperationContext, requested: 'verbs' | 'st
const session = ctx.stdioSurface!;
const { clampSurface, sessionWidenAllowed, surfaceWiderThan } = await import('../../mcp/surface.ts');
session.widenAllowed = await sessionWidenAllowed(ctx.engine, ctx.config);
- const persistent = `For a lasting change, set GBRAIN_SURFACE=${requested} in this harness's gbrain server env (or re-register the server with --surface ${requested}) and start a new session.`;
+ const persistent = `For a lasting change, set GBRAIN_SURFACE=${requested} in the env of this harness's MCP server entry for gbrain (or re-register the server with --surface ${requested}) and start a new session.`;
if (!session.widenAllowed) {
throw opError('permission_denied',
'Session widening is off on this brain (mcp.allow_session_widen is false), so request_tools cannot add tools to this stdio session.',
diff --git a/src/mcp/hidden-tool-hint.ts b/src/mcp/hidden-tool-hint.ts
index 0e08abca28..c294e98b42 100644
--- a/src/mcp/hidden-tool-hint.ts
+++ b/src/mcp/hidden-tool-hint.ts
@@ -12,7 +12,7 @@ import type { Action } from '../core/agent-output.ts';
import type { Operation } from '../core/operations.ts';
import { cliEquivalent } from '../core/ops/cli-equivalent.ts';
-const PERSISTENT_ROUTE = 'To keep the full surface for new sessions, set GBRAIN_SURFACE=full in this harness\'s gbrain server env '
+const PERSISTENT_ROUTE = 'To keep the full surface for new sessions, set GBRAIN_SURFACE=full in the env of this harness\'s MCP server entry for gbrain '
+ '(`claude mcp add gbrain -e GBRAIN_SURFACE=full -- …`, the env table of the Codex server entry, or the plugin\'s GBRAIN_SURFACE setting on launcher installs), '
+ 'or re-register the server with `--surface full`. An inherited GBRAIN_SURFACE overrides a pinned --surface.';
diff --git a/src/mcp/surface.ts b/src/mcp/surface.ts
index b317c39983..76d3a44839 100644
--- a/src/mcp/surface.ts
+++ b/src/mcp/surface.ts
@@ -406,6 +406,6 @@ export function surfaceEnvInvalidNotice(raw: string, served: McpSurface, source:
return {
code: 'surface_env_invalid', kind: 'info',
why: `GBRAIN_SURFACE="${raw}" is not a tool surface (use verbs, starter or full), so this server ignored it and serves '${served}' (source: ${SURFACE_SOURCE_LABEL[source]}).`,
- user_message: `The gbrain MCP server's GBRAIN_SURFACE setting ("${raw}") is not valid; it takes verbs, starter or full. Can you fix it in your agent app's gbrain server env?`,
+ user_message: `The gbrain MCP server's GBRAIN_SURFACE setting ("${raw}") is not valid; it takes verbs, starter or full. Can you fix it in the env of your agent app's MCP server entry for gbrain?`,
};
}
diff --git a/test/bootstrap-plugin-lane.serial.test.ts b/test/bootstrap-plugin-lane.serial.test.ts
index 82415871f0..9e06330b54 100644
--- a/test/bootstrap-plugin-lane.serial.test.ts
+++ b/test/bootstrap-plugin-lane.serial.test.ts
@@ -242,7 +242,7 @@ describe('runHooks plugin-lane skip (serial: env fixtures)', () => {
expect(r.result).toBe(0);
const add = calls.find((c) => c[0] === 'codex' && c[1] === 'mcp' && c[2] === 'add');
expect(add).toBeDefined();
- expect(add!.join(' ')).toContain('serve --surface full');
+ expect(add!.join(' ')).toContain('serve --surface starter');
}, 30_000);
test('codex + plugin + --mcp-even-if-plugin → registration forced through', async () => {
diff --git a/test/e2e/mcp-search-transport-matrix.test.ts b/test/e2e/mcp-search-transport-matrix.test.ts
index 2226eb531b..0a7f1828f0 100644
--- a/test/e2e/mcp-search-transport-matrix.test.ts
+++ b/test/e2e/mcp-search-transport-matrix.test.ts
@@ -242,7 +242,7 @@ for (const backend of backends) describe(`search transport safety matrix (${back
const miss = await search(client, PRIVATE);
expect(miss.rows).toEqual([]);
expect(miss.meta.degraded).toEqual([]);
- expect(miss.content[1]!.text).toContain('clean miss');
+ expect(miss.content.find(c => c.text.startsWith('[gbrain notice empty_retrieval'))!.text).toContain('clean miss');
});
}, 60_000);
@@ -362,7 +362,7 @@ for (const backend of backends) describe(`search transport safety matrix (${back
const miss = await search(client, query);
expect(miss.rows).toEqual([]);
expect(miss.meta.degraded ?? []).toEqual([]);
- expect(miss.content[1]!.text).toContain('clean miss');
+ expect(miss.content.find(c => c.text.startsWith('[gbrain notice empty_retrieval'))!.text).toContain('clean miss');
}
};
await withStdio(BOUND, verify);
diff --git a/test/fixtures/agent-contract/v1/journey/init-first-run.json b/test/fixtures/agent-contract/v1/journey/init-first-run.json
index e86b69bb81..649868cbc7 100644
--- a/test/fixtures/agent-contract/v1/journey/init-first-run.json
+++ b/test/fixtures/agent-contract/v1/journey/init-first-run.json
@@ -119,7 +119,7 @@
"options": [
{
"id": "wire",
- "label": "Register `<absolute path to gbrain> serve --surface 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)."
+ "label": "Register `<absolute path to gbrain> serve --surface starter` 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)."
},
{
"id": "skip",
diff --git a/test/fixtures/agent-contract/v1/journey/status-only-lock-held.json b/test/fixtures/agent-contract/v1/journey/status-only-lock-held.json
index da59f76602..78313cc3ae 100644
--- a/test/fixtures/agent-contract/v1/journey/status-only-lock-held.json
+++ b/test/fixtures/agent-contract/v1/journey/status-only-lock-held.json
@@ -2,7 +2,7 @@
"content": [
{
"type": "text",
- "text": "{\n \"status\": \"unavailable\",\n \"reason\": \"lock_held\",\n \"why\": \"This brain ({{HOME}}/.gbrain/brain.pglite) is open in another `gbrain serve` (PID {{PID}}), usually started by another agent session, so this server cannot open it.\",\n \"brain_path\": \"{{HOME}}/.gbrain/brain.pglite\",\n \"config_path\": \"{{HOME}}/.gbrain/config.json\",\n \"lock_owner\": {\n \"pid\": \"{{PID}}\",\n \"transport\": \"stdio\",\n \"serve\": true\n },\n \"fix\": {\n \"mcp\": {\n \"tool\": \"gbrain_status\",\n \"arguments\": {}\n },\n \"consent\": [],\n \"actor\": \"user\",\n \"why\": \"Close the session that owns the brain (another `gbrain serve` (PID {{PID}}), usually started by another agent session); then call gbrain_status again and this server opens the brain in place (re-checked at most every 5 s). If your client does not refresh its tool list after recovery, restart this MCP server.\",\n \"user_message\": \"Your gbrain brain is already open in another gbrain serve (PID {{PID}}), usually started by another agent session, so this session can't use memory right now. Close that session and I'll reconnect, or I can set up one shared gbrain server so both sessions work at once. Which do you prefer?\",\n \"requires_exclusive\": false\n },\n \"user_message\": \"Your gbrain brain is already open in another gbrain serve (PID {{PID}}), usually started by another agent session, so this session can't use memory right now. Close that session and I'll reconnect, or I can set up one shared gbrain server so both sessions work at once. Which do you prefer?\",\n \"decisions\": [\n {\n \"id\": \"lock_recovery\",\n \"question\": \"Two agent sessions want the same brain. Close the other session, or share one HTTP server?\",\n \"options\": [\n {\n \"id\": \"close_owner\",\n \"label\": \"Close another gbrain serve (PID {{PID}}), usually started by another agent session; this server recovers on the next gbrain_status call.\"\n },\n {\n \"id\": \"share_http\",\n \"label\": \"Run one shared `gbrain serve --http` and connect every harness to it (writes harness config, mints tokens); the full plan is share_http_plan.\",\n \"argv\": [\n \"kill\",\n \"{{PID}}\"\n ]\n }\n ],\n \"default\": \"close_owner\",\n \"default_reason\": \"Nothing is installed or reconfigured; the brain comes back as soon as the other session ends.\"\n }\n ],\n \"share_http_plan\": {\n \"argv\": [\n \"kill\",\n \"{{PID}}\"\n ],\n \"command\": \"kill {{PID}}\",\n \"consent\": [],\n \"actor\": \"user\",\n \"why\": \"Stop another `gbrain serve` (PID {{PID}}), usually started by another agent session first (or quit that session); the shared server needs the brain's single-writer lock.\",\n \"requires_exclusive\": false,\n \"then\": {\n \"argv\": [\n \"gbrain\",\n \"serve\",\n \"--http\"\n ],\n \"command\": \"gbrain serve --http\",\n \"consent\": [\n \"persistent_install\"\n ],\n \"actor\": \"user\",\n \"why\": \"Run ONE shared HTTP server for every agent session on this machine (keep it running, e.g. under autopilot or a terminal).\",\n \"requires_exclusive\": true,\n \"then\": {\n \"argv\": [\n \"gbrain\",\n \"bootstrap\",\n \"harness\",\n \"--harness\",\n \"all\",\n \"--yes\"\n ],\n \"command\": \"gbrain bootstrap harness --harness all --yes\",\n \"consent\": [\n \"persistent_install\",\n \"credentials\"\n ],\n \"actor\": \"user\",\n \"why\": \"Mints one bearer token per detected harness through the running HTTP server and rewrites each harness MCP entry to it (each stdio entry keeps working until its harness is rewired).\",\n \"user_message\": \"I can connect your agent apps to the shared gbrain server so every session uses memory at once. That stores an access token in each app's config and pre-approves gbrain's tools. OK?\",\n \"verify\": {\n \"argv\": [\n \"gbrain\",\n \"doctor\",\n \"--only\",\n \"harness_wiring\",\n \"--json\"\n ]\n },\n \"docs\": \"{{DOCS_BASE}}/docs/guides/remote-mcp.md\",\n \"requires_exclusive\": false\n }\n }\n },\n \"checked_at\": \"{{TIME}}\",\n \"contract_version\": 1\n}"
+ "text": "{\n \"status\": \"unavailable\",\n \"reason\": \"lock_held\",\n \"why\": \"This brain ({{HOME}}/.gbrain/brain.pglite) is open in another `gbrain serve` (PID {{PID}}), usually started by another agent session, so this server cannot open it.\",\n \"brain_path\": \"{{HOME}}/.gbrain/brain.pglite\",\n \"config_path\": \"{{HOME}}/.gbrain/config.json\",\n \"lock_owner\": {\n \"pid\": \"{{PID}}\",\n \"transport\": \"stdio\",\n \"serve\": true\n },\n \"fix\": {\n \"mcp\": {\n \"tool\": \"gbrain_status\",\n \"arguments\": {}\n },\n \"consent\": [],\n \"actor\": \"user\",\n \"why\": \"Close the session that owns the brain (another `gbrain serve` (PID {{PID}}), usually started by another agent session); then call gbrain_status again and this server opens the brain in place (re-checked at most every 5 s). If your client does not refresh its tool list after recovery, restart this MCP server.\",\n \"user_message\": \"Your gbrain brain is already open in another gbrain serve (PID {{PID}}), usually started by another agent session, so this session can't use memory right now. Close that session and I'll reconnect, or I can set up one shared gbrain server so both sessions work at once. Which do you prefer?\",\n \"requires_exclusive\": false\n },\n \"user_message\": \"Your gbrain brain is already open in another gbrain serve (PID {{PID}}), usually started by another agent session, so this session can't use memory right now. Close that session and I'll reconnect, or I can set up one shared gbrain server so both sessions work at once. Which do you prefer?\",\n \"decisions\": [\n {\n \"id\": \"lock_recovery\",\n \"question\": \"Two agent sessions want the same brain. Close the other session, or share one HTTP server?\",\n \"options\": [\n {\n \"id\": \"close_owner\",\n \"label\": \"Close another gbrain serve (PID {{PID}}), usually started by another agent session; this server recovers on the next gbrain_status call.\"\n },\n {\n \"id\": \"share_http\",\n \"label\": \"Run one shared `gbrain serve --http` and connect every harness to it (writes harness config, mints tokens); the full plan is share_http_plan.\",\n \"argv\": [\n \"kill\",\n \"{{PID}}\"\n ]\n }\n ],\n \"default\": \"close_owner\",\n \"default_reason\": \"Nothing is installed or reconfigured; the brain comes back as soon as the other session ends.\"\n }\n ],\n \"share_http_plan\": {\n \"argv\": [\n \"kill\",\n \"{{PID}}\"\n ],\n \"command\": \"kill {{PID}}\",\n \"consent\": [],\n \"actor\": \"user\",\n \"why\": \"Stop another `gbrain serve` (PID {{PID}}), usually started by another agent session first (or quit that session); the shared server needs the brain's single-writer lock.\",\n \"requires_exclusive\": false,\n \"then\": {\n \"argv\": [\n \"gbrain\",\n \"serve\",\n \"--http\"\n ],\n \"command\": \"gbrain serve --http\",\n \"consent\": [\n \"persistent_install\"\n ],\n \"actor\": \"user\",\n \"why\": \"Run ONE shared HTTP server for every agent session on this machine (keep it running, e.g. under autopilot or a terminal).\",\n \"requires_exclusive\": true,\n \"then\": {\n \"argv\": [\n \"gbrain\",\n \"bootstrap\",\n \"harness\",\n \"--harness\",\n \"all\",\n \"--yes\"\n ],\n \"command\": \"gbrain bootstrap harness --harness all --yes\",\n \"consent\": [\n \"persistent_install\",\n \"credentials\"\n ],\n \"actor\": \"user\",\n \"why\": \"Mints one bearer token per detected harness through the running HTTP server and rewrites each harness MCP entry to it (each stdio entry keeps working until its harness is rewired).\",\n \"user_message\": \"I can connect your agent apps to the shared gbrain server so every session uses memory at once. That stores an access token in each app's config and pre-approves gbrain's tools. OK?\",\n \"verify\": {\n \"argv\": [\n \"gbrain\",\n \"doctor\",\n \"--only\",\n \"harness_wiring\",\n \"--json\"\n ]\n },\n \"docs\": \"{{DOCS_BASE}}/docs/guides/remote-mcp.md\",\n \"requires_exclusive\": false\n }\n }\n },\n \"checked_at\": \"{{TIME}}\",\n \"contract_version\": 1,\n \"surface\": \"full\",\n \"surface_source\": \"default\"\n}"
}
]
}
diff --git a/test/fixtures/agent-contract/v1/journey/status-only-missing-brain.json b/test/fixtures/agent-contract/v1/journey/status-only-missing-brain.json
index e9d2220603..565ac525f6 100644
--- a/test/fixtures/agent-contract/v1/journey/status-only-missing-brain.json
+++ b/test/fixtures/agent-contract/v1/journey/status-only-missing-brain.json
@@ -2,7 +2,7 @@
"content": [
{
"type": "text",
- "text": "{\n \"status\": \"unavailable\",\n \"reason\": \"missing_brain\",\n \"why\": \"The brain configured in {{HOME}}/.gbrain/config.json is not at {{HOME}}/mnt/external/gbrain/brain.pglite (an unmounted drive or a moved folder?), so this server cannot open it. Nothing was created there.\",\n \"brain_path\": \"{{HOME}}/mnt/external/gbrain/brain.pglite\",\n \"config_path\": \"{{HOME}}/.gbrain/config.json\",\n \"fix\": {\n \"mcp\": {\n \"tool\": \"gbrain_status\",\n \"arguments\": {}\n },\n \"consent\": [],\n \"actor\": \"user\",\n \"why\": \"Mount or reconnect the drive that holds {{HOME}}/mnt/external/gbrain/brain.pglite, or point `database_path` in {{HOME}}/.gbrain/config.json at where the brain lives now; then call gbrain_status again and this server opens the brain in place. If your client does not refresh its tool list after recovery, restart this MCP server.\",\n \"user_message\": \"Your gbrain brain is configured at {{HOME}}/mnt/external/gbrain/brain.pglite, but nothing is there right now. Is it on a drive that needs mounting, or did it move? Once it's back I'll reconnect. If it's gone for good I can create a new empty brain, but your old notes would not be in it.\",\n \"verify\": {\n \"argv\": [\n \"gbrain\",\n \"doctor\",\n \"--only\",\n \"connection\",\n \"--json\"\n ]\n },\n \"requires_exclusive\": false\n },\n \"user_message\": \"Your gbrain brain is configured at {{HOME}}/mnt/external/gbrain/brain.pglite, but nothing is there right now. Is it on a drive that needs mounting, or did it move? Once it's back I'll reconnect. If it's gone for good I can create a new empty brain, but your old notes would not be in it.\",\n \"decisions\": [\n {\n \"id\": \"missing_brain_recovery\",\n \"question\": \"The brain at {{HOME}}/mnt/external/gbrain/brain.pglite is not there. Bring it back, or start a new empty brain?\",\n \"options\": [\n {\n \"id\": \"reconnect\",\n \"label\": \"Mount or move the brain back; this server reconnects on the next gbrain_status call.\"\n },\n {\n \"id\": \"new_brain\",\n \"label\": \"Create a new, empty keyless brain at that path (the old notes are not in it).\",\n \"argv\": [\n \"gbrain\",\n \"init\",\n \"--pglite\",\n \"--no-embedding\",\n \"--path\",\n \"{{HOME}}/mnt/external/gbrain/brain.pglite\"\n ]\n }\n ],\n \"default\": \"reconnect\",\n \"default_reason\": \"Nothing is created or overwritten; the user's existing brain comes back as soon as its drive does.\"\n }\n ],\n \"checked_at\": \"{{TIME}}\",\n \"contract_version\": 1\n}"
+ "text": "{\n \"status\": \"unavailable\",\n \"reason\": \"missing_brain\",\n \"why\": \"The brain configured in {{HOME}}/.gbrain/config.json is not at {{HOME}}/mnt/external/gbrain/brain.pglite (an unmounted drive or a moved folder?), so this server cannot open it. Nothing was created there.\",\n \"brain_path\": \"{{HOME}}/mnt/external/gbrain/brain.pglite\",\n \"config_path\": \"{{HOME}}/.gbrain/config.json\",\n \"fix\": {\n \"mcp\": {\n \"tool\": \"gbrain_status\",\n \"arguments\": {}\n },\n \"consent\": [],\n \"actor\": \"user\",\n \"why\": \"Mount or reconnect the drive that holds {{HOME}}/mnt/external/gbrain/brain.pglite, or point `database_path` in {{HOME}}/.gbrain/config.json at where the brain lives now; then call gbrain_status again and this server opens the brain in place. If your client does not refresh its tool list after recovery, restart this MCP server.\",\n \"user_message\": \"Your gbrain brain is configured at {{HOME}}/mnt/external/gbrain/brain.pglite, but nothing is there right now. Is it on a drive that needs mounting, or did it move? Once it's back I'll reconnect. If it's gone for good I can create a new empty brain, but your old notes would not be in it.\",\n \"verify\": {\n \"argv\": [\n \"gbrain\",\n \"doctor\",\n \"--only\",\n \"connection\",\n \"--json\"\n ]\n },\n \"requires_exclusive\": false\n },\n \"user_message\": \"Your gbrain brain is configured at {{HOME}}/mnt/external/gbrain/brain.pglite, but nothing is there right now. Is it on a drive that needs mounting, or did it move? Once it's back I'll reconnect. If it's gone for good I can create a new empty brain, but your old notes would not be in it.\",\n \"decisions\": [\n {\n \"id\": \"missing_brain_recovery\",\n \"question\": \"The brain at {{HOME}}/mnt/external/gbrain/brain.pglite is not there. Bring it back, or start a new empty brain?\",\n \"options\": [\n {\n \"id\": \"reconnect\",\n \"label\": \"Mount or move the brain back; this server reconnects on the next gbrain_status call.\"\n },\n {\n \"id\": \"new_brain\",\n \"label\": \"Create a new, empty keyless brain at that path (the old notes are not in it).\",\n \"argv\": [\n \"gbrain\",\n \"init\",\n \"--pglite\",\n \"--no-embedding\",\n \"--path\",\n \"{{HOME}}/mnt/external/gbrain/brain.pglite\"\n ]\n }\n ],\n \"default\": \"reconnect\",\n \"default_reason\": \"Nothing is created or overwritten; the user's existing brain comes back as soon as its drive does.\"\n }\n ],\n \"checked_at\": \"{{TIME}}\",\n \"contract_version\": 1,\n \"surface\": \"verbs\",\n \"surface_source\": \"flag\"\n}"
}
]
}
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index 8c613f7b27..51b172edee 100644
--- a/test/fixtures/goldens/cli/tools-json.json
+++ b/test/fixtures/goldens/cli/tools-json.json
@@ -2,8 +2,8 @@
"golden": {
"exitCode": 0,
"stderr": "",
- "stdoutBytes": 196835,
- "stdoutSha256": "7c6a8f58d1ecf9152a0bef45fe6b85d84ea6bc81c4610fc65b2a65eeec68370a",
+ "stdoutBytes": 196385,
+ "stdoutSha256": "7e8263692b89cbe04286ccead0998a5bc57757476cb4434946cbf5c8f20c89a8",
"toolNames": [
"remember",
"entity",
@@ -4193,7 +4193,7 @@
"scope": "read"
},
{
- "description": "More tools: no arguments lists your catalog; {tools: [names]} returns schemas; {surface} persists a wider surface for your OAuth client.",
+ "description": "More tools: no arguments lists your catalog; {tools: [names]} returns schemas; {surface} widens it (per OAuth client; stdio: this session).",
"idempotent": false,
"local_only": false,
"mutating": true,
@@ -4206,7 +4206,7 @@
"schema": {
"properties": {
"surface": {
- "description": "Surface to persist for your client.",
+ "description": "Surface to widen to (stdio: this session only).",
"enum": [
"verbs",
"starter",
@@ -6249,7 +6249,7 @@
"scope": "write"
},
{
- "description": "Stop a coaching or info notice from appearing for this client (or unmute it with muted: false). Safety, degraded and ask notices cannot be muted.",
+ "description": "Stop a coaching or info notice (or first_run_decisions) from appearing for this client; muted: false unmutes.",
"idempotent": true,
"local_only": false,
"mutating": true,
@@ -6263,20 +6263,6 @@
"properties": {
"code": {
"description": "Notice code, the word after `[gbrain notice` in the block.",
- "enum": [
- "backup_coverage",
- "degraded_dedup",
- "empty_retrieval",
- "features_auto_fix",
- "listing_truncated",
- "local_transcripts",
- "onboard_opportunities",
- "recovered_frontmatter",
- "source_binding_narrowed",
- "synthesis_keyless",
- "think_not_saved",
- "unknown_param"
- ],
"type": "string"
},
"muted": {
diff --git a/test/fixtures/goldens/doctor/early-stop-connection-failure.json b/test/fixtures/goldens/doctor/early-stop-connection-failure.json
index 2b0af146bb..240813711a 100644
--- a/test/fixtures/goldens/doctor/early-stop-connection-failure.json
+++ b/test/fixtures/goldens/doctor/early-stop-connection-failure.json
@@ -274,7 +274,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 9bdabc56a8..ba80efa10c 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
@@ -201,7 +201,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 8df3ac6640..a3ab8c4cab 100644
--- a/test/fixtures/goldens/doctor/early-stop-null-engine-fast.json
+++ b/test/fixtures/goldens/doctor/early-stop-null-engine-fast.json
@@ -201,7 +201,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 357494ce98..c569da365f 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
@@ -196,7 +196,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 22c4a12451..a69a853cdb 100644
--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json
+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json
@@ -41,7 +41,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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",
@@ -378,7 +378,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 54c50700d9..98d88c9d64 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fast.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fast.json
@@ -42,7 +42,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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",
@@ -287,7 +287,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 153d996111..2ed1f5e017 100644
--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json
+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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",
@@ -381,7 +381,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 9ebd3e303b..3c03fda1b7 100644
--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json
+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json
@@ -374,7 +374,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 d06d8ea0ec..f1731b10a4 100644
--- a/test/fixtures/goldens/doctor/json-postgres-unreachable-fast.json
+++ b/test/fixtures/goldens/doctor/json-postgres-unreachable-fast.json
@@ -239,7 +239,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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 348229e0b3..1896fa5131 100644
--- a/test/fixtures/goldens/doctor/json-postgres-unreachable.json
+++ b/test/fixtures/goldens/doctor/json-postgres-unreachable.json
@@ -238,7 +238,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 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)."
+ "why": "Register `<absolute path to gbrain> serve --surface starter` 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/exports/types.json b/test/fixtures/goldens/exports/types.json
index fb4aa5732c..73d45bc2d0 100644
--- a/test/fixtures/goldens/exports/types.json
+++ b/test/fixtures/goldens/exports/types.json
@@ -2470,7 +2470,7 @@
"hooks?: { stop_push_debounce_min?: number | string; } | undefined",
"integrations?: { memorable?: { enabled?: boolean; }; } | undefined",
"litellm_api_key?: string | undefined",
- "mcp?: { instructions?: string; publish_skills?: boolean; publish_advisor?: boolean; skills_dir?: string; strict_params?: \"warn\" | \"reject\"; default_surface_dcr?: \"verbs\" | \"starter\" | \"full\"; result_rows?: \"lean\" | \"full\"; } | undefined",
+ "mcp?: { instructions?: string; publish_skills?: boolean; publish_advisor?: boolean; skills_dir?: string; strict_params?: \"warn\" | \"reject\"; default_surface_dcr?: \"verbs\" | \"starter\" | \"full\"; result_rows?: \"lean\" | \"full\"; allow_session_widen?: boolean | string; } | undefined",
"mcp_surface?: \"verbs\" | \"starter\" | \"full\" | undefined",
"memory?: { auto_writeback?: string; auto_writeback_transient_ttl?: string; visibility_posture?: string; } | undefined",
"openai_api_key?: string | undefined",
@@ -5613,6 +5613,7 @@
"resultRows?: \"full\" | \"lean\" | undefined",
"sessionId?: string | undefined",
"sourceId: string",
+ "stdioSurface?: StdioSurfaceState | undefined",
"subagentId?: number | undefined",
"surfaceCeiling?: \"verbs\" | \"starter\" | \"full\" | undefined",
"takesHoldersAllowList?: string[] | undefined",