@neuroverseos/governance 0.6.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,109 +2,52 @@
2
2
 
3
3
  // src/cli/neuroverse.ts
4
4
  var USAGE = `
5
- neuroverse \u2014 Turn ideas into worlds.
5
+ neuroverse \u2014 Behavioral governance for AI systems.
6
6
 
7
- Commands:
7
+ Behavioral modeling:
8
+ worldmodel Build behavioral models (init, validate, build, explain, infer)
9
+ radiant Behavioral intelligence for collaboration (think, emergent, lenses)
10
+ lens Manage behavioral lenses (list, preview, compile, compare, add)
11
+
12
+ Runtime governance:
13
+ guard Evaluate events against a world (stdin \u2192 stdout)
14
+ plan Plan enforcement (compile, check, status, advance, derive)
15
+ run Governed runtime (pipe mode or interactive chat)
16
+ mcp MCP governance server (for Claude, Cursor, etc.)
17
+
18
+ World management:
19
+ world Manage worlds (status, diff, snapshot, rollback, list)
8
20
  add Add a guard, rule, or invariant to a world
9
- build Build a world from markdown (derive + compile in one step)
10
- explain Human-readable summary of a compiled world
11
- simulate Step-by-step state evolution
12
- improve Actionable suggestions for strengthening a world
13
- init Scaffold a new .nv-world.md template
14
- init-world Generate a governed world from a template (e.g., autoresearch)
15
- infer-world Scan a repo and infer a governance world from its structure
21
+ build Build a world from markdown (derive + compile)
16
22
  validate Static analysis on world files
17
- guard Runtime governance evaluation (stdin \u2192 stdout)
23
+ explain Human-readable summary of a compiled world
24
+
25
+ Testing:
18
26
  test Run guard simulation suite against a world
19
27
  redteam Adversarial containment testing (agent escape detection)
20
- demo Interactive governance demo (flow viz + simulation)
21
28
  doctor Environment sanity check
22
- playground Interactive web demo (opens in browser)
23
- plan Plan enforcement (compile, check, status, advance, derive)
24
- run Governed runtime (pipe mode or interactive chat)
25
- mcp MCP governance server (for Claude, Cursor, etc.)
26
- worlds List available worlds (alias for world list)
27
- trace Runtime action audit log
28
- impact Counterfactual governance impact report
29
- decision-flow Intent \u2192 Rule \u2192 Outcome visualization (behavioral governance)
30
- equity-penalties Fortune 500 equity PENALIZE/REWARD simulation
31
- world World management (status, diff, snapshot, rollback)
29
+
30
+ Administration:
32
31
  keygen Generate Ed25519 signing keypair
33
- sign Sign a world artifact (cryptographic manifest)
32
+ sign Sign a world artifact
34
33
  verify Verify a signed world artifact
35
34
  migrate Migrate world schema between versions
36
- derive AI-assisted synthesis of .nv-world.md from markdown
37
- bootstrap Compile .nv-world.md \u2192 world JSON files
38
35
  configure-ai Configure AI provider credentials
39
- configure-world Interactive wizard: define your system in plain language
40
- lens Manage behavioral lenses (list, preview, compile, compare, add)
41
- worldmodel Behavioral world model builder (init, validate, build, explain)
42
36
 
43
- Usage:
44
- neuroverse add "Block dairy orders" --world <dir>
45
- neuroverse add guard --world <dir> --label "Block dairy" --pattern "*dairy*"
46
- neuroverse add rule --world <dir> --label "Cost overrun" --trigger "cost > 100" --effect "viability *= 0.5"
47
- neuroverse add invariant --world <dir> --label "Budget must never exceed 1000"
48
- neuroverse build <input.md> [--output <dir>]
49
- neuroverse explain <world-path-or-id> [--json]
50
- neuroverse simulate <world-path-or-id> [--steps N] [--set key=value] [--profile name]
51
- neuroverse improve <world-path-or-id> [--json]
52
- neuroverse init [--name "World Name"] [--output path]
53
- neuroverse init-world autoresearch [--context "topic"] [--dataset "name"] [--goal "goal"]
54
- neuroverse infer-world ./repo [--output path] [--json] [--dry-run]
55
- neuroverse validate --world <dir> [--format full|summary|findings]
56
- neuroverse guard --world <dir> [--trace] [--level basic|standard|strict]
57
- neuroverse test --world <dir> [--fuzz] [--count N]
58
- neuroverse redteam --world <dir> [--level basic|standard|strict]
59
- neuroverse demo [--world social-media] [--port 3456] [--no-browser]
60
- neuroverse doctor [--world <dir>] [--json]
61
- neuroverse playground --world <dir> [--port 4242]
62
- neuroverse trace [--log <path>] [--summary] [--filter BLOCK] [--last 20]
63
- neuroverse impact [--log <path>] [--json]
64
- neuroverse world status <path>
65
- neuroverse world diff <path1> <path2>
66
- neuroverse world snapshot <path>
67
- neuroverse world rollback <path>
68
- neuroverse derive --input <path> [--output <path>] [--dry-run]
69
- neuroverse bootstrap --input <.md> --output <dir> [--validate]
70
- neuroverse decision-flow [--log <path>] [--json]
71
- neuroverse equity-penalties --world <dir> [--agents N] [--rounds N] [--json]
72
- neuroverse configure-ai --provider <name> --model <name> --api-key <key>
73
- neuroverse configure-world [--output <dir>]
74
- neuroverse keygen [--output <dir>] [--name <name>]
75
- neuroverse sign --world <dir> [--key <path>]
76
- neuroverse verify --world <dir> [--key <path>]
77
- neuroverse migrate --world <dir> [--dry-run] [--backup]
78
- neuroverse lens list [--world <dir>] [--json]
79
- neuroverse lens preview <id> [--world <dir>]
80
- neuroverse lens compile <id,...> [--world <dir>] [--role <role>] [--json]
81
- neuroverse lens compare --input "text" --lenses stoic,coach,calm
82
- neuroverse lens add --world <dir> --name "Name" --tagline "..." [options]
83
- neuroverse worldmodel init --name "My Model"
84
- neuroverse worldmodel build ./model.worldmodel.md --output ./world/
85
- neuroverse worldmodel explain ./model.worldmodel.md
37
+ Quick start:
38
+ neuroverse worldmodel init --name "My Model" Create a behavioral model
39
+ neuroverse worldmodel build ./model.worldmodel.md Compile it
40
+ neuroverse radiant think --lens auki-builder \\
41
+ --worlds ./worlds/ --query "..." Ask through the model
42
+ neuroverse radiant emergent owner/repo \\
43
+ --lens auki-builder --worlds ./worlds/ Behavioral read on a repo
86
44
 
87
- Examples:
88
- neuroverse build horror-notes.md
89
- neuroverse explain inherited_silence
90
- neuroverse simulate inherited_silence --steps 5
91
- neuroverse improve inherited_silence
92
- neuroverse build ./docs/ --output ./my-world/
93
- neuroverse init --name "Customer Service Governance"
94
- neuroverse validate --world ./world/ --format summary
95
- echo '{"intent":"delete user data"}' | neuroverse guard --world ./world/ --trace
45
+ Governance:
46
+ echo '{"intent":"..."}' | neuroverse guard --world ./world/
96
47
  neuroverse plan compile plan.md --output plan.json
97
- echo '{"intent":"write blog"}' | neuroverse plan check --plan plan.json
98
- neuroverse plan status --plan plan.json
99
- neuroverse plan advance write_blog_post --plan plan.json
100
- neuroverse plan derive plan.md --output ./derived-world/
101
48
  neuroverse run --pipe --world ./world/ --plan plan.json
102
- neuroverse run --interactive --world ./world/ --provider openai
103
49
  neuroverse mcp --world ./world/ --plan plan.json
104
50
  neuroverse test --world ./world/ --fuzz --count 50
105
- neuroverse redteam --world ./world/ --level strict
106
- neuroverse doctor
107
- neuroverse playground --world ./world/
108
51
  `.trim();
