-
-
Notifications
You must be signed in to change notification settings - Fork 52.9k
Closed as not planned
Closed as not planned
Copy link
Description
Problem
After context compaction, agents receive this system message:
⚠️ Post-Compaction Audit: The following required startup files were not read after context reset:
- WORKFLOW_AUTO.md
- memory/\d{4}-\d{2}-\d{2}.md
Please read them now using the Read tool before continuing. This ensures your operating protocols are restored after memory compaction.
WORKFLOW_AUTO.md is hardcoded in src/auto-reply/reply/post-compaction-audit.ts as part of DEFAULT_REQUIRED_READS, but:
- Never auto-generated — not created by
openclaw setup,openclaw onboard, or any bootstrap process - Not documented — not mentioned in
docs/concepts/agent-workspace.mdor any other docs - No config override — hardcoded with a comment
// extensible to config laterthat was never implemented - No template — no guidance on what the file should contain
Impact
Every compaction triggers a warning for a file that doesn't exist. The agent either gets a read error or wastes a tool call on nothing. This happens on every agent workspace out of the box.
Suggested fix
Either:
- A) Add
WORKFLOW_AUTO.mdto the bootstrap file set with a sensible default template (like other workspace files) - B) Make
DEFAULT_REQUIRED_READSconfigurable and removeWORKFLOW_AUTO.mdfrom the hardcoded default - C) Document the file in
agent-workspace.mdso users know to create it manually
Ideally A + B.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels