Declare agent rules as code. Enforce every production action inside your own boundary.
OpenKedge is a policy-as-code and API authorization stack that lets AI-native infrastructure teams declare agent rules once and enforce single-use, state-checked approvals across production systems without handing standing credentials or execution control to external models.
Static IAM roles and prompt filters break down when autonomous agents act on stale cluster state, retry timed-out payments, or cross shared fleet limits together. OpenKedge builds sovereign AI infrastructure for verifiable execution by pairing KedgeSpec (Agent Control as Code compiled across harnesses, Cedar/OPA, and monitors) with KedgeFlow, a programmable execution-control plane backed by an open protocol and Rust reference gateway.
Agent Proposes Intent
Exact action, target, parameters, and justification submitted as a non-binding proposal.
Policy Check → Single-Use Action Grant
Evaluates active policy & fresh evidence. Authority is bound to this exact action and expires.
Guard Verified → Controlled Commit → Receipt
Gateway claims grant once, checks target state guard, executes, and reconciles outcomes.
How OpenKedge secures autonomous execution across models and APIs.
Declare and compile agent rules once with KedgeSpec
Write delegated mandates (MAY), hard boundaries (MUST / MUST NOT), preferences (SHOULD), and post-action obligations (AFTER ... MUST) in versioned source files. KedgeSpec compiles one specification across agent harnesses, native Cedar or OPA policy engines, execution gateways, and obligation monitors so teams enforce the same rules across LangGraph, MCP, and custom runtimes without rewriting approval logic in every app.
Sandbox agents and verify live state with KedgeFlow
Sandbox agent runtimes away from production keys and route protected writes through a separately administered gateway. KedgeFlow verifies the caller, target, exact arguments, fresh system state, and shared fleet capacity limits, then claims a short-lived grant once before forwarding the call. The gateway blocks altered parameters, replayed approvals, stale node drains, and unmediated writes.
Keep sovereign custody, audit trails, and timeout recovery in-house
Call hosted or local models for reasoning while keeping credentials, final approvals, and execution records inside infrastructure you administer. Record each proposed action, supporting check, approver identity, and signed target receipt so operators and regulators can audit every transition. When a target API times out, KedgeFlow keeps the original grant consumed, marks the outcome unknown, and verifies status with read-only lookups before anyone authorizes a new attempt.
Baseline: KedgeFlow's open protocol and reference gateway. Production enforcement depends on target integrations and routing every path that can make a protected change through the enforcement boundary. KedgeSpec is available as an Apache-2.0 prerelease compiler (0.9.0a2). KedgeFlow implementation status
Agents are becoming operators. Existing boundaries were not designed for that.
AI is transitioning from informational assistants that generate text to autonomous operators that invoke APIs, execute database transactions, reconfigure cloud infrastructure, and initiate financial flows.
Traditional Application Boundaries
Conventional software follows deterministic, audited code paths. Service identities are static, permissions are defined at deploy-time, and error handling assumes predictable call sequences.
- Explicit, pre-compiled call graphs
- Static IAM role assignments
- Audit logs record what executed, not epistemic intent
The Autonomous Agent Reality
Agents dynamically formulate novel action plans based on non-deterministic reasoning, incomplete tool observations, and rapidly decaying environmental evidence.
Compare a direct API call with an independently governed KedgeFlow admission path.
Scripted example · synthetic records · no live cloud changes
Direct Execution to Cloud API
The AI agent holds ambient API credentials. Without pre-execution policy checks or admission control, mutations reach infrastructure directly.
{ "eventName": "TerminateInstances", "userAgent": "ai-agent-role/bot-session", "instancesSet": 25 nodes, "currentState": "shutting-down", }
Pre-Execution Admission & Fencing
The AI agent proposes candidate intent. OpenKedge Cognitive Admission Control (CAC) evaluates policy and environmental evidence before any authority is issued.
{ "intent": "shut_down_cloud_capacity", "activeInstances": 25 nodes, "policyCheck": "Scope exceeds operator limit", }
KedgeFlow: The execution-control plane for consequential AI agents.
KedgeFlow is OpenKedge's flagship programmable agentic execution-control protocol and reference implementation. It establishes an enforceable boundary between stochastic intelligence and protected systems.
The Governed Execution Lifecycle
How KedgeFlow mediates action without surrendering authority
Exact Proposal
Captures the exact intended mutation, parameters, caller identity, and supporting evidence.
Admission Evaluation
Evaluates the proposal against institutional policy, freshness limits, and semantic judgments.
Bounded Grant
An independent authority issues single-use, action-specific permission with strict expiration.
Gateway Claim
Enforcement gateway verifies and claims authority atomically prior to target interaction.
Target State Guard
Validates the protected resource's current condition before executing the operation.
Mediated Execution
Executes exclusively through the governed path; standing credentials remain isolated.
Cryptographic Receipt
Records terminal outcome or preserves explicit uncertainty when confirmation times out.
Reconciliation
Query-only reconciliation recovers ambiguous states without dangerous automatic retries.
KedgeSpec: Declare once. Reason consistently. Enforce everywhere.
Agent Control as Code separates declarative governance from the planes that execute it, just as Infrastructure as Code separates intent from Terraform providers. Keep four distinct normative modalities intact while compiling one versioned specification across agent harnesses, native Cedar/OPA gateways, execution targets (including KedgeFlow), and obligation monitors.
Mandates
What an agent is empowered to do under scoped delegation (default deny otherwise).
Hard Policies
Non-compensable boundaries and shared invariants enforced at admission and commit.
Tenets
Contextual preferences guiding choice within delegated authority without causing discretion loss.
Obligations
Event-time post-commit duties separating actual fulfillment from telemetry delivery.
Sovereignty is not only where intelligence runs. It is who controls what intelligence can do.
Sovereign AI encompasses compute, data, identity, decision, execution, evidence, and experience. Execution control is the decisive runtime guarantee.
Compute & Model
“Where do models run?”
Control over hardware, accelerators, model weights, and private enclaves.
Data Custody
“Where does data live?”
Control over where institutional data is stored, disclosed, and retained.
Execution Sovereignty
“Who authorizes action?”
Control over which exact state-changing actions agents may perform at runtime.
Identity & Continuity
“What survives model migration?”
Control over persistent agent state, claims, commitments, and succession.
Decision & Policy
“Who sets governing rules?”
Control over declarative mandates, hard policies, preferences, and post-action obligations compiled across planes.
Evidence & Accountability
“What proves what occurred?”
Control over cryptographic audit chains, receipts, and ambiguous state reconciliation.
Experience & Practice
“What did practice prove?”
Control over which empirical lessons are trusted and incorporated into policies.
Your organization can use a hosted model while keeping production credentials, action approvals, and audit evidence under its own control. That's execution sovereignty, the part of sovereign AI infrastructure OpenKedge addresses with KedgeFlow.
The Core Sovereignty Argument: An institution can own its private cloud and foundation models, yet still surrender sovereignty if autonomous agents wield broad standing credentials or act on stale, unverified evidence. OpenKedge establishes the verifiable mechanisms required when intelligence becomes capable of altering the physical or digital world.
The research behind governed autonomy.
KedgeFlow's concrete execution boundary is backed by formal distributed systems theory, persistent identity research, and controlled empirical trials.
KedgeSpec
Declarative cross-plane governance
“How do teams declare agent rules once and enforce them everywhere?”
Declares delegated mandates (MAY), hard policies (MUST), preferences (SHOULD), and post-action obligations (AFTER...MUST) in versioned source, compiling them across harnesses, Cedar/OPA gateways, execution targets, and monitors.
PDDS
Correctness under nondeterministic reasoning
“When is an agent sufficiently justified in acting?”
A distributed-systems research paradigm modeling systems where probabilistic cognitive nodes propose actions against deterministic resources. Investigates Cognitive Admission Control (CAC), cognitive serializability (TCT), and epistemic fault domains.
PCI
Governed identity across agent lifecycles
“What can an agent legitimately retain across model changes?”
Investigates how persistent agents preserve accepted autobiographical memory, commitments, and provenance across model upgrades, without treating inherited memory as automatic execution authorization.
Hardknock
Empirical practice before operational trust
“What can an agent reliably learn in practice?”
An open-source developer project providing disposable rehearsal environments for agents to experience failures, compare outcomes, and generate candidate lessons for human review before operational trust.
A coherent research agenda for sovereign autonomous systems.
Test what agents learn. Govern what they retain. Verify what they propose. Control what they execute.
These four initiatives address distinct stages of the autonomous lifecycle without falsely claiming complete production integration today.
| Component & Mechanism | Program | Maturity Status | Verification & Evidence Scope |
|---|---|---|---|
| KedgeFlow v0.9 Reference Gateway | KedgeFlow | Implemented | Rust crate (kedgeflow) & kf-proxy gateway, KF-JSON-0.2 schemas, 52 Rust tests, real etcd races, MCP client integration. |
| KedgeSpec (Agent Control as Code) | KedgeSpec | Prototype evaluated | 0.9.0a2 prerelease (Apache-2.0): 6,144-state native Cedar + Z3 SMT checks, 11,114 distinct TLA+/TLC states, 4-process RPC (0 violations), and 720-episode LLM study (arXiv:2612.03493). |
| Cognitive Admission Control (CAC) | PDDS | Experimentally validated | 390 controlled trials with 120 completed effects; zero modeled harmful outcomes observed in evaluated testbed. |
| Cognitive Serializability (TCT) | PDDS | Experimentally validated | PostgreSQL benchmark across 28 concurrent histories; successfully rejected injected anomaly sequences. |
| Continuity Kernel Formal Model | PCI | Formally analyzed | 2,808,230 reachable states explored with zero invariant violations within bounded formal model specifications. |
| Hardknock Experience Engine | Hardknock | Implemented (Pre-alpha) | Open-source sandbox manager, failure logging, diff inspection, and trial runner for agent coding rehearsals. |
| Cross-Program Pipeline Integration | Architecture | Proposed integration | End-to-end orchestration connecting Hardknock lessons to PCI state and KedgeFlow admission is an architectural roadmap. |
Where autonomous intelligence meets consequential systems.
OpenKedge protocols are designed for environments where an erroneous mutation causes financial, operational, or physical harm.
Cloud & Infrastructure Operations
Autonomous node drain, replica termination, or routing reallocation.
Capacity, network topology, and dependencies drift between an agent's diagnosis and execution.
Cognitive Admission Control (CAC) evaluates freshness guards; KedgeFlow enforces single-use dispatch.
Enterprise Agent Execution
AI agents calling tools, MCP servers, and enterprise backends with admin keys.
Standing API credentials allow agents to change parameters, replay stale approvals, or bypass via shells.
Action-bound, single-use grants claimed once at the gateway; target credentials never exposed to agent.
Regulated & Financial Operations
Consequential payments, database transactions, ledger adjustments, or contract execution.
Network timeouts leave outcome unknown; retrying mutative actions risks duplicate transfers.
Conserved authority contracts, explicit unknown outcome state, and query-only reconciliation.
Sovereign & National Infrastructure
Multi-agency agent delegation across public services and critical national infrastructure.
Cross-organization delegation risks credential leakage and loss of jurisdictional policy authority.
Obfuscation membranes, federated institutional admission, and non-fungible proof-derived identities.
Inspect the architecture. Evaluate the evidence.
OpenKedge does not ask for blind trust. Inspect reference gateways, formal models, test fixtures, and arXiv preprints.
KedgeFlow Rust Gateway
kedgeflow crate & kf-proxy gateway implementing single-use claims, target guards, and MCP adapters.
KedgeSpec & Agent Control as Code
Four-modality specification, native Cedar/Z3 compiler, TLA+/TLC models, and CLI (arXiv:2612.03493).
25+ Published Preprints
Complete catalog of research preprints covering Agent Control as Code, PDDS, VAI, CAC, TCT, and SAL.
KedgeSpec Reference Repo
Open-source Apache-2.0 reference compiler, SPEC.md, portable conformance kits, and local SRE examples.
Executed Test Records
Rust verification record documenting 52 unit tests, concurrent etcd races, and official MCP client execution.
Interactive Demonstrations
Simulated scenario exploring how KedgeFlow prevents a cascaded cloud outage from an agent capacity change.
Compliance & Execution Security
Security, custody, and audit questions
Our incident-response agent reads tickets and logs that can contain untrusted instructions. How can it fix production issues without holding an admin credential that those instructions could trick it into using?
Let the agent propose a repair to a separately administered gateway that holds the production credentials. Require the gateway to evaluate the exact repair against policy. Keep credentials and direct write paths outside the agent's reach so its only route to a protected change goes through that check.
We want to use a hosted model for banking workflows. How do we keep production credentials and final approval for each action inside our own environment?
Keep policy evaluation, approval, and access to production credentials within infrastructure you administer. Send the hosted model only the data it is permitted to process. The model can propose an action for a local gateway to authorize and dispatch through a configured target integration.
CloudTrail shows which service account made a change. How do we give an auditor a tamper-evident record of the exact action proposed, the evidence used, who or what approved it, and what the target system confirmed?
Bind the proposed action and supporting evidence to the approval decision, including the identity of the approving person or service. Link that decision to the execution attempt and its signed outcome receipt. KedgeFlow's outcome contract preserves an explicit unknown status when the target cannot confirm what happened.
If an AI agent hands off a task to another agent, how do we make sure the second agent can act only within the permissions approved for that task?
Bind the delegated permission to the receiving agent and the original task. Limit it to the actions, resources, and time window allowed by the parent authorization. KedgeFlow specifies how the authority service checks these limits before issuing a delegated grant.
Baseline: KedgeFlow's open protocol and reference gateway. Production enforcement depends on target integrations and routing every path that can make a protected change through the enforcement boundary. KedgeFlow implementation status
The Agentic Control Plane
I write a bi-weekly technical newsletter on LinkedIn exploring the systems architecture, mathematical primitives, and control boundaries required for autonomous AI agents in production. Join systems architects, security leaders, and researchers following the series.
Why memory can persist while execution leases must expire and re-authenticate.
Binding authorization to the exact transition instead of generic API tokens.
Architectural breakdowns of Google Cloud ACE, ServiceNow Arc, NVIDIA, and AWS.
Handling ambiguity, timeouts, and Byzantine failure in non-deterministic fleets.
Why autonomous infrastructure must recheck execution authority and target state before a change, then verify what actually happened.
Why AI infrastructure must reason about capacity years before it becomes schedulable—translating long-horizon physical capacity into short-horizon compute.
A storytelling journey from meeting overload, syntax-perfect fog, workslop token burn, and the 6:1 judgment bottleneck to One Mind, Zero Translation Tax, and Day 0–2 Concerted Engineering.
Why long-running AI agents must preserve working state without inheriting stale permission to change production infrastructure.
Build autonomous systems without surrendering execution authority.
Explore how institution-controlled policies, evidence, identity, and execution boundaries can support your sovereign AI architecture.