109
52
  async function main() {
110
53
  const args = process.argv.slice(2);
@@ -116,7 +59,7 @@ async function main() {
116
59
  return addMain(subArgs);
117
60
  }
118
61
  case "build": {
119
- const { main: buildMain } = await import("../build-UTVDGHB3.js");
62
+ const { main: buildMain } = await import("../build-EGBGZFIJ.js");
120
63
  return buildMain(subArgs);
121
64
  }
122
65
  case "explain": {
@@ -132,6 +75,7 @@ async function main() {
132
75
  return improveMain(subArgs);
133
76
  }
134
77
  case "init": {
78
+ process.stderr.write("\x1B[2mNote: `neuroverse init` scaffolds .nv-world.md files. For behavioral models, use `neuroverse worldmodel init` instead.\x1B[0m\n");
135
79
  const { main: initMain } = await import("../init-TKIJDR7I.js");
136
80
  return initMain(subArgs);
137
81
  }
@@ -144,6 +88,7 @@ async function main() {
144
88
  return inferWorldMain(subArgs);
145
89
  }
146
90
  case "bootstrap": {
91
+ process.stderr.write("\x1B[2mNote: `neuroverse bootstrap` compiles .nv-world.md files. For behavioral models, use `neuroverse worldmodel build` instead.\x1B[0m\n");
147
92
  const { main: bootstrapMain } = await import("../bootstrap-2OW5ZLBL.js");
148
93
  return bootstrapMain(subArgs);
149
94
  }
@@ -208,7 +153,8 @@ async function main() {
208
153
  return worldMain(subArgs);
209
154
  }
210
155
  case "derive": {
211
- const { main: deriveMain } = await import("../derive-42IJW7JI.js");
156
+ process.stderr.write("\x1B[2mNote: `neuroverse derive` is included in `neuroverse build`. Consider using `neuroverse build` for the combined derive + compile step.\x1B[0m\n");
157
+ const { main: deriveMain } = await import("../derive-7Y7YWVLU.js");
212
158
  return deriveMain(subArgs);
213
159
  }
214
160
  case "decision-flow": {
@@ -236,10 +182,11 @@ async function main() {
236
182
  return migrateMain(subArgs);
237
183
  }
238
184
  case "configure-ai": {
239
- const { main: configureAiMain } = await import("../configure-ai-5MP5DWTT.js");
185
+ const { main: configureAiMain } = await import("../configure-ai-LL3VAPQW.js");
240
186
  return configureAiMain(subArgs);
241
187
  }
242
188
  case "configure-world": {
189
+ process.stderr.write("\x1B[2mNote: For behavioral models, use `neuroverse worldmodel init` instead. `configure-world` is the interactive wizard for .nv-world.md files.\x1B[0m\n");
243
190
  const { main: configureWorldMain } = await import("../configure-world-XU2COHOZ.js");
244
191
  return configureWorldMain(subArgs);
245
192
  }
@@ -251,6 +198,10 @@ async function main() {
251
198
  const { main: worldmodelMain } = await import("./worldmodel.js");
252
199
  return worldmodelMain(subArgs);
253
200
  }
201
+ case "radiant": {
202
+ const { main: radiantMain } = await import("./radiant.js");
203
+ return radiantMain(subArgs);
204
+ }
254
205
  case "--help":
255
206
  case "-h":
256
207
  case "help":