Requirements After the First Edit: Mining Late Requirement Emergence and Rework in Real-World Coding-Agent Sessions
Bowen Jiang, Haowei Cheng, Yuhong Fu, Anne Koziolek, Jialong Li, Weixing Zhang
Abstract
Coding agents often implement changes before users have fully articulated their requirements, echoing a pattern from requirements engineering: stakeholders cannot express a constraint until part of the system exists to react to. This volatility is associated with schedule and budget overruns in traditional projects, but only at release-cycle granularity. Existing work on coding agents narrows this gap only partway: curated benchmarks fix requirements before implementation by design, and observational studies report pushback frequency without linking arrivals to the code invalidation they cause. We address this using 3,553 eligible SWE-chat sessions, coding post-implementation requirement arrivals along three dimensions and, where repository state can be replayed, linking each arrival to a proxy: deletion or replacement of prior agent-authored lines. A requirement's arrival is followed by roughly twice as much invalidation as matched non-requirement edits, robust to user-turn and net-deletion checks, though not demonstrated as causal. This burden shows no detectable decline over a session and no detected association with operation type once multiplicity is accounted for; several intervals remain wide. A controlled experiment shows delayed disclosure relocates implementation post-reveal, while advance warning produces no detected effect on overwriting. These results establish late requirement emergence as a measurable source of code invalidation.
Create a lesson
Related papers
From Static to Dynamic: Benchmarking Real-World Code Review with MCR-Bench
Shared title terminologycs.SEDewu Zheng, Yanlin Wang, Xiwen Wang et al.
J2KMigBench: Evaluating LLMs on Java-to-Kotlin Migration in Real-World Repositories
Shared title terminologycs.SEMoshood A. Fakorede, Marcoantoni Rubio-Gonzalez, Umar Farooq
Context Clash: Prevalence and Limits of Lightweight Detectors for Cross-Tool Coding-Agent Instruction Conflicts
Shared title terminologycs.SEAditi Patodiya
SWE-GPU-Bench: Can Language Models Solve Real-World GPU Software Engineering Tasks?
Shared title terminologycs.SEFeng Chen, Binbin Liu, Wenhan Han et al.
How Much Do Coding Agents Over-Edit, and Why? An Empirical Study of Unneeded Edits in Repository-Level Agent Patches
Shared title terminologycs.SEAakash Goel, Benjamin Steenhoek, Yu Hu
Scanning the Harness: Configuration Exposures in AI Coding-Agent Supply Chains
Shared title terminologycs.SEBenjamin Kapner, Carmel Soceanu, Alicia Petrunin et al.