@neuroverseos/governance 0.5.1 → 0.6.1

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.
Files changed (81) hide show
  1. package/README.md +55 -0
  2. package/dist/adapters/autoresearch.js +2 -2
  3. package/dist/adapters/deep-agents.js +2 -2
  4. package/dist/adapters/express.js +2 -2
  5. package/dist/adapters/github.js +2 -2
  6. package/dist/adapters/index.js +8 -8
  7. package/dist/adapters/langchain.js +2 -2
  8. package/dist/adapters/mentraos.js +2 -2
  9. package/dist/adapters/openai.js +2 -2
  10. package/dist/adapters/openclaw.js +2 -2
  11. package/dist/{add-JP7TC2K3.js → add-XSANI3FK.js} +1 -1
  12. package/dist/{build-THUEYMVT.js → build-EGBGZFIJ.js} +5 -5
  13. package/dist/{chunk-TZBERHFM.js → chunk-7FL3U7Z5.js} +1 -1
  14. package/dist/{chunk-FGOSKQDE.js → chunk-A2UZTLRV.js} +1 -1
  15. package/dist/chunk-AEVT7DSZ.js +1208 -0
  16. package/dist/{chunk-R23T5SZG.js → chunk-B3IIPTY3.js} +1 -1
  17. package/dist/chunk-EQR7BGFN.js +337 -0
  18. package/dist/{chunk-LAKUB76X.js → chunk-FDPPZLSQ.js} +1 -1
  19. package/dist/{chunk-UZBW44KD.js → chunk-FKQCPRKI.js} +1 -1
  20. package/dist/{chunk-XPMZB46F.js → chunk-FS2UUJJO.js} +3 -3
  21. package/dist/{chunk-6UPEUMJ2.js → chunk-HDNDL6D5.js} +1 -1
  22. package/dist/{chunk-7UU7V3AD.js → chunk-IOVXB6QN.js} +1 -1
  23. package/dist/{chunk-EK77AJAH.js → chunk-OTZU76DH.js} +1 -1
  24. package/dist/{chunk-5RAQ5DZW.js → chunk-T6GMRZWC.js} +1 -1
  25. package/dist/{chunk-RF2L5SYG.js → chunk-TIXVEPS2.js} +1 -1
  26. package/dist/{chunk-TL4DLMMW.js → chunk-TJ5L2UTE.js} +1 -1
  27. package/dist/chunk-UGTNKTHS.js +542 -0
  28. package/dist/chunk-VGFDMPVB.js +436 -0
  29. package/dist/cli/neuroverse.cjs +4089 -328
  30. package/dist/cli/neuroverse.js +62 -103
  31. package/dist/cli/plan.js +1 -1
  32. package/dist/cli/radiant.cjs +2058 -0
  33. package/dist/cli/radiant.d.cts +25 -0
  34. package/dist/cli/radiant.d.ts +25 -0
  35. package/dist/cli/radiant.js +422 -0
  36. package/dist/cli/run.js +2 -2
  37. package/dist/cli/worldmodel.cjs +1624 -0
  38. package/dist/cli/worldmodel.d.cts +24 -0
  39. package/dist/cli/worldmodel.d.ts +24 -0
  40. package/dist/cli/worldmodel.js +742 -0
  41. package/dist/{demo-N5K4VXJW.js → demo-6W3YXLAX.js} +2 -2
  42. package/dist/{derive-5LOMN7GO.js → derive-7Y7YWVLU.js} +4 -4
  43. package/dist/engine/worldmodel-compiler.cjs +366 -0
  44. package/dist/engine/worldmodel-compiler.d.cts +46 -0
  45. package/dist/engine/worldmodel-compiler.d.ts +46 -0
  46. package/dist/engine/worldmodel-compiler.js +17 -0
  47. package/dist/engine/worldmodel-parser.cjs +566 -0
  48. package/dist/engine/worldmodel-parser.d.cts +22 -0
  49. package/dist/engine/worldmodel-parser.d.ts +22 -0
  50. package/dist/engine/worldmodel-parser.js +7 -0
  51. package/dist/{equity-penalties-PYCJ3Q4U.js → equity-penalties-CCO3GVHS.js} +1 -1
  52. package/dist/{explain-42TVC3QD.js → explain-HDFN4ION.js} +1 -1
  53. package/dist/{guard-TPYDFG6V.js → guard-IHJEKHL2.js} +1 -1
  54. package/dist/{improve-HLZGJ54Z.js → improve-LRORRYEX.js} +1 -1
  55. package/dist/index.js +29 -29
  56. package/dist/{lens-NFGZHD76.js → lens-TLDZQXBI.js} +61 -2
  57. package/dist/lenses-K5FVSALR.js +13 -0
  58. package/dist/{mcp-server-5XXNG6VC.js → mcp-server-CKYBHXWK.js} +2 -2
  59. package/dist/{playground-2EU5CFIH.js → playground-3TTBN7XD.js} +1 -1
  60. package/dist/radiant/index.cjs +1700 -0
  61. package/dist/radiant/index.d.cts +1163 -0
  62. package/dist/radiant/index.d.ts +1163 -0
  63. package/dist/radiant/index.js +75 -0
  64. package/dist/{redteam-VK6OVHAE.js → redteam-W644UMWN.js} +1 -1
  65. package/dist/{session-NGA4DUPL.js → session-FMAROEIE.js} +2 -2
  66. package/dist/{simulate-4YNOBMES.js → simulate-VT437EEL.js} +1 -1
  67. package/dist/{test-HDBPMQTG.js → test-XDB2DH3L.js} +1 -1
  68. package/dist/{validate-6MFQZ2EG.js → validate-M52DX22Y.js} +1 -1
  69. package/dist/{world-H5WVURKU.js → world-O4HTQPDP.js} +1 -1
  70. package/dist/{world-loader-J47PCPDZ.js → world-loader-YTYFOP7D.js} +1 -1
  71. package/dist/worldmodel-contract-BPGhiuW5.d.cts +221 -0
  72. package/dist/worldmodel-contract-BPGhiuW5.d.ts +221 -0
  73. package/dist/worlds/auki-vanguard.worldmodel.md +116 -0
  74. package/dist/worlds/behavioral-demo.nv-world.md +177 -0
  75. package/dist/worlds/neuroverse-governance.worldmodel.md +115 -0
  76. package/package.json +7 -2
  77. package/dist/{bootstrap-IP5QMC3Q.js → bootstrap-2OW5ZLBL.js} +3 -3
  78. package/dist/{chunk-QZ666FCV.js → chunk-FHXXD2TI.js} +6 -6
  79. package/dist/{chunk-EQUAWNXW.js → chunk-I4RTIMLX.js} +0 -0
  80. package/dist/{configure-ai-5MP5DWTT.js → configure-ai-LL3VAPQW.js} +3 -3
  81. /package/dist/{doctor-Q5APJOTS.js → doctor-XEMLO6UA.js} +0 -0
