Skip to content

Agent Control as Code: A Declarative Specification for Cross-Plane Agent Governance

Jun He, Deying Yu

cs.AI

Abstract

Autonomous AI systems often scatter operational rules across reasoning harnesses, authorization gateways, coordination services, and execution targets. This normative fragmentation breaks cross-plane alignment, causing authority drift (admitting unauthorized actions) or discretion loss (blocking delegated ones). We introduce Agent Control as Code (ACaC), an implementation-independent contract over four primitives N=(H,M,T,O)N = (H, M, T, O): hard policies, mandates, defeasible tenets, and post-action obligations. ACaC unifies partial-observability correctness, compositional coverage, and scoped reasoning reuse with AST-derived contrastive refusals; under stated assumptions, we prove commitment-boundary coverage, draining safety, unified mode-indexed global safety, and conditional behavioral autonomy-loss reduction under preflight envelopes. Against independent oracles, native Cedar evaluation matches across 6,144 bounded states (5/5 defects caught; corroborated per policy via Z3 SMT), Python and TLA+/TLC model checking verify revocation, split-store recovery, draining, and global composition with zero violations (11,114 distinct TLC states; 9/9 Python and 5/5 TLC mutants caught), and four-process loopback execution records zero safety violations. In a live LLM study replayed from retained logs, prose-only rules triggered unnecessary escalations (19/25 on GPT-5.6, 6/25 on claude-fable-5), structured preflight eliminated them (0/25), and cumulative feedback reached 60/60 authorized resolutions versus 11/60 for the baseline (10/59 excluding one outlier).

Create a lesson

Metadata

Categories
cs.AI, cs.MA, cs.SE
Comments
24 pages (19 pages main text and references, 5 pages appendices), 4 figures, 16 tables. Reference implementation and verification artifacts: https://github.com/openkedge/kedgespec