conductor-bridge 1.0.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.
Files changed (134) hide show
  1. package/README.md +69 -0
  2. package/dist/bridge/index.d.ts +8 -0
  3. package/dist/bridge/index.d.ts.map +1 -0
  4. package/dist/bridge/index.js +8 -0
  5. package/dist/bridge/index.js.map +1 -0
  6. package/dist/bridge/json-interchange.d.ts +94 -0
  7. package/dist/bridge/json-interchange.d.ts.map +1 -0
  8. package/dist/bridge/json-interchange.js +301 -0
  9. package/dist/bridge/json-interchange.js.map +1 -0
  10. package/dist/cli/commands/amend.d.ts +12 -0
  11. package/dist/cli/commands/amend.d.ts.map +1 -0
  12. package/dist/cli/commands/amend.js +205 -0
  13. package/dist/cli/commands/amend.js.map +1 -0
  14. package/dist/cli/commands/daemon.d.ts +12 -0
  15. package/dist/cli/commands/daemon.d.ts.map +1 -0
  16. package/dist/cli/commands/daemon.js +60 -0
  17. package/dist/cli/commands/daemon.js.map +1 -0
  18. package/dist/cli/commands/dispatch.d.ts +12 -0
  19. package/dist/cli/commands/dispatch.d.ts.map +1 -0
  20. package/dist/cli/commands/dispatch.js +207 -0
  21. package/dist/cli/commands/dispatch.js.map +1 -0
  22. package/dist/cli/commands/handoff.d.ts +31 -0
  23. package/dist/cli/commands/handoff.d.ts.map +1 -0
  24. package/dist/cli/commands/handoff.js +273 -0
  25. package/dist/cli/commands/handoff.js.map +1 -0
  26. package/dist/cli/commands/init.d.ts +12 -0
  27. package/dist/cli/commands/init.d.ts.map +1 -0
  28. package/dist/cli/commands/init.js +301 -0
  29. package/dist/cli/commands/init.js.map +1 -0
  30. package/dist/cli/commands/status.d.ts +12 -0
  31. package/dist/cli/commands/status.d.ts.map +1 -0
  32. package/dist/cli/commands/status.js +206 -0
  33. package/dist/cli/commands/status.js.map +1 -0
  34. package/dist/cli/index.d.ts +17 -0
  35. package/dist/cli/index.d.ts.map +1 -0
  36. package/dist/cli/index.js +148 -0
  37. package/dist/cli/index.js.map +1 -0
  38. package/dist/handoff/encryption.d.ts +85 -0
  39. package/dist/handoff/encryption.d.ts.map +1 -0
  40. package/dist/handoff/encryption.js +308 -0
  41. package/dist/handoff/encryption.js.map +1 -0
  42. package/dist/handoff/index.d.ts +8 -0
  43. package/dist/handoff/index.d.ts.map +1 -0
  44. package/dist/handoff/index.js +10 -0
  45. package/dist/handoff/index.js.map +1 -0
  46. package/dist/handoff/mycelium-arc.d.ts +116 -0
  47. package/dist/handoff/mycelium-arc.d.ts.map +1 -0
  48. package/dist/handoff/mycelium-arc.js +410 -0
  49. package/dist/handoff/mycelium-arc.js.map +1 -0
  50. package/dist/index.d.ts +38 -0
  51. package/dist/index.d.ts.map +1 -0
  52. package/dist/index.js +71 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/parsers/index.d.ts +10 -0
  55. package/dist/parsers/index.d.ts.map +1 -0
  56. package/dist/parsers/index.js +12 -0
  57. package/dist/parsers/index.js.map +1 -0
  58. package/dist/parsers/plan-parser.d.ts +29 -0
  59. package/dist/parsers/plan-parser.d.ts.map +1 -0
  60. package/dist/parsers/plan-parser.js +503 -0
  61. package/dist/parsers/plan-parser.js.map +1 -0
  62. package/dist/parsers/spec-parser.d.ts +10 -0
  63. package/dist/parsers/spec-parser.d.ts.map +1 -0
  64. package/dist/parsers/spec-parser.js +382 -0
  65. package/dist/parsers/spec-parser.js.map +1 -0
  66. package/dist/parsers/state-parser.d.ts +21 -0
  67. package/dist/parsers/state-parser.d.ts.map +1 -0
  68. package/dist/parsers/state-parser.js +378 -0
  69. package/dist/parsers/state-parser.js.map +1 -0
  70. package/dist/parsers/types.d.ts +190 -0
  71. package/dist/parsers/types.d.ts.map +1 -0
  72. package/dist/parsers/types.js +7 -0
  73. package/dist/parsers/types.js.map +1 -0
  74. package/dist/schemas/cognitive-state.d.ts +1523 -0
  75. package/dist/schemas/cognitive-state.d.ts.map +1 -0
  76. package/dist/schemas/cognitive-state.js +328 -0
  77. package/dist/schemas/cognitive-state.js.map +1 -0
  78. package/dist/schemas/enums.d.ts +124 -0
  79. package/dist/schemas/enums.d.ts.map +1 -0
  80. package/dist/schemas/enums.js +108 -0
  81. package/dist/schemas/enums.js.map +1 -0
  82. package/dist/schemas/index.d.ts +9 -0
  83. package/dist/schemas/index.d.ts.map +1 -0
  84. package/dist/schemas/index.js +9 -0
  85. package/dist/schemas/index.js.map +1 -0
  86. package/dist/sync/adhd-continuity.d.ts +91 -0
  87. package/dist/sync/adhd-continuity.d.ts.map +1 -0
  88. package/dist/sync/adhd-continuity.js +302 -0
  89. package/dist/sync/adhd-continuity.js.map +1 -0
  90. package/dist/sync/convergence-tracker.d.ts +111 -0
  91. package/dist/sync/convergence-tracker.d.ts.map +1 -0
  92. package/dist/sync/convergence-tracker.js +299 -0
  93. package/dist/sync/convergence-tracker.js.map +1 -0
  94. package/dist/sync/index.d.ts +11 -0
  95. package/dist/sync/index.d.ts.map +1 -0
  96. package/dist/sync/index.js +15 -0
  97. package/dist/sync/index.js.map +1 -0
  98. package/dist/sync/state-sync.d.ts +105 -0
  99. package/dist/sync/state-sync.d.ts.map +1 -0
  100. package/dist/sync/state-sync.js +403 -0
  101. package/dist/sync/state-sync.js.map +1 -0
  102. package/dist/sync/watcher.d.ts +90 -0
  103. package/dist/sync/watcher.d.ts.map +1 -0
  104. package/dist/sync/watcher.js +281 -0
  105. package/dist/sync/watcher.js.map +1 -0
  106. package/dist/utils/atomic-write.d.ts +31 -0
  107. package/dist/utils/atomic-write.d.ts.map +1 -0
  108. package/dist/utils/atomic-write.js +69 -0
  109. package/dist/utils/atomic-write.js.map +1 -0
  110. package/dist/utils/error-handling.d.ts +70 -0
  111. package/dist/utils/error-handling.d.ts.map +1 -0
  112. package/dist/utils/error-handling.js +109 -0
  113. package/dist/utils/error-handling.js.map +1 -0
  114. package/dist/utils/file-lock.d.ts +46 -0
  115. package/dist/utils/file-lock.d.ts.map +1 -0
  116. package/dist/utils/file-lock.js +117 -0
  117. package/dist/utils/file-lock.js.map +1 -0
  118. package/dist/utils/index.d.ts +10 -0
  119. package/dist/utils/index.d.ts.map +1 -0
  120. package/dist/utils/index.js +12 -0
  121. package/dist/utils/index.js.map +1 -0
  122. package/dist/utils/rlm-navigator.d.ts +160 -0
  123. package/dist/utils/rlm-navigator.d.ts.map +1 -0
  124. package/dist/utils/rlm-navigator.js +368 -0
  125. package/dist/utils/rlm-navigator.js.map +1 -0
  126. package/dist/utils/safe-path.d.ts +44 -0
  127. package/dist/utils/safe-path.d.ts.map +1 -0
  128. package/dist/utils/safe-path.js +96 -0
  129. package/dist/utils/safe-path.js.map +1 -0
  130. package/dist/utils/timed-io.d.ts +51 -0
  131. package/dist/utils/timed-io.d.ts.map +1 -0
  132. package/dist/utils/timed-io.js +128 -0
  133. package/dist/utils/timed-io.js.map +1 -0
  134. package/package.json +88 -0
