Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test: clean-tree doctor goldens, dispatch-phase golden after the engine-connect extraction, journey pins the degraded notice without the onboarding race
garrytancfa3f8ea43de
diff --git a/test/agent-journey.serial.test.ts b/test/agent-journey.serial.test.tsindex 2d85eab736..aeade6f4b4 100644--- a/test/agent-journey.serial.test.ts+++ b/test/agent-journey.serial.test.ts@@ -46,6 +46,8 @@ import {const MARKER = 'quokka-journey-marker';const PAGES = 3;const timings: Record<string, number> = {};+/** The background onboarding refresh races these calls; test/mcp-onboarding.test.ts owns those notices, this journey pins the degraded one. */+const QUIET_ONBOARDING = { GBRAIN_NO_ONBOARD_NUDGE: '1' };function brainPath(home: string): string { return join(home, '.gbrain', 'brain.pglite'); }@@ -227,7 +229,7 @@ describe('H1a keyless MCP journey (stdio)', () => {});test('surface verbs: remember/recall, the degraded notice block, a caller mistake with a runnable fix, status-only second serve', async () => {- const verbs = await mcp(home, ['--surface', 'verbs']);+ const verbs = await mcp(home, ['--surface', 'verbs'], { env: QUIET_ONBOARDING });open.push(verbs);timings.initialize_ms = verbs.initMs;const tools = (await verbs.client.listTools()).tools.map(t => t.name);@@ -289,7 +291,7 @@ describe('H1a keyless MCP journey (stdio)', () => {}, 240_000);test('surface full: search carries the degraded notice; a list_pages caller mistake carries a fix that runs', async () => {- const full = await mcp(home, ['--surface', 'full']);+ const full = await mcp(home, ['--surface', 'full'], { env: QUIET_ONBOARDING });open.push(full);const tools = (await full.client.listTools()).tools.map(t => t.name);expect(tools).toEqual(expect.arrayContaining(['search', 'query', 'list_pages', 'get_page', 'recall']));diff --git a/test/fixtures/goldens/cli/dispatch-phase.json b/test/fixtures/goldens/cli/dispatch-phase.jsonindex 3117ce1b89..635f6601d2 100644--- a/test/fixtures/goldens/cli/dispatch-phase.json+++ b/test/fixtures/goldens/cli/dispatch-phase.json@@ -1,8 +1,7 @@{"golden": {"commandAgnosticConnectBranches": [- "readOnlyTimeoutMs !== null",- "preConnectReason"+ "readOnlyTimeoutMs !== null"],"commands": {"advisor": {diff --git a/test/fixtures/goldens/doctor/json-pglite-degraded.json b/test/fixtures/goldens/doctor/json-pglite-degraded.jsonindex e129599de7..32402b6999 100644--- a/test/fixtures/goldens/doctor/json-pglite-degraded.json+++ b/test/fixtures/goldens/doctor/json-pglite-degraded.json@@ -1593,7 +1593,7 @@},{"category": "brain",- "message": "1 retrieval-affecting file(s) changed since HEAD: src/core/search/projection-readiness.ts. Re-run `gbrain eval run-all` after committing these changes.",+ "message": "No retrieval-affecting files changed in working tree.","name": "eval_drift","status": "ok"},diff --git a/test/fixtures/goldens/doctor/json-pglite-fresh.json b/test/fixtures/goldens/doctor/json-pglite-fresh.jsonindex fe4cd59a7e..90f571887b 100644--- a/test/fixtures/goldens/doctor/json-pglite-fresh.json+++ b/test/fixtures/goldens/doctor/json-pglite-fresh.json@@ -1670,7 +1670,7 @@},{"category": "brain",- "message": "1 retrieval-affecting file(s) changed since HEAD: src/core/search/projection-readiness.ts. Re-run `gbrain eval run-all` after committing these changes.",+ "message": "No retrieval-affecting files changed in working tree.","name": "eval_drift","status": "ok"},diff --git a/test/fixtures/goldens/doctor/json-postgres-fresh.json b/test/fixtures/goldens/doctor/json-postgres-fresh.jsonindex 0bb23fe896..d6f3ff5e65 100644--- a/test/fixtures/goldens/doctor/json-postgres-fresh.json+++ b/test/fixtures/goldens/doctor/json-postgres-fresh.json@@ -1660,7 +1660,7 @@},{"category": "brain",- "message": "1 retrieval-affecting file(s) changed since HEAD: src/core/search/projection-readiness.ts. Re-run `gbrain eval run-all` after committing these changes.",+ "message": "No retrieval-affecting files changed in working tree.","name": "eval_drift","status": "ok"},