Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计通过

an2b-warden-governancean2b 典狱长治理

Agent Skill

an2b-warden-governance 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,709

周安装

389

GitHub Stars

公开资料未说明

下载量

3,143
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:an2b-warden-governance(an2b 典狱长治理)
来源仓库:https://github.com/jcools1977/an2b-warden-governance
安装命令:
openclaw skills install an2b-warden-governance
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install an2b-warden-governance

简介

使用 YAML 策略和防篡改审核日志来评估和管理所有 OpenClaw 机器人操作,以允许、拒绝或要求在执行前进行审查。

SKILL.md

name
warden-governance
version
1.0.0
author
AN2B Technologies
license
MIT
category
governance
clawhub
an2b/warden-governance
hooks
config
SENTINEL_API_KEY
required
false
description
Sentinel_OS API key for enterprise governance
ENGRAMPORT_API_KEY
required
false
description
EngramPort API key for enterprise memory
WARDEN_FAIL_OPEN
required
false
default
false
description
Allow actions when governance engine fails
WARDEN_AGENT_ID
required
false
default
openclaw-agent
description
Bot identifier for audit trail
WARDEN_POLICY_FILE
required
false
description
Path to custom YAML policy file
WARDEN_POLICY_PACKS
required
false
description
Comma-separated built-in policy pack names
install
openclaw skill install an2b/warden-governance

War/Den Governance Skill

ClawHub Package: an2b/warden-governance Version: 1.0.0 Category: Governance & Security License: MIT

What This Skill Does

Every action your OpenClaw bot tries to take is evaluated by War/Den before it executes.

Your Bot -> War/Den check -> ALLOW  -> action executes
                          -> DENY   -> action blocked + logged
                          -> REVIEW -> waits for your approval

No more deleted emails. No more data exfiltration. No more ungoverned agents.

Community mode works with zero external dependencies. No API keys. No cloud. Just YAML policies, a local SQLite audit log, and a hash chain you can verify.


Install

From ClawHub (recommended)

openclaw skill install an2b/warden-governance

From pip

pip install warden-governance-skill

Both methods install to: ~/.openclaw/skills/warden-governance/

On successful install you'll see:

🦞 War/Den governance active.
   Your OpenClaw bot is now governed.

Add to your OpenClaw config

skills:
  - name: warden-governance
    config:
      SENTINEL_API_KEY: ""       # optional -- leave blank for community mode
      ENGRAMPORT_API_KEY: ""     # optional -- leave blank for local memory
      WARDEN_FAIL_OPEN: "false"  # block on governance failure (default)

Restart your bot

openclaw restart

That's it. Your bot is now governed.


How It Works

Hooks

This skill registers three OpenClaw hooks:

HookPurpose
before_actionEvaluate every action against policy before execution
after_actionWrite action result to governed memory
on_errorLog errors to tamper-evident audit trail

Action Bridge

All 15 OpenClaw action types are mapped to War/Den governance types:

OpenClaw ActionWar/Den TypeDefault Protection
email.sendmessage.sendMonitored
email.deletedata.writeRequires human review
email.readdata.readMonitored
file.writedata.writeMonitored
file.deletedata.writeRequires human review
file.readdata.readMonitored
browser.navigateapi.callMonitored
browser.clickapi.callMonitored
shell.executecode.executeBlocked in production
api.callapi.callMonitored
calendar.createdata.writeMonitored
calendar.deletedata.writeRequires human review
message.sendmessage.sendMonitored
code.executecode.executeBlocked in production
payment.createapi.callRequires human review

Policy Engine

Policies are YAML files evaluated in priority order:

policies:
  - name: protect-email-delete
    match:
      action.type: data.write
      action.data.openclaw_original: email.delete
    decision: review
    mode: enforce
    priority: 1
    active: true
    reason: "Email deletion requires human review."

Evaluation rules:

  1. Filter to active policies only
  2. Sort by priority ascending (lower number = higher priority)
  3. First match wins
  4. mode: monitor -- log but return ALLOW
  5. mode: enforce -- return the matched decision
  6. No match -- default ALLOW

Pre-built Policy Packs

Load governance instantly with built-in packs:

PackWhat It Does
basic_safetyBlocks code execution in prod, monitors writes and API calls
phi_guardDenies PHI access in dev, requires review for memory export
payments_guardDenies payment actions in dev, requires review in prod

Audit Trail

Every governance decision is written to a tamper-evident SHA-256 hash chain:

Event N:  hash = SHA256(prev_hash + agent_id + action_type + decision + timestamp)
Event N+1: prev_hash = Event N hash

Verify the chain at any time:

valid, bad_event_id = audit_log.verify_chain()

Decision Cache

ALLOW decisions are cached for 5 minutes (configurable). DENY and REVIEW are never cached -- they always hit the governance engine fresh.


Community vs Enterprise

FeatureCommunity (Free)Enterprise
Policy enforcementLocal YAMLSentinel_OS cloud
Audit trailLocal SQLite + hash chainCloud + signed PDF
Memory storageLocal SQLiteEngramPort cloud (MandelDB)
Memory searchText search (LIKE)Vector search (3072-dim)
SynthesisBasic recallEidetic AI synthesis
Cross-bot memory--Orchestra multi-agent
Multi-namespace3 maxUnlimited
Compliance export--SOC2/HIPAA PDF
Cryptographic provenanceLocal hash chainAEGIS (SHA-256 + RSA)
DependenciesZerosentinel-client, engramport-langchain

