Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
refactor(mcp): keep dispatchResolvedCall within the 300-line ratchet after the folder-policy notice (GBRA-218)
garrytan98ee33d29480
diff --git a/src/mcp/dispatch.ts b/src/mcp/dispatch.tsindex 66b4bf5d26..d435c55059 100644--- a/src/mcp/dispatch.ts+++ b/src/mcp/dispatch.ts@@ -1168,8 +1168,7 @@ async function dispatchResolvedCall(const rerankDegradedCalls = recordRerankDegradation(responseMeta, opts);notices.push(...recallInteropNotices(name, result, responseMeta, safeParams,{ config: ctx.config, transport: dispatchRenderContext(opts).transport, binding: ctx.explicitReadBinding, rerankDegradedCalls }));- notices.push(...accessPolicyNotices(name, ctx));- notices.push(...await hiddenContentNotices(engine, name, result, ctx, opts));+ notices.push(...accessPolicyNotices(name, ctx), ...await hiddenContentNotices(engine, name, result, ctx, opts));// Monthly backup-coverage: one AGGREGATE notice per process (counts only —// never a local path or source id). The refresher runs on the stdio// transport ONLY — the WP1/D7 locality axis localOnly ops use; 'http' or