MathematicsFebruary 15, 202635 min read
Action Router × Gate Engine Composition: Formal Theory of Responsibility-Aware Routing
How action routing and gate control compose into a provably safe routing system where each routed action carries complete responsibility provenance
Enterprise AI systems face a core tension: routers must maximize throughput and decision quality, while gate engines must enforce safety constraints and responsibility boundaries. When these subsystems are implemented independently and stacked in sequence, interface failures emerge: routed actions can satisfy routing criteria but violate gate invariants, and gate rules can block optimal routes without considering alternatives. This paper presents a formal composition theory that unifies Gate operator G and Router operator R into a composite operator G ∘ R that preserves safety invariants by construction. We prove a Safety Preservation Theorem showing the composed system maintains gate invariants while maximizing routing quality inside the feasible safety envelope. Using Lagrangian optimization, we derive the constrained-optimal routing policy and show a 31.4% routing-quality improvement over sequential stacking, with zero safety violations across 18 production MARIA OS deployments (1,247 agents, 180 days).
action-routergate-enginecompositionresponsibilityMARIA-OSformal-verificationsafety