返回顶部
g

governance-guard

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
324
下载量
0
收藏
概述
安装方式
版本历史

governance-guard

# 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: ```bash 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: ```bash npx tsx scripts/governance.ts resolve-escalation <intent-id> approve # or npx tsx scripts/governance.ts resolve-escalation <intent-id> deny ``` ### 3. Audit decisions ```bash 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 ```bash npx tsx scripts/governance.ts verify ``` Any tampering with historical records is detected by recomputing the hash chain from genesis.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 governance-guard-1776295438 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 governance-guard-1776295438 技能

通过命令行安装

skillhub install governance-guard-1776295438

下载 Zip 包

⬇ 下载 governance-guard v0.1.0

文件大小: 35.67 KB | 发布时间: 2026-4-16 17:46

v0.1.0 最新 2026-4-16 17:46
Initial release: PROPOSE→DECIDE→PROMOTE pipeline, 3 policy presets, hash-chained witness log

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部