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.
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· Anais do LIII Seminário Inte...· 0 citations
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.· International Conference on...· 0 citations
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
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.· Fall Joint Computer Conferen...· 0 citations
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· IIARD International Journal...· 1 citation
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.· International Conference on...· 0 citations
We use cookies to run the site and, with your consent, for analytics and to show ads.
See our Cookie Policy.