Step-by-step answer
Stretch 60 min6 stepsRed-team persistence across sessions
A five-session claude -p agent loop over a /memories directory, where code applies the model's proposed writes. Session 1 reads a document whose hidden instruction asks to be saved as a procedure (or as a note); sessions 2 to 5 are benign. Eight defence configurations are compared on whether the payload is written, how long it survives and how many later sessions it steers. The result: typed writes stop the procedure form outright, but only trust tiers make TTL and framing work, because both key on provenance.
Back to the exercise