ARF enforces declarative TOML governance rules at the proxy layer before any message reaches the model and before any response reaches the agent. Circuit breakers trip automatically. Health grades track agent behavior over time. You write the rules once; ARF enforces them forever.
ARF policy files are plain TOML. Every rule is readable by a human, auditable by a machine, and version-controlled like any other infrastructure config. No opaque binary formats, no vendor-locked policy languages, no click-ops.
Rules express what agents are allowed to do, what they're forbidden from doing, and what requires human approval before proceeding. Governance isn't applied post-hoc it's enforced live, in the request path, before the model generates a response.
The Authority Reference Framework evaluates every inbound prompt and outbound completion against your policy DAG. The evaluation is streaming-aware: ARF reads completion chunks as they arrive and can trip a circuit breaker mid-stream if content violates policy.
Maximum oversight. Every tool call requires explicit approval. Token budgets are tight. Circuit breakers are hair-trigger. For production systems, regulated environments, or any context where an agent mistake is costly.
Balanced oversight for everyday development. File reads auto-approve. Writes and network calls require approval. 100k token budget. Recommended for most teams starting with governed agent development.
Light governance for trusted, local-only workflows. Audit and signing still active you still get a full proof record but approvals are minimal and budgets are relaxed. For personal workstations and experimentation.
ARF's circuit breaker model is borrowed from distributed systems engineering: when an agent starts failing, starts violating policy, or goes silent for too long, the breaker trips and further requests are blocked until the condition clears.
Circuit breakers have three states: Closed (normal operation), Open (blocked, cooling down), and Half-Open (probing to see if recovery is possible). Transitions are configurable per profile.
The dead man's switch is a special circuit breaker: if no human interaction is detected within a configurable window, the breaker trips automatically. Useful for long-running autonomous sessions where you want a guaranteed check-in.
┌─────────────────────────────────────┐
│ │
▼ │ success
┌──────────┐ failure_count ≥ N ┌───────────┐
│ CLOSED │ ─────────────────────▶│ OPEN │
│ normal │ │ blocked │
└──────────┘ └───────────┘
▲ │
│ │ cooldown elapsed
│ ┌──────────────┐
│ success │ HALF-OPEN │
└─────────────────────────────│ probing │
└──────────────┘
│
│ failure
▼
┌──────────┐
│ OPEN │
│ reset ↺ │
└──────────┘
Events that trip a breaker:
✗ error_rate > threshold
✗ consecutive_failures ≥ N
✗ policy_violation (content, cost)
✗ idle > dead_man_switch_seconds
✗ manual trip via TUI / CLI
Error rate <2%. All policy checks passing. Token usage within budget. No manual interventions required.
Error rate 2–8%. Minor policy flags. Token usage slightly elevated. Occasional circuit breaker trips.
Error rate 8–15%. Moderate policy violations. Budget warnings active. Review recommended.
Error rate >15% or budget exceeded. Repeated policy violations. Circuit breakers tripped. Session requires human review.
Health grades are computed per-session and per-agent over a rolling window. They feed back into the governance profile: a session that drops below its configured health_grade_floor in the policy will have its circuit breakers armed for earlier trips. Set health_grade_floor = "C" and any session that reaches D will immediately open the breaker.
ARF's TOML policy language is designed for composability. Export and import rules in OPA Rego, YAML-based policy formats, and JSON Schema. Governance engineers who know Rego can write ARF rules from day one.
Import existing OPA Rego policies as ARF rule modules. The ARF compiler translates Rego allow/deny rules into ARF's streaming evaluation pipeline. Your existing compliance library works out of the box.
Integration docs →Define message shape constraints using JSON Schema. ARF validates inbound and outbound message payloads against your schema definitions and blocks malformed or unexpected structures.
Schema validation →