@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.
- package/README.md +244 -0
- package/dist/adapters/autoresearch.d.cts +2 -1
- package/dist/adapters/autoresearch.d.ts +2 -1
- package/dist/adapters/autoresearch.js +2 -2
- package/dist/adapters/deep-agents.d.cts +3 -2
- package/dist/adapters/deep-agents.d.ts +3 -2
- package/dist/adapters/deep-agents.js +2 -2
- package/dist/adapters/express.d.cts +2 -1
- package/dist/adapters/express.d.ts +2 -1
- package/dist/adapters/express.js +2 -2
- package/dist/adapters/github.cjs +1697 -0
- package/dist/adapters/github.d.cts +225 -0
- package/dist/adapters/github.d.ts +225 -0
- package/dist/adapters/github.js +27 -0
- package/dist/adapters/index.d.cts +4 -316
- package/dist/adapters/index.d.ts +4 -316
- package/dist/adapters/index.js +23 -21
- package/dist/adapters/langchain.d.cts +3 -2
- package/dist/adapters/langchain.d.ts +3 -2
- package/dist/adapters/langchain.js +2 -2
- package/dist/adapters/mentraos.cjs +2181 -0
- package/dist/adapters/mentraos.d.cts +319 -0
- package/dist/adapters/mentraos.d.ts +319 -0
- package/dist/{mentraos-LLH7KEV4.js → adapters/mentraos.js} +12 -10
- package/dist/adapters/openai.d.cts +3 -2
- package/dist/adapters/openai.d.ts +3 -2
- package/dist/adapters/openai.js +2 -2
- package/dist/adapters/openclaw.d.cts +3 -2
- package/dist/adapters/openclaw.d.ts +3 -2
- package/dist/adapters/openclaw.js +2 -2
- package/dist/{add-LYHDZ5RL.js → add-XSANI3FK.js} +1 -1
- package/dist/admin/index.cjs +2214 -0
- package/dist/admin/index.d.cts +362 -0
- package/dist/admin/index.d.ts +362 -0
- package/dist/admin/index.js +703 -0
- package/dist/bootstrap-contract-DcV6t-8M.d.cts +216 -0
- package/dist/bootstrap-contract-DcV6t-8M.d.ts +216 -0
- package/dist/{build-SCAWPA7E.js → build-UTVDGHB3.js} +5 -5
- package/dist/{chunk-JKGPSFGH.js → chunk-7FL3U7Z5.js} +3 -3
- package/dist/chunk-A2UZTLRV.js +421 -0
- package/dist/{chunk-TD5GKIHP.js → chunk-B3IIPTY3.js} +3 -3
- package/dist/chunk-EQR7BGFN.js +337 -0
- package/dist/{chunk-5JUZ4HL7.js → chunk-FDPPZLSQ.js} +3 -3
- package/dist/{chunk-MFKHTE5R.js → chunk-FKQCPRKI.js} +3 -3
- package/dist/{chunk-7D7PZLB7.js → chunk-FS2UUJJO.js} +3 -3
- package/dist/{chunk-U6FRAEQJ.js → chunk-GJ6LM4JZ.js} +1 -441
- package/dist/chunk-H3REGQRI.js +107 -0
- package/dist/{chunk-25XHSTPT.js → chunk-HDNDL6D5.js} +3 -3
- package/dist/{chunk-BXLTEUS4.js → chunk-I4RTIMLX.js} +2 -2
- package/dist/chunk-IOVXB6QN.js +447 -0
- package/dist/{chunk-Y6WXAPKY.js → chunk-NTHXZAW4.js} +3 -3
- package/dist/{chunk-UTH7OXTM.js → chunk-OTZU76DH.js} +22 -4
- package/dist/{chunk-DWHUZUEY.js → chunk-T6GMRZWC.js} +3 -3
- package/dist/{chunk-V4FZHJQX.js → chunk-TIXVEPS2.js} +3 -3
- package/dist/{chunk-YNYCQECH.js → chunk-TJ5L2UTE.js} +3 -3
- package/dist/chunk-UGTNKTHS.js +542 -0
- package/dist/cli/neuroverse.cjs +3372 -523
- package/dist/cli/neuroverse.js +53 -21
- package/dist/cli/plan.js +2 -2
- package/dist/cli/run.cjs +242 -139
- package/dist/cli/run.js +23 -3
- package/dist/cli/worldmodel.cjs +1624 -0
- package/dist/cli/worldmodel.d.cts +24 -0
- package/dist/cli/worldmodel.d.ts +24 -0
- package/dist/cli/worldmodel.js +742 -0
- package/dist/{demo-66MMJTEH.js → demo-6W3YXLAX.js} +4 -4
- package/dist/{derive-AUQE3L3P.js → derive-42IJW7JI.js} +4 -4
- package/dist/{doctor-EY7LKSYY.js → doctor-XEMLO6UA.js} +3 -2
- package/dist/engine/bootstrap-emitter.cjs +241 -0
- package/dist/engine/bootstrap-emitter.d.cts +27 -0
- package/dist/engine/bootstrap-emitter.d.ts +27 -0
- package/dist/{bootstrap-emitter-GIMOJFOC.js → engine/bootstrap-emitter.js} +2 -2
- package/dist/engine/bootstrap-parser.cjs +560 -0
- package/dist/engine/bootstrap-parser.d.cts +96 -0
- package/dist/engine/bootstrap-parser.d.ts +96 -0
- package/dist/{bootstrap-parser-LBLGVEMU.js → engine/bootstrap-parser.js} +2 -2
- package/dist/engine/guard-engine.cjs +1116 -0
- package/dist/engine/guard-engine.d.cts +60 -0
- package/dist/engine/guard-engine.d.ts +60 -0
- package/dist/{guard-engine-N7TUIUU7.js → engine/guard-engine.js} +3 -3
- package/dist/engine/simulate-engine.cjs +390 -0
- package/dist/engine/simulate-engine.d.cts +105 -0
- package/dist/engine/simulate-engine.d.ts +105 -0
- package/dist/engine/simulate-engine.js +9 -0
- package/dist/engine/worldmodel-compiler.cjs +366 -0
- package/dist/engine/worldmodel-compiler.d.cts +46 -0
- package/dist/engine/worldmodel-compiler.d.ts +46 -0
- package/dist/engine/worldmodel-compiler.js +17 -0
- package/dist/engine/worldmodel-parser.cjs +566 -0
- package/dist/engine/worldmodel-parser.d.cts +22 -0
- package/dist/engine/worldmodel-parser.d.ts +22 -0
- package/dist/engine/worldmodel-parser.js +7 -0
- package/dist/{equity-penalties-WWC7UDQD.js → equity-penalties-CCO3GVHS.js} +6 -6
- package/dist/{explain-MUSGDT67.js → explain-HDFN4ION.js} +1 -1
- package/dist/{guard-W3BMQPBJ.js → guard-IHJEKHL2.js} +16 -4
- package/dist/{guard-contract-CLBbTGK_.d.ts → guard-contract-ddiIPlOg.d.cts} +2 -369
- package/dist/{guard-contract-CLBbTGK_.d.cts → guard-contract-q6HJAq3Q.d.ts} +2 -369
- package/dist/{improve-PJDAWW4Q.js → improve-LRORRYEX.js} +3 -3
- package/dist/index.cjs +471 -1
- package/dist/index.d.cts +14 -492
- package/dist/index.d.ts +14 -492
- package/dist/index.js +63 -42
- package/dist/keygen-BSZH3NM2.js +77 -0
- package/dist/{lens-IP6GIZ2Q.js → lens-TLDZQXBI.js} +152 -26
- package/dist/{mcp-server-OG3PPVD2.js → mcp-server-CKYBHXWK.js} +2 -2
- package/dist/migrate-NH5PVMX4.js +221 -0
- package/dist/{playground-4BK2XQ47.js → playground-3TTBN7XD.js} +5 -5
- package/dist/{redteam-BRZALBPP.js → redteam-W644UMWN.js} +3 -3
- package/dist/{session-SGRUT2UH.js → session-FMAROEIE.js} +2 -2
- package/dist/{shared-CwGpPheR.d.ts → shared-DAzdfWtU.d.ts} +1 -1
- package/dist/{shared-BGzmYP5g.d.cts → shared-PpalGKxc.d.cts} +1 -1
- package/dist/sign-RRELHKWM.js +11 -0
- package/dist/{simulate-FGXKIH7V.js → simulate-VT437EEL.js} +2 -2
- package/dist/{test-PT44BSYG.js → test-XDB2DH3L.js} +3 -3
- package/dist/types.cjs +18 -0
- package/dist/types.d.cts +370 -0
- package/dist/types.d.ts +370 -0
- package/dist/types.js +0 -0
- package/dist/{validate-Q5O5TGLT.js → validate-M52DX22Y.js} +1 -1
- package/dist/verify-6AVTWX75.js +151 -0
- package/dist/{world-V52ZMH26.js → world-O4HTQPDP.js} +1 -1
- package/dist/{world-loader-C4D3VPP3.js → world-loader-YTYFOP7D.js} +1 -1
- package/dist/worldmodel-contract-BPGhiuW5.d.cts +221 -0
- package/dist/worldmodel-contract-BPGhiuW5.d.ts +221 -0
- package/dist/worlds/auki-vanguard.worldmodel.md +116 -0
- package/dist/worlds/behavioral-demo.nv-world.md +130 -0
- package/dist/worlds/neuroverse-governance.worldmodel.md +115 -0
- package/package.json +44 -3
- package/dist/{bootstrap-IP5QMC3Q.js → bootstrap-2OW5ZLBL.js} +3 -3
- package/dist/{chunk-4G6WHPLI.js → chunk-735Z3HA4.js} +6 -6
- package/dist/{chunk-7QIAF377.js → chunk-CYDMUJVZ.js} +0 -0
- package/dist/{configure-ai-LL3VAPQW.js → configure-ai-5MP5DWTT.js} +3 -3
- 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.
|
|
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
|
-
"
|
|
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
|
|
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";
|