Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(recall): keep the recall schema inside its budget

garrytan1dead1c29fba
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 60cbdfc2cc..d877ac0733 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -18,7 +18,7 @@ identifiers and attribution are available in the pre-removal Git revision
- `since` on `recall` (MCP and `gbrain recall --since`) falls back to relative phrases after its existing grammar: `"N weeks|months|years ago"`, `"a week ago"`, `"an hour ago"`, compact `"3w"`, `"2mo"`, `"1y"`, and `"last month"`, `"past 2 weeks"`, `"the last 6 weeks"`. Months and years step the UTC calendar and clamp the day. Every value that parsed before gives the same instant (`src/core/facts/since-parse.ts`). In the dev-only A12 agent smoke, an agent's `since: "6 weeks ago"` was refused and it fell back to a less precise call.
- `question` with `include_expired: true` ranks expired, superseded and lapsed facts alongside active ones, under the same read policy and filters, instead of returning `invalid_params`. Each row keeps its `expired_at` and `valid_until`. Without `include_expired`, ranking covers active facts only, as before. `question` with `supersessions` is still refused.
-- The `include_expired` and `since` parameter descriptions say how they now behave; no parameter was added, renamed or made required.
+- `include_expired`'s description now reads "Also expired; question ranks them." To stay inside recall's schema budget, three other strings on recall got shorter, with the same meaning. No parameter was added, renamed, retyped or made required.
## [0.60.203.0] - 2026-10-13
diff --git a/docs/TOOL_CATALOG.md b/docs/TOOL_CATALOG.md
index af23869dde..cb8439c80f 100644
--- a/docs/TOOL_CATALOG.md
+++ b/docs/TOOL_CATALOG.md
@@ -150,7 +150,7 @@ Every non-localOnly operation on the MCP surface: 149 tools across 25 areas. **S
| `delta` | MEMORY VERB (v1): pages, facts, thread events changed since a cursor, zero LLM. | read | yes | |
| `entity` | MEMORY VERB (v1): person/company/account card, zero LLM. | read | yes | |
| `forget` | MEMORY VERB (v1): expire a remembered fact by its fact_id (never a page slug). | write | yes | |
-| `recall` | MEMORY VERB (v1): read saved facts by entity, since or session_id; `query` also searches pages. | read | yes | |
+| `recall` | MEMORY VERB (v1): read facts by entity, since or session_id; `query` also searches pages. | read | yes | |
| `remember` | MEMORY VERB (v1): save facts with provenance. | write | yes | |
| `synthesize` | [EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB (v1): answer a broad question across pages with citations. | read | yes | |
diff --git a/src/core/operation-manifest.generated.ts b/src/core/operation-manifest.generated.ts
index 2f17a4532e..e1f3a5b73e 100644
--- a/src/core/operation-manifest.generated.ts
+++ b/src/core/operation-manifest.generated.ts
@@ -4868,7 +4868,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
]
}
},
- "description": "MEMORY VERB (v1): read saved facts by entity, since or session_id; `query` also searches pages. Remote callers see world facts only. One card: entity; reasoning: synthesize.",
+ "description": "MEMORY VERB (v1): read facts by entity, since or session_id; `query` also searches pages. Remote callers: world facts only. One card: entity; reasoning: synthesize.",
"params": {
"entity": {
"type": "string",
@@ -4896,11 +4896,11 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"source_id": {
"type": "string",
- "description": "One source you may read."
+ "description": "One readable source."
},
"since": {
"type": "string",
- "description": "ISO 8601, \"8 hours ago\" or \"last month\"."
+ "description": "ISO 8601 or \"8 hours ago\"."
},
"session_id": {
"type": "string",
@@ -4908,7 +4908,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"include_expired": {
"type": "boolean",
- "description": "Include expired facts (with question, ranked too)."
+ "description": "Also expired; question ranks them."
},
"supersessions": {
"type": "boolean",
@@ -4939,7 +4939,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"return_window": {
"type": "number",
- "description": "Window size 1-3."
+ "description": "Window 1-3."
},
"min_trust": {
"type": "string",
diff --git a/src/core/ops/facts.ts b/src/core/ops/facts.ts
index 4dbe8155f7..54ca263712 100644
--- a/src/core/ops/facts.ts
+++ b/src/core/ops/facts.ts
@@ -263,23 +263,23 @@ const recall: Operation = {
mutating: false,
idempotent: true,
outputRedaction: { retrieval: { localVerbatim: ['facts'] } },
- description: 'MEMORY VERB (v1): read saved facts by entity, since or session_id; `query` also searches pages. Remote callers see world facts only. One card: entity; reasoning: synthesize.',
+ description: 'MEMORY VERB (v1): read facts by entity, since or session_id; `query` also searches pages. Remote callers: world facts only. One card: entity; reasoning: synthesize.',
params: {
entity: { type: 'string', description: 'Entity slug; its facts.' },
question: { type: 'string', description: 'Rank facts by relevance to it.' },
query: { type: 'string', description: 'Also search pages (results[]).' },
budget_tokens: { type: 'number', description: 'Token budget; facts pack first.' },
budget_policy: { type: 'string', enum: ['facts_first', 'query_first'], description: 'Default facts_first.' },
- source_id: { type: 'string', description: 'One source you may read.' },
- since: { type: 'string', description: 'ISO 8601, "8 hours ago" or "last month".' },
+ source_id: { type: 'string', description: 'One readable source.' },
+ since: { type: 'string', description: 'ISO 8601 or "8 hours ago".' },
session_id: { type: 'string', description: "This session's facts." },
- include_expired: { type: 'boolean', description: 'Include expired facts (with question, ranked too).' },
+ include_expired: { type: 'boolean', description: 'Also expired; question ranks them.' },
supersessions: { type: 'boolean', description: 'Supersession log only.' },
limit: { type: 'number', description: 'Per-arm max (default 50, cap 100).' },
grep: { type: 'string', description: 'Text substring.' },
include_pending: { type: 'boolean', description: 'Pending count.' },
return_unit: { type: 'string', enum: ['chunk', 'window', 'section', 'page', 'auto'], description: 'results[] unit (see search).' },
- return_window: { type: 'number', description: 'Window size 1-3.' },
+ return_window: { type: 'number', description: 'Window 1-3.' },
min_trust: MIN_TRUST_PARAM,
},
scope: 'read',
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index 7b46f5bad6..18813dc1f2 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": 231928,
- "stdoutSha256": "2cf3ded2c08406a354bd1a845e551f793f1f59e7a3a09b0102235aa190783844",
+ "stdoutBytes": 231878,
+ "stdoutSha256": "483f72a8533acf46fd7ff62602c053a1d78c6b77b872d60e56b3982d63df1ed9",
"toolNames": [
"remember",
"entity",
@@ -5770,7 +5770,7 @@
"scope": "write"
},
{
- "description": "MEMORY VERB (v1): read saved facts by entity, since or session_id; `query` also searches pages. Remote callers see world facts only. One card: entity; reasoning: synthesize.",
+ "description": "MEMORY VERB (v1): read facts by entity, since or session_id; `query` also searches pages. Remote callers: world facts only. One card: entity; reasoning: synthesize.",
"idempotent": true,
"local_only": false,
"mutating": false,
@@ -5817,7 +5817,7 @@
"type": "string"
},
"include_expired": {
- "description": "Include expired facts (with question, ranked too).",
+ "description": "Also expired; question ranks them.",
"type": "boolean"
},
"include_pending": {
@@ -5860,7 +5860,7 @@
"type": "string"
},
"return_window": {
- "description": "Window size 1-3.",
+ "description": "Window 1-3.",
"type": "number"
},
"session_id": {
@@ -5868,11 +5868,11 @@
"type": "string"
},
"since": {
- "description": "ISO 8601, \"8 hours ago\" or \"last month\".",
+ "description": "ISO 8601 or \"8 hours ago\".",
"type": "string"
},
"source_id": {
- "description": "One source you may read.",
+ "description": "One readable source.",
"type": "string"
},
"supersessions": {