Skip to content

The Modular Monolith as AI-Agent-Native Architecture: Containing Autonomous Code Erosion at 475K LOC under GxP Compliance

Oct 2026 · Zenodo (CERN European Organization for Nuclear Research)
Software Engineering Research

Abstract

As Large Language Model (LLM)-driven autonomous coding agents rapidly reshape software engineering, the physical topology of software systems faces fundamental reassessment. While microservices long served as the industry standard for managing human communication bottlenecks, empirical evidence indicates that when individual engineers or small agent clusters act as the primary coding workforce on mission-critical systems, distributed microservices introduce an acute structural dilemma: the "Single-Agent Scope Trap". Network boundaries shatter symbolic semantic continuity, inducing parameter hallucinations, covert mock fallbacks, and non-deterministic transaction tearing. Concurrently, unconstrained monolithic architectures rapidly decay under the shortcut biases of LLMs. To resolve this architectural impasse, we present an extensive empirical investigation of the AMF-LIMS platform—a 474.9K LOC regulatory life-sciences system operating under FDA 21 CFR Part 11 and national pharmacopoeial mandates. Spanning 346 real-world multi-agent development sessions, 37 industrial Git milestones, and 114,357 tool invocations, we formulate and validate the AI-Agent-Native Modular Monolith paradigm, establishing shift-left proactive containment (pre-generative classpath blindness and in-flight type pruning) backed by Spring Modulith and sub-second deterministic bytecode gateways. Our quantitative findings demonstrate that: (1) deterministic compile-time and bytecode hard gates intercepted 1,244 code erosion events, achieving a 92.69% self-healing convergence rate with a +67.48 pp net suppression advantage over soft prompts, suppressing production defect escapes to zero (Defect Escape Rate, DER_prod = 0.0%); (2) dismantling seven cyclic deadlocks optimized the Robert C. Martin Main Sequence Distance by 85.9% (D = 0.054); (3) a paired 20-task natural quasi-experiment with in-situ telemetry confirmed significant causal error reduction (W = 0, p = 8.85e-5 via Wilcoxon Signed-Rank Test), ruling out maturation threats; and (4) the modular monolith reduced resident memory by >80% (1.91 GB), accelerated cross-domain calls to 0.012 ms (>1,500x speedup), compressed agent task context by 94.7% (21.8k Tokens), and elevated first-pass code generation (Pass@1) from 41.2% to 89.6%.

View source

Similar papers

#computer vision Review Sep 2017

Agile Software Development Methods: Review and Analysis

This publication proposes a definition and a classification of agile software development approaches and analyses ten software development methods that can be characterized as being "agile" against the defined criterion.

P. Abrahamsson, O. Salo, Jussi Ronkainen et al. · 727 citations · ⚡54
#small language model Dataset Open access Oct 2026

Socratic guiding questions in synthetic arithmetic data: matched LoRA runs (revision v2)

Supporting data, adapters, predictions and code for the article *Low-Cost LoRA Fine-Tuning of Small Language Models for Multi-Step Arithmetic Reasoning* by Jake O'Grady, Asena Isik Gürhan, Chee Fong Ting and Effirul Ramlan (University of Galway). We generated 20,000 GSM8K-derived arithmetic problems with step-by-step s...

O'Grady, Jake, Gürhan, Asena Isik, Chee, Fong Ting et al. · 465 citations
#computer vision Jun 2008

The impact of agile practices on communication in software development

The study shows that agile practices improve both informal and formal communication, but indicates that, in larger development situations involving multiple external stakeholders, a mismatch of adequate communication mechanisms can sometimes even hinder the communication.

M. Pikkarainen, Jukka Haikara, O. Salo et al. · 401 citations · ⚡48
#machine learning Review Open access Oct 2014

Software development in startup companies: A systematic mapping study

The results indicate that software engineering work practices are chosen opportunistically, adapted and configured to provide value under the constrains imposed by the startup context.

Nicolò Paternoster, Carmine Giardino, M. Unterkalmsteiner et al. · 394 citations · ⚡54
#computer vision Review Mar 2008

Agile methods in European embedded software development organisations: a survey on the actual use and usefulness of Extreme Programming and Scrum

The results show that the embedded industry has been able to apply agile methods in its development processes and that the appreciation of the agile methods and their individual practices appears to increase once adopted and applied in practice.

O. Salo, P. Abrahamsson · 238 citations · ⚡9
#computer vision Open access Jul 2017

What happens when software developers are (un)happy

Consequences of happiness and unhappiness that are beneficial and detrimental for developers' mental well-being, the software development process, and the produced artifacts are found.

D. Graziotin, Fabian Fagerholm, Xiaofeng Wang et al. · 236 citations · ⚡13

Related blog posts

Microsoft Research Blog Oct 12, 2026

Simulating student learning for better AI tutoring

StudentSim is a research system for evaluating and improving AI tutoring tools before they are tested with learners. It models how individuals may engage with tutors, giving feedback to improve tutor performance across subjects like chess, writing, and mathematics. The post Simulating student learning for better AI tutoring appeared first on Microsoft Research.

MIT News · Artificial Intelligence Oct 15, 2026

AI model decodes the language cells use to communicate

A new computational approach reveals how cells communicate to assemble into tissues. This could accelerate stem cell engineering, improve disease models, and inform therapies.

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