arXiv:2610.36114cs.SEOct 2026

Manuscript Offprint

arXiv:2610.36114

Context Is a Pipeline, Not a Window: Information Attrition in LLM Agent Harnesses

Yuvraj Sehgal, Mahsa Panahandeh, Naser Ezzati-Jivan

Yuvraj Sehgal ID^{ID}

Department of Computer Science

Brock University

St. Catharines, Ontario, Canada

ys19rk@brocku.ca

Mahsa Panahandeh ID^{ID}

School of Electrical Engineering

and Computer Science

University of Ottawa

Ottawa, Ontario, Canada

mpanahan@uottawa.ca

Naser Ezzati-Jivan ID^{ID}

Department of Computer Science

Brock University

St. Catharines, Ontario, Canada

nezzatijivan@brocku.ca

Abstract—LLM agents are judged by two numbers: the size of the context window, and how often the final answer is correct. Both numbers miss a third thing: how much of a tool's output is lost before the model ever sees it. We measured this loss in a real tool-using agent. The agent finds the cause of injected faults by reading Linux kernel traces. The context window was almost empty: across 720 runs, the single largest prompt used only 5.75% of it. Yet a third of all tool results (3,827 of 11,189) were cut before they reached the model, and every cut result became broken JSON. This loss followed a clear pattern. The harness cut each result by slicing its JSON text at a fixed length. A slice like this does not shorten a result evenly. It deletes whatever data sits near the end. One field reached the model in only 4.7% of calls. A second field, in the very same results, reached the model in 99.3% of calls. Which field held the fault's evidence depended on when the faulty process started: early or late in the trace. The agent's diagnosis accuracy matched this same split, almost exactly. So we ran controlled experiments to test one question: did the data loss cause the drop in accuracy? This paper makes four contributions. First, we model an agent's context as a five-stage pipeline, with a measured failure at each stage. Second, we replay 864 real tool results, including one from a production trace where the shipped cut deletes all 128 records of the fault's evidence. Third, a controlled experiment shows that the cut's real cost appears first as extra work, not as wrong answers: 43% more tool calls, twice the computation, and yield falling from 0.61 to 0.31. The agent still finds the right answer when it has another way to reach it. Fourth, a survey of seven agent frameworks finds two that cut tool output the same unsafe way, with no consistent, safer alternative in the rest. Whether the data cut truly causes the accuracy drop is still an open question. A repeated test on real production data shows the same pattern again, but it does not settle the question.

Index Terms—LLM agents, agent harnesses, context engineering, empirical evaluation

I. INTRODUCTION

An agent never reads its context window directly. It reads whatever its harness, the code that wraps the model, decided to put there. Between a tool producing a result and the model seeing it, the harness serializes it, cuts it to a budget, keeps or drops parts across turns, and passes it between phases. Every one of these steps is a design choice. Every one of them can lose information.

Most research on agent context asks how big the window is and how the model attends within it [1], [2], or how to extend it with memory [3]. Work on agent harnesses often treats the surrounding code as a minor detail [4], [5], a gap also noted elsewhere [6]. Two recent studies read the source code of eleven [7] and thirteen [8] production harnesses, but neither measures what happens to the data. Failure taxonomies label what went wrong across thousands of agent runs [9], but a label is not a loss measurement. Four recent studies come closer to ours. One asks how well a model uses a tool's complete output [10]; we ask whether the output is complete in the first place. One measures how a harness's design changes outcomes across models and tasks [11]; we trace that variance to one measurable loss point, not the outcome. One varies context-management policies and window budgets in a coding harness [12]; it reports success and cost, but not which evidence each policy deletes. One shows that storing tool output in a file for retrieval, instead of context, costs accuracy on some models but not others [13]; our cause is different: destructive delivery, not a retrieval choice. The gap all of this work shares: a run log records what a tool delivered, not what it produced. A loss on the way into the log cannot be found in the log.

We measured this gap in an agent that finds the root cause of injected faults from Linux kernel traces. Such agents are an active research area [14], [15]. Three facts came out of that measurement.

First, the window was nearly empty. Across all 720 runs, the single largest prompt we sent was only 23k tokens, against a 400k window. That is 5.75%.

Second, a third of all tool results were destroyed before they reached the model. The harness did this by cutting long results at a fixed point in the text. JSON always lists its keys in the same order, so a cut like this does not shorten a result evenly, it deletes whichever keys come later, completely. One list of containers reached the model in only 4.7% of 742 calls. A second list, sitting right next to it in the same payload, reached the model in 99.3% of calls.

Third, the damage lined up exactly with the task we asked the agent to solve. A fault that starts a new process during the trace shows up in the early list, the one that survives. A fault

Replication package: https://doi.org/10.5281/zenodo.23614755 in a container that was already running shows up only in the late list, the one that dies. Diagnosis accuracy split along that same line, on both test applications: faults that spawn a new process scored 40–55 out of 60; faults in containers already running scored 0–24 out of 60. We used to think this gap was just a limit of what kernel traces can show. The delivery numbers say otherwise: our own harness is partly responsible. How large a part is still an open question. We report what our experiments settled, and what they did not.

Our contributions are four. (1) A five-stage pipeline model of an agent's context, with a measured failure at each stage, and an instrument to measure it: per-stage counts and one yield number, applied to our own harness (Sec. II). (2) Replay evidence, including a case where the shipped cut deletes an entire evidence class at production scale (Sec. III). (3) A registered, controlled experiment whose result is a compensation tax: when the agent has another way to reach the answer, the cut costs it work, not accuracy (Sec. IV). (4) A survey of seven agent frameworks: two of them cut tool output the same unsafe way, and the rest offer no consistent, safer alternative (Sec. III).