@@ -0,0 +1,1523 @@
1
+ /**
2
+ * Cognitive State Zod Schemas
3
+ *
4
+ * These schemas provide runtime validation for the cognitive state interchange format.
5
+ * They mirror the JSON Schema in /schemas/cognitive_state.schema.json exactly.
6
+ */
7
+ import { z } from 'zod';
8
+ export declare const SessionStateSchema: z.ZodObject<{
9
+ session_id: z.ZodString;
10
+ timestamp: z.ZodString;
11
+ checksum: z.ZodOptional<z.ZodString>;
12
+ version: z.ZodDefault<z.ZodString>;
13
+ active_mode: z.ZodEnum<["focused", "exploring", "teaching", "recovery"]>;
14
+ active_paradigm: z.ZodEnum<["Cortex", "Mycelium"]>;
15
+ detected_state: z.ZodOptional<z.ZodEnum<["focused", "stuck", "overwhelmed", "frustrated", "hyperfocused", "depleted"]>>;
16
+ current_altitude: z.ZodOptional<z.ZodEnum<["30000ft", "15000ft", "5000ft", "Ground"]>>;
17
+ energy_level: z.ZodEnum<["high", "medium", "low", "depleted"]>;
18
+ burnout_level: z.ZodEnum<["GREEN", "YELLOW", "ORANGE", "RED"]>;
19
+ momentum_phase: z.ZodEnum<["cold_start", "building", "rolling", "peak", "declining", "crashed"]>;
20
+ session_start_goal: z.ZodOptional<z.ZodString>;
21
+ parked_ideas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
22
+ active_project_profile: z.ZodDefault<z.ZodString>;
23
+ convergence_attractor: z.ZodOptional<z.ZodEnum<["focused", "exploring", "recovery", "teaching"]>>;
24
+ last_xi_value: z.ZodOptional<z.ZodNumber>;
25
+ stable_exchange_count: z.ZodOptional<z.ZodNumber>;
26
+ active_intervention_expert: z.ZodOptional<z.ZodEnum<["Validator", "Scaffolder", "Restorer", "Refocuser", "Celebrator", "Socratic", "Direct"]>>;
27
+ active_domain_expert: z.ZodOptional<z.ZodString>;
28
+ consent_checksum: z.ZodOptional<z.ZodString>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ session_id: string;
31
+ timestamp: string;
32
+ version: string;
33
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
34
+ active_paradigm: "Cortex" | "Mycelium";
35
+ energy_level: "depleted" | "high" | "medium" | "low";
36
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
37
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
38
+ parked_ideas: string[];
39
+ active_project_profile: string;
40
+ checksum?: string | undefined;
41
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
42
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
43
+ session_start_goal?: string | undefined;
44
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
45
+ last_xi_value?: number | undefined;
46
+ stable_exchange_count?: number | undefined;
47
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
48
+ active_domain_expert?: string | undefined;
49
+ consent_checksum?: string | undefined;
50
+ }, {
51
+ session_id: string;
52
+ timestamp: string;
53
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
54
+ active_paradigm: "Cortex" | "Mycelium";
55
+ energy_level: "depleted" | "high" | "medium" | "low";
56
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
57
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
58
+ checksum?: string | undefined;
59
+ version?: string | undefined;
60
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
61
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
62
+ session_start_goal?: string | undefined;
63
+ parked_ideas?: string[] | undefined;
64
+ active_project_profile?: string | undefined;
65
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
66
+ last_xi_value?: number | undefined;
67
+ stable_exchange_count?: number | undefined;
68
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
69
+ active_domain_expert?: string | undefined;
70
+ consent_checksum?: string | undefined;
71
+ }>;
72
+ export type SessionState = z.infer<typeof SessionStateSchema>;
73
+ export declare const ConvergenceRecordSchema: z.ZodObject<{
74
+ timestamp: z.ZodString;
75
+ session_id: z.ZodString;
76
+ exchange_number: z.ZodNumber;
77
+ expert: z.ZodOptional<z.ZodEnum<["Validator", "Scaffolder", "Restorer", "Refocuser", "Celebrator", "Socratic", "Direct"]>>;
78
+ paradigm: z.ZodOptional<z.ZodEnum<["Cortex", "Mycelium"]>>;
79
+ altitude: z.ZodOptional<z.ZodEnum<["30000ft", "15000ft", "5000ft", "Ground"]>>;
80
+ burnout_level: z.ZodOptional<z.ZodEnum<["GREEN", "YELLOW", "ORANGE", "RED"]>>;
81
+ energy_level: z.ZodOptional<z.ZodEnum<["high", "medium", "low", "depleted"]>>;
82
+ xi_n: z.ZodNumber;
83
+ attractor: z.ZodEnum<["focused", "exploring", "recovery", "teaching"]>;
84
+ stability: z.ZodOptional<z.ZodEnum<["stable", "converging", "oscillating"]>>;
85
+ checksum: z.ZodOptional<z.ZodString>;
86
+ }, "strip", z.ZodTypeAny, {
87
+ session_id: string;
88
+ timestamp: string;
89
+ exchange_number: number;
90
+ xi_n: number;
91
+ attractor: "focused" | "exploring" | "teaching" | "recovery";
92
+ checksum?: string | undefined;
93
+ energy_level?: "depleted" | "high" | "medium" | "low" | undefined;
94
+ burnout_level?: "GREEN" | "YELLOW" | "ORANGE" | "RED" | undefined;
95
+ expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
96
+ paradigm?: "Cortex" | "Mycelium" | undefined;
97
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
98
+ stability?: "stable" | "converging" | "oscillating" | undefined;
99
+ }, {
100
+ session_id: string;
101
+ timestamp: string;
102
+ exchange_number: number;
103
+ xi_n: number;
104
+ attractor: "focused" | "exploring" | "teaching" | "recovery";
105
+ checksum?: string | undefined;
106
+ energy_level?: "depleted" | "high" | "medium" | "low" | undefined;
107
+ burnout_level?: "GREEN" | "YELLOW" | "ORANGE" | "RED" | undefined;
108
+ expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
109
+ paradigm?: "Cortex" | "Mycelium" | undefined;
110
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
111
+ stability?: "stable" | "converging" | "oscillating" | undefined;
112
+ }>;
113
+ export type ConvergenceRecord = z.infer<typeof ConvergenceRecordSchema>;
114
+ export declare const RoutingDecisionSchema: z.ZodObject<{
115
+ timestamp: z.ZodString;
116
+ session_id: z.ZodString;
117
+ exchange_number: z.ZodNumber;
118
+ signals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
119
+ state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
120
+ expert: z.ZodEnum<["Validator", "Scaffolder", "Restorer", "Refocuser", "Celebrator", "Socratic", "Direct"]>;
121
+ paradigm: z.ZodEnum<["Cortex", "Mycelium"]>;
122
+ altitude: z.ZodOptional<z.ZodEnum<["30000ft", "15000ft", "5000ft", "Ground"]>>;
123
+ verbosity: z.ZodOptional<z.ZodEnum<["minimal", "concise", "standard", "detailed", "comprehensive"]>>;
124
+ think_depth: z.ZodOptional<z.ZodEnum<["minimal", "standard", "deep", "ultradeep"]>>;
125
+ input_checksum: z.ZodOptional<z.ZodString>;
126
+ output_checksum: z.ZodOptional<z.ZodString>;
127
+ anchor: z.ZodOptional<z.ZodString>;
128
+ }, "strip", z.ZodTypeAny, {
129
+ session_id: string;
130
+ timestamp: string;
131
+ exchange_number: number;
132
+ expert: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct";
133
+ paradigm: "Cortex" | "Mycelium";
134
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
135
+ signals?: Record<string, unknown> | undefined;
136
+ state?: Record<string, unknown> | undefined;
137
+ verbosity?: "minimal" | "standard" | "concise" | "detailed" | "comprehensive" | undefined;
138
+ think_depth?: "minimal" | "standard" | "deep" | "ultradeep" | undefined;
139
+ input_checksum?: string | undefined;
140
+ output_checksum?: string | undefined;
141
+ anchor?: string | undefined;
142
+ }, {
143
+ session_id: string;
144
+ timestamp: string;
145
+ exchange_number: number;
146
+ expert: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct";
147
+ paradigm: "Cortex" | "Mycelium";
148
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
149
+ signals?: Record<string, unknown> | undefined;
150
+ state?: Record<string, unknown> | undefined;
151
+ verbosity?: "minimal" | "standard" | "concise" | "detailed" | "comprehensive" | undefined;
152
+ think_depth?: "minimal" | "standard" | "deep" | "ultradeep" | undefined;
153
+ input_checksum?: string | undefined;
154
+ output_checksum?: string | undefined;
155
+ anchor?: string | undefined;
156
+ }>;
157
+ export type RoutingDecision = z.infer<typeof RoutingDecisionSchema>;
158
+ export declare const CalibrationObservationSchema: z.ZodObject<{
159
+ timestamp: z.ZodString;
160
+ session_id: z.ZodString;
161
+ observation_type: z.ZodEnum<["intervention_effective", "stuck_pattern", "crash_trigger", "recovery_pattern"]>;
162
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
163
+ outcome: z.ZodEnum<["positive", "negative", "neutral"]>;
164
+ confidence: z.ZodOptional<z.ZodNumber>;
165
+ }, "strip", z.ZodTypeAny, {
166
+ session_id: string;
167
+ timestamp: string;
168
+ observation_type: "intervention_effective" | "stuck_pattern" | "crash_trigger" | "recovery_pattern";
169
+ outcome: "positive" | "negative" | "neutral";
170
+ context?: Record<string, unknown> | undefined;
171
+ confidence?: number | undefined;
172
+ }, {
173
+ session_id: string;
174
+ timestamp: string;
175
+ observation_type: "intervention_effective" | "stuck_pattern" | "crash_trigger" | "recovery_pattern";
176
+ outcome: "positive" | "negative" | "neutral";
177
+ context?: Record<string, unknown> | undefined;
178
+ confidence?: number | undefined;
179
+ }>;
180
+ export type CalibrationObservation = z.infer<typeof CalibrationObservationSchema>;
181
+ export declare const ConductorTaskSchema: z.ZodObject<{
182
+ id: z.ZodString;
183
+ content: z.ZodString;
184
+ status: z.ZodEnum<["pending", "in_progress", "complete", "blocked"]>;
185
+ track: z.ZodOptional<z.ZodString>;
186
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
188
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
189
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
190
+ }, "strip", z.ZodTypeAny, {
191
+ status: "pending" | "in_progress" | "complete" | "blocked";
192
+ id: string;
193
+ content: string;
194
+ track?: string | undefined;
195
+ parent_id?: string | null | undefined;
196
+ artifacts?: string[] | undefined;
197
+ started_at?: string | null | undefined;
198
+ completed_at?: string | null | undefined;
199
+ }, {
200
+ status: "pending" | "in_progress" | "complete" | "blocked";
201
+ id: string;
202
+ content: string;
203
+ track?: string | undefined;
204
+ parent_id?: string | null | undefined;
205
+ artifacts?: string[] | undefined;
206
+ started_at?: string | null | undefined;
207
+ completed_at?: string | null | undefined;
208
+ }>;
209
+ export type ConductorTask = z.infer<typeof ConductorTaskSchema>;
210
+ export declare const ConductorTrackSchema: z.ZodObject<{
211
+ id: z.ZodString;
212
+ name: z.ZodString;
213
+ description: z.ZodOptional<z.ZodString>;
214
+ status: z.ZodEnum<["pending", "in_progress", "complete", "blocked"]>;
215
+ agent: z.ZodOptional<z.ZodString>;
216
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
217
+ tasks: z.ZodArray<z.ZodObject<{
218
+ id: z.ZodString;
219
+ content: z.ZodString;
220
+ status: z.ZodEnum<["pending", "in_progress", "complete", "blocked"]>;
221
+ track: z.ZodOptional<z.ZodString>;
222
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
224
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
+ }, "strip", z.ZodTypeAny, {
227
+ status: "pending" | "in_progress" | "complete" | "blocked";
228
+ id: string;
229
+ content: string;
230
+ track?: string | undefined;
231
+ parent_id?: string | null | undefined;
232
+ artifacts?: string[] | undefined;
233
+ started_at?: string | null | undefined;
234
+ completed_at?: string | null | undefined;
235
+ }, {
236
+ status: "pending" | "in_progress" | "complete" | "blocked";
237
+ id: string;
238
+ content: string;
239
+ track?: string | undefined;
240
+ parent_id?: string | null | undefined;
241
+ artifacts?: string[] | undefined;
242
+ started_at?: string | null | undefined;
243
+ completed_at?: string | null | undefined;
244
+ }>, "many">;
245
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
246
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
247
+ }, "strip", z.ZodTypeAny, {
248
+ status: "pending" | "in_progress" | "complete" | "blocked";
249
+ id: string;
250
+ name: string;
251
+ tasks: {
252
+ status: "pending" | "in_progress" | "complete" | "blocked";
253
+ id: string;
254
+ content: string;
255
+ track?: string | undefined;
256
+ parent_id?: string | null | undefined;
257
+ artifacts?: string[] | undefined;
258
+ started_at?: string | null | undefined;
259
+ completed_at?: string | null | undefined;
260
+ }[];
261
+ started_at?: string | null | undefined;
262
+ completed_at?: string | null | undefined;
263
+ description?: string | undefined;
264
+ agent?: string | undefined;
265
+ dependencies?: string[] | undefined;
266
+ }, {
267
+ status: "pending" | "in_progress" | "complete" | "blocked";
268
+ id: string;
269
+ name: string;
270
+ tasks: {
271
+ status: "pending" | "in_progress" | "complete" | "blocked";
272
+ id: string;
273
+ content: string;
274
+ track?: string | undefined;
275
+ parent_id?: string | null | undefined;
276
+ artifacts?: string[] | undefined;
277
+ started_at?: string | null | undefined;
278
+ completed_at?: string | null | undefined;
279
+ }[];
280
+ started_at?: string | null | undefined;
281
+ completed_at?: string | null | undefined;
282
+ description?: string | undefined;
283
+ agent?: string | undefined;
284
+ dependencies?: string[] | undefined;
285
+ }>;
286
+ export type ConductorTrack = z.infer<typeof ConductorTrackSchema>;
287
+ export declare const ConductorSessionSchema: z.ZodObject<{
288
+ conductor_version: z.ZodDefault<z.ZodString>;
289
+ spec_path: z.ZodOptional<z.ZodString>;
290
+ plan_path: z.ZodOptional<z.ZodString>;
291
+ track_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
292
+ session_id: z.ZodString;
293
+ agent: z.ZodString;
294
+ current_assignment: z.ZodOptional<z.ZodObject<{
295
+ track: z.ZodOptional<z.ZodString>;
296
+ task: z.ZodOptional<z.ZodString>;
297
+ subtask: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
+ iteration: z.ZodOptional<z.ZodNumber>;
299
+ }, "strip", z.ZodTypeAny, {
300
+ track?: string | undefined;
301
+ task?: string | undefined;
302
+ subtask?: string | null | undefined;
303
+ iteration?: number | undefined;
304
+ }, {
305
+ track?: string | undefined;
306
+ task?: string | undefined;
307
+ subtask?: string | null | undefined;
308
+ iteration?: number | undefined;
309
+ }>>;
310
+ context_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
311
+ scratchpad: z.ZodOptional<z.ZodString>;
312
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
313
+ created_at: z.ZodOptional<z.ZodString>;
314
+ updated_at: z.ZodOptional<z.ZodString>;
315
+ }, "strip", z.ZodTypeAny, {
316
+ session_id: string;
317
+ agent: string;
318
+ conductor_version: string;
319
+ spec_path?: string | undefined;
320
+ plan_path?: string | undefined;
321
+ track_id?: string | null | undefined;
322
+ current_assignment?: {
323
+ track?: string | undefined;
324
+ task?: string | undefined;
325
+ subtask?: string | null | undefined;
326
+ iteration?: number | undefined;
327
+ } | undefined;
328
+ context_files?: string[] | undefined;
329
+ scratchpad?: string | undefined;
330
+ warnings?: string[] | undefined;
331
+ created_at?: string | undefined;
332
+ updated_at?: string | undefined;
333
+ }, {
334
+ session_id: string;
335
+ agent: string;
336
+ conductor_version?: string | undefined;
337
+ spec_path?: string | undefined;
338
+ plan_path?: string | undefined;
339
+ track_id?: string | null | undefined;
340
+ current_assignment?: {
341
+ track?: string | undefined;
342
+ task?: string | undefined;
343
+ subtask?: string | null | undefined;
344
+ iteration?: number | undefined;
345
+ } | undefined;
346
+ context_files?: string[] | undefined;
347
+ scratchpad?: string | undefined;
348
+ warnings?: string[] | undefined;
349
+ created_at?: string | undefined;
350
+ updated_at?: string | undefined;
351
+ }>;
352
+ export type ConductorSession = z.infer<typeof ConductorSessionSchema>;
353
+ export declare const MyceliumArcSchema: z.ZodObject<{
354
+ version: z.ZodDefault<z.ZodString>;
355
+ created_at: z.ZodString;
356
+ expires_at: z.ZodOptional<z.ZodString>;
357
+ source_agent: z.ZodEnum<["claude-code", "gemini-cli", "other"]>;
358
+ target_agent: z.ZodOptional<z.ZodEnum<["claude-code", "gemini-cli", "any"]>>;
359
+ session_state: z.ZodObject<{
360
+ session_id: z.ZodString;
361
+ timestamp: z.ZodString;
362
+ checksum: z.ZodOptional<z.ZodString>;
363
+ version: z.ZodDefault<z.ZodString>;
364
+ active_mode: z.ZodEnum<["focused", "exploring", "teaching", "recovery"]>;
365
+ active_paradigm: z.ZodEnum<["Cortex", "Mycelium"]>;
366
+ detected_state: z.ZodOptional<z.ZodEnum<["focused", "stuck", "overwhelmed", "frustrated", "hyperfocused", "depleted"]>>;
367
+ current_altitude: z.ZodOptional<z.ZodEnum<["30000ft", "15000ft", "5000ft", "Ground"]>>;
368
+ energy_level: z.ZodEnum<["high", "medium", "low", "depleted"]>;
369
+ burnout_level: z.ZodEnum<["GREEN", "YELLOW", "ORANGE", "RED"]>;
370
+ momentum_phase: z.ZodEnum<["cold_start", "building", "rolling", "peak", "declining", "crashed"]>;
371
+ session_start_goal: z.ZodOptional<z.ZodString>;
372
+ parked_ideas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
373
+ active_project_profile: z.ZodDefault<z.ZodString>;
374
+ convergence_attractor: z.ZodOptional<z.ZodEnum<["focused", "exploring", "recovery", "teaching"]>>;
375
+ last_xi_value: z.ZodOptional<z.ZodNumber>;
376
+ stable_exchange_count: z.ZodOptional<z.ZodNumber>;
377
+ active_intervention_expert: z.ZodOptional<z.ZodEnum<["Validator", "Scaffolder", "Restorer", "Refocuser", "Celebrator", "Socratic", "Direct"]>>;
378
+ active_domain_expert: z.ZodOptional<z.ZodString>;
379
+ consent_checksum: z.ZodOptional<z.ZodString>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ session_id: string;
382
+ timestamp: string;
383
+ version: string;
384
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
385
+ active_paradigm: "Cortex" | "Mycelium";
386
+ energy_level: "depleted" | "high" | "medium" | "low";
387
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
388
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
389
+ parked_ideas: string[];
390
+ active_project_profile: string;
391
+ checksum?: string | undefined;
392
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
393
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
394
+ session_start_goal?: string | undefined;
395
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
396
+ last_xi_value?: number | undefined;
397
+ stable_exchange_count?: number | undefined;
398
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
399
+ active_domain_expert?: string | undefined;
400
+ consent_checksum?: string | undefined;
401
+ }, {
402
+ session_id: string;
403
+ timestamp: string;
404
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
405
+ active_paradigm: "Cortex" | "Mycelium";
406
+ energy_level: "depleted" | "high" | "medium" | "low";
407
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
408
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
409
+ checksum?: string | undefined;
410
+ version?: string | undefined;
411
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
412
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
413
+ session_start_goal?: string | undefined;
414
+ parked_ideas?: string[] | undefined;
415
+ active_project_profile?: string | undefined;
416
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
417
+ last_xi_value?: number | undefined;
418
+ stable_exchange_count?: number | undefined;
419
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
420
+ active_domain_expert?: string | undefined;
421
+ consent_checksum?: string | undefined;
422
+ }>;
423
+ conductor_context: z.ZodOptional<z.ZodObject<{
424
+ conductor_version: z.ZodDefault<z.ZodString>;
425
+ spec_path: z.ZodOptional<z.ZodString>;
426
+ plan_path: z.ZodOptional<z.ZodString>;
427
+ track_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
428
+ session_id: z.ZodString;
429
+ agent: z.ZodString;
430
+ current_assignment: z.ZodOptional<z.ZodObject<{
431
+ track: z.ZodOptional<z.ZodString>;
432
+ task: z.ZodOptional<z.ZodString>;
433
+ subtask: z.ZodOptional<z.ZodNullable<z.ZodString>>;
434
+ iteration: z.ZodOptional<z.ZodNumber>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ track?: string | undefined;
437
+ task?: string | undefined;
438
+ subtask?: string | null | undefined;
439
+ iteration?: number | undefined;
440
+ }, {
441
+ track?: string | undefined;
442
+ task?: string | undefined;
443
+ subtask?: string | null | undefined;
444
+ iteration?: number | undefined;
445
+ }>>;
446
+ context_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
447
+ scratchpad: z.ZodOptional<z.ZodString>;
448
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
449
+ created_at: z.ZodOptional<z.ZodString>;
450
+ updated_at: z.ZodOptional<z.ZodString>;
451
+ }, "strip", z.ZodTypeAny, {
452
+ session_id: string;
453
+ agent: string;
454
+ conductor_version: string;
455
+ spec_path?: string | undefined;
456
+ plan_path?: string | undefined;
457
+ track_id?: string | null | undefined;
458
+ current_assignment?: {
459
+ track?: string | undefined;
460
+ task?: string | undefined;
461
+ subtask?: string | null | undefined;
462
+ iteration?: number | undefined;
463
+ } | undefined;
464
+ context_files?: string[] | undefined;
465
+ scratchpad?: string | undefined;
466
+ warnings?: string[] | undefined;
467
+ created_at?: string | undefined;
468
+ updated_at?: string | undefined;
469
+ }, {
470
+ session_id: string;
471
+ agent: string;
472
+ conductor_version?: string | undefined;
473
+ spec_path?: string | undefined;
474
+ plan_path?: string | undefined;
475
+ track_id?: string | null | undefined;
476
+ current_assignment?: {
477
+ track?: string | undefined;
478
+ task?: string | undefined;
479
+ subtask?: string | null | undefined;
480
+ iteration?: number | undefined;
481
+ } | undefined;
482
+ context_files?: string[] | undefined;
483
+ scratchpad?: string | undefined;
484
+ warnings?: string[] | undefined;
485
+ created_at?: string | undefined;
486
+ updated_at?: string | undefined;
487
+ }>>;
488
+ resume_summary: z.ZodOptional<z.ZodString>;
489
+ momentum_at_handoff: z.ZodOptional<z.ZodEnum<["cold_start", "building", "rolling", "peak", "declining", "crashed"]>>;
490
+ parked_ideas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
491
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
492
+ encryption: z.ZodOptional<z.ZodObject<{
493
+ algorithm: z.ZodOptional<z.ZodEnum<["none", "fernet", "aes-256-gcm"]>>;
494
+ machine_bound: z.ZodOptional<z.ZodBoolean>;
495
+ }, "strip", z.ZodTypeAny, {
496
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
497
+ machine_bound?: boolean | undefined;
498
+ }, {
499
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
500
+ machine_bound?: boolean | undefined;
501
+ }>>;
502
+ checksum: z.ZodOptional<z.ZodString>;
503
+ }, "strip", z.ZodTypeAny, {
504
+ session_state: {
505
+ session_id: string;
506
+ timestamp: string;
507
+ version: string;
508
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
509
+ active_paradigm: "Cortex" | "Mycelium";
510
+ energy_level: "depleted" | "high" | "medium" | "low";
511
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
512
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
513
+ parked_ideas: string[];
514
+ active_project_profile: string;
515
+ checksum?: string | undefined;
516
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
517
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
518
+ session_start_goal?: string | undefined;
519
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
520
+ last_xi_value?: number | undefined;
521
+ stable_exchange_count?: number | undefined;
522
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
523
+ active_domain_expert?: string | undefined;
524
+ consent_checksum?: string | undefined;
525
+ };
526
+ version: string;
527
+ created_at: string;
528
+ source_agent: "claude-code" | "gemini-cli" | "other";
529
+ checksum?: string | undefined;
530
+ parked_ideas?: string[] | undefined;
531
+ warnings?: string[] | undefined;
532
+ expires_at?: string | undefined;
533
+ target_agent?: "claude-code" | "gemini-cli" | "any" | undefined;
534
+ conductor_context?: {
535
+ session_id: string;
536
+ agent: string;
537
+ conductor_version: string;
538
+ spec_path?: string | undefined;
539
+ plan_path?: string | undefined;
540
+ track_id?: string | null | undefined;
541
+ current_assignment?: {
542
+ track?: string | undefined;
543
+ task?: string | undefined;
544
+ subtask?: string | null | undefined;
545
+ iteration?: number | undefined;
546
+ } | undefined;
547
+ context_files?: string[] | undefined;
548
+ scratchpad?: string | undefined;
549
+ warnings?: string[] | undefined;
550
+ created_at?: string | undefined;
551
+ updated_at?: string | undefined;
552
+ } | undefined;
553
+ resume_summary?: string | undefined;
554
+ momentum_at_handoff?: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed" | undefined;
555
+ encryption?: {
556
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
557
+ machine_bound?: boolean | undefined;
558
+ } | undefined;
559
+ }, {
560
+ session_state: {
561
+ session_id: string;
562
+ timestamp: string;
563
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
564
+ active_paradigm: "Cortex" | "Mycelium";
565
+ energy_level: "depleted" | "high" | "medium" | "low";
566
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
567
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
568
+ checksum?: string | undefined;
569
+ version?: string | undefined;
570
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
571
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
572
+ session_start_goal?: string | undefined;
573
+ parked_ideas?: string[] | undefined;
574
+ active_project_profile?: string | undefined;
575
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
576
+ last_xi_value?: number | undefined;
577
+ stable_exchange_count?: number | undefined;
578
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
579
+ active_domain_expert?: string | undefined;
580
+ consent_checksum?: string | undefined;
581
+ };
582
+ created_at: string;
583
+ source_agent: "claude-code" | "gemini-cli" | "other";
584
+ checksum?: string | undefined;
585
+ version?: string | undefined;
586
+ parked_ideas?: string[] | undefined;
587
+ warnings?: string[] | undefined;
588
+ expires_at?: string | undefined;
589
+ target_agent?: "claude-code" | "gemini-cli" | "any" | undefined;
590
+ conductor_context?: {
591
+ session_id: string;
592
+ agent: string;
593
+ conductor_version?: string | undefined;
594
+ spec_path?: string | undefined;
595
+ plan_path?: string | undefined;
596
+ track_id?: string | null | undefined;
597
+ current_assignment?: {
598
+ track?: string | undefined;
599
+ task?: string | undefined;
600
+ subtask?: string | null | undefined;
601
+ iteration?: number | undefined;
602
+ } | undefined;
603
+ context_files?: string[] | undefined;
604
+ scratchpad?: string | undefined;
605
+ warnings?: string[] | undefined;
606
+ created_at?: string | undefined;
607
+ updated_at?: string | undefined;
608
+ } | undefined;
609
+ resume_summary?: string | undefined;
610
+ momentum_at_handoff?: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed" | undefined;
611
+ encryption?: {
612
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
613
+ machine_bound?: boolean | undefined;
614
+ } | undefined;
615
+ }>;
616
+ export type MyceliumArc = z.infer<typeof MyceliumArcSchema>;
617
+ export declare const CognitiveStateDocumentSchema: z.ZodObject<{
618
+ $schema: z.ZodOptional<z.ZodString>;
619
+ interchange_version: z.ZodLiteral<"1.0.0">;
620
+ document_type: z.ZodEnum<["session_state", "convergence_record", "routing_decision", "calibration", "conductor_sync", "mycelium_arc"]>;
621
+ created_at: z.ZodString;
622
+ source: z.ZodEnum<["usd-substrate", "conductor-bridge", "framework-orchestrator"]>;
623
+ session_state: z.ZodOptional<z.ZodObject<{
624
+ session_id: z.ZodString;
625
+ timestamp: z.ZodString;
626
+ checksum: z.ZodOptional<z.ZodString>;
627
+ version: z.ZodDefault<z.ZodString>;
628
+ active_mode: z.ZodEnum<["focused", "exploring", "teaching", "recovery"]>;
629
+ active_paradigm: z.ZodEnum<["Cortex", "Mycelium"]>;
630
+ detected_state: z.ZodOptional<z.ZodEnum<["focused", "stuck", "overwhelmed", "frustrated", "hyperfocused", "depleted"]>>;
631
+ current_altitude: z.ZodOptional<z.ZodEnum<["30000ft", "15000ft", "5000ft", "Ground"]>>;
632
+ energy_level: z.ZodEnum<["high", "medium", "low", "depleted"]>;
633
+ burnout_level: z.ZodEnum<["GREEN", "YELLOW", "ORANGE", "RED"]>;
634
+ momentum_phase: z.ZodEnum<["cold_start", "building", "rolling", "peak", "declining", "crashed"]>;
635
+ session_start_goal: z.ZodOptional<z.ZodString>;
636
+ parked_ideas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
637
+ active_project_profile: z.ZodDefault<z.ZodString>;
638
+ convergence_attractor: z.ZodOptional<z.ZodEnum<["focused", "exploring", "recovery", "teaching"]>>;
639
+ last_xi_value: z.ZodOptional<z.ZodNumber>;
640
+ stable_exchange_count: z.ZodOptional<z.ZodNumber>;
641
+ active_intervention_expert: z.ZodOptional<z.ZodEnum<["Validator", "Scaffolder", "Restorer", "Refocuser", "Celebrator", "Socratic", "Direct"]>>;
642
+ active_domain_expert: z.ZodOptional<z.ZodString>;
643
+ consent_checksum: z.ZodOptional<z.ZodString>;
644
+ }, "strip", z.ZodTypeAny, {
645
+ session_id: string;
646
+ timestamp: string;
647
+ version: string;
648
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
649
+ active_paradigm: "Cortex" | "Mycelium";
650
+ energy_level: "depleted" | "high" | "medium" | "low";
651
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
652
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
653
+ parked_ideas: string[];
654
+ active_project_profile: string;
655
+ checksum?: string | undefined;
656
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
657
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
658
+ session_start_goal?: string | undefined;
659
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
660
+ last_xi_value?: number | undefined;
661
+ stable_exchange_count?: number | undefined;
662
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
663
+ active_domain_expert?: string | undefined;
664
+ consent_checksum?: string | undefined;
665
+ }, {
666
+ session_id: string;
667
+ timestamp: string;
668
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
669
+ active_paradigm: "Cortex" | "Mycelium";
670
+ energy_level: "depleted" | "high" | "medium" | "low";
671
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
672
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
673
+ checksum?: string | undefined;
674
+ version?: string | undefined;
675
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
676
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
677
+ session_start_goal?: string | undefined;
678
+ parked_ideas?: string[] | undefined;
679
+ active_project_profile?: string | undefined;
680
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
681
+ last_xi_value?: number | undefined;
682
+ stable_exchange_count?: number | undefined;
683
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
684
+ active_domain_expert?: string | undefined;
685
+ consent_checksum?: string | undefined;
686
+ }>>;
687
+ convergence_records: z.ZodOptional<z.ZodArray<z.ZodObject<{
688
+ timestamp: z.ZodString;
689
+ session_id: z.ZodString;
690
+ exchange_number: z.ZodNumber;
691
+ expert: z.ZodOptional<z.ZodEnum<["Validator", "Scaffolder", "Restorer", "Refocuser", "Celebrator", "Socratic", "Direct"]>>;
692
+ paradigm: z.ZodOptional<z.ZodEnum<["Cortex", "Mycelium"]>>;
693
+ altitude: z.ZodOptional<z.ZodEnum<["30000ft", "15000ft", "5000ft", "Ground"]>>;
694
+ burnout_level: z.ZodOptional<z.ZodEnum<["GREEN", "YELLOW", "ORANGE", "RED"]>>;
695
+ energy_level: z.ZodOptional<z.ZodEnum<["high", "medium", "low", "depleted"]>>;
696
+ xi_n: z.ZodNumber;
697
+ attractor: z.ZodEnum<["focused", "exploring", "recovery", "teaching"]>;
698
+ stability: z.ZodOptional<z.ZodEnum<["stable", "converging", "oscillating"]>>;
699
+ checksum: z.ZodOptional<z.ZodString>;
700
+ }, "strip", z.ZodTypeAny, {
701
+ session_id: string;
702
+ timestamp: string;
703
+ exchange_number: number;
704
+ xi_n: number;
705
+ attractor: "focused" | "exploring" | "teaching" | "recovery";
706
+ checksum?: string | undefined;
707
+ energy_level?: "depleted" | "high" | "medium" | "low" | undefined;
708
+ burnout_level?: "GREEN" | "YELLOW" | "ORANGE" | "RED" | undefined;
709
+ expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
710
+ paradigm?: "Cortex" | "Mycelium" | undefined;
711
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
712
+ stability?: "stable" | "converging" | "oscillating" | undefined;
713
+ }, {
714
+ session_id: string;
715
+ timestamp: string;
716
+ exchange_number: number;
717
+ xi_n: number;
718
+ attractor: "focused" | "exploring" | "teaching" | "recovery";
719
+ checksum?: string | undefined;
720
+ energy_level?: "depleted" | "high" | "medium" | "low" | undefined;
721
+ burnout_level?: "GREEN" | "YELLOW" | "ORANGE" | "RED" | undefined;
722
+ expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
723
+ paradigm?: "Cortex" | "Mycelium" | undefined;
724
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
725
+ stability?: "stable" | "converging" | "oscillating" | undefined;
726
+ }>, "many">>;
727
+ routing_decisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
728
+ timestamp: z.ZodString;
729
+ session_id: z.ZodString;
730
+ exchange_number: z.ZodNumber;
731
+ signals: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
732
+ state: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
733
+ expert: z.ZodEnum<["Validator", "Scaffolder", "Restorer", "Refocuser", "Celebrator", "Socratic", "Direct"]>;
734
+ paradigm: z.ZodEnum<["Cortex", "Mycelium"]>;
735
+ altitude: z.ZodOptional<z.ZodEnum<["30000ft", "15000ft", "5000ft", "Ground"]>>;
736
+ verbosity: z.ZodOptional<z.ZodEnum<["minimal", "concise", "standard", "detailed", "comprehensive"]>>;
737
+ think_depth: z.ZodOptional<z.ZodEnum<["minimal", "standard", "deep", "ultradeep"]>>;
738
+ input_checksum: z.ZodOptional<z.ZodString>;
739
+ output_checksum: z.ZodOptional<z.ZodString>;
740
+ anchor: z.ZodOptional<z.ZodString>;
741
+ }, "strip", z.ZodTypeAny, {
742
+ session_id: string;
743
+ timestamp: string;
744
+ exchange_number: number;
745
+ expert: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct";
746
+ paradigm: "Cortex" | "Mycelium";
747
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
748
+ signals?: Record<string, unknown> | undefined;
749
+ state?: Record<string, unknown> | undefined;
750
+ verbosity?: "minimal" | "standard" | "concise" | "detailed" | "comprehensive" | undefined;
751
+ think_depth?: "minimal" | "standard" | "deep" | "ultradeep" | undefined;
752
+ input_checksum?: string | undefined;
753
+ output_checksum?: string | undefined;
754
+ anchor?: string | undefined;
755
+ }, {
756
+ session_id: string;
757
+ timestamp: string;
758
+ exchange_number: number;
759
+ expert: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct";
760
+ paradigm: "Cortex" | "Mycelium";
761
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
762
+ signals?: Record<string, unknown> | undefined;
763
+ state?: Record<string, unknown> | undefined;
764
+ verbosity?: "minimal" | "standard" | "concise" | "detailed" | "comprehensive" | undefined;
765
+ think_depth?: "minimal" | "standard" | "deep" | "ultradeep" | undefined;
766
+ input_checksum?: string | undefined;
767
+ output_checksum?: string | undefined;
768
+ anchor?: string | undefined;
769
+ }>, "many">>;
770
+ calibration_observations: z.ZodOptional<z.ZodArray<z.ZodObject<{
771
+ timestamp: z.ZodString;
772
+ session_id: z.ZodString;
773
+ observation_type: z.ZodEnum<["intervention_effective", "stuck_pattern", "crash_trigger", "recovery_pattern"]>;
774
+ context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
775
+ outcome: z.ZodEnum<["positive", "negative", "neutral"]>;
776
+ confidence: z.ZodOptional<z.ZodNumber>;
777
+ }, "strip", z.ZodTypeAny, {
778
+ session_id: string;
779
+ timestamp: string;
780
+ observation_type: "intervention_effective" | "stuck_pattern" | "crash_trigger" | "recovery_pattern";
781
+ outcome: "positive" | "negative" | "neutral";
782
+ context?: Record<string, unknown> | undefined;
783
+ confidence?: number | undefined;
784
+ }, {
785
+ session_id: string;
786
+ timestamp: string;
787
+ observation_type: "intervention_effective" | "stuck_pattern" | "crash_trigger" | "recovery_pattern";
788
+ outcome: "positive" | "negative" | "neutral";
789
+ context?: Record<string, unknown> | undefined;
790
+ confidence?: number | undefined;
791
+ }>, "many">>;
792
+ conductor_session: z.ZodOptional<z.ZodObject<{
793
+ conductor_version: z.ZodDefault<z.ZodString>;
794
+ spec_path: z.ZodOptional<z.ZodString>;
795
+ plan_path: z.ZodOptional<z.ZodString>;
796
+ track_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
+ session_id: z.ZodString;
798
+ agent: z.ZodString;
799
+ current_assignment: z.ZodOptional<z.ZodObject<{
800
+ track: z.ZodOptional<z.ZodString>;
801
+ task: z.ZodOptional<z.ZodString>;
802
+ subtask: z.ZodOptional<z.ZodNullable<z.ZodString>>;
803
+ iteration: z.ZodOptional<z.ZodNumber>;
804
+ }, "strip", z.ZodTypeAny, {
805
+ track?: string | undefined;
806
+ task?: string | undefined;
807
+ subtask?: string | null | undefined;
808
+ iteration?: number | undefined;
809
+ }, {
810
+ track?: string | undefined;
811
+ task?: string | undefined;
812
+ subtask?: string | null | undefined;
813
+ iteration?: number | undefined;
814
+ }>>;
815
+ context_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
816
+ scratchpad: z.ZodOptional<z.ZodString>;
817
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
818
+ created_at: z.ZodOptional<z.ZodString>;
819
+ updated_at: z.ZodOptional<z.ZodString>;
820
+ }, "strip", z.ZodTypeAny, {
821
+ session_id: string;
822
+ agent: string;
823
+ conductor_version: string;
824
+ spec_path?: string | undefined;
825
+ plan_path?: string | undefined;
826
+ track_id?: string | null | undefined;
827
+ current_assignment?: {
828
+ track?: string | undefined;
829
+ task?: string | undefined;
830
+ subtask?: string | null | undefined;
831
+ iteration?: number | undefined;
832
+ } | undefined;
833
+ context_files?: string[] | undefined;
834
+ scratchpad?: string | undefined;
835
+ warnings?: string[] | undefined;
836
+ created_at?: string | undefined;
837
+ updated_at?: string | undefined;
838
+ }, {
839
+ session_id: string;
840
+ agent: string;
841
+ conductor_version?: string | undefined;
842
+ spec_path?: string | undefined;
843
+ plan_path?: string | undefined;
844
+ track_id?: string | null | undefined;
845
+ current_assignment?: {
846
+ track?: string | undefined;
847
+ task?: string | undefined;
848
+ subtask?: string | null | undefined;
849
+ iteration?: number | undefined;
850
+ } | undefined;
851
+ context_files?: string[] | undefined;
852
+ scratchpad?: string | undefined;
853
+ warnings?: string[] | undefined;
854
+ created_at?: string | undefined;
855
+ updated_at?: string | undefined;
856
+ }>>;
857
+ conductor_tracks: z.ZodOptional<z.ZodArray<z.ZodObject<{
858
+ id: z.ZodString;
859
+ name: z.ZodString;
860
+ description: z.ZodOptional<z.ZodString>;
861
+ status: z.ZodEnum<["pending", "in_progress", "complete", "blocked"]>;
862
+ agent: z.ZodOptional<z.ZodString>;
863
+ dependencies: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
864
+ tasks: z.ZodArray<z.ZodObject<{
865
+ id: z.ZodString;
866
+ content: z.ZodString;
867
+ status: z.ZodEnum<["pending", "in_progress", "complete", "blocked"]>;
868
+ track: z.ZodOptional<z.ZodString>;
869
+ parent_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
871
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
873
+ }, "strip", z.ZodTypeAny, {
874
+ status: "pending" | "in_progress" | "complete" | "blocked";
875
+ id: string;
876
+ content: string;
877
+ track?: string | undefined;
878
+ parent_id?: string | null | undefined;
879
+ artifacts?: string[] | undefined;
880
+ started_at?: string | null | undefined;
881
+ completed_at?: string | null | undefined;
882
+ }, {
883
+ status: "pending" | "in_progress" | "complete" | "blocked";
884
+ id: string;
885
+ content: string;
886
+ track?: string | undefined;
887
+ parent_id?: string | null | undefined;
888
+ artifacts?: string[] | undefined;
889
+ started_at?: string | null | undefined;
890
+ completed_at?: string | null | undefined;
891
+ }>, "many">;
892
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
893
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
894
+ }, "strip", z.ZodTypeAny, {
895
+ status: "pending" | "in_progress" | "complete" | "blocked";
896
+ id: string;
897
+ name: string;
898
+ tasks: {
899
+ status: "pending" | "in_progress" | "complete" | "blocked";
900
+ id: string;
901
+ content: string;
902
+ track?: string | undefined;
903
+ parent_id?: string | null | undefined;
904
+ artifacts?: string[] | undefined;
905
+ started_at?: string | null | undefined;
906
+ completed_at?: string | null | undefined;
907
+ }[];
908
+ started_at?: string | null | undefined;
909
+ completed_at?: string | null | undefined;
910
+ description?: string | undefined;
911
+ agent?: string | undefined;
912
+ dependencies?: string[] | undefined;
913
+ }, {
914
+ status: "pending" | "in_progress" | "complete" | "blocked";
915
+ id: string;
916
+ name: string;
917
+ tasks: {
918
+ status: "pending" | "in_progress" | "complete" | "blocked";
919
+ id: string;
920
+ content: string;
921
+ track?: string | undefined;
922
+ parent_id?: string | null | undefined;
923
+ artifacts?: string[] | undefined;
924
+ started_at?: string | null | undefined;
925
+ completed_at?: string | null | undefined;
926
+ }[];
927
+ started_at?: string | null | undefined;
928
+ completed_at?: string | null | undefined;
929
+ description?: string | undefined;
930
+ agent?: string | undefined;
931
+ dependencies?: string[] | undefined;
932
+ }>, "many">>;
933
+ mycelium_arc: z.ZodOptional<z.ZodObject<{
934
+ version: z.ZodDefault<z.ZodString>;
935
+ created_at: z.ZodString;
936
+ expires_at: z.ZodOptional<z.ZodString>;
937
+ source_agent: z.ZodEnum<["claude-code", "gemini-cli", "other"]>;
938
+ target_agent: z.ZodOptional<z.ZodEnum<["claude-code", "gemini-cli", "any"]>>;
939
+ session_state: z.ZodObject<{
940
+ session_id: z.ZodString;
941
+ timestamp: z.ZodString;
942
+ checksum: z.ZodOptional<z.ZodString>;
943
+ version: z.ZodDefault<z.ZodString>;
944
+ active_mode: z.ZodEnum<["focused", "exploring", "teaching", "recovery"]>;
945
+ active_paradigm: z.ZodEnum<["Cortex", "Mycelium"]>;
946
+ detected_state: z.ZodOptional<z.ZodEnum<["focused", "stuck", "overwhelmed", "frustrated", "hyperfocused", "depleted"]>>;
947
+ current_altitude: z.ZodOptional<z.ZodEnum<["30000ft", "15000ft", "5000ft", "Ground"]>>;
948
+ energy_level: z.ZodEnum<["high", "medium", "low", "depleted"]>;
949
+ burnout_level: z.ZodEnum<["GREEN", "YELLOW", "ORANGE", "RED"]>;
950
+ momentum_phase: z.ZodEnum<["cold_start", "building", "rolling", "peak", "declining", "crashed"]>;
951
+ session_start_goal: z.ZodOptional<z.ZodString>;
952
+ parked_ideas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
953
+ active_project_profile: z.ZodDefault<z.ZodString>;
954
+ convergence_attractor: z.ZodOptional<z.ZodEnum<["focused", "exploring", "recovery", "teaching"]>>;
955
+ last_xi_value: z.ZodOptional<z.ZodNumber>;
956
+ stable_exchange_count: z.ZodOptional<z.ZodNumber>;
957
+ active_intervention_expert: z.ZodOptional<z.ZodEnum<["Validator", "Scaffolder", "Restorer", "Refocuser", "Celebrator", "Socratic", "Direct"]>>;
958
+ active_domain_expert: z.ZodOptional<z.ZodString>;
959
+ consent_checksum: z.ZodOptional<z.ZodString>;
960
+ }, "strip", z.ZodTypeAny, {
961
+ session_id: string;
962
+ timestamp: string;
963
+ version: string;
964
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
965
+ active_paradigm: "Cortex" | "Mycelium";
966
+ energy_level: "depleted" | "high" | "medium" | "low";
967
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
968
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
969
+ parked_ideas: string[];
970
+ active_project_profile: string;
971
+ checksum?: string | undefined;
972
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
973
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
974
+ session_start_goal?: string | undefined;
975
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
976
+ last_xi_value?: number | undefined;
977
+ stable_exchange_count?: number | undefined;
978
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
979
+ active_domain_expert?: string | undefined;
980
+ consent_checksum?: string | undefined;
981
+ }, {
982
+ session_id: string;
983
+ timestamp: string;
984
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
985
+ active_paradigm: "Cortex" | "Mycelium";
986
+ energy_level: "depleted" | "high" | "medium" | "low";
987
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
988
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
989
+ checksum?: string | undefined;
990
+ version?: string | undefined;
991
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
992
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
993
+ session_start_goal?: string | undefined;
994
+ parked_ideas?: string[] | undefined;
995
+ active_project_profile?: string | undefined;
996
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
997
+ last_xi_value?: number | undefined;
998
+ stable_exchange_count?: number | undefined;
999
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1000
+ active_domain_expert?: string | undefined;
1001
+ consent_checksum?: string | undefined;
1002
+ }>;
1003
+ conductor_context: z.ZodOptional<z.ZodObject<{
1004
+ conductor_version: z.ZodDefault<z.ZodString>;
1005
+ spec_path: z.ZodOptional<z.ZodString>;
1006
+ plan_path: z.ZodOptional<z.ZodString>;
1007
+ track_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1008
+ session_id: z.ZodString;
1009
+ agent: z.ZodString;
1010
+ current_assignment: z.ZodOptional<z.ZodObject<{
1011
+ track: z.ZodOptional<z.ZodString>;
1012
+ task: z.ZodOptional<z.ZodString>;
1013
+ subtask: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1014
+ iteration: z.ZodOptional<z.ZodNumber>;
1015
+ }, "strip", z.ZodTypeAny, {
1016
+ track?: string | undefined;
1017
+ task?: string | undefined;
1018
+ subtask?: string | null | undefined;
1019
+ iteration?: number | undefined;
1020
+ }, {
1021
+ track?: string | undefined;
1022
+ task?: string | undefined;
1023
+ subtask?: string | null | undefined;
1024
+ iteration?: number | undefined;
1025
+ }>>;
1026
+ context_files: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1027
+ scratchpad: z.ZodOptional<z.ZodString>;
1028
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1029
+ created_at: z.ZodOptional<z.ZodString>;
1030
+ updated_at: z.ZodOptional<z.ZodString>;
1031
+ }, "strip", z.ZodTypeAny, {
1032
+ session_id: string;
1033
+ agent: string;
1034
+ conductor_version: string;
1035
+ spec_path?: string | undefined;
1036
+ plan_path?: string | undefined;
1037
+ track_id?: string | null | undefined;
1038
+ current_assignment?: {
1039
+ track?: string | undefined;
1040
+ task?: string | undefined;
1041
+ subtask?: string | null | undefined;
1042
+ iteration?: number | undefined;
1043
+ } | undefined;
1044
+ context_files?: string[] | undefined;
1045
+ scratchpad?: string | undefined;
1046
+ warnings?: string[] | undefined;
1047
+ created_at?: string | undefined;
1048
+ updated_at?: string | undefined;
1049
+ }, {
1050
+ session_id: string;
1051
+ agent: string;
1052
+ conductor_version?: string | undefined;
1053
+ spec_path?: string | undefined;
1054
+ plan_path?: string | undefined;
1055
+ track_id?: string | null | undefined;
1056
+ current_assignment?: {
1057
+ track?: string | undefined;
1058
+ task?: string | undefined;
1059
+ subtask?: string | null | undefined;
1060
+ iteration?: number | undefined;
1061
+ } | undefined;
1062
+ context_files?: string[] | undefined;
1063
+ scratchpad?: string | undefined;
1064
+ warnings?: string[] | undefined;
1065
+ created_at?: string | undefined;
1066
+ updated_at?: string | undefined;
1067
+ }>>;
1068
+ resume_summary: z.ZodOptional<z.ZodString>;
1069
+ momentum_at_handoff: z.ZodOptional<z.ZodEnum<["cold_start", "building", "rolling", "peak", "declining", "crashed"]>>;
1070
+ parked_ideas: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1071
+ warnings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1072
+ encryption: z.ZodOptional<z.ZodObject<{
1073
+ algorithm: z.ZodOptional<z.ZodEnum<["none", "fernet", "aes-256-gcm"]>>;
1074
+ machine_bound: z.ZodOptional<z.ZodBoolean>;
1075
+ }, "strip", z.ZodTypeAny, {
1076
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
1077
+ machine_bound?: boolean | undefined;
1078
+ }, {
1079
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
1080
+ machine_bound?: boolean | undefined;
1081
+ }>>;
1082
+ checksum: z.ZodOptional<z.ZodString>;
1083
+ }, "strip", z.ZodTypeAny, {
1084
+ session_state: {
1085
+ session_id: string;
1086
+ timestamp: string;
1087
+ version: string;
1088
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
1089
+ active_paradigm: "Cortex" | "Mycelium";
1090
+ energy_level: "depleted" | "high" | "medium" | "low";
1091
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
1092
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
1093
+ parked_ideas: string[];
1094
+ active_project_profile: string;
1095
+ checksum?: string | undefined;
1096
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
1097
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1098
+ session_start_goal?: string | undefined;
1099
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
1100
+ last_xi_value?: number | undefined;
1101
+ stable_exchange_count?: number | undefined;
1102
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1103
+ active_domain_expert?: string | undefined;
1104
+ consent_checksum?: string | undefined;
1105
+ };
1106
+ version: string;
1107
+ created_at: string;
1108
+ source_agent: "claude-code" | "gemini-cli" | "other";
1109
+ checksum?: string | undefined;
1110
+ parked_ideas?: string[] | undefined;
1111
+ warnings?: string[] | undefined;
1112
+ expires_at?: string | undefined;
1113
+ target_agent?: "claude-code" | "gemini-cli" | "any" | undefined;
1114
+ conductor_context?: {
1115
+ session_id: string;
1116
+ agent: string;
1117
+ conductor_version: string;
1118
+ spec_path?: string | undefined;
1119
+ plan_path?: string | undefined;
1120
+ track_id?: string | null | undefined;
1121
+ current_assignment?: {
1122
+ track?: string | undefined;
1123
+ task?: string | undefined;
1124
+ subtask?: string | null | undefined;
1125
+ iteration?: number | undefined;
1126
+ } | undefined;
1127
+ context_files?: string[] | undefined;
1128
+ scratchpad?: string | undefined;
1129
+ warnings?: string[] | undefined;
1130
+ created_at?: string | undefined;
1131
+ updated_at?: string | undefined;
1132
+ } | undefined;
1133
+ resume_summary?: string | undefined;
1134
+ momentum_at_handoff?: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed" | undefined;
1135
+ encryption?: {
1136
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
1137
+ machine_bound?: boolean | undefined;
1138
+ } | undefined;
1139
+ }, {
1140
+ session_state: {
1141
+ session_id: string;
1142
+ timestamp: string;
1143
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
1144
+ active_paradigm: "Cortex" | "Mycelium";
1145
+ energy_level: "depleted" | "high" | "medium" | "low";
1146
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
1147
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
1148
+ checksum?: string | undefined;
1149
+ version?: string | undefined;
1150
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
1151
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1152
+ session_start_goal?: string | undefined;
1153
+ parked_ideas?: string[] | undefined;
1154
+ active_project_profile?: string | undefined;
1155
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
1156
+ last_xi_value?: number | undefined;
1157
+ stable_exchange_count?: number | undefined;
1158
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1159
+ active_domain_expert?: string | undefined;
1160
+ consent_checksum?: string | undefined;
1161
+ };
1162
+ created_at: string;
1163
+ source_agent: "claude-code" | "gemini-cli" | "other";
1164
+ checksum?: string | undefined;
1165
+ version?: string | undefined;
1166
+ parked_ideas?: string[] | undefined;
1167
+ warnings?: string[] | undefined;
1168
+ expires_at?: string | undefined;
1169
+ target_agent?: "claude-code" | "gemini-cli" | "any" | undefined;
1170
+ conductor_context?: {
1171
+ session_id: string;
1172
+ agent: string;
1173
+ conductor_version?: string | undefined;
1174
+ spec_path?: string | undefined;
1175
+ plan_path?: string | undefined;
1176
+ track_id?: string | null | undefined;
1177
+ current_assignment?: {
1178
+ track?: string | undefined;
1179
+ task?: string | undefined;
1180
+ subtask?: string | null | undefined;
1181
+ iteration?: number | undefined;
1182
+ } | undefined;
1183
+ context_files?: string[] | undefined;
1184
+ scratchpad?: string | undefined;
1185
+ warnings?: string[] | undefined;
1186
+ created_at?: string | undefined;
1187
+ updated_at?: string | undefined;
1188
+ } | undefined;
1189
+ resume_summary?: string | undefined;
1190
+ momentum_at_handoff?: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed" | undefined;
1191
+ encryption?: {
1192
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
1193
+ machine_bound?: boolean | undefined;
1194
+ } | undefined;
1195
+ }>>;
1196
+ checksum: z.ZodOptional<z.ZodString>;
1197
+ }, "strip", z.ZodTypeAny, {
1198
+ created_at: string;
1199
+ interchange_version: "1.0.0";
1200
+ document_type: "session_state" | "convergence_record" | "routing_decision" | "calibration" | "conductor_sync" | "mycelium_arc";
1201
+ source: "usd-substrate" | "conductor-bridge" | "framework-orchestrator";
1202
+ session_state?: {
1203
+ session_id: string;
1204
+ timestamp: string;
1205
+ version: string;
1206
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
1207
+ active_paradigm: "Cortex" | "Mycelium";
1208
+ energy_level: "depleted" | "high" | "medium" | "low";
1209
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
1210
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
1211
+ parked_ideas: string[];
1212
+ active_project_profile: string;
1213
+ checksum?: string | undefined;
1214
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
1215
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1216
+ session_start_goal?: string | undefined;
1217
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
1218
+ last_xi_value?: number | undefined;
1219
+ stable_exchange_count?: number | undefined;
1220
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1221
+ active_domain_expert?: string | undefined;
1222
+ consent_checksum?: string | undefined;
1223
+ } | undefined;
1224
+ mycelium_arc?: {
1225
+ session_state: {
1226
+ session_id: string;
1227
+ timestamp: string;
1228
+ version: string;
1229
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
1230
+ active_paradigm: "Cortex" | "Mycelium";
1231
+ energy_level: "depleted" | "high" | "medium" | "low";
1232
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
1233
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
1234
+ parked_ideas: string[];
1235
+ active_project_profile: string;
1236
+ checksum?: string | undefined;
1237
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
1238
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1239
+ session_start_goal?: string | undefined;
1240
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
1241
+ last_xi_value?: number | undefined;
1242
+ stable_exchange_count?: number | undefined;
1243
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1244
+ active_domain_expert?: string | undefined;
1245
+ consent_checksum?: string | undefined;
1246
+ };
1247
+ version: string;
1248
+ created_at: string;
1249
+ source_agent: "claude-code" | "gemini-cli" | "other";
1250
+ checksum?: string | undefined;
1251
+ parked_ideas?: string[] | undefined;
1252
+ warnings?: string[] | undefined;
1253
+ expires_at?: string | undefined;
1254
+ target_agent?: "claude-code" | "gemini-cli" | "any" | undefined;
1255
+ conductor_context?: {
1256
+ session_id: string;
1257
+ agent: string;
1258
+ conductor_version: string;
1259
+ spec_path?: string | undefined;
1260
+ plan_path?: string | undefined;
1261
+ track_id?: string | null | undefined;
1262
+ current_assignment?: {
1263
+ track?: string | undefined;
1264
+ task?: string | undefined;
1265
+ subtask?: string | null | undefined;
1266
+ iteration?: number | undefined;
1267
+ } | undefined;
1268
+ context_files?: string[] | undefined;
1269
+ scratchpad?: string | undefined;
1270
+ warnings?: string[] | undefined;
1271
+ created_at?: string | undefined;
1272
+ updated_at?: string | undefined;
1273
+ } | undefined;
1274
+ resume_summary?: string | undefined;
1275
+ momentum_at_handoff?: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed" | undefined;
1276
+ encryption?: {
1277
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
1278
+ machine_bound?: boolean | undefined;
1279
+ } | undefined;
1280
+ } | undefined;
1281
+ checksum?: string | undefined;
1282
+ $schema?: string | undefined;
1283
+ convergence_records?: {
1284
+ session_id: string;
1285
+ timestamp: string;
1286
+ exchange_number: number;
1287
+ xi_n: number;
1288
+ attractor: "focused" | "exploring" | "teaching" | "recovery";
1289
+ checksum?: string | undefined;
1290
+ energy_level?: "depleted" | "high" | "medium" | "low" | undefined;
1291
+ burnout_level?: "GREEN" | "YELLOW" | "ORANGE" | "RED" | undefined;
1292
+ expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1293
+ paradigm?: "Cortex" | "Mycelium" | undefined;
1294
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1295
+ stability?: "stable" | "converging" | "oscillating" | undefined;
1296
+ }[] | undefined;
1297
+ routing_decisions?: {
1298
+ session_id: string;
1299
+ timestamp: string;
1300
+ exchange_number: number;
1301
+ expert: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct";
1302
+ paradigm: "Cortex" | "Mycelium";
1303
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1304
+ signals?: Record<string, unknown> | undefined;
1305
+ state?: Record<string, unknown> | undefined;
1306
+ verbosity?: "minimal" | "standard" | "concise" | "detailed" | "comprehensive" | undefined;
1307
+ think_depth?: "minimal" | "standard" | "deep" | "ultradeep" | undefined;
1308
+ input_checksum?: string | undefined;
1309
+ output_checksum?: string | undefined;
1310
+ anchor?: string | undefined;
1311
+ }[] | undefined;
1312
+ calibration_observations?: {
1313
+ session_id: string;
1314
+ timestamp: string;
1315
+ observation_type: "intervention_effective" | "stuck_pattern" | "crash_trigger" | "recovery_pattern";
1316
+ outcome: "positive" | "negative" | "neutral";
1317
+ context?: Record<string, unknown> | undefined;
1318
+ confidence?: number | undefined;
1319
+ }[] | undefined;
1320
+ conductor_session?: {
1321
+ session_id: string;
1322
+ agent: string;
1323
+ conductor_version: string;
1324
+ spec_path?: string | undefined;
1325
+ plan_path?: string | undefined;
1326
+ track_id?: string | null | undefined;
1327
+ current_assignment?: {
1328
+ track?: string | undefined;
1329
+ task?: string | undefined;
1330
+ subtask?: string | null | undefined;
1331
+ iteration?: number | undefined;
1332
+ } | undefined;
1333
+ context_files?: string[] | undefined;
1334
+ scratchpad?: string | undefined;
1335
+ warnings?: string[] | undefined;
1336
+ created_at?: string | undefined;
1337
+ updated_at?: string | undefined;
1338
+ } | undefined;
1339
+ conductor_tracks?: {
1340
+ status: "pending" | "in_progress" | "complete" | "blocked";
1341
+ id: string;
1342
+ name: string;
1343
+ tasks: {
1344
+ status: "pending" | "in_progress" | "complete" | "blocked";
1345
+ id: string;
1346
+ content: string;
1347
+ track?: string | undefined;
1348
+ parent_id?: string | null | undefined;
1349
+ artifacts?: string[] | undefined;
1350
+ started_at?: string | null | undefined;
1351
+ completed_at?: string | null | undefined;
1352
+ }[];
1353
+ started_at?: string | null | undefined;
1354
+ completed_at?: string | null | undefined;
1355
+ description?: string | undefined;
1356
+ agent?: string | undefined;
1357
+ dependencies?: string[] | undefined;
1358
+ }[] | undefined;
1359
+ }, {
1360
+ created_at: string;
1361
+ interchange_version: "1.0.0";
1362
+ document_type: "session_state" | "convergence_record" | "routing_decision" | "calibration" | "conductor_sync" | "mycelium_arc";
1363
+ source: "usd-substrate" | "conductor-bridge" | "framework-orchestrator";
1364
+ session_state?: {
1365
+ session_id: string;
1366
+ timestamp: string;
1367
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
1368
+ active_paradigm: "Cortex" | "Mycelium";
1369
+ energy_level: "depleted" | "high" | "medium" | "low";
1370
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
1371
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
1372
+ checksum?: string | undefined;
1373
+ version?: string | undefined;
1374
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
1375
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1376
+ session_start_goal?: string | undefined;
1377
+ parked_ideas?: string[] | undefined;
1378
+ active_project_profile?: string | undefined;
1379
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
1380
+ last_xi_value?: number | undefined;
1381
+ stable_exchange_count?: number | undefined;
1382
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1383
+ active_domain_expert?: string | undefined;
1384
+ consent_checksum?: string | undefined;
1385
+ } | undefined;
1386
+ mycelium_arc?: {
1387
+ session_state: {
1388
+ session_id: string;
1389
+ timestamp: string;
1390
+ active_mode: "focused" | "exploring" | "teaching" | "recovery";
1391
+ active_paradigm: "Cortex" | "Mycelium";
1392
+ energy_level: "depleted" | "high" | "medium" | "low";
1393
+ burnout_level: "GREEN" | "YELLOW" | "ORANGE" | "RED";
1394
+ momentum_phase: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed";
1395
+ checksum?: string | undefined;
1396
+ version?: string | undefined;
1397
+ detected_state?: "focused" | "stuck" | "overwhelmed" | "frustrated" | "hyperfocused" | "depleted" | undefined;
1398
+ current_altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1399
+ session_start_goal?: string | undefined;
1400
+ parked_ideas?: string[] | undefined;
1401
+ active_project_profile?: string | undefined;
1402
+ convergence_attractor?: "focused" | "exploring" | "teaching" | "recovery" | undefined;
1403
+ last_xi_value?: number | undefined;
1404
+ stable_exchange_count?: number | undefined;
1405
+ active_intervention_expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1406
+ active_domain_expert?: string | undefined;
1407
+ consent_checksum?: string | undefined;
1408
+ };
1409
+ created_at: string;
1410
+ source_agent: "claude-code" | "gemini-cli" | "other";
1411
+ checksum?: string | undefined;
1412
+ version?: string | undefined;
1413
+ parked_ideas?: string[] | undefined;
1414
+ warnings?: string[] | undefined;
1415
+ expires_at?: string | undefined;
1416
+ target_agent?: "claude-code" | "gemini-cli" | "any" | undefined;
1417
+ conductor_context?: {
1418
+ session_id: string;
1419
+ agent: string;
1420
+ conductor_version?: string | undefined;
1421
+ spec_path?: string | undefined;
1422
+ plan_path?: string | undefined;
1423
+ track_id?: string | null | undefined;
1424
+ current_assignment?: {
1425
+ track?: string | undefined;
1426
+ task?: string | undefined;
1427
+ subtask?: string | null | undefined;
1428
+ iteration?: number | undefined;
1429
+ } | undefined;
1430
+ context_files?: string[] | undefined;
1431
+ scratchpad?: string | undefined;
1432
+ warnings?: string[] | undefined;
1433
+ created_at?: string | undefined;
1434
+ updated_at?: string | undefined;
1435
+ } | undefined;
1436
+ resume_summary?: string | undefined;
1437
+ momentum_at_handoff?: "cold_start" | "building" | "rolling" | "peak" | "declining" | "crashed" | undefined;
1438
+ encryption?: {
1439
+ algorithm?: "none" | "fernet" | "aes-256-gcm" | undefined;
1440
+ machine_bound?: boolean | undefined;
1441
+ } | undefined;
1442
+ } | undefined;
1443
+ checksum?: string | undefined;
1444
+ $schema?: string | undefined;
1445
+ convergence_records?: {
1446
+ session_id: string;
1447
+ timestamp: string;
1448
+ exchange_number: number;
1449
+ xi_n: number;
1450
+ attractor: "focused" | "exploring" | "teaching" | "recovery";
1451
+ checksum?: string | undefined;
1452
+ energy_level?: "depleted" | "high" | "medium" | "low" | undefined;
1453
+ burnout_level?: "GREEN" | "YELLOW" | "ORANGE" | "RED" | undefined;
1454
+ expert?: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct" | undefined;
1455
+ paradigm?: "Cortex" | "Mycelium" | undefined;
1456
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1457
+ stability?: "stable" | "converging" | "oscillating" | undefined;
1458
+ }[] | undefined;
1459
+ routing_decisions?: {
1460
+ session_id: string;
1461
+ timestamp: string;
1462
+ exchange_number: number;
1463
+ expert: "Validator" | "Scaffolder" | "Restorer" | "Refocuser" | "Celebrator" | "Socratic" | "Direct";
1464
+ paradigm: "Cortex" | "Mycelium";
1465
+ altitude?: "30000ft" | "15000ft" | "5000ft" | "Ground" | undefined;
1466
+ signals?: Record<string, unknown> | undefined;
1467
+ state?: Record<string, unknown> | undefined;
1468
+ verbosity?: "minimal" | "standard" | "concise" | "detailed" | "comprehensive" | undefined;
1469
+ think_depth?: "minimal" | "standard" | "deep" | "ultradeep" | undefined;
1470
+ input_checksum?: string | undefined;
1471
+ output_checksum?: string | undefined;
1472
+ anchor?: string | undefined;
1473
+ }[] | undefined;
1474
+ calibration_observations?: {
1475
+ session_id: string;
1476
+ timestamp: string;
1477
+ observation_type: "intervention_effective" | "stuck_pattern" | "crash_trigger" | "recovery_pattern";
1478
+ outcome: "positive" | "negative" | "neutral";
1479
+ context?: Record<string, unknown> | undefined;
1480
+ confidence?: number | undefined;
1481
+ }[] | undefined;
1482
+ conductor_session?: {
1483
+ session_id: string;
1484
+ agent: string;
1485
+ conductor_version?: string | undefined;
1486
+ spec_path?: string | undefined;
1487
+ plan_path?: string | undefined;
1488
+ track_id?: string | null | undefined;
1489
+ current_assignment?: {
1490
+ track?: string | undefined;
1491
+ task?: string | undefined;
1492
+ subtask?: string | null | undefined;
1493
+ iteration?: number | undefined;
1494
+ } | undefined;
1495
+ context_files?: string[] | undefined;
1496
+ scratchpad?: string | undefined;
1497
+ warnings?: string[] | undefined;
1498
+ created_at?: string | undefined;
1499
+ updated_at?: string | undefined;
1500
+ } | undefined;
1501
+ conductor_tracks?: {
1502
+ status: "pending" | "in_progress" | "complete" | "blocked";
1503
+ id: string;
1504
+ name: string;
1505
+ tasks: {
1506
+ status: "pending" | "in_progress" | "complete" | "blocked";
1507
+ id: string;
1508
+ content: string;
1509
+ track?: string | undefined;
1510
+ parent_id?: string | null | undefined;
1511
+ artifacts?: string[] | undefined;
1512
+ started_at?: string | null | undefined;
1513
+ completed_at?: string | null | undefined;
1514
+ }[];
1515
+ started_at?: string | null | undefined;
1516
+ completed_at?: string | null | undefined;
1517
+ description?: string | undefined;
1518
+ agent?: string | undefined;
1519
+ dependencies?: string[] | undefined;
1520
+ }[] | undefined;
1521
+ }>;
1522
+ export type CognitiveStateDocument = z.infer<typeof CognitiveStateDocumentSchema>;
1523
+ //# sourceMappingURL=cognitive-state.d.ts.map