Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(e2e): codex plugin install door follows REGISTRATION_SURFACE (Heavy nightly red #6049)
garrytancdd26de27cd1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 50d6e67f26..a52904eef0 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,16 @@ credits are retained; no result has been reassigned to another provider. Originaidentifiers and attribution are available in the pre-removal Git revision`6040075c6cb95be5881cc2e1b76ef7d71f4e5d29` (retained on 2026-09-23).+## [0.60.127.0] - 2026-10-09++**The nightly Heavy Tests run is green again.**++v0.60.113.0 made `full` the one MCP registration surface for every plugin manifest, but the real-binary codex plugin install test, which only runs in the nightly Heavy Tests workflow, still expected `starter` in the installed manifest's arguments and in its tools/list oracle. Both now read `REGISTRATION_SURFACE`, so the test follows the manifest instead of a copy of it. This is a test-only change; gbrain itself behaves the same.++## To take advantage of v0.60.127.0++`gbrain upgrade` installs the binary. There are no schema migrations.+## [0.60.126.0] - 2026-10-09**When you ask your agent about a person or a company, the brain now shows it the newest mails and notes that mention them, so a later correction reaches the agent before it answers.**diff --git a/test/e2e/codex-plugin-install-real.serial.test.ts b/test/e2e/codex-plugin-install-real.serial.test.tsindex fe5fdc598d..e96ea53dc0 100644--- a/test/e2e/codex-plugin-install-real.serial.test.ts+++ b/test/e2e/codex-plugin-install-real.serial.test.ts@@ -10,7 +10,7 @@* config.toml, snapshot carries the curated skills + non-root mcp.json +* an EXECUTABLE launcher, dual-marketplace resolution yields exactly one* gbrain plugin, add-twice idempotency, the deterministic tools/list- * surface oracle (== the starter surface, via the snapshot launcher),+ * surface oracle (== the registration surface, via the snapshot launcher),* the cold-home fast-fail ("No brain configured. Run: gbrain init"),* the --source-guard write gate (blocked without GBRAIN_SOURCE on a* multi-source brain, allowed with it), the `codex mcp add` coexistence@@ -30,6 +30,7 @@ import { execFileSync, spawnSync } from 'node:child_process';import { chmodSync, existsSync, mkdirSync, mkdtempSync, readFileSync, readdirSync, rmSync, statSync, writeFileSync } from 'node:fs';import { tmpdir } from 'node:os';import { join, resolve } from 'node:path';+import { REGISTRATION_SURFACE } from '../../src/core/mcp-registration.ts';import {resolveCodexBinary,@@ -187,7 +188,7 @@ describe.skipIf(!PLUGIN_CAPABLE)('codex plugin door — INSTALL (no auth needed)expect(statSync(launcher).mode & 0o111, 'launcher lost its exec bit in the snapshot copy').toBeGreaterThan(0);const mcpJson = JSON.parse(readFileSync(join(snap!, '.codex-plugin', 'mcp.json'), 'utf8'));const serverArgs: string[] = mcpJson.mcpServers.gbrain.args;- expect(serverArgs).toEqual(['serve', '--surface', 'starter', '--source-guard']);+ expect(serverArgs).toEqual(['serve', '--surface', REGISTRATION_SURFACE, '--source-guard']);// (d) idempotency: add twice each — state stays sane (exactly one// gbrain@gbrain row; outcome recorded in the evidence, not softened).@@ -218,7 +219,7 @@ describe.skipIf(!PLUGIN_CAPABLE)('codex plugin door — INSTALL (no auth needed)timeoutMs: 120_000,});const publishGates = publishGatesFromDisabled(operations, new Set());- const expected = operations.filter((o) => isCallable(o, { transport: 'stdio', surface: 'starter', scopes: [], publishGates })).map((o) => o.name).sort();+ const expected = operations.filter((o) => isCallable(o, { transport: 'stdio', surface: REGISTRATION_SURFACE, scopes: [], publishGates })).map((o) => o.name).sort();expect(tools.sort()).toEqual(expected);// (f) cold-home fast-fail: fresh empty GBRAIN_HOME → actionable exit,