Skip to content

Garry's Opinionated OpenClaw/Hermes Agent Brain

TypeScript

fix(dream): require self-contained opening summary in synthesized pages (#2770)

Masa0612b0daa8d5
diff --git a/src/core/cycle/synthesize.ts b/src/core/cycle/synthesize.ts
index eea2994134..2dc1a5f7a6 100644
--- a/src/core/cycle/synthesize.ts
+++ b/src/core/cycle/synthesize.ts
@@ -1054,6 +1054,7 @@ OUTPUT POLICY (ALL of these are required)
2. Cross-reference compulsively: every new page MUST contain at least one wikilink (e.g., \`[ref](people/jane-doe)\` or \`[[people/jane-doe]]\`) to existing brain content. Use the search tool to find existing pages first.
3. Do NOT write to any path outside the allow-list shown in the put_page schema.
4. Slug discipline: lowercase alphanumeric and hyphens only, slash-separated segments. NO underscores, NO file extensions.
+5. Self-contained opening: begin every new page's body with a 2-3 sentence summary that a reader unfamiliar with this transcript could understand on its own, before any quotes or detail. Do not assume the reader has the source conversation for context.
TASKS
A. Reflections (self-knowledge, pattern recognition, emotional processing):