TL;DR
This paper introduces a standardized seven-step pipeline for analyzing the massive volumes of logs generated by AI agents and chatbots. By transforming unstructured interaction traces into structured data using automated "scanners," researchers can rigorously evaluate model capabilities, safety propensities, and the validity of evaluation setups at scale.
What Problem Does This Paper Address?
As AI systems evolve from simple text-in/text-out interfaces to autonomous agents that use tools and engage in multi-turn reasoning, they generate enormous amounts of data. These logs—containing reasoning traces, tool calls, and environment responses—are a goldmine for understanding why a model succeeded or failed.
However, manual inspection of these logs is unfeasible at scale, and the field currently lacks a unified methodology for automated analysis. Without a standard approach, researchers often rely on anecdotal evidence or inconsistent "LLM-as-a-judge" prompts, leading to results that are difficult to reproduce. The authors aim to bridge this gap by providing a formal framework for "secondary analysis"—the systematic study of logs produced during a primary evaluation.
Methods
The core contribution is a seven-step pipeline designed to move from raw logs to actionable research insights:
- Define Purpose: Establish whether you are investigating model capabilities (e.g., "Can it code?") or evaluation validity (e.g., "Was the tool broken?").
- Prepare Database: Organize logs into a structured format (using tools like the open-source Inspect Scout library) to allow for efficient filtering and metadata enrichment.
- Explore Logs: Perform manual and automated "vibes checks" to identify patterns, common failure modes, and outliers.
- Refine Research Question: Translate abstract questions into concrete "signals" to detect (e.g., specific tool error strings or refusal phrases).
- Develop Scanner: Build automated detectors. These can be programmatic (regex for "command not found") or LLM-based (using a model to grade a transcript against a rubric).
- Validate Scanner: Use stratified sampling to create a validation set, obtain human ground-truth labels, and compute metrics like F1-score or ROC-AUC to ensure the scanner is reliable.
- Use Results: Apply the validated scanner to the full dataset for flagging specific behaviors or performing downstream statistical analysis.
Datasets
The authors illustrate their pipeline using a case study involving Cybench, a benchmark consisting of 40 professional-level "Capture the Flag" (CTF) cybersecurity tasks. They analyzed 1,247 transcripts generated by various models (including o1, o3, and hypothetical future iterations like GPT-5) to investigate why models were failing despite having the necessary capabilities.
Key Insights and Ideas
- Environment vs. Agent Failures: A crucial distinction is made between failures caused by the model's reasoning and those caused by the environment (e.g., a sandbox missing a required library). Log analysis helps isolate these variables.
- The "Lost in the Middle" Effect: The authors warn that LLM scanners struggle with very long transcripts. They recommend chunking—breaking logs into smaller units like individual tool calls or reasoning steps—to improve accuracy.
- Chain-of-Thought for Judges: When using an LLM as a scanner, asking it to provide an explanation before its final grade significantly improves reasoning faithfulness and makes human verification easier.
- Indirect Refusal: Through their case study, the authors discovered that models often don't just say "I can't do that." Instead, they exhibit "indirect refusal," where they abandon a task by claiming it is unsolvable or that the environment is broken, even when it isn't.
Key Results
The paper demonstrates the effectiveness of the pipeline through a refusal scanner built in Inspect Scout.
- High Performance: Their validated scanner (using a Sonnet 4.5-level model as the judge) achieved an F1-score of 0.998 on binary refusal detection and 99.0% accuracy across a four-class rubric (No Refusal, Partial, Indirect, and Critical).
- Log Structure: The framework handles both agentic logs (heavy on tool calls and reasoning) and chatbot logs (focused on dialogue dynamics).
Limitations and Future Work
The authors highlight several "open questions" that the community still needs to solve:
- Optimal Scoring: Is it better to use binary, ordinal (0-10), or pairwise comparisons (Transcript A vs. B)?
- Sample Size: How much human-labeled data is truly necessary to validate a scanner across different contexts?
- Scalability of Validation: As models become more complex, human validation becomes a bottleneck.
- Predictive Power: Identifying which early-transcript patterns can reliably predict the final outcome of a long-running agentic task.
By providing a shared language and a set of best practices, this paper moves AI evaluation away from "anecdotal vibes" toward a more engineering-centric, reproducible science.
Summary updated