返回顶部
a

agentmesh-governance

>

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

agentmesh-governance

# AgentMesh Governance — Trust & Policy for OpenClaw Agents Zero-trust governance layer for OpenClaw agents. Enforce policies, verify identities, score trust, and maintain tamper-evident audit logs — all from your agent's command line. ## Setup Install the AgentMesh governance CLI: ```bash pip install agentmesh-governance ``` > If `agentmesh-governance` is not yet on PyPI, install directly from source: > ```bash > pip install "agentmesh @ git+https://github.com/imran-siddique/agent-mesh.git" > ``` ## Scripts All scripts are in `scripts/`. They wrap the governance engine and output JSON results. ### Check Policy Compliance Evaluate an action against a governance policy before execution: ```bash scripts/check-policy.sh --action "web_search" --tokens 1500 --policy policy.yaml ``` Returns JSON with `allowed: true/false`, any violations, and recommendations. Use this **before** executing any tool call to enforce limits. ### Get Trust Score Check an agent's current trust score (0.0 – 1.0): ```bash scripts/trust-score.sh --agent "research-agent" ``` Returns the composite trust score with breakdown across 5 dimensions: policy compliance, resource efficiency, output quality, security posture, collaboration health. ### Verify Agent Identity Verify an agent's Ed25519 cryptographic identity before trusting its output: ```bash scripts/verify-identity.sh --did "did:agentmesh:abc123" --message "hello" --signature "base64sig" ``` Returns `verified: true/false`. Use when receiving data from another agent. ### Record Interaction Update trust scores after collaborating with another agent: ```bash scripts/record-interaction.sh --agent "writer-agent" --outcome success scripts/record-interaction.sh --agent "writer-agent" --outcome failure --severity 0.1 ``` Success adds +0.01 to trust score. Failure subtracts the severity value. Agents dropping below the minimum threshold (default 0.5) are auto-blocked. ### Audit Log View tamper-evident audit trail with Merkle chain verification: ```bash scripts/audit-log.sh --last 20 scripts/audit-log.sh --agent "research-agent" --verify ``` The `--verify` flag checks Merkle chain integrity — any tampering is detected. ### Generate Identity Create a new Ed25519 cryptographic identity (DID) for your agent: ```bash scripts/generate-identity.sh --name "my-agent" --capabilities "search,summarize,write" ``` Returns your agent's DID, public key, and capability manifest. ## Policy File Format Create a `policy.yaml` to define governance rules: ```yaml name: production-policy max_tokens: 4096 max_tool_calls: 10 allowed_tools: - web_search - file_read - summarize blocked_tools: - shell_exec - file_delete blocked_patterns: - "rm -rf" - "DROP TABLE" - "BEGIN CERTIFICATE" confidence_threshold: 0.7 require_human_approval: false ``` ## When to Use This Skill - **Before tool execution**: Run `check-policy.sh` to enforce limits - **Before trusting another agent's output**: Run `verify-identity.sh` - **After collaboration**: Run `record-interaction.sh` to update trust - **Before delegation**: Check `trust-score.sh` — don't delegate to agents below 0.5 - **For compliance**: Run `audit-log.sh --verify` to prove execution integrity - **On setup**: Run `generate-identity.sh` to create your agent's DID ## What It Enforces | Policy | Description | |--------|-------------| | Token limits | Cap per-action and per-session token usage | | Tool allowlists | Only explicitly permitted tools can execute | | Tool blocklists | Dangerous tools are blocked regardless | | Content patterns | Block regex patterns (secrets, destructive commands, PII) | | Trust thresholds | Minimum trust score required for delegation | | Human approval | Gate critical actions behind human confirmation | ## Architecture This skill bridges the OpenClaw agent runtime with the [AgentMesh](https://github.com/imran-siddique/agent-mesh) governance engine: ``` OpenClaw Agent → SKILL.md scripts → AgentMesh Engine ├── GovernancePolicy (enforcement) ├── TrustEngine (5-dimension scoring) ├── AgentIdentity (Ed25519 DIDs) └── MerkleAuditChain (tamper-evident logs) ``` Part of the [Agent Ecosystem](https://imran-siddique.github.io): [AgentMesh](https://github.com/imran-siddique/agent-mesh) · [Agent OS](https://github.com/imran-siddique/agent-os) · [Agent SRE](https://github.com/imran-siddique/agent-sre)

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agentmesh-governance-1776419935 技能

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

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

通过命令行安装

skillhub install agentmesh-governance-1776419935

下载 Zip 包

⬇ 下载 agentmesh-governance v1.0.0

文件大小: 7.19 KB | 发布时间: 2026-4-17 19:40

v1.0.0 最新 2026-4-17 19:40
- Initial release of agentmesh-governance for OpenClaw agents.
- Provides command-line scripts to enforce policies, check trust scores, verify identities (Ed25519 DIDs), and maintain tamper-evident Merkle chain audit logs.
- Supports policy enforcement for token limits, tool allow/blocklists, content patterns, trust thresholds, and optional human approval.
- Enables agent trust scoring across five dimensions and automated blocking of low-trust agents.
- CLI tools for generating agent identities, updating trust after collaboration, and verifying audit log integrity.
- Designed for seamless integration with AgentMesh, supporting enterprise compliance and governance needs.

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

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

p2p_official_large
返回顶部