Paper 1 of 5
Where LLM Agents Get Stuck Debugging Databases: Access More Than Reasoning
Problem
LLM coding agents could not reliably debug database incidents that depended on runtime concurrency because they lacked access to live production state such as lock views, full deadlock reports, and execution context, so reasoning alone was insufficient.
Approach
The paper proposes adding a forensics layer that supplies the missing runtime information to the agent. This layer consists of three components: a safe interrogation API, a lock-and-deadlock flight recorder, and a production replay harness. The API lets the agent query live state without violating security controls. The flight recorder captures lock acquisition and deadlock details in real time. The replay harness replays production traffic for offline analysis. Together they give the agent the observability it needs beyond pure reasoning.
Result
All five incidents whose root cause depended on concurrency suffered from an access gap, leading to false‑start hypotheses that each required a deploy‑and‑observe cycle to correct. The production deployment record shows 2 to 4 deployments on each incident day, and the file dispatch_service.py was modified fourteen times across the incidents. The three non‑concurrency incidents were resolved without additional access.
Why it matters
Developers of production debugging agents and observability platforms should care because adding runtime forensics can reduce costly false starts and deployment cycles.
Method details
- Claude Code agent used open-weights DeepSeek model for about 79% of tool calls.
- Claude Code agent used Claude Opus frontier model for about 17% of tool calls.
- Study observed 27 agent sessions totaling roughly 410 hours.
- Agent issued about 3,000 tool calls across the study.
- Eight distinct database incidents over a ten‑day window were analyzed.
Numbers
- 79%, proportion of tool calls served by DeepSeek open‑weights model
- 17%, proportion of tool calls served by Claude Opus frontier model
- 8, number of database incidents studied
- 27, number of agent sessions
- 410, cumulative session hours
- 3,000, tool calls issued
Limitations
The study lacks a controlled comparison and cannot vary the agent's access or reasoning, so it does not establish causal effects of the proposed forensics layer.
the agent was never wrong in the end, but it was often wrong seriallyFound in the source text, word for word.
Picked because: Provides concrete field observations and lessons on how LLM coding agents debug real database systems, offering actionable insights for LLM agent tooling and verification.