@neuroverseos/governance 0.5.1 → 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 +55 -0
- package/dist/adapters/autoresearch.js +2 -2
- package/dist/adapters/deep-agents.js +2 -2
- package/dist/adapters/express.js +2 -2
- package/dist/adapters/github.js +2 -2
- package/dist/adapters/index.js +8 -8
- package/dist/adapters/langchain.js +2 -2
- package/dist/adapters/mentraos.js +2 -2
- package/dist/adapters/openai.js +2 -2
- package/dist/adapters/openclaw.js +2 -2
- package/dist/{add-JP7TC2K3.js → add-XSANI3FK.js} +1 -1
- package/dist/{build-THUEYMVT.js → build-UTVDGHB3.js} +4 -4
- package/dist/{chunk-TZBERHFM.js → chunk-7FL3U7Z5.js} +1 -1
- package/dist/{chunk-FGOSKQDE.js → chunk-A2UZTLRV.js} +1 -1
- package/dist/{chunk-R23T5SZG.js → chunk-B3IIPTY3.js} +1 -1
- package/dist/chunk-EQR7BGFN.js +337 -0
- package/dist/{chunk-LAKUB76X.js → chunk-FDPPZLSQ.js} +1 -1
- package/dist/{chunk-UZBW44KD.js → chunk-FKQCPRKI.js} +1 -1
- package/dist/{chunk-XPMZB46F.js → chunk-FS2UUJJO.js} +3 -3
- package/dist/{chunk-6UPEUMJ2.js → chunk-HDNDL6D5.js} +1 -1
- package/dist/{chunk-7UU7V3AD.js → chunk-IOVXB6QN.js} +1 -1
- package/dist/{chunk-EK77AJAH.js → chunk-OTZU76DH.js} +1 -1
- package/dist/{chunk-5RAQ5DZW.js → chunk-T6GMRZWC.js} +1 -1
- package/dist/{chunk-RF2L5SYG.js → chunk-TIXVEPS2.js} +1 -1
- package/dist/{chunk-TL4DLMMW.js → chunk-TJ5L2UTE.js} +1 -1
- package/dist/chunk-UGTNKTHS.js +542 -0
- package/dist/cli/neuroverse.cjs +1987 -303
- package/dist/cli/neuroverse.js +27 -19
- package/dist/cli/plan.js +1 -1
- package/dist/cli/run.js +2 -2
- 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-N5K4VXJW.js → demo-6W3YXLAX.js} +2 -2
- package/dist/{derive-5LOMN7GO.js → derive-42IJW7JI.js} +3 -3
- 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-PYCJ3Q4U.js → equity-penalties-CCO3GVHS.js} +1 -1
- package/dist/{explain-42TVC3QD.js → explain-HDFN4ION.js} +1 -1
- package/dist/{guard-TPYDFG6V.js → guard-IHJEKHL2.js} +1 -1
- package/dist/{improve-HLZGJ54Z.js → improve-LRORRYEX.js} +1 -1
- package/dist/index.js +48 -48
- package/dist/{lens-NFGZHD76.js → lens-TLDZQXBI.js} +61 -2
- package/dist/{mcp-server-5XXNG6VC.js → mcp-server-CKYBHXWK.js} +2 -2
- package/dist/{playground-2EU5CFIH.js → playground-3TTBN7XD.js} +1 -1
- package/dist/{redteam-VK6OVHAE.js → redteam-W644UMWN.js} +1 -1
- package/dist/{session-NGA4DUPL.js → session-FMAROEIE.js} +2 -2
- package/dist/{simulate-4YNOBMES.js → simulate-VT437EEL.js} +1 -1
- package/dist/{test-HDBPMQTG.js → test-XDB2DH3L.js} +1 -1
- package/dist/{validate-6MFQZ2EG.js → validate-M52DX22Y.js} +1 -1
- package/dist/{world-H5WVURKU.js → world-O4HTQPDP.js} +1 -1
- package/dist/{world-loader-J47PCPDZ.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 +2 -2
- package/dist/{bootstrap-IP5QMC3Q.js → bootstrap-2OW5ZLBL.js} +3 -3
- package/dist/{chunk-QZ666FCV.js → chunk-735Z3HA4.js} +3 -3
- /package/dist/{chunk-EQUAWNXW.js → chunk-I4RTIMLX.js} +0 -0
- /package/dist/{doctor-Q5APJOTS.js → doctor-XEMLO6UA.js} +0 -0
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* WorldModel Contract — .worldmodel.md → Behavioral World Model Types
|
|
3
|
+
*
|
|
4
|
+
* Defines the three-layer intermediate representation produced by the parser
|
|
5
|
+
* and consumed by the compiler.
|
|
6
|
+
*
|
|
7
|
+
* Three Layers:
|
|
8
|
+
* 1. Core Model Geometry — mission, domains (skills + values), overlaps, center identity
|
|
9
|
+
* 2. Contextual Modifiers — authority, spatial contexts, interpretation rules
|
|
10
|
+
* 3. Evolution Layer — aligned/drift behaviors, signals, priorities, evolution conditions
|
|
11
|
+
*
|
|
12
|
+
* Input: .worldmodel.md file (structured markdown)
|
|
13
|
+
* Output: .nv-world.md + signals.json + overlaps.json + contexts.json + lenses.json
|
|
14
|
+
*/
|
|
15
|
+
interface WorldModelFrontmatter {
|
|
16
|
+
/** Unique identifier derived from name (kebab-case) */
|
|
17
|
+
model_id: string;
|
|
18
|
+
/** Human-readable model name */
|
|
19
|
+
name: string;
|
|
20
|
+
/** Semantic version */
|
|
21
|
+
version: string;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* A domain is a mode of operating that carries both skills and values.
|
|
25
|
+
* Domains are NOT personality traits — they are capability environments.
|
|
26
|
+
*/
|
|
27
|
+
interface ParsedDomain {
|
|
28
|
+
/** kebab-case identifier derived from name */
|
|
29
|
+
id: string;
|
|
30
|
+
/** Human-readable domain name */
|
|
31
|
+
name: string;
|
|
32
|
+
/** Skills: capabilities within this domain */
|
|
33
|
+
skills: string[];
|
|
34
|
+
/** Values: constraints governing skills in this domain */
|
|
35
|
+
values: string[];
|
|
36
|
+
/** Line number in source for error reporting */
|
|
37
|
+
line: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* An overlap effect describes what emerges when two domains interact well.
|
|
41
|
+
* These are interpretive states, not enforced rules.
|
|
42
|
+
*/
|
|
43
|
+
interface ParsedOverlap {
|
|
44
|
+
/** First domain name */
|
|
45
|
+
domainA: string;
|
|
46
|
+
/** Second domain name */
|
|
47
|
+
domainB: string;
|
|
48
|
+
/** Emergent state name (e.g., "Inspiration", "Trust") */
|
|
49
|
+
effect: string;
|
|
50
|
+
/** Line number in source */
|
|
51
|
+
line: number;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* The structural heart of the behavioral model.
|
|
55
|
+
* Defines what the system is trying to become.
|
|
56
|
+
*/
|
|
57
|
+
interface CoreModelGeometry {
|
|
58
|
+
/** The core aim — not a slogan */
|
|
59
|
+
mission: string;
|
|
60
|
+
/** Major operating domains, each carrying skills and values */
|
|
61
|
+
domains: ParsedDomain[];
|
|
62
|
+
/** Emergent states arising between domain pairings */
|
|
63
|
+
overlapEffects: ParsedOverlap[];
|
|
64
|
+
/** The identity that emerges when all domains are aligned */
|
|
65
|
+
centerIdentity: string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Defines how behavior is interpreted differently depending on context.
|
|
69
|
+
* These do NOT define truth — they define how meaning changes depending on
|
|
70
|
+
* who is acting, where behavior occurs, and what phase the system is in.
|
|
71
|
+
*/
|
|
72
|
+
interface ContextualModifiers {
|
|
73
|
+
/** Who is acting? (e.g., founder, maintainer, contributor, agent) */
|
|
74
|
+
authorityLayers: string[];
|
|
75
|
+
/** Where is behavior happening? (e.g., planning, execution, deployment) */
|
|
76
|
+
spatialContexts: string[];
|
|
77
|
+
/** How does context change meaning? Free-form interpretation rules */
|
|
78
|
+
interpretationRules: string[];
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* A decision priority defining tradeoff resolution.
|
|
82
|
+
* Format: preferred > over
|
|
83
|
+
*/
|
|
84
|
+
interface ParsedPriority {
|
|
85
|
+
/** What should win in the tradeoff */
|
|
86
|
+
preferred: string;
|
|
87
|
+
/** What it wins over */
|
|
88
|
+
over: string;
|
|
89
|
+
/** Line number in source */
|
|
90
|
+
line: number;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* The executable temporal layer.
|
|
94
|
+
* Defines observable behaviors, signals, and adaptation conditions.
|
|
95
|
+
*/
|
|
96
|
+
interface EvolutionLayer {
|
|
97
|
+
/** What does success look like in action? */
|
|
98
|
+
alignedBehaviors: string[];
|
|
99
|
+
/** What does misalignment look like? */
|
|
100
|
+
driftBehaviors: string[];
|
|
101
|
+
/** Observable metrics (snake_case identifiers) */
|
|
102
|
+
signals: string[];
|
|
103
|
+
/** Tradeoff resolution rules */
|
|
104
|
+
decisionPriorities: ParsedPriority[];
|
|
105
|
+
/** When should the model adapt? */
|
|
106
|
+
evolutionConditions: string[];
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The complete three-layer behavioral world model.
|
|
110
|
+
*
|
|
111
|
+
* Layer 1 (geometry) defines the model.
|
|
112
|
+
* Layer 2 (modifiers) shapes interpretation.
|
|
113
|
+
* Layer 3 (evolution) drives executable governance.
|
|
114
|
+
*/
|
|
115
|
+
interface ParsedWorldModel {
|
|
116
|
+
frontmatter: WorldModelFrontmatter;
|
|
117
|
+
geometry: CoreModelGeometry;
|
|
118
|
+
modifiers: ContextualModifiers;
|
|
119
|
+
evolution: EvolutionLayer;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Signal schema emitted as signals.json.
|
|
123
|
+
*/
|
|
124
|
+
interface SignalSchema {
|
|
125
|
+
model_id: string;
|
|
126
|
+
signals: SignalEntry[];
|
|
127
|
+
}
|
|
128
|
+
interface SignalEntry {
|
|
129
|
+
id: string;
|
|
130
|
+
name: string;
|
|
131
|
+
type: 'number';
|
|
132
|
+
default: number;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Overlap map emitted as overlaps.json.
|
|
136
|
+
* Includes both a flat pairing list and a matrix view.
|
|
137
|
+
*/
|
|
138
|
+
interface OverlapMap {
|
|
139
|
+
model_id: string;
|
|
140
|
+
pairings: OverlapPairing[];
|
|
141
|
+
/** domainA id → domainB id → emergent state name */
|
|
142
|
+
matrix: Record<string, Record<string, string>>;
|
|
143
|
+
}
|
|
144
|
+
interface OverlapPairing {
|
|
145
|
+
domainA: string;
|
|
146
|
+
domainB: string;
|
|
147
|
+
effect: string;
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Contextual modifiers emitted as contexts.json.
|
|
151
|
+
*/
|
|
152
|
+
interface ContextsConfig {
|
|
153
|
+
model_id: string;
|
|
154
|
+
authority_layers: string[];
|
|
155
|
+
spatial_contexts: string[];
|
|
156
|
+
interpretation_rules: string[];
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* A lens suggestion derived from overlap effects.
|
|
160
|
+
*/
|
|
161
|
+
interface LensSuggestion {
|
|
162
|
+
id: string;
|
|
163
|
+
name: string;
|
|
164
|
+
tagline: string;
|
|
165
|
+
derived_from: {
|
|
166
|
+
domainA: string;
|
|
167
|
+
domainB: string;
|
|
168
|
+
effect: string;
|
|
169
|
+
};
|
|
170
|
+
tone: {
|
|
171
|
+
formality: string;
|
|
172
|
+
verbosity: string;
|
|
173
|
+
emotion: string;
|
|
174
|
+
confidence: string;
|
|
175
|
+
};
|
|
176
|
+
directives: LensDirectiveEntry[];
|
|
177
|
+
}
|
|
178
|
+
interface LensDirectiveEntry {
|
|
179
|
+
scope: string;
|
|
180
|
+
instruction: string;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Complete compiler output bundle.
|
|
184
|
+
*/
|
|
185
|
+
interface WorldModelOutput {
|
|
186
|
+
/** Complete .nv-world.md content string */
|
|
187
|
+
worldMarkdown: string;
|
|
188
|
+
/** Signal schema for signals.json */
|
|
189
|
+
signalSchema: SignalSchema;
|
|
190
|
+
/** Overlap map for overlaps.json */
|
|
191
|
+
overlapMap: OverlapMap;
|
|
192
|
+
/** Context config for contexts.json */
|
|
193
|
+
contextsConfig: ContextsConfig;
|
|
194
|
+
/** Lens suggestions for lenses.json */
|
|
195
|
+
lensSuggestions: LensSuggestion[];
|
|
196
|
+
}
|
|
197
|
+
type WorldModelIssueSeverity = 'error' | 'warning' | 'info';
|
|
198
|
+
/**
|
|
199
|
+
* A single issue found during parsing or validation.
|
|
200
|
+
*/
|
|
201
|
+
interface WorldModelIssue {
|
|
202
|
+
/** Line number in source (1-based, 0 if unknown) */
|
|
203
|
+
line: number;
|
|
204
|
+
/** Which section the issue was found in */
|
|
205
|
+
section: string;
|
|
206
|
+
/** Human-readable message (designed to teach the method) */
|
|
207
|
+
message: string;
|
|
208
|
+
/** Severity level */
|
|
209
|
+
severity: WorldModelIssueSeverity;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Result of parsing a .worldmodel.md file.
|
|
213
|
+
*/
|
|
214
|
+
interface WorldModelParseResult {
|
|
215
|
+
/** The parsed model, or null if parsing failed */
|
|
216
|
+
model: ParsedWorldModel | null;
|
|
217
|
+
/** All issues encountered during parsing */
|
|
218
|
+
issues: WorldModelIssue[];
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export type { ContextsConfig as C, LensSuggestion as L, OverlapMap as O, ParsedWorldModel as P, SignalSchema as S, WorldModelOutput as W, WorldModelParseResult as a };
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Auki Vanguard
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Core Model Geometry
|
|
7
|
+
|
|
8
|
+
## Mission
|
|
9
|
+
Build and maintain the real world web while preserving long-term mission alignment across human-AI collaboration.
|
|
10
|
+
|
|
11
|
+
## Domains
|
|
12
|
+
|
|
13
|
+
### Future Foresight
|
|
14
|
+
|
|
15
|
+
#### Skills
|
|
16
|
+
- Strategic Thinking
|
|
17
|
+
- Systems Design
|
|
18
|
+
- Scenario Planning
|
|
19
|
+
- Long-range Architecture
|
|
20
|
+
|
|
21
|
+
#### Values
|
|
22
|
+
- Long-term thinking over short-term convenience
|
|
23
|
+
- Intellectual honesty about uncertainty
|
|
24
|
+
- Openness to emerging possibilities
|
|
25
|
+
|
|
26
|
+
### Narrative Dynamics
|
|
27
|
+
|
|
28
|
+
#### Skills
|
|
29
|
+
- Storytelling
|
|
30
|
+
- Emotional Intelligence
|
|
31
|
+
- Communication Design
|
|
32
|
+
- Shared Context Building
|
|
33
|
+
|
|
34
|
+
#### Values
|
|
35
|
+
- Authenticity in messaging
|
|
36
|
+
- Clarity of intent
|
|
37
|
+
- Emotional truth over performative optimism
|
|
38
|
+
|
|
39
|
+
### Shared Prosperity
|
|
40
|
+
|
|
41
|
+
#### Skills
|
|
42
|
+
- Stakeholder Alignment
|
|
43
|
+
- Incentive Design
|
|
44
|
+
- Community Building
|
|
45
|
+
- Negotiation
|
|
46
|
+
|
|
47
|
+
#### Values
|
|
48
|
+
- Fairness in distribution
|
|
49
|
+
- Shared benefit over individual extraction
|
|
50
|
+
- Transparency of process and outcome
|
|
51
|
+
|
|
52
|
+
## Overlap Effects
|
|
53
|
+
- Future Foresight + Narrative Dynamics = Inspiration
|
|
54
|
+
- Narrative Dynamics + Shared Prosperity = Trust
|
|
55
|
+
- Shared Prosperity + Future Foresight = Hope
|
|
56
|
+
|
|
57
|
+
## Center Identity
|
|
58
|
+
Collective Vanguard Leader
|
|
59
|
+
|
|
60
|
+
# Contextual Modifiers
|
|
61
|
+
|
|
62
|
+
## Authority Layers
|
|
63
|
+
- founder
|
|
64
|
+
- core team
|
|
65
|
+
- contributor
|
|
66
|
+
- agent
|
|
67
|
+
|
|
68
|
+
## Spatial Contexts
|
|
69
|
+
- strategy
|
|
70
|
+
- execution
|
|
71
|
+
- deployment
|
|
72
|
+
- governance
|
|
73
|
+
- community
|
|
74
|
+
|
|
75
|
+
## Interpretation Rules
|
|
76
|
+
- ambiguity from a founder carries more system-wide risk than ambiguity from a contributor
|
|
77
|
+
- weak ownership in deployment is more serious than weak ownership in strategy
|
|
78
|
+
- high clarity in governance contexts increases trust weighting across the system
|
|
79
|
+
- narrative inconsistency from core team erodes inspiration faster than from agents
|
|
80
|
+
- shared prosperity signals from founders amplify hope across all authority layers
|
|
81
|
+
|
|
82
|
+
# Evolution Layer
|
|
83
|
+
|
|
84
|
+
## Aligned Behaviors
|
|
85
|
+
- communicates future direction in ways others can act on
|
|
86
|
+
- makes decisions that strengthen long-term ecosystem health
|
|
87
|
+
- maintains clarity of purpose while moving quickly
|
|
88
|
+
- distributes opportunity and responsibility coherently
|
|
89
|
+
- aligns incentives with shared progress rather than individual gain
|
|
90
|
+
|
|
91
|
+
## Drift Behaviors
|
|
92
|
+
- ambiguity around who owns important work
|
|
93
|
+
- mission language disconnected from execution
|
|
94
|
+
- repeated implicit decisions instead of explicit ones
|
|
95
|
+
- shipping without shared understanding
|
|
96
|
+
- execution that erodes trust in the name of speed
|
|
97
|
+
|
|
98
|
+
## Signals
|
|
99
|
+
- clarity
|
|
100
|
+
- ownership
|
|
101
|
+
- follow_through
|
|
102
|
+
- alignment
|
|
103
|
+
- decision_momentum
|
|
104
|
+
|
|
105
|
+
## Decision Priorities
|
|
106
|
+
- long_term_ecosystem > short_term_convenience
|
|
107
|
+
- trust_preservation > performative_speed
|
|
108
|
+
- explicit_decision > silent_delay
|
|
109
|
+
- shared_clarity > local_optimization
|
|
110
|
+
|
|
111
|
+
## Evolution Conditions
|
|
112
|
+
- propose model updates when repeated successful behavior contradicts a current assumption
|
|
113
|
+
- increase confidence in patterns that validate across multiple scopes
|
|
114
|
+
- require human review before changing constitutional assumptions
|
|
115
|
+
- when narrative and execution diverge persistently, trigger alignment review
|
|
116
|
+
- when new contributors consistently succeed outside defined domains, consider domain expansion
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
world_id: behavioral-demo
|
|
3
|
+
name: Behavioral Demo
|
|
4
|
+
version: 1.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. Actions are stronger evidence than promises. Ambiguity is a signal, not noise. Alignment is measured by what people do, not what they say.
|
|
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
|
+
|
|
18
|
+
# State
|
|
19
|
+
|
|
20
|
+
## follow_through
|
|
21
|
+
- type: number
|
|
22
|
+
- min: 0
|
|
23
|
+
- max: 100
|
|
24
|
+
- step: 5
|
|
25
|
+
- default: 70
|
|
26
|
+
- label: Follow Through
|
|
27
|
+
- description: Measures how consistently actions match stated commitments
|
|
28
|
+
|
|
29
|
+
## clarity
|
|
30
|
+
- type: number
|
|
31
|
+
- min: 0
|
|
32
|
+
- max: 100
|
|
33
|
+
- step: 5
|
|
34
|
+
- default: 75
|
|
35
|
+
- label: Clarity
|
|
36
|
+
- description: Measures directness and explicitness of communication
|
|
37
|
+
|
|
38
|
+
## alignment_score
|
|
39
|
+
- type: number
|
|
40
|
+
- min: 0
|
|
41
|
+
- max: 100
|
|
42
|
+
- step: 5
|
|
43
|
+
- default: 80
|
|
44
|
+
- label: Alignment Score
|
|
45
|
+
- description: Measures consistency between stated priorities and actual behavior
|
|
46
|
+
|
|
47
|
+
# Assumptions
|
|
48
|
+
|
|
49
|
+
## baseline
|
|
50
|
+
- name: Baseline
|
|
51
|
+
- description: Normal operating conditions
|
|
52
|
+
- pressure_level: medium
|
|
53
|
+
|
|
54
|
+
## pressure
|
|
55
|
+
- name: Pressure
|
|
56
|
+
- description: Higher stress and ambiguity environment
|
|
57
|
+
- pressure_level: high
|
|
58
|
+
|
|
59
|
+
# Rules
|
|
60
|
+
|
|
61
|
+
## rule-001: ambiguity erodes alignment (degradation)
|
|
62
|
+
Repeated ambiguity weakens trust in stated intent.
|
|
63
|
+
|
|
64
|
+
When clarity < 50 [state]
|
|
65
|
+
Then alignment_score *= 0.80
|
|
66
|
+
|
|
67
|
+
> trigger: Communication becomes vague or indirect.
|
|
68
|
+
> rule: Reduced clarity lowers confidence in alignment.
|
|
69
|
+
> shift: Interpretation becomes more cautious.
|
|
70
|
+
> effect: Alignment score declines.
|
|
71
|
+
|
|
72
|
+
## rule-002: weak follow-through erodes alignment (degradation)
|
|
73
|
+
Failure to follow through consistently weakens credibility.
|
|
74
|
+
|
|
75
|
+
When follow_through < 60 [state]
|
|
76
|
+
Then alignment_score *= 0.75
|
|
77
|
+
Collapse: alignment_score < 30
|
|
78
|
+
|
|
79
|
+
> trigger: Commitments are not consistently honored.
|
|
80
|
+
> rule: Action matters more than promises.
|
|
81
|
+
> shift: Behavior is interpreted as misaligned.
|
|
82
|
+
> effect: Alignment score drops sharply.
|
|
83
|
+
|
|
84
|
+
## rule-003: strong execution reinforces alignment (advantage)
|
|
85
|
+
Consistent action strengthens trust in intent.
|
|
86
|
+
|
|
87
|
+
When follow_through >= 85 [state] AND clarity >= 80 [state]
|
|
88
|
+
Then alignment_score *= 1.10
|
|
89
|
+
|
|
90
|
+
> trigger: Clear communication and strong execution occur together.
|
|
91
|
+
> rule: Consistency strengthens alignment.
|
|
92
|
+
> shift: Interpretation becomes more confident.
|
|
93
|
+
> effect: Alignment score improves.
|
|
94
|
+
|
|
95
|
+
# Gates
|
|
96
|
+
|
|
97
|
+
- STRONG: alignment_score >= 85
|
|
98
|
+
- STABLE: alignment_score >= 65
|
|
99
|
+
- WATCHING: alignment_score >= 45
|
|
100
|
+
- FRAGILE: alignment_score > 30
|
|
101
|
+
- MISALIGNED: alignment_score <= 30
|
|
102
|
+
|
|
103
|
+
# Outcomes
|
|
104
|
+
|
|
105
|
+
## alignment_score
|
|
106
|
+
- type: number
|
|
107
|
+
- range: 0-100
|
|
108
|
+
- display: percentage
|
|
109
|
+
- label: Alignment Score
|
|
110
|
+
- primary: true
|
|
111
|
+
|
|
112
|
+
# Lenses
|
|
113
|
+
- policy: role_default
|
|
114
|
+
|
|
115
|
+
## behavioral-interpreter
|
|
116
|
+
- tagline: Read patterns, not promises.
|
|
117
|
+
- description: Interprets actions as signals, prioritizes repeated behavior over stated intent, and flags ambiguity, ownership diffusion, and misalignment.
|
|
118
|
+
- formality: neutral
|
|
119
|
+
- verbosity: concise
|
|
120
|
+
- emotion: neutral
|
|
121
|
+
- confidence: balanced
|
|
122
|
+
- tags: behavior, signals, alignment, analysis
|
|
123
|
+
- default_for_roles: all
|
|
124
|
+
- priority: 65
|
|
125
|
+
- stackable: true
|
|
126
|
+
|
|
127
|
+
> response_framing: Prioritize observed behavior and follow-through over stated intent.
|
|
128
|
+
> behavior_shaping: Look for repeated ambiguity, delay, or ownership diffusion as meaningful signals.
|
|
129
|
+
> value_emphasis: Name alignment or misalignment between words and actions clearly.
|
|
130
|
+
> 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.
|
|
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",
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
],
|
|
120
120
|
"scripts": {
|
|
121
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/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",
|
|
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",
|
|
123
123
|
"build:browser": "tsup src/browser.ts --format iife --global-name NeuroVerse --outDir dist --no-dts",
|
|
124
124
|
"build:viz": "vite build",
|
|
125
125
|
"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
|
|
@@ -7,12 +7,12 @@ import {
|
|
|
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
|
|
File without changes
|