ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 4/5

agent-self-governance

Self-governance protocol for autonomous agents: WAL (Write-Ahead Log), VBR (Verify Before Reporting), ADL (Anti-Divergence Limit), VFM (Value-For-Money), and IKL (Infrastructure Knowledge Logging). Use when: (1) receiving a user correction — log it before responding, (2) making an important decision or analysis — log it before continuing, (3) pre-compaction memory flush — flush the working buffer to WAL, (4) session start — replay unapplied WAL entries to restore lost context, (5) any time you want to ensure something survives compaction, (6) before claiming a task is done — verify it, (7) periodic self-check — am I drifting from my persona? (8) cost tracking — was that expensive operation worth it? (9) discovering infrastructure — log hardware/service specs immediately.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/bowen31337/agent-self-governance
Or

What This Skill Does

The agent-self-governance skill provides a comprehensive safety and accountability framework for OpenClaw agents. By implementing five core protocols—WAL (Write-Ahead Log), VBR (Verify Before Reporting), ADL (Anti-Divergence Limit), VFM (Value-For-Money), and IKL (Infrastructure Knowledge Logging)—the skill ensures that agents remain context-aware, reliable, and aligned with their core objectives. It prevents critical failure modes such as losing context after memory flushing, making false claims of task completion, drifting from persona instructions, and forgetting system infrastructure details.

Installation

You can install the skill directly via the ClawHub CLI:

clawhub install openclaw/skills/skills/bowen31337/agent-self-governance

Use Cases

  • Critical State Preservation: Use the WAL protocol to log decisions or user corrections before they are processed, ensuring they survive memory compaction.
  • Autonomous Verification: Integrate VBR to automatically validate file existence, test suites, or deployment status before informing the user that a task is complete.
  • Persona Maintenance: Utilize ADL to periodically audit agent outputs, checking for sycophancy or divergence from the SOUL.md persona definition.
  • Infrastructure Management: Immediately log hardware or service specs using IKL to prevent infrastructure amnesia.
  • Cost Control: Use VFM tracking to audit expensive LLM calls or API operations to ensure they provided sufficient value.

Example Prompts

  1. "I've decided to switch our backend database to PostgreSQL; log this in the WAL before we proceed with the migration."
  2. "Please run the suite of unit tests for the authentication module and use VBR to confirm they pass before you report the status."
  3. "Run a periodic ADL check on our last five interactions to ensure my responses aren't drifting from the direct and technical persona defined in my SOUL.md file."

Tips & Limitations

  • Pre-Flush Workflow: Always call flush-buffer before performing manual memory management or compaction to avoid data loss.
  • Verification Discipline: Do not rely on VBR as a replacement for human oversight in production environments; it is a diagnostic tool, not a human auditor.
  • Performance Overhead: Frequent logging via WAL or ADL adds latency; use buffer-based operations for non-critical tasks to minimize performance impact.

Metadata

Stars4190
Views2
Updated2026-04-18
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-bowen31337-agent-self-governance": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#self-governance#reliability#logging#compliance#verification
Safety Score: 4/5

Flags: file-write, file-read, code-execution