微算力 · API 导航与自营网关
API 接入 EN
未登录登录
⚖️

智能约束生命周期治理中心

Agentic Governance · v1.0.0
效率 安全 S 级 作者 leegitw 公开目录收录
969 下载 0 安装 3k 收藏 12 浏览

简介

智能约束治理系统,自动追踪约束状态、90天周期审查、漂移检测与合规审计,确保规则体系持续健康演进

原始描述

Keep your constraints healthy — lifecycle management with automatic staleness detection

通过你的 Agent 添加

安装目录:agentic-governance/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/agentic-governance/
Codex CLI~/.codex/skills/agentic-governance/
DeepSeek Harness~/.agents/skills/agentic-governance/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心功能

Agentic Governance 是一套面向 AI Agent 约束生命周期的统一治理框架,将原本分散的 6 个细粒度技能整合为单一治理层。其核心使命是解决"约束创建后便无人问津"的普遍问题——通过强制性的周期性审查机制,防止规则僵化成为不可挑战的教条。

显著优点

  1. 主动式治理:不同于被动响应的监控系统,本技能采用 HEARTBEAT 触发机制,在约束到期前 15 天即发出预警,实现真正的预防性维护。

  2. 完整生命周期管理:覆盖约束从 Draft → Active → Retiring → Retired 的全状态流转,配合 /ce lifecycle 命令实现无摩擦的状态迁移。

  3. 双向溯源验证:/gov verify 提供源码与编译产物的一致性校验,在配置漂移场景中快速定位根因,这对安全合规审计尤为关键。

  4. 数据闭环设计: adoption rate、violation rate、override rate 三维指标形成量化反馈,让约束效果可测量、可优化。

  5. 零外部依赖:所有分析均在本地 trust boundary 内完成,数据不离开用户控制的 agent 环境;仅在使用云托管 LLM 时遵循原有服务条款。

潜在局限

  • 非强制性执行:90 天审查周期目前为"建议性"而非程序强制,实际合规依赖 HEARTBEAT P3 检查与人工勤勉,自动化强制执行需等待后续版本。

  • 依赖前置条件:完整功能需要 constraint-engine 和 failure-memory 作为数据底座,独立使用时仅保留索引生成和往返验证能力。

  • 学习曲线陡峭:slug 命名规范、状态机模型、四层指标体系的组合对新手形成认知负担。

适合人群

  • 运营 10+ 条 agent 约束的中大型团队
  • 需要通过 SOC 2 等合规认证的组织
  • 约束体系出现"僵尸规则"积累的技术负责人
  • 追求"约束即代码"实践的基础设施工程师

常规风险

  • 配置漂移:手动修改 output/constraints/ 下的文件可能导致元数据不一致,建议始终通过 /ce 系列命令操作。
  • 状态文件损坏:虽具备从约束文件重建的容错机制,但重建过程会丢失历史审查记录。
  • 误报淹没:warning threshold 设置过紧可能产生告警疲劳,建议根据团队节奏调整为 7-30 天区间。

技能正文


name: agentic-governance version: 1.0.0 description: Keep your constraints healthy — lifecycle management with automatic staleness detection author: Live Neon contact@liveneon.dev homepage: https://github.com/live-neon/skills/tree/main/agentic/governance repository: leegitw/agentic-governance license: MIT tags: [agentic, governance, state, lifecycle, review] layer: governance status: active alias: gov disable-model-invocation: true config_paths:

  • .openclaw/governance.yaml
  • .claude/governance.yaml workspace_paths:
  • output/governance/
  • output/constraints/
  • agentic/INDEX.md

governance (治理)

Unified skill for constraint governance state, periodic reviews, index generation, round-trip verification, and schema migration. Consolidates 6 granular skills.

Trigger: 定期保守 (periodic maintenance) or HEARTBEAT

Source skills: constraint-reviewer, index-generator, round-trip-tester, governance-state, slug-taxonomy, adoption-monitor (from safety)

Installation

openclaw install leegitw/governance

Dependencies:

  • leegitw/constraint-engine (for constraint data)
  • leegitw/failure-memory (for observation data)
# Install full governance stack
openclaw install leegitw/context-verifier
openclaw install leegitw/failure-memory
openclaw install leegitw/constraint-engine
openclaw install leegitw/governance

Standalone usage: Index generation and round-trip verification work independently. Full governance features require constraint-engine and failure-memory integration.

