TRANSMISSION // 2611.32194v1
When an AI agent’s summary can rewrite what the user authorized
Source published
Context summaries can blur who said what, letting an AI agent’s security policy treat attacker-supplied data as a user request. A proposed authenticated-record gate aims to preserve that distinction.

AI agents often summarize long conversations to make room for new work. But if a security check reads that summary as though it were the user’s latest message, information from a webpage or document can influence what the agent is allowed to do. A new preprint studies this authorization gap and tests a design that keeps the summary for the agent while giving the security check authenticated user messages.
An AI assistant may be asked to pay rent, update a file or send an email. A security layer can limit the tools and arguments the assistant is allowed to use, based on what the user requested. But what happens when the conversation grows so long that the software replaces earlier messages with a summary—and labels that summary as a user message?
A preprint by Zeming Fei and colleagues examines how this context compaction can affect authorization. The authors focus on request-derived systems: a policy generator reads a request and creates rules for which actions an agent may take. Their central concern is not simply whether a summary leaves out information. It is whether the system can still tell who originally supplied the information it contains.
How a summary can change the rules
The researchers report that, in the automatic compactions they examined, Claude Code and locally compacting Codex placed the model-written summary in a user-message position. A request-derived authorizer that treats the latest user message as the user’s own words may therefore mistake a summary of documents, tool outputs and injected material for a fresh instruction from the user.
The team tested this problem with Progent, an authorization system, in benchmark tasks involving prompt injection. They compared policies made before and after compaction, varied where the summary appeared, and tested different compaction prompts and models. They also examined records from Claude Code and Codex, and tried a proposed defense in which the agent still reads the summary but the policy generator receives a separate, authenticated record of user turns.
One example involved a user who had already named a landlord’s account and later asked to pay rent. An attacker’s notice contained a different account as ordinary data, rather than as an explicit instruction. In the reported experiments, policies generated from summaries admitted the notice’s account in 290 of 320 cases. Policies generated from the user’s own words did not admit it. These are results for the tested setup, not a general estimate of how often deployed agents will mishandle payments.
The authors also report that summaries carrying an explicit warning about an injected value were less likely to have that value authorized. But warnings were not a dependable answer: compactors could leave ordinary-looking data unmarked. And removing an attacker’s account from a summary did not always make the policy safe; a policy could leave the recipient unrestricted, which would still allow a transfer to that account.
A separate record for authorization
The proposed “witnessed-request gate” is designed to preserve attribution across compaction. When a user message arrives, the system authenticates it and records it unchanged. At the compaction boundary, a trusted component checks that the complete sequence of authenticated records is present and in order. The policy generator receives those records—or nothing if a check fails—while the agent can continue using the broader summary.
In 40 attacked AgentDojo episodes rerun with the gate, the researchers report that no attacker action completed while the agent read the summary. The paper also describes adaptive tests that tried replaying, reordering or altering records; the gate rejected manipulated inputs under its stated assumptions. The design’s protection depends on those assumptions, including that the authentication keys and counters remain outside the agent’s reach and that trusted components correctly identify message sources.
The authors give a broader theoretical reason for separating these inputs: if an authorization system sees only text, and a forged record is indistinguishable from a legitimate one in that text, the system cannot reliably treat them differently. Cryptographic authentication can preserve information about origin that a summary alone does not contain.
What the evidence does—and doesn’t—show
The experiments cover AgentDojo and the Agent Security Bench, selected products and compaction prompts, and particular versions of models and software. The reported count of 1,108 automatic compactions applies to the Claude Code and Codex records examined; it does not establish that every version or configuration behaves the same way. Nor do benchmark episodes establish how often such attacks occur in everyday use.
The gate was evaluated in replayed benchmark sessions, not integrated as a production defense in a live agent. Its guarantee also does not automatically settle whether a document’s contents should be trusted: if a user asks an agent to act on a document, the document’s source and authority still matter. The authors identify longer sessions, memory across sessions and multi-agent workflows as areas for further evaluation.
This is an arXiv preprint, so its claims should be treated as research findings awaiting independent scrutiny, not as settled deployment guidance. Its key lesson is narrower and concrete: when a security policy depends on what the user said, a machine-written summary should not silently stand in for the user’s authenticated words.
- AI agent security
- context compaction
- prompt injection
- authorization
- data provenance
- LLM agents
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
A finer-grained fence for AI agents’ tool calls
Supporting evidence: Both studies report tested defenses that constrain authorization outside the agent’s ordinary interpretation of retrieved content. Fei et al. report that their gate, which gives the authorizer authenticated user turns while the agent reads the summary, prevented attacker actions in 40 attacked AgentDojo episodes. Li et al. report that ToolFence checks proposed calls and argument values against task-scoped capabilities, with attack success falling to 0% in one AgentDojo/Qwen3-max setting. This supports the bounded point that external authorization checks blocked tested attacks; the designs and evaluation conditions differ, so the results are not directly comparable.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.32194v1 — Original paper
Excerpt reference:
static/papers/2611.32194v1.md:150-214
Basis: Paper text
Source SHA-256:900829aa2d0c551432bfae8cca1e431b10daf1ed98885d0bc01a0eb502b776352609.37196v2 — Original paper
Excerpt reference:
static/papers/2609.37196v2.md:16-56
Basis: Paper text
Source SHA-256:e15db5d62820abc6f8b72ad32e4411e5b3b3b38cb65611edd8ce6e2edf64c11a
When AI Agents Summarize, Their Rules Can Disappear
Supporting evidence: Both studies show that compaction can affect whether an agent continues to act within the user’s constraints, but identify different effects. Fei et al. report that a model-written summary placed in the request slot can be treated as the user’s words and influence authorization. Salle et al. report that summaries can drop task constraints, including process instructions and scope exclusions. Together, these findings support the bounded point that compaction can undermine constraint-respecting behavior; they do not establish a shared mechanism or comparable rates, and the studies use different systems and outcomes.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.32194v1 — Original paper
Excerpt reference:
static/papers/2611.32194v1.md:63-149
Basis: Paper text
Source SHA-256:900829aa2d0c551432bfae8cca1e431b10daf1ed98885d0bc01a0eb502b776352610.31778v2 — Original paper
Excerpt reference:
static/papers/2610.31778v2.md:653-697
Basis: Paper text
Source SHA-256:9eb347a9f5e74a1280e03e29adda1c1b655acec7e161c7ab67c65d5b2428c987
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
A finer-grained fence for AI agents’ tool calls
Source published
Shared keywords: ai agent security, data provenance, llm agents, prompt injection
Checking Whether AI Agents Act on What Users Actually Asked
Source published
Shared keywords: data provenance, prompt injection
A Trust Checkpoint for AI Agents Crossing Organization Boundaries
Source published
Shared keywords: ai agent security
Conflux puts permission checks outside the language model
Source published
Shared keywords: ai agent security, prompt injection
MemoryDojo tests how poisoned AI memories influence later tasks
Source published
Shared keywords: ai agent security