When Requirements Interact: Scaling Long-Horizon Coding via Interdependent Specifications

Yishuo Cai, Minzheng Wang, Liang Zhao, Linghao Zhang, Lei Li, Shicheng Li, Xu Sun, Fuli Luo

arXiv:2610.40256 · 2026-11-02 공개 · arXiv · PDF

reinforcement-learning long-horizon benchmarking code-generation model-evaluation software-engineering task-synthesis deepswev1-1

Abstract

To succeed in real-world long-horizon software development, coding agents must satisfy multi-dimensional task specifications, such as interface compatibility and error handling, and do so without breaking existing dependencies. However, current works lack specification in both quantity and diversity, often emphasizing primary goals while ignoring complex constraints. Synthesizing tasks to bridge this gap presents two challenges: naively adding specifications risks reducing tasks to trivial checklists rather than compelling joint reasoning, and verifying these subtle interactions risks overlooking hidden flaws or rejecting valid alternatives. To address these challenges, we introduce CodeSpecWeave, a framework for synthesizing tasks with rich, interdependent specifications. Grounded in real developer seeds, a synthesis agent iteratively develops both coupled task requirements and executable tests, while a review agent audits solution trajectories from multiple models to guarantee test reliability. Using this pipeline, we construct 4,670 training tasks across 2,865 repositories. Applying Reinforcement learning on these tasks significantly improves performance over the base model on DeepSWE-v1.1, largely outperforming existing baselines. Furthermore, we curate CodeSpecWeave-Bench, a rigorous benchmark comprising 100 tasks and 1,044 specifications, which clearly separates frontier models and reveals significant headroom in handling interdependent engineering constraints.

한국어 요약

한 줄 요약

CodeSpecWeave는 상호 의존적 사양을 갖춘 코드 생성 작업을 합성하는 프레임워크로, 4,670개의 학습 작업과 100개의 평가 작업을 기반으로 성능을 크게 향상시킨다.

핵심 기여도

핵심 아이디어

기존 연구는 주요 개발 목표에 집중하며, 인터페이스 호환성, 상태 일관성, 오류 처리 등 복합적인 제약을 충분히 반영하지 못한다. CodeSpecWeave는 이러한 문제를 해결하기 위해, 개발자 시드를 기반으로 작업 요구사항과 실행 가능한 테스트를 반복적으로 생성하는 합성 에이전트와, 여러 모델의 해결 과정을 검토하는 리뷰 에이전트를 결합한 프레임워크를 제안한다. 합성 에이전트는 상호 의존적 사양을 설계하여, 개별 구현 선택이 서로 영향을 주는 구조를 형성하고, 리뷰 에이전트는 테스트의 신뢰성을 보장하기 위해 다양한 모델의 패치를 검토한다. 이는 단순한 체크리스트가 아닌, 복합적인 제약을 동시에 만족하는 전역적 구현을 요구하는 작업을 생성한다.

기술적 접근법

주요 결과

의의 및 한계

CodeSpecWeave는 실제 개발 환경에서 복합적인 제약을 반영한 작업 합성과 평가를 가능하게 하며, 기존 데이터셋 대비 사양 밀도와 구조적 다양성이 훨씬 높다. 특히, 상호 의존적 사양을 처리하는 능력을 평가하는 CodeSpecWeave-Bench는 모델 간 성능 차이를 명확히 드러내며, 개선 여지가 큰 분야를 식별하는 데 유용하다. 그러나 합성 작업 생성 과정에서 일부 사양이 실제 개발자 요구사항과 완전히 일치하지 않을 수 있으며, 리뷰 에이전트가 모든 가능한 해결책을 포괄적으로 검토하기는 어렵다는 한계가 있다.

실용적 활용

CodeSpecWeave는 소프트웨어 개발 자동화, 코드 리팩토링, 테스트 자동화 등 복합적인 제약을 고려해야 하는 실제 개발 환경에서 유용하게 활용될 수 있다. 특히, 코드 생성 에이전트의 학습 데이터셋으로 사용하거나, 모델 평가를 위한 벤치마크로 활용할 수 있으며, 개발자 도구와 CI/CD 파이프라인에 통합하여 실시간 코드 품질 검증에 활용할 수 있다.