@lucern/contracts 1.0.32 → 1.0.34

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.
@@ -41,5 +41,5 @@
41
41
  "convex-validators",
42
42
  "proof-attestation"
43
43
  ],
44
- "signedAt": 1782351559063
44
+ "signedAt": 1782380008707
45
45
  }
@@ -2316,15 +2316,15 @@ var deliberationSessions = defineTable({
2316
2316
  question: z.string(),
2317
2317
  status: z.enum(["running", "completed", "failed"]),
2318
2318
  modelSlots: z.array(z.string()),
2319
- linkedBeliefNodeId: idOf("epistemicNodes").optional(),
2319
+ linkedBeliefNodeId: z.string().optional(),
2320
2320
  replayBaselineAt: z.number(),
2321
2321
  replayHeadAt: z.number().optional(),
2322
2322
  replayBaseline: z.any().optional(),
2323
2323
  replayDelta: z.any().optional(),
2324
2324
  contextBrief: z.string().optional(),
2325
2325
  contextSnapshot: z.any().optional(),
2326
- contradictionIds: z.array(idOf("contradictions")),
2327
- escalationQuestionIds: z.array(idOf("epistemicNodes")),
2326
+ contradictionIds: z.array(z.string()),
2327
+ escalationQuestionIds: z.array(z.string()),
2328
2328
  uncertaintyZones: z.array(
2329
2329
  z.object({
2330
2330
  label: z.string(),
@@ -2482,7 +2482,7 @@ var beliefConfidence = defineTable({
2482
2482
  triggeringEvidenceIds: z.array(z.string()).optional(),
2483
2483
  triggeringQuestionId: z.string().optional(),
2484
2484
  triggeringAnswerId: z.string().optional(),
2485
- triggeringContradictionId: idOf("contradictions").optional(),
2485
+ triggeringContradictionId: z.string().optional(),
2486
2486
  triggeringWorktreeId: z.string().optional(),
2487
2487
  triggeringAgentId: z.string().optional(),
2488
2488
  isAgentAssessment: z.boolean().optional()
@@ -2663,6 +2663,7 @@ var contradictions = defineTable({
2663
2663
  component: "kernel",
2664
2664
  category: "epistemic",
2665
2665
  shape: z.object({
2666
+ globalId: z.string(),
2666
2667
  topicId: z.string().optional(),
2667
2668
  beliefId: z.string(),
2668
2669
  supportingInsightIds: z.array(z.string()),
@@ -2709,6 +2710,7 @@ var contradictions = defineTable({
2709
2710
  createdBy: z.string()
2710
2711
  }),
2711
2712
  indices: [
2713
+ { kind: "index", name: "by_globalId", columns: ["globalId"] },
2712
2714
  { kind: "index", name: "by_topicId", columns: ["topicId"] },
2713
2715
  {
2714
2716
  kind: "index",
@@ -10345,7 +10347,13 @@ var epistemicIdentityBackfillMappings = defineTable({
10345
10347
  category: "spine",
10346
10348
  shape: z.object({
10347
10349
  mappingId: uuidV7String,
10348
- entityTable: z.enum(["epistemicNodes", "epistemicEdges", "worktrees"]),
10350
+ entityTable: z.enum([
10351
+ "epistemicNodes",
10352
+ "epistemicEdges",
10353
+ "worktrees",
10354
+ "tasks",
10355
+ "contradictions"
10356
+ ]),
10349
10357
  legacyId: z.string().min(1),
10350
10358
  legacyField: z.enum([
10351
10359
  "_id",
@@ -10357,6 +10365,8 @@ var epistemicIdentityBackfillMappings = defineTable({
10357
10365
  "questionId",
10358
10366
  "topicId",
10359
10367
  "worktreeId",
10368
+ "taskId",
10369
+ "contradictionId",
10360
10370
  "globalId",
10361
10371
  "fromNodeId",
10362
10372
  "toNodeId",
@@ -10807,6 +10817,7 @@ var tasks = defineTable({
10807
10817
  component: "kernel",
10808
10818
  category: "task",
10809
10819
  shape: z.object({
10820
+ globalId: z.string(),
10810
10821
  topicId: z.string().optional(),
10811
10822
  tenantId: z.string().optional(),
10812
10823
  workspaceId: z.string().optional(),
@@ -10815,7 +10826,7 @@ var tasks = defineTable({
10815
10826
  status: z.enum(["todo", "in_progress", "blocked", "done"]),
10816
10827
  priority: z.enum(["urgent", "high", "medium", "low"]),
10817
10828
  dueDate: z.number().optional(),
10818
- linkedWorktreeId: idOf("worktrees").optional(),
10829
+ linkedWorktreeId: z.string().optional(),
10819
10830
  linkedBeliefId: z.string().optional(),
10820
10831
  linkedQuestionId: z.string().optional(),
10821
10832
  taskType: z.enum([
@@ -10830,8 +10841,8 @@ var tasks = defineTable({
10830
10841
  ]).optional(),
10831
10842
  assigneeId: z.string().optional(),
10832
10843
  blockedReason: z.string().optional(),
10833
- blockedBy: z.array(idOf("tasks")).optional(),
10834
- blocks: z.array(idOf("tasks")).optional(),
10844
+ blockedBy: z.array(z.string()).optional(),
10845
+ blocks: z.array(z.string()).optional(),
10835
10846
  sortOrder: z.number().optional(),
10836
10847
  executionOrder: z.number().optional(),
10837
10848
  subtasks: z.array(
@@ -10890,7 +10901,7 @@ var tasks = defineTable({
10890
10901
  answerExcerpt: z.string().optional(),
10891
10902
  answerTimestamp: z.string().optional(),
10892
10903
  capturedAsInsight: z.boolean().optional(),
10893
- insightId: idOf("epistemicNodes").optional()
10904
+ insightId: z.string().optional()
10894
10905
  })
10895
10906
  ).optional(),
10896
10907
  linkedCallScriptId: z.string().optional(),
@@ -10968,7 +10979,7 @@ var tasks = defineTable({
10968
10979
  }).optional()
10969
10980
  }).optional(),
10970
10981
  capturedAsEvidence: z.boolean().optional(),
10971
- capturedInsightId: idOf("epistemicNodes").optional(),
10982
+ capturedInsightId: z.string().optional(),
10972
10983
  capturedAt: z.number().optional(),
10973
10984
  createdBy: z.string(),
10974
10985
  createdAt: z.number()
@@ -11011,6 +11022,7 @@ var tasks = defineTable({
11011
11022
  completedBy: z.string().optional()
11012
11023
  }),
11013
11024
  indices: [
11025
+ { kind: "index", name: "by_globalId", columns: ["globalId"] },
11014
11026
  { kind: "index", name: "by_topicId", columns: ["topicId"] },
11015
11027
  {
11016
11028
  kind: "index",
@@ -11172,7 +11184,7 @@ var worktreeBeliefCluster = defineTable({
11172
11184
  component: "kernel",
11173
11185
  category: "worktree",
11174
11186
  shape: z.object({
11175
- worktreeId: idOf("worktrees"),
11187
+ worktreeId: z.string(),
11176
11188
  beliefId: z.string(),
11177
11189
  relationType: z.enum([
11178
11190
  "primary",
@@ -11217,7 +11229,7 @@ var worktrees = defineTable({
11217
11229
  component: "kernel",
11218
11230
  category: "worktree",
11219
11231
  shape: z.object({
11220
- globalId: z.string().optional(),
11232
+ globalId: z.string(),
11221
11233
  topicId: z.string().optional(),
11222
11234
  tenantId: z.string().optional(),
11223
11235
  workspaceId: z.string().optional(),
@@ -11230,8 +11242,8 @@ var worktrees = defineTable({
11230
11242
  rationale: z.string().optional(),
11231
11243
  confidenceImpact: z.enum(["high", "medium", "low"]).optional(),
11232
11244
  hypothesis: z.string().optional(),
11233
- dependsOn: z.array(idOf("worktrees")).optional(),
11234
- blocks: z.array(idOf("worktrees")).optional(),
11245
+ dependsOn: z.array(z.string()).optional(),
11246
+ blocks: z.array(z.string()).optional(),
11235
11247
  gate: z.string().optional(),
11236
11248
  campaign: z.number().optional(),
11237
11249
  lane: z.string().optional(),
@@ -11336,7 +11348,7 @@ var worktrees = defineTable({
11336
11348
  epistemicChain: z.object({
11337
11349
  capturedAt: z.number(),
11338
11350
  capturedBy: z.string(),
11339
- worktreeId: idOf("worktrees"),
11351
+ worktreeId: z.string(),
11340
11352
  topicId: z.string().optional(),
11341
11353
  primaryBelief: z.object({
11342
11354
  id: z.string(),