AI 编程 4.0 · 优秀 2026-11-12 · 论文

Where LLM Agents Get Stuck Debugging Databases: Access More Than Reasoning

对 Claude Code 排查生产消息分发引擎 8 起数据库事故的实地观察:凡根因依赖运行时并发的事故,agent 都先宣布结论上线修复再撤回,每次误判消耗一轮部署-观察最普遍的瓶颈是拿不到生产状态实时锁视图未截断的死锁报告只读执行环境上下文;5 起并发事故全部存在访问缺口作者主张为生产调试 agent 建一层取证设施:安全询问 API锁/死锁黑匣子生产回放

打开原文回到归档

Where LLM Agents Get Stuck Debugging Databases: Access More Than Reasoning

中文导读

对 Claude Code 排查生产消息分发引擎 8 起数据库事故的实地观察:凡根因依赖运行时并发的事故,agent 都先宣布结论上线修复再撤回,每次误判消耗一轮部署-观察最普遍的瓶颈是拿不到生产状态实时锁视图未截断的死锁报告只读执行环境上下文;5 起并发事故全部存在访问缺口作者主张为生产调试 agent 建一层取证设施:安全询问 API锁/死锁黑匣子生产回放

为什么值得关注

实地观察类证据在 agent 研究里稀有:作者跟踪 Claude Code 排查生产消息分发引擎的 8 起数据库事故,发现凡根因依赖运行时并发的事故,agent 都先宣布结论、上线修复、再撤回,每次误判消耗一轮部署-观察。把事故映射到 agent 缺什么,最普遍的瓶颈是拿不到生产状态(实时锁视图、未截断的死锁报告、只读执行、环境上下文),5 起并发事故全部存在访问缺口,而 3 起非并发事故不需要任何新能力。结论把「调试卡壳」的主因从推理能力移到访问缺口,并给出取证层(安全询问 API、锁/死锁飞行记录器、生产回放)的具体方向。

关键信息

  • 论文标题:Where LLM Agents Get Stuck Debugging Databases: Access More Than Reasoning
  • 作者:Pinto, Gustavo
  • arXiv:https://arxiv.org/abs/2611.17304
  • 发布时间:2026/11/12
  • arXiv 分类:Software Engineering (cs.SE)
  • 备注:12 pages, 2 figures, 2 tables. Submitted to the Journal of Systems and Software
  • 关联标签:coding-agents, debugging, databases, field-study

English Abstract

Large language model (LLM) coding agents are increasingly asked not only to write code but to debug running systems from live runtime data. We report a field observation of one such agent (Claude Code) as it diagnosed eight database incidents in a production message-dispatch engine. In every incident whose root cause depended on runtime concurrency, the agent announced a cause, shipped a fix, and later walked it back, and each wrong guess cost a deploy-and-observe cycle. Mapping each incident to what the agent lacked, we find that access to production state was the most pervasive bottleneck. The missing access included live lock views, untruncated deadlock reports, read-only execution, and an explicit environment context. An access gap was present in all five concurrency-dependent incidents: alone in one, and in four combined with a reasoning error such as anchoring on an early cause, incomplete exploration of the configuration, or a misreading of the code's transaction semantics. The three incidents that did not depend on concurrency needed nothing beyond what the agent already had. Within the incidents, the agent's wrong hypotheses were consistent with the evidence it could see; they were not fabrications. We argue that the next step for production-debugging agents is a forensics layer that gives the agent the access it lacks inside existing security controls. Such a layer would combine a safe interrogation API, a lock-and-deadlock flight recorder, and a production replay harness.

English Summary

A field observation of Claude Code diagnosing eight database incidents in a production message-dispatch engine. In every incident whose root cause depended on runtime concurrency, the agent announced a cause, shipped a fix, and later walked it back, each wrong guess costing a deploy-and-observe cycle. Mapping incidents to what the agent lacked, access to production state was the most pervasive bottleneck: live lock views, untruncated deadlock reports, read-only execution, and explicit environment context; an access gap existed in all five concurrency-dependent incidents, four combined with reasoning errors like anchoring or misread transaction semantics. Wrong hypotheses were consistent with visible evidence, not fabrications. They argue for a forensics layer within existing security controls: safe interrogation API, lock/deadlock flight recorder, production replay harness.

Obsidian Notes

  • 内容获取路径:优先尝试 opencli arxiv paper 2611.17304 -f json;该次运行 arXiv API 返回 HTTP 429,改由 arXiv abs 页面(标题、作者、提交日期、摘要、subjects)回填。
  • 中文导读与价值判断均锚定在条目已有摘要、论文摘要、作者、日期与分类信息上;未补充 arXiv 页面之外的实验细节。
  • 未解析 arXiv 页面暴露的代码/数据链接;现代站点生成器按 content/<entry.id>.md 查找内容页。