Mode Matrix

SENTINEL_API_KEYENGRAMPORT_API_KEYMode
----Full Community
Set--Governed Community
--SetMemory Enterprise
SetSetFull Enterprise

All four modes work with zero code changes. Just environment variables.


Enterprise Upgrade Path

Sentinel_OS (Governance)

Set SENTINEL_API_KEY to upgrade governance from local YAML to Sentinel_OS cloud:

  • Real-time policy evaluation via /api/v1/check
  • Pre-flight checks via /api/v1/check (read-only, no side effects)
  • Action logging via /api/v1/ingest with hash chain integrity
  • Run management, alerting, and AI-powered insights
  • Python and Node.js SDKs
  • Rate limiting: 2000 checks/min, 1000 ingests/min per API key

Get your key at getsentinelos.com

EngramPort (Memory via MandelDB)

Set ENGRAMPORT_API_KEY to upgrade memory from local SQLite to EngramPort cloud:

  • 5 endpoints: /register, /remember, /recall, /reflect, /stats
  • 3072-dimensional OpenAI embeddings via Pinecone
  • AEGIS cryptographic provenance (SHA-256 + RSA signature per memory)
  • Namespace-isolated storage (bot:{slug}:{uid})
  • Eidetic cross-memory pattern synthesis via GPT-4o-mini
  • Multi-agent orchestration with EngramPortOrchestra
  • Background synthesis with DreamState
  • LangChain drop-in integration

API keys use format ek_bot_* with SHA-256 hashed storage.

Get your key at engram.eideticlab.com


Configuration

VariableRequiredDefaultDescription
SENTINEL_API_KEYNo""Sentinel_OS key. Blank = community governance
ENGRAMPORT_API_KEYNo""EngramPort key. Blank = local memory
WARDEN_FAIL_OPENNofalseAllow on governance failure
WARDEN_AGENT_IDNoopenclaw-agentBot identifier
WARDEN_POLICY_FILENobuilt-inPath to custom YAML policy file
WARDEN_POLICY_PACKSNo""Comma-separated pack names
WARDEN_MEMORY_DBNo~/.warden/memory.dbLocal memory path
WARDEN_AUDIT_DBNo~/.warden/audit.dbLocal audit log path
WARDEN_CACHE_TTLNo300ALLOW cache TTL in seconds

Fail-Open Behavior

WARDEN_FAIL_OPENWar/Den reachableWar/Den unreachable
false (default)Normal governanceAction BLOCKED
trueNormal governanceAction ALLOWED + warning

Default is false because a governance failure should never silently allow dangerous actions.


Test Proof

This skill ships with a comprehensive test suite. Run it:

python -m pytest tests/ -v

Key test: The Meta inbox test simulates the exact incident where an OpenClaw agent deleted 200 emails. With War/Den, all 200 are blocked:

def test_meta_researcher_inbox_protection(self, tmp_path):
    """Simulate the exact Meta inbox incident. All 200 emails blocked."""
    skill = _make_skill(tmp_path, WARDEN_POLICY_FILE=policy_path)
    blocked = 0
    for i in range(200):
        result = skill.before_action(
            {"type": "email.delete", "data": {"email_id": f"msg_{i}"}},
            {"agent_id": "meta-researcher-bot", "env": "prod"},
        )
        if not result["proceed"]:
            blocked += 1
    assert blocked == 200

Skill Files

warden-governance-skill/
├── SKILL.md                          # This file (ClawHub primary)
├── clawhub.json                      # ClawHub registry metadata
├── README.md                         # Full documentation
├── pyproject.toml                    # Python package config
├── policies/
│   ├── openclaw_default.yaml         # Default governance policies
│   └── policy_packs.py              # Pre-built policy packs
├── warden_governance/
│   ├── __init__.py
│   ├── skill.py                      # Main skill class (hooks)
│   ├── action_bridge.py              # OpenClaw <-> War/Den translation
│   ├── policy_engine.py              # Community policy engine
│   ├── audit_log.py                  # SHA-256 hash chain audit
│   ├── memory_client.py              # Governed memory operations
│   ├── local_store.py                # Local SQLite memory
│   ├── sentinel_client.py            # Enterprise Sentinel_OS client
│   ├── engramport_client.py          # Enterprise EngramPort client
│   ├── upgrade_manager.py            # Mode detection + banner
│   ├── health_check.py               # Enterprise health validation
│   └── settings.py                   # Configuration
└── tests/
    ├── __init__.py
    ├── test_skill.py                 # Skill + Meta inbox tests
    ├── test_policy_engine.py         # Policy engine tests
    ├── test_audit_log.py             # Audit trail tests
    ├── test_action_bridge.py         # Action bridge tests
    ├── test_memory.py                # Memory client tests
    └── test_enterprise.py            # Enterprise upgrade tests

Built on Sentinel_OS and EngramPort by AN2B Technologies

*The lobster protects the inbox.*

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

85.06%
按下载量换算2,673

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills