Use this file to discover all available pages before exploring further.
This specification defines the execution control model for the Agent Hypervisor — the component that provides hardware-inspired execution isolation for AI agents. Just as an OS kernel uses privilege rings to separate user processes from kernel operations, the Agent Hypervisor assigns agents to execution rings based on their trust scores and enforces resource boundaries at each ring level. All SDK implementations MUST conform to this specification. The key words are interpreted as described in RFC 2119.
The hypervisor MUST implement exactly four execution rings:
Ring
Value
Name
Description
Ring 0
0
Root
Hypervisor configuration and penalty. System-only.
Ring 1
1
Privileged
Non-reversible actions with full resource access.
Ring 2
2
Standard
Reversible actions with scoped resource access.
Ring 3
3
Sandbox
Read-only actions with minimal resource access. Default.
Ring ordering: Lower value = higher privilege. Ring A is more privileged than Ring B if A.value < B.value. Agents without a computed ring assignment MUST be assigned Ring 3 (Sandbox).
An agent SHOULD be demoted when their effective score drops below the threshold for their current ring. The should_demote() check MUST compare the agent’s current ring against the ring that would be computed from their current score.
The required ring for an action MUST be computed as:
if is_admin: → Ring 0 (Root)elif reversibility == NONE and not is_read_only: → Ring 1 (Privileged)elif is_read_only: → Ring 3 (Sandbox)else: → Ring 2 (Standard)
The ring enforcer MUST perform the following checks in order:
Ring 0 denial: If the action requires Ring 0, the check MUST deny access with requires_sre_witness = true. Ring 0 actions are never available to agents through the standard API.
Ring comparison: If agent_ring.value > required_ring.value (agent has less privilege than required), the check MUST deny access.
Grant: If neither condition above applies, access MUST be granted.
Elevation to Ring 0 MUST always be denied via the standard API (reason: "ring_0_forbidden").
Elevation to Ring 1 requires trust_score >= 0.85 AND has_consensus == true.
Elevation durations MUST be time-bounded. The default maximum elevation duration is 3600 seconds.
Elevations MUST expire automatically. The tick() function MUST be called periodically to expire stale elevations.
Given: agent at Ring 2, requests Ring 1, trust_score=0.60Result: DENIED, reason="insufficient_trust" (Ring 1 requires ≥ 0.85)Given: agent at Ring 2, requests Ring 0Result: DENIED, reason="ring_0_forbidden"
Rate limiting uses a token bucket algorithm scaled by ring.
Ring
Refill Rate
Burst Capacity
Ring 0
Unlimited
Unlimited
Ring 1
50.0 req/s
100.0
Ring 2
20.0 req/s
40.0
Ring 3
5.0 req/s
10.0
When the token bucket is exhausted, the implementation MUST raise RateLimitExceeded. The maximum bucket count MUST be enforced to prevent memory exhaustion from many agent identifiers.
When a step fails after exhausting retries, the saga orchestrator MUST execute compensation (undo) for all previously completed steps in reverse order. If compensation itself fails, the saga MUST transition to Escalated and record which compensation steps failed.
Kill switch results MUST be recorded even when callback execution fails. The kill switch MUST NOT raise an exception that prevents the audit record from being written.
Filesystem-level isolation MUST be fail-closed. Path checks MUST resolve to canonical paths before comparison. Path traversal (.. components) MUST be rejected. If a cross-session access request cannot be validated, it MUST be denied.
Implement exactly four execution rings (0–3) with correct ordering.
Deny Ring 0 to agents via standard enforcement.
Implement score-based ring assignment following threshold rules.
Derive action required-ring following the classification rules.
Enforce ring checks fail-closed on all failures.
Enforce resource constraints per the ring-to-constraint mapping.
Implement time-bounded privilege elevation.
Forbid Ring 0 elevation via the standard API.
Implement token bucket rate limiting with per-ring limits.
Validate session configurations.
Enforce session isolation fail-closed.
Record kill switch results even on callback failure.
Maintain an append-only SHA-256 hash chain for audit.
Validate identifiers against the allowed pattern.
Conformance tests MUST cover: ring assignment from trust scores; action classification to required rings; ring enforcement allow/deny decisions; resource constraint enforcement; elevation approval and denial; rate limiter token consumption and exhaustion; session configuration validation; session isolation path checks; kill switch operation and failure modes; and audit hash chain construction and verification.