All episodes
Episode 302 · Nov 26, 2026 · 21 min

Why Your Agent's Own Summary Gets Filed As Your Message

PaperDive — Episode 302: Why Your Agent's Own Summary Gets Filed As Your Message — cover art
paperdive.ai

When a long coding session runs out of room, the quietly rewrites the transcript — and files the model's summary under your name. One team showed that a payment to an attacker's account went from zero out of 320 cases to 290 out of 320 the moment the permission check read that summary instead of your typed words. Three papers on who controls a coding 's conversation history, and what breaks when it isn't you.

Key takeaways

  • Why every one of 1,108 recorded automatic compactions in and filed the model's summary as a user message — and why all eleven the team read do it the same way
  • The control experiment that isolates the cause: summaries widened permissions in 70 percent of episodes in the , and in none of them as a
  • Why a better summarizer can't fix this — it catches 219 of 220 injected instructions but cannot tell a planted account number from a real one
  • The one sentence about compacting at 85 percent that kept K3 from discarding history at 29 percent context usage — the authors' 'context anxiety'
  • Why parallel cost 2.6 to 3.8 times as much for 1 to 5 points, and the single probing sentence that recovered 6.7 of the 8.8 points on hard tasks
  • Where each paper is still early: simulated window pressure, replayed benchmark sessions, and a 7-point run-to-run noise band wider than the effect being argued about

Our reservations

The steelman critique. On "Letting Models Manage Their Own Context: Where We Stand": The authors themselves flag small benchmarks (90 questions and 22 competitions), context pressure simulated by shrinking the budget rather than running genuinely long tasks, only four models with unknown training, and a single for the cache experiment. On "LLM Agent Authorization Across Context Compaction": The core…

Ep. 302
Why Your Agent's Own Summary Gets Filed As Your Message
0:00
21 min

Chapters

  1. 00:00The note becomes the past
  2. 03:12Who should hold the filing cabinet key?
  3. 05:56One sentence against context anxiety
  4. 07:57A label nobody thought was security
  5. 10:07Zero of 320, then 290 of 320
  6. 11:21Same bytes, different slot, different outcome
  7. 14:55Are parallel subagents worth 3x the cost?
  8. 17:50When starting over beats resuming

References in this episode

Also available as a plain-text transcript page.

0:00Paige: It's November 26, 2026. From 485 new papers and 18 blog and release posts published since November 22, we picked three papers.

0:09Eric: All three are about the conversation history of a coding , a model that uses tools to work on code, and about who gets to rewrite that history. Okay, so here's what you're going to learn today. First, we'll cover context , which replaces earlier conversation with a summary, and why that summary ends up labeled as your own message. In all 1,108 automatic compactions that one team recorded in and , the summary written by the model was filed as if the user had typed it. Then we'll explain why a permission rule that reads "the latest user message" stops meaning what you think after that happens. After that, we'll ask when parallel , extra agents working alongside the main one, are worth three times the money. We'll also cover the one sentence that buys most of the same gain. And last, we'll explain why clearing the conversation and starting a fresh session on the existing code can do better than resuming a stalled one.

1:08Paige: Before we get to the first paper, it helps to understand itself, because all three papers turn on it. In an earlier episode, we said that the is the program wrapped around the model, and that the model keeps nothing between turns. Everything the model seems to remember is text that the harness puts back in front of it each time. Compaction is the second half of that lesson. The is the fixed amount of text the model can see at once, and a long session eventually grows past it. So the harness asks a model to write a short summary of the earlier turns. It then continues from the summary and removes those original turns from the text the model receives.

1:51Eric: Think of a long meeting with a minute-taker. The whiteboard runs out of room, so the minute-taker replaces the first two hours of discussion with a one-page note. From that moment on, everyone in the room argues from the note and not from what was said. Now, in a real meeting, the people still remember the discussion, so the note is only a convenience. For the model, there is no memory behind the note. The note is the past.

2:17Paige: Here is a made-up example. Say your has opened twenty files and run thirty commands while trying to fix a . That is perhaps a hundred thousand of file contents, and test output. The window fills, and what survives is one paragraph. It says, "The user wants the parser fixed. The tests live in the parser tests folder. The failure is on quoted fields." The contents of the twenty files are gone from its context, and so are the thirty command outputs. Suppose the agent had already tried one approach and rejected it, but the summary did not keep that fact. Then the agent will try the same approach again.

