Abstract
Retail supply chain management is increasingly reliant on complex SaaS-based microservice systems (MS). While integrating LLM-powered agents offers a significant opportunity for intent-based orchestration, the transition from deterministic microservices to non-deterministic Multi-Agent Systems (MAS) lacks a structured migration path and risks severe system instability. In this paper, we propose a systematic refactoring methodology that prioritizes service migration based on quantified complexity criteria. As the architecture evolves, we embed Quality Assurance (QA)-based regression analysis inline to ensure functional parity between legacy service logic and probabilistic agentic reasoning. To safeguard against logic failures, our framework incorporates a Human-in-the-loop (HITL) mechanism that resolves decision-making gaps when agent outputs violate predefined QA invariants. We evaluated our approach on a supply chain benchmark of 9 microservices with 13 APIs. Our results reveal that complexity-ranked refactoring improves consistency, latency, and cost by 2%, 21%, and 23% over random migration, and by 6%, 25%, and 31% over reverse-ranked order migration, respectively. Furthermore, this ranked approach minimizes rollbacks and human interventions. This work contributes a robust process for containing agentic non-determinism within microservice boundaries through continuous QA alignment and strategic human intervention.
| Original language | English |
|---|---|
| Title of host publication | FSE Companion '26: Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering |
| Publisher | Association for Computing Machinery |
| Pages | 1557 - 1564 |
| ISBN (Electronic) | 9798400726361 |
| DOIs | |
| Publication status | Published - 17 Jul 2026 |
| Event | 34th ACM International Conference on the Foundations of Software Engineering - Montreal, Canada Duration: 05 Jul 2026 → 09 Jul 2026 |
Conference
| Conference | 34th ACM International Conference on the Foundations of Software Engineering |
|---|---|
| Country/Territory | Canada |
| City | Montreal |
| Period | 05/07/2026 → 09/07/2026 |
Fingerprint
Dive into the research topics of 'Complexity-ranked iterative refactoring from microservices to LLM-based multi-agent systems'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver