helixevo 0.6.0 → 0.7.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.
@@ -0,0 +1,210 @@
1
+ export type LoopStageId = 'observe' | 'route' | 'adopt' | 'restructure' | 'prove'
2
+ export type SurfaceKey = 'overview' | 'projects' | 'research' | 'coevolution' | 'ontology' | 'topology' | 'proof'
3
+ export type SurfaceTone = 'blue' | 'green' | 'purple' | 'yellow' | 'neutral'
4
+ export type GuideAnchorId = 'quickstart' | 'brainstack' | 'loop' | 'semanticcontrol' | 'surfaces' | 'commands' | 'maturity' | 'metrics'
5
+
6
+ export interface LoopStageMeta {
7
+ id: LoopStageId
8
+ label: string
9
+ href: string
10
+ tone: SurfaceTone
11
+ description: string
12
+ }
13
+
14
+ export interface SurfaceJumpLink {
15
+ label: string
16
+ href: string
17
+ tone: SurfaceTone
18
+ description: string
19
+ }
20
+
21
+ export interface GuideDeepLinkDef {
22
+ label: string
23
+ anchor: GuideAnchorId
24
+ tone: SurfaceTone
25
+ description: string
26
+ }
27
+
28
+ export interface SurfaceLoopConfig {
29
+ key: SurfaceKey
30
+ label: string
31
+ context: string
32
+ stage?: LoopStageId
33
+ adjacentLinks: SurfaceJumpLink[]
34
+ guideLinks: GuideDeepLinkDef[]
35
+ }
36
+
37
+ export const LOOP_STAGES: LoopStageMeta[] = [
38
+ {
39
+ id: 'observe',
40
+ label: 'Observe',
41
+ href: '/projects',
42
+ tone: 'blue',
43
+ description: 'Project intake, pressure discovery, and activation-aware observation.',
44
+ },
45
+ {
46
+ id: 'route',
47
+ label: 'Route',
48
+ href: '/coevolution',
49
+ tone: 'purple',
50
+ description: 'Governed response selection across research, evolve, generalize, and review lanes.',
51
+ },
52
+ {
53
+ id: 'adopt',
54
+ label: 'Adopt',
55
+ href: '/ontology',
56
+ tone: 'green',
57
+ description: 'Promote approved concepts into active semantic consumers inside the live loop.',
58
+ },
59
+ {
60
+ id: 'restructure',
61
+ label: 'Restructure',
62
+ href: '/topology',
63
+ tone: 'yellow',
64
+ description: 'Turn reviewed structural intent into prepared, applied, and rollbackable change.',
65
+ },
66
+ {
67
+ id: 'prove',
68
+ label: 'Prove',
69
+ href: '/proof',
70
+ tone: 'neutral',
71
+ description: 'Review bounded outcome attribution, proof decisions, and the live evidence ledger.',
72
+ },
73
+ ]
74
+
75
+ export const GUIDE_ANCHOR_LABELS: Record<GuideAnchorId, string> = {
76
+ quickstart: 'Quick Start',
77
+ brainstack: 'Brain Stack',
78
+ loop: 'Adaptation Loop',
79
+ semanticcontrol: 'Semantic Control',
80
+ surfaces: 'Surface Map',
81
+ commands: 'Commands',
82
+ maturity: 'Maturity & Safety',
83
+ metrics: 'Closed-Loop Metrics',
84
+ }
85
+
86
+ export function guideHref(anchor: GuideAnchorId) {
87
+ return `/guide#${anchor}`
88
+ }
89
+
90
+ export const SURFACE_LOOP_CONFIG: Record<SurfaceKey, SurfaceLoopConfig> = {
91
+ overview: {
92
+ key: 'overview',
93
+ label: 'Overview',
94
+ context: 'Use Overview as the cockpit entry into the full loop, then jump into the stage that currently needs attention.',
95
+ adjacentLinks: [
96
+ { label: 'Open Projects', href: '/projects', tone: 'blue', description: 'Start from project intake, gap discovery, and observation.' },
97
+ { label: 'Open Co-Evolution', href: '/coevolution', tone: 'purple', description: 'Inspect governed routing and the active response backlog.' },
98
+ { label: 'Open Ontology', href: '/ontology', tone: 'green', description: 'Inspect semantic adoption, frontier review, and concept consumers.' },
99
+ { label: 'Open Topology', href: '/topology', tone: 'yellow', description: 'Review structural candidates, preparation, and rollbackable execution.' },
100
+ { label: 'Open Proof', href: '/proof', tone: 'neutral', description: 'Review what appears to be working, regressing, or still measuring.' },
101
+ ],
102
+ guideLinks: [
103
+ { label: 'Read Quick Start', anchor: 'quickstart', tone: 'blue', description: 'See the shortest operator path into the live brain loop.' },
104
+ { label: 'Read Surface Map', anchor: 'surfaces', tone: 'purple', description: 'Understand how each dashboard surface fits together.' },
105
+ ],
106
+ },
107
+ projects: {
108
+ key: 'projects',
109
+ label: 'Projects',
110
+ stage: 'observe',
111
+ context: 'Projects is where local context becomes explicit observation: capabilities, gaps, activation traces, and pressure feeders.',
112
+ adjacentLinks: [
113
+ { label: 'Open Research', href: '/research', tone: 'purple', description: 'Turn uncovered project gaps into discovery work.' },
114
+ { label: 'Open Co-Evolution', href: '/coevolution', tone: 'green', description: 'See how project pressure is being routed into response.' },
115
+ { label: 'Open Ontology', href: '/ontology', tone: 'blue', description: 'Check whether recurring project demand is becoming semantic adoption.' },
116
+ { label: 'Open Skill Network', href: '/network', tone: 'neutral', description: 'Inspect the skills that were matched or may need specialization.' },
117
+ ],
118
+ guideLinks: [
119
+ { label: 'Guide · Quick Start', anchor: 'quickstart', tone: 'blue', description: 'Follow the operator path from project intake to response.' },
120
+ { label: 'Guide · Adaptation Loop', anchor: 'loop', tone: 'purple', description: 'Trace how project observation becomes routed adaptation.' },
121
+ ],
122
+ },
123
+ research: {
124
+ key: 'research',
125
+ label: 'Research',
126
+ stage: 'observe',
127
+ context: 'Research extends observation into discovery by turning recurring capability pressure into external evidence and candidate skills.',
128
+ adjacentLinks: [
129
+ { label: 'Open Projects', href: '/projects', tone: 'blue', description: 'Return to the project contexts that produced the gaps.' },
130
+ { label: 'Open Co-Evolution', href: '/coevolution', tone: 'green', description: 'Check how governed routing is prioritizing research pressure.' },
131
+ { label: 'Open Ontology', href: '/ontology', tone: 'purple', description: 'Inspect whether recurring research demand is becoming active semantics.' },
132
+ ],
133
+ guideLinks: [
134
+ { label: 'Guide · Quick Start', anchor: 'quickstart', tone: 'blue', description: 'See how research fits the current operator path.' },
135
+ { label: 'Guide · Adaptation Loop', anchor: 'loop', tone: 'purple', description: 'Connect discovery work back to the broader loop.' },
136
+ ],
137
+ },
138
+ coevolution: {
139
+ key: 'coevolution',
140
+ label: 'Co-Evolution',
141
+ stage: 'route',
142
+ context: 'Co-Evolution is the response cockpit where observed demand is routed under governance into the next adaptation lane.',
143
+ adjacentLinks: [
144
+ { label: 'Open Ontology', href: '/ontology', tone: 'green', description: 'Inspect which approved concepts are influencing current route rationale.' },
145
+ { label: 'Open Topology', href: '/topology', tone: 'yellow', description: 'Escalate mixed-signal structural demand into review and execution.' },
146
+ { label: 'Open Research', href: '/research', tone: 'blue', description: 'Run or inspect the discovery lane when research is the governed response.' },
147
+ { label: 'Open Proof', href: '/proof', tone: 'neutral', description: 'See whether routed interventions and transfer appear effective yet.' },
148
+ ],
149
+ guideLinks: [
150
+ { label: 'Guide · Semantic Control', anchor: 'semanticcontrol', tone: 'green', description: 'See how semantic adoption shapes route explanation without bypassing governance.' },
151
+ { label: 'Guide · Surface Map', anchor: 'surfaces', tone: 'purple', description: 'Compare the response cockpit with the nearby control surfaces.' },
152
+ ],
153
+ },
154
+ ontology: {
155
+ key: 'ontology',
156
+ label: 'Ontology',
157
+ stage: 'adopt',
158
+ context: 'Ontology is where reviewed concepts become approved extensions and then become visible as active semantic consumers.',
159
+ adjacentLinks: [
160
+ { label: 'Open Co-Evolution', href: '/coevolution', tone: 'purple', description: 'See where active concepts are influencing current route rationale.' },
161
+ { label: 'Open Topology', href: '/topology', tone: 'yellow', description: 'Compare semantic adoption with structural review and execution.' },
162
+ { label: 'Open Skill Network', href: '/network', tone: 'blue', description: 'Inspect semantic context alongside graph relationships and inspector detail.' },
163
+ { label: 'Open Proof', href: '/proof', tone: 'neutral', description: 'Review semantic-adoption effectiveness without overclaiming causality.' },
164
+ ],
165
+ guideLinks: [
166
+ { label: 'Guide · Semantic Control', anchor: 'semanticcontrol', tone: 'green', description: 'Read the post-M8 / post-M9 ontology lifecycle and operator playbooks.' },
167
+ { label: 'Guide · Surface Map', anchor: 'surfaces', tone: 'purple', description: 'See where ontology sits relative to Co-Evolution and Topology.' },
168
+ ],
169
+ },
170
+ topology: {
171
+ key: 'topology',
172
+ label: 'Topology',
173
+ stage: 'restructure',
174
+ context: 'Topology is the structural handoff where reviewed intent becomes prepared, applied, and rollbackable graph change.',
175
+ adjacentLinks: [
176
+ { label: 'Open Ontology', href: '/ontology', tone: 'green', description: 'Check the semantic families clustering around current structural candidates.' },
177
+ { label: 'Open Co-Evolution', href: '/coevolution', tone: 'purple', description: 'Return to the governed response backlog feeding structural review.' },
178
+ { label: 'Open Skill Network', href: '/network', tone: 'blue', description: 'Inspect the graph context around the candidates being reviewed or applied.' },
179
+ { label: 'Open Proof', href: '/proof', tone: 'neutral', description: 'Review whether structural execution appears effective, mixed, or regressed.' },
180
+ ],
181
+ guideLinks: [
182
+ { label: 'Guide · Surface Map', anchor: 'surfaces', tone: 'purple', description: 'See how topology fits the rest of the dashboard operator loop.' },
183
+ { label: 'Guide · Maturity & Safety', anchor: 'maturity', tone: 'yellow', description: 'Review the current bounded-safe-execution limits before structural action.' },
184
+ ],
185
+ },
186
+ proof: {
187
+ key: 'proof',
188
+ label: 'Proof',
189
+ stage: 'prove',
190
+ context: 'Proof is where bounded outcome attribution becomes explicit operator review across interventions, semantics, transfer, topology, and evolution.',
191
+ adjacentLinks: [
192
+ { label: 'Open Co-Evolution', href: '/coevolution', tone: 'purple', description: 'Compare proof verdicts with the active response backlog and route state.' },
193
+ { label: 'Open Ontology', href: '/ontology', tone: 'green', description: 'Inspect semantic-adoption evidence alongside concept review and deprecation risk.' },
194
+ { label: 'Open Topology', href: '/topology', tone: 'yellow', description: 'Compare structural execution outcomes with their reviewed execution history.' },
195
+ { label: 'Open Overview', href: '/', tone: 'blue', description: 'Return to the cockpit after reviewing what appears to be working.' },
196
+ ],
197
+ guideLinks: [
198
+ { label: 'Guide · Closed-Loop Metrics', anchor: 'metrics', tone: 'blue', description: 'Read how metrics and proof fit together inside the prove stage.' },
199
+ { label: 'Guide · Surface Map', anchor: 'surfaces', tone: 'purple', description: 'See where Proof sits in the dashboard operator loop.' },
200
+ ],
201
+ },
202
+ }
203
+
204
+ export function getSurfaceLoopConfig(surface: SurfaceKey) {
205
+ return SURFACE_LOOP_CONFIG[surface]
206
+ }
207
+
208
+ export function getLoopStage(stageId: LoopStageId) {
209
+ return LOOP_STAGES.find((stage) => stage.id === stageId)
210
+ }