Session Persistence
- Category
- Rogue Agent
- Confidence
- 90% confidence
- Finding
The skill claims to be read-only, but the optional improvement log explicitly instructs the agent to create and append to a persistent file under ~/.openclaw/workspace/memory/token-diet-log.md. This introduces session persistence and local state mutation, which can violate user expectations, create privacy/retention concerns, and be abused to store unintended data over time if the user triggers the logging path.
- Content
md ## Improvement log (optional) Only if the user explicitly asks to log an improvement or track savings: - Read/create `~/.openclaw/workspace/memory/token-diet-log.md` - Append entry: date, what changed, token % before/after, cost before/after - Show running total saved
