openclaw/docs/reference/templates
echoVic ac17729161
fix: align AGENTS.md template section names with post-compaction extraction (#25029)
The official AGENTS.md template uses '## Every Session' and '## Safety',
but post-compaction context extraction expects '## Session Startup' and
'## Red Lines'. This causes workspaces using the official template to
lose startup context and safety rules after compaction.

Changes:
- Rename template sections to match code expectations (both EN and zh-CN)
- Add legacy fallback: code now tries 'Every Session'/'Safety' when
  'Session Startup'/'Red Lines' are not found (backward compatible)
- Add tests for legacy fallback and precedence when both exist
2026-03-04 12:02:35 -08:00
..
AGENTS.dev.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
AGENTS.md fix: align AGENTS.md template section names with post-compaction extraction (#25029) 2026-03-04 12:02:35 -08:00
BOOT.md docs: SEO and AI discoverability improvements 2026-02-09 14:20:56 -08:00
BOOTSTRAP.md docs: SEO and AI discoverability improvements 2026-02-09 14:20:56 -08:00
HEARTBEAT.md docs: SEO and AI discoverability improvements 2026-02-09 14:20:56 -08:00
IDENTITY.dev.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
IDENTITY.md docs(markdownlint): enable autofixable rules and normalize links 2026-02-06 09:55:12 -05:00
SOUL.dev.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
SOUL.md docs: SEO and AI discoverability improvements 2026-02-09 14:20:56 -08:00
TOOLS.dev.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
TOOLS.md docs: SEO and AI discoverability improvements 2026-02-09 14:20:56 -08:00
USER.dev.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
USER.md docs: linting 2026-02-06 09:35:57 -05:00