@neuroverseos/governance 0.5.0 → 0.6.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.
Files changed (133) hide show
  1. package/README.md +244 -0
  2. package/dist/adapters/autoresearch.d.cts +2 -1
  3. package/dist/adapters/autoresearch.d.ts +2 -1
  4. package/dist/adapters/autoresearch.js +2 -2
  5. package/dist/adapters/deep-agents.d.cts +3 -2
  6. package/dist/adapters/deep-agents.d.ts +3 -2
  7. package/dist/adapters/deep-agents.js +2 -2
  8. package/dist/adapters/express.d.cts +2 -1
  9. package/dist/adapters/express.d.ts +2 -1
  10. package/dist/adapters/express.js +2 -2
  11. package/dist/adapters/github.cjs +1697 -0
  12. package/dist/adapters/github.d.cts +225 -0
  13. package/dist/adapters/github.d.ts +225 -0
  14. package/dist/adapters/github.js +27 -0
  15. package/dist/adapters/index.d.cts +4 -316
  16. package/dist/adapters/index.d.ts +4 -316
  17. package/dist/adapters/index.js +23 -21
  18. package/dist/adapters/langchain.d.cts +3 -2
  19. package/dist/adapters/langchain.d.ts +3 -2
  20. package/dist/adapters/langchain.js +2 -2
  21. package/dist/adapters/mentraos.cjs +2181 -0
  22. package/dist/adapters/mentraos.d.cts +319 -0
  23. package/dist/adapters/mentraos.d.ts +319 -0
  24. package/dist/{mentraos-LLH7KEV4.js → adapters/mentraos.js} +12 -10
  25. package/dist/adapters/openai.d.cts +3 -2
  26. package/dist/adapters/openai.d.ts +3 -2
  27. package/dist/adapters/openai.js +2 -2
  28. package/dist/adapters/openclaw.d.cts +3 -2
  29. package/dist/adapters/openclaw.d.ts +3 -2
  30. package/dist/adapters/openclaw.js +2 -2
  31. package/dist/{add-LYHDZ5RL.js → add-XSANI3FK.js} +1 -1
  32. package/dist/admin/index.cjs +2214 -0
  33. package/dist/admin/index.d.cts +362 -0
  34. package/dist/admin/index.d.ts +362 -0
  35. package/dist/admin/index.js +703 -0
  36. package/dist/bootstrap-contract-DcV6t-8M.d.cts +216 -0
  37. package/dist/bootstrap-contract-DcV6t-8M.d.ts +216 -0
  38. package/dist/{build-SCAWPA7E.js → build-UTVDGHB3.js} +5 -5
  39. package/dist/{chunk-JKGPSFGH.js → chunk-7FL3U7Z5.js} +3 -3
  40. package/dist/chunk-A2UZTLRV.js +421 -0
  41. package/dist/{chunk-TD5GKIHP.js → chunk-B3IIPTY3.js} +3 -3
  42. package/dist/chunk-EQR7BGFN.js +337 -0
  43. package/dist/{chunk-5JUZ4HL7.js → chunk-FDPPZLSQ.js} +3 -3
  44. package/dist/{chunk-MFKHTE5R.js → chunk-FKQCPRKI.js} +3 -3
  45. package/dist/{chunk-7D7PZLB7.js → chunk-FS2UUJJO.js} +3 -3
  46. package/dist/{chunk-U6FRAEQJ.js → chunk-GJ6LM4JZ.js} +1 -441
  47. package/dist/chunk-H3REGQRI.js +107 -0
  48. package/dist/{chunk-25XHSTPT.js → chunk-HDNDL6D5.js} +3 -3
  49. package/dist/{chunk-BXLTEUS4.js → chunk-I4RTIMLX.js} +2 -2
  50. package/dist/chunk-IOVXB6QN.js +447 -0
  51. package/dist/{chunk-Y6WXAPKY.js → chunk-NTHXZAW4.js} +3 -3
  52. package/dist/{chunk-UTH7OXTM.js → chunk-OTZU76DH.js} +22 -4
  53. package/dist/{chunk-DWHUZUEY.js → chunk-T6GMRZWC.js} +3 -3
  54. package/dist/{chunk-V4FZHJQX.js → chunk-TIXVEPS2.js} +3 -3
  55. package/dist/{chunk-YNYCQECH.js → chunk-TJ5L2UTE.js} +3 -3
  56. package/dist/chunk-UGTNKTHS.js +542 -0
  57. package/dist/cli/neuroverse.cjs +3372 -523
  58. package/dist/cli/neuroverse.js +53 -21
  59. package/dist/cli/plan.js +2 -2
  60. package/dist/cli/run.cjs +242 -139
  61. package/dist/cli/run.js +23 -3
  62. package/dist/cli/worldmodel.cjs +1624 -0
  63. package/dist/cli/worldmodel.d.cts +24 -0
  64. package/dist/cli/worldmodel.d.ts +24 -0
  65. package/dist/cli/worldmodel.js +742 -0
  66. package/dist/{demo-66MMJTEH.js → demo-6W3YXLAX.js} +4 -4
  67. package/dist/{derive-AUQE3L3P.js → derive-42IJW7JI.js} +4 -4
  68. package/dist/{doctor-EY7LKSYY.js → doctor-XEMLO6UA.js} +3 -2
  69. package/dist/engine/bootstrap-emitter.cjs +241 -0
  70. package/dist/engine/bootstrap-emitter.d.cts +27 -0
  71. package/dist/engine/bootstrap-emitter.d.ts +27 -0
  72. package/dist/{bootstrap-emitter-GIMOJFOC.js → engine/bootstrap-emitter.js} +2 -2
  73. package/dist/engine/bootstrap-parser.cjs +560 -0
  74. package/dist/engine/bootstrap-parser.d.cts +96 -0
  75. package/dist/engine/bootstrap-parser.d.ts +96 -0
  76. package/dist/{bootstrap-parser-LBLGVEMU.js → engine/bootstrap-parser.js} +2 -2
  77. package/dist/engine/guard-engine.cjs +1116 -0
  78. package/dist/engine/guard-engine.d.cts +60 -0
  79. package/dist/engine/guard-engine.d.ts +60 -0
  80. package/dist/{guard-engine-N7TUIUU7.js → engine/guard-engine.js} +3 -3
  81. package/dist/engine/simulate-engine.cjs +390 -0
  82. package/dist/engine/simulate-engine.d.cts +105 -0
  83. package/dist/engine/simulate-engine.d.ts +105 -0
  84. package/dist/engine/simulate-engine.js +9 -0
  85. package/dist/engine/worldmodel-compiler.cjs +366 -0
  86. package/dist/engine/worldmodel-compiler.d.cts +46 -0
  87. package/dist/engine/worldmodel-compiler.d.ts +46 -0
  88. package/dist/engine/worldmodel-compiler.js +17 -0
  89. package/dist/engine/worldmodel-parser.cjs +566 -0
  90. package/dist/engine/worldmodel-parser.d.cts +22 -0
  91. package/dist/engine/worldmodel-parser.d.ts +22 -0
  92. package/dist/engine/worldmodel-parser.js +7 -0
  93. package/dist/{equity-penalties-WWC7UDQD.js → equity-penalties-CCO3GVHS.js} +6 -6
  94. package/dist/{explain-MUSGDT67.js → explain-HDFN4ION.js} +1 -1
  95. package/dist/{guard-W3BMQPBJ.js → guard-IHJEKHL2.js} +16 -4
  96. package/dist/{guard-contract-CLBbTGK_.d.ts → guard-contract-ddiIPlOg.d.cts} +2 -369
  97. package/dist/{guard-contract-CLBbTGK_.d.cts → guard-contract-q6HJAq3Q.d.ts} +2 -369
  98. package/dist/{improve-PJDAWW4Q.js → improve-LRORRYEX.js} +3 -3
  99. package/dist/index.cjs +471 -1
  100. package/dist/index.d.cts +14 -492
  101. package/dist/index.d.ts +14 -492
  102. package/dist/index.js +63 -42
  103. package/dist/keygen-BSZH3NM2.js +77 -0
  104. package/dist/{lens-IP6GIZ2Q.js → lens-TLDZQXBI.js} +152 -26
  105. package/dist/{mcp-server-OG3PPVD2.js → mcp-server-CKYBHXWK.js} +2 -2
  106. package/dist/migrate-NH5PVMX4.js +221 -0
  107. package/dist/{playground-4BK2XQ47.js → playground-3TTBN7XD.js} +5 -5
  108. package/dist/{redteam-BRZALBPP.js → redteam-W644UMWN.js} +3 -3
  109. package/dist/{session-SGRUT2UH.js → session-FMAROEIE.js} +2 -2
  110. package/dist/{shared-CwGpPheR.d.ts → shared-DAzdfWtU.d.ts} +1 -1
  111. package/dist/{shared-BGzmYP5g.d.cts → shared-PpalGKxc.d.cts} +1 -1
  112. package/dist/sign-RRELHKWM.js +11 -0
  113. package/dist/{simulate-FGXKIH7V.js → simulate-VT437EEL.js} +2 -2
  114. package/dist/{test-PT44BSYG.js → test-XDB2DH3L.js} +3 -3
  115. package/dist/types.cjs +18 -0
  116. package/dist/types.d.cts +370 -0
  117. package/dist/types.d.ts +370 -0
  118. package/dist/types.js +0 -0
  119. package/dist/{validate-Q5O5TGLT.js → validate-M52DX22Y.js} +1 -1
  120. package/dist/verify-6AVTWX75.js +151 -0
  121. package/dist/{world-V52ZMH26.js → world-O4HTQPDP.js} +1 -1
  122. package/dist/{world-loader-C4D3VPP3.js → world-loader-YTYFOP7D.js} +1 -1
  123. package/dist/worldmodel-contract-BPGhiuW5.d.cts +221 -0
  124. package/dist/worldmodel-contract-BPGhiuW5.d.ts +221 -0
  125. package/dist/worlds/auki-vanguard.worldmodel.md +116 -0
  126. package/dist/worlds/behavioral-demo.nv-world.md +130 -0
  127. package/dist/worlds/neuroverse-governance.worldmodel.md +115 -0
  128. package/package.json +44 -3
  129. package/dist/{bootstrap-IP5QMC3Q.js → bootstrap-2OW5ZLBL.js} +3 -3
  130. package/dist/{chunk-4G6WHPLI.js → chunk-735Z3HA4.js} +6 -6
  131. package/dist/{chunk-7QIAF377.js → chunk-CYDMUJVZ.js} +0 -0
  132. package/dist/{configure-ai-LL3VAPQW.js → configure-ai-5MP5DWTT.js} +3 -3
  133. package/dist/{decision-flow-3K4D72G4.js → decision-flow-IJPNMVQK.js} +3 -3
