From Benchmarks to Behaviors: A Framework for Auditing AI Agents was submitted to arXiv on 2026-11-02 by Nick Hagar. Read it on arXiv or as a PDF.
Key findings
- Across 3,000 trials with fixed search results about the 2026 U.S. midterm elections, user memories stating an explicit preference for a publisher increased that publisher’s appearance among the first three cited sources by 33 to 39 percentage points across six LLMs.
- Memories identifying the user as a Republican or expressing distrust of mainstream media shifted cited sources rightward across all six evaluated models.
- The memory expressing media distrust increased the citation of sources containing misinformation or conspiracy claims by an average of 6.3 percentage points across all six models.
- The increase in misinformation citations under the media distrust condition was concentrated in Claude models, which had a mean change of +12.7 percentage points, whereas the three tested OpenAI models never cited any misinformation or conspiracy articles.
- Under the media distrust memory, Opus 5.5 cited misinformation or conspiracy sources in 54% of answers, compared to 24% of answers with no user memory present.
The main takeaway. Injecting a single sentence of user memory into an agent context substantially alters which sources models select and cite, even when queries and retrieved search results are held constant.
The abstract, as written
Generative AI systems increasingly mediate access to information. Their behavior depends on tools, instructions, and user memories that are often difficult for researchers to observe or control. Here, I introduce TRACE (Transparent Research on Agent Contexts and Environments), a framework for systematically auditing how these components shape AI agent behavior. Built on an open-source agent harness, TRACE enables controlled manipulation of system components. It also records inputs, outputs, and task execution for downstream analysis. I demonstrate this framework through an experiment examining how user memories influence source selection when agents answer questions about the 2026 U.S. midterm elections. I find that memories expressing explicit preference for a publisher increase its inclusion among the first three cited sources in a response by 33-39 percentage points. Memories identifying the user as a Republican or expressing distrust of mainstream media shift citations rightward. That same media distrust memory also increases citation of sources expressing misinformation or conspiracy theories by 6.3 percentage points, with substantial variation across models. These findings demonstrate that concise user memories can alter source selection in consequential settings, even when questions and search results remain fixed. TRACE extends algorithm auditing to agent harnesses, providing a transparent way to study agent behaviors that benchmarks or commercial interfaces may struggle to isolate.
Key terms
- Agent harness: The supporting software, instructions, context management routines, and tool interfaces that connect a language model to external software and files.
- TRACE: Transparent Research on Agent Contexts and Environments, an open-source auditing framework built on the Pi agent harness to systematically alter individual system components and record agent execution.
- User memory: Information retained by an agent system from previous interactions and inserted into context to guide responses to future prompts.
- Algorithm audit: An empirical method that measures how an automated system behaves by systematically changing its inputs and recording the resulting outputs.
From the paper
The experiment demonstrates that memories of publisher preference strongly alter source citations across fixed search environments.
Across 3,000 trials with fixed search results, memories expressing a preference for a particular publisher increase its inclusion among the first three cited sources in a response by 33–39 percentage points.
Distrust of mainstream media in user memory caused measurable shifts in the citation of conspiracy and misinformation claims for specific models.
The distrust memory also increased citation of misinformation and conspiracy articles by 6.3 percentage points across all six models, corresponding approximately to citation in an additional six out of every 100 answers (95% CI [2.7, 10.0], ). This pooled increase was driven by Claude models, which had a mean change of +12.7 points.
The author concludes that evaluating model parameters alone is insufficient to understand agent behavior.
That such a small, invisible input can produce measurable changes suggests that agent behavior cannot be understood by evaluating models alone. The harness also warrants scrutiny.
Figures from the paper
This chart shows how stating a preference for a specific news publisher in memory increased its citation frequency in the first three sources.
Figure from the paper, arXiv:2611.03939, by its authors. Caption as written: Figure 2: Naming a preferred publisher in a memory increased its appearance among the first three citations. Points show additional answers per 100 compared with no memory; bars show 95% confidence intervals.
This chart compares the rate at which each of the six tested models cited misinformation or conspiracy articles with and without a media distrust memory.
Figure from the paper, arXiv:2611.03939, by its authors. Caption as written: Figure 4: Citation of misinformation/conspiracy articles with and without the media-distrust memory. Points show citation rates; bars show 95% confidence intervals.
What the authors say it means
- AI agents function more like personalized social feeds than traditional search engines because they respond aggressively to salient user details.
- Agent personalization often happens through background context that is hidden from end users, making it difficult for users to detect why specific sources were surfaced.
- Evaluating language models on static benchmarks does not capture how agent harnesses and contextual inputs shape real-world information retrieval.
What to do with it
- Audit agent memory stores to record and evaluate what user profiles are injected into retrieval prompts. Supported by: A single sentence of user memory shifted the first three citations toward preferred publishers by 33 to 39 percentage points across 3,000 trials.
- Track citation safety specifically when agent contexts contain cues reflecting distrust of mainstream institutions. Supported by: A media distrust memory increased citations to misinformation or conspiracy articles by 6.3 percentage points across six models, rising to 54% in Opus 5.5.
- Inspect agent harnesses by holding search results constant while systematically varying user context prompts. Supported by: Fixing search results across six models isolated memory-driven citation changes that benchmarks fail to detect.
Caveat. The study was conducted in a controlled experimental harness using fixed search results and single-sentence memories on questions about the 2026 U.S. midterm elections, so the findings may not directly reflect commercial agent products with cumulative, complex memory histories.
In short
This paper introduces TRACE, a framework that isolates how harness components shape language model agent behavior. Testing six models on election queries revealed that brief user memories substantially steer source selection and can increase citations to untrustworthy content. Understanding agent outputs requires auditing the harness infrastructure alongside the underlying model.
Written from the paper's own text. Quoted passages are verbatim and the numbers are the authors' own. For the method and full results, read the paper.