A runtime control plane for AI agents that take real actions.
This is the reference control plane for the ACR Framework: a governance gateway that sits between autonomous agents and the systems they want to touch.
If agents are going to reach customer data, ticketing systems, production infrastructure, payment flows, or regulated workflows, then logs and prompt rules are not enough. You need a real enforcement point on the execution path.
This repo is that reference implementation.
pip install acr-control-plane from acr.sdk import ACRClient, guard_tool from acr.pillar1_identity.models import AgentRegisterRequest client = ACRClient(base_url="http://localhost:8000", operator_api_key="dev-operator-key") client.ensure_agent_registered(AgentRegisterRequest( agent_id="support-bot", owner="support@example.com", purpose="Handle governed support actions", allowed_tools=["refund_customer"], forbidden_tools=["delete_customer"], )) session = client.issue_agent_session("support-bot") def refund_customer(customer_id: str, amount_usd: float) -> str: """Issue a refund to a customer.""" return f"refunded ${amount_usd} to {customer_id}" # Wrap any function: ACR authorizes it BEFORE it executes. refund_customer = guard_tool(refund_customer, session=session) refund_customer("cus_123", 25.00) # allowed: runs, logged, attributed guard_tool wraps any Python function so ACR authorizes it before it executes. Denied actions raise ACRDeniedError and never run. Escalations return a 202 approval request instead of executing. Every decision lands in the evidence log with a correlation ID.
Async tools: guard_async_tool. LangChain/LangGraph: build_langchain_tool. No gateway on your laptop yet? Try the no-Docker quickstart to run this exact pattern against a mocked gateway in 60 seconds, or run the full control plane with Docker Compose.
Most agent stacks are optimized for capability:
Most are not optimized for control.
The ACR Control Plane closes that gap with:
Every agent action request flows through a governed decision pipeline before it is allowed, denied, or escalated.
Agent Runtime | v ACR Gateway | +--> Identity and purpose binding +--> Behavioral policy enforcement +--> Output controls +--> Telemetry and evidence +--> Drift detection +--> Human approval +--> Kill switch containment | v Allowed enterprise action This gives you a hard boundary between:
The repo now demonstrates four proof points that matter to real adopters:
Most "agent governance" products stop at dashboards, evals, or prompt wrappers.
This project is opinionated in a more operational way:
The included sample agent shows the control plane denying unsafe actions and escalating high-risk ones.
There is now an official SDK and adapter guide covering:
There is also a runnable protected executor example that verifies both X-ACR-Execution-Token and X-ACR-Brokered-Credential, so downstream services can reject direct-bypass requests that were not explicitly authorized by the gateway.
For OpenAI Agents SDK integrations, see the OpenAI Agents SDK guard example guide for mock-backed guarded calls, real SDK tool dispatch without a model, and an opt-in disposable local-gateway path.
For Microsoft AutoGen function tools, see the AutoGen guard example for a mock-backed guard_tool integration.
For CrewAI, guard_crewai_tool / guard_crewai_tools (in acr.sdk.crewai) guard existing @tool objects in one line per tool; see the CrewAI guard example.
For workflow builders and orchestration tools, there is now an explicit orchestrator integration guide plus an n8n reference example showing how to put ACR underneath the workflow layer instead of relying on optional user behavior.
Run from implementations/acr-control-plane/ in a Git checkout. Docker Compose v2 is required. The following credentials are for an isolated local demo only.
cp .env.example .env export OPERATOR_API_KEYS_JSON='{"dev-operator-key":{"subject":"dev-operator","roles":["agent_admin","approver","security_admin","auditor","killswitch_operator"]}}' export SERVICE_OPERATOR_API_KEY=dev-operator-key docker compose up --build Services:
curl http://localhost:8000/acr/health Expected:
{"status":"healthy","version":"1.1.0","env":"development"} The health response version is configured runtime metadata (settings.acr_version), not the installed package version or a conformance declaration. The ordinary Compose image currently defaults to 1.1.0; package releases are tracked separately.
Visit http://localhost:8000/console
In a second terminal, change to implementations/acr-control-plane/. Use Python 3.11 or 3.12 and install the package so the sample can import acr.sdk:
python -m venv .venv source .venv/bin/activate python -m pip install -e . export ACR_OPERATOR_API_KEY=dev-operator-key python examples/sample_agent/agent.py See the sample agent README for the full setup and Windows activation command.
These are diagnostic checks for the documented local Compose path, not a claim that every host setup was tested. Use only an isolated development stack; do not delete shared volumes or stop unrelated services.
The disposable full-stack CI run validates its own fixture/override setup. A separate fresh-runner check follows the ordinary README path; see the newcomer validation record for the successful run, original failures and host/browser limitations.
See the captured evidence walkthrough for real synthetic allow/deny responses, observed tool effects, and the limits of the captured audit chain.
Full API docs live in docs/api.md. Operational adoption guidance for workflow tools lives in docs/orchestrators.md.
This repo is designed around the assumption that agent systems eventually become high-impact systems.
That shows up in the implementation:
The next hardening steps are tracked in docs/enterprise-roadmap.md.
Agent Runtime | | POST /acr/evaluate v ACR Control Plane | +--> Pillar 1: Identity +--> Pillar 2: Policy +--> Pillar 3: Drift +--> Pillar 4: Observability +--> Pillar 5: Containment +--> Pillar 6: Authority | v Enterprise tools, APIs, data, and workflows Target synchronous path:
Identity -> Policy -> Output controls -> Response Background tasks handle telemetry persistence, drift work, and approval lifecycle without bloating the hot path.
Follow the repository coding contribution guide for the supported setup, unit/integration test separation, and PR checklist. Commands below run from this implementation directory.
pip install -e ".[dev]" Generate production secrets python scripts/generate_secrets.py > .env.production Use .env.production.example as the non-dev template and store the generated values in your secret manager rather than committing them.
ACR_ENV=test python -m pytest tests/ --ignore=tests/integration -v --cov=src/acr --cov-report=term-missing Run without the full Docker stack export OPERATOR_API_KEYS_JSON='{"dev-operator-key":{"subject":"dev-operator","roles":["agent_admin","approver","security_admin","auditor","killswitch_operator"]}}' export SERVICE_OPERATOR_API_KEY=dev-operator-key docker compose -f docker-compose.yml -f docker-compose.integration.yml up --build -d postgres redis opa acr-killswitch DATABASE_URL=postgresql+asyncpg://acr:acr_dev_password@localhost:5432/acr_control_plane \ REDIS_URL=redis://localhost:6379/0 \ OPA_URL=http://localhost:8181 \ POLICY_EXTENSION_DIR=operator-policies \ KILLSWITCH_URL=http://localhost:8443 \ OPERATOR_API_KEYS_JSON='{"dev-operator-key":{"subject":"dev-operator","roles":["agent_admin","approver","security_admin","auditor","killswitch_operator"]}}' \ SERVICE_OPERATOR_API_KEY=dev-operator-key \ uvicorn acr.main:app --reload Test policies opa test policies/ -v Default content-level guardrails The default policies (policies/acr/common.rego and policies/acr/content_safety.rego) are deny-by-default and tool-name-level: they only allow tools on the agent's allowlist. On top of that, the content safety defaults inspect every string value in every tool parameter, at any depth, regardless of tool name, and deny:
The patterns are deliberately narrow (each destructive rule requires the dangerous command AND its dangerous target in the same command segment), so ordinary commands such as rm -rf ./build, chmod 777 myfile.txt, and rm -rf ./build && ls / are not blocked. Unquoted ;, &&, ||, |, &, parentheses, and newlines separate command segments; separators inside quoted or escaped operands do not. These same checks apply after whole-value base64 decoding. This does not make unrestricted shell execution safe.
From 1.3.0, the Python wheel and gateway image include matching core policies. The gateway image also includes OPA 0.70.0 for policy compilation. Standalone Python policy export/administration requires that compiler installed separately and selected with OPA_BINARY or PATH; SDK-only use does not. Use the coordinated managed upgrade and rollback procedure to update OPA's pinned configuration while preserving operator policies and active Studio releases. Existing deployments need the one-time migration; replacing only a legacy gateway image does not update an old filesystem-mounted policy tree.
Identity checks gate new policy evaluations and approval resumption. Approved execution revalidates current authority and uses a durable dispatch receipt; this does not establish atomic revocation across downstream systems. Pause approval processing and resolve or drain pending approvals before upgrade, rollback or cutover. Legacy unbound approvals must be resubmitted. See the safe resumption contract for recovery limits.
src/acr/ main.py FastAPI entrypoint gateway/ request evaluation pipeline pillar1_identity/ agent registry and token issuance pillar2_policy/ OPA policy integration pillar3_drift/ baseline and anomaly scoring pillar4_observability/ telemetry and evidence pillar5_containment/ kill switch and containment flows pillar6_authority/ approval queue and override logic policy_studio/ policy drafting and release management operator_console/ operator UI db/ models and migrations Who This Is For This is a strong fit if you are:
If one of your agents tried to refund money, delete records, exfiltrate data, or hit a sensitive internal API right now, where would the hard stop actually live?
If the answer is "the prompt," "the app code," or "we’d catch it in logs," this project will probably feel uncomfortably relevant.
Based on the ACR Framework specification.
The gateway image now includes its matching core OPA rules. Read the migration and rollback guide before updating an existing deployment. Operator policies stay separate, and readiness and new policy evaluations fail closed until OPA reports the matching core. Approval execution also binds the evaluated policy and revalidates before dispatch; existing unbound approvals must be resubmitted. Follow the guide’s approval-processing prerequisite and safe resumption and receipt contract. Compose requires an auditor-authorized SERVICE_OPERATOR_API_KEY also configured in OPERATOR_API_KEYS_JSON.
Before publishing, follow the release packaging checklist. CI and release validation check the full project license in both container images, the installed package, the wheel and the source distribution.
After installing the package, run acr --version to print the installed acr-control-plane distribution version. The command works offline and does not require gateway credentials. acr --help lists the available options.
This is the first public CLI entry point. A gateway/operator-key acr doctor check is not implemented; service readiness remains a separate operational check.
Both files in this release have provenance metadata.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 23, 2026 2 release files Full provenance
Nov 22, 2026 2 release files Full provenance
Nov 8, 2026 2 release files Full provenance
Nov 7, 2026 2 release files Full provenance
Oct 27, 2026 2 release files Full provenance
Oct 19, 2026 2 release files Change of provenance
Oct 5, 2026 2 release files Full provenance




