@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,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,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.
|