Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
W5 G5.2: keep the MEMORY VERB (v1) label on every memory verb; trim get_skill.expected_brain_id instead
garrytan1a045cd693af
diff --git a/docs/TOOL_CATALOG.md b/docs/TOOL_CATALOG.mdindex ea48fb2065..4d48f6f572 100644--- a/docs/TOOL_CATALOG.md+++ b/docs/TOOL_CATALOG.md@@ -146,13 +146,13 @@ Every non-localOnly operation on the MCP surface: 149 tools across 25 areas. **S| Tool | Description | Scope | Starter | Gate ||---|---|---|---|---|-| `context_pack` | MEMORY VERB: core memory, budget-packed cards, open threads and hot facts for up to 8 entities, zero LLM. | read | yes | |-| `delta` | MEMORY VERB: pages, facts, thread events changed since a cursor, zero LLM. | read | yes | |+| `context_pack` | MEMORY VERB (v1): core memory, budget-packed cards, open threads and hot facts for up to 8 entities, zero LLM. | read | yes | |+| `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: expire a remembered fact by its fact_id (never a page slug). | write | yes | |-| `recall` | MEMORY VERB: read saved facts by entity, since or session_id; `query` also searches pages. | read | yes | |-| `remember` | MEMORY VERB: save facts with provenance. | write | yes | |-| `synthesize` | [EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB: answer a broad question across pages with citations. | 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 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 | |## ontologydiff --git a/src/core/operation-manifest.generated.ts b/src/core/operation-manifest.generated.tsindex eb25d683f7..c8463b8df6 100644--- a/src/core/operation-manifest.generated.ts+++ b/src/core/operation-manifest.generated.ts@@ -14,7 +14,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = ["name": "remember","idempotent": true,"outputRedaction": "no_stored_text",- "description": "MEMORY VERB: save facts with provenance. Set `entity` (the subject) or recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.",+ "description": "MEMORY VERB (v1): save facts with provenance. Set `entity` (the subject) or recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.","params": {"source_id": {"type": "string",@@ -151,7 +151,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = ["mutating": false,"idempotent": true,"outputRedaction": "retrieval",- "description": "[EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB: answer a broad question across pages with citations. For lookups use recall or entity.",+ "description": "[EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB (v1): answer a broad question across pages with citations. For lookups use recall or entity.","params": {"question": {"type": "string",@@ -185,7 +185,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = ["name": "forget","idempotent": true,"outputRedaction": "no_stored_text",- "description": "MEMORY VERB: expire a remembered fact by its fact_id (never a page slug). Idempotent; the audit trail is kept.",+ "description": "MEMORY VERB (v1): expire a remembered fact by its fact_id (never a page slug). Idempotent; the audit trail is kept.","params": {"request_id": {"type": "string",@@ -2146,7 +2146,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = [},"expected_brain_id": {"type": "string",- "description": "Version 2 brain id to assert."+ "description": "Brain id to assert."},"source_incarnation": {"type": "string",@@ -4868,7 +4868,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = []}},- "description": "MEMORY VERB: 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 saved facts by entity, since or session_id; `query` also searches pages. Remote callers see world facts only. One card: entity; reasoning: synthesize.","params": {"entity": {"type": "string",@@ -4974,7 +4974,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = []}},- "description": "MEMORY VERB: core memory, budget-packed cards, open threads and hot facts for up to 8 entities, zero LLM. Call at session start and after compaction.",+ "description": "MEMORY VERB (v1): core memory, budget-packed cards, open threads and hot facts for up to 8 entities, zero LLM. Call at session start and after compaction.","params": {"entities": {"type": "string",@@ -5037,7 +5037,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = []}},- "description": "MEMORY VERB: pages, facts, thread events changed since a cursor, zero LLM. Pass session_id, cursor or since.",+ "description": "MEMORY VERB (v1): pages, facts, thread events changed since a cursor, zero LLM. Pass session_id, cursor or since.","params": {"since": {"type": "string",diff --git a/src/core/ops/facts.ts b/src/core/ops/facts.tsindex 7c608ee3b5..d953f67256 100644--- a/src/core/ops/facts.ts+++ b/src/core/ops/facts.ts@@ -240,7 +240,7 @@ const recall: Operation = {mutating: false,idempotent: true,outputRedaction: { retrieval: { localVerbatim: ['facts'] } },- description: 'MEMORY VERB: 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 saved facts by entity, since or session_id; `query` also searches pages. Remote callers see 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.' },@@ -661,7 +661,7 @@ const context_pack: Operation = {mutating: false,idempotent: true,outputRedaction: { retrieval: { localVerbatim: ['facts'] } },- description: 'MEMORY VERB: core memory, budget-packed cards, open threads and hot facts for up to 8 entities, zero LLM. Call at session start and after compaction.',+ description: 'MEMORY VERB (v1): core memory, budget-packed cards, open threads and hot facts for up to 8 entities, zero LLM. Call at session start and after compaction.',params: {entities: { type: 'string', description: 'Comma-separated names or slugs (max 8).' },budget_tokens: { type: 'number', description: 'Token budget; cards pack first.' },@@ -822,7 +822,7 @@ const delta: Operation = {mutating: false,idempotent: true,outputRedaction: { retrieval: { localVerbatim: ['facts'] } },- description: 'MEMORY VERB: pages, facts, thread events changed since a cursor, zero LLM. Pass session_id, cursor or since.',+ description: 'MEMORY VERB (v1): pages, facts, thread events changed since a cursor, zero LLM. Pass session_id, cursor or since.',params: {since: { type: 'string', description: 'ISO 8601 start time.' },since_slug: { type: 'string', description: 'Legacy: next_cursor.slug.' },diff --git a/src/core/ops/skills-catalog.ts b/src/core/ops/skills-catalog.tsindex 09d34b456e..bdd81a17b7 100644--- a/src/core/ops/skills-catalog.ts+++ b/src/core/ops/skills-catalog.ts@@ -83,7 +83,7 @@ const get_skill: Operation = {params: {schema_version: { type: 'number', description: '2 for an exact canonical revision.' },qualified_id: { type: 'string', description: 'Version 2 skill id.' },- expected_brain_id: { type: 'string', description: 'Version 2 brain id to assert.' },+ expected_brain_id: { type: 'string', description: 'Brain id to assert.' },source_incarnation: { type: 'string', description: 'From discovery.' },pack_id: { type: 'string', description: 'Pack id.' },revision: { type: 'string', description: 'Exact revision (default: head).' },diff --git a/src/core/verbs.ts b/src/core/verbs.tsindex 58b2c8fd04..8069dd5845 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: save facts with provenance. Set `entity` (the subject) or recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.',+ description: 'MEMORY VERB (v1): save facts with provenance. Set `entity` (the subject) or recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.',params: {...AGENT_CONTENT_PARAMS,fact: { type: 'string', description: 'One claim.' },@@ -287,7 +287,7 @@ const synthesize: Operation = {mutating: false,idempotent: true,outputRedaction: 'retrieval',- description: '[EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB: answer a broad question across pages with citations. For lookups use recall or entity.',+ description: '[EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB (v1): answer a broad question across pages with citations. For lookups use recall or entity.',params: {question: { type: 'string', description: 'The question.', required: true },since: { type: 'string', description: 'Window start (ISO 8601).' },@@ -422,7 +422,7 @@ const forget: Operation = {name: 'forget',idempotent: true,outputRedaction: 'no_stored_text',- description: 'MEMORY VERB: expire a remembered fact by its fact_id (never a page slug). Idempotent; the audit trail is kept.',+ description: 'MEMORY VERB (v1): expire a remembered fact by its fact_id (never a page slug). Idempotent; the audit trail is kept.',params: {request_id: WRITE_REQUEST_PARAM,id: { type: 'string', required: true, description: 'fact_id from remember or recall.' },diff --git a/test/fixtures/goldens/cli/tools-json.json b/test/fixtures/goldens/cli/tools-json.jsonindex 77f61a83b6..277c867d71 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": 231502,- "stdoutSha256": "f552c2da394e9439d4972d5f483734afb5aff05bda352740ffb3426f6413a62f",+ "stdoutBytes": 231522,+ "stdoutSha256": "84c1e4ed0597a71b0cf158479cc284c63bb78278ee63f9f0bd8ebbc8409a0bbc","toolNames": ["remember","entity",@@ -178,7 +178,7 @@],"tools": [{- "description": "MEMORY VERB: save facts with provenance. Set `entity` (the subject) or recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.",+ "description": "MEMORY VERB (v1): save facts with provenance. Set `entity` (the subject) or recall misses it. Branch on `status` (inserted|duplicate|superseded); write_pending: poll get_write_request.","idempotent": true,"local_only": false,"mutating": true,@@ -319,7 +319,7 @@"scope": "read"},{- "description": "[EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB: answer a broad question across pages with citations. For lookups use recall or entity.",+ "description": "[EXPENSIVE / SLOW: LLM calls, costs money] MEMORY VERB (v1): answer a broad question across pages with citations. For lookups use recall or entity.","idempotent": true,"local_only": false,"mutating": false,@@ -353,7 +353,7 @@"scope": "read"},{- "description": "MEMORY VERB: expire a remembered fact by its fact_id (never a page slug). Idempotent; the audit trail is kept.",+ "description": "MEMORY VERB (v1): expire a remembered fact by its fact_id (never a page slug). Idempotent; the audit trail is kept.","idempotent": true,"local_only": false,"mutating": true,@@ -2586,7 +2586,7 @@"schema": {"properties": {"expected_brain_id": {- "description": "Version 2 brain id to assert.",+ "description": "Brain id to assert.","type": "string"},"name": {@@ -5770,7 +5770,7 @@"scope": "write"},{- "description": "MEMORY VERB: 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 saved facts by entity, since or session_id; `query` also searches pages. Remote callers see world facts only. One card: entity; reasoning: synthesize.","idempotent": true,"local_only": false,"mutating": false,@@ -5886,7 +5886,7 @@"scope": "read"},{- "description": "MEMORY VERB: core memory, budget-packed cards, open threads and hot facts for up to 8 entities, zero LLM. Call at session start and after compaction.",+ "description": "MEMORY VERB (v1): core memory, budget-packed cards, open threads and hot facts for up to 8 entities, zero LLM. Call at session start and after compaction.","idempotent": true,"local_only": false,"mutating": false,@@ -5946,7 +5946,7 @@"scope": "read"},{- "description": "MEMORY VERB: pages, facts, thread events changed since a cursor, zero LLM. Pass session_id, cursor or since.",+ "description": "MEMORY VERB (v1): pages, facts, thread events changed since a cursor, zero LLM. Pass session_id, cursor or since.","idempotent": true,"local_only": false,"mutating": false,