Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix: remember schema text trimmed so the starter tool list stays within its 25,000-character budget with valid_from

garrytan5fcc45517a76
diff --git a/docs/TOOL_CATALOG.md b/docs/TOOL_CATALOG.md
index d0b115fb76..bb3f5bf175 100644
--- a/docs/TOOL_CATALOG.md
+++ b/docs/TOOL_CATALOG.md
@@ -143,7 +143,7 @@ Every non-localOnly operation on the MCP surface: 144 tools across 24 areas. **S
| `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 | |
-| `remember` | MEMORY VERB (v1): save one fact; provenance required. | write | yes | |
+| `remember` | MEMORY VERB (v1): save one fact with provenance. | write | yes | |
| `synthesize` | [EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB (v1): answer a broad question across pages with citations. | read | yes | |
## ontology
diff --git a/src/core/verbs.ts b/src/core/verbs.ts
index ca110fc4b6..996b47176f 100644
--- a/src/core/verbs.ts
+++ b/src/core/verbs.ts
@@ -62,7 +62,7 @@ const remember: Operation = {
name: 'remember',
idempotent: true,
outputRedaction: 'no_stored_text',
- description: 'MEMORY VERB (v1): save one fact; provenance required. Set `entity` when the fact has a subject, or entity-scoped recall misses it. Branch on `status` (inserted|duplicate|superseded). write_pending carries a receipt: poll get_write_request.',
+ description: 'MEMORY VERB (v1): save one fact with provenance. Set `entity` for a subject, or entity recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.',
params: {
...PAGE_MUTATION_PARAMS,
fact: { type: 'string', description: 'One claim.', required: true },
@@ -73,15 +73,15 @@ const remember: Operation = {
},
ttl: {
type: 'string',
- description: '"30d", "12h" or ISO 8601 time; omit = never.',
+ description: '"30d", "12h" or ISO time; omit = never.',
},
valid_from: {
type: 'string',
- description: 'ISO 8601 date or time the fact was said or became true (e.g. the conversation date); omit = unknown, recorded as now.',
+ description: 'When said or true (ISO).',
},
entity: {
type: 'string',
- description: 'Who or what it is about (name or slug).',
+ description: 'Subject name or slug.',
},
infer_entity: {
type: 'boolean',
@@ -94,7 +94,7 @@ const remember: Operation = {
visibility: {
type: 'string',
enum: ['world', 'private'],
- description: 'world (default) or private (local CLI only).',
+ description: 'world (default) or private (local CLI).',
},
},
mutating: true,
diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.json
index 1a0656b291..95d2e9760b 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": 208629,
- "stdoutSha256": "c6830adde6b192f5d86b0f7fcff33714af4725d9d8dc33e52f3a65d8a043f677",
+ "stdoutBytes": 208464,
+ "stdoutSha256": "1dfdfca690c16604904833bf24c76b2b606a9d966e109301a238df26e72cdf87",
"toolNames": [
"remember",
"entity",
@@ -171,7 +171,7 @@
],
"tools": [
{
- "description": "MEMORY VERB (v1): save one fact; provenance required. Set `entity` when the fact has a subject, or entity-scoped recall misses it. Branch on `status` (inserted|duplicate|superseded). write_pending carries a receipt: poll get_write_request.",
+ "description": "MEMORY VERB (v1): save one fact with provenance. Set `entity` for a subject, or entity recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.",
"idempotent": true,
"local_only": false,
"mutating": true,
@@ -194,7 +194,7 @@
"schema": {
"properties": {
"entity": {
- "description": "Who or what it is about (name or slug).",
+ "description": "Subject name or slug.",
"type": "string"
},
"expected_revision": {
@@ -237,15 +237,15 @@
"type": "string"
},
"ttl": {
- "description": "\"30d\", \"12h\" or ISO 8601 time; omit = never.",
+ "description": "\"30d\", \"12h\" or ISO time; omit = never.",
"type": "string"
},
"valid_from": {
- "description": "ISO 8601 date or time the fact was said or became true (e.g. the conversation date); omit = unknown, recorded as now.",
+ "description": "When said or true (ISO).",
"type": "string"
},
"visibility": {
- "description": "world (default) or private (local CLI only).",
+ "description": "world (default) or private (local CLI).",
"enum": [
"world",
"private"