Policy Engine v2
Policy Engine v2 is 1claw's signing-time authorization stack: built-in glob policies with tx_conditions, optional Cedar (Team+) and OPA (Business+) backends, contract ABI / Solana IDL decoding, and consensus triggers that return 202 pending approval instead of signing immediately.
Canonical docs
This page is a guide entry point. Full reference lives under Treasury → Policy Engine in the sidebar.
What's included
| Feature | Tier | Doc |
|---|---|---|
Built-in policies + tx_conditions | All | Policy language — tx_conditions |
| Cedar backend (shadow / enforce) | Team+ | Policy Engine — Cedar |
| OPA (Rego/WASM) backend | Business+ | Policy Engine — OPA |
Contract ABIs + interface_kind (evm_abi / solana_idl) | All (registry) | Contract ABI registry |
| Consensus triggers + pending approvals | All | Consensus & pending approvals |
| Copy-paste cookbooks (USDC caps, Permit deny, Solana, …) | All | Policy cookbooks |
Quick start
- Read Policy Engine — Cedar, OPA & Consensus for org backend settings (
shadowvsenforce), circuit breaker, and the approval workflow. - Register ABIs at
POST /v1/org/contract-abiswithinterface_kind: "evm_abi"or"solana_idl". - Attach
tx_conditionsorconsensus_triggerJSON to access policies on signing key paths. - When consensus matches, the API returns 202 with
pending_approval_id. After human approval, execute withPOST /v1/pending-approvals/{id}/execute— theapproval_idtoken is single-use and submitter-bound.
curl -s https://api.1claw.xyz/v1/org/settings/policy-backend \
-H "Authorization: Bearer $ONECLAW_TOKEN" | jq
Related
- Intents API guardrails — per-agent tx caps and allowlists (evaluated before policies)
- Treasury delegation — inter-agent chat; treasury-mode signing applies delegation guardrails at signing time
- Webhooks —
pending_approval.*,policy_backend.circuit_breaker_* - Changelog 2026 — v0.48.x