Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(evidence): the off-path fixture logs which notices each MCP call carried
time-attackff9471d7db1e
diff --git a/test/helpers/evidence-delivery-fixture.ts b/test/helpers/evidence-delivery-fixture.tsindex 163291ee32..8f7b3dfe59 100644--- a/test/helpers/evidence-delivery-fixture.ts+++ b/test/helpers/evidence-delivery-fixture.ts@@ -66,6 +66,7 @@ export async function captureOffPath(engine: BrainEngine): Promise<Record<string// keyless corpus) are additive and pinned in test/mcp-notice-channels.test.ts; the off path compares the rest.const content = res.content.filter(c => !c.text.startsWith('[gbrain notice '));const { gbrain_notices: _notices, ...meta } = res._meta ?? {};+ if (Array.isArray(_notices) && _notices.length) console.error(`[evidence-fixture] mcp-${name} notices: ${JSON.stringify((_notices as Array<{ code?: string; kind?: string }>).map(n => `${n.code}:${n.kind}`))}`);out[`mcp-${name}`] = JSON.stringify({ ...res, content, ...(res._meta ? { _meta: meta } : {}) });}});