Skip to content
Book Open access

Complexity-Ranked Iterative Refactoring from Microservices to LLM-based Multi-Agent Systems

Jul 2026 · SIGSOFT FSE Companion · pp. 1557-1564 · 0 citations · 17 references
Computer Science

TL;DR

A systematic refactoring methodology that prioritizes service migration based on quantified complexity criteria and incorporates a Human-in-the-loop mechanism that resolves decision-making gaps when agent outputs violate predefined QA invariants.

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.

Read PDF

Similar papers

Open access Jul 2026

Cloud Microservices: An Empirical Study of MCP-Orchestrated LLM Agents for Incident Triage

Empirical evidence is provided that MCP-orchestrated LLM agents can support root cause analysis in cloud-native environments and offer practical guidance for model selection in AIOps/SRE workflows.

Reinan Gabriel dos Santos Souza, Methanias Colaço · 0 citations
Conference Jul 2026

Multi-Agent Change Impact Analysis and Test Optimization for AI-Enabled Software Systems

AI-enabled service-oriented systems change through code, data, prompts, service contracts, retrieval indices, and deployment workflows, which makes regression impact difficult to localize with code-centric evidence only. Existing regression test selection methods provide strong code-, configuration-, and service-level...

Nariman Mani, Amr S. Abdelfattah, Shakthi Weerasinghe et al. · 0 citations
#artificial intelligence Preprint Sep 2026

Adapting to Evolving Requirements: Agentic AI for Retail Supply Chain Operations

Retail supply chain operations rely on coupled decision modules that must adapt as requirements evolve. LLMs offer a natural-language interface for this task, but existing methods primarily focus on individual optimization models. Extending them to heterogeneous decision pipelines is challenging because a requirement m...

Lei Zheng, Li-Ping Yang, Zi-Hao Li et al. · 0 citations
Conference Jul 2026

Context-RCA: A Context-Controlled Multi-Agent Framework for Root Cause Analysis in Microservice Systems

Root cause analysis (RCA) in microservice systems is challenging because observable symptoms often propagate along service dependencies and become separated from the actual underlying cause. Recent large language model (LLM)-based agent frameworks have shown promise for automating RCA, but existing methods still suffer...

Jun-Chi Kang, Xunhui Zhang, Yuanzhao Zhai et al. · 0 citations
Open access Sep 2026

Hardening the Autonomous Value Chain: Lean Six Sigma Guardrails and Multi-Enterprise ETL Architecture for Agentic Supply Chain Orchestration

The deployment of multi-agent artificial intelligence networks across global supply chains marks a critical shift from passive operational visibility to autonomous decision making. In the current landscape, specialized agents are empowered to independently resolve real time exceptions, executing inventory re-allocation...

Kabirat Motunrayo Ogundairo · 1 citation
Conference Aug 2026

Reconceptualizing Observability for Agentic AI Systems: A Trace-Centric Architecture for Interpreting Non-Deterministic Workflow Behavior

The more typical feature of agentic AI systems is dynamic, multistep workflows where autonomous components plan, reason, and communicate with external tools and data sources in a series of iterations. Such flexibility increases capability but also brings nondeterminism which is inherent and where the same inputs can re...

Ankur Gupta, Karan Gupta, Divyakumar Deepak Savla et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.