Software Development 6 min read

Multi-agent system architecture: from AI experiments to enterprise engineering

How to integrate autonomous AI agents into existing ERP and ECM landscapes without creating unmanaged "shadow IT." A practical approach for building secure multi-agent systems.

Large enterprises are moving from isolated experiments with individual LLM models to the implementation of integrated Multi-Agent Systems (MAS). Today, disparate chatbots are being replaced by networks of specialized autonomous agents that interact, make decisions, and execute complex transactions within the enterprise infrastructure. However, implementing MAS without strict engineering discipline quickly turns into operational chaos.

Enterprise architects face a serious challenge: how to integrate autonomous assistants into existing ERP and ECM systems without creating unmanaged "shadow IT" or violating critical business logic. AI agents are not secure by default. Granting them autonomy requires designing rigid architectural boundaries.

From chaos to engineering: why multi-agent systems require architectural boundaries

When designing distributed systems, architects often rely on microservice patterns. However, as Martin Fowler and James Lewis note in their work (martinfowler.com), microservices are not always appropriate—a monolith-first approach is often cheaper at the start, and the main cost of microservices is high operational complexity. A similar pattern applies to MAS: the cost of developing and maintaining distributed agent networks grows rapidly with their complexity.

Without clear boundaries, agents become isolated black boxes. To assess the readiness of MAS for industrial operation, it is critical to use proven engineering frameworks. In particular, the AWS Well-Architected Framework defines six key pillars (reliability, security, performance, cost, operational excellence, sustainability), which should form the basis for regular architectural reviews. As Thoughtworks Technology Radar emphasizes, the transition to new AI patterns requires strict discipline, testing, and code verification to identify risks before they turn into incidents.

Any change in agent behavior must be measured. According to the DORA (DevOps Research and Assessment) methodology, deployment frequency and mean time to recovery (MTTR) metrics must remain stable even when implementing dynamic agent scenarios. Notably, only 13% of companies are currently ready for full agent autonomy, while 49% are implementing hybrid scenarios with human oversight to control transactions.

The "shadow AI" problem: how autonomous agents break corporate security

The main danger is that autonomous agents attempt to optimize the path to a goal. If an agent is tasked with accelerating document approval, it may attempt to transfer data outside of established internal procedures. This creates a risk of "shadow AI," where agents bypass traditional access models (RBAC), lack a single source of truth, and leave no audit trail.

Let's consider real-world examples of operational risks:

  • Agent coordinating approval in an ECM system: if every intermediate decision (status change, route) is not recorded in an immutable log, the company loses the ability to perform a legal audit.
  • Lack of RBAC when accessing ERP: if an agent uses a general service account, there is a risk that it will perform actions beyond the authority of the specific user on whose behalf it acts.
  • Context desynchronization: when multiple agents work on different stages of a business process without a centralized data model, they rely on conflicting versions of documents, leading to duplication or transaction errors.

Three pillars of secure MAS integration: single source of truth, RBAC, and audit trail

To prevent chaos, MAS architecture in the enterprise must rely on three fundamental principles.

First, a single source of truth. Agent interaction should not occur through raw JSON message exchanges, but through a strictly typed domain model that synchronizes context across all processes.

Second, strict access control (RBAC/ABAC). Each agent must have a limited service account whose rights dynamically inherit the constraints of the process initiator. An agent cannot read or modify data that the user it represents does not have access to.

Third, mandatory end-to-end audit trail. Every agent action (from API calls to decision-making) must be recorded in a system log protected from modification.

Control and AI governance: alignment with security requirements

MAS design must comply with AI risk management standards, such as NIST AI RMF and OWASP for LLM. Security should be built at the infrastructure level, not relying solely on system prompts.

The infrastructure must include API call limits, protection mechanisms against prompt injection, and guardrails. The latter are responsible for filtering and validating agent output before execution in critical corporate systems.

Technological foundation: the role of the UnityBase platform in MAS coordination

For reliable integration of agents into corporate processes, it is effective to use systems built on the high-performance low-code platform UnityBase (jointly developed by companies of the Intecracy Group alliance, where InBase is a key developer). The platform provides an architectural foundation for coordinating autonomous agents without writing complex integration code from scratch.

Products created on the UnityBase platform, such as Megapolis.DocNet (ECM) or Scriptum (BPM/DMS), use built-in mechanisms to ensure MAS security:

  • Unified domain metadata model: combines data, APIs, and business rules, creating a common source of truth for agents and preventing context desynchronization.
  • Record-level security (RLS): ensures that agent actions are strictly limited by the rights of the process initiator. An agent physically cannot access data outside its perimeter.
  • Built-in audit trail: the DataHistory mechanism automatically logs every data change, ensuring transparency of decisions and compliance with regulatory requirements.

Architect's checklist: preparing infrastructure for MAS implementation

  • RBAC isolation: Verify that each agent has its own limited service account aligned with the initiator's rights.
  • End-to-end logging (Audit Trail): Ensure every agent action is recorded in an immutable audit log.
  • Single source of truth: Configure integration through a shared domain model to avoid data conflicts.
  • Output validation (Guardrails): Implement automatic verification of agent responses before executing transactions.
  • Monitoring and Kill Switch: Create a mechanism for immediate agent blocking if API call limits are exceeded.

FAQ

How can a multi-agent system be integrated into a closed corporate ERP perimeter without the risk of data leakage?

Integration must occur via an API Gateway with mandatory mapping of access rights. Each agent must use a limited service account with record-level security (RLS) policies applied. This ensures that data does not leave the authorized perimeter, even if an agent attempts to execute an unauthorized request.

How can the compliance of AI agent actions with OWASP and NIST AI RMF security standards be ensured?

An independent validation layer (Guardrails) must be implemented at the backend level. All requests and responses must undergo automatic verification for signs of manipulation, and every agent action must be logged in an immutable system log (Audit Trail) to ensure audit transparency.

Why are traditional microservices not always suitable for coordinating autonomous agents, and how does a low-code platform help?

Microservice architecture without proper management creates high operational complexity and the risk of context desynchronization between agents. Using a low-code platform like UnityBase allows for the application of a unified domain metadata model that integrates data and APIs, providing agents with a single source of truth and built-in audit and security mechanisms.

Data sources