From 615a1460a05cf18fd96dab7a95c747b73d5cd268 Mon Sep 17 00:00:00 2001 From: Cory Shelton Date: Sun, 19 Apr 2026 15:44:50 -0600 Subject: [PATCH] fix(dreaming): fleet-canon prompt emits openclaw-required frontmatter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Daily canon entries (canon/YYYY-MM-DD.md) now emit pageType, id, status, createdAt, updatedAt, sourceIds, tags in addition to the existing kind/date/title fields. Keeps kind/date for backward compat. Why: memory-wiki lint flags files without pageType/id as errors, and the BenchAGI canon-slice publisher (scripts/wiki-canon-publish/publish.ts in the Bench monorepo, per ADR-2026-04-19) skips daily canon files for the same reason. Without this fix, each night's fleet rollup was invisible to the shard-distribution pipeline. Next night's cron produces properly-structured files. Existing broken files (2026-04-18.md, 2026-04-19.md) can be backfilled with the same script pattern as scripts/wiki-canon-publish/fix-source-frontmatter.ts in the Bench monorepo — or left alone since daily canon is regenerative and supersedes itself. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../assets/prompts/fleet-canon-protocol.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/extensions/bench-reflective-dreaming/assets/prompts/fleet-canon-protocol.md b/extensions/bench-reflective-dreaming/assets/prompts/fleet-canon-protocol.md index 6b604d633c465..aebc20b73ab04 100644 --- a/extensions/bench-reflective-dreaming/assets/prompts/fleet-canon-protocol.md +++ b/extensions/bench-reflective-dreaming/assets/prompts/fleet-canon-protocol.md @@ -38,11 +38,27 @@ completed. Your job is to synthesize — not summarize — what the fleet learne **Path:** `~/.openclaw/wiki/main/canon/.md` +**Frontmatter is required** — the canon-slice publisher and lint read +these fields. Emit the block verbatim, filling in the dates. `sourceIds` +should list the dream-page IDs you consolidated (read them from each +dream's frontmatter `id:` field). + ```markdown --- +pageType: canon +id: canon.fleet-daily. title: "Canon, " kind: canon date: +status: active +createdAt: +updatedAt: +sourceIds: + - + - +tags: + - fleet + - daily-canon --- ## The thread tonight