DET-197 · agent · confidence Medium
Instruction-Like Memory Writes
Flag memory or notes entries that contain commands, URLs or permission language, especially from sessions that read untrusted content.
Memory poisoning needs a write. Logging every memory write with its session and the sources that session read lets you score entries. Entries with imperative phrasing, outside URLs or email addresses, or words like "always", "skip" and "approved", from a session that touched web, email or ticket content, should go to review.
Review flagged entries before they take effect if you can, and keep the full history of memory files under version control so you can see when a behavior change began.
- Data sources
- Agent memory store audit logAgent session tracesInstruction file change history
- Platforms
- AI Platform
Logic
SELECT m.id, m.session_id, m.text
FROM memory_writes m JOIN session_sources s USING (session_id)
WHERE s.source_type IN ('web','email','ticket','tool_output')
AND (m.text ~* '\m(always|never|skip|ignore|approved|do not tell|prefer)\M' OR m.text ~* 'https?://|[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+')
-- also diff CLAUDE.md, AGENTS.md, .cursorrules on every agent commitFalse positives
Users who ask the agent to remember real preferences that include links.