T02 · Agent Memory Poisoning
- Location
references/dream-prompt.md:39- Finding
Persistent Memory Poisoning Through Untrusted Workspace and Session Records
- Content
View full analysis
/dev/null | tail -5 # Find sessions with decisions grep -l "let's do\|go with\|use.*instead\|we decided\|the plan is" ~/.openclaw/agents/main/sessions/*.jsonl 2>/dev/null | tail -5 ``` For each file found, grep the specific pattern to extract just the relevant context line. Do NOT read entire session files. ### 2c: Check learnings Read `.learnings/LEARNINGS.md` — note entries with `Status: pending` (especially `Priority: high`). Read `.learnings/ERRORS.md` — note entries with `Status: pending`. ### 2d: Scan for plans Run: ```bash find ~/.openclaw/workspace -name "task_plan.md" -not -path "*/node_modules/*" -not -path "*/skills/*/task_plan.md" 2>/dev/null ``` ``` The gathered content is then persisted by the following instructions at `references/dream-prompt.md:68-80`: ```markdown ## PHASE 3: CONSOLIDATE Update MEMORY.md with gathered signal. Rules: 1. **Don't duplicate** — if a fact already exists in MEMORY.md, skip it ...[truncated 3715 chars]- Remediation
View remediation
