Governance

Dharma. Karma. Harmony.

Every tool call passes through an 8-stage pipeline. Every side effect is hash-chained to a Karma ledger. Every policy is YAML-driven and hot-reloadable. Consent is the default.

8-Stage Dispatch Pipeline

Every single tool call — all 860 of them — passes through these 8 stages. No shortcuts, no bypasses.

1

Input Sanitizer

Strip injection attempts, validate schemas, normalize encoding

2

Circuit Breaker

Track failure rates, open on threshold, auto-recovery

3

Rate Limiter

Token bucket per tool, per user, per session

4

RBAC

Role-based access control with permission profiles

5

Maturity Gate

Check agent maturity stage before allowing advanced operations

6

Governor

Dharma rules evaluation — LOG, TAG, WARN, THROTTLE, BLOCK

7

Handler

Execute the tool with sanitized, authorized, governed input

8

Compact Response

Envelope the result, record to Karma ledger, emit telemetry

Dharma Rules Engine

YAML-driven policy with graduated actions. Hot-reloadable — update rules without restarting the server.

LOG

Record the call, take no action. Default for all operations.

TAG

Annotate the memory with a governance tag for future reference.

WARN

Emit a warning to the agent and the audit log.

THROTTLE

Reduce the agent's rate limit for this tool.

BLOCK

Refuse the call entirely. Record to Karma ledger as a violation.

Karma Ledger

Every tool call's side effects are recorded in an append-only, hash-chained ledger. Each entry links to the previous one via SHA-256, creating a tamper-evident audit trail.

{
  "entry_id": 4207,
  "timestamp": "2026-07-03T20:34:27.141Z",
  "tool": "create_memory",
  "action": "LOG",
  "hash": "sha256(prev_hash + entry_data)",
  "prev_hash": "a1b2c3...",
  "agent_id": "aria",
  "dharma_profile": "standard"
}

Harmony Vector

7-dimension health metric that tracks system balance:

  • Safety — no blocked calls, no violations
  • Performance — latency within bounds
  • Coherence — memory consistency across galaxies
  • Coverage — tool surface utilization
  • Calibration — prediction accuracy
  • Maturity — agent development stage
  • Consent — all operations authorized

Explore the governance code

Dharma rules, Karma ledger, and the full 8-stage pipeline are all in the open-source repo.

Browse governance source →