Hey, I found the following in my OpenClaw installation (v2026.2.26) at dist/pi-embedded-CQnl8oWA.js:
js// src/auto-reply/reply/post-compaction-audit.ts
const DEFAULT_REQUIRED_READS = ["WORKFLOW_AUTO.md", /memory/\d{4}-\d{2}-\d{2}.md/];
After every compaction, my agent gets a message starting with ⚠️ Post-Compaction Audit: The following required startup files were not read... referencing WORKFLOW_AUTO.md. Is this a legitimate built-in OpenClaw feature? I previously reported it as a prompt injection and was told it's not from OpenClaw — but the source code suggests otherwise. Can someone clarify?
#Workflow Auto.md after Compaction
1 messages · Page 1 of 1 (latest)
Yes — that warning is coming from OpenClaw itself, not a prompt injection.
In v2026.2.26 there’s a built-in “post-compaction read audit” in the auto-reply pipeline:
-
The default required reads are hard-coded as:
-
WORKFLOW_AUTO.md -
memory/YYYY-MM-DD.md(regex for daily memory files)
Source:src/auto-reply/reply/post-compaction-audit.tslines 4–8 -
After an auto-compaction happens, the reply runner sets a “pending audit” flag, then on the next turn it:
- reads the last ~100 lines of the session JSONL
- extracts any
readtool calls + theirpath/file_path - checks whether those required files were read
- if not, it enqueues the exact system event you’re seeing
Source:src/auto-reply/reply/agent-runner.tslines 724–741
So if you’re seeing “⚠️ Post-Compaction Audit: The following required startup files were not read…”, it specifically means: after the compaction, the agent did not issue read tool calls for those paths (in the recent session log).