Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

memory_recall/memory_write: advertise source_id and source_ids on the full surface only (harness code sets them)

garrytan365b332ae7aa
diff --git a/src/core/operation-manifest.generated.ts b/src/core/operation-manifest.generated.ts
index ad1d42d56b..2bdb8a6a95 100644
--- a/src/core/operation-manifest.generated.ts
+++ b/src/core/operation-manifest.generated.ts
@@ -6387,14 +6387,16 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"source_id": {
"type": "string",
- "description": "Read this one source as its audience (a shared scope): never the person's own facts."
+ "description": "Read this one source as its audience (a shared scope): never the person's own facts.",
+ "fullSurfaceOnly": true
},
"source_ids": {
"type": "array",
"items": {
"type": "string"
},
- "description": "Read only these sources as their audience (a shared scope): never the person's own facts."
+ "description": "Read only these sources as their audience (a shared scope): never the person's own facts.",
+ "fullSurfaceOnly": true
}
},
"scope": "read",
@@ -6458,7 +6460,8 @@ export const OPERATION_MANIFEST: OperationMeta[] = [
},
"source_id": {
"type": "string",
- "description": "One of this credential's scope sources: save on its shared memory/scope page."
+ "description": "One of this credential's scope sources: save on its shared memory/scope page.",
+ "fullSurfaceOnly": true
}
},
"scope": "write",
diff --git a/src/core/ops/qm-memory.ts b/src/core/ops/qm-memory.ts
index cf1723714a..21e46fef0e 100644
--- a/src/core/ops/qm-memory.ts
+++ b/src/core/ops/qm-memory.ts
@@ -173,8 +173,8 @@ const memory_recall: Operation = {
query: { type: 'string', required: true, description: 'What the turn is about; ranks the facts.' },
max_chars: { type: 'integer', description: `Text cap in UTF-16 code units, ${MEMORY_RECALL_MAX_CHARS.min}-${MEMORY_RECALL_MAX_CHARS.max} (default ${MEMORY_RECALL_MAX_CHARS.default}).` },
[ACTOR_ARGUMENT]: actorParam,
- source_id: { type: 'string', description: 'Read this one source as its audience (a shared scope): never the person\'s own facts.' },
- source_ids: { ...SOURCE_IDS_PARAM, description: 'Read only these sources as their audience (a shared scope): never the person\'s own facts.' },
+ source_id: { type: 'string', description: 'Read this one source as its audience (a shared scope): never the person\'s own facts.', fullSurfaceOnly: true },
+ source_ids: { ...SOURCE_IDS_PARAM, description: 'Read only these sources as their audience (a shared scope): never the person\'s own facts.', fullSurfaceOnly: true },
},
scope: 'read',
annotations: { title: 'memory_recall (QM memory read)', readOnlyHint: true },
@@ -246,7 +246,7 @@ const memory_write: Operation = {
},
idempotency_key: { type: 'string', required: true, description: '1-128 visible ASCII characters; the same key replays this write.' },
[ACTOR_ARGUMENT]: actorParam,
- source_id: { type: 'string', description: `One of this credential's scope sources: save on its shared ${SCOPE_PAGE_SLUG} page.` },
+ source_id: { type: 'string', description: `One of this credential's scope sources: save on its shared ${SCOPE_PAGE_SLUG} page.`, fullSurfaceOnly: true },
},
scope: 'write',
annotations: { title: 'memory_write (QM memory write)', idempotentHint: true },