← 返回
安全合规 中文

governance-guard

Structural authority separation for autonomous agent actions. Three-phase governance pipeline: PROPOSE, DECIDE, PROMOTE. No action is both proposed and appro...
结构化权力分离以实现自主智能体行为。三阶段治理流程:提议(PROPOSE)、决策(DECIDE)、提升(PROMOTE)。任何动作不得同时被提议和批准。
devongenerally-png
安全合规 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 567
下载
💾 8
安装
1
版本
#governance#latest#security

概述

governance-guard

Governance guard enforces structural authority separation on all agent actions through a PROPOSE-DECIDE-PROMOTE pipeline.

When to activate

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.

How to use

1. Full pipeline (recommended)

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 identifier
  • tool: tool/function being invoked
  • model: LLM model name
  • actionType: one of read, write, execute, network, create, delete
  • target: resource being acted upon
  • parameters: tool parameters (object)
  • dataScope: data categories accessed (array, e.g. ["personal", "financial"])
  • conversationId: current conversation ID
  • messageId: current message ID
  • userInstruction: the user message that triggered this action

2. Handle the verdict

The pipeline returns a JSON response:

  • If "governance": "approved" — proceed with the action
  • If "governance": "deny" — do NOT proceed; inform the user with the reason
  • If "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

3. Audit decisions

npx tsx scripts/governance.ts audit --last 10

Policy presets

| 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. |

Fail-closed guarantee

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.

Configuration

Governance data is stored in ~/.openclaw/governance/:

  • policy.yaml — active policy file
  • witness.jsonl — append-only, hash-chained audit log

Verify witness chain

npx tsx scripts/governance.ts verify

Any tampering with historical records is detected by recomputing the hash chain from genesis.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 01:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,580
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,210 📥 266,122
security-compliance

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,133