@@ -0,0 +1,177 @@
1
+ ---
2
+ world_id: behavioral-demo
3
+ name: Behavioral Governance Runtime
4
+ version: 2.0.0
5
+ default_profile: baseline
6
+ alternative_profile: pressure
7
+ ---
8
+
9
+ # Thesis
10
+
11
+ Behavior should be interpreted through repeated action, clarity of ownership, and consistency between stated intent and follow-through. Decisions are governed by observed alignment, not stated confidence. When the system must choose — ship, delay, or escalate — it reads behavior, not promises.
12
+
13
+ # Invariants
14
+
15
+ - `behavior_over_promises` — Repeated action is stronger evidence than stated intent (structural, immutable)
16
+ - `clarity_matters` — Ambiguity and ownership diffusion are meaningful behavioral signals (structural, immutable)
17
+ - `decisions_follow_alignment` — Decisions must reflect measured alignment, not declared readiness (structural, immutable)
18
+
19
+ # State
20
+
21
+ ## follow_through
22
+ - type: number
23
+ - min: 0
24
+ - max: 100
25
+ - step: 5
26
+ - default: 70
27
+ - label: Follow Through
28
+ - description: Measures how consistently actions match stated commitments
29
+
30
+ ## clarity
31
+ - type: number
32
+ - min: 0
33
+ - max: 100
34
+ - step: 5
35
+ - default: 75
36
+ - label: Clarity
37
+ - description: Measures directness and explicitness of communication
38
+
39
+ ## alignment_score
40
+ - type: number
41
+ - min: 0
42
+ - max: 100
43
+ - step: 5
44
+ - default: 80
45
+ - label: Alignment Score
46
+ - description: Measures consistency between stated priorities and actual behavior
47
+
48
+ ## decision
49
+ - type: enum
50
+ - options: no_decision, ship_now, delay, escalate
51
+ - default: no_decision
52
+ - label: Decision
53
+ - description: Governed output — what the system recommends based on behavioral alignment
54
+
55
+ # Assumptions
56
+
57
+ ## baseline
58
+ - name: Baseline
59
+ - description: Normal operating conditions
60
+ - pressure_level: medium
61
+
62
+ ## pressure
63
+ - name: Pressure
64
+ - description: Higher stress and ambiguity environment
65
+ - pressure_level: high
66
+
67
+ # Rules
68
+
69
+ ## rule-001: ambiguity erodes alignment (degradation)
70
+ Repeated ambiguity weakens trust in stated intent.
71
+
72
+ When clarity < 50 [state]
73
+ Then alignment_score *= 0.80
74
+
75
+ > trigger: Communication becomes vague or indirect.
76
+ > rule: Reduced clarity lowers confidence in alignment.
77
+ > shift: Interpretation becomes more cautious.
78
+ > effect: Alignment score declines.
79
+
80
+ ## rule-002: weak follow-through erodes alignment (degradation)
81
+ Failure to follow through consistently weakens credibility.
82
+
83
+ When follow_through < 60 [state]
84
+ Then alignment_score *= 0.75
85
+ Collapse: alignment_score < 30
86
+
87
+ > trigger: Commitments are not consistently honored.
88
+ > rule: Action matters more than promises.
89
+ > shift: Behavior is interpreted as misaligned.
90
+ > effect: Alignment score drops sharply.
91
+
92
+ ## rule-003: strong execution reinforces alignment (advantage)
93
+ Consistent action strengthens trust in intent.
94
+
95
+ When follow_through >= 85 [state] AND clarity >= 80 [state]
96
+ Then alignment_score *= 1.10
97
+
98
+ > trigger: Clear communication and strong execution occur together.
99
+ > rule: Consistency strengthens alignment.
100
+ > shift: Interpretation becomes more confident.
101
+ > effect: Alignment score improves.
102
+
103
+ ## rule-004: alignment supports shipping (advantage)
104
+ Strong alignment produces a ship decision.
105
+
106
+ When alignment_score >= 75 [state]
107
+ Then decision = "ship_now"
108
+
109
+ > trigger: Behavioral alignment is strong enough to act.
110
+ > rule: When actions match intent consistently, the system recommends execution.
111
+ > shift: Decision moves to ship.
112
+ > effect: Decision set to ship_now.
113
+
114
+ ## rule-005: ambiguity requires delay (degradation)
115
+ Moderate alignment produces a delay decision.
116
+
117
+ When alignment_score < 75 [state] AND alignment_score >= 45 [state]
118
+ Then decision = "delay"
119
+
120
+ > trigger: Alignment is uncertain — behavior and intent are not fully consistent.
121
+ > rule: When signals are mixed, the system recommends waiting for clarity.
122
+ > shift: Decision moves to delay.
123
+ > effect: Decision set to delay.
124
+
125
+ ## rule-006: misalignment triggers escalation (structural)
126
+ Weak alignment produces an escalate decision.
127
+
128
+ When alignment_score < 45 [state]
129
+ Then decision = "escalate"
130
+
131
+ > trigger: Behavioral alignment has degraded below acceptable threshold.
132
+ > rule: When actions consistently contradict stated intent, the system escalates.
133
+ > shift: Decision moves to escalate.
134
+ > effect: Decision set to escalate.
135
+
136
+ # Gates
137
+
138
+ - STRONG: alignment_score >= 85
139
+ - STABLE: alignment_score >= 65
140
+ - WATCHING: alignment_score >= 45
141
+ - FRAGILE: alignment_score > 30
142
+ - MISALIGNED: alignment_score <= 30
143
+
144
+ # Outcomes
145
+
146
+ ## alignment_score
147
+ - type: number
148
+ - range: 0-100
149
+ - display: percentage
150
+ - label: Alignment Score
151
+ - primary: true
152
+
153
+ ## decision
154
+ - type: enum
155
+ - range: ship_now, delay, escalate, no_decision
156
+ - display: label
157
+ - label: Decision
158
+
159
+ # Lenses
160
+ - policy: role_default
161
+
162
+ ## behavioral-interpreter
163
+ - tagline: Read patterns, not promises.
164
+ - description: Interprets actions as signals, prioritizes repeated behavior over stated intent, and flags ambiguity, ownership diffusion, and misalignment.
165
+ - formality: neutral
166
+ - verbosity: concise
167
+ - emotion: neutral
168
+ - confidence: balanced
169
+ - tags: behavior, signals, alignment, analysis
170
+ - default_for_roles: all
171
+ - priority: 65
172
+ - stackable: true
173
+
174
+ > response_framing: Prioritize observed behavior and follow-through over stated intent.
175
+ > behavior_shaping: Look for repeated ambiguity, delay, or ownership diffusion as meaningful signals.
176
+ > value_emphasis: Name alignment or misalignment between words and actions clearly.
177
+ > content_filtering: Distinguish observed behavior from inference and speculation.
@@ -0,0 +1,115 @@
1
+ ---
2
+ name: NeuroVerse Governance
3
+ version: 1.0.0
4
+ ---
5
+
6
+ # Core Model Geometry
7
+
8
+ ## Mission
9
+ Provide trustworthy, deterministic, and composable AI governance that any system can adopt, inspect, and evolve.
10
+
11
+ ## Domains
12
+
13
+ ### World Building
14
+
15
+ #### Skills
16
+ - Constitutional Design
17
+ - State Modeling
18
+ - Rule Authoring
19
+ - Invariant Definition
20
+
21
+ #### Values
22
+ - Determinism over heuristics
23
+ - Inspectability of all governance logic
24
+ - Composability across systems
25
+
26
+ ### Behavioral Interpretation
27
+
28
+ #### Skills
29
+ - Signal Detection
30
+ - Drift Analysis
31
+ - Alignment Measurement
32
+ - Emergence Recognition
33
+
34
+ #### Values
35
+ - Behavior over promises
36
+ - Observation over inference
37
+ - Patterns over isolated events
38
+
39
+ ### Governance Evolution
40
+
41
+ #### Skills
42
+ - Assumption Testing
43
+ - Model Adaptation
44
+ - Controlled Rollout
45
+ - Impact Assessment
46
+
47
+ #### Values
48
+ - Stability before change
49
+ - Evidence-based evolution
50
+ - Human review of constitutional changes
51
+
52
+ ## Overlap Effects
53
+ - World Building + Behavioral Interpretation = Structural Clarity
54
+ - Behavioral Interpretation + Governance Evolution = Adaptive Trust
55
+ - Governance Evolution + World Building = Principled Progress
56
+
57
+ ## Center Identity
58
+ Trustworthy Governance Engine
59
+
60
+ # Contextual Modifiers
61
+
62
+ ## Authority Layers
63
+ - platform maintainer
64
+ - world author
65
+ - agent runtime
66
+ - external consumer
67
+
68
+ ## Spatial Contexts
69
+ - authoring
70
+ - compilation
71
+ - runtime evaluation
72
+ - simulation
73
+ - evolution
74
+
75
+ ## Interpretation Rules
76
+ - governance failures in runtime evaluation are more critical than in simulation
77
+ - world authors carry constitutional responsibility for invariant design
78
+ - agent runtime behavior must be fully traceable to declared rules
79
+ - external consumers should experience governance as transparent constraint, not black box
80
+ - evolution proposals from simulation contexts require human confirmation before promotion
81
+
82
+ # Evolution Layer
83
+
84
+ ## Aligned Behaviors
85
+ - every guard verdict traces to a declared rule or invariant
86
+ - world files remain human-readable and deterministically parseable
87
+ - governance logic compiles without LLM dependency
88
+ - changes to constitutional assumptions go through explicit review
89
+ - new features compose with existing worlds without breaking them
90
+
91
+ ## Drift Behaviors
92
+ - governance decisions that cannot be traced to source rules
93
+ - world files that require AI to interpret
94
+ - silent changes to invariants or thresholds
95
+ - validation logic that produces different results on repeated runs
96
+ - features that break existing world compatibility
97
+
98
+ ## Signals
99
+ - determinism
100
+ - traceability
101
+ - composability
102
+ - human_readability
103
+ - backward_compatibility
104
+
105
+ ## Decision Priorities
106
+ - correctness > convenience
107
+ - determinism > expressiveness
108
+ - backward_compatibility > new_features
109
+ - traceability > performance
110
+
111
+ ## Evolution Conditions
112
+ - when a world pattern appears in three or more independent adoptions, consider promoting to built-in
113
+ - when validation rules produce false positives across multiple worlds, refine the rule
114
+ - when new governance needs emerge that existing sections cannot express, propose a schema extension
115
+ - require changelog entry for every constitutional change
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neuroverseos/governance",
3
- "version": "0.5.1",
3
+ "version": "0.6.1",
4
4
  "description": "Deterministic governance engine for AI agents — enforce worlds (permanent rules) and plans (mission constraints) with full audit trace",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -97,6 +97,11 @@
