Garry's Opinionated OpenClaw/Hermes Agent Brain
TypeScript
fix: pre-landing review fixes
garrytanc9a0343b81b5
diff --git a/src/core/operation-manifest.generated.ts b/src/core/operation-manifest.generated.tsindex eefec5ac65..865813f126 100644--- a/src/core/operation-manifest.generated.ts+++ b/src/core/operation-manifest.generated.ts@@ -15,7 +15,7 @@ export const OPERATION_MANIFEST: OperationMeta[] = ["idempotent": true,"outputRedaction": "no_stored_text","description": "Save {fact, provenance (required: source), `entity` (subject; recall needs it)} or items[]. Branch on `status`; write_pending: poll get_write_request.",- "callShape": "A valid call: {\"fact\": \"Alice Example prefers email\", \"entity\": \"alice-example\", \"provenance\": \"user told me, 2026-06-12\"}; several: items: [{fact, entity, provenance}, ...]. provenance (where the fact came from) is required.",+ "callShape": "A valid call: {\"fact\": \"<one claim>\", \"entity\": \"<subject-slug>\", \"provenance\": \"<where you learned it, with the date>\"}; several: items: [{fact, entity, provenance}, ...]. provenance (where the fact came from) is required.","params": {"source_id": {"type": "string",diff --git a/src/core/verbs.ts b/src/core/verbs.tsindex cef0b8c2a2..eddf6f8da9 100644--- a/src/core/verbs.ts+++ b/src/core/verbs.ts@@ -59,7 +59,7 @@ const FACT_KINDS = ['event', 'preference', 'commitment', 'belief', 'fact'] as co*/const FACT_KINDS_RESPONSE = [...FACT_KINDS, 'idea'] as const;const PROVENANCE_MAX = 500;-const REMEMBER_CALL_SHAPE = 'A valid call: {"fact": "Alice Example prefers email", "entity": "alice-example", "provenance": "user told me, 2026-06-12"}; several: items: [{fact, entity, provenance}, ...]. provenance (where the fact came from) is required.';+const REMEMBER_CALL_SHAPE = 'A valid call: {"fact": "<one claim>", "entity": "<subject-slug>", "provenance": "<where you learned it, with the date>"}; several: items: [{fact, entity, provenance}, ...]. provenance (where the fact came from) is required.';// ─── remember ────────────────────────────────────────────────────────────────diff --git a/test/remember-invalid-params-shapes-gst1493.test.ts b/test/remember-invalid-params-shapes-gst1493.test.tsindex 309f83b11e..b8cba61bbd 100644--- a/test/remember-invalid-params-shapes-gst1493.test.ts+++ b/test/remember-invalid-params-shapes-gst1493.test.ts@@ -49,6 +49,7 @@ describe('remember refusals name the rule and a corrected example (GST-1493)', (expect(envelope.suggestion).toMatch(/provenance[^.]*required/);const example = quotedExample(envelope.suggestion);expect(Object.keys(example).sort()).toEqual(['entity', 'fact', 'provenance']);+ for (const value of Object.values(example)) expect(String(value)).toMatch(/^<[^<>]+>$/);const retried = await call({ ...example, dry_run: true });expect(retried.isError).toBe(false);expect(retried.envelope.dry_run).toBe(true);