Data handling: This skill operates within your agent's trust boundary. All governance analysis uses your agent's configured model — no external APIs or third-party services are called. If your agent uses a cloud-hosted LLM (Claude, GPT, etc.), data is processed by that service as part of normal agent operation. Results are written to output/governance/ in your workspace.

What This Solves

Constraints that never get reviewed become stale. Rules that never get challenged become dogma. This skill manages the lifecycle:

  1. State tracking — know which constraints are active, suspended, or retired
  2. Periodic reviews — 90-day gates to re-evaluate constraints against current evidence
  3. Index generation — dashboards showing constraint health at a glance

The insight: Good governance is proactive. Constraints need maintenance, not just creation.

Usage

/gov <sub-command> [arguments]

Sub-Commands

Command CJK Logic Trigger
/gov state 状態 central_state, event→alert HEARTBEAT
/gov review 審査 constraints.due→review_queue HEARTBEAT
/gov index 索引 skills[]→INDEX.md Explicit
/gov verify 検証 round_trip(source↔compiled)→sync✓∨drift✗ Explicit
/gov migrate 移行 schema.v(n)→schema.v(n+1) Explicit

Arguments

/gov state

Argument Required Description
--summary No Show summary only (default: full state)
--alerts No Show pending alerts only

/gov review

Argument Required Description
--due No Show only due reviews (default)
--all No Show all constraints with review dates
--complete No Mark review as complete

/gov index

Argument Required Description
--path No Output path (default: agentic/INDEX.md)
--format No Format: markdown (default), json

/gov verify

Argument Required Description
source Yes Source file or directory
compiled Yes Compiled/generated file or directory
--strict No Fail on any difference

/gov migrate

Argument Required Description
--to Yes Target schema version
--dry-run No Show changes without applying

Configuration

Configuration is loaded from (in order of precedence):

  1. .openclaw/governance.yaml (OpenClaw standard)
  2. .claude/governance.yaml (Claude Code compatibility)
  3. Defaults (built-in)

Core Logic

Governance State Model

┌─────────────────────────────────────────┐
│           GOVERNANCE STATE               │
├─────────────────────────────────────────┤
│ Constraints:                             │
│   - Active: 5                           │
│   - Draft: 2                            │
│   - Retiring: 1                         │
│   - Retired: 12                         │
├─────────────────────────────────────────┤
│ Reviews:                                 │
│   - Due: 2 (approaching 90-day mark)    │
│   - Overdue: 0                          │
├─────────────────────────────────────────┤
│ Health:                                  │
│   - Circuit: CLOSED                     │
│   - Violations (30d): 3                 │
│   - Adoption rate: 85%                  │
├─────────────────────────────────────────┤
│ Alerts:                                  │
│   - [WARN] CON-001 due for review       │
│   - [INFO] 2 new observations eligible  │
└─────────────────────────────────────────┘

Review Cycle

Constraints require periodic review. The review cadence is configurable (default: 90 days):

# .openclaw/governance.yaml
governance:
  review_cadence_days: 90    # Default
  warning_threshold: 15      # Days before due to warn
Days Since Last Review Status Action
0-75 Current No action
76-90 Approaching Warning alert
91+ Overdue Escalation alert

⚠️ Advisory Only: This review cycle is not enforced programmatically. Compliance relies on HEARTBEAT P3 checks and manual diligence. Automated enforcement (/gov review --automated) is planned for future release. See HEARTBEAT.md for current verification schedule.

Adoption Monitoring

Track constraint adoption across sessions:

Metric Calculation Target
Adoption rate Sessions with constraint used / Total sessions >80%
Violation rate Violations / Checks <5%
Override rate Overrides / Violations <20%

Slug Taxonomy

Standard slug prefixes for observations and constraints:

Prefix Domain Examples
git-* Version control git-commit-message, git-branch-naming
test-* Testing test-before-commit, test-coverage
workflow-* Process workflow-pr-review, workflow-deploy
security-* Security security-no-secrets, security-auth
docs-* Documentation docs-update-readme, docs-api
quality-* Code quality quality-lint, quality-format

Output

/gov state output

[GOVERNANCE STATE]
Updated: 2026-02-15 10:30:00

=== Constraints ===
Active: 5 | Draft: 2 | Retiring: 1 | Retired: 12

=== Circuit Breaker ===
Status: CLOSED (healthy)
Violations (30d): 3