@@ -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.0",
3
+ "version": "0.6.0",
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",
@@ -57,6 +57,46 @@
57
57
  "types": "./dist/index.d.ts",
58
58
  "import": "./dist/index.js",
59
59
  "require": "./dist/index.cjs"
60
+ },
61
+ "./adapters/mentraos": {
62
+ "types": "./dist/adapters/mentraos.d.ts",
63
+ "import": "./dist/adapters/mentraos.js",
64
+ "require": "./dist/adapters/mentraos.cjs"
65
+ },
66
+ "./adapters/github": {
67
+ "types": "./dist/adapters/github.d.ts",
68
+ "import": "./dist/adapters/github.js",
69
+ "require": "./dist/adapters/github.cjs"
70
+ },
71
+ "./engine/guard-engine": {
72
+ "types": "./dist/engine/guard-engine.d.ts",
73
+ "import": "./dist/engine/guard-engine.js",
74
+ "require": "./dist/engine/guard-engine.cjs"
75
+ },
76
+ "./engine/simulate-engine": {
77
+ "types": "./dist/engine/simulate-engine.d.ts",
78
+ "import": "./dist/engine/simulate-engine.js",
79
+ "require": "./dist/engine/simulate-engine.cjs"
80
+ },
81
+ "./engine/bootstrap-parser": {
82
+ "types": "./dist/engine/bootstrap-parser.d.ts",
83
+ "import": "./dist/engine/bootstrap-parser.js",
84
+ "require": "./dist/engine/bootstrap-parser.cjs"
85
+ },
86
+ "./engine/bootstrap-emitter": {
87
+ "types": "./dist/engine/bootstrap-emitter.d.ts",
88
+ "import": "./dist/engine/bootstrap-emitter.js",
89
+ "require": "./dist/engine/bootstrap-emitter.cjs"
90
+ },
91
+ "./types": {
92
+ "types": "./dist/types.d.ts",
93
+ "import": "./dist/types.js",
94
+ "require": "./dist/types.cjs"
95
+ },
96
+ "./admin": {
97
+ "types": "./dist/admin/index.d.ts",
98
+ "import": "./dist/admin/index.js",
99
+ "require": "./dist/admin/index.cjs"
60
100
  }
