Skip to main navigation Skip to search Skip to main content

Complexity-ranked iterative refactoring from microservices to LLM-based multi-agent systems

Research output: Chapter in Book/Report/Conference proceeding › Conference contribution

44 Downloads (Pure)

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 languageEnglish
Title of host publicationFSE Companion '26: Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering
PublisherAssociation for Computing Machinery
Pages1557 - 1564
ISBN (Electronic)9798400726361
DOIs
Publication statusPublished - 17 Jul 2026
Event34th ACM International Conference on the Foundations of Software Engineering - Montreal, Canada
Duration: 05 Jul 2026 → 09 Jul 2026

Conference

Conference34th ACM International Conference on the Foundations of Software Engineering
Country/TerritoryCanada
CityMontreal
Period05/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