=== Reviews ===
Due: 2 constraints approaching 90-day mark
  - CON-20251120-001: "Always run tests" (day 87)
  - CON-20251125-003: "Lint before commit" (day 82)

=== Adoption ===
Rate: 85% (target: >80%)
Sessions tracked: 47

=== Alerts ===
[WARN] CON-20251120-001 due for review in 3 days
[INFO] 2 observations eligible for constraint generation

/gov review output

[CONSTRAINT REVIEW QUEUE]

Due for review (2):

1. CON-20251120-001: "Always run tests before commit"
   Age: 87 days | Status: active
   Violations (90d): 2 | Overrides: 0
   Adoption: 92%

   Options:
   a) Renew for 90 days: /ce lifecycle CON-20251120-001 active
   b) Begin retirement: /ce lifecycle CON-20251120-001 retiring
   c) Immediate retire: /ce lifecycle CON-20251120-001 retired

2. CON-20251125-003: "Always lint before commit"
   Age: 82 days | Status: active
   Violations (90d): 5 | Overrides: 1
   Adoption: 78%

   [WARN] Below adoption target (80%)
   Consider: Clarify constraint or improve tooling

/gov index output

[INDEX GENERATED]
Path: agentic/INDEX.md
Skills: 7
Updated: 2026-02-15 10:30:00

Contents:
- failure-memory (fm) - Core
- constraint-engine (ce) - Core
- context-verifier (cv) - Foundation
- review-orchestrator (ro) - Review
- governance (gov) - Governance
- safety-checks (sc) - Safety
- workflow-tools (wt) - Extensions

/gov verify output

[ROUND-TRIP VERIFICATION]
Source: docs/constraints/
Compiled: output/constraints/

Status: ✓ IN SYNC

Files checked: 12
Matches: 12
Drifts: 0

Example: Compliance Review

/gov review --all
[CONSTRAINT REVIEW QUEUE]

Compliance Status (SOC 2):

1. CON-20260101-001: "Always encrypt PII at rest"
   Age: 45 days | Status: active
   Compliance: SOC 2 CC6.1
   Violations (90d): 0 | Adoption: 100%
   ✓ Compliant

2. CON-20260115-002: "Always log authentication events"
   Age: 31 days | Status: active
   Compliance: SOC 2 CC6.2
   Violations (90d): 1 | Adoption: 98%
   ⚠ Review violation on 2026-02-01

Summary: 12 constraints | 11 compliant | 1 needs review

Example: Security Audit Preparation

/gov state --summary
[GOVERNANCE STATE]
Updated: 2026-02-15 14:00:00

Audit Readiness:
  Security constraints: 8 active
  Last review: 2026-02-10
  Violations (90d): 2 (both resolved)
  Override rate: 5% (within policy)

Recommendation: Ready for external audit.

Integration

  • Layer: Governance
  • Depends on: constraint-engine (for constraint data), failure-memory (for observation data)
  • Used by: None (top-level governance)

Failure Modes

Condition Behavior
Invalid sub-command List available sub-commands
No constraints found Info: "No constraints in system"
State file corrupted Rebuild from constraint files
Migration conflict Show conflicts, require manual resolution

Next Steps

After invoking this skill:

Condition Action
Reviews due Process each review, update lifecycle
Alerts pending Surface to user, track resolution
Index outdated Regenerate INDEX.md
Drift detected Investigate and reconcile

Workspace Files

This skill reads/writes:

output/
├── governance/
│   ├── state.json           # Central governance state
│   ├── reviews/             # Review records
│   │   └── YYYY-MM-DD.md
│   └── alerts.json          # Pending alerts
└── constraints/
    └── metadata.json        # Constraint metadata (adoption, violations)

agentic/
└── INDEX.md                 # Generated skill index

Acceptance Criteria

  • /gov state shows complete governance overview
  • /gov state surfaces alerts for due reviews
  • /gov review lists constraints due for 90-day review
  • /gov review provides clear renewal/retirement options
  • /gov index generates skill index from SKILL.md files
  • /gov verify detects drift between source and compiled
  • /gov migrate handles schema version transitions
  • Adoption metrics tracked and reported
  • Workspace files follow documented structure

Consolidated from 6 skills as part of agentic skills consolidation (2026-02-15).

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

agenticgovernancelifecycle-managementcompliancestate-trackingreview-automationdrift-detection

同类 Skill