2:56Eric: And there is one more detail that matters for today. That paragraph has to be filed somewhere in the transcript, and every message in the transcript carries a label that says who is speaking. Keep that in mind, because the second paper is entirely about that label. So is not an accident that happens to you. It follows a that decides when to summarize and what to replace. The first paper asks what happens when you hand those decisions to the model.

3:25Paige: This first paper is a technical report from NVIDIA, and it ran inside NOOA, NVIDIA's open-source . The team compared two setups. In the first one, the is in charge, which is the normal arrangement today. When the window is 80 percent full, the harness summarizes the earlier history. It keeps the initial instructions and the ten most recent events word for word. Those events include messages, and . In the second setup, the model is in charge. It gets a tool that lets it collapse a range of past events into a summary. The originals go into an archive that the model can read back later. The model also gets a live indicator of how full its context is, and a warning as it approaches the limit. It gets one timing instruction: consider compacting only once usage reaches 85 percent.

4:16Eric: An analogy helps here. Picture a desk piled with papers. In the first setup, an office manager walks past, sweeps everything except the last ten sheets into a filing cabinet, and leaves a one-page note. In the second setup, the person at the desk holds the cabinet key. So they decide what to file and when, and they can pull a back out when a question comes up.

4:39Paige: The main test asked the to answer questions about United States federal receipts and expenditures by searching and reading a large collection of documents. It contained 90 questions, and reading those documents fills the window quickly. The team also shrank the allowed window on purpose, to imitate the pressure of a much longer task. The score is the share of questions answered correctly. At a tight budget of 32 thousand , answered 21 percent correctly when the did the compacting. When the model controlled , it answered 56 percent correctly. That is nearly three times the score, with the same model and the same questions.

5:20Eric: And yet the gain depends entirely on the model. Four , meaning four of the largest and newest models, got the same tool and the same instructions. Across the tested context budgets, used the tool in only 4 percent of its tasks. When it was warned that the window was nearly full, it mostly just returned an answer, rather than making room to keep working. So the seems to come from how a model was trained, and the tool alone does not provide it. The authors say this is their , because they do not know how these models were trained.

5:56Paige: The second finding is the one I would use. The team removed that single timing sentence about 85 percent and changed nothing else. At a window budget of 128 thousand , K3's first happened when the window was about 84 percent full. Without the sentence, it happened at 29 percent full. That is bad because it replaces detailed history with a summary while most of the room is still free. And losing those details can hurt the answer. At budgets of 128 thousand tokens and above, Kimi K3 and scored about 8 below the -controlled setup without the timing sentence. That is a difference between percentage scores, not an 8 percent relative decline. The authors call this early compaction "context anxiety". Their guess at the cause is that Kimi K3 was trained with , which is training by rewarding or penalizing whole attempts. It was penalized for long attempts, so it may have learned to save tokens even when there is space.

6:59Eric: So here is what to take from it. If your gives the model control over its own context, write an explicit sentence in your rules file saying when to consider compacting. The rules file is the instruction file the harness loads at the start of each session. You could test the paper's instruction to wait until usage reaches 85 percent. Then watch whether the stops discarding detailed history early. If the agent starts losing details that it needed, the paper's evidence points to the remedy. GPT went back to its archive after about one in five of its compactions. So prefer a setup where compacted material is archived and readable, not deleted, and the agent can retrieve the originals when a summary is not enough. My verdict on this paper is that it is early. The benchmarks are small, and the pressure was simulated by shrinking the window. Behavior also differs so much by model that you should test it on your own model before you rely on it.

7:58Paige: Okay, so the first paper shows that the transcript is being rewritten, and that the rewriting can be tuned. The second paper asks a question that sounds like bookkeeping. When the summary is written back into the transcript, which message label does it get? This is our main item today.

8:16Eric: The paper comes from researchers at the University of Technology Sydney, the National University of Singapore and the University of New South Wales. They recorded 1,108 automatic compactions in and and checked how each summary was stored. In every one of them, the inserted the summary as a user message. They also went through the code of eleven , and all eleven place the summary the same way.

