Skip to content

fix(dreaming): fleet-canon emits openclaw-required frontmatter#4

Merged
LightDriverCS merged 1 commit into
mainfrom
fix/fleet-canon-frontmatter
Apr 20, 2026
Merged

fix(dreaming): fleet-canon emits openclaw-required frontmatter#4
LightDriverCS merged 1 commit into
mainfrom
fix/fleet-canon-frontmatter

Conversation

@LightDriverCS
Copy link
Copy Markdown

Summary

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. Backward-compatible (keeps kind: canon and date:).

Why

Memory-wiki lint flags files without pageType/id as errors. The BenchAGI canon-slice publisher (per Bench ADR-2026-04-19) skips files missing those fields. Without this fix, each night's fleet rollup was invisible to the shard-distribution pipeline.

Impact

  • Next night's fleet-canon cron produces properly-structured files — publisher picks them up automatically.
  • Existing broken files (canon/2026-04-18.md, canon/2026-04-19.md) can stay as-is; daily canon is regenerative. Backfill possible with the pattern in scripts/wiki-canon-publish/fix-source-frontmatter.ts.

Test plan

  • After merge, wait for next nightly cron (02:30–03:40 MT).
  • Inspect ~/.openclaw/wiki/main/canon/<tomorrow>.md — verify frontmatter present.
  • Run npx tsx scripts/wiki-canon-publish/publish.ts in the Bench monorepo — confirm the file is no longer skipped.
  • openclaw wiki lint — confirm no new errors.

Related

🤖 Generated with Claude Code

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) <noreply@anthropic.com>
@LightDriverCS LightDriverCS merged commit e938cea into main Apr 20, 2026
2 checks passed
@LightDriverCS LightDriverCS deleted the fix/fleet-canon-frontmatter branch April 20, 2026 01:44
LightDriverCS added a commit that referenced this pull request Apr 28, 2026
Commits the bench-reflective-dreaming bundler stub (untracked since 2026-04-20). Should have shipped with #1 / #4 but was missed.

Codex Anvil (gpt-5.5 xhigh) verdict: REPAIR. Initial bare `export const PLUGIN_RUNTIME` satisfied tsdown but failed the OpenClaw plugin loader contract (`src/plugins/loader.ts` rejects modules without `register`/`activate`). Repair: replaced with no-op `definePluginEntry`. Verified pnpm build emits dist/extensions/bench-reflective-dreaming/index.js + loader returns status: "loaded".

🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant