Authors: Nick HagararXiv 2611.03939

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

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

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 2: Naming a preferred publisher in a memory increased its appearance among the first three citations. Points show

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 4: Citation of misinformation/conspiracy articles with and without the media-distrust memory. Points show citatio

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

What to do with it

  1. 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.
  2. 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.
  3. 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.

Read the paper on arXiv →

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.