编码代理在猜测:测量欠指定DevOps指令中的动作边界违规
Coding Agents Are Guessing: Measuring Action-Boundary Violations in Underspecified DevOps Instructions
AI总结:
提出UnderSpecBench基准,通过69个任务族和2208个提示变体,评估编码代理在欠指定DevOps指令下的动作边界违规,发现55.8-67.8%的运行至少违反一个边界,表明完成度评估高估了安全自主性。
摘要:
LLM编码代理越来越多地被部署在实际生产基础设施上自主行动。它们执行shell命令、修改仓库并调用操作API。然而,完成任务并不足以保证安全。一个错误的动作可能导致严重后果。现有的代理基准主要强调任务完成,对于代理在良性但欠指定指令下的行为表现尚不明确。我们提出了UnderSpecBench,一个用于衡量编码代理(即Claude Code、Codex和OpenCode)在DevOps任务中动作边界违规的基准。UnderSpecBench包含69个基于记录事件、CVE或工具行为构建的任务族,并组织在四个DevOps能力域和九个操作控制面中。为了将欠指定性与任务难度分离,每个任务保持相同的环境和真实安全动作,同时沿三个轴变化指令:意图清晰度、目标确定性和爆炸半径。由此产生的2208个提示变体通过确定性的、基于副作用的预言机进行评估,区分安全成功、错误目标和越界结果;非动作运行进一步分类为澄清、拒绝或推迟。在五种代理×模型配置(使用OpenCode、Claude Code和Codex)中,评估结果表明欠指定性主要不是使代理失败,而是使它们猜测。55.8-67.8%的运行至少违反一个边界。目标欠指定性急剧降低动作质量,而爆炸半径线索几乎不减少动作倾向。这些发现表明,以完成为中心的评估可能高估了安全自主性,并激励在模型、框架和系统层面的缓解措施。
英文摘要:
LLM coding agents are increasingly deployed to act autonomously on real production infrastructure. They execute shell commands, modify repositories, and call operational APIs. However, completing a task is not sufficient for safety. A wrong action can cause severe consequences. Existing agent benchmarks largely emphasize task completion, leaving open how agents behave under benign but underspecified instructions. We present UnderSpecBench, a benchmark for measuring action-boundary violations in coding agents (i.e., Claude Code, Codex, and OpenCode) on DevOps tasks. UnderSpecBench includes 69 task families grounded in documented incidents, CVEs, or tool behavior and organized across four DevOps capability domains and nine operational control surfaces. To isolate underspecification from task difficulty, each task keeps the same environment and ground-truth safe action while varying the instruction along three axes: intent clarity, target certainty, and blast radius. The resulting 2,208 prompt variants are evaluated with deterministic, side-effect-based oracles that separate Safe Success, Wrong Target, and OverScope outcomes; non-action runs are further classified as clarification, refusal, or deferment. Across five agent x model configurations using OpenCode, Claude Code, and Codex, the evaluation results show that underspecification does not mainly make agents fail; it makes them guess. 55.8-67.8% of runs violate at least one boundary. Target underspecification sharply degrades action quality, while blast-radius cues barely reduce action propensity. These findings show that completion-centric evaluation can overstate safe autonomy and motivate mitigations at the model, harness, and system layer.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。