T02 · Agent Memory Poisoning
- Location
SKILL.md:24- Finding
Untrusted Session Learnings Can Be Promoted into Persistent Agent Instructions
- Content
View full analysis
Project uses pnpm workspaces. `npm install` fails because lock file is `pnpm-lock.yaml`. Promote to `CLAUDE.md`: ```markdown ## Build & Dependencies - Package manager: **pnpm** (not npm) — always use `pnpm install` ``` ## Recurring Pattern Detection Before logging, search for related entries: ```bash grep -r "keyword" .learnings/ ``` If similar entry exists: - Link with `**See Also**: LRN-...` - Increment `Recurrence-Count` - Consider systemic fix (promote to AGENTS.md, create tech debt ticket) **Promote to permanent prompt guidance** when a pattern: - Occurs 3+ times - Spans 2+ distinct tasks - Within a 30-day window ``` Related behavior also appears in: - `references/openclaw-integration.md:65-143` - `references/other-agents.md:34-68` - `assets/LEARNINGS.md:9-18` ### Technical Analysis The Skill treats user corrections, command failures, tool output, and conversational observations as sources of reusable learning. It then directs the agent to promote selected learning into files such as `SOUL.md`, `AGENTS.md`, `TOOLS.md`, `CLAUDE.md`, and `.github/copilot-instructions.md`. These files are not passive logs. They are commonly loaded as agent instructions in later sessions and can influence beha ...[truncated 1892 chars]- Remediation
View remediation