8:43Paige: To see why that matters, you need to know about one kind of defense. An reads emails, documents and web pages, and an attacker can plant text in any of them to steer it toward something you did not request. That is called . One strong defense does not try to spot the planted text. It reads the user's request before any tool runs, and it writes a permission list from that request. So if you ask the agent to summarize your March spending, the list contains no money transfers, and a planted instruction to send money is refused. In these experiments, the defense builds a fresh permission list for each request, so it can follow the user's changing instructions. The whole guarantee rests on one assumption: the request is what the user said. And in practice, the defense finds that request by reading the latest user message.

9:36Eric: Now imagine a bank clerk who acts only on instructions signed by the account holder. At the end of each week, a filing assistant condenses all the paperwork into one page and files that page in the drawer marked "signed by the customer". The page may be perfectly accurate. But anything it quotes from a letter that a stranger sent now sits behind the customer's signature. That is what does. The summary quotes you, and the documents, and whatever the attacker planted, and all of it carries the user label.

10:07Paige: Here is the sharpest test. It ran on , a benchmark of simulated tasks with attacker content planted in the data the agent reads. The user gives the landlord's account number and later asks the agent to pay the rent. Somewhere in the data there is a notice written by the attacker. The notice gives no command. It simply states a different account number as plain data. After the session compacts, the researchers compare two ways of building the next permission list: from the user's original words, or from the summary. When the list was built from the user's own typed words, it allowed a payment to the attacker's account in zero of 320 cases. When the list was built from the summary, it allowed that payment in 290 of 320 cases, which is 91 percent. These are permissions, not completed transfers. The failure is that the attacker's account became an allowed destination even though the user had named the landlord's account.

11:05Eric: And in the authors' explanation, nobody malfunctioned. The summarizer did its job, and the permission writer did its job. This is not a model being tricked into ignoring a rule. The labeling is what failed, and it failed because of an ordinary engineering choice.

11:21Paige: The team ran one control experiment that I think is the cleverest part. They took summaries written by a small model and used each summary twice, identical down to the . In one run, the summary sat in the , the position treated as the user's request. In the other run, it was appended as a . That label treats the text as information returned by a tool, not as a request from the user. In the user slot, the permission list widened in 70 percent of episodes, allowing more actions than before. As a tool result, it changed the permission list in none of them, even though every summary contained the attacker's account. So the text is the same, and only the slot differs. Because the defense reads the request slot, that isolates the label as the cause.

12:09Eric: You might think the answer is a better summarizer, and the paper says it is not. Summarizers using leading models are good at flagging an injected instruction. In 219 of the 220 summaries that kept an injected instruction, they marked the attacker's identifier as suspicious. That works because an instruction addressed to the model has no innocent twin. A document has no legitimate reason to tell the to ignore its user. But an attacker's account number written as data looks the same as a real account number. The authors prove a limit here. A checker that sees only text, with no record of who wrote which part, can treat a forged record differently from a real one only as far as the two texts can be told apart. When they look identical, no summarizer can separate them.

12:57Paige: So the fix gives the checker something other than text to go on. Simply moving the summary out of the is not enough, because then the checker loses your earlier requests. Instead, each turn you type is stamped on arrival with a message code. That is a short cryptographic stamp, computed with a secret key, which proves the text arrived from the user and has not been altered. Trusted code applies the stamp when your message arrives, rather than letting the summarizer assign it later. The permission checker verifies the stamps and checks that the user turns are complete and in their original order. If a check fails, it permits no action. Otherwise, it reads only those verified turns, while the still reads the summary. In 40 attacked episodes that were re-run with the fix, no attacker action completed. The verification cost a fraction of a millisecond per request.

13:52Eric: Here is something to try this week. The next time a long session compacts on its own, open the session transcript file and find the point where the summary replaced the earlier history. Look at which role the summary is stored under. The paper found the user role every time. Then look at your own setup. You might have a permission hook, which is code that checks whether an action is allowed, or an approval rule or review step. If any of those decides based on "the most recent user message", then right after it is reading the model. Change it to read your actual typed turns, preserved across compaction, rather than assuming that a user label proves you wrote the text.

