Legion
Legion is the Multinex Agent Development Kit (ADK) and orchestration swarm. It provides the core abstraction loop — Agent Logic → ADK → Policy Engine → LLM Router → Backend Model — with continuous monitoring, auto-documentation, and immutable audit evidence for AIUC-1 compliance.
Core abstraction loop
Legion achieves model agnosticism and AIUC-1 compliance through a strict five-stage runtime loop. Agent logic defines intent and capabilities. The ADK wraps the agent and extracts capabilities for auto-documentation. The Policy Engine (Control Tower) intercepts all requests, enforcing redaction, zero-retention, and safety airlocks before the model. The LLM Router multiplexes validated requests to the appropriate backend.
For enterprise sovereign deployments, routing through third-party aggregators like OpenRouter is blocked by default to prevent data leakage outside the airlock. It requires explicit opt-in via the ALLOW_AGGREGATOR_ROUTING=true feature flag.
Architecture components
Legion is organized into specialized subsystems that each handle a distinct responsibility in the agent lifecycle.
- Control Tower — Centralized policy enforcement (policy-engine.ts) that intercepts all payloads
- ADK Client — TypeScript SDK for building, registering, and interfacing agents with the swarm
- LLM Router — Model-agnostic routing layer supporting OpenAI, Gemini, Anthropic, and sovereign models
- Audit Ledger — Immutable cryptographic log of all agent actions and policy decisions
- Auto-Documentation — Build-time pipeline generating compliance matrices from code annotations
- Evidence System — Chain-of-custody records for regulated AI workflows
- Diplomat — Enterprise adapters for external system integration (GitHub, Jira, Linear)
Evaluate for your environment
Legion ships with an implemented-vs-planned matrix for enterprise evaluations and audits. Start with one production workflow in Legion's control path. Once policy, routing, and audit are trusted there, the runtime becomes the standard lane for additional agents.
# Enterprise evaluation path
cd products/munx-legion
# Review implementation status
cat docs/platform/IMPLEMENTED_VS_PLANNED.md
# Explore the core architecture
cat docs/platform/SWARM_ARCHITECTURE.md
cat docs/platform/MODEL_AGNOSTIC_ROUTING.mdOperations and monitoring
Legion provides active telemetry and continuous compliance monitoring. All policy decisions are streamed to the Audit Ledger for SIEM integration and forensic analysis.
- Continuous monitoring with active telemetry and SIEM integration
- Independent auditor guide with test harnesses and synthetic policy violations
- Troubleshooting runbook for swarm desyncs and Control Tower lockouts
- SSO and access control with enterprise identity management
Internal Implementation Details
The following section contains restricted technical specifications, internal state machine diagrams, and low-level kernel integration details. Access is limited to L4 clearance.
Engineering Clearance
Deployment internals and security boundary specifications are restricted. Enter your clearance code to proceed.
Multinex Secure Gateway