61
101
  },
62
102
  "bin": {
@@ -78,14 +118,15 @@
78
118
  ".well-known"
79
119
  ],
80
120
  "scripts": {
81
- "build": "tsup src/index.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/spatial/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",
121
+ "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/cli/worldmodel.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 --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",
82
123
  "build:browser": "tsup src/browser.ts --format iife --global-name NeuroVerse --outDir dist --no-dts",
83
124
  "build:viz": "vite build",
84
125
  "dev:viz": "vite dev",
85
126
  "prebuild": "mkdir -p dist/worlds",
86
127
  "dev": "tsup src/index.ts src/cli/neuroverse.ts --format esm,cjs --dts --watch",
87
128
  "prepublishOnly": "npm run build",
88
- "test": "vitest run",
129
+ "test": "node scripts-vitest-runner.mjs",
89
130
  "test:watch": "vitest"
90
131
  },
91
132
  "devDependencies": {
@@ -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
- createProvider
3
- } from "./chunk-INWQHLPS.js";
4
1
  import {
5
2
  loadConfig
6
3
  } from "./chunk-OT6PXH54.js";
4
+ import {
5
+ createProvider
6
+ } from "./chunk-INWQHLPS.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";
7
4
  import {
8
5
  getConfigPath,
9
6
  loadConfig,
10
7
  redactConfig,
11
8
  saveConfig
12
9
  } 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
@@ -1,10 +1,10 @@
1
- import {
2
- readAuditLog
3
- } from "./chunk-2VAWP6FI.js";
4
1
  import {
5
2
  generateDecisionFlow,
6
3
  renderDecisionFlow
7
4
  } from "./chunk-D2UCV5AK.js";
5
+ import {
6
+ readAuditLog
7
+ } from "./chunk-2VAWP6FI.js";
8
8
  import "./chunk-ZAF6JH23.js";
9
9
  import "./chunk-QLPTHTVB.js";
10
10
  import "./chunk-QWGCMQQD.js";