21. Argus AI: TML Rogue Agent Detection & Circuit Breaker

21.1. Technical Specification & Architecture Documentation

21.1.1. Executive Summary

Argus AI is a real-time autonomous safety and risk-monitoring engine built on the Transactional Machine Learning (TML) framework. Designed for autonomous LLMs, Multi-Agent Systems (MAS), and agentic workflows, Argus AI monitors streaming operational telemetry to detect Rogue Agents—such as infinite tool-use loops, unexpected prompt-injection behavior, resource exhaustion spikes, rapid unauthorized parameter updates, and structural workflow drift—before operational, financial, or security incidents occur.

By leveraging distributed streaming backbones (Apache Kafka / Redpanda), sliding-window statistical metric producers (Shannon Entropy, Markov State Transitions, Jaccard Distance), real-time AutoML anomaly scoring, and dynamic Circuit Breakers / Kill Switches, Argus AI provides sub-second threat mitigation for enterprise AI governance.

21.1.2. Argus AI Dashboard

Below is the real-time Argus AI dashboard for Rogue Agent detection.

_images/argusdash.png

21.1.3. System Architecture & Data Flow

Below figure shows the process flow of Argus AI:

_images/argusai.png

21.1.4. Technical Specifications & Thresholds

System Parameters

Parameter

Default Setting

Operational Description

Streaming Backbone

Apache Kafka / Redpanda

Event ingestion bus for high-throughput operational traces

Sliding Window (N)

50 agent turns

Sample window size used to maintain baseline statistics (\(\mu, \sigma\))

Warmup Buffer (:math:`N_{text{min}}`)

10 observations

Minimum baseline samples required before enforcing kill switch

Anomaly Threshold (:math:`Z_{text{max}}`)

3.0

Standard deviation offset threshold for triggering termination

Stability Constant (:math:`epsilon`)

\(10^{-6}\)

Small constant added to standard deviation to avoid zero-division

Interception Point

Pre-execution gate

Evaluates step parameters before side effects reach external systems

21.1.5. Core Detection Metrics

Mathematical Detection Metrics

Metric

Mathematical Formula

Threat Vector Targeted

Shannon Entropy (H)

\(H(X) = -\sum_{i=1}^{n} P(x_i) \log_2 P(x_i)\)

Uncontrolled generation randomness, hallucination loops, prompt degradation

Markov State Probability

\(P(S_t \mid S_{t-1}) = \frac{\text{count}(S_{t-1} \to S_t)}{\text{count}(S_{t-1})}\)

Structural execution drift (e.g., READ_DB \(\to\) EXEC_SHELL \(\to\) EXEC_SHELL)

Token & Action Density

\(\text{Density} = \frac{\text{Total Tokens / Actions}}{\Delta t}\)

Resource exhaustion, rapid parameter manipulation, runaway retry loops

Jaccard Distance

\(J(A, B) = 1 - \frac{|A \cap B|}{|A \cup B|}\)

Sudden behavioral departure from established tool usage baselines

21.1.6. Competitive Analysis & Feature Matrix

Platform Comparison

Feature Dimension

Commercial SaaS Tools (e.g., MS Agent 365)

Argus AI (TML Framework)

Primary Focus

Identity, access control, DLP, and fleet inventory management

Sub-second algorithmic anomaly detection & execution control

Detection Engine

Static rules, regex, sensitivity labels, RBAC roles

Rolling \(Z\)-score, Shannon entropy, Markov state transitions

Kill Switch Mechanism

Administrative override, compliance policy flag, manual block

Automatic runtime exception (\(|Z| > Z_{\text{max}}\)) raised in code loop

Data Evaluated

Enterprise content, email headers, documents, API scopes

Raw transaction streams, prompt tokens, latencies, tool calls

System Placement

API Gateways, Cloud Portals, Entra ID / Purview agents

Event streaming bus (Kafka / Redpanda), embedded runtime sidecar

21.1.7. Cost-Benefit Trade-Offs

Tool Trade-Off Analysis

Tool Category

Key Benefits

Key Costs & Drawbacks

Commercial SaaS (e.g., MS Agent 365)

• Turnkey integration with enterprise SSO/Entra ID
• Centralized fleet inventory and audit portals
• Out-of-the-box compliance and e-discovery reporting
• High recurring enterprise license costs
• Reactive detection (evaluates post-generation)
• Lacks streaming mathematical anomaly metrics

Argus AI (TML Engine)

• Mathematical precision via dynamic baseline (\(\mu, \sigma\))
• Sub-second pre-execution interruption
• Self-hosted; zero vendor lock-in or per-agent SaaS fee
• Requires developer integration into agent code loops
• Demands streaming infrastructure (Kafka/Redpanda)
• Requires initial warmup period (\(N_{\text{min}}\)) to set baseline

21.1.8. Operational Verification & Deployment Plan

  1. Sidecar Integration: Deploy Argus AI alongside agent orchestration runtimes (e.g., LangGraph, AutoGen, or custom Go/Python agent loops).

  2. SIEM / OTLP Alerting: Route argus-alerts-output streams into enterprise security monitoring pipelines to audit agent memory state dumps upon termination.

  3. Automated Verification: Run integration tests that inject synthetic volume spikes or infinite tool retries to ensure the engine raises a critical runtime exception and halts execution prior to external API dispatch.