Manuscript Offprint

arXiv:2609.03028

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

BOWEN JIANG, Karlsruhe Institute of Technology, Germany

HAOWEI CHENG, Waseda University, Japan

YUHONG FU, Adelaide University, Australia

ANNE KOZIOLEK, Karlsruhe Institute of Technology, Germany

JIALONG LI, Waseda University, Japan

WEIXING ZHANG, Karlsruhe Institute of Technology, Germany

Coding agents often implement changes before users have fully articulated their requirements, echoing a pattern long documented in requirements engineering: stakeholders often cannot state a constraint until part of the system already exists to react to. In traditional software projects, this volatility is known to be associated with schedule and cost overrun, but that evidence is measured at the granularity of release cycles and budgets. Existing empirical work on coding agents narrows this gap only partly: curated benchmarks fix requirements before implementation begins by design, and recent observational studies of real agent sessions report the frequency and type of user pushback without linking a specific requirement's arrival to the line-level invalidation of code that it causes. It remains unknown whether, once an agent begins editing immediately and iteratively, a late-arriving requirement invalidates prior work within the same short session, and if so, how much. We address this using 3,553 eligible sessions from the SWE-chat dataset, coding post-implementation requirement arrivals along three requirements-engineering-grounded dimensions and, in the subset whose repository state can be reliably replayed, linking each arrival to a replay-derived proxy for this invalidation, that is, the 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, a direction that holds under a user-turn control and a net-deletion sensitivity, though the association is temporal rather than a demonstrated causal or semantic link. This burden shows no detectable decline over a session and no detected association with operation type once requirement multiplicity is accounted for, though several of these intervals remain wide enough to admit material effects. A complementary controlled experiment shows that delayed disclosure relocates implementation into the post-reveal round rather than adding further rework, while advance warning alone, without requirement content, produces no detected effect on subsequent overwriting. Together, these results establish late requirement emergence as a measurable source of within-session code invalidation in real coding-agent interactions.

CCS Concepts: • Software and its engineering → Software libraries and repositories; Documentation; Requirements analysis; Empirical software validation.

Additional Key Words and Phrases: Requirement Emergence, Late Requirement Arrival, Code Invalidation, Rework, Coding Agent

Authors' Contact Information: Bowen Jiang, bowen.jiang@kit.edu, Karlsruhe Institute of Technology, Karlsruhe, Germany; Haowei Cheng, Waseda University, Tokyo, Japan, haowei.cheng@fuji.waseda.jp; Yuhong Fu, Adelaide University, Adelaide, Australia, yuhong.fu@adelaide.edu.au; Anne Koziolek, Karlsruhe Institute of Technology, Karlsruhe, Germany, koziolek@kit.edu; Jialong Li, Waseda University, Tokyo, Japan, lijialong@fuji.waseda.jp; Weixing Zhang, Karlsruhe Institute of Technology, Karlsruhe, Germany, weixing.zhang@kit.edu.

Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than the author(s) must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from permissions@acm.org.

Conference acronym 'XX, Woodstock, NY

© 2018 Copyright held by the owner/author(s). Publication rights licensed to ACM.

ACM ISBN 978-1-4503-XXXX-X/2018/06

https://doi.org/XXXXXXX.XXXXXXX

2 • Jiang et al.

ACM Reference Format:

Bowen Jiang, Haowei Cheng, Yuhong Fu, Anne Koziolek, Jialong Li, and Weixing Zhang. 2018. Requirements After the First Edit: Mining Late Requirement Emergence and Rework in Real-World Coding-Agent Sessions. In Proceedings of Make sure to enter the correct conference title from your rights confirmation email (Conference acronym 'XX). ACM, New York, NY, USA, 30 pages. https://doi.org/XXXXXXX.XXXXXXX

References (27)