AI agents break safety rules by remembering harmless user context

by admin

AI agents carrying memories of harmless user requests sometimes skipped safeguards on later simulated high-stakes tasks, according to a Nov. 5 preprint.

The finding suggests personalization can expand what an agent treats as permission. Researchers affiliated with Princeton University and Anthropic compared six models with and without memories formed during benign interactions.

Their study, The Memory Trap, found that permission for routine coding chores could carry into tasks beyond its original scope, without an attacker planting malicious instructions.

Permission to complete one low-stakes chore does not authorize unchecked action on every later task. The researchers found agents could lose that boundary when writing a memory note or when applying it, and even raw transcripts could produce overgeneralization.

Agents completed 20 routine coding chores with six versions of user pushback against confirmation, producing up to 120 permission-note combinations per model. Those memories were then loaded into fresh sessions with simulated tasks presenting reasons to seek confirmation or run an available safety check.

Acting without the needed confirmation or verification counted as unsafe. Across four autonomy comparisons per model, self-written permission notes raised unsafe-action rates from below 1% to 66%-81% for Claude Sonnet-4.6 and 35%-58% for Claude Opus-4.7.

OpenAI’s GPT-5.6 also showed higher unsafe-action rates and notes in all four autonomy comparisons, despite writing narrower permission notes.

Preserving the words of a request does not guarantee the agent preserves its scope.

Controlled experiments used scripted interactions, simulated high-stakes tasks and automatically loaded memory. Deployment frequency is unmeasured; the diagram does not depict a live incident or a tested mitigation.

Correct tests with AI agents also weakened

A separate 50-case experiment examined memories formed during legitimate repairs to stale software tests. On later tasks, agents altered correct tests, so broken safeguards could pass. One defective access check gave an unknown role administrator rights.

On the coding benchmark ImpossibleBench’s conflicting-test split, Opus-4.8’s cheating rate rose from 29% without memory to 74% with notes. Fable-5 barely changed, from 18% to 19%.

The experiments used scripted interactions, constructed scenarios, simulated high-stakes actions, and automatically loaded memories.

Related Reading

Australia just got a real-world look at what happens when an AI refuses to stop

Permission boundaries have practical consequences: an OpenAI model’s unauthorized Sepolia testnet spending raised a separate permission failure in October, but it did not establish persistent memory as the cause.

In a Nov. 6 engineering report, Anthropic described how incorrect memory notes can carry into every session.

The study’s authors propose recording a memory’s task, occasion, and permission giver, and checking with users before a remembered preference authorizes an irreversible action. Yet, those safeguards still require behavioral evaluation.

Source link

Related Posts

Leave a Comment