97
97
  "types": "./dist/admin/index.d.ts",
98
98
  "import": "./dist/admin/index.js",
99
99
  "require": "./dist/admin/index.cjs"
100
+ },
101
+ "./radiant": {
102
+ "types": "./dist/radiant/index.d.ts",
103
+ "import": "./dist/radiant/index.js",
104
+ "require": "./dist/radiant/index.cjs"
100
105
  }
101
106
  },
102
107
  "bin": {
@@ -119,7 +124,7 @@
119
124
  ],
120
125
  "scripts": {
121
126
  "prepare": "npm run build",
122
- "build": "tsup src/index.ts src/types.ts src/cli/neuroverse.ts src/cli/plan.ts src/cli/run.ts src/adapters/index.ts src/adapters/langchain.ts src/adapters/openai.ts src/adapters/openclaw.ts src/adapters/express.ts src/adapters/autoresearch.ts src/adapters/deep-agents.ts src/adapters/mentraos.ts src/adapters/github.ts src/engine/guard-engine.ts src/engine/simulate-engine.ts src/engine/bootstrap-parser.ts src/engine/bootstrap-emitter.ts src/spatial/index.ts src/admin/index.ts --format esm,cjs --dts --clean && npm run build:browser && cp src/worlds/*.nv-world.md dist/worlds/ && cp src/spatial/zones/*.nv-world.md dist/worlds/ && npm run build:viz",
127
+ "build": "tsup src/index.ts src/types.ts src/cli/neuroverse.ts src/cli/plan.ts src/cli/run.ts src/cli/worldmodel.ts src/cli/radiant.ts src/adapters/index.ts src/adapters/langchain.ts src/adapters/openai.ts src/adapters/openclaw.ts src/adapters/express.ts src/adapters/autoresearch.ts src/adapters/deep-agents.ts src/adapters/mentraos.ts src/adapters/github.ts src/engine/guard-engine.ts src/engine/simulate-engine.ts src/engine/bootstrap-parser.ts src/engine/bootstrap-emitter.ts src/engine/worldmodel-parser.ts src/engine/worldmodel-compiler.ts src/spatial/index.ts src/admin/index.ts src/radiant/index.ts --format esm,cjs --dts --clean && npm run build:browser && cp src/worlds/*.nv-world.md dist/worlds/ && cp src/worlds/*.worldmodel.md dist/worlds/ && cp src/spatial/zones/*.nv-world.md dist/worlds/ && npm run build:viz",
123
128
  "build:browser": "tsup src/browser.ts --format iife --global-name NeuroVerse --outDir dist --no-dts",
124
129
  "build:viz": "vite build",
125
130
  "dev:viz": "vite dev",
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  BOOTSTRAP_EXIT_CODES
3
3
  } from "./chunk-4NGDRRQH.js";
