# kimeisele/steward-protocol architecture

> Architecture diagram of the GitHub repository kimeisele/steward-protocol, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/kimeisele/steward-protocol
- Repository: https://github.com/kimeisele/steward-protocol

## Overview

STEWARD Protocol is an operating-system-style runtime for AI agents, centered on cryptographic identity, constitutional governance, isolation, and auditable execution. The documented path is operator intent into the kernel, then syscalls to the agent federation; Opus provides a human-approval workflow, while cognitive circuits and Shuddhi represent execution and code-remediation capabilities. The README supplies the kernel workflow and major guarantees; source-index references and excerpts support selected internal links. Other listed subsystems are shown without speculative wiring where their callers were not demonstrated.

Main entry points: [`vibe_core/kernel_impl.py`](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/kernel_impl.py) (VIBE kernel), [`vibe_core/plugins/opus_assistant/manas/action_manager.py`](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/plugins/opus_assistant/manas/action_manager.py) (Opus intent actions), [`vibe_core/cortex/engines/circuit_engine.py`](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cortex/engines/circuit_engine.py) (Cognitive circuits), [`vibe_core/event_bus.py`](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/event_bus.py) (Event bus)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Operator Interface"]
  node_cli["Steward CLI<br/>[main.py]"]
  node_opus["Opus intent actions<br/>[action_manager.py]"]
end

subgraph group_runtime["Kernel Runtime"]
  node_kernel["VIBE kernel<br/>[kernel_impl.py]"]
  node_syscalls["Semantic syscalls"]
  node_scheduler["Task management<br/>[task_manager.py]"]
  node_events["Event bus<br/>[event_bus.py]"]
end

subgraph group_trust["Trust and State"]
  node_ledger[("Immutable ledger<br/>[ledger.py]")]
  node_identity["Agent identity<br/>[identity.py]"]
  node_governance["Constitutional governance"]
  node_state["Runtime state<br/>[state_service.py]"]
end

subgraph group_agents["Agent Execution"]
  node_federation["Agent cartridges<br/>[registry.py]"]
  node_action_handlers["Envoy action handlers<br/>[action_handlers.py]"]
end

subgraph group_capabilities["Cognitive Services"]
  node_circuits["Cognitive circuits<br/>[circuit_engine.py]"]
  node_llm["LLM providers<br/>[llm_client.py]"]
  node_knowledge["Knowledge resolution<br/>[resolver.py]"]
  node_shuddhi["Code purification<br/>[engine.py]"]
  node_manifestation["Manifestation service"]
end

node_operator(("Human operator"))

node_operator -->|"provides intent"| node_kernel
node_cli -->|"boots and queries"| node_kernel
node_opus -->|"requests approval"| node_kernel
node_kernel -->|"dispatches syscalls"| node_federation
node_kernel -->|"schedules tasks"| node_scheduler
node_kernel -->|"records events"| node_ledger
node_kernel -->|"enforces constitution"| node_governance
node_kernel -->|"requires signed actions"| node_identity
node_kernel -->|"includes event bus"| node_events
node_circuits -->|"references kernel"| node_kernel
node_circuits -->|"emits events"| node_events
node_circuits -->|"references handlers"| node_action_handlers
node_circuits -->|"executes syscalls"| node_syscalls
node_opus -->|"uses state service"| node_state
node_opus -->|"emits completion events"| node_events
node_opus -->|"runs purification"| node_shuddhi
node_shuddhi -->|"records healed violations"| node_knowledge
node_scheduler -.->|"references ledger protection"| node_ledger

