衡量许可之门:对Claude Code自动模式的压测评估
Measuring the Permission Gate: A Stress-Test Evaluation of Claude Code's Auto Mode
AI总结:
本文通过AmPermBench评估Claude Code自动模式在模糊授权场景下的表现,发现其误判率显著高于生产环境,揭示了系统在处理模糊任务时的覆盖边界问题。
摘要:
Claude Code的自动模式是首个部署的AI编码代理权限系统,采用两阶段转录分类器来控制危险工具调用。Anthropic报告在生产流量中,误报率为0.4%,漏报率为17%。本文首次独立评估该系统在故意模糊授权场景下的表现,即用户意图明确但目标范围、影响范围或风险等级未明确的任务。使用AmPermBench,一个涵盖四个DevOps任务家族和三个受控模糊轴的128提示基准,我们评估了253个状态变化动作,针对Oracle地面真相。我们的发现表征了在该压测工作负载下自动模式的范围扩展覆盖情况。端到端的漏报率是81.0%(95%置信区间:73.8%-87.4%),显著高于生产流量中报告的17%,反映的是根本不同的工作负载而非矛盾。值得注意的是,所有状态变化动作的36.8%通过Tier 2(在项目内文件编辑)超出分类器的范围,导致漏报率升高。即使限制到分类器实际评估的160个动作(Tier 3),漏报率仍为70.3%,而误报率上升至31.9%。Tier 2的覆盖差距在清理工件(92.9%漏报率)上最为明显,其中代理在预期CLI不可用时会自然回退到编辑状态文件。这些结果突显了一个值得考察的覆盖边界:自动模式假设危险动作通过shell传输,但代理通常通过分类器未评估的文件编辑实现等效效果。
英文摘要:
Claude Code's auto mode is the first deployed permission system for AI coding agents, using a two-stage transcript classifier to gate dangerous tool calls. Anthropic reports a 0.4% false positive rate and 17% false negative rate on production traffic. We present the first independent evaluation of this system on deliberately ambiguous authorization scenarios, i.e., tasks where the user's intent is clear but the target scope, blast radius, or risk level is underspecified. Using AmPermBench, a 128-prompt benchmark spanning four DevOps task families and three controlled ambiguity axes, we evaluate 253 state-changing actions at the individual action level against oracle ground truth. Our findings characterize auto mode's scope-escalation coverage under this stress-test workload. The end-to-end false negative rate is 81.0% (95% CI: 73.8%-87.4%), substantially higher than the 17% reported on production traffic, reflecting a fundamentally different workload rather than a contradiction. Notably, 36.8% of all state-changing actions fall outside the classifier's scope via Tier 2 (in-project file edits), contributing to the elevated end-to-end FNR. Even restricting to the 160 actions the classifier actually evaluates (Tier 3), the FNR remains 70.3%, while the FPR rises to 31.9%. The Tier 2 coverage gap is most pronounced on artifact cleanup (92.9% FNR), where agents naturally fall back to editing state files when the expected CLI is unavailable. These results highlight a coverage boundary worth examining: auto mode assumes dangerous actions transit the shell, but agents routinely achieve equivalent effects through file edits that the classifier does not evaluate.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。