ArchitectureFebruary 15, 202642 min read

Doctor Architecture: Anomaly Detection as Enterprise Metacognition in MARIA OS

Dual-model anomaly detection, threshold engineering, gate integration, and real-time stability monitoring for autonomous agent systems

The Doctor system in MARIA OS implements organizational metacognition through dual-model anomaly detection, combining Isolation Forest for structural outlier detection and an Autoencoder for continuous deviation measurement. We detail the combined score A_combined = alpha * s(x) + (1 - alpha) * sigma(epsilon(x)), threshold design (soft throttle at 0.85, hard freeze at 0.92), and Gate Engine integration for dynamic governance control. We also define a stability guard that monitors exact loop gain g_t = (1 - D_t) lambda_max(A_t) together with the conservative buffer delta_buffer,t = 1 - D_t - lambda_max(A_t) in real time. Operational results show F1 = 0.94, mean detection latency of 2.3 decision cycles, and 99.7% prevention of cascading failures.

doctoranomaly-detectionisolation-forestautoencodermetacognitionsafetygate-engineMARIA-OSstability-guardthreshold-engineering
ArchitectureFebruary 14, 202635 min read

The Algorithm Stack for Agentic Organizations: 10 Essential Algorithms Mapped to a 7-Layer Architecture

Beyond generative AI: a practical computational substrate for self-governing enterprises

An agentic company is not built on generative AI alone. We present 10 core algorithms across language, tabular prediction, state-transition control, graph structure, and anomaly detection, organized into a 7-layer architecture for enterprise governance workloads.

algorithm-stacktransformergradient-boostingrandom-forestMDPactor-criticmulti-armed-banditGNNPCAclustering
Safety & GovernanceFebruary 14, 202636 min read

Anomaly Detection for Agentic System Safety and Deviation Control

Isolation Forest and Autoencoder reconstruction error as the computational safety layer for self-governing enterprises

Agentic systems can produce operational deviations that require early detection and controlled response. This paper combines Isolation Forest anomaly scoring with Autoencoder reconstruction error to build a layered safety monitor. We define an anomaly-throttle-freeze response cascade and show how the MARIA OS stability guard applies the spectral-radius condition `spectral_radius < 1 - governance_density` in runtime governance.

anomaly-detectionisolation-forestautoencoderdeviation-monitoringrunaway-agentfraud-detectionsafety-layerreconstruction-erroragentic-companyMARIA OS