click node_cli "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cli/main.py"
click node_opus "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/plugins/opus_assistant/manas/action_manager.py"
click node_kernel "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/kernel_impl.py"
click node_syscalls "https://github.com/kimeisele/steward-protocol/tree/main/vibe_core"
click node_scheduler "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/task_management/task_manager.py"
click node_events "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/event_bus.py"
click node_ledger "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/ledger.py"
click node_identity "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/identity.py"
click node_governance "https://github.com/kimeisele/steward-protocol/tree/main/vibe_core/governance"
click node_state "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/state/state_service.py"
click node_federation "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cartridges/registry.py"
click node_action_handlers "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cartridges/system/envoy/action_handlers.py"
click node_circuits "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cortex/engines/circuit_engine.py"
click node_llm "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/runtime/llm_client.py"
click node_knowledge "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/knowledge/resolver.py"
click node_shuddhi "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/mahamantra/dharma/kumaras/engine.py"
click node_manifestation "https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/services/manifestation_service.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_cli,node_opus toneBlue
class node_kernel,node_syscalls,node_scheduler,node_events toneAmber
class node_ledger,node_identity,node_governance,node_state toneMint
class node_federation,node_action_handlers toneRose
class node_circuits,node_llm,node_knowledge,node_shuddhi,node_manifestation,node_operator toneIndigo
```

## Components

### Operator Interface

- [Steward CLI](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cli/main.py): `vibe_core/cli/main.py`
- [Opus intent actions](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/plugins/opus_assistant/manas/action_manager.py): `vibe_core/plugins/opus_assistant/manas/action_manager.py`

### Kernel Runtime

- [VIBE kernel](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/kernel_impl.py): `vibe_core/kernel_impl.py`
- [Semantic syscalls](https://github.com/kimeisele/steward-protocol/tree/main/vibe_core): `vibe_core`
- [Task management](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/task_management/task_manager.py): `vibe_core/task_management/task_manager.py`
- [Event bus](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/event_bus.py): `vibe_core/event_bus.py`

### Trust and State

- [Immutable ledger](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/ledger.py): `vibe_core/ledger.py`
- [Agent identity](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/identity.py): `vibe_core/identity.py`
- [Constitutional governance](https://github.com/kimeisele/steward-protocol/tree/main/vibe_core/governance): `vibe_core/governance`
- [Runtime state](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/state/state_service.py): `vibe_core/state/state_service.py`

### Agent Execution

- [Agent cartridges](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cartridges/registry.py): `vibe_core/cartridges/registry.py`
- [Envoy action handlers](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cartridges/system/envoy/action_handlers.py): `vibe_core/cartridges/system/envoy/action_handlers.py`

### Cognitive Services

- [Cognitive circuits](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/cortex/engines/circuit_engine.py): `vibe_core/cortex/engines/circuit_engine.py`
- [LLM providers](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/runtime/llm_client.py): `vibe_core/runtime/llm_client.py`
- [Knowledge resolution](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/knowledge/resolver.py): `vibe_core/knowledge/resolver.py`
- [Code purification](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/mahamantra/dharma/kumaras/engine.py): `vibe_core/mahamantra/dharma/kumaras/engine.py`
- [Manifestation service](https://github.com/kimeisele/steward-protocol/blob/main/vibe_core/services/manifestation_service.py): `vibe_core/services/manifestation_service.py`

### Other components

- **Human operator**

## Connections

- Human operator → VIBE kernel: provides intent (evidence: `README.md`)
- Steward CLI → VIBE kernel: boots and queries (evidence: `README.md`)
- Opus intent actions → VIBE kernel: requests approval (evidence: `README.md`)
- VIBE kernel → Agent cartridges: dispatches syscalls (evidence: `README.md`)
- VIBE kernel → Task management: schedules tasks (evidence: `README.md`)
- VIBE kernel → Immutable ledger: records events (evidence: `README.md`)
- VIBE kernel → Constitutional governance: enforces constitution (evidence: `README.md`)
- VIBE kernel → Agent identity: requires signed actions (evidence: `README.md`)
- VIBE kernel → Event bus: includes event bus (evidence: `README.md`)
- Cognitive circuits → VIBE kernel: references kernel (evidence: `vibe_core/cortex/engines/circuit_engine.py`)
- Cognitive circuits → Event bus: emits events (evidence: `vibe_core/cortex/engines/circuit_engine.py`)
- Cognitive circuits → Envoy action handlers: references handlers (evidence: `vibe_core/cortex/engines/circuit_engine.py`)
- Cognitive circuits → Semantic syscalls: executes syscalls (evidence: `vibe_core/cortex/engines/circuit_engine.py`)
- Opus intent actions → Runtime state: uses state service
- Opus intent actions → Event bus: emits completion events (evidence: `vibe_core/plugins/opus_assistant/manas/action_manager.py`)
- Opus intent actions → Code purification: runs purification (evidence: `vibe_core/plugins/opus_assistant/manas/action_manager.py`)
- Code purification → Knowledge resolution: records healed violations (evidence: `vibe_core/mahamantra/dharma/kumaras/engine.py`)
- Task management → Immutable ledger: references ledger protection
