From Ripple to Boundary: Deterministic Impact Boundaries for LLM-Based Software Evolution
Jiameng Bai, Zhitao Wang, Long Wang, Keyue Qian, Sai Wu
Key points
From the paper's conclusion- We propose a paradigm shift from probabilistic semantic retrieval to deterministic structural constraints.
Abstract
The landscape of software evolution is undergoing a fundamental paradigm shift in the era of Large Language Models. As industrial software engineering increasingly transitions toward design-driven code generation, the bottleneck of evolution has shifted from writing code to maintaining deterministic consistency between multi-source design assets and the generated code. When a design asset changes, LLM agents currently lack a deterministic impact boundary to identify which code must be evolved, leading to two failure modes: hallucinating missing changes or breaking unrelated code. Probabilistic approaches, such as semantic retrieval or text-based diffing, fail to capture the structural ripple effects across highly interconnected design dependencies. We propose a paradigm shift from probabilistic semantic retrieval to deterministic structural constraints. We formalize the design assets as a Knowledge Graph and organize them into a content-addressed Merkle Directed Acyclic Graph. Our key insight reveals a topological isomorphism between the logical ripple effect of a design change and the content hash propagation within the DAG. By leveraging this, we transform ambiguous impact analysis into verifiable structural operations. Through a two-phase diffing process, we extract a precise causal chain that defines the exact modification boundary. This boundary enables deterministic context injection, providing the LLM agent with strictly scoped code and design updates, thereby fundamentally guaranteeing evolution safety. As a by-product, the KG serves as an agent-queryable knowledge base for natural language design retrieval. Early deployment on a large-scale industrial payment platform demonstrates that our mechanism successfully computes the exact impact boundary and generates incremental code modifications that meet the expected design changes.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- DRILS: Dependency-based Requirement Change Impact Analysis Using LLMsarXiv · 2026
- When LLM-Generated Refactorings Ripple: An Empirical Study of Repository Adoption ReadinessarXiv · 2026
- Lingxi: Repository-Level Issue Resolution Framework Enhanced by Procedural Knowledge Guided ScalingProceedings of the ACM on Software Engineering · 2026
- LoLBench: Evaluating Coding Agents with Long-Horizon Proposals on Large Software SystemsarXiv · 2026
- CrossSWE: Benchmarking Cross-Repository Joint Development for Coding AgentsarXiv · 2026
- The Code of Theseus: Can Agents Rebuild Software from Recovered Design Documents?arXiv · 2026