@lucern/contracts 0.1.2-alpha.5 → 0.3.0-alpha.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.
Files changed (223) hide show
  1. package/dist/defineFunction-DO97DKs4.d.ts +14 -0
  2. package/dist/defineTable-CBQ03FXl.d.ts +36 -0
  3. package/dist/dsl-BgpoVOVQ.d.ts +110 -0
  4. package/dist/dsl.d.ts +5 -0
  5. package/dist/dsl.js +678 -0
  6. package/dist/dsl.js.map +1 -0
  7. package/dist/function-registry/beliefs.d.ts +479 -0
  8. package/dist/function-registry/beliefs.js +4677 -0
  9. package/dist/function-registry/beliefs.js.map +1 -0
  10. package/dist/function-registry/coding.d.ts +323 -0
  11. package/dist/function-registry/coding.js +4451 -0
  12. package/dist/function-registry/coding.js.map +1 -0
  13. package/dist/function-registry/context.d.ts +206 -0
  14. package/dist/function-registry/context.js +4336 -0
  15. package/dist/function-registry/context.js.map +1 -0
  16. package/dist/function-registry/contracts.d.ts +206 -0
  17. package/dist/function-registry/contracts.js +4284 -0
  18. package/dist/function-registry/contracts.js.map +1 -0
  19. package/dist/function-registry/coordination.d.ts +440 -0
  20. package/dist/function-registry/coordination.js +4405 -0
  21. package/dist/function-registry/coordination.js.map +1 -0
  22. package/dist/function-registry/edges.d.ts +167 -0
  23. package/dist/function-registry/edges.js +4425 -0
  24. package/dist/function-registry/edges.js.map +1 -0
  25. package/dist/function-registry/evidence.d.ts +401 -0
  26. package/dist/function-registry/evidence.js +4598 -0
  27. package/dist/function-registry/evidence.js.map +1 -0
  28. package/dist/function-registry/graph.d.ts +596 -0
  29. package/dist/function-registry/graph.js +4489 -0
  30. package/dist/function-registry/graph.js.map +1 -0
  31. package/dist/function-registry/helpers.d.ts +84 -0
  32. package/dist/function-registry/helpers.js +4280 -0
  33. package/dist/function-registry/helpers.js.map +1 -0
  34. package/dist/function-registry/identity.d.ts +206 -0
  35. package/dist/function-registry/identity.js +4295 -0
  36. package/dist/function-registry/identity.js.map +1 -0
  37. package/dist/function-registry/index.d.ts +32 -0
  38. package/dist/function-registry/index.js +4384 -0
  39. package/dist/function-registry/index.js.map +1 -0
  40. package/dist/function-registry/judgments.d.ts +167 -0
  41. package/dist/function-registry/judgments.js +4308 -0
  42. package/dist/function-registry/judgments.js.map +1 -0
  43. package/dist/function-registry/legacy.d.ts +128 -0
  44. package/dist/function-registry/legacy.js +4259 -0
  45. package/dist/function-registry/legacy.js.map +1 -0
  46. package/dist/function-registry/lenses.d.ts +245 -0
  47. package/dist/function-registry/lenses.js +4343 -0
  48. package/dist/function-registry/lenses.js.map +1 -0
  49. package/dist/function-registry/manifest.d.ts +36 -0
  50. package/dist/function-registry/manifest.js +367 -0
  51. package/dist/function-registry/manifest.js.map +1 -0
  52. package/dist/function-registry/ontologies.d.ts +518 -0
  53. package/dist/function-registry/ontologies.js +4442 -0
  54. package/dist/function-registry/ontologies.js.map +1 -0
  55. package/dist/function-registry/pipeline.d.ts +206 -0
  56. package/dist/function-registry/pipeline.js +4295 -0
  57. package/dist/function-registry/pipeline.js.map +1 -0
  58. package/dist/function-registry/questions.d.ts +557 -0
  59. package/dist/function-registry/questions.js +4528 -0
  60. package/dist/function-registry/questions.js.map +1 -0
  61. package/dist/function-registry/tasks.d.ts +245 -0
  62. package/dist/function-registry/tasks.js +4373 -0
  63. package/dist/function-registry/tasks.js.map +1 -0
  64. package/dist/function-registry/topics.d.ts +284 -0
  65. package/dist/function-registry/topics.js +4350 -0
  66. package/dist/function-registry/topics.js.map +1 -0
  67. package/dist/function-registry/types.d.ts +84 -0
  68. package/dist/function-registry/types.js +3 -0
  69. package/dist/function-registry/types.js.map +1 -0
  70. package/dist/function-registry/worktrees.d.ts +479 -0
  71. package/dist/function-registry/worktrees.js +4522 -0
  72. package/dist/function-registry/worktrees.js.map +1 -0
  73. package/dist/generated/convexSchemas.d.ts +20 -0
  74. package/dist/generated/convexSchemas.js +161 -0
  75. package/dist/generated/convexSchemas.js.map +1 -0
  76. package/dist/generated/schema-manifest.json +5231 -0
  77. package/dist/generated/tableOwnership.d.ts +128 -0
  78. package/dist/generated/tableOwnership.js +278 -0
  79. package/dist/generated/tableOwnership.js.map +1 -0
  80. package/dist/generated/tier-expectations.json +363 -0
  81. package/dist/idOf-DR8tkhQS.d.ts +10 -0
  82. package/dist/index-CV-0_VWJ.d.ts +25 -0
  83. package/dist/index.d.ts +421 -2
  84. package/dist/index.js +7634 -1607
  85. package/dist/index.js.map +1 -1
  86. package/dist/schema-helpers/enumValidation.d.ts +17 -0
  87. package/dist/schema-helpers/enumValidation.js +143 -0
  88. package/dist/schema-helpers/enumValidation.js.map +1 -0
  89. package/dist/schema-helpers/spine/nodes/decision.d.ts +19 -0
  90. package/dist/schema-helpers/spine/nodes/decision.js +81 -0
  91. package/dist/schema-helpers/spine/nodes/decision.js.map +1 -0
  92. package/dist/schema-helpers/spine/tables/epistemicNodes.d.ts +9 -0
  93. package/dist/schema-helpers/spine/tables/epistemicNodes.js +62 -0
  94. package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -0
  95. package/dist/schema-helpers/topicIds.d.ts +17 -0
  96. package/dist/schema-helpers/topicIds.js +21 -0
  97. package/dist/schema-helpers/topicIds.js.map +1 -0
  98. package/dist/schema-helpers/topicLegacyScope.d.ts +19 -0
  99. package/dist/schema-helpers/topicLegacyScope.js +44 -0
  100. package/dist/schema-helpers/topicLegacyScope.js.map +1 -0
  101. package/dist/schema-helpers/validators.d.ts +8 -0
  102. package/dist/schema-helpers/validators.js +18 -0
  103. package/dist/schema-helpers/validators.js.map +1 -0
  104. package/dist/schemas/component-table-manifest.d.ts +74 -0
  105. package/dist/schemas/component-table-manifest.js +26 -0
  106. package/dist/schemas/component-table-manifest.js.map +1 -0
  107. package/dist/schemas/enums.d.ts +12 -0
  108. package/dist/schemas/enums.js +11 -0
  109. package/dist/schemas/enums.js.map +1 -0
  110. package/dist/schemas/index.d.ts +7 -0
  111. package/dist/schemas/index.js +4298 -0
  112. package/dist/schemas/index.js.map +1 -0
  113. package/dist/schemas/manifest.d.ts +24586 -0
  114. package/dist/schemas/manifest.js +4269 -0
  115. package/dist/schemas/manifest.js.map +1 -0
  116. package/dist/schemas/sl-opinion.d.ts +31 -0
  117. package/dist/schemas/sl-opinion.js +19 -0
  118. package/dist/schemas/sl-opinion.js.map +1 -0
  119. package/dist/schemas/tables/identity/agent.d.ts +21 -0
  120. package/dist/schemas/tables/identity/agent.js +41 -0
  121. package/dist/schemas/tables/identity/agent.js.map +1 -0
  122. package/dist/schemas/tables/identity/epistemic.d.ts +18 -0
  123. package/dist/schemas/tables/identity/epistemic.js +38 -0
  124. package/dist/schemas/tables/identity/epistemic.js.map +1 -0
  125. package/dist/schemas/tables/identity/model.d.ts +62 -0
  126. package/dist/schemas/tables/identity/model.js +110 -0
  127. package/dist/schemas/tables/identity/model.js.map +1 -0
  128. package/dist/schemas/tables/identity/platform.d.ts +392 -0
  129. package/dist/schemas/tables/identity/platform.js +475 -0
  130. package/dist/schemas/tables/identity/platform.js.map +1 -0
  131. package/dist/schemas/tables/identity/project.d.ts +22 -0
  132. package/dist/schemas/tables/identity/project.js +48 -0
  133. package/dist/schemas/tables/identity/project.js.map +1 -0
  134. package/dist/schemas/tables/identity/user.d.ts +26 -0
  135. package/dist/schemas/tables/identity/user.js +47 -0
  136. package/dist/schemas/tables/identity/user.js.map +1 -0
  137. package/dist/schemas/tables/kernel/config.d.ts +20 -0
  138. package/dist/schemas/tables/kernel/config.js +39 -0
  139. package/dist/schemas/tables/kernel/config.js.map +1 -0
  140. package/dist/schemas/tables/kernel/coordination.d.ts +30 -0
  141. package/dist/schemas/tables/kernel/coordination.js +57 -0
  142. package/dist/schemas/tables/kernel/coordination.js.map +1 -0
  143. package/dist/schemas/tables/kernel/decision.d.ts +246 -0
  144. package/dist/schemas/tables/kernel/decision.js +371 -0
  145. package/dist/schemas/tables/kernel/decision.js.map +1 -0
  146. package/dist/schemas/tables/kernel/embedding.d.ts +18 -0
  147. package/dist/schemas/tables/kernel/embedding.js +48 -0
  148. package/dist/schemas/tables/kernel/embedding.js.map +1 -0
  149. package/dist/schemas/tables/kernel/epistemic.d.ts +317 -0
  150. package/dist/schemas/tables/kernel/epistemic.js +329 -0
  151. package/dist/schemas/tables/kernel/epistemic.js.map +1 -0
  152. package/dist/schemas/tables/kernel/idempotency.d.ts +13 -0
  153. package/dist/schemas/tables/kernel/idempotency.js +31 -0
  154. package/dist/schemas/tables/kernel/idempotency.js.map +1 -0
  155. package/dist/schemas/tables/kernel/infra.d.ts +183 -0
  156. package/dist/schemas/tables/kernel/infra.js +182 -0
  157. package/dist/schemas/tables/kernel/infra.js.map +1 -0
  158. package/dist/schemas/tables/kernel/intelligence.d.ts +293 -0
  159. package/dist/schemas/tables/kernel/intelligence.js +207 -0
  160. package/dist/schemas/tables/kernel/intelligence.js.map +1 -0
  161. package/dist/schemas/tables/kernel/lens.d.ts +192 -0
  162. package/dist/schemas/tables/kernel/lens.js +122 -0
  163. package/dist/schemas/tables/kernel/lens.js.map +1 -0
  164. package/dist/schemas/tables/kernel/ontology.d.ts +89 -0
  165. package/dist/schemas/tables/kernel/ontology.js +91 -0
  166. package/dist/schemas/tables/kernel/ontology.js.map +1 -0
  167. package/dist/schemas/tables/kernel/platform.d.ts +353 -0
  168. package/dist/schemas/tables/kernel/platform.js +349 -0
  169. package/dist/schemas/tables/kernel/platform.js.map +1 -0
  170. package/dist/schemas/tables/kernel/spine.d.ts +206 -0
  171. package/dist/schemas/tables/kernel/spine.js +243 -0
  172. package/dist/schemas/tables/kernel/spine.js.map +1 -0
  173. package/dist/schemas/tables/kernel/task.d.ts +614 -0
  174. package/dist/schemas/tables/kernel/task.js +189 -0
  175. package/dist/schemas/tables/kernel/task.js.map +1 -0
  176. package/dist/schemas/tables/kernel/topic.d.ts +25 -0
  177. package/dist/schemas/tables/kernel/topic.js +62 -0
  178. package/dist/schemas/tables/kernel/topic.js.map +1 -0
  179. package/dist/schemas/tables/kernel/workflow.d.ts +45 -0
  180. package/dist/schemas/tables/kernel/workflow.js +94 -0
  181. package/dist/schemas/tables/kernel/workflow.js.map +1 -0
  182. package/dist/schemas/tables/kernel/worktree.d.ts +823 -0
  183. package/dist/schemas/tables/kernel/worktree.js +330 -0
  184. package/dist/schemas/tables/kernel/worktree.js.map +1 -0
  185. package/dist/schemas/tables/mc/identity.d.ts +134 -0
  186. package/dist/schemas/tables/mc/identity.js +221 -0
  187. package/dist/schemas/tables/mc/identity.js.map +1 -0
  188. package/dist/schemas/tables/mc/methodology.d.ts +46 -0
  189. package/dist/schemas/tables/mc/methodology.js +69 -0
  190. package/dist/schemas/tables/mc/methodology.js.map +1 -0
  191. package/dist/schemas/tables/mc/pack.d.ts +540 -0
  192. package/dist/schemas/tables/mc/pack.js +294 -0
  193. package/dist/schemas/tables/mc/pack.js.map +1 -0
  194. package/dist/schemas/tables/mc/policy.d.ts +57 -0
  195. package/dist/schemas/tables/mc/policy.js +121 -0
  196. package/dist/schemas/tables/mc/policy.js.map +1 -0
  197. package/dist/schemas/tables/mc/registry.d.ts +155 -0
  198. package/dist/schemas/tables/mc/registry.js +164 -0
  199. package/dist/schemas/tables/mc/registry.js.map +1 -0
  200. package/dist/schemas/tables/mc/runtime.d.ts +119 -0
  201. package/dist/schemas/tables/mc/runtime.js +199 -0
  202. package/dist/schemas/tables/mc/runtime.js.map +1 -0
  203. package/dist/schemas/tables/mc/tenant.d.ts +106 -0
  204. package/dist/schemas/tables/mc/tenant.js +114 -0
  205. package/dist/schemas/tables/mc/tenant.js.map +1 -0
  206. package/dist/schemas/tables/mc/workspace.d.ts +28 -0
  207. package/dist/schemas/tables/mc/workspace.js +52 -0
  208. package/dist/schemas/tables/mc/workspace.js.map +1 -0
  209. package/dist/sdk-methods.contract.d.ts +5 -2
  210. package/dist/{sdk-tools.contract-BnV0hKLp.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +3 -7
  211. package/dist/sdk-tools.contract.d.ts +2 -2
  212. package/dist/sdk-tools.contract.js +810 -218
  213. package/dist/sdk-tools.contract.js.map +1 -1
  214. package/dist/tool-contracts-C92-9ueT.d.ts +290 -0
  215. package/dist/tool-contracts.d.ts +1 -0
  216. package/dist/{mcp-tools.contract.js → tool-contracts.js} +812 -159
  217. package/dist/tool-contracts.js.map +1 -0
  218. package/dist/workflow-runtime.contract.js +1 -1
  219. package/dist/workflow-runtime.contract.js.map +1 -1
  220. package/package.json +137 -2
  221. package/dist/mcp-tools.contract-D8kXcP6d.d.ts +0 -254
  222. package/dist/mcp-tools.contract.d.ts +0 -1
  223. package/dist/mcp-tools.contract.js.map +0 -1
@@ -0,0 +1,823 @@
1
+ import { z } from 'zod';
2
+ import { T as TableContract } from '../../../defineTable-CBQ03FXl.js';
3
+ import { C as ConvexIdSchema } from '../../../idOf-DR8tkhQS.js';
4
+
5
+ declare const worktreeBeliefCluster: TableContract<{
6
+ worktreeId: ConvexIdSchema<"worktrees">;
7
+ beliefId: z.ZodString;
8
+ relationType: z.ZodEnum<["primary", "counterfactual", "dependency", "cascade", "conditional", "supporting", "contradicting", "alternative", "prerequisite"]>;
9
+ relationDescription: z.ZodOptional<z.ZodString>;
10
+ counterfactualText: z.ZodOptional<z.ZodString>;
11
+ dependencyText: z.ZodOptional<z.ZodString>;
12
+ cascadeText: z.ZodOptional<z.ZodString>;
13
+ initialConfidence: z.ZodOptional<z.ZodNumber>;
14
+ initialEvidenceCount: z.ZodOptional<z.ZodNumber>;
15
+ finalConfidence: z.ZodOptional<z.ZodNumber>;
16
+ finalEvidenceCount: z.ZodOptional<z.ZodNumber>;
17
+ confidenceDelta: z.ZodOptional<z.ZodNumber>;
18
+ llmValence: z.ZodOptional<z.ZodNumber>;
19
+ llmCertainty: z.ZodOptional<z.ZodNumber>;
20
+ llmReasoning: z.ZodOptional<z.ZodString>;
21
+ llmEvidenceScores: z.ZodOptional<z.ZodString>;
22
+ llmAssessedAt: z.ZodOptional<z.ZodNumber>;
23
+ addedAt: z.ZodNumber;
24
+ updatedAt: z.ZodNumber;
25
+ }>;
26
+ declare const worktrees: TableContract<{
27
+ topicId: z.ZodOptional<z.ZodString>;
28
+ index: z.ZodNumber;
29
+ name: z.ZodString;
30
+ beliefFocus: z.ZodOptional<z.ZodString>;
31
+ objective: z.ZodString;
32
+ worktreeType: z.ZodOptional<z.ZodString>;
33
+ rationale: z.ZodOptional<z.ZodString>;
34
+ confidenceImpact: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
35
+ hypothesis: z.ZodOptional<z.ZodString>;
36
+ dependsOn: z.ZodOptional<z.ZodArray<ConvexIdSchema<"worktrees">, "many">>;
37
+ blocks: z.ZodOptional<z.ZodArray<ConvexIdSchema<"worktrees">, "many">>;
38
+ gate: z.ZodOptional<z.ZodString>;
39
+ campaign: z.ZodOptional<z.ZodNumber>;
40
+ lane: z.ZodOptional<z.ZodString>;
41
+ laneOrderInCampaign: z.ZodOptional<z.ZodNumber>;
42
+ orderInLane: z.ZodOptional<z.ZodNumber>;
43
+ startDate: z.ZodNumber;
44
+ endDate: z.ZodNumber;
45
+ durationWeeks: z.ZodNumber;
46
+ status: z.ZodEnum<["suggested", "planning", "active", "paused", "completed", "dismissed", "abandoned"]>;
47
+ generatedBy: z.ZodOptional<z.ZodString>;
48
+ epistemicOrigin: z.ZodOptional<z.ZodString>;
49
+ priority: z.ZodOptional<z.ZodNumber>;
50
+ dismissedReason: z.ZodOptional<z.ZodString>;
51
+ userId: z.ZodOptional<z.ZodString>;
52
+ createdAt: z.ZodOptional<z.ZodNumber>;
53
+ updatedAt: z.ZodOptional<z.ZodNumber>;
54
+ chatId: z.ZodOptional<z.ZodString>;
55
+ tasks: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodAny, "many">]>>;
56
+ targetBeliefIds: z.ZodArray<z.ZodString, "many">;
57
+ targetQuestionIds: z.ZodArray<z.ZodString, "many">;
58
+ keyQuestions: z.ZodOptional<z.ZodArray<z.ZodObject<{
59
+ question: z.ZodString;
60
+ status: z.ZodEnum<["open", "answered", "forked"]>;
61
+ answer: z.ZodOptional<z.ZodString>;
62
+ answerConfidence: z.ZodOptional<z.ZodEnum<["high", "medium", "low"]>>;
63
+ linkedQuestionId: z.ZodOptional<z.ZodString>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ status: "answered" | "forked" | "open";
66
+ question: string;
67
+ answer?: string | undefined;
68
+ linkedQuestionId?: string | undefined;
69
+ answerConfidence?: "high" | "medium" | "low" | undefined;
70
+ }, {
71
+ status: "answered" | "forked" | "open";
72
+ question: string;
73
+ answer?: string | undefined;
74
+ linkedQuestionId?: string | undefined;
75
+ answerConfidence?: "high" | "medium" | "low" | undefined;
76
+ }>, "many">>;
77
+ evidenceSignals: z.ZodOptional<z.ZodArray<z.ZodObject<{
78
+ signal: z.ZodString;
79
+ collected: z.ZodBoolean;
80
+ progress: z.ZodOptional<z.ZodString>;
81
+ notes: z.ZodOptional<z.ZodString>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ signal: string;
84
+ collected: boolean;
85
+ notes?: string | undefined;
86
+ progress?: string | undefined;
87
+ }, {
88
+ signal: string;
89
+ collected: boolean;
90
+ notes?: string | undefined;
91
+ progress?: string | undefined;
92
+ }>, "many">>;
93
+ decisionGate: z.ZodOptional<z.ZodObject<{
94
+ goCriteria: z.ZodArray<z.ZodString, "many">;
95
+ noGoSignals: z.ZodArray<z.ZodString, "many">;
96
+ verdict: z.ZodOptional<z.ZodEnum<["go", "no_go", "pivot", "pending"]>>;
97
+ verdictRationale: z.ZodOptional<z.ZodString>;
98
+ decidedAt: z.ZodOptional<z.ZodNumber>;
99
+ decidedBy: z.ZodOptional<z.ZodString>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ goCriteria: string[];
102
+ noGoSignals: string[];
103
+ verdict?: "pending" | "go" | "no_go" | "pivot" | undefined;
104
+ decidedAt?: number | undefined;
105
+ verdictRationale?: string | undefined;
106
+ decidedBy?: string | undefined;
107
+ }, {
108
+ goCriteria: string[];
109
+ noGoSignals: string[];
110
+ verdict?: "pending" | "go" | "no_go" | "pivot" | undefined;
111
+ decidedAt?: number | undefined;
112
+ verdictRationale?: string | undefined;
113
+ decidedBy?: string | undefined;
114
+ }>>;
115
+ beliefRefinement: z.ZodOptional<z.ZodObject<{
116
+ isRefined: z.ZodBoolean;
117
+ refinedAt: z.ZodOptional<z.ZodNumber>;
118
+ refinedBy: z.ZodOptional<z.ZodString>;
119
+ originalText: z.ZodOptional<z.ZodString>;
120
+ refinedText: z.ZodOptional<z.ZodString>;
121
+ testingCriteria: z.ZodOptional<z.ZodString>;
122
+ measurableCriteria: z.ZodOptional<z.ZodString>;
123
+ timeframe: z.ZodOptional<z.ZodString>;
124
+ checklist: z.ZodOptional<z.ZodObject<{
125
+ hasSpecificClaim: z.ZodBoolean;
126
+ hasTimeframe: z.ZodBoolean;
127
+ hasMeasurableCriteria: z.ZodBoolean;
128
+ hasTestability: z.ZodBoolean;
129
+ }, "strip", z.ZodTypeAny, {
130
+ hasSpecificClaim: boolean;
131
+ hasTimeframe: boolean;
132
+ hasMeasurableCriteria: boolean;
133
+ hasTestability: boolean;
134
+ }, {
135
+ hasSpecificClaim: boolean;
136
+ hasTimeframe: boolean;
137
+ hasMeasurableCriteria: boolean;
138
+ hasTestability: boolean;
139
+ }>>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ isRefined: boolean;
142
+ checklist?: {
143
+ hasSpecificClaim: boolean;
144
+ hasTimeframe: boolean;
145
+ hasMeasurableCriteria: boolean;
146
+ hasTestability: boolean;
147
+ } | undefined;
148
+ refinedAt?: number | undefined;
149
+ refinedBy?: string | undefined;
150
+ originalText?: string | undefined;
151
+ refinedText?: string | undefined;
152
+ testingCriteria?: string | undefined;
153
+ measurableCriteria?: string | undefined;
154
+ timeframe?: string | undefined;
155
+ }, {
156
+ isRefined: boolean;
157
+ checklist?: {
158
+ hasSpecificClaim: boolean;
159
+ hasTimeframe: boolean;
160
+ hasMeasurableCriteria: boolean;
161
+ hasTestability: boolean;
162
+ } | undefined;
163
+ refinedAt?: number | undefined;
164
+ refinedBy?: string | undefined;
165
+ originalText?: string | undefined;
166
+ refinedText?: string | undefined;
167
+ testingCriteria?: string | undefined;
168
+ measurableCriteria?: string | undefined;
169
+ timeframe?: string | undefined;
170
+ }>>;
171
+ beliefRefinements: z.ZodOptional<z.ZodArray<z.ZodAny, "many">>;
172
+ startingConfidence: z.ZodOptional<z.ZodObject<{
173
+ overall: z.ZodNumber;
174
+ beliefConfidences: z.ZodArray<z.ZodObject<{
175
+ beliefId: z.ZodString;
176
+ confidence: z.ZodNumber;
177
+ }, "strip", z.ZodTypeAny, {
178
+ beliefId: string;
179
+ confidence: number;
180
+ }, {
181
+ beliefId: string;
182
+ confidence: number;
183
+ }>, "many">;
184
+ }, "strip", z.ZodTypeAny, {
185
+ overall: number;
186
+ beliefConfidences: {
187
+ beliefId: string;
188
+ confidence: number;
189
+ }[];
190
+ }, {
191
+ overall: number;
192
+ beliefConfidences: {
193
+ beliefId: string;
194
+ confidence: number;
195
+ }[];
196
+ }>>;
197
+ endingConfidence: z.ZodOptional<z.ZodObject<{
198
+ overall: z.ZodNumber;
199
+ beliefConfidences: z.ZodArray<z.ZodObject<{
200
+ beliefId: z.ZodString;
201
+ confidence: z.ZodNumber;
202
+ }, "strip", z.ZodTypeAny, {
203
+ beliefId: string;
204
+ confidence: number;
205
+ }, {
206
+ beliefId: string;
207
+ confidence: number;
208
+ }>, "many">;
209
+ }, "strip", z.ZodTypeAny, {
210
+ overall: number;
211
+ beliefConfidences: {
212
+ beliefId: string;
213
+ confidence: number;
214
+ }[];
215
+ }, {
216
+ overall: number;
217
+ beliefConfidences: {
218
+ beliefId: string;
219
+ confidence: number;
220
+ }[];
221
+ }>>;
222
+ outcome: z.ZodOptional<z.ZodObject<{
223
+ verdict: z.ZodEnum<["validated", "invalidated", "forked", "inconclusive"]>;
224
+ summary: z.ZodString;
225
+ whatChanged: z.ZodString;
226
+ confidenceChange: z.ZodNumber;
227
+ }, "strip", z.ZodTypeAny, {
228
+ summary: string;
229
+ verdict: "validated" | "invalidated" | "forked" | "inconclusive";
230
+ whatChanged: string;
231
+ confidenceChange: number;
232
+ }, {
233
+ summary: string;
234
+ verdict: "validated" | "invalidated" | "forked" | "inconclusive";
235
+ whatChanged: string;
236
+ confidenceChange: number;
237
+ }>>;
238
+ epistemicChain: z.ZodOptional<z.ZodObject<{
239
+ capturedAt: z.ZodNumber;
240
+ capturedBy: z.ZodString;
241
+ worktreeId: ConvexIdSchema<"worktrees">;
242
+ topicId: z.ZodOptional<z.ZodString>;
243
+ primaryBelief: z.ZodOptional<z.ZodObject<{
244
+ id: z.ZodString;
245
+ text: z.ZodString;
246
+ startingConfidence: z.ZodNumber;
247
+ startingConfidenceLabel: z.ZodOptional<z.ZodString>;
248
+ endingConfidence: z.ZodNumber;
249
+ endingConfidenceLabel: z.ZodOptional<z.ZodString>;
250
+ confidenceScore: z.ZodOptional<z.ZodNumber>;
251
+ status: z.ZodOptional<z.ZodString>;
252
+ criticality: z.ZodOptional<z.ZodString>;
253
+ }, "strip", z.ZodTypeAny, {
254
+ id: string;
255
+ text: string;
256
+ startingConfidence: number;
257
+ endingConfidence: number;
258
+ status?: string | undefined;
259
+ startingConfidenceLabel?: string | undefined;
260
+ endingConfidenceLabel?: string | undefined;
261
+ confidenceScore?: number | undefined;
262
+ criticality?: string | undefined;
263
+ }, {
264
+ id: string;
265
+ text: string;
266
+ startingConfidence: number;
267
+ endingConfidence: number;
268
+ status?: string | undefined;
269
+ startingConfidenceLabel?: string | undefined;
270
+ endingConfidenceLabel?: string | undefined;
271
+ confidenceScore?: number | undefined;
272
+ criticality?: string | undefined;
273
+ }>>;
274
+ clusterEdges: z.ZodArray<z.ZodObject<{
275
+ edgeId: z.ZodOptional<z.ZodString>;
276
+ edgeType: z.ZodString;
277
+ sourceId: z.ZodString;
278
+ targetId: z.ZodString;
279
+ weight: z.ZodOptional<z.ZodNumber>;
280
+ createdAt: z.ZodOptional<z.ZodNumber>;
281
+ }, "strip", z.ZodTypeAny, {
282
+ edgeType: string;
283
+ targetId: string;
284
+ sourceId: string;
285
+ createdAt?: number | undefined;
286
+ weight?: number | undefined;
287
+ edgeId?: string | undefined;
288
+ }, {
289
+ edgeType: string;
290
+ targetId: string;
291
+ sourceId: string;
292
+ createdAt?: number | undefined;
293
+ weight?: number | undefined;
294
+ edgeId?: string | undefined;
295
+ }>, "many">;
296
+ relatedBeliefs: z.ZodOptional<z.ZodArray<z.ZodObject<{
297
+ id: z.ZodString;
298
+ text: z.ZodOptional<z.ZodString>;
299
+ confidence: z.ZodOptional<z.ZodString>;
300
+ confidenceScore: z.ZodOptional<z.ZodNumber>;
301
+ }, "strip", z.ZodTypeAny, {
302
+ id: string;
303
+ confidence?: string | undefined;
304
+ text?: string | undefined;
305
+ confidenceScore?: number | undefined;
306
+ }, {
307
+ id: string;
308
+ confidence?: string | undefined;
309
+ text?: string | undefined;
310
+ confidenceScore?: number | undefined;
311
+ }>, "many">>;
312
+ questions: z.ZodArray<z.ZodObject<{
313
+ id: z.ZodString;
314
+ text: z.ZodString;
315
+ status: z.ZodString;
316
+ priority: z.ZodOptional<z.ZodString>;
317
+ answer: z.ZodOptional<z.ZodString>;
318
+ answerStatus: z.ZodOptional<z.ZodString>;
319
+ answeredBy: z.ZodOptional<z.ZodString>;
320
+ answeredAt: z.ZodOptional<z.ZodNumber>;
321
+ evidenceCount: z.ZodNumber;
322
+ }, "strip", z.ZodTypeAny, {
323
+ status: string;
324
+ id: string;
325
+ text: string;
326
+ evidenceCount: number;
327
+ answer?: string | undefined;
328
+ priority?: string | undefined;
329
+ answerStatus?: string | undefined;
330
+ answeredBy?: string | undefined;
331
+ answeredAt?: number | undefined;
332
+ }, {
333
+ status: string;
334
+ id: string;
335
+ text: string;
336
+ evidenceCount: number;
337
+ answer?: string | undefined;
338
+ priority?: string | undefined;
339
+ answerStatus?: string | undefined;
340
+ answeredBy?: string | undefined;
341
+ answeredAt?: number | undefined;
342
+ }>, "many">;
343
+ evidence: z.ZodArray<z.ZodObject<{
344
+ id: z.ZodString;
345
+ text: z.ZodString;
346
+ sourceType: z.ZodOptional<z.ZodString>;
347
+ verificationStatus: z.ZodOptional<z.ZodString>;
348
+ verified: z.ZodBoolean;
349
+ createdAt: z.ZodOptional<z.ZodNumber>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ id: string;
352
+ verified: boolean;
353
+ text: string;
354
+ createdAt?: number | undefined;
355
+ sourceType?: string | undefined;
356
+ verificationStatus?: string | undefined;
357
+ }, {
358
+ id: string;
359
+ verified: boolean;
360
+ text: string;
361
+ createdAt?: number | undefined;
362
+ sourceType?: string | undefined;
363
+ verificationStatus?: string | undefined;
364
+ }>, "many">;
365
+ tasksCompleted: z.ZodOptional<z.ZodNumber>;
366
+ totalTasks: z.ZodOptional<z.ZodNumber>;
367
+ outcome: z.ZodObject<{
368
+ verdict: z.ZodString;
369
+ summary: z.ZodString;
370
+ confidenceChange: z.ZodNumber;
371
+ startingConfidence: z.ZodNumber;
372
+ endingConfidence: z.ZodNumber;
373
+ }, "strip", z.ZodTypeAny, {
374
+ summary: string;
375
+ verdict: string;
376
+ startingConfidence: number;
377
+ endingConfidence: number;
378
+ confidenceChange: number;
379
+ }, {
380
+ summary: string;
381
+ verdict: string;
382
+ startingConfidence: number;
383
+ endingConfidence: number;
384
+ confidenceChange: number;
385
+ }>;
386
+ confidenceHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
387
+ beliefId: z.ZodString;
388
+ recentChanges: z.ZodArray<z.ZodObject<{
389
+ confidence: z.ZodOptional<z.ZodString>;
390
+ trigger: z.ZodOptional<z.ZodString>;
391
+ timestamp: z.ZodOptional<z.ZodNumber>;
392
+ }, "strip", z.ZodTypeAny, {
393
+ timestamp?: number | undefined;
394
+ confidence?: string | undefined;
395
+ trigger?: string | undefined;
396
+ }, {
397
+ timestamp?: number | undefined;
398
+ confidence?: string | undefined;
399
+ trigger?: string | undefined;
400
+ }>, "many">;
401
+ }, "strip", z.ZodTypeAny, {
402
+ beliefId: string;
403
+ recentChanges: {
404
+ timestamp?: number | undefined;
405
+ confidence?: string | undefined;
406
+ trigger?: string | undefined;
407
+ }[];
408
+ }, {
409
+ beliefId: string;
410
+ recentChanges: {
411
+ timestamp?: number | undefined;
412
+ confidence?: string | undefined;
413
+ trigger?: string | undefined;
414
+ }[];
415
+ }>, "many">>;
416
+ }, "strip", z.ZodTypeAny, {
417
+ evidence: {
418
+ id: string;
419
+ verified: boolean;
420
+ text: string;
421
+ createdAt?: number | undefined;
422
+ sourceType?: string | undefined;
423
+ verificationStatus?: string | undefined;
424
+ }[];
425
+ worktreeId: string & z.BRAND<"Id<worktrees>">;
426
+ outcome: {
427
+ summary: string;
428
+ verdict: string;
429
+ startingConfidence: number;
430
+ endingConfidence: number;
431
+ confidenceChange: number;
432
+ };
433
+ questions: {
434
+ status: string;
435
+ id: string;
436
+ text: string;
437
+ evidenceCount: number;
438
+ answer?: string | undefined;
439
+ priority?: string | undefined;
440
+ answerStatus?: string | undefined;
441
+ answeredBy?: string | undefined;
442
+ answeredAt?: number | undefined;
443
+ }[];
444
+ capturedAt: number;
445
+ capturedBy: string;
446
+ clusterEdges: {
447
+ edgeType: string;
448
+ targetId: string;
449
+ sourceId: string;
450
+ createdAt?: number | undefined;
451
+ weight?: number | undefined;
452
+ edgeId?: string | undefined;
453
+ }[];
454
+ topicId?: string | undefined;
455
+ primaryBelief?: {
456
+ id: string;
457
+ text: string;
458
+ startingConfidence: number;
459
+ endingConfidence: number;
460
+ status?: string | undefined;
461
+ startingConfidenceLabel?: string | undefined;
462
+ endingConfidenceLabel?: string | undefined;
463
+ confidenceScore?: number | undefined;
464
+ criticality?: string | undefined;
465
+ } | undefined;
466
+ relatedBeliefs?: {
467
+ id: string;
468
+ confidence?: string | undefined;
469
+ text?: string | undefined;
470
+ confidenceScore?: number | undefined;
471
+ }[] | undefined;
472
+ tasksCompleted?: number | undefined;
473
+ totalTasks?: number | undefined;
474
+ confidenceHistory?: {
475
+ beliefId: string;
476
+ recentChanges: {
477
+ timestamp?: number | undefined;
478
+ confidence?: string | undefined;
479
+ trigger?: string | undefined;
480
+ }[];
481
+ }[] | undefined;
482
+ }, {
483
+ evidence: {
484
+ id: string;
485
+ verified: boolean;
486
+ text: string;
487
+ createdAt?: number | undefined;
488
+ sourceType?: string | undefined;
489
+ verificationStatus?: string | undefined;
490
+ }[];
491
+ worktreeId: string;
492
+ outcome: {
493
+ summary: string;
494
+ verdict: string;
495
+ startingConfidence: number;
496
+ endingConfidence: number;
497
+ confidenceChange: number;
498
+ };
499
+ questions: {
500
+ status: string;
501
+ id: string;
502
+ text: string;
503
+ evidenceCount: number;
504
+ answer?: string | undefined;
505
+ priority?: string | undefined;
506
+ answerStatus?: string | undefined;
507
+ answeredBy?: string | undefined;
508
+ answeredAt?: number | undefined;
509
+ }[];
510
+ capturedAt: number;
511
+ capturedBy: string;
512
+ clusterEdges: {
513
+ edgeType: string;
514
+ targetId: string;
515
+ sourceId: string;
516
+ createdAt?: number | undefined;
517
+ weight?: number | undefined;
518
+ edgeId?: string | undefined;
519
+ }[];
520
+ topicId?: string | undefined;
521
+ primaryBelief?: {
522
+ id: string;
523
+ text: string;
524
+ startingConfidence: number;
525
+ endingConfidence: number;
526
+ status?: string | undefined;
527
+ startingConfidenceLabel?: string | undefined;
528
+ endingConfidenceLabel?: string | undefined;
529
+ confidenceScore?: number | undefined;
530
+ criticality?: string | undefined;
531
+ } | undefined;
532
+ relatedBeliefs?: {
533
+ id: string;
534
+ confidence?: string | undefined;
535
+ text?: string | undefined;
536
+ confidenceScore?: number | undefined;
537
+ }[] | undefined;
538
+ tasksCompleted?: number | undefined;
539
+ totalTasks?: number | undefined;
540
+ confidenceHistory?: {
541
+ beliefId: string;
542
+ recentChanges: {
543
+ timestamp?: number | undefined;
544
+ confidence?: string | undefined;
545
+ trigger?: string | undefined;
546
+ }[];
547
+ }[] | undefined;
548
+ }>>;
549
+ keyFindings: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
550
+ decisionsReached: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
551
+ nextSteps: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
552
+ retrospective: z.ZodOptional<z.ZodObject<{
553
+ whatWorked: z.ZodArray<z.ZodString, "many">;
554
+ whatDidnt: z.ZodArray<z.ZodString, "many">;
555
+ lessonsLearned: z.ZodArray<z.ZodString, "many">;
556
+ confidenceChange: z.ZodNumber;
557
+ }, "strip", z.ZodTypeAny, {
558
+ confidenceChange: number;
559
+ whatWorked: string[];
560
+ whatDidnt: string[];
561
+ lessonsLearned: string[];
562
+ }, {
563
+ confidenceChange: number;
564
+ whatWorked: string[];
565
+ whatDidnt: string[];
566
+ lessonsLearned: string[];
567
+ }>>;
568
+ thesisReportId: z.ZodOptional<z.ZodString>;
569
+ branchThesis: z.ZodOptional<z.ZodObject<{
570
+ content: z.ZodString;
571
+ memoContent: z.ZodOptional<z.ZodString>;
572
+ status: z.ZodEnum<["ai_draft", "user_draft", "final"]>;
573
+ generatedAt: z.ZodOptional<z.ZodNumber>;
574
+ approvedAt: z.ZodOptional<z.ZodNumber>;
575
+ approvedBy: z.ZodOptional<z.ZodString>;
576
+ generationMetadata: z.ZodOptional<z.ZodObject<{
577
+ modelUsed: z.ZodString;
578
+ promptName: z.ZodString;
579
+ langfuseTraceId: z.ZodOptional<z.ZodString>;
580
+ }, "strip", z.ZodTypeAny, {
581
+ promptName: string;
582
+ modelUsed: string;
583
+ langfuseTraceId?: string | undefined;
584
+ }, {
585
+ promptName: string;
586
+ modelUsed: string;
587
+ langfuseTraceId?: string | undefined;
588
+ }>>;
589
+ }, "strip", z.ZodTypeAny, {
590
+ status: "ai_draft" | "user_draft" | "final";
591
+ content: string;
592
+ memoContent?: string | undefined;
593
+ generatedAt?: number | undefined;
594
+ approvedAt?: number | undefined;
595
+ approvedBy?: string | undefined;
596
+ generationMetadata?: {
597
+ promptName: string;
598
+ modelUsed: string;
599
+ langfuseTraceId?: string | undefined;
600
+ } | undefined;
601
+ }, {
602
+ status: "ai_draft" | "user_draft" | "final";
603
+ content: string;
604
+ memoContent?: string | undefined;
605
+ generatedAt?: number | undefined;
606
+ approvedAt?: number | undefined;
607
+ approvedBy?: string | undefined;
608
+ generationMetadata?: {
609
+ promptName: string;
610
+ modelUsed: string;
611
+ langfuseTraceId?: string | undefined;
612
+ } | undefined;
613
+ }>>;
614
+ generatedAt: z.ZodOptional<z.ZodNumber>;
615
+ sourceProposalId: z.ZodOptional<z.ZodString>;
616
+ triggerReason: z.ZodOptional<z.ZodString>;
617
+ linkedEvidenceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
618
+ linkedDocumentIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
619
+ linkedCallIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
620
+ linkedNewsIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
621
+ linkedPrimerIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
622
+ linkedDeepResearchIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
623
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
624
+ id: z.ZodString;
625
+ content: z.ZodString;
626
+ createdAt: z.ZodNumber;
627
+ createdBy: z.ZodString;
628
+ linkedTaskId: z.ZodOptional<z.ZodString>;
629
+ linkedQuestionId: z.ZodOptional<z.ZodString>;
630
+ linkedBeliefId: z.ZodOptional<z.ZodString>;
631
+ }, "strip", z.ZodTypeAny, {
632
+ content: string;
633
+ createdAt: number;
634
+ createdBy: string;
635
+ id: string;
636
+ linkedBeliefId?: string | undefined;
637
+ linkedQuestionId?: string | undefined;
638
+ linkedTaskId?: string | undefined;
639
+ }, {
640
+ content: string;
641
+ createdAt: number;
642
+ createdBy: string;
643
+ id: string;
644
+ linkedBeliefId?: string | undefined;
645
+ linkedQuestionId?: string | undefined;
646
+ linkedTaskId?: string | undefined;
647
+ }>, "many">>;
648
+ targetBranch: z.ZodOptional<z.ZodString>;
649
+ worktreeScope: z.ZodOptional<z.ZodEnum<["belief", "branch"]>>;
650
+ synthesisState: z.ZodOptional<z.ZodObject<{
651
+ originalBeliefIds: z.ZodArray<z.ZodString, "many">;
652
+ synthesizedBeliefIds: z.ZodArray<z.ZodString, "many">;
653
+ synthesisComplete: z.ZodBoolean;
654
+ synthesisRationale: z.ZodOptional<z.ZodString>;
655
+ synthesisCompletedAt: z.ZodOptional<z.ZodNumber>;
656
+ synthesisCompletedBy: z.ZodOptional<z.ZodString>;
657
+ }, "strip", z.ZodTypeAny, {
658
+ originalBeliefIds: string[];
659
+ synthesizedBeliefIds: string[];
660
+ synthesisComplete: boolean;
661
+ synthesisRationale?: string | undefined;
662
+ synthesisCompletedAt?: number | undefined;
663
+ synthesisCompletedBy?: string | undefined;
664
+ }, {
665
+ originalBeliefIds: string[];
666
+ synthesizedBeliefIds: string[];
667
+ synthesisComplete: boolean;
668
+ synthesisRationale?: string | undefined;
669
+ synthesisCompletedAt?: number | undefined;
670
+ synthesisCompletedBy?: string | undefined;
671
+ }>>;
672
+ evidenceReviewState: z.ZodOptional<z.ZodObject<{
673
+ existingEvidenceReviewed: z.ZodBoolean;
674
+ evidenceGaps: z.ZodArray<z.ZodString, "many">;
675
+ strengthAreas: z.ZodArray<z.ZodString, "many">;
676
+ evidenceQuestionMapping: z.ZodOptional<z.ZodArray<z.ZodObject<{
677
+ evidenceId: z.ZodString;
678
+ questionIds: z.ZodArray<z.ZodString, "many">;
679
+ coverageNote: z.ZodOptional<z.ZodString>;
680
+ }, "strip", z.ZodTypeAny, {
681
+ evidenceId: string;
682
+ questionIds: string[];
683
+ coverageNote?: string | undefined;
684
+ }, {
685
+ evidenceId: string;
686
+ questionIds: string[];
687
+ coverageNote?: string | undefined;
688
+ }>, "many">>;
689
+ reviewCompletedAt: z.ZodOptional<z.ZodNumber>;
690
+ reviewCompletedBy: z.ZodOptional<z.ZodString>;
691
+ }, "strip", z.ZodTypeAny, {
692
+ existingEvidenceReviewed: boolean;
693
+ evidenceGaps: string[];
694
+ strengthAreas: string[];
695
+ evidenceQuestionMapping?: {
696
+ evidenceId: string;
697
+ questionIds: string[];
698
+ coverageNote?: string | undefined;
699
+ }[] | undefined;
700
+ reviewCompletedAt?: number | undefined;
701
+ reviewCompletedBy?: string | undefined;
702
+ }, {
703
+ existingEvidenceReviewed: boolean;
704
+ evidenceGaps: string[];
705
+ strengthAreas: string[];
706
+ evidenceQuestionMapping?: {
707
+ evidenceId: string;
708
+ questionIds: string[];
709
+ coverageNote?: string | undefined;
710
+ }[] | undefined;
711
+ reviewCompletedAt?: number | undefined;
712
+ reviewCompletedBy?: string | undefined;
713
+ }>>;
714
+ phase: z.ZodOptional<z.ZodString>;
715
+ clusterStatus: z.ZodOptional<z.ZodObject<{
716
+ totalConditionals: z.ZodNumber;
717
+ hasCounterfactuals: z.ZodBoolean;
718
+ hasDependencies: z.ZodBoolean;
719
+ hasCascades: z.ZodBoolean;
720
+ conditionalsByType: z.ZodOptional<z.ZodObject<{
721
+ counterfactuals: z.ZodNumber;
722
+ dependencies: z.ZodNumber;
723
+ cascades: z.ZodNumber;
724
+ other: z.ZodNumber;
725
+ }, "strip", z.ZodTypeAny, {
726
+ other: number;
727
+ counterfactuals: number;
728
+ dependencies: number;
729
+ cascades: number;
730
+ }, {
731
+ other: number;
732
+ counterfactuals: number;
733
+ dependencies: number;
734
+ cascades: number;
735
+ }>>;
736
+ mappingCompletedAt: z.ZodOptional<z.ZodNumber>;
737
+ mappingCompletedBy: z.ZodOptional<z.ZodString>;
738
+ }, "strip", z.ZodTypeAny, {
739
+ totalConditionals: number;
740
+ hasCounterfactuals: boolean;
741
+ hasDependencies: boolean;
742
+ hasCascades: boolean;
743
+ conditionalsByType?: {
744
+ other: number;
745
+ counterfactuals: number;
746
+ dependencies: number;
747
+ cascades: number;
748
+ } | undefined;
749
+ mappingCompletedAt?: number | undefined;
750
+ mappingCompletedBy?: string | undefined;
751
+ }, {
752
+ totalConditionals: number;
753
+ hasCounterfactuals: boolean;
754
+ hasDependencies: boolean;
755
+ hasCascades: boolean;
756
+ conditionalsByType?: {
757
+ other: number;
758
+ counterfactuals: number;
759
+ dependencies: number;
760
+ cascades: number;
761
+ } | undefined;
762
+ mappingCompletedAt?: number | undefined;
763
+ mappingCompletedBy?: string | undefined;
764
+ }>>;
765
+ phaseHistory: z.ZodOptional<z.ZodArray<z.ZodObject<{
766
+ phase: z.ZodString;
767
+ enteredAt: z.ZodNumber;
768
+ pausedAt: z.ZodOptional<z.ZodNumber>;
769
+ resumedAt: z.ZodOptional<z.ZodNumber>;
770
+ completedAt: z.ZodOptional<z.ZodNumber>;
771
+ completedBy: z.ZodOptional<z.ZodString>;
772
+ }, "strip", z.ZodTypeAny, {
773
+ phase: string;
774
+ enteredAt: number;
775
+ completedAt?: number | undefined;
776
+ completedBy?: string | undefined;
777
+ pausedAt?: number | undefined;
778
+ resumedAt?: number | undefined;
779
+ }, {
780
+ phase: string;
781
+ enteredAt: number;
782
+ completedAt?: number | undefined;
783
+ completedBy?: string | undefined;
784
+ pausedAt?: number | undefined;
785
+ resumedAt?: number | undefined;
786
+ }>, "many">>;
787
+ questionsCoverage: z.ZodOptional<z.ZodObject<{
788
+ totalQuestions: z.ZodNumber;
789
+ clusterNodesCovered: z.ZodNumber;
790
+ coveragePercent: z.ZodNumber;
791
+ gapsIdentified: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
792
+ }, "strip", z.ZodTypeAny, {
793
+ totalQuestions: number;
794
+ clusterNodesCovered: number;
795
+ coveragePercent: number;
796
+ gapsIdentified?: string[] | undefined;
797
+ }, {
798
+ totalQuestions: number;
799
+ clusterNodesCovered: number;
800
+ coveragePercent: number;
801
+ gapsIdentified?: string[] | undefined;
802
+ }>>;
803
+ researchEfficiency: z.ZodOptional<z.ZodObject<{
804
+ totalTasks: z.ZodNumber;
805
+ questionsPerTask: z.ZodNumber;
806
+ clusterCoverage: z.ZodNumber;
807
+ efficiencyScore: z.ZodNumber;
808
+ }, "strip", z.ZodTypeAny, {
809
+ totalTasks: number;
810
+ questionsPerTask: number;
811
+ clusterCoverage: number;
812
+ efficiencyScore: number;
813
+ }, {
814
+ totalTasks: number;
815
+ questionsPerTask: number;
816
+ clusterCoverage: number;
817
+ efficiencyScore: number;
818
+ }>>;
819
+ createdBy: z.ZodString;
820
+ metadata: z.ZodOptional<z.ZodAny>;
821
+ }>;
822
+
823
+ export { worktreeBeliefCluster, worktrees };