Tracing the Messy Middle: A Runtime Transaction Schema for AI Coding Agents
Yuelin Hou, Haorui Li, Lu Chen, Zhen Chen
Key points
From the paper's conclusion- We define the runtime transaction schema this architecture requires and demonstrate initial feasibility through Agent Token Manager (Atm), a local-first prototype that reconciles gateway records and transcript evidence without exposing prompt content to external collectors.
Abstract
AI coding agents are increasingly integrated into software development, yet the field lacks a systematic feedback loop to improve their behavior in practice. Artifact datasets capture final outputs such as code patches, commits, and benchmark outcomes, but omit the messy middle of the development lifecycle: the failed retries, fallback strategies, routing decisions, and abandoned sessions that determine operational cost, reliability, and productivity. We propose an observability framework that captures these runtime behaviors as structured transaction records, enabling engineering coaching grounded in behavioral evidence, workflow optimization at the stages where tasks break down, and routing policy iteration measured by total task cost rather than per-request price. We define the runtime transaction schema this architecture requires and demonstrate initial feasibility through Agent Token Manager (Atm), a local-first prototype that reconciles gateway records and transcript evidence without exposing prompt content to external collectors. Finally, we identify three open research problems that must be solved to scale these feedback mechanisms: trace reconciliation without shared request identifiers, outcome linking across asynchronous systems, and intervention causality. Treating the linkage between sessions and artifacts as a fundamental infrastructure requirement provides a structured foundation for understanding and optimizing agent behavior.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Coding-Agent Benchmarks Should Match Their Users' Task FlowsarXiv · 2026
- Trace2Eval: Contextualized Evaluation of Coding Agents from Real-World TracesarXiv · 2026
- Lessons Outlive Their Failures: A Case Study of Rules for AI Coding AgentsarXiv · 2026
- Loop Engineering: Version-Bound, Evidence-Gated Coordination for Production Coding AgentsarXiv · 2026
- Loop Engineering for Agentic Software Systems: LEAF Architecture, Pattern Taxonomy, Use Cases, Evaluation, Challenges and Future DirectionsExpert Systems · 2026
- Interpreting Coding Agents Through Their Behavioral TrajectoriesarXiv · 2026