arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.20038cs.SEcs.AI
收藏

SWE-Nexus:基于测试执行的软件工程任务自动组合

SWE-Nexus: Automated Composition of Software Engineering Tasks from Test Execution

National University of Singapore(新加坡国立大学);Shanghai Artificial Intelligence Laboratory(上海人工智能实验室);Tsinghua University(清华大学)

Songwei Yu, Ziqi Miao, Jingxuan Xu, Junhao Fan, Haoyang Huang, Yuan Xiong, Zihang Xu, Weihao Li, Wenqiang Zhu, Yuechen Luo, Xinshun Feng, Yanan Wu, Ken Deng

AI总结:

该研究提出SWE-Nexus自动化流水线,通过测试执行构建仓库级软件工程任务,基于105个仓库的600个任务基准评估模型,最佳配置单次解决37.8%任务,可实现跨变更的验证行为组合。

摘要:

历史代码变更提供了便捷的任务边界,但无法确定选定的测试覆盖了哪些生产函数,也无法支持在单个变更之外组合经过验证的行为。我们提出SWE-Nexus,这是一种完全自动化的流水线,可从测试执行中构建仓库级别的实现任务。四个构建智能体负责选择测试、为每个仓库调整追踪与评估协议,并生成行为规范。对于每个选定的测试文件,追踪会记录生产函数体的观测执行足迹。仅当原始仓库中所有预期得分点都通过,且遮蔽追踪到的函数体时会导致至少一个失败或错误,才会保留该范围。兼容的范围会被确定性组合,共享函数仅计数一次,且每个组成测试文件会在完整组合遮蔽下重新验证。该基准包含来自105个仓库、涉及六种编程语言的600个任务,其中包括116个原子任务和484个组合任务。我们在三种智能体支架下评估了12种模型,最佳配置在一次尝试中解决了37.8%的任务,且范围加权评分可衡量部分恢复情况。SWE-Nexus支持从单个历史变更之外的经过验证行为中构建任务。

英文摘要:

Historical code changes provide convenient task boundaries, but do not identify which production functions selected tests exercise or support composing validated behaviors beyond a single change. We present SWE-Nexus, a fully automated pipeline that constructs repository-level implementation tasks from test execution. Four construction agents select tests, adapt tracing and evaluation protocols to each repository, and generate behavioral specifications. For each selected test file, tracing records an observed execution footprint of production function bodies. A scope is retained only if all expected scoring points pass in the original repository and masking the traced bodies causes at least one failure or error. Compatible scopes are composed deterministically, with shared functions counted once and every constituent test file revalidated under the complete combined mask. The benchmark contains 600 tasks from 105 repositories across six programming languages, including 116 atomic and 484 composite tasks. We evaluate 12 models under three agent scaffolds. The best configuration resolves 37.8% of tasks in one attempt, and scope-weighted scoring measures partial recovery. SWE-Nexus enables task construction from validated behavior beyond individual historical changes.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