4
- import {
5
- parseWorldMarkdown
6
- } from "./chunk-3NZMMSOW.js";
7
4
  import {
8
5
  emitWorldDefinition
9
6
  } from "./chunk-YPCVY4GS.js";
7
+ import {
8
+ parseWorldMarkdown
9
+ } from "./chunk-3NZMMSOW.js";
10
10
  import "./chunk-QWGCMQQD.js";
11
11
 
12
12
  // src/cli/bootstrap.ts
@@ -1,18 +1,18 @@
1
- import {
2
- loadConfig
3
- } from "./chunk-OT6PXH54.js";
4
1
  import {
5
2
  createProvider
6
3
  } from "./chunk-INWQHLPS.js";
4
+ import {
5
+ loadConfig
6
+ } from "./chunk-OT6PXH54.js";
7
7
  import {
8
8
  validateWorld
9
9
  } from "./chunk-7P3S7MAY.js";
10
- import {
11
- parseWorldMarkdown
12
- } from "./chunk-3NZMMSOW.js";
13
10
  import {
14
11
  emitWorldDefinition
15
12
  } from "./chunk-YPCVY4GS.js";
13
+ import {
14
+ parseWorldMarkdown
15
+ } from "./chunk-3NZMMSOW.js";
16
16
 
17
17
  // src/engine/derive-normalizer.ts
18
18
  function findSections(lines) {
File without changes
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  CONFIGURE_AI_EXIT_CODES
3
3
  } from "./chunk-FMSTRBBS.js";
4
+ import {
5
+ createProvider
6
+ } from "./chunk-INWQHLPS.js";
4
7
  import {
5
8
  getConfigPath,
6
9
  loadConfig,
7
10
  redactConfig,
8
11
  saveConfig
9
12
  } from "./chunk-OT6PXH54.js";
10
- import {
11
- createProvider
12
- } from "./chunk-INWQHLPS.js";
13
13
  import "./chunk-QWGCMQQD.js";
14
14
 
15
15
  // src/cli/configure-ai.ts
File without changes