14:34Paige: I would call this paper's results solid. The observation was measured in shipped products, and the code is released. The main experiments were also , meaning the predictions were written down before the data was collected. The caveat is that the fix was tested on replayed benchmark sessions, not inside a production .

14:55Eric: All right. If the transcript is where things go wrong, then sometimes the strongest thing to do is to throw away the working conversation while keeping the code. That is one finding in our third paper. It starts from a different question: are parallel worth the money?

15:13Paige: A is a second copy of the that the main agent starts for one piece of work. It has its own conversation and reports back a result. The study is from the University of Illinois Urbana-Champaign, and it used the subagent as shipped in . The tasks were to build a whole program from a , a written description of what it should do. The score was the share of hidden tests passed. Hidden tests are tests the agent never sees, which the researchers run on its work. One benchmark, NL2Repo, gives only a written specification for a library. The other, ProgramBench, also gives a runnable copy of the program the agent must rebuild, called the reference program. The agent can feed the same input to that reference and its own program, then compare the outputs. The team compared one agent working alone with a main agent permitted to , on thirty randomly drawn tasks per benchmark.

16:09Eric: Across benchmarks and model generations, raised the test pass rate by only about 1 to 5 , and they cost 2.6 to 3.8 times as much. The team also saved and scored the 's work every five minutes. That let them compare the two setups at the same amount of money spent, rather than just comparing their final scores. At equal cost, the single agent was level or ahead.

16:34Paige: The gain was larger on sixteen hard tasks from ProgramBench, the benchmark with a reference program. There, added 8.8 with . So the team asked what the subagents were doing differently. They found that a lone stops as soon as its own checks pass, even while many hidden tests still fail. Subagents check the work harder. So the team gave the lone agent one extra sentence telling it to the reference program across its whole interface before implementing anything. Here, probing means listing the program's commands, options and input formats, running them against the reference, and recording the exact outputs and exit codes. The instruction also told it to check every recorded behavior before finishing. That one sentence recovered 6.7 of the 8.8 percentage points. It raised the cost by half, where subagents nearly quadrupled it.

17:28Eric: It is like hiring a second and third contractor for a house, and then learning that most of what they gave you was that somebody finally walked the house with the drawings. And on the newest model, the picture changed again. With , the sentence no longer helped, because that model already checks itself. The shrank to about 3 .

17:51Paige: Then comes the part about the transcript. The team ran very long sessions, up to twenty hours, on three hard tasks. One kept resuming its conversation. Another cleared its conversation every three hours and continued from its own code. They made this comparison with two model generations, giving six comparisons in total. In all six, the fresh sessions made faster progress in their first hour. In one case, the resumed session spent its first hour on syntax highlighting alone, and six hours later it was passing the same tests. So it was still making edits without improving its test score. This is , the decline in an agent's work as its history grows long and cluttered.

18:33Eric: So there are two things to try. When a long session keeps editing the same files with little progress, stop resuming it. Start a fresh session pointed at the existing code, with a short note on what remains. Then check whether it starts passing more tests, rather than just making more edits. And whenever the has something to compare its output against, add that probing sentence. Have it record the reference program's behavior before implementing, then check its own program against those records. If the outputs differ, have it fix the differences and run those checks again before finishing.

19:10Paige: My verdict on this paper is that it is early. Two runs of the same setup on the same task differed by about 7 on average, which is more than the gap being argued about. The cost difference is large and stable, but the score difference is inside the noise. And the long runs are three hand-picked case studies.

19:30Eric: Okay, here are the three things worth keeping from today. First, when a session compacts, and file the model's summary as a user message. So any rule that reads "the latest user message" is reading the model at that point. Second, a summarizer can catch a planted instruction but cannot identify a planted account number from text alone when it looks like real data. So the fix is to check the turns you typed, not the summary. Third, the cheap context fix beats the expensive one. Before you pay three times over for parallel , try one sentence telling the to its reference first, and a fresh session on the existing code when a long one stalls.

20:13Paige: The page for this episode at paperdive.ai has links to all three papers, and the full transcript with every technical term tap-to-define.

20:23Eric: Quick housekeeping. The script was written by 's and then refined by 's . Paige and I are AI voices from , and we're not affiliated with any of those companies.