Install
openclaw skills install governance-guardStructural authority separation for autonomous agent actions. Three-phase governance pipeline: PROPOSE, DECIDE, PROMOTE. No action is both proposed and approved by the same computational pathway.
openclaw skills install governance-guardGovernance guard enforces structural authority separation on all agent actions through a PROPOSE-DECIDE-PROMOTE pipeline.
Before performing any write, execute, network, create, or delete action. The governance pipeline MUST be invoked before the action executes. Read actions may also be governed under standard or strict policies.
Run the complete PROPOSE → DECIDE → PROMOTE pipeline in a single call:
npx tsx scripts/governance.ts pipeline '<intent-json>' --policy policies/standard.yaml
The intent JSON must include:
skill: skill identifiertool: tool/function being invokedmodel: LLM model nameactionType: one of read, write, execute, network, create, deletetarget: resource being acted uponparameters: tool parameters (object)dataScope: data categories accessed (array, e.g. ["personal", "financial"])conversationId: current conversation IDmessageId: current message IDuserInstruction: the user message that triggered this actionThe pipeline returns a JSON response:
"governance": "approved" — proceed with the action"governance": "deny" — do NOT proceed; inform the user with the reason"governance": "escalate" — present the action to the user for approval:Action requires your approval:
Skill: <skill>
Action: <actionType> on <target>
Reason: <reason>
Reply APPROVE or DENY
Then resolve:
npx tsx scripts/governance.ts resolve-escalation <intent-id> approve
# or
npx tsx scripts/governance.ts resolve-escalation <intent-id> deny
npx tsx scripts/governance.ts audit --last 10
| Preset | Default | Description |
|---|---|---|
minimal | approve | Blocks only credentials and destructive commands. Lowest friction. |
standard | deny | Allows common ops, escalates network and data access. Recommended. |
strict | deny | Reads only. Everything else requires explicit approval. Maximum safety. |
If any error occurs during governance evaluation, the default verdict is DENY. Missing policy files result in DENY ALL. This is by design. The system fails safe, never open.
Governance data is stored in ~/.openclaw/governance/:
policy.yaml — active policy filewitness.jsonl — append-only, hash-chained audit lognpx tsx scripts/governance.ts verify
Any tampering with historical records is detected by recomputing the hash chain from genesis.