Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
test(#6007): recorded initialize-instruction sizes include the write guidance
garrytan1b62666f5e54
diff --git a/test/mcp-initialize-instructions.test.ts b/test/mcp-initialize-instructions.test.tsindex 1c6cdb647a..58ee60bbf5 100644--- a/test/mcp-initialize-instructions.test.ts+++ b/test/mcp-initialize-instructions.test.ts@@ -82,7 +82,8 @@ describe('F1 generated instructions', () => {});test('recorded tail-free instruction sizes per surface', () => {- const recorded = { verbs: 2_243, starter: 4_546, full: 4_607 };+ // #6007: starter +140 and full +230 for the write guidance (wait_ms; put_pages where it is served), within WRITING_CLAUSE_BYTES.+ const recorded = { verbs: 2_243, starter: 4_686, full: 4_837 };for (const surface of SURFACES) {const listed = new Set(filterOpsForSurface(operations, surface).map(o => o.name));const size = buildMcpInstructions({ tools: { callable: n => listed.has(n) } }).length;