Memory Manipulation
- Category
- Memory Poisoning
- Confidence
- 80% confidence
- Finding
Skill manipulates agent memory, state, or stored context. Memory corruption can alter personality, override safety rules, or cause unpredictable behavior.
- Content
json "name": "exec-vs-query-for-non-select", "description": "Tests the subtle rule that db.Query must NOT be used for statements that don't return rows", "prompt": "Write a Go function that deletes expired sessions from a PostgreSQL database. Use sqlx. The function should delete all sessions where expires_at < now() and return the number of deleted rows.", "trap": "The model may use db.QueryContext or db.Query for the DELETE statement, which returns *Rows that must be closed. The skill says to use db.Exec for statements that don't return rows.", "assertions": [ {"id": "2.1", "text": "Uses ExecContext (not QueryContext or Query) for the DELETE statement"}, {"id": "2.2", "text": "Uses the *Context variant (ExecContext, not Exec)"},
