By Paul Rodney Turner, Founder, Master 22 Solutions and creator of ClawMaven. Published · Updated
You govern AI agent loops by moving the rules outside the agent, into a signed policy file the runtime actually enforces. A budget cap halts execution instead of relying on the model's promise, a verification step gates the done signal, and an approval gate blocks outbound messages at the code level, not the vibes level.
Key takeaways
Rules that live inside prompts aren't governance. They're suggestions.
Governance is when the rules live outside the agent, in a signed policy file the runtime enforces.
A loop_policy sets hard iteration caps, stall detection and budget bounds.
A verification_policy requires an independent checker to pass before success counts.
A trust manifest with a SHA-256 hash for every file makes policy tampering detectable.
What's wrong with color-coding agent workflows?
There's a popular playbook going around: 25 agent workflows, each tagged green, yellow, or red. Green runs alone. Yellow drafts, you approve. Red never touches money, production, or customers without a human.
It's good advice. It's also a confession.
Twenty-five copies of the same constitution
Every one of those prompts hand-writes the same rules: a budget cap, a stop condition, a state file, a human gate. Twenty-five workflows, twenty-five copies of the same constitution — written in prose, enforced by hope. Change one prompt and the rule quietly disappears. Nobody notices until the bill arrives, or worse, until an agent emails a customer something it shouldn't have.
I've spent thirty years building systems for organizations where "trust me, the prompt says so" was never going to pass an audit. Here's what I've learned: rules that live inside prompts aren't governance. They're suggestions.
What does it mean for rules to live outside the agent?
Governance is when the rules live outside the agent — in a signed policy file the runtime actually enforces. A budget cap that halts execution, not one the model promises to respect. A verification step that gates the "done" signal, so an agent can't declare victory without proof. An approval gate that blocks outbound messages at the code level, not the vibes level.
How does ClawMaven turn the color code into policy?
That's what we built with ClawMaven and Agent Bob:
Prompt-level rule
Enforceable policy
The color code
loop_policy: hard iteration caps, stall detection, budget bounds
The "paste the proof" rule
verification_policy: an independent checker that must pass before success counts
Trusting nobody edited the prompt
A trust manifest with a SHA-256 hash for every file, so if anyone edits the policy, the tampering is detectable
Why aren't color-coded prompts enough to govern agent loops?
Because rules that live inside prompts aren't governance, they're suggestions. Every workflow hand-writes the same budget cap, stop condition, state file and human gate in prose, so changing one prompt makes the rule quietly disappear.
What does it mean for rules to live outside the agent?
It means the rules sit in a signed policy file the runtime actually enforces. A budget cap halts execution, a verification step gates the done signal, and an approval gate blocks outbound messages at the code level.
What is a loop_policy?
A loop_policy is the enforceable version of the green, yellow and red color code. It sets hard iteration caps, stall detection and budget bounds.
What is a verification_policy?
A verification_policy is the enforceable version of the paste the proof rule. It requires an independent checker to pass before success counts, so an agent can't declare victory without proof.
How do you detect tampering with an agent's policy?
The policy is recorded in a trust manifest with a SHA-256 hash for every file. If anyone edits the policy, the tampering is detectable.
Privacy: Your governance configuration is generated in your browser and is not transmitted to ClawMaven servers. Generating a pack sends only a one-way SHA-256 hash for quota counting; AI suggestions, analytics, and any form you submit are opt-in and named on our privacy page.
Free to start — no credit card required, no account needed
Compliance: EU AI Act, NIST AI RMF, ISO/IEC 42001, SOC 2, and GDPR. The EU AI Omnibus (Regulation (EU) 2026/1744, in force 27 July 2026) moved stand-alone high-risk (Annex III) obligations to 2 December 2027 and product-embedded (Annex I) to 2 August 2028. Article 50 transparency obligations have applied since 2 August 2026.
Supported Runtimes (14 total)
Native, local and cloud runtimes — support level in brackets
Starter — Free forever. Full 24-step wizard, all ZIP artifacts, Hygiene tools, Skill Assurance.
Builder — $49 one-time (no subscription). Config Scout with AI-pattern detection, Custom Skills Generator, Trading guardrails, full Auditor Summary exports.
Team — $99/month. Everything in Builder plus team sharing, config versioning, branded runbooks, the /monitor run-report dashboard, priority support.
Enterprise — From $399/month or $4,500/year. Dedicated onboarding, volume licensing, custom compliance exports, white-glove support.
Governance Audit — From $2,500, delivered in 5 business days. Expert-delivered, for teams that want the outcome without learning the platform.
Observer — $497 per month. Standing third-party monitoring: monthly drift reports, quarterly tamper-evident evidence bundle. Manage or cancel your subscription any time through the Stripe billing portal.
Key Platform Features
Governance Wizard
24-step guided wizard: agent goal, operator mode, runtime target, budget caps, forbidden actions, model routing, scheduling, escalation rules, skill sources, and risk thresholds. Live Autonomy Intensity Meter (0–100) with top-3 risk drivers. Four editions: Solo, Trading, Agency, Enterprise. Five governance templates: Research, Content, DevOps, Support, Trading.
Config Scout (/optimize)
Upload or paste any existing AI agent config. Scans against 40+ heuristic patterns across all 5 heuristic runtimes (Google ADK, OpenAI Agents SDK, LangGraph, CrewAI, Claude / Anthropic SDK). Returns suggested fixes and a governance pack. Closes compliance gaps in seconds. Available in Builder and above.
Runtime Hygiene Engine (/hygiene)
7-card advisory dashboard: Session file count, session registry size, large session transcripts, orphaned session references, scheduler / cron log size, stale path references and overall cleanup confidence. Generates maintenance policies and actionable repair commands.
Auditor Compliance Summary
10-section compliance summary bundled in every governance ZIP. Covers EU AI Act, NIST AI RMF, ISO/IEC 42001, SOC 2, and GDPR. EU AI Act coverage spans Articles 9, 10, 13, 14, 17 and 62. The EU AI Omnibus (Regulation (EU) 2026/1744, in force 27 July 2026) moved stand-alone high-risk (Annex III) obligations to 2 December 2027 and product-embedded (Annex I) to 2 August 2028. Article 50 transparency obligations have applied since 2 August 2026.
Your agents send their own run reports to POST /api/runs/ingest with an API key; ClawMaven does not connect to or watch your runtime. The /monitor dashboard lists the reports it receives by agent (status, last-seen time, error counts), re-fetches them every 30 seconds while Live mode is on, applies alert rules for cost spikes, error rates and budget breaches, and exports an incident summary for compliance review. Team and Enterprise.
Custom Skills Generator (/skills-generator)
Runtime-agnostic 6-step wizard for building custom AI agent skills with defined inputs, outputs, permissions, and safety rails. ZIP README includes Runtime Quick-Start install guides for OpenClaw, CrewAI, LangGraph, Agent Zero, and NullClaw. Builder/Team tiers.