面向依赖决策制定的基准测试
Towards a Benchmark for Dependency Decision-Making
AI总结:
本文提出DepDec-Bench基准测试,用于评估人工智能编码代理在依赖决策中的安全性和效率,通过分析实际依赖变更数据,揭示代理在版本选择、依赖重用及安全影响方面的表现。
摘要:
人工智能编码代理越来越多地修改现实软件仓库并做出依赖决策,包括添加、删除或更新第三方包。这些选择可能对安全态势和维护负担产生实质性影响,但仓库级别的评估大多强调通过测试和可执行性,而没有明确评分系统是否满足(i)重用现有依赖、(ii)避免不必要的添加,或(iii)选择满足安全和政策约束的版本。我们提出了DepDec-Bench,一个评估依赖决策制定的基准测试,超越功能性正确性。为了使DepDec-Bench扎根于现实行为,我们对来自七个生态系统中117062个依赖更改进行了初步研究,这些更改来自代理和人类撰写的拉取请求。我们显示,编码代理经常做出具有安全影响的依赖决策,这些影响在以测试为导向的评估中是不可见的:代理选择PR时间已知易受攻击的版本(2.46%),并且总体安全影响为负(净影响-98 vs. +1316 for humans)。这些观察结果指导了DepDec-Bench的任务家族和指标,这些指标评估安全版本选择、重用纪律以及对依赖膨胀的克制,同时评估通过测试。
英文摘要:
AI coding agents increasingly modify real software repositories and make dependency decisions, including adding, removing, or updating third-party packages. These choices can materially affect security posture and maintenance burden, yet repository-level evaluations largely emphasize test passing and executability without explicitly scoring whether systems (i) reuse existing dependencies, (ii) avoid unnecessary additions, or (iii) select versions that satisfy security and policy constraints. We propose DepDec-Bench, a benchmark for evaluating dependency decision-making beyond functional correctness. To ground DepDec-Bench in real-world behavior, we conduct a preliminary study of 117,062 dependency changes from agent- and human-authored pull requests across seven ecosystems. We show that coding agents frequently make dependency decisions with security consequences that remain invisible to test-focused evaluation: agents select PR-time known-vulnerable versions (2.46%) and exhibit net-negative security impact overall (net impact -98 vs. +1,316 for humans). These observations inform DepDec-Bench task families and metrics that evaluate safe version selection, reuse discipline, and restraint against dependency bloat alongside test passing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。