@neuroverseos/governance 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-EGBGZFIJ.js} +5 -5
- package/dist/{chunk-TZBERHFM.js → chunk-7FL3U7Z5.js} +1 -1
- package/dist/{chunk-FGOSKQDE.js → chunk-A2UZTLRV.js} +1 -1
- package/dist/chunk-AEVT7DSZ.js +1208 -0
- 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/chunk-VGFDMPVB.js +436 -0
- package/dist/cli/neuroverse.cjs +4089 -328
- package/dist/cli/neuroverse.js +62 -103
- package/dist/cli/plan.js +1 -1
- package/dist/cli/radiant.cjs +2058 -0
- package/dist/cli/radiant.d.cts +25 -0
- package/dist/cli/radiant.d.ts +25 -0
- package/dist/cli/radiant.js +422 -0
- 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-7Y7YWVLU.js} +4 -4
- 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 +29 -29
- package/dist/{lens-NFGZHD76.js → lens-TLDZQXBI.js} +61 -2
- package/dist/lenses-K5FVSALR.js +13 -0
- package/dist/{mcp-server-5XXNG6VC.js → mcp-server-CKYBHXWK.js} +2 -2
- package/dist/{playground-2EU5CFIH.js → playground-3TTBN7XD.js} +1 -1
- package/dist/radiant/index.cjs +1700 -0
- package/dist/radiant/index.d.cts +1163 -0
- package/dist/radiant/index.d.ts +1163 -0
- package/dist/radiant/index.js +75 -0
- 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 +177 -0
- package/dist/worlds/neuroverse-governance.worldmodel.md +115 -0
- package/package.json +7 -2
- package/dist/{bootstrap-IP5QMC3Q.js → bootstrap-2OW5ZLBL.js} +3 -3
- package/dist/{chunk-QZ666FCV.js → chunk-FHXXD2TI.js} +6 -6
- package/dist/{chunk-EQUAWNXW.js → chunk-I4RTIMLX.js} +0 -0
- package/dist/{configure-ai-5MP5DWTT.js → configure-ai-LL3VAPQW.js} +3 -3
- /package/dist/{doctor-Q5APJOTS.js → doctor-XEMLO6UA.js} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_EVIDENCE_GATE,
|
|
3
|
+
DEFAULT_SIGNAL_EXTRACTORS,
|
|
4
|
+
checkForbiddenPhrases,
|
|
5
|
+
classifyActorDomain,
|
|
6
|
+
classifyEvents,
|
|
7
|
+
composeSystemPrompt,
|
|
8
|
+
createAnthropicAI,
|
|
9
|
+
createMockAI,
|
|
10
|
+
createMockGitHubAdapter,
|
|
11
|
+
emergent,
|
|
12
|
+
extractSignals,
|
|
13
|
+
fetchGitHubActivity,
|
|
14
|
+
formatExocortexForPrompt,
|
|
15
|
+
formatScope,
|
|
16
|
+
interpretPatterns,
|
|
17
|
+
isPresent,
|
|
18
|
+
isScored,
|
|
19
|
+
isSentinel,
|
|
20
|
+
parseRepoScope,
|
|
21
|
+
presenceAverage,
|
|
22
|
+
readExocortex,
|
|
23
|
+
render,
|
|
24
|
+
scoreComposite,
|
|
25
|
+
scoreCyber,
|
|
26
|
+
scoreLife,
|
|
27
|
+
scoreNeuroVerse,
|
|
28
|
+
summarizeExocortex,
|
|
29
|
+
think
|
|
30
|
+
} from "../chunk-AEVT7DSZ.js";
|
|
31
|
+
import {
|
|
32
|
+
LENSES,
|
|
33
|
+
aukiBuilderLens,
|
|
34
|
+
getLens,
|
|
35
|
+
listLenses
|
|
36
|
+
} from "../chunk-VGFDMPVB.js";
|
|
37
|
+
import "../chunk-QWGCMQQD.js";
|
|
38
|
+
|
|
39
|
+
// src/radiant/index.ts
|
|
40
|
+
var RADIANT_PACKAGE_VERSION = "0.0.0";
|
|
41
|
+
export {
|
|
42
|
+
DEFAULT_EVIDENCE_GATE,
|
|
43
|
+
DEFAULT_SIGNAL_EXTRACTORS,
|
|
44
|
+
LENSES,
|
|
45
|
+
RADIANT_PACKAGE_VERSION,
|
|
46
|
+
aukiBuilderLens,
|
|
47
|
+
checkForbiddenPhrases,
|
|
48
|
+
classifyActorDomain,
|
|
49
|
+
classifyEvents,
|
|
50
|
+
composeSystemPrompt,
|
|
51
|
+
createAnthropicAI,
|
|
52
|
+
createMockAI,
|
|
53
|
+
createMockGitHubAdapter,
|
|
54
|
+
emergent,
|
|
55
|
+
extractSignals,
|
|
56
|
+
fetchGitHubActivity,
|
|
57
|
+
formatExocortexForPrompt,
|
|
58
|
+
formatScope,
|
|
59
|
+
getLens,
|
|
60
|
+
interpretPatterns,
|
|
61
|
+
isPresent,
|
|
62
|
+
isScored,
|
|
63
|
+
isSentinel,
|
|
64
|
+
listLenses,
|
|
65
|
+
parseRepoScope,
|
|
66
|
+
presenceAverage,
|
|
67
|
+
readExocortex,
|
|
68
|
+
render,
|
|
69
|
+
scoreComposite,
|
|
70
|
+
scoreCyber,
|
|
71
|
+
scoreLife,
|
|
72
|
+
scoreNeuroVerse,
|
|
73
|
+
summarizeExocortex,
|
|
74
|
+
think
|
|
75
|
+
};
|
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
SessionManager,
|
|
3
3
|
runInteractiveMode,
|
|
4
4
|
runPipeMode
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-OTZU76DH.js";
|
|
6
6
|
import "./chunk-D2UCV5AK.js";
|
|
7
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-I4RTIMLX.js";
|
|
8
8
|
import "./chunk-ZAF6JH23.js";
|
|
9
9
|
import "./chunk-QLPTHTVB.js";
|
|
10
10
|
import "./chunk-QWGCMQQD.js";
|
|
@@ -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
|