Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

test(#6007): tool descriptions trimmed; served-list JSON ceiling 26,200 after master's growth

garrytan6de001532770
diff --git a/src/core/ops/pages.ts b/src/core/ops/pages.ts
index a3a81ee14d..a1b28aa4b0 100644
--- a/src/core/ops/pages.ts
+++ b/src/core/ops/pages.ts
@@ -288,7 +288,7 @@ const put_page: Operation = {
name: 'put_page',
idempotent: true,
outputRedaction: 'no_stored_text',
- description: 'Replace a complete Markdown page: content REPLACES the whole page. Read get_page include_content:true; pass its revision as expected_revision (omit to create). Keep a request_id UUID; retry with identical arguments. Remote callers: [[wikilinks]] to existing pages become mention links after commit; typed links are skipped (a stdio `gbrain serve` sweeps them later, `gbrain serve --http` does not self-sweep). Small changes: edit_page. Over 3 pages: put_pages.',
+ description: 'Replace a complete Markdown page: content REPLACES the whole page. Read get_page include_content:true; pass its revision as expected_revision (omit to create). Keep a request_id UUID; retry with identical arguments. Remote callers: [[links]] to existing pages become mentions; typed links are skipped (a stdio `gbrain serve` sweeps them later, `gbrain serve --http` does not self-sweep). Small changes: edit_page. Over 3 pages: put_pages.',
params: {
...PAGE_MUTATION_PARAMS,
slug: { type: 'string', description: 'Page slug.', required: true },
diff --git a/src/core/ops/persistence.ts b/src/core/ops/persistence.ts
index eaf6998560..a4b4b6aa3d 100644
--- a/src/core/ops/persistence.ts
+++ b/src/core/ops/persistence.ts
@@ -135,7 +135,7 @@ export const persistenceOperations: Operation[] = [
name: 'get_write_request',
idempotent: true,
outputRedaction: 'no_stored_text',
- description: 'Read your write\'s receipt by request_id (after write_pending or a lost reply). Poll at retry_after_ms until committed/conflict/failed/cancelled.',
+ description: 'Read your write\'s receipt by request_id (after write_pending or a lost reply). Poll at retry_after_ms until it is final.',
params: { request_id: requestParam },
scope: 'write', mutating: false, area: 'pages',
cliHints: { name: 'write-request', positional: ['request_id'] },
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index 277b660c49..fdfad2b7bd 100644
--- a/test/fixtures/goldens/cli/tools-json.json
+++ b/test/fixtures/goldens/cli/tools-json.json
@@ -2,8 +2,8 @@
"golden": {
"exitCode": 0,
"stderr": "",
- "stdoutBytes": 201323,
- "stdoutSha256": "621969c9c8ecc011c59b6448456217b7f46224b6d78e9be75b0dba32d8a6e480",
+ "stdoutBytes": 201277,
+ "stdoutSha256": "e8bcc29a6c49a893186e6ec00819734105c0e89eb9c6521e87496e9ff7952c34",
"toolNames": [
"remember",
"entity",
@@ -397,7 +397,7 @@
"scope": "read"
},
{
- "description": "Replace a complete Markdown page: content REPLACES the whole page. Read get_page include_content:true; pass its revision as expected_revision (omit to create). Keep a request_id UUID; retry with identical arguments. Remote callers: [[wikilinks]] to existing pages become mention links after commit; typed links are skipped (a stdio `gbrain serve` sweeps them later, `gbrain serve --http` does not self-sweep). Small changes: edit_page. Over 3 pages: put_pages.",
+ "description": "Replace a complete Markdown page: content REPLACES the whole page. Read get_page include_content:true; pass its revision as expected_revision (omit to create). Keep a request_id UUID; retry with identical arguments. Remote callers: [[links]] to existing pages become mentions; typed links are skipped (a stdio `gbrain serve` sweeps them later, `gbrain serve --http` does not self-sweep). Small changes: edit_page. Over 3 pages: put_pages.",
"idempotent": true,
"local_only": false,
"mutating": true,
@@ -892,7 +892,7 @@
"scope": "write"
},
{
- "description": "Read your write's receipt by request_id (after write_pending or a lost reply). Poll at retry_after_ms until committed/conflict/failed/cancelled.",
+ "description": "Read your write's receipt by request_id (after write_pending or a lost reply). Poll at retry_after_ms until it is final.",
"idempotent": true,
"local_only": false,
"mutating": false,
diff --git a/test/mcp-schema-budget.test.ts b/test/mcp-schema-budget.test.ts
index 83020f9e75..c7fc353057 100644
--- a/test/mcp-schema-budget.test.ts
+++ b/test/mcp-schema-budget.test.ts
@@ -44,8 +44,8 @@ import { cl100kAvailable, estimateTokens } from '../src/core/chunkers/token-esti
const SERVED_STARTER_MAX_CHARS = 25_000;
const SERVED_STARTER_MAX_TOKENS = 5_700;
-/** The whole tools/list JSON, annotations included (25,735 measured at v0.60.46.0; 26,030 with #6007's put_page wait_ms param and write guidance). */
-const SERVED_STARTER_MAX_JSON_CHARS = 26_100;
+/** The whole tools/list JSON, annotations included (25,735 measured at v0.60.46.0; 26,178 with #6007's put_page wait_ms param and write guidance on top of master's v0.60.57.0 get_backlinks growth). */
+const SERVED_STARTER_MAX_JSON_CHARS = 26_200;
/** 4,042 at the cost wave + 586 for the operator contract's error protocol, notice prefix and memory loop (F1); no schema guidance moved here. */
const INSTRUCTIONS_MAX_CHARS = 4_868; // #6007: +240 for the issue-required write guidance (put_pages, wait_ms)
const DESCRIPTION_HARD_CAP = 1_200;