# kasusathvikamary/intent-driven-autonomy architecture

> Architecture diagram of the GitHub repository kasusathvikamary/intent-driven-autonomy, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kasusathvikamary/intent-driven-autonomy
- Repository: https://github.com/kasusathvikamary/intent-driven-autonomy

## Overview

Intent-Driven Autonomy is a Python framework for compiling operational intents, monitoring KPI drift across dependent intents, and safely routing tasks to agents. The principal workflow accepts an intent, evaluates semantic, evidentiary, procedural, and institutional gaps, then returns a compiled configuration or rejection. Separately, KPI telemetry is monitored for drift and can be analyzed for causal relationships and predicted SLA breaches; delegation evaluates agent capability and safety envelopes before assignment or escalation. The README also describes a network-control-plane simulation. Some simulation and delegation links are based on README or SOURCE INDEX references; unsampled source was not inspected.

Main entry points: [`intent_compiler/compiler.py`](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/compiler.py) (Compiler), [`drift_engine/engine.py`](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/engine.py) (Drift Engine), [`delegation/delegator.py`](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/delegator.py) (Adaptive Delegator), [`simulation/simulator.py`](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/simulator.py) (Network Simulator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_compiler["Intent Compiler"]
  node_compiler_core["Compiler<br/>[compiler.py]"]
  node_semantic["Semantic Resolver"]
  node_evidence["Evidence Validator"]
  node_procedural["Procedural Validator"]
  node_institutional["Institutional Gate"]
  node_overclosure["Overclosure Detector"]
  node_compiler_models["Compilation Models<br/>[models.py]"]
end

subgraph group_drift["Drift Assurance"]
  node_drift_engine["Drift Engine<br/>[engine.py]"]
  node_kpi_monitor["KPI Monitor<br/>[kpi_monitor.py]"]
  node_detectors["Ensemble Detectors<br/>[drift_detector.py]"]
  node_drift_models["Drift Models<br/>[models.py]"]
  node_causal_analyzer["Causal Analyzer<br/>[causal_analyzer.py]"]
  node_granger["Granger Engine<br/>[granger_engine.py]"]
  node_sla_predictor["SLA Predictor<br/>[sla_predictor.py]"]
end

subgraph group_delegation["Agent Delegation"]
  node_delegator["Adaptive Delegator<br/>[delegator.py]"]
  node_capabilities["Capability Registry"]
  node_envelopes["Envelope Manager"]
  node_misdelegation["Misdelegation Detector"]
  node_escalation["Escalation Controller"]
  node_delegation_models["Delegation Models<br/>[models.py]"]
end

subgraph group_simulation["Network Simulation"]
  node_simulator["Network Simulator<br/>[simulator.py]"]
  node_network_intents["Network Intents<br/>[network_intents.py]"]
  node_fault_injector["Fault Injector<br/>[fault_injector.py]"]
  node_dashboard["Live Dashboard<br/>[dashboard.py]"]
end

node_operator(("Operator"))
node_intent["Raw Intent"]
node_compiled_result["Compiled Result"]
node_telemetry(("KPI Telemetry"))
node_human(("Human Operator"))

node_operator -->|"submits"| node_intent
node_intent -->|"compiles"| node_compiler_core
node_compiler_core -->|"resolves"| node_semantic
node_compiler_core -->|"validates evidence"| node_evidence
node_compiler_core -->|"validates procedure"| node_procedural
node_compiler_core -->|"checks authority"| node_institutional
node_compiler_core -->|"checks overclosure"| node_overclosure
node_compiler_core -->|"returns result"| node_compiled_result
node_telemetry -->|"feeds KPIs"| node_drift_engine
node_drift_engine -->|"updates"| node_kpi_monitor
node_drift_engine -->|"tests for drift"| node_detectors
node_drift_engine -->|"analyzes causes"| node_causal_analyzer
node_drift_engine -->|"predicts breaches"| node_sla_predictor
node_causal_analyzer -->|"tests causality"| node_granger
node_drift_engine -->|"uses"| node_drift_models
node_operator -->|"requests delegation"| node_delegator
node_delegator -->|"checks capability"| node_capabilities
node_delegator -->|"checks envelope"| node_envelopes
node_delegator -->|"checks assignment"| node_misdelegation
node_delegator -->|"routes escalation"| node_escalation
node_envelopes -->|"uses agent bounds"| node_delegation_models
node_escalation -.->|"escalates to"| node_human
node_delegator -->|"uses"| node_delegation_models
node_simulator -->|"loads"| node_network_intents
node_simulator -->|"uses"| node_fault_injector
node_simulator -.->|"feeds dashboard"| node_dashboard

click node_compiler_core "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/compiler.py"
click node_semantic "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/semantic_resolver.py"
click node_evidence "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/evidentiary_validator.py"
click node_procedural "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/procedural_validator.py"
click node_institutional "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/institutional_gate.py"
click node_overclosure "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/overclosure_detector.py"
click node_compiler_models "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/models.py"
click node_drift_engine "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/engine.py"
click node_kpi_monitor "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/kpi_monitor.py"
click node_detectors "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/drift_detector.py"
click node_drift_models "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/models.py"
click node_causal_analyzer "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/causal_analyzer.py"
click node_granger "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/granger_engine.py"
click node_sla_predictor "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/sla_predictor.py"
click node_delegator "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/delegator.py"
click node_capabilities "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/capability_registry.py"
click node_envelopes "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/envelope_manager.py"
click node_misdelegation "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/misdelegation_detector.py"
click node_escalation "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/escalation_controller.py"
click node_delegation_models "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/models.py"
click node_simulator "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/simulator.py"
click node_network_intents "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/network_intents.py"
click node_fault_injector "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/fault_injector.py"
click node_dashboard "https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/dashboard.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_compiler_core,node_semantic,node_evidence,node_procedural,node_institutional,node_overclosure,node_compiler_models toneBlue
class node_drift_engine,node_kpi_monitor,node_detectors,node_drift_models,node_causal_analyzer,node_granger,node_sla_predictor toneAmber
class node_delegator,node_capabilities,node_envelopes,node_misdelegation,node_escalation,node_delegation_models toneMint
class node_simulator,node_network_intents,node_fault_injector,node_dashboard toneRose
class node_operator,node_intent,node_compiled_result,node_telemetry,node_human toneIndigo
```

## Components

### Intent Compiler

- [Compiler](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/compiler.py): `intent_compiler/compiler.py`
- [Semantic Resolver](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/semantic_resolver.py): `intent_compiler/semantic_resolver.py`
- [Evidence Validator](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/evidentiary_validator.py): `intent_compiler/evidentiary_validator.py`
- [Procedural Validator](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/procedural_validator.py): `intent_compiler/procedural_validator.py`
- [Institutional Gate](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/institutional_gate.py): `intent_compiler/institutional_gate.py`
- [Overclosure Detector](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/overclosure_detector.py): `intent_compiler/overclosure_detector.py`
- [Compilation Models](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/intent_compiler/models.py): `intent_compiler/models.py`

### Drift Assurance

- [Drift Engine](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/engine.py): `drift_engine/engine.py`
- [KPI Monitor](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/kpi_monitor.py): `drift_engine/kpi_monitor.py`
- [Ensemble Detectors](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/drift_detector.py): `drift_engine/drift_detector.py`
- [Drift Models](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/models.py): `drift_engine/models.py`
- [Causal Analyzer](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/causal_analyzer.py): `drift_engine/causal_analyzer.py`
- [Granger Engine](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/granger_engine.py): `drift_engine/granger_engine.py`
- [SLA Predictor](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/drift_engine/sla_predictor.py): `drift_engine/sla_predictor.py`

### Agent Delegation

- [Adaptive Delegator](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/delegator.py): `delegation/delegator.py`
- [Capability Registry](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/capability_registry.py): `delegation/capability_registry.py`
- [Envelope Manager](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/envelope_manager.py): `delegation/envelope_manager.py`
- [Misdelegation Detector](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/misdelegation_detector.py): `delegation/misdelegation_detector.py`
- [Escalation Controller](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/escalation_controller.py): `delegation/escalation_controller.py`
- [Delegation Models](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/delegation/models.py): `delegation/models.py`

### Network Simulation

- [Network Simulator](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/simulator.py): `simulation/simulator.py`
- [Network Intents](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/network_intents.py): `simulation/network_intents.py`
- [Fault Injector](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/fault_injector.py): `simulation/fault_injector.py`
- [Live Dashboard](https://github.com/kasusathvikamary/intent-driven-autonomy/blob/main/simulation/dashboard.py): `simulation/dashboard.py`

### Other components

- **Operator**
- **Raw Intent**
- **Compiled Result**
- **KPI Telemetry**
- **Human Operator**

## Connections

- Operator → Raw Intent: submits (evidence: `README.md`)
- Raw Intent → Compiler: compiles (evidence: `README.md`)
- Compiler → Semantic Resolver: resolves (evidence: `intent_compiler/compiler.py`)
- Compiler → Evidence Validator: validates evidence (evidence: `intent_compiler/compiler.py`)
- Compiler → Procedural Validator: validates procedure (evidence: `intent_compiler/compiler.py`)
- Compiler → Institutional Gate: checks authority (evidence: `intent_compiler/compiler.py`)
- Compiler → Overclosure Detector: checks overclosure (evidence: `intent_compiler/compiler.py`)
- Compiler → Compiled Result: returns result (evidence: `intent_compiler/compiler.py`)
- KPI Telemetry → Drift Engine: feeds KPIs (evidence: `README.md`)
- Drift Engine → KPI Monitor: updates (evidence: `drift_engine/engine.py`)
- Drift Engine → Ensemble Detectors: tests for drift (evidence: `drift_engine/engine.py`)
- Drift Engine → Causal Analyzer: analyzes causes (evidence: `drift_engine/engine.py`)
- Drift Engine → SLA Predictor: predicts breaches (evidence: `drift_engine/engine.py`)
- Causal Analyzer → Granger Engine: tests causality (evidence: `drift_engine/causal_analyzer.py`)
- Drift Engine → Drift Models: uses (evidence: `drift_engine/engine.py`)
- Operator → Adaptive Delegator: requests delegation (evidence: `README.md`)
- Adaptive Delegator → Capability Registry: checks capability (evidence: `delegation/delegator.py`)
- Adaptive Delegator → Envelope Manager: checks envelope (evidence: `delegation/delegator.py`)
- Adaptive Delegator → Misdelegation Detector: checks assignment (evidence: `delegation/delegator.py`)
- Adaptive Delegator → Escalation Controller: routes escalation (evidence: `delegation/delegator.py`)
- Envelope Manager → Delegation Models: uses agent bounds (evidence: `delegation/envelope_manager.py`)
- Escalation Controller → Human Operator: escalates to (evidence: `README.md`)
- Adaptive Delegator → Delegation Models: uses (evidence: `delegation/delegator.py`)
- Network Simulator → Network Intents: loads (evidence: `simulation/simulator.py`)
- Network Simulator → Fault Injector: uses (evidence: `simulation/simulator.py`)
- Network Simulator → Live Dashboard: feeds dashboard
