AI
WEAVE framework maps multi-PR code evolution for training smarter code agents
Researchers introduce a system to convert real-world software histories into structured tasks that teach AI agents to handle complex, interdependent code changes.
The gap between how software engineers work and how AI code agents are trained has been a persistent challenge. Real-world development involves coordinated changes across multiple pull requests, but most benchmarks treat each task as isolated work. A new research effort aims to close that gap.
The Problem with Current Benchmarks#
Today's executable repository-level benchmarks typically focus on a single issue or PR at a time, missing the interconnected nature of actual development. When multi-PR scenarios do exist, they tend to use rough aggregation methods that ignore dependencies between changes. This misalignment makes it harder to measure progress accurately and limits the learning signals available to train long-horizon code agents—systems that must reason about sequences of changes spread across a codebase.
Introducing WEAVE#
Researchers have developed WEAVE, a framework that transforms verified pull request histories into executable tasks with explicit dependency structure. The approach works by analyzing repository-calibrated typed change locations, grouping related PRs into bounded directed acyclic graphs (DAGs), and packaging each as a single unified, executable task.
The framework also introduces Graph Credit, a deterministic, test-grounded metric that measures partial progress while respecting dependencies between changes. This enables dense, verifiable rewards—critical for reinforcement learning training loops.
Impact and Validation#
Initial experiments demonstrate that WEAVE produces coherent executable tasks and offers more accurate progress tracking than flat-scoring approaches. The framework proves useful across multiple applications: task construction, agent evaluation, supervised fine-tuning, and reinforcement learning for code agents. By better aligning benchmarks with real-world workflows, WEAVE aims to accelerate both progress measurement and the quality of training signals for the next generation of code AI systems.

