@lucern/contracts 1.0.30 → 1.0.31

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 (78) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/assembly-acceptance-gate.contract.d.ts +1234 -1234
  3. package/dist/assembly-instrumentation.contract.d.ts +413 -413
  4. package/dist/belongs-to-membership-model.contract.d.ts +45 -45
  5. package/dist/campaign-context-compiler.contract.d.ts +87 -87
  6. package/dist/canonical-edge-public-noun-lock.contract.d.ts +106 -106
  7. package/dist/concept-maturity-rubric.contract.d.ts +131 -131
  8. package/dist/docs-canon-reconciliation-loop.contract.d.ts +37 -37
  9. package/dist/{edge-policy-manifest-Bg3B5G0u.d.ts → edge-policy-manifest-C38kuf7v.d.ts} +26 -26
  10. package/dist/evidence-question-forecast-maturity.contract.d.ts +76 -76
  11. package/dist/evidence-taxonomy-target-scope.contract.d.ts +61 -61
  12. package/dist/final-substrate-source-ledger.contract.d.ts +149 -149
  13. package/dist/function-registry/helpers.d.ts +1 -1
  14. package/dist/function-registry/index.d.ts +11 -11
  15. package/dist/generated/state-vector-transition-table.d.ts +1 -1
  16. package/dist/golden-reasoning-eval-harness.contract.d.ts +2178 -2178
  17. package/dist/graph-traversal-canon.contract.d.ts +121 -121
  18. package/dist/graph-traversal-invariant-guardrails.contract.d.ts +68 -68
  19. package/dist/graph-v2-write-policy-constitution.contract.d.ts +219 -219
  20. package/dist/heartbeat-property-validation.contract.d.ts +86 -86
  21. package/dist/index.d.ts +2 -2
  22. package/dist/manifest-projection-generation.contract.d.ts +34 -34
  23. package/dist/manifests/check-manifest.d.ts +12 -12
  24. package/dist/manifests/edge-policy-manifest.d.ts +1 -1
  25. package/dist/manifests/edge-policy-manifest.data.d.ts +3 -3
  26. package/dist/manifests/invariant-manifest.d.ts +6 -6
  27. package/dist/observability-audit-store-migration.contract.d.ts +110 -110
  28. package/dist/parsimony-diagnostic.contract.d.ts +328 -328
  29. package/dist/post-substrate-surface-lock.contract.d.ts +48 -48
  30. package/dist/post-substrate-surface-upgrade.contract.d.ts +82 -82
  31. package/dist/pre-rebuild-closeout-gate.contract.d.ts +153 -153
  32. package/dist/primitive-epistemic-state-constitution.contract.d.ts +34 -34
  33. package/dist/primitive-epistemic-state-constitution.data.d.ts +1 -1
  34. package/dist/primitive-maturity-matrix.contract.d.ts +100 -100
  35. package/dist/prior-art-vocabulary-firewall.contract.d.ts +19 -19
  36. package/dist/projections/create-evidence.projection.d.ts +36 -36
  37. package/dist/projections/index.d.ts +7 -7
  38. package/dist/projections/list-beliefs.projection.d.ts +3 -3
  39. package/dist/proof-attestation.json +1 -1
  40. package/dist/propagation-v2-contract.contract.d.ts +74 -74
  41. package/dist/published-belief-artifact.contract.d.ts +325 -325
  42. package/dist/reset-authorization-package.contract.d.ts +84 -84
  43. package/dist/retrieval-search-discovery-receipt.contract.d.ts +288 -288
  44. package/dist/schema-change-belief.contract.d.ts +179 -179
  45. package/dist/schemas/component-table-manifest.d.ts +8 -8
  46. package/dist/schemas/manifest.d.ts +580 -580
  47. package/dist/schemas/tables/kernel/epistemic.d.ts +2 -2
  48. package/dist/schemas/tables/kernel/intelligence.d.ts +16 -16
  49. package/dist/schemas/tables/kernel/lens.d.ts +10 -10
  50. package/dist/schemas/tables/kernel/platform.d.ts +14 -14
  51. package/dist/schemas/tables/kernel/task.d.ts +26 -26
  52. package/dist/schemas/tables/kernel/worktree.d.ts +18 -18
  53. package/dist/schemas/tables/mc/identity.d.ts +2 -2
  54. package/dist/schemas/tables/mc/methodology.d.ts +2 -2
  55. package/dist/schemas/tables/mc/pack.d.ts +24 -24
  56. package/dist/schemas/tables/mc/runtime.d.ts +2 -2
  57. package/dist/slice-serialization.contract.d.ts +1325 -1325
  58. package/dist/source-material-adoption-ledger.contract.d.ts +250 -250
  59. package/dist/source-material-total-partition.contract.d.ts +254 -254
  60. package/dist/state-vector-manifest.contract.d.ts +83 -83
  61. package/dist/state-vector-manifest.data.contract.d.ts +1 -1
  62. package/dist/state-vector-runtime.contract.d.ts +28 -28
  63. package/dist/substrate-envelope.contract.d.ts +117 -117
  64. package/dist/substrate-lifecycle-lineage.contract.d.ts +30 -30
  65. package/dist/substrate-migration-cutover-ledger.contract.d.ts +13 -13
  66. package/dist/substrate-neo4j-projection.contract.d.ts +179 -179
  67. package/dist/transition-receipt.contract.d.ts +543 -543
  68. package/dist/traversal-mode-constitution.contract.d.ts +123 -123
  69. package/dist/typed-gate-registry.contract.d.ts +61 -61
  70. package/dist/typed-need.contract.d.ts +248 -248
  71. package/dist/{unified-state-matrix.contract-BJDYNhnf.d.ts → unified-state-matrix.contract-BTxqLggA.d.ts} +96 -96
  72. package/dist/unified-state-matrix.contract.d.ts +1 -1
  73. package/dist/unified-state-matrix.data.contract.d.ts +1 -1
  74. package/dist/workspace-data-sovereignty.contract.d.ts +114 -114
  75. package/dist/worktree-belief-adoption.contract.d.ts +91 -91
  76. package/dist/worktree-delta-ledger.contract.d.ts +124 -124
  77. package/dist/worktree-graph-branch-maturity.contract.d.ts +63 -63
  78. package/package.json +1 -1
@@ -394,13 +394,13 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
394
394
  priority: zod.ZodString;
395
395
  rationale: zod.ZodString;
396
396
  }, "strip", zod.ZodTypeAny, {
397
+ rationale: string;
397
398
  action: string;
398
399
  priority: string;
399
- rationale: string;
400
400
  }, {
401
+ rationale: string;
401
402
  action: string;
402
403
  priority: string;
403
- rationale: string;
404
404
  }>, "many">>;
405
405
  sourceWorktreeId: zod.ZodOptional<zod.ZodString>;
406
406
  sourceChatId: zod.ZodOptional<ConvexIdSchema<"chats">>;
@@ -850,10 +850,10 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
850
850
  importance: zod.ZodOptional<zod.ZodNumber>;
851
851
  totalCount: zod.ZodOptional<zod.ZodNumber>;
852
852
  }, "strip", zod.ZodTypeAny, {
853
+ description: string;
854
+ severity: "critical" | "warning" | "info";
853
855
  id: string;
854
856
  title: string;
855
- severity: "critical" | "warning" | "info";
856
- description: string;
857
857
  nodeIds: string[];
858
858
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
859
859
  nodeLabels: string[];
@@ -861,10 +861,10 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
861
861
  importance?: number | undefined;
862
862
  totalCount?: number | undefined;
863
863
  }, {
864
+ description: string;
865
+ severity: "critical" | "warning" | "info";
864
866
  id: string;
865
867
  title: string;
866
- severity: "critical" | "warning" | "info";
867
- description: string;
868
868
  nodeIds: string[];
869
869
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
870
870
  nodeLabels: string[];
@@ -899,16 +899,16 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
899
899
  resolved_true: zod.ZodNumber;
900
900
  resolved_false: zod.ZodNumber;
901
901
  }, "strip", zod.ZodTypeAny, {
902
- hypothesis: number;
903
- active: number;
904
902
  superseded: number;
903
+ active: number;
904
+ hypothesis: number;
905
905
  assumption: number;
906
906
  resolved_true: number;
907
907
  resolved_false: number;
908
908
  }, {
909
- hypothesis: number;
910
- active: number;
911
909
  superseded: number;
910
+ active: number;
911
+ hypothesis: number;
912
912
  assumption: number;
913
913
  resolved_true: number;
914
914
  resolved_false: number;
@@ -946,9 +946,9 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
946
946
  propagationRisks: number;
947
947
  temporalDecayCount: number;
948
948
  beliefStatus?: {
949
- hypothesis: number;
950
- active: number;
951
949
  superseded: number;
950
+ active: number;
951
+ hypothesis: number;
952
952
  assumption: number;
953
953
  resolved_true: number;
954
954
  resolved_false: number;
@@ -978,9 +978,9 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
978
978
  propagationRisks: number;
979
979
  temporalDecayCount: number;
980
980
  beliefStatus?: {
981
- hypothesis: number;
982
- active: number;
983
981
  superseded: number;
982
+ active: number;
983
+ hypothesis: number;
984
984
  assumption: number;
985
985
  resolved_true: number;
986
986
  resolved_false: number;
@@ -1049,16 +1049,16 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1049
1049
  nodeIds: zod.ZodArray<zod.ZodString, "many">;
1050
1050
  nodeLabels: zod.ZodArray<zod.ZodString, "many">;
1051
1051
  }, "strip", zod.ZodTypeAny, {
1052
- title: string;
1053
- severity: string;
1054
1052
  description: string;
1053
+ severity: string;
1054
+ title: string;
1055
1055
  nodeIds: string[];
1056
1056
  category: string;
1057
1057
  nodeLabels: string[];
1058
1058
  }, {
1059
- title: string;
1060
- severity: string;
1061
1059
  description: string;
1060
+ severity: string;
1061
+ title: string;
1062
1062
  nodeIds: string[];
1063
1063
  category: string;
1064
1064
  nodeLabels: string[];
@@ -1101,17 +1101,17 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1101
1101
  }, "strip", zod.ZodTypeAny, {
1102
1102
  key: string;
1103
1103
  promptRef: string;
1104
+ required?: boolean | undefined;
1104
1105
  metadata?: any;
1105
1106
  role?: string | undefined;
1106
- required?: boolean | undefined;
1107
1107
  phase?: string | undefined;
1108
1108
  version?: string | undefined;
1109
1109
  }, {
1110
1110
  key: string;
1111
1111
  promptRef: string;
1112
+ required?: boolean | undefined;
1112
1113
  metadata?: any;
1113
1114
  role?: string | undefined;
1114
- required?: boolean | undefined;
1115
1115
  phase?: string | undefined;
1116
1116
  version?: string | undefined;
1117
1117
  }>, "many">;
@@ -1129,15 +1129,15 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1129
1129
  }, "strip", zod.ZodTypeAny, {
1130
1130
  key: string;
1131
1131
  title: string;
1132
- metadata?: any;
1133
1132
  description?: string | undefined;
1133
+ metadata?: any;
1134
1134
  promptTemplateKey?: string | undefined;
1135
1135
  taskTemplateKeys?: string[] | undefined;
1136
1136
  }, {
1137
1137
  key: string;
1138
1138
  title: string;
1139
- metadata?: any;
1140
1139
  description?: string | undefined;
1140
+ metadata?: any;
1141
1141
  promptTemplateKey?: string | undefined;
1142
1142
  taskTemplateKeys?: string[] | undefined;
1143
1143
  }>, "many">;
@@ -1148,26 +1148,26 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1148
1148
  steps: {
1149
1149
  key: string;
1150
1150
  title: string;
1151
- metadata?: any;
1152
1151
  description?: string | undefined;
1152
+ metadata?: any;
1153
1153
  promptTemplateKey?: string | undefined;
1154
1154
  taskTemplateKeys?: string[] | undefined;
1155
1155
  }[];
1156
- metadata?: any;
1157
1156
  description?: string | undefined;
1157
+ metadata?: any;
1158
1158
  }, {
1159
1159
  key: string;
1160
1160
  name: string;
1161
1161
  steps: {
1162
1162
  key: string;
1163
1163
  title: string;
1164
- metadata?: any;
1165
1164
  description?: string | undefined;
1165
+ metadata?: any;
1166
1166
  promptTemplateKey?: string | undefined;
1167
1167
  taskTemplateKeys?: string[] | undefined;
1168
1168
  }[];
1169
- metadata?: any;
1170
1169
  description?: string | undefined;
1170
+ metadata?: any;
1171
1171
  }>, "many">;
1172
1172
  taskTemplates: zod.ZodArray<zod.ZodObject<{
1173
1173
  key: zod.ZodString;
@@ -1179,16 +1179,16 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1179
1179
  }, "strip", zod.ZodTypeAny, {
1180
1180
  key: string;
1181
1181
  title: string;
1182
+ description?: string | undefined;
1182
1183
  metadata?: any;
1183
1184
  priority?: "low" | "medium" | "high" | "critical" | undefined;
1184
- description?: string | undefined;
1185
1185
  phase?: string | undefined;
1186
1186
  }, {
1187
1187
  key: string;
1188
1188
  title: string;
1189
+ description?: string | undefined;
1189
1190
  metadata?: any;
1190
1191
  priority?: "low" | "medium" | "high" | "critical" | undefined;
1191
- description?: string | undefined;
1192
1192
  phase?: string | undefined;
1193
1193
  }>, "many">;
1194
1194
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -1369,8 +1369,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1369
1369
  phase: string;
1370
1370
  kind: string;
1371
1371
  stepId: string;
1372
- metadata?: Record<string, any> | undefined;
1373
1372
  summary?: string | undefined;
1373
+ metadata?: Record<string, any> | undefined;
1374
1374
  completedAt?: number | undefined;
1375
1375
  }, {
1376
1376
  status: "failed" | "completed" | "skipped";
@@ -1378,8 +1378,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1378
1378
  phase: string;
1379
1379
  kind: string;
1380
1380
  stepId: string;
1381
- metadata?: Record<string, any> | undefined;
1382
1381
  summary?: string | undefined;
1382
+ metadata?: Record<string, any> | undefined;
1383
1383
  completedAt?: number | undefined;
1384
1384
  }>, "many">;
1385
1385
  inputSnapshot: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -1419,12 +1419,12 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1419
1419
  summary: string;
1420
1420
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
1421
1421
  errorMessage?: string | undefined;
1422
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
1422
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
1423
1423
  }, {
1424
1424
  summary: string;
1425
1425
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
1426
1426
  errorMessage?: string | undefined;
1427
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
1427
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
1428
1428
  }>;
1429
1429
  toolCalls: zod.ZodArray<zod.ZodObject<{
1430
1430
  toolCallId: zod.ZodString;
@@ -1441,8 +1441,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1441
1441
  success: boolean;
1442
1442
  durationMs: number;
1443
1443
  toolCallId: string;
1444
- metadata?: Record<string, any> | undefined;
1445
1444
  policyDecisionId?: string | undefined;
1445
+ metadata?: Record<string, any> | undefined;
1446
1446
  gateClassification?: "core" | "shimmed" | undefined;
1447
1447
  requiredScopes?: string[] | undefined;
1448
1448
  graphWriteCount?: number | undefined;
@@ -1451,8 +1451,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1451
1451
  success: boolean;
1452
1452
  durationMs: number;
1453
1453
  toolCallId: string;
1454
- metadata?: Record<string, any> | undefined;
1455
1454
  policyDecisionId?: string | undefined;
1455
+ metadata?: Record<string, any> | undefined;
1456
1456
  gateClassification?: "core" | "shimmed" | undefined;
1457
1457
  requiredScopes?: string[] | undefined;
1458
1458
  graphWriteCount?: number | undefined;
@@ -1469,15 +1469,15 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1469
1469
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
1470
1470
  action: string;
1471
1471
  operationId: string;
1472
- metadata?: Record<string, any> | undefined;
1473
1472
  summary?: string | undefined;
1473
+ metadata?: Record<string, any> | undefined;
1474
1474
  targetId?: string | undefined;
1475
1475
  }, {
1476
1476
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
1477
1477
  action: string;
1478
1478
  operationId: string;
1479
- metadata?: Record<string, any> | undefined;
1480
1479
  summary?: string | undefined;
1480
+ metadata?: Record<string, any> | undefined;
1481
1481
  targetId?: string | undefined;
1482
1482
  }>, "many">;
1483
1483
  graphReadCount: zod.ZodNumber;
@@ -1492,15 +1492,15 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1492
1492
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
1493
1493
  action: string;
1494
1494
  operationId: string;
1495
- metadata?: Record<string, any> | undefined;
1496
1495
  summary?: string | undefined;
1496
+ metadata?: Record<string, any> | undefined;
1497
1497
  targetId?: string | undefined;
1498
1498
  }, {
1499
1499
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
1500
1500
  action: string;
1501
1501
  operationId: string;
1502
- metadata?: Record<string, any> | undefined;
1503
1502
  summary?: string | undefined;
1503
+ metadata?: Record<string, any> | undefined;
1504
1504
  targetId?: string | undefined;
1505
1505
  }>, "many">;
1506
1506
  graphWriteCount: zod.ZodNumber;
@@ -1641,14 +1641,14 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1641
1641
  stack: zod.ZodOptional<zod.ZodString>;
1642
1642
  }, "strip", zod.ZodTypeAny, {
1643
1643
  message: string;
1644
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
1645
- stack?: string | undefined;
1644
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
1646
1645
  code?: string | undefined;
1646
+ stack?: string | undefined;
1647
1647
  }, {
1648
1648
  message: string;
1649
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
1650
- stack?: string | undefined;
1649
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
1651
1650
  code?: string | undefined;
1651
+ stack?: string | undefined;
1652
1652
  }>>;
1653
1653
  costMetrics: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
1654
1654
  metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -1980,13 +1980,13 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
1980
1980
  content: zod.ZodString;
1981
1981
  createdAt: zod.ZodNumber;
1982
1982
  }, "strip", zod.ZodTypeAny, {
1983
- id: string;
1984
1983
  createdAt: number;
1984
+ id: string;
1985
1985
  content: string;
1986
1986
  userId: string;
1987
1987
  }, {
1988
- id: string;
1989
1988
  createdAt: number;
1989
+ id: string;
1990
1990
  content: string;
1991
1991
  userId: string;
1992
1992
  }>, "many">>;
@@ -2096,12 +2096,12 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2096
2096
  purpose: zod.ZodString;
2097
2097
  suggestedQuery: zod.ZodString;
2098
2098
  }, "strip", zod.ZodTypeAny, {
2099
- tool: string;
2100
2099
  purpose: string;
2100
+ tool: string;
2101
2101
  suggestedQuery: string;
2102
2102
  }, {
2103
- tool: string;
2104
2103
  purpose: string;
2104
+ tool: string;
2105
2105
  suggestedQuery: string;
2106
2106
  }>, "many">>;
2107
2107
  metrics: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -2126,15 +2126,15 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2126
2126
  company: zod.ZodString;
2127
2127
  rationale: zod.ZodString;
2128
2128
  }, "strip", zod.ZodTypeAny, {
2129
+ rationale: string;
2129
2130
  role: string;
2130
2131
  title: string;
2131
2132
  company: string;
2132
- rationale: string;
2133
2133
  }, {
2134
+ rationale: string;
2134
2135
  role: string;
2135
2136
  title: string;
2136
2137
  company: string;
2137
- rationale: string;
2138
2138
  }>, "many">>;
2139
2139
  experts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
2140
2140
  expertise: zod.ZodString;
@@ -2199,14 +2199,14 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2199
2199
  dependsOnStepIds?: string[] | undefined;
2200
2200
  runCondition?: string | undefined;
2201
2201
  continueOnFailure?: boolean | undefined;
2202
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
2202
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
2203
2203
  stepRunCount?: number | undefined;
2204
2204
  stepLastRunAt?: number | undefined;
2205
2205
  stepOutputSummary?: string | undefined;
2206
2206
  stepOutputData?: string | undefined;
2207
2207
  stepFailureReason?: string | undefined;
2208
2208
  researchResult?: string | undefined;
2209
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
2209
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
2210
2210
  researchCompletedAt?: number | undefined;
2211
2211
  researchCitations?: (string | {
2212
2212
  url: string;
@@ -2222,8 +2222,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2222
2222
  capturedAt?: number | undefined;
2223
2223
  capturedImpact?: number | undefined;
2224
2224
  tools?: {
2225
- tool: string;
2226
2225
  purpose: string;
2226
+ tool: string;
2227
2227
  suggestedQuery: string;
2228
2228
  }[] | undefined;
2229
2229
  metrics?: {
@@ -2233,10 +2233,10 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2233
2233
  currentValue?: string | undefined;
2234
2234
  }[] | undefined;
2235
2235
  personas?: {
2236
+ rationale: string;
2236
2237
  role: string;
2237
2238
  title: string;
2238
2239
  company: string;
2239
- rationale: string;
2240
2240
  }[] | undefined;
2241
2241
  experts?: {
2242
2242
  questions: string[];
@@ -2283,14 +2283,14 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2283
2283
  dependsOnStepIds?: string[] | undefined;
2284
2284
  runCondition?: string | undefined;
2285
2285
  continueOnFailure?: boolean | undefined;
2286
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
2286
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
2287
2287
  stepRunCount?: number | undefined;
2288
2288
  stepLastRunAt?: number | undefined;
2289
2289
  stepOutputSummary?: string | undefined;
2290
2290
  stepOutputData?: string | undefined;
2291
2291
  stepFailureReason?: string | undefined;
2292
2292
  researchResult?: string | undefined;
2293
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
2293
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
2294
2294
  researchCompletedAt?: number | undefined;
2295
2295
  researchCitations?: (string | {
2296
2296
  url: string;
@@ -2306,8 +2306,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2306
2306
  capturedAt?: number | undefined;
2307
2307
  capturedImpact?: number | undefined;
2308
2308
  tools?: {
2309
- tool: string;
2310
2309
  purpose: string;
2310
+ tool: string;
2311
2311
  suggestedQuery: string;
2312
2312
  }[] | undefined;
2313
2313
  metrics?: {
@@ -2317,10 +2317,10 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2317
2317
  currentValue?: string | undefined;
2318
2318
  }[] | undefined;
2319
2319
  personas?: {
2320
+ rationale: string;
2320
2321
  role: string;
2321
2322
  title: string;
2322
2323
  company: string;
2323
- rationale: string;
2324
2324
  }[] | undefined;
2325
2325
  experts?: {
2326
2326
  questions: string[];
@@ -2340,11 +2340,11 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2340
2340
  createdBy: zod.ZodString;
2341
2341
  createdAt: zod.ZodNumber;
2342
2342
  }, "strip", zod.ZodTypeAny, {
2343
- id: string;
2343
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
2344
2344
  createdAt: number;
2345
+ id: string;
2345
2346
  title: string;
2346
2347
  content: string;
2347
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
2348
2348
  createdBy: string;
2349
2349
  metadata?: {
2350
2350
  items?: {
@@ -2380,14 +2380,14 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2380
2380
  dependsOnStepIds?: string[] | undefined;
2381
2381
  runCondition?: string | undefined;
2382
2382
  continueOnFailure?: boolean | undefined;
2383
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
2383
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
2384
2384
  stepRunCount?: number | undefined;
2385
2385
  stepLastRunAt?: number | undefined;
2386
2386
  stepOutputSummary?: string | undefined;
2387
2387
  stepOutputData?: string | undefined;
2388
2388
  stepFailureReason?: string | undefined;
2389
2389
  researchResult?: string | undefined;
2390
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
2390
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
2391
2391
  researchCompletedAt?: number | undefined;
2392
2392
  researchCitations?: (string | {
2393
2393
  url: string;
@@ -2403,8 +2403,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2403
2403
  capturedAt?: number | undefined;
2404
2404
  capturedImpact?: number | undefined;
2405
2405
  tools?: {
2406
- tool: string;
2407
2406
  purpose: string;
2407
+ tool: string;
2408
2408
  suggestedQuery: string;
2409
2409
  }[] | undefined;
2410
2410
  metrics?: {
@@ -2414,10 +2414,10 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2414
2414
  currentValue?: string | undefined;
2415
2415
  }[] | undefined;
2416
2416
  personas?: {
2417
+ rationale: string;
2417
2418
  role: string;
2418
2419
  title: string;
2419
2420
  company: string;
2420
- rationale: string;
2421
2421
  }[] | undefined;
2422
2422
  experts?: {
2423
2423
  questions: string[];
@@ -2435,11 +2435,11 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2435
2435
  capturedInsightId?: (string & zod.BRAND<"Id<epistemicNodes>">) | undefined;
2436
2436
  capturedAt?: number | undefined;
2437
2437
  }, {
2438
- id: string;
2438
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
2439
2439
  createdAt: number;
2440
+ id: string;
2440
2441
  title: string;
2441
2442
  content: string;
2442
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
2443
2443
  createdBy: string;
2444
2444
  metadata?: {
2445
2445
  items?: {
@@ -2475,14 +2475,14 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2475
2475
  dependsOnStepIds?: string[] | undefined;
2476
2476
  runCondition?: string | undefined;
2477
2477
  continueOnFailure?: boolean | undefined;
2478
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
2478
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
2479
2479
  stepRunCount?: number | undefined;
2480
2480
  stepLastRunAt?: number | undefined;
2481
2481
  stepOutputSummary?: string | undefined;
2482
2482
  stepOutputData?: string | undefined;
2483
2483
  stepFailureReason?: string | undefined;
2484
2484
  researchResult?: string | undefined;
2485
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
2485
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
2486
2486
  researchCompletedAt?: number | undefined;
2487
2487
  researchCitations?: (string | {
2488
2488
  url: string;
@@ -2498,8 +2498,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2498
2498
  capturedAt?: number | undefined;
2499
2499
  capturedImpact?: number | undefined;
2500
2500
  tools?: {
2501
- tool: string;
2502
2501
  purpose: string;
2502
+ tool: string;
2503
2503
  suggestedQuery: string;
2504
2504
  }[] | undefined;
2505
2505
  metrics?: {
@@ -2509,10 +2509,10 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2509
2509
  currentValue?: string | undefined;
2510
2510
  }[] | undefined;
2511
2511
  personas?: {
2512
+ rationale: string;
2512
2513
  role: string;
2513
2514
  title: string;
2514
2515
  company: string;
2515
- rationale: string;
2516
2516
  }[] | undefined;
2517
2517
  experts?: {
2518
2518
  questions: string[];
@@ -2663,14 +2663,14 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2663
2663
  answerConfidence: zod.ZodOptional<zod.ZodEnum<["high", "medium", "low"]>>;
2664
2664
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
2665
2665
  }, "strip", zod.ZodTypeAny, {
2666
- status: "forked" | "answered" | "open";
2667
2666
  question: string;
2667
+ status: "forked" | "answered" | "open";
2668
2668
  answer?: string | undefined;
2669
2669
  linkedQuestionId?: string | undefined;
2670
2670
  answerConfidence?: "low" | "medium" | "high" | undefined;
2671
2671
  }, {
2672
- status: "forked" | "answered" | "open";
2673
2672
  question: string;
2673
+ status: "forked" | "answered" | "open";
2674
2674
  answer?: string | undefined;
2675
2675
  linkedQuestionId?: string | undefined;
2676
2676
  answerConfidence?: "low" | "medium" | "high" | undefined;
@@ -2883,15 +2883,15 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2883
2883
  edgeType: string;
2884
2884
  targetId: string;
2885
2885
  sourceId: string;
2886
- createdAt?: number | undefined;
2887
2886
  weight?: number | undefined;
2887
+ createdAt?: number | undefined;
2888
2888
  edgeId?: string | undefined;
2889
2889
  }, {
2890
2890
  edgeType: string;
2891
2891
  targetId: string;
2892
2892
  sourceId: string;
2893
- createdAt?: number | undefined;
2894
2893
  weight?: number | undefined;
2894
+ createdAt?: number | undefined;
2895
2895
  edgeId?: string | undefined;
2896
2896
  }>, "many">;
2897
2897
  relatedBeliefs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -2922,9 +2922,9 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2922
2922
  evidenceCount: zod.ZodNumber;
2923
2923
  }, "strip", zod.ZodTypeAny, {
2924
2924
  status: string;
2925
+ evidenceCount: number;
2925
2926
  id: string;
2926
2927
  text: string;
2927
- evidenceCount: number;
2928
2928
  answer?: string | undefined;
2929
2929
  priority?: string | undefined;
2930
2930
  answerStatus?: string | undefined;
@@ -2932,9 +2932,9 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2932
2932
  answeredAt?: number | undefined;
2933
2933
  }, {
2934
2934
  status: string;
2935
+ evidenceCount: number;
2935
2936
  id: string;
2936
2937
  text: string;
2937
- evidenceCount: number;
2938
2938
  answer?: string | undefined;
2939
2939
  priority?: string | undefined;
2940
2940
  answerStatus?: string | undefined;
@@ -2952,16 +2952,16 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
2952
2952
  id: string;
2953
2953
  text: string;
2954
2954
  verified: boolean;
2955
+ createdAt?: number | undefined;
2955
2956
  sourceType?: string | undefined;
2956
2957
  verificationStatus?: string | undefined;
2957
- createdAt?: number | undefined;
2958
2958
  }, {
2959
2959
  id: string;
2960
2960
  text: string;
2961
2961
  verified: boolean;
2962
+ createdAt?: number | undefined;
2962
2963
  sourceType?: string | undefined;
2963
2964
  verificationStatus?: string | undefined;
2964
- createdAt?: number | undefined;
2965
2965
  }>, "many">;
2966
2966
  tasksCompleted: zod.ZodOptional<zod.ZodNumber>;
2967
2967
  totalTasks: zod.ZodOptional<zod.ZodNumber>;
@@ -3019,11 +3019,10 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
3019
3019
  id: string;
3020
3020
  text: string;
3021
3021
  verified: boolean;
3022
+ createdAt?: number | undefined;
3022
3023
  sourceType?: string | undefined;
3023
3024
  verificationStatus?: string | undefined;
3024
- createdAt?: number | undefined;
3025
3025
  }[];
3026
- worktreeId: string & zod.BRAND<"Id<worktrees>">;
3027
3026
  outcome: {
3028
3027
  summary: string;
3029
3028
  verdict: string;
@@ -3031,11 +3030,12 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
3031
3030
  endingConfidence: number;
3032
3031
  confidenceChange: number;
3033
3032
  };
3033
+ worktreeId: string & zod.BRAND<"Id<worktrees>">;
3034
3034
  questions: {
3035
3035
  status: string;
3036
+ evidenceCount: number;
3036
3037
  id: string;
3037
3038
  text: string;
3038
- evidenceCount: number;
3039
3039
  answer?: string | undefined;
3040
3040
  priority?: string | undefined;
3041
3041
  answerStatus?: string | undefined;
@@ -3048,8 +3048,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
3048
3048
  edgeType: string;
3049
3049
  targetId: string;
3050
3050
  sourceId: string;
3051
- createdAt?: number | undefined;
3052
3051
  weight?: number | undefined;
3052
+ createdAt?: number | undefined;
3053
3053
  edgeId?: string | undefined;
3054
3054
  }[];
3055
3055
  topicId?: string | undefined;
@@ -3085,11 +3085,10 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
3085
3085
  id: string;
3086
3086
  text: string;
3087
3087
  verified: boolean;
3088
+ createdAt?: number | undefined;
3088
3089
  sourceType?: string | undefined;
3089
3090
  verificationStatus?: string | undefined;
3090
- createdAt?: number | undefined;
3091
3091
  }[];
3092
- worktreeId: string;
3093
3092
  outcome: {
3094
3093
  summary: string;
3095
3094
  verdict: string;
@@ -3097,11 +3096,12 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
3097
3096
  endingConfidence: number;
3098
3097
  confidenceChange: number;
3099
3098
  };
3099
+ worktreeId: string;
3100
3100
  questions: {
3101
3101
  status: string;
3102
+ evidenceCount: number;
3102
3103
  id: string;
3103
3104
  text: string;
3104
- evidenceCount: number;
3105
3105
  answer?: string | undefined;
3106
3106
  priority?: string | undefined;
3107
3107
  answerStatus?: string | undefined;
@@ -3114,8 +3114,8 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
3114
3114
  edgeType: string;
3115
3115
  targetId: string;
3116
3116
  sourceId: string;
3117
- createdAt?: number | undefined;
3118
3117
  weight?: number | undefined;
3118
+ createdAt?: number | undefined;
3119
3119
  edgeId?: string | undefined;
3120
3120
  }[];
3121
3121
  topicId?: string | undefined;
@@ -3230,16 +3230,16 @@ declare const KERNEL_TABLE_CONTRACTS: readonly [TableContract<{
3230
3230
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
3231
3231
  linkedBeliefId: zod.ZodOptional<zod.ZodString>;
3232
3232
  }, "strip", zod.ZodTypeAny, {
3233
- id: string;
3234
3233
  createdAt: number;
3234
+ id: string;
3235
3235
  content: string;
3236
3236
  createdBy: string;
3237
3237
  linkedBeliefId?: string | undefined;
3238
3238
  linkedQuestionId?: string | undefined;
3239
3239
  linkedTaskId?: string | undefined;
3240
3240
  }, {
3241
- id: string;
3242
3241
  createdAt: number;
3242
+ id: string;
3243
3243
  content: string;
3244
3244
  createdBy: string;
3245
3245
  linkedBeliefId?: string | undefined;
@@ -4294,16 +4294,16 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4294
4294
  }, "strip", zod.ZodTypeAny, {
4295
4295
  principalId: string;
4296
4296
  principalType: "agent" | "human" | "service";
4297
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
4298
4297
  reason?: string | undefined;
4299
4298
  sessionId?: string | undefined;
4299
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
4300
4300
  delegatedAt?: number | undefined;
4301
4301
  }, {
4302
4302
  principalId: string;
4303
4303
  principalType: "agent" | "human" | "service";
4304
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
4305
4304
  reason?: string | undefined;
4306
4305
  sessionId?: string | undefined;
4306
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
4307
4307
  delegatedAt?: number | undefined;
4308
4308
  }>, "many">>;
4309
4309
  sourceSessionId: zod.ZodOptional<zod.ZodString>;
@@ -4332,16 +4332,16 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4332
4332
  gate: zod.ZodOptional<zod.ZodString>;
4333
4333
  instructions: zod.ZodString;
4334
4334
  }, "strip", zod.ZodTypeAny, {
4335
+ description: string;
4335
4336
  title: string;
4336
4337
  name: string;
4337
- description: string;
4338
4338
  requiredTools: string[];
4339
4339
  instructions: string;
4340
4340
  gate?: string | undefined;
4341
4341
  }, {
4342
+ description: string;
4342
4343
  title: string;
4343
4344
  name: string;
4344
- description: string;
4345
4345
  requiredTools: string[];
4346
4346
  instructions: string;
4347
4347
  gate?: string | undefined;
@@ -4495,10 +4495,10 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4495
4495
  }, "strip", zod.ZodTypeAny, {
4496
4496
  toolName: string;
4497
4497
  toolVersion: string;
4498
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
4499
4498
  description?: string | undefined;
4499
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
4500
4500
  category?: "read" | "admin" | "write" | "system" | undefined;
4501
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
4501
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
4502
4502
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
4503
4503
  parameterSchema?: Record<string, any> | undefined;
4504
4504
  handlerRef?: string | undefined;
@@ -4512,10 +4512,10 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4512
4512
  }, {
4513
4513
  toolName: string;
4514
4514
  toolVersion: string;
4515
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
4516
4515
  description?: string | undefined;
4516
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
4517
4517
  category?: "read" | "admin" | "write" | "system" | undefined;
4518
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
4518
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
4519
4519
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
4520
4520
  parameterSchema?: Record<string, any> | undefined;
4521
4521
  handlerRef?: string | undefined;
@@ -4673,17 +4673,17 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4673
4673
  }, "strip", zod.ZodTypeAny, {
4674
4674
  key: string;
4675
4675
  promptRef: string;
4676
+ required?: boolean | undefined;
4676
4677
  metadata?: any;
4677
4678
  role?: string | undefined;
4678
- required?: boolean | undefined;
4679
4679
  phase?: string | undefined;
4680
4680
  version?: string | undefined;
4681
4681
  }, {
4682
4682
  key: string;
4683
4683
  promptRef: string;
4684
+ required?: boolean | undefined;
4684
4685
  metadata?: any;
4685
4686
  role?: string | undefined;
4686
- required?: boolean | undefined;
4687
4687
  phase?: string | undefined;
4688
4688
  version?: string | undefined;
4689
4689
  }>, "many">;
@@ -4701,15 +4701,15 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4701
4701
  }, "strip", zod.ZodTypeAny, {
4702
4702
  key: string;
4703
4703
  title: string;
4704
- metadata?: any;
4705
4704
  description?: string | undefined;
4705
+ metadata?: any;
4706
4706
  promptTemplateKey?: string | undefined;
4707
4707
  taskTemplateKeys?: string[] | undefined;
4708
4708
  }, {
4709
4709
  key: string;
4710
4710
  title: string;
4711
- metadata?: any;
4712
4711
  description?: string | undefined;
4712
+ metadata?: any;
4713
4713
  promptTemplateKey?: string | undefined;
4714
4714
  taskTemplateKeys?: string[] | undefined;
4715
4715
  }>, "many">;
@@ -4720,26 +4720,26 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4720
4720
  steps: {
4721
4721
  key: string;
4722
4722
  title: string;
4723
- metadata?: any;
4724
4723
  description?: string | undefined;
4724
+ metadata?: any;
4725
4725
  promptTemplateKey?: string | undefined;
4726
4726
  taskTemplateKeys?: string[] | undefined;
4727
4727
  }[];
4728
- metadata?: any;
4729
4728
  description?: string | undefined;
4729
+ metadata?: any;
4730
4730
  }, {
4731
4731
  key: string;
4732
4732
  name: string;
4733
4733
  steps: {
4734
4734
  key: string;
4735
4735
  title: string;
4736
- metadata?: any;
4737
4736
  description?: string | undefined;
4737
+ metadata?: any;
4738
4738
  promptTemplateKey?: string | undefined;
4739
4739
  taskTemplateKeys?: string[] | undefined;
4740
4740
  }[];
4741
- metadata?: any;
4742
4741
  description?: string | undefined;
4742
+ metadata?: any;
4743
4743
  }>, "many">;
4744
4744
  taskTemplates: zod.ZodArray<zod.ZodObject<{
4745
4745
  key: zod.ZodString;
@@ -4751,16 +4751,16 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4751
4751
  }, "strip", zod.ZodTypeAny, {
4752
4752
  key: string;
4753
4753
  title: string;
4754
+ description?: string | undefined;
4754
4755
  metadata?: any;
4755
4756
  priority?: "low" | "medium" | "high" | "critical" | undefined;
4756
- description?: string | undefined;
4757
4757
  phase?: string | undefined;
4758
4758
  }, {
4759
4759
  key: string;
4760
4760
  title: string;
4761
+ description?: string | undefined;
4761
4762
  metadata?: any;
4762
4763
  priority?: "low" | "medium" | "high" | "critical" | undefined;
4763
- description?: string | undefined;
4764
4764
  phase?: string | undefined;
4765
4765
  }>, "many">;
4766
4766
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -4791,9 +4791,9 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4791
4791
  promptTemplates: {
4792
4792
  key: string;
4793
4793
  promptRef: string;
4794
+ required?: boolean | undefined;
4794
4795
  metadata?: any;
4795
4796
  role?: string | undefined;
4796
- required?: boolean | undefined;
4797
4797
  phase?: string | undefined;
4798
4798
  version?: string | undefined;
4799
4799
  }[];
@@ -4803,25 +4803,25 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4803
4803
  steps: {
4804
4804
  key: string;
4805
4805
  title: string;
4806
- metadata?: any;
4807
4806
  description?: string | undefined;
4807
+ metadata?: any;
4808
4808
  promptTemplateKey?: string | undefined;
4809
4809
  taskTemplateKeys?: string[] | undefined;
4810
4810
  }[];
4811
- metadata?: any;
4812
4811
  description?: string | undefined;
4812
+ metadata?: any;
4813
4813
  }[];
4814
4814
  taskTemplates: {
4815
4815
  key: string;
4816
4816
  title: string;
4817
+ description?: string | undefined;
4817
4818
  metadata?: any;
4818
4819
  priority?: "low" | "medium" | "high" | "critical" | undefined;
4819
- description?: string | undefined;
4820
4820
  phase?: string | undefined;
4821
4821
  }[];
4822
4822
  lensKey: string;
4823
- metadata?: any;
4824
4823
  description?: string | undefined;
4824
+ metadata?: any;
4825
4825
  filterCriteria?: any;
4826
4826
  questionTemplates?: {
4827
4827
  key: string;
@@ -4837,9 +4837,9 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4837
4837
  promptTemplates: {
4838
4838
  key: string;
4839
4839
  promptRef: string;
4840
+ required?: boolean | undefined;
4840
4841
  metadata?: any;
4841
4842
  role?: string | undefined;
4842
- required?: boolean | undefined;
4843
4843
  phase?: string | undefined;
4844
4844
  version?: string | undefined;
4845
4845
  }[];
@@ -4849,25 +4849,25 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
4849
4849
  steps: {
4850
4850
  key: string;
4851
4851
  title: string;
4852
- metadata?: any;
4853
4852
  description?: string | undefined;
4853
+ metadata?: any;
4854
4854
  promptTemplateKey?: string | undefined;
4855
4855
  taskTemplateKeys?: string[] | undefined;
4856
4856
  }[];
4857
- metadata?: any;
4858
4857
  description?: string | undefined;
4858
+ metadata?: any;
4859
4859
  }[];
4860
4860
  taskTemplates: {
4861
4861
  key: string;
4862
4862
  title: string;
4863
+ description?: string | undefined;
4863
4864
  metadata?: any;
4864
4865
  priority?: "low" | "medium" | "high" | "critical" | undefined;
4865
- description?: string | undefined;
4866
4866
  phase?: string | undefined;
4867
4867
  }[];
4868
4868
  lensKey: string;
4869
- metadata?: any;
4870
4869
  description?: string | undefined;
4870
+ metadata?: any;
4871
4871
  filterCriteria?: any;
4872
4872
  questionTemplates?: {
4873
4873
  key: string;
@@ -5113,11 +5113,11 @@ declare const MC_TABLE_CONTRACTS: readonly [TableContract<{
5113
5113
  legacyPath: zod.ZodString;
5114
5114
  harnessPath: zod.ZodString;
5115
5115
  }, "strip", zod.ZodTypeAny, {
5116
- type: "tool" | "agent";
5116
+ type: "agent" | "tool";
5117
5117
  legacyPath: string;
5118
5118
  harnessPath: string;
5119
5119
  }, {
5120
- type: "tool" | "agent";
5120
+ type: "agent" | "tool";
5121
5121
  legacyPath: string;
5122
5122
  harnessPath: string;
5123
5123
  }>;
@@ -5820,13 +5820,13 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
5820
5820
  priority: zod.ZodString;
5821
5821
  rationale: zod.ZodString;
5822
5822
  }, "strip", zod.ZodTypeAny, {
5823
+ rationale: string;
5823
5824
  action: string;
5824
5825
  priority: string;
5825
- rationale: string;
5826
5826
  }, {
5827
+ rationale: string;
5827
5828
  action: string;
5828
5829
  priority: string;
5829
- rationale: string;
5830
5830
  }>, "many">>;
5831
5831
  sourceWorktreeId: zod.ZodOptional<zod.ZodString>;
5832
5832
  sourceChatId: zod.ZodOptional<ConvexIdSchema<"chats">>;
@@ -6276,10 +6276,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6276
6276
  importance: zod.ZodOptional<zod.ZodNumber>;
6277
6277
  totalCount: zod.ZodOptional<zod.ZodNumber>;
6278
6278
  }, "strip", zod.ZodTypeAny, {
6279
+ description: string;
6280
+ severity: "critical" | "warning" | "info";
6279
6281
  id: string;
6280
6282
  title: string;
6281
- severity: "critical" | "warning" | "info";
6282
- description: string;
6283
6283
  nodeIds: string[];
6284
6284
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
6285
6285
  nodeLabels: string[];
@@ -6287,10 +6287,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6287
6287
  importance?: number | undefined;
6288
6288
  totalCount?: number | undefined;
6289
6289
  }, {
6290
+ description: string;
6291
+ severity: "critical" | "warning" | "info";
6290
6292
  id: string;
6291
6293
  title: string;
6292
- severity: "critical" | "warning" | "info";
6293
- description: string;
6294
6294
  nodeIds: string[];
6295
6295
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
6296
6296
  nodeLabels: string[];
@@ -6325,16 +6325,16 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6325
6325
  resolved_true: zod.ZodNumber;
6326
6326
  resolved_false: zod.ZodNumber;
6327
6327
  }, "strip", zod.ZodTypeAny, {
6328
- hypothesis: number;
6329
- active: number;
6330
6328
  superseded: number;
6329
+ active: number;
6330
+ hypothesis: number;
6331
6331
  assumption: number;
6332
6332
  resolved_true: number;
6333
6333
  resolved_false: number;
6334
6334
  }, {
6335
- hypothesis: number;
6336
- active: number;
6337
6335
  superseded: number;
6336
+ active: number;
6337
+ hypothesis: number;
6338
6338
  assumption: number;
6339
6339
  resolved_true: number;
6340
6340
  resolved_false: number;
@@ -6372,9 +6372,9 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6372
6372
  propagationRisks: number;
6373
6373
  temporalDecayCount: number;
6374
6374
  beliefStatus?: {
6375
- hypothesis: number;
6376
- active: number;
6377
6375
  superseded: number;
6376
+ active: number;
6377
+ hypothesis: number;
6378
6378
  assumption: number;
6379
6379
  resolved_true: number;
6380
6380
  resolved_false: number;
@@ -6404,9 +6404,9 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6404
6404
  propagationRisks: number;
6405
6405
  temporalDecayCount: number;
6406
6406
  beliefStatus?: {
6407
- hypothesis: number;
6408
- active: number;
6409
6407
  superseded: number;
6408
+ active: number;
6409
+ hypothesis: number;
6410
6410
  assumption: number;
6411
6411
  resolved_true: number;
6412
6412
  resolved_false: number;
@@ -6475,16 +6475,16 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6475
6475
  nodeIds: zod.ZodArray<zod.ZodString, "many">;
6476
6476
  nodeLabels: zod.ZodArray<zod.ZodString, "many">;
6477
6477
  }, "strip", zod.ZodTypeAny, {
6478
- title: string;
6479
- severity: string;
6480
6478
  description: string;
6479
+ severity: string;
6480
+ title: string;
6481
6481
  nodeIds: string[];
6482
6482
  category: string;
6483
6483
  nodeLabels: string[];
6484
6484
  }, {
6485
- title: string;
6486
- severity: string;
6487
6485
  description: string;
6486
+ severity: string;
6487
+ title: string;
6488
6488
  nodeIds: string[];
6489
6489
  category: string;
6490
6490
  nodeLabels: string[];
@@ -6527,17 +6527,17 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6527
6527
  }, "strip", zod.ZodTypeAny, {
6528
6528
  key: string;
6529
6529
  promptRef: string;
6530
+ required?: boolean | undefined;
6530
6531
  metadata?: any;
6531
6532
  role?: string | undefined;
6532
- required?: boolean | undefined;
6533
6533
  phase?: string | undefined;
6534
6534
  version?: string | undefined;
6535
6535
  }, {
6536
6536
  key: string;
6537
6537
  promptRef: string;
6538
+ required?: boolean | undefined;
6538
6539
  metadata?: any;
6539
6540
  role?: string | undefined;
6540
- required?: boolean | undefined;
6541
6541
  phase?: string | undefined;
6542
6542
  version?: string | undefined;
6543
6543
  }>, "many">;
@@ -6555,15 +6555,15 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6555
6555
  }, "strip", zod.ZodTypeAny, {
6556
6556
  key: string;
6557
6557
  title: string;
6558
- metadata?: any;
6559
6558
  description?: string | undefined;
6559
+ metadata?: any;
6560
6560
  promptTemplateKey?: string | undefined;
6561
6561
  taskTemplateKeys?: string[] | undefined;
6562
6562
  }, {
6563
6563
  key: string;
6564
6564
  title: string;
6565
- metadata?: any;
6566
6565
  description?: string | undefined;
6566
+ metadata?: any;
6567
6567
  promptTemplateKey?: string | undefined;
6568
6568
  taskTemplateKeys?: string[] | undefined;
6569
6569
  }>, "many">;
@@ -6574,26 +6574,26 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6574
6574
  steps: {
6575
6575
  key: string;
6576
6576
  title: string;
6577
- metadata?: any;
6578
6577
  description?: string | undefined;
6578
+ metadata?: any;
6579
6579
  promptTemplateKey?: string | undefined;
6580
6580
  taskTemplateKeys?: string[] | undefined;
6581
6581
  }[];
6582
- metadata?: any;
6583
6582
  description?: string | undefined;
6583
+ metadata?: any;
6584
6584
  }, {
6585
6585
  key: string;
6586
6586
  name: string;
6587
6587
  steps: {
6588
6588
  key: string;
6589
6589
  title: string;
6590
- metadata?: any;
6591
6590
  description?: string | undefined;
6591
+ metadata?: any;
6592
6592
  promptTemplateKey?: string | undefined;
6593
6593
  taskTemplateKeys?: string[] | undefined;
6594
6594
  }[];
6595
- metadata?: any;
6596
6595
  description?: string | undefined;
6596
+ metadata?: any;
6597
6597
  }>, "many">;
6598
6598
  taskTemplates: zod.ZodArray<zod.ZodObject<{
6599
6599
  key: zod.ZodString;
@@ -6605,16 +6605,16 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6605
6605
  }, "strip", zod.ZodTypeAny, {
6606
6606
  key: string;
6607
6607
  title: string;
6608
+ description?: string | undefined;
6608
6609
  metadata?: any;
6609
6610
  priority?: "low" | "medium" | "high" | "critical" | undefined;
6610
- description?: string | undefined;
6611
6611
  phase?: string | undefined;
6612
6612
  }, {
6613
6613
  key: string;
6614
6614
  title: string;
6615
+ description?: string | undefined;
6615
6616
  metadata?: any;
6616
6617
  priority?: "low" | "medium" | "high" | "critical" | undefined;
6617
- description?: string | undefined;
6618
6618
  phase?: string | undefined;
6619
6619
  }>, "many">;
6620
6620
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -6795,8 +6795,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6795
6795
  phase: string;
6796
6796
  kind: string;
6797
6797
  stepId: string;
6798
- metadata?: Record<string, any> | undefined;
6799
6798
  summary?: string | undefined;
6799
+ metadata?: Record<string, any> | undefined;
6800
6800
  completedAt?: number | undefined;
6801
6801
  }, {
6802
6802
  status: "failed" | "completed" | "skipped";
@@ -6804,8 +6804,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6804
6804
  phase: string;
6805
6805
  kind: string;
6806
6806
  stepId: string;
6807
- metadata?: Record<string, any> | undefined;
6808
6807
  summary?: string | undefined;
6808
+ metadata?: Record<string, any> | undefined;
6809
6809
  completedAt?: number | undefined;
6810
6810
  }>, "many">;
6811
6811
  inputSnapshot: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -6845,12 +6845,12 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6845
6845
  summary: string;
6846
6846
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
6847
6847
  errorMessage?: string | undefined;
6848
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
6848
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
6849
6849
  }, {
6850
6850
  summary: string;
6851
6851
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
6852
6852
  errorMessage?: string | undefined;
6853
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
6853
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
6854
6854
  }>;
6855
6855
  toolCalls: zod.ZodArray<zod.ZodObject<{
6856
6856
  toolCallId: zod.ZodString;
@@ -6867,8 +6867,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6867
6867
  success: boolean;
6868
6868
  durationMs: number;
6869
6869
  toolCallId: string;
6870
- metadata?: Record<string, any> | undefined;
6871
6870
  policyDecisionId?: string | undefined;
6871
+ metadata?: Record<string, any> | undefined;
6872
6872
  gateClassification?: "core" | "shimmed" | undefined;
6873
6873
  requiredScopes?: string[] | undefined;
6874
6874
  graphWriteCount?: number | undefined;
@@ -6877,8 +6877,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6877
6877
  success: boolean;
6878
6878
  durationMs: number;
6879
6879
  toolCallId: string;
6880
- metadata?: Record<string, any> | undefined;
6881
6880
  policyDecisionId?: string | undefined;
6881
+ metadata?: Record<string, any> | undefined;
6882
6882
  gateClassification?: "core" | "shimmed" | undefined;
6883
6883
  requiredScopes?: string[] | undefined;
6884
6884
  graphWriteCount?: number | undefined;
@@ -6895,15 +6895,15 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6895
6895
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
6896
6896
  action: string;
6897
6897
  operationId: string;
6898
- metadata?: Record<string, any> | undefined;
6899
6898
  summary?: string | undefined;
6899
+ metadata?: Record<string, any> | undefined;
6900
6900
  targetId?: string | undefined;
6901
6901
  }, {
6902
6902
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
6903
6903
  action: string;
6904
6904
  operationId: string;
6905
- metadata?: Record<string, any> | undefined;
6906
6905
  summary?: string | undefined;
6906
+ metadata?: Record<string, any> | undefined;
6907
6907
  targetId?: string | undefined;
6908
6908
  }>, "many">;
6909
6909
  graphReadCount: zod.ZodNumber;
@@ -6918,15 +6918,15 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
6918
6918
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
6919
6919
  action: string;
6920
6920
  operationId: string;
6921
- metadata?: Record<string, any> | undefined;
6922
6921
  summary?: string | undefined;
6922
+ metadata?: Record<string, any> | undefined;
6923
6923
  targetId?: string | undefined;
6924
6924
  }, {
6925
6925
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
6926
6926
  action: string;
6927
6927
  operationId: string;
6928
- metadata?: Record<string, any> | undefined;
6929
6928
  summary?: string | undefined;
6929
+ metadata?: Record<string, any> | undefined;
6930
6930
  targetId?: string | undefined;
6931
6931
  }>, "many">;
6932
6932
  graphWriteCount: zod.ZodNumber;
@@ -7067,14 +7067,14 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7067
7067
  stack: zod.ZodOptional<zod.ZodString>;
7068
7068
  }, "strip", zod.ZodTypeAny, {
7069
7069
  message: string;
7070
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
7071
- stack?: string | undefined;
7070
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
7072
7071
  code?: string | undefined;
7072
+ stack?: string | undefined;
7073
7073
  }, {
7074
7074
  message: string;
7075
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
7076
- stack?: string | undefined;
7075
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
7077
7076
  code?: string | undefined;
7077
+ stack?: string | undefined;
7078
7078
  }>>;
7079
7079
  costMetrics: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
7080
7080
  metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -7406,13 +7406,13 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7406
7406
  content: zod.ZodString;
7407
7407
  createdAt: zod.ZodNumber;
7408
7408
  }, "strip", zod.ZodTypeAny, {
7409
- id: string;
7410
7409
  createdAt: number;
7410
+ id: string;
7411
7411
  content: string;
7412
7412
  userId: string;
7413
7413
  }, {
7414
- id: string;
7415
7414
  createdAt: number;
7415
+ id: string;
7416
7416
  content: string;
7417
7417
  userId: string;
7418
7418
  }>, "many">>;
@@ -7522,12 +7522,12 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7522
7522
  purpose: zod.ZodString;
7523
7523
  suggestedQuery: zod.ZodString;
7524
7524
  }, "strip", zod.ZodTypeAny, {
7525
- tool: string;
7526
7525
  purpose: string;
7526
+ tool: string;
7527
7527
  suggestedQuery: string;
7528
7528
  }, {
7529
- tool: string;
7530
7529
  purpose: string;
7530
+ tool: string;
7531
7531
  suggestedQuery: string;
7532
7532
  }>, "many">>;
7533
7533
  metrics: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -7552,15 +7552,15 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7552
7552
  company: zod.ZodString;
7553
7553
  rationale: zod.ZodString;
7554
7554
  }, "strip", zod.ZodTypeAny, {
7555
+ rationale: string;
7555
7556
  role: string;
7556
7557
  title: string;
7557
7558
  company: string;
7558
- rationale: string;
7559
7559
  }, {
7560
+ rationale: string;
7560
7561
  role: string;
7561
7562
  title: string;
7562
7563
  company: string;
7563
- rationale: string;
7564
7564
  }>, "many">>;
7565
7565
  experts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
7566
7566
  expertise: zod.ZodString;
@@ -7625,14 +7625,14 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7625
7625
  dependsOnStepIds?: string[] | undefined;
7626
7626
  runCondition?: string | undefined;
7627
7627
  continueOnFailure?: boolean | undefined;
7628
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
7628
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
7629
7629
  stepRunCount?: number | undefined;
7630
7630
  stepLastRunAt?: number | undefined;
7631
7631
  stepOutputSummary?: string | undefined;
7632
7632
  stepOutputData?: string | undefined;
7633
7633
  stepFailureReason?: string | undefined;
7634
7634
  researchResult?: string | undefined;
7635
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
7635
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
7636
7636
  researchCompletedAt?: number | undefined;
7637
7637
  researchCitations?: (string | {
7638
7638
  url: string;
@@ -7648,8 +7648,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7648
7648
  capturedAt?: number | undefined;
7649
7649
  capturedImpact?: number | undefined;
7650
7650
  tools?: {
7651
- tool: string;
7652
7651
  purpose: string;
7652
+ tool: string;
7653
7653
  suggestedQuery: string;
7654
7654
  }[] | undefined;
7655
7655
  metrics?: {
@@ -7659,10 +7659,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7659
7659
  currentValue?: string | undefined;
7660
7660
  }[] | undefined;
7661
7661
  personas?: {
7662
+ rationale: string;
7662
7663
  role: string;
7663
7664
  title: string;
7664
7665
  company: string;
7665
- rationale: string;
7666
7666
  }[] | undefined;
7667
7667
  experts?: {
7668
7668
  questions: string[];
@@ -7709,14 +7709,14 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7709
7709
  dependsOnStepIds?: string[] | undefined;
7710
7710
  runCondition?: string | undefined;
7711
7711
  continueOnFailure?: boolean | undefined;
7712
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
7712
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
7713
7713
  stepRunCount?: number | undefined;
7714
7714
  stepLastRunAt?: number | undefined;
7715
7715
  stepOutputSummary?: string | undefined;
7716
7716
  stepOutputData?: string | undefined;
7717
7717
  stepFailureReason?: string | undefined;
7718
7718
  researchResult?: string | undefined;
7719
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
7719
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
7720
7720
  researchCompletedAt?: number | undefined;
7721
7721
  researchCitations?: (string | {
7722
7722
  url: string;
@@ -7732,8 +7732,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7732
7732
  capturedAt?: number | undefined;
7733
7733
  capturedImpact?: number | undefined;
7734
7734
  tools?: {
7735
- tool: string;
7736
7735
  purpose: string;
7736
+ tool: string;
7737
7737
  suggestedQuery: string;
7738
7738
  }[] | undefined;
7739
7739
  metrics?: {
@@ -7743,10 +7743,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7743
7743
  currentValue?: string | undefined;
7744
7744
  }[] | undefined;
7745
7745
  personas?: {
7746
+ rationale: string;
7746
7747
  role: string;
7747
7748
  title: string;
7748
7749
  company: string;
7749
- rationale: string;
7750
7750
  }[] | undefined;
7751
7751
  experts?: {
7752
7752
  questions: string[];
@@ -7766,11 +7766,11 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7766
7766
  createdBy: zod.ZodString;
7767
7767
  createdAt: zod.ZodNumber;
7768
7768
  }, "strip", zod.ZodTypeAny, {
7769
- id: string;
7769
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
7770
7770
  createdAt: number;
7771
+ id: string;
7771
7772
  title: string;
7772
7773
  content: string;
7773
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
7774
7774
  createdBy: string;
7775
7775
  metadata?: {
7776
7776
  items?: {
@@ -7806,14 +7806,14 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7806
7806
  dependsOnStepIds?: string[] | undefined;
7807
7807
  runCondition?: string | undefined;
7808
7808
  continueOnFailure?: boolean | undefined;
7809
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
7809
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
7810
7810
  stepRunCount?: number | undefined;
7811
7811
  stepLastRunAt?: number | undefined;
7812
7812
  stepOutputSummary?: string | undefined;
7813
7813
  stepOutputData?: string | undefined;
7814
7814
  stepFailureReason?: string | undefined;
7815
7815
  researchResult?: string | undefined;
7816
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
7816
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
7817
7817
  researchCompletedAt?: number | undefined;
7818
7818
  researchCitations?: (string | {
7819
7819
  url: string;
@@ -7829,8 +7829,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7829
7829
  capturedAt?: number | undefined;
7830
7830
  capturedImpact?: number | undefined;
7831
7831
  tools?: {
7832
- tool: string;
7833
7832
  purpose: string;
7833
+ tool: string;
7834
7834
  suggestedQuery: string;
7835
7835
  }[] | undefined;
7836
7836
  metrics?: {
@@ -7840,10 +7840,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7840
7840
  currentValue?: string | undefined;
7841
7841
  }[] | undefined;
7842
7842
  personas?: {
7843
+ rationale: string;
7843
7844
  role: string;
7844
7845
  title: string;
7845
7846
  company: string;
7846
- rationale: string;
7847
7847
  }[] | undefined;
7848
7848
  experts?: {
7849
7849
  questions: string[];
@@ -7861,11 +7861,11 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7861
7861
  capturedInsightId?: (string & zod.BRAND<"Id<epistemicNodes>">) | undefined;
7862
7862
  capturedAt?: number | undefined;
7863
7863
  }, {
7864
- id: string;
7864
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
7865
7865
  createdAt: number;
7866
+ id: string;
7866
7867
  title: string;
7867
7868
  content: string;
7868
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
7869
7869
  createdBy: string;
7870
7870
  metadata?: {
7871
7871
  items?: {
@@ -7901,14 +7901,14 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7901
7901
  dependsOnStepIds?: string[] | undefined;
7902
7902
  runCondition?: string | undefined;
7903
7903
  continueOnFailure?: boolean | undefined;
7904
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
7904
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
7905
7905
  stepRunCount?: number | undefined;
7906
7906
  stepLastRunAt?: number | undefined;
7907
7907
  stepOutputSummary?: string | undefined;
7908
7908
  stepOutputData?: string | undefined;
7909
7909
  stepFailureReason?: string | undefined;
7910
7910
  researchResult?: string | undefined;
7911
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
7911
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
7912
7912
  researchCompletedAt?: number | undefined;
7913
7913
  researchCitations?: (string | {
7914
7914
  url: string;
@@ -7924,8 +7924,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7924
7924
  capturedAt?: number | undefined;
7925
7925
  capturedImpact?: number | undefined;
7926
7926
  tools?: {
7927
- tool: string;
7928
7927
  purpose: string;
7928
+ tool: string;
7929
7929
  suggestedQuery: string;
7930
7930
  }[] | undefined;
7931
7931
  metrics?: {
@@ -7935,10 +7935,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
7935
7935
  currentValue?: string | undefined;
7936
7936
  }[] | undefined;
7937
7937
  personas?: {
7938
+ rationale: string;
7938
7939
  role: string;
7939
7940
  title: string;
7940
7941
  company: string;
7941
- rationale: string;
7942
7942
  }[] | undefined;
7943
7943
  experts?: {
7944
7944
  questions: string[];
@@ -8089,14 +8089,14 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8089
8089
  answerConfidence: zod.ZodOptional<zod.ZodEnum<["high", "medium", "low"]>>;
8090
8090
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
8091
8091
  }, "strip", zod.ZodTypeAny, {
8092
- status: "forked" | "answered" | "open";
8093
8092
  question: string;
8093
+ status: "forked" | "answered" | "open";
8094
8094
  answer?: string | undefined;
8095
8095
  linkedQuestionId?: string | undefined;
8096
8096
  answerConfidence?: "low" | "medium" | "high" | undefined;
8097
8097
  }, {
8098
- status: "forked" | "answered" | "open";
8099
8098
  question: string;
8099
+ status: "forked" | "answered" | "open";
8100
8100
  answer?: string | undefined;
8101
8101
  linkedQuestionId?: string | undefined;
8102
8102
  answerConfidence?: "low" | "medium" | "high" | undefined;
@@ -8309,15 +8309,15 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8309
8309
  edgeType: string;
8310
8310
  targetId: string;
8311
8311
  sourceId: string;
8312
- createdAt?: number | undefined;
8313
8312
  weight?: number | undefined;
8313
+ createdAt?: number | undefined;
8314
8314
  edgeId?: string | undefined;
8315
8315
  }, {
8316
8316
  edgeType: string;
8317
8317
  targetId: string;
8318
8318
  sourceId: string;
8319
- createdAt?: number | undefined;
8320
8319
  weight?: number | undefined;
8320
+ createdAt?: number | undefined;
8321
8321
  edgeId?: string | undefined;
8322
8322
  }>, "many">;
8323
8323
  relatedBeliefs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -8348,9 +8348,9 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8348
8348
  evidenceCount: zod.ZodNumber;
8349
8349
  }, "strip", zod.ZodTypeAny, {
8350
8350
  status: string;
8351
+ evidenceCount: number;
8351
8352
  id: string;
8352
8353
  text: string;
8353
- evidenceCount: number;
8354
8354
  answer?: string | undefined;
8355
8355
  priority?: string | undefined;
8356
8356
  answerStatus?: string | undefined;
@@ -8358,9 +8358,9 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8358
8358
  answeredAt?: number | undefined;
8359
8359
  }, {
8360
8360
  status: string;
8361
+ evidenceCount: number;
8361
8362
  id: string;
8362
8363
  text: string;
8363
- evidenceCount: number;
8364
8364
  answer?: string | undefined;
8365
8365
  priority?: string | undefined;
8366
8366
  answerStatus?: string | undefined;
@@ -8378,16 +8378,16 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8378
8378
  id: string;
8379
8379
  text: string;
8380
8380
  verified: boolean;
8381
+ createdAt?: number | undefined;
8381
8382
  sourceType?: string | undefined;
8382
8383
  verificationStatus?: string | undefined;
8383
- createdAt?: number | undefined;
8384
8384
  }, {
8385
8385
  id: string;
8386
8386
  text: string;
8387
8387
  verified: boolean;
8388
+ createdAt?: number | undefined;
8388
8389
  sourceType?: string | undefined;
8389
8390
  verificationStatus?: string | undefined;
8390
- createdAt?: number | undefined;
8391
8391
  }>, "many">;
8392
8392
  tasksCompleted: zod.ZodOptional<zod.ZodNumber>;
8393
8393
  totalTasks: zod.ZodOptional<zod.ZodNumber>;
@@ -8445,11 +8445,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8445
8445
  id: string;
8446
8446
  text: string;
8447
8447
  verified: boolean;
8448
+ createdAt?: number | undefined;
8448
8449
  sourceType?: string | undefined;
8449
8450
  verificationStatus?: string | undefined;
8450
- createdAt?: number | undefined;
8451
8451
  }[];
8452
- worktreeId: string & zod.BRAND<"Id<worktrees>">;
8453
8452
  outcome: {
8454
8453
  summary: string;
8455
8454
  verdict: string;
@@ -8457,11 +8456,12 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8457
8456
  endingConfidence: number;
8458
8457
  confidenceChange: number;
8459
8458
  };
8459
+ worktreeId: string & zod.BRAND<"Id<worktrees>">;
8460
8460
  questions: {
8461
8461
  status: string;
8462
+ evidenceCount: number;
8462
8463
  id: string;
8463
8464
  text: string;
8464
- evidenceCount: number;
8465
8465
  answer?: string | undefined;
8466
8466
  priority?: string | undefined;
8467
8467
  answerStatus?: string | undefined;
@@ -8474,8 +8474,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8474
8474
  edgeType: string;
8475
8475
  targetId: string;
8476
8476
  sourceId: string;
8477
- createdAt?: number | undefined;
8478
8477
  weight?: number | undefined;
8478
+ createdAt?: number | undefined;
8479
8479
  edgeId?: string | undefined;
8480
8480
  }[];
8481
8481
  topicId?: string | undefined;
@@ -8511,11 +8511,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8511
8511
  id: string;
8512
8512
  text: string;
8513
8513
  verified: boolean;
8514
+ createdAt?: number | undefined;
8514
8515
  sourceType?: string | undefined;
8515
8516
  verificationStatus?: string | undefined;
8516
- createdAt?: number | undefined;
8517
8517
  }[];
8518
- worktreeId: string;
8519
8518
  outcome: {
8520
8519
  summary: string;
8521
8520
  verdict: string;
@@ -8523,11 +8522,12 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8523
8522
  endingConfidence: number;
8524
8523
  confidenceChange: number;
8525
8524
  };
8525
+ worktreeId: string;
8526
8526
  questions: {
8527
8527
  status: string;
8528
+ evidenceCount: number;
8528
8529
  id: string;
8529
8530
  text: string;
8530
- evidenceCount: number;
8531
8531
  answer?: string | undefined;
8532
8532
  priority?: string | undefined;
8533
8533
  answerStatus?: string | undefined;
@@ -8540,8 +8540,8 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8540
8540
  edgeType: string;
8541
8541
  targetId: string;
8542
8542
  sourceId: string;
8543
- createdAt?: number | undefined;
8544
8543
  weight?: number | undefined;
8544
+ createdAt?: number | undefined;
8545
8545
  edgeId?: string | undefined;
8546
8546
  }[];
8547
8547
  topicId?: string | undefined;
@@ -8656,16 +8656,16 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
8656
8656
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
8657
8657
  linkedBeliefId: zod.ZodOptional<zod.ZodString>;
8658
8658
  }, "strip", zod.ZodTypeAny, {
8659
- id: string;
8660
8659
  createdAt: number;
8660
+ id: string;
8661
8661
  content: string;
8662
8662
  createdBy: string;
8663
8663
  linkedBeliefId?: string | undefined;
8664
8664
  linkedQuestionId?: string | undefined;
8665
8665
  linkedTaskId?: string | undefined;
8666
8666
  }, {
8667
- id: string;
8668
8667
  createdAt: number;
8668
+ id: string;
8669
8669
  content: string;
8670
8670
  createdBy: string;
8671
8671
  linkedBeliefId?: string | undefined;
@@ -9720,16 +9720,16 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
9720
9720
  }, "strip", zod.ZodTypeAny, {
9721
9721
  principalId: string;
9722
9722
  principalType: "agent" | "human" | "service";
9723
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
9724
9723
  reason?: string | undefined;
9725
9724
  sessionId?: string | undefined;
9725
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
9726
9726
  delegatedAt?: number | undefined;
9727
9727
  }, {
9728
9728
  principalId: string;
9729
9729
  principalType: "agent" | "human" | "service";
9730
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
9731
9730
  reason?: string | undefined;
9732
9731
  sessionId?: string | undefined;
9732
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
9733
9733
  delegatedAt?: number | undefined;
9734
9734
  }>, "many">>;
9735
9735
  sourceSessionId: zod.ZodOptional<zod.ZodString>;
@@ -9758,16 +9758,16 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
9758
9758
  gate: zod.ZodOptional<zod.ZodString>;
9759
9759
  instructions: zod.ZodString;
9760
9760
  }, "strip", zod.ZodTypeAny, {
9761
+ description: string;
9761
9762
  title: string;
9762
9763
  name: string;
9763
- description: string;
9764
9764
  requiredTools: string[];
9765
9765
  instructions: string;
9766
9766
  gate?: string | undefined;
9767
9767
  }, {
9768
+ description: string;
9768
9769
  title: string;
9769
9770
  name: string;
9770
- description: string;
9771
9771
  requiredTools: string[];
9772
9772
  instructions: string;
9773
9773
  gate?: string | undefined;
@@ -9921,10 +9921,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
9921
9921
  }, "strip", zod.ZodTypeAny, {
9922
9922
  toolName: string;
9923
9923
  toolVersion: string;
9924
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
9925
9924
  description?: string | undefined;
9925
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
9926
9926
  category?: "read" | "admin" | "write" | "system" | undefined;
9927
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
9927
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
9928
9928
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
9929
9929
  parameterSchema?: Record<string, any> | undefined;
9930
9930
  handlerRef?: string | undefined;
@@ -9938,10 +9938,10 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
9938
9938
  }, {
9939
9939
  toolName: string;
9940
9940
  toolVersion: string;
9941
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
9942
9941
  description?: string | undefined;
9942
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
9943
9943
  category?: "read" | "admin" | "write" | "system" | undefined;
9944
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
9944
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
9945
9945
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
9946
9946
  parameterSchema?: Record<string, any> | undefined;
9947
9947
  handlerRef?: string | undefined;
@@ -10099,17 +10099,17 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10099
10099
  }, "strip", zod.ZodTypeAny, {
10100
10100
  key: string;
10101
10101
  promptRef: string;
10102
+ required?: boolean | undefined;
10102
10103
  metadata?: any;
10103
10104
  role?: string | undefined;
10104
- required?: boolean | undefined;
10105
10105
  phase?: string | undefined;
10106
10106
  version?: string | undefined;
10107
10107
  }, {
10108
10108
  key: string;
10109
10109
  promptRef: string;
10110
+ required?: boolean | undefined;
10110
10111
  metadata?: any;
10111
10112
  role?: string | undefined;
10112
- required?: boolean | undefined;
10113
10113
  phase?: string | undefined;
10114
10114
  version?: string | undefined;
10115
10115
  }>, "many">;
@@ -10127,15 +10127,15 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10127
10127
  }, "strip", zod.ZodTypeAny, {
10128
10128
  key: string;
10129
10129
  title: string;
10130
- metadata?: any;
10131
10130
  description?: string | undefined;
10131
+ metadata?: any;
10132
10132
  promptTemplateKey?: string | undefined;
10133
10133
  taskTemplateKeys?: string[] | undefined;
10134
10134
  }, {
10135
10135
  key: string;
10136
10136
  title: string;
10137
- metadata?: any;
10138
10137
  description?: string | undefined;
10138
+ metadata?: any;
10139
10139
  promptTemplateKey?: string | undefined;
10140
10140
  taskTemplateKeys?: string[] | undefined;
10141
10141
  }>, "many">;
@@ -10146,26 +10146,26 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10146
10146
  steps: {
10147
10147
  key: string;
10148
10148
  title: string;
10149
- metadata?: any;
10150
10149
  description?: string | undefined;
10150
+ metadata?: any;
10151
10151
  promptTemplateKey?: string | undefined;
10152
10152
  taskTemplateKeys?: string[] | undefined;
10153
10153
  }[];
10154
- metadata?: any;
10155
10154
  description?: string | undefined;
10155
+ metadata?: any;
10156
10156
  }, {
10157
10157
  key: string;
10158
10158
  name: string;
10159
10159
  steps: {
10160
10160
  key: string;
10161
10161
  title: string;
10162
- metadata?: any;
10163
10162
  description?: string | undefined;
10163
+ metadata?: any;
10164
10164
  promptTemplateKey?: string | undefined;
10165
10165
  taskTemplateKeys?: string[] | undefined;
10166
10166
  }[];
10167
- metadata?: any;
10168
10167
  description?: string | undefined;
10168
+ metadata?: any;
10169
10169
  }>, "many">;
10170
10170
  taskTemplates: zod.ZodArray<zod.ZodObject<{
10171
10171
  key: zod.ZodString;
@@ -10177,16 +10177,16 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10177
10177
  }, "strip", zod.ZodTypeAny, {
10178
10178
  key: string;
10179
10179
  title: string;
10180
+ description?: string | undefined;
10180
10181
  metadata?: any;
10181
10182
  priority?: "low" | "medium" | "high" | "critical" | undefined;
10182
- description?: string | undefined;
10183
10183
  phase?: string | undefined;
10184
10184
  }, {
10185
10185
  key: string;
10186
10186
  title: string;
10187
+ description?: string | undefined;
10187
10188
  metadata?: any;
10188
10189
  priority?: "low" | "medium" | "high" | "critical" | undefined;
10189
- description?: string | undefined;
10190
10190
  phase?: string | undefined;
10191
10191
  }>, "many">;
10192
10192
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -10217,9 +10217,9 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10217
10217
  promptTemplates: {
10218
10218
  key: string;
10219
10219
  promptRef: string;
10220
+ required?: boolean | undefined;
10220
10221
  metadata?: any;
10221
10222
  role?: string | undefined;
10222
- required?: boolean | undefined;
10223
10223
  phase?: string | undefined;
10224
10224
  version?: string | undefined;
10225
10225
  }[];
@@ -10229,25 +10229,25 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10229
10229
  steps: {
10230
10230
  key: string;
10231
10231
  title: string;
10232
- metadata?: any;
10233
10232
  description?: string | undefined;
10233
+ metadata?: any;
10234
10234
  promptTemplateKey?: string | undefined;
10235
10235
  taskTemplateKeys?: string[] | undefined;
10236
10236
  }[];
10237
- metadata?: any;
10238
10237
  description?: string | undefined;
10238
+ metadata?: any;
10239
10239
  }[];
10240
10240
  taskTemplates: {
10241
10241
  key: string;
10242
10242
  title: string;
10243
+ description?: string | undefined;
10243
10244
  metadata?: any;
10244
10245
  priority?: "low" | "medium" | "high" | "critical" | undefined;
10245
- description?: string | undefined;
10246
10246
  phase?: string | undefined;
10247
10247
  }[];
10248
10248
  lensKey: string;
10249
- metadata?: any;
10250
10249
  description?: string | undefined;
10250
+ metadata?: any;
10251
10251
  filterCriteria?: any;
10252
10252
  questionTemplates?: {
10253
10253
  key: string;
@@ -10263,9 +10263,9 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10263
10263
  promptTemplates: {
10264
10264
  key: string;
10265
10265
  promptRef: string;
10266
+ required?: boolean | undefined;
10266
10267
  metadata?: any;
10267
10268
  role?: string | undefined;
10268
- required?: boolean | undefined;
10269
10269
  phase?: string | undefined;
10270
10270
  version?: string | undefined;
10271
10271
  }[];
@@ -10275,25 +10275,25 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10275
10275
  steps: {
10276
10276
  key: string;
10277
10277
  title: string;
10278
- metadata?: any;
10279
10278
  description?: string | undefined;
10279
+ metadata?: any;
10280
10280
  promptTemplateKey?: string | undefined;
10281
10281
  taskTemplateKeys?: string[] | undefined;
10282
10282
  }[];
10283
- metadata?: any;
10284
10283
  description?: string | undefined;
10284
+ metadata?: any;
10285
10285
  }[];
10286
10286
  taskTemplates: {
10287
10287
  key: string;
10288
10288
  title: string;
10289
+ description?: string | undefined;
10289
10290
  metadata?: any;
10290
10291
  priority?: "low" | "medium" | "high" | "critical" | undefined;
10291
- description?: string | undefined;
10292
10292
  phase?: string | undefined;
10293
10293
  }[];
10294
10294
  lensKey: string;
10295
- metadata?: any;
10296
10295
  description?: string | undefined;
10296
+ metadata?: any;
10297
10297
  filterCriteria?: any;
10298
10298
  questionTemplates?: {
10299
10299
  key: string;
@@ -10539,11 +10539,11 @@ declare const TABLE_CONTRACTS_BY_COMPONENT: {
10539
10539
  legacyPath: zod.ZodString;
10540
10540
  harnessPath: zod.ZodString;
10541
10541
  }, "strip", zod.ZodTypeAny, {
10542
- type: "tool" | "agent";
10542
+ type: "agent" | "tool";
10543
10543
  legacyPath: string;
10544
10544
  harnessPath: string;
10545
10545
  }, {
10546
- type: "tool" | "agent";
10546
+ type: "agent" | "tool";
10547
10547
  legacyPath: string;
10548
10548
  harnessPath: string;
10549
10549
  }>;
@@ -11247,13 +11247,13 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11247
11247
  priority: zod.ZodString;
11248
11248
  rationale: zod.ZodString;
11249
11249
  }, "strip", zod.ZodTypeAny, {
11250
+ rationale: string;
11250
11251
  action: string;
11251
11252
  priority: string;
11252
- rationale: string;
11253
11253
  }, {
11254
+ rationale: string;
11254
11255
  action: string;
11255
11256
  priority: string;
11256
- rationale: string;
11257
11257
  }>, "many">>;
11258
11258
  sourceWorktreeId: zod.ZodOptional<zod.ZodString>;
11259
11259
  sourceChatId: zod.ZodOptional<ConvexIdSchema<"chats">>;
@@ -11703,10 +11703,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11703
11703
  importance: zod.ZodOptional<zod.ZodNumber>;
11704
11704
  totalCount: zod.ZodOptional<zod.ZodNumber>;
11705
11705
  }, "strip", zod.ZodTypeAny, {
11706
+ description: string;
11707
+ severity: "critical" | "warning" | "info";
11706
11708
  id: string;
11707
11709
  title: string;
11708
- severity: "critical" | "warning" | "info";
11709
- description: string;
11710
11710
  nodeIds: string[];
11711
11711
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
11712
11712
  nodeLabels: string[];
@@ -11714,10 +11714,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11714
11714
  importance?: number | undefined;
11715
11715
  totalCount?: number | undefined;
11716
11716
  }, {
11717
+ description: string;
11718
+ severity: "critical" | "warning" | "info";
11717
11719
  id: string;
11718
11720
  title: string;
11719
- severity: "critical" | "warning" | "info";
11720
- description: string;
11721
11721
  nodeIds: string[];
11722
11722
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
11723
11723
  nodeLabels: string[];
@@ -11752,16 +11752,16 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11752
11752
  resolved_true: zod.ZodNumber;
11753
11753
  resolved_false: zod.ZodNumber;
11754
11754
  }, "strip", zod.ZodTypeAny, {
11755
- hypothesis: number;
11756
- active: number;
11757
11755
  superseded: number;
11756
+ active: number;
11757
+ hypothesis: number;
11758
11758
  assumption: number;
11759
11759
  resolved_true: number;
11760
11760
  resolved_false: number;
11761
11761
  }, {
11762
- hypothesis: number;
11763
- active: number;
11764
11762
  superseded: number;
11763
+ active: number;
11764
+ hypothesis: number;
11765
11765
  assumption: number;
11766
11766
  resolved_true: number;
11767
11767
  resolved_false: number;
@@ -11799,9 +11799,9 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11799
11799
  propagationRisks: number;
11800
11800
  temporalDecayCount: number;
11801
11801
  beliefStatus?: {
11802
- hypothesis: number;
11803
- active: number;
11804
11802
  superseded: number;
11803
+ active: number;
11804
+ hypothesis: number;
11805
11805
  assumption: number;
11806
11806
  resolved_true: number;
11807
11807
  resolved_false: number;
@@ -11831,9 +11831,9 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11831
11831
  propagationRisks: number;
11832
11832
  temporalDecayCount: number;
11833
11833
  beliefStatus?: {
11834
- hypothesis: number;
11835
- active: number;
11836
11834
  superseded: number;
11835
+ active: number;
11836
+ hypothesis: number;
11837
11837
  assumption: number;
11838
11838
  resolved_true: number;
11839
11839
  resolved_false: number;
@@ -11902,16 +11902,16 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11902
11902
  nodeIds: zod.ZodArray<zod.ZodString, "many">;
11903
11903
  nodeLabels: zod.ZodArray<zod.ZodString, "many">;
11904
11904
  }, "strip", zod.ZodTypeAny, {
11905
- title: string;
11906
- severity: string;
11907
11905
  description: string;
11906
+ severity: string;
11907
+ title: string;
11908
11908
  nodeIds: string[];
11909
11909
  category: string;
11910
11910
  nodeLabels: string[];
11911
11911
  }, {
11912
- title: string;
11913
- severity: string;
11914
11912
  description: string;
11913
+ severity: string;
11914
+ title: string;
11915
11915
  nodeIds: string[];
11916
11916
  category: string;
11917
11917
  nodeLabels: string[];
@@ -11954,17 +11954,17 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11954
11954
  }, "strip", zod.ZodTypeAny, {
11955
11955
  key: string;
11956
11956
  promptRef: string;
11957
+ required?: boolean | undefined;
11957
11958
  metadata?: any;
11958
11959
  role?: string | undefined;
11959
- required?: boolean | undefined;
11960
11960
  phase?: string | undefined;
11961
11961
  version?: string | undefined;
11962
11962
  }, {
11963
11963
  key: string;
11964
11964
  promptRef: string;
11965
+ required?: boolean | undefined;
11965
11966
  metadata?: any;
11966
11967
  role?: string | undefined;
11967
- required?: boolean | undefined;
11968
11968
  phase?: string | undefined;
11969
11969
  version?: string | undefined;
11970
11970
  }>, "many">;
@@ -11982,15 +11982,15 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
11982
11982
  }, "strip", zod.ZodTypeAny, {
11983
11983
  key: string;
11984
11984
  title: string;
11985
- metadata?: any;
11986
11985
  description?: string | undefined;
11986
+ metadata?: any;
11987
11987
  promptTemplateKey?: string | undefined;
11988
11988
  taskTemplateKeys?: string[] | undefined;
11989
11989
  }, {
11990
11990
  key: string;
11991
11991
  title: string;
11992
- metadata?: any;
11993
11992
  description?: string | undefined;
11993
+ metadata?: any;
11994
11994
  promptTemplateKey?: string | undefined;
11995
11995
  taskTemplateKeys?: string[] | undefined;
11996
11996
  }>, "many">;
@@ -12001,26 +12001,26 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12001
12001
  steps: {
12002
12002
  key: string;
12003
12003
  title: string;
12004
- metadata?: any;
12005
12004
  description?: string | undefined;
12005
+ metadata?: any;
12006
12006
  promptTemplateKey?: string | undefined;
12007
12007
  taskTemplateKeys?: string[] | undefined;
12008
12008
  }[];
12009
- metadata?: any;
12010
12009
  description?: string | undefined;
12010
+ metadata?: any;
12011
12011
  }, {
12012
12012
  key: string;
12013
12013
  name: string;
12014
12014
  steps: {
12015
12015
  key: string;
12016
12016
  title: string;
12017
- metadata?: any;
12018
12017
  description?: string | undefined;
12018
+ metadata?: any;
12019
12019
  promptTemplateKey?: string | undefined;
12020
12020
  taskTemplateKeys?: string[] | undefined;
12021
12021
  }[];
12022
- metadata?: any;
12023
12022
  description?: string | undefined;
12023
+ metadata?: any;
12024
12024
  }>, "many">;
12025
12025
  taskTemplates: zod.ZodArray<zod.ZodObject<{
12026
12026
  key: zod.ZodString;
@@ -12032,16 +12032,16 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12032
12032
  }, "strip", zod.ZodTypeAny, {
12033
12033
  key: string;
12034
12034
  title: string;
12035
+ description?: string | undefined;
12035
12036
  metadata?: any;
12036
12037
  priority?: "low" | "medium" | "high" | "critical" | undefined;
12037
- description?: string | undefined;
12038
12038
  phase?: string | undefined;
12039
12039
  }, {
12040
12040
  key: string;
12041
12041
  title: string;
12042
+ description?: string | undefined;
12042
12043
  metadata?: any;
12043
12044
  priority?: "low" | "medium" | "high" | "critical" | undefined;
12044
- description?: string | undefined;
12045
12045
  phase?: string | undefined;
12046
12046
  }>, "many">;
12047
12047
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -12222,8 +12222,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12222
12222
  phase: string;
12223
12223
  kind: string;
12224
12224
  stepId: string;
12225
- metadata?: Record<string, any> | undefined;
12226
12225
  summary?: string | undefined;
12226
+ metadata?: Record<string, any> | undefined;
12227
12227
  completedAt?: number | undefined;
12228
12228
  }, {
12229
12229
  status: "failed" | "completed" | "skipped";
@@ -12231,8 +12231,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12231
12231
  phase: string;
12232
12232
  kind: string;
12233
12233
  stepId: string;
12234
- metadata?: Record<string, any> | undefined;
12235
12234
  summary?: string | undefined;
12235
+ metadata?: Record<string, any> | undefined;
12236
12236
  completedAt?: number | undefined;
12237
12237
  }>, "many">;
12238
12238
  inputSnapshot: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -12272,12 +12272,12 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12272
12272
  summary: string;
12273
12273
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
12274
12274
  errorMessage?: string | undefined;
12275
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
12275
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
12276
12276
  }, {
12277
12277
  summary: string;
12278
12278
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
12279
12279
  errorMessage?: string | undefined;
12280
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
12280
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
12281
12281
  }>;
12282
12282
  toolCalls: zod.ZodArray<zod.ZodObject<{
12283
12283
  toolCallId: zod.ZodString;
@@ -12294,8 +12294,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12294
12294
  success: boolean;
12295
12295
  durationMs: number;
12296
12296
  toolCallId: string;
12297
- metadata?: Record<string, any> | undefined;
12298
12297
  policyDecisionId?: string | undefined;
12298
+ metadata?: Record<string, any> | undefined;
12299
12299
  gateClassification?: "core" | "shimmed" | undefined;
12300
12300
  requiredScopes?: string[] | undefined;
12301
12301
  graphWriteCount?: number | undefined;
@@ -12304,8 +12304,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12304
12304
  success: boolean;
12305
12305
  durationMs: number;
12306
12306
  toolCallId: string;
12307
- metadata?: Record<string, any> | undefined;
12308
12307
  policyDecisionId?: string | undefined;
12308
+ metadata?: Record<string, any> | undefined;
12309
12309
  gateClassification?: "core" | "shimmed" | undefined;
12310
12310
  requiredScopes?: string[] | undefined;
12311
12311
  graphWriteCount?: number | undefined;
@@ -12322,15 +12322,15 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12322
12322
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
12323
12323
  action: string;
12324
12324
  operationId: string;
12325
- metadata?: Record<string, any> | undefined;
12326
12325
  summary?: string | undefined;
12326
+ metadata?: Record<string, any> | undefined;
12327
12327
  targetId?: string | undefined;
12328
12328
  }, {
12329
12329
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
12330
12330
  action: string;
12331
12331
  operationId: string;
12332
- metadata?: Record<string, any> | undefined;
12333
12332
  summary?: string | undefined;
12333
+ metadata?: Record<string, any> | undefined;
12334
12334
  targetId?: string | undefined;
12335
12335
  }>, "many">;
12336
12336
  graphReadCount: zod.ZodNumber;
@@ -12345,15 +12345,15 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12345
12345
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
12346
12346
  action: string;
12347
12347
  operationId: string;
12348
- metadata?: Record<string, any> | undefined;
12349
12348
  summary?: string | undefined;
12349
+ metadata?: Record<string, any> | undefined;
12350
12350
  targetId?: string | undefined;
12351
12351
  }, {
12352
12352
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
12353
12353
  action: string;
12354
12354
  operationId: string;
12355
- metadata?: Record<string, any> | undefined;
12356
12355
  summary?: string | undefined;
12356
+ metadata?: Record<string, any> | undefined;
12357
12357
  targetId?: string | undefined;
12358
12358
  }>, "many">;
12359
12359
  graphWriteCount: zod.ZodNumber;
@@ -12494,14 +12494,14 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12494
12494
  stack: zod.ZodOptional<zod.ZodString>;
12495
12495
  }, "strip", zod.ZodTypeAny, {
12496
12496
  message: string;
12497
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
12498
- stack?: string | undefined;
12497
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
12499
12498
  code?: string | undefined;
12499
+ stack?: string | undefined;
12500
12500
  }, {
12501
12501
  message: string;
12502
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
12503
- stack?: string | undefined;
12502
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
12504
12503
  code?: string | undefined;
12504
+ stack?: string | undefined;
12505
12505
  }>>;
12506
12506
  costMetrics: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
12507
12507
  metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -12833,13 +12833,13 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12833
12833
  content: zod.ZodString;
12834
12834
  createdAt: zod.ZodNumber;
12835
12835
  }, "strip", zod.ZodTypeAny, {
12836
- id: string;
12837
12836
  createdAt: number;
12837
+ id: string;
12838
12838
  content: string;
12839
12839
  userId: string;
12840
12840
  }, {
12841
- id: string;
12842
12841
  createdAt: number;
12842
+ id: string;
12843
12843
  content: string;
12844
12844
  userId: string;
12845
12845
  }>, "many">>;
@@ -12949,12 +12949,12 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12949
12949
  purpose: zod.ZodString;
12950
12950
  suggestedQuery: zod.ZodString;
12951
12951
  }, "strip", zod.ZodTypeAny, {
12952
- tool: string;
12953
12952
  purpose: string;
12953
+ tool: string;
12954
12954
  suggestedQuery: string;
12955
12955
  }, {
12956
- tool: string;
12957
12956
  purpose: string;
12957
+ tool: string;
12958
12958
  suggestedQuery: string;
12959
12959
  }>, "many">>;
12960
12960
  metrics: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -12979,15 +12979,15 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
12979
12979
  company: zod.ZodString;
12980
12980
  rationale: zod.ZodString;
12981
12981
  }, "strip", zod.ZodTypeAny, {
12982
+ rationale: string;
12982
12983
  role: string;
12983
12984
  title: string;
12984
12985
  company: string;
12985
- rationale: string;
12986
12986
  }, {
12987
+ rationale: string;
12987
12988
  role: string;
12988
12989
  title: string;
12989
12990
  company: string;
12990
- rationale: string;
12991
12991
  }>, "many">>;
12992
12992
  experts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
12993
12993
  expertise: zod.ZodString;
@@ -13052,14 +13052,14 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13052
13052
  dependsOnStepIds?: string[] | undefined;
13053
13053
  runCondition?: string | undefined;
13054
13054
  continueOnFailure?: boolean | undefined;
13055
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
13055
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
13056
13056
  stepRunCount?: number | undefined;
13057
13057
  stepLastRunAt?: number | undefined;
13058
13058
  stepOutputSummary?: string | undefined;
13059
13059
  stepOutputData?: string | undefined;
13060
13060
  stepFailureReason?: string | undefined;
13061
13061
  researchResult?: string | undefined;
13062
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
13062
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
13063
13063
  researchCompletedAt?: number | undefined;
13064
13064
  researchCitations?: (string | {
13065
13065
  url: string;
@@ -13075,8 +13075,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13075
13075
  capturedAt?: number | undefined;
13076
13076
  capturedImpact?: number | undefined;
13077
13077
  tools?: {
13078
- tool: string;
13079
13078
  purpose: string;
13079
+ tool: string;
13080
13080
  suggestedQuery: string;
13081
13081
  }[] | undefined;
13082
13082
  metrics?: {
@@ -13086,10 +13086,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13086
13086
  currentValue?: string | undefined;
13087
13087
  }[] | undefined;
13088
13088
  personas?: {
13089
+ rationale: string;
13089
13090
  role: string;
13090
13091
  title: string;
13091
13092
  company: string;
13092
- rationale: string;
13093
13093
  }[] | undefined;
13094
13094
  experts?: {
13095
13095
  questions: string[];
@@ -13136,14 +13136,14 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13136
13136
  dependsOnStepIds?: string[] | undefined;
13137
13137
  runCondition?: string | undefined;
13138
13138
  continueOnFailure?: boolean | undefined;
13139
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
13139
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
13140
13140
  stepRunCount?: number | undefined;
13141
13141
  stepLastRunAt?: number | undefined;
13142
13142
  stepOutputSummary?: string | undefined;
13143
13143
  stepOutputData?: string | undefined;
13144
13144
  stepFailureReason?: string | undefined;
13145
13145
  researchResult?: string | undefined;
13146
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
13146
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
13147
13147
  researchCompletedAt?: number | undefined;
13148
13148
  researchCitations?: (string | {
13149
13149
  url: string;
@@ -13159,8 +13159,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13159
13159
  capturedAt?: number | undefined;
13160
13160
  capturedImpact?: number | undefined;
13161
13161
  tools?: {
13162
- tool: string;
13163
13162
  purpose: string;
13163
+ tool: string;
13164
13164
  suggestedQuery: string;
13165
13165
  }[] | undefined;
13166
13166
  metrics?: {
@@ -13170,10 +13170,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13170
13170
  currentValue?: string | undefined;
13171
13171
  }[] | undefined;
13172
13172
  personas?: {
13173
+ rationale: string;
13173
13174
  role: string;
13174
13175
  title: string;
13175
13176
  company: string;
13176
- rationale: string;
13177
13177
  }[] | undefined;
13178
13178
  experts?: {
13179
13179
  questions: string[];
@@ -13193,11 +13193,11 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13193
13193
  createdBy: zod.ZodString;
13194
13194
  createdAt: zod.ZodNumber;
13195
13195
  }, "strip", zod.ZodTypeAny, {
13196
- id: string;
13196
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
13197
13197
  createdAt: number;
13198
+ id: string;
13198
13199
  title: string;
13199
13200
  content: string;
13200
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
13201
13201
  createdBy: string;
13202
13202
  metadata?: {
13203
13203
  items?: {
@@ -13233,14 +13233,14 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13233
13233
  dependsOnStepIds?: string[] | undefined;
13234
13234
  runCondition?: string | undefined;
13235
13235
  continueOnFailure?: boolean | undefined;
13236
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
13236
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
13237
13237
  stepRunCount?: number | undefined;
13238
13238
  stepLastRunAt?: number | undefined;
13239
13239
  stepOutputSummary?: string | undefined;
13240
13240
  stepOutputData?: string | undefined;
13241
13241
  stepFailureReason?: string | undefined;
13242
13242
  researchResult?: string | undefined;
13243
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
13243
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
13244
13244
  researchCompletedAt?: number | undefined;
13245
13245
  researchCitations?: (string | {
13246
13246
  url: string;
@@ -13256,8 +13256,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13256
13256
  capturedAt?: number | undefined;
13257
13257
  capturedImpact?: number | undefined;
13258
13258
  tools?: {
13259
- tool: string;
13260
13259
  purpose: string;
13260
+ tool: string;
13261
13261
  suggestedQuery: string;
13262
13262
  }[] | undefined;
13263
13263
  metrics?: {
@@ -13267,10 +13267,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13267
13267
  currentValue?: string | undefined;
13268
13268
  }[] | undefined;
13269
13269
  personas?: {
13270
+ rationale: string;
13270
13271
  role: string;
13271
13272
  title: string;
13272
13273
  company: string;
13273
- rationale: string;
13274
13274
  }[] | undefined;
13275
13275
  experts?: {
13276
13276
  questions: string[];
@@ -13288,11 +13288,11 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13288
13288
  capturedInsightId?: (string & zod.BRAND<"Id<epistemicNodes>">) | undefined;
13289
13289
  capturedAt?: number | undefined;
13290
13290
  }, {
13291
- id: string;
13291
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
13292
13292
  createdAt: number;
13293
+ id: string;
13293
13294
  title: string;
13294
13295
  content: string;
13295
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
13296
13296
  createdBy: string;
13297
13297
  metadata?: {
13298
13298
  items?: {
@@ -13328,14 +13328,14 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13328
13328
  dependsOnStepIds?: string[] | undefined;
13329
13329
  runCondition?: string | undefined;
13330
13330
  continueOnFailure?: boolean | undefined;
13331
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
13331
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
13332
13332
  stepRunCount?: number | undefined;
13333
13333
  stepLastRunAt?: number | undefined;
13334
13334
  stepOutputSummary?: string | undefined;
13335
13335
  stepOutputData?: string | undefined;
13336
13336
  stepFailureReason?: string | undefined;
13337
13337
  researchResult?: string | undefined;
13338
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
13338
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
13339
13339
  researchCompletedAt?: number | undefined;
13340
13340
  researchCitations?: (string | {
13341
13341
  url: string;
@@ -13351,8 +13351,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13351
13351
  capturedAt?: number | undefined;
13352
13352
  capturedImpact?: number | undefined;
13353
13353
  tools?: {
13354
- tool: string;
13355
13354
  purpose: string;
13355
+ tool: string;
13356
13356
  suggestedQuery: string;
13357
13357
  }[] | undefined;
13358
13358
  metrics?: {
@@ -13362,10 +13362,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13362
13362
  currentValue?: string | undefined;
13363
13363
  }[] | undefined;
13364
13364
  personas?: {
13365
+ rationale: string;
13365
13366
  role: string;
13366
13367
  title: string;
13367
13368
  company: string;
13368
- rationale: string;
13369
13369
  }[] | undefined;
13370
13370
  experts?: {
13371
13371
  questions: string[];
@@ -13516,14 +13516,14 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13516
13516
  answerConfidence: zod.ZodOptional<zod.ZodEnum<["high", "medium", "low"]>>;
13517
13517
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
13518
13518
  }, "strip", zod.ZodTypeAny, {
13519
- status: "forked" | "answered" | "open";
13520
13519
  question: string;
13520
+ status: "forked" | "answered" | "open";
13521
13521
  answer?: string | undefined;
13522
13522
  linkedQuestionId?: string | undefined;
13523
13523
  answerConfidence?: "low" | "medium" | "high" | undefined;
13524
13524
  }, {
13525
- status: "forked" | "answered" | "open";
13526
13525
  question: string;
13526
+ status: "forked" | "answered" | "open";
13527
13527
  answer?: string | undefined;
13528
13528
  linkedQuestionId?: string | undefined;
13529
13529
  answerConfidence?: "low" | "medium" | "high" | undefined;
@@ -13736,15 +13736,15 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13736
13736
  edgeType: string;
13737
13737
  targetId: string;
13738
13738
  sourceId: string;
13739
- createdAt?: number | undefined;
13740
13739
  weight?: number | undefined;
13740
+ createdAt?: number | undefined;
13741
13741
  edgeId?: string | undefined;
13742
13742
  }, {
13743
13743
  edgeType: string;
13744
13744
  targetId: string;
13745
13745
  sourceId: string;
13746
- createdAt?: number | undefined;
13747
13746
  weight?: number | undefined;
13747
+ createdAt?: number | undefined;
13748
13748
  edgeId?: string | undefined;
13749
13749
  }>, "many">;
13750
13750
  relatedBeliefs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -13775,9 +13775,9 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13775
13775
  evidenceCount: zod.ZodNumber;
13776
13776
  }, "strip", zod.ZodTypeAny, {
13777
13777
  status: string;
13778
+ evidenceCount: number;
13778
13779
  id: string;
13779
13780
  text: string;
13780
- evidenceCount: number;
13781
13781
  answer?: string | undefined;
13782
13782
  priority?: string | undefined;
13783
13783
  answerStatus?: string | undefined;
@@ -13785,9 +13785,9 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13785
13785
  answeredAt?: number | undefined;
13786
13786
  }, {
13787
13787
  status: string;
13788
+ evidenceCount: number;
13788
13789
  id: string;
13789
13790
  text: string;
13790
- evidenceCount: number;
13791
13791
  answer?: string | undefined;
13792
13792
  priority?: string | undefined;
13793
13793
  answerStatus?: string | undefined;
@@ -13805,16 +13805,16 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13805
13805
  id: string;
13806
13806
  text: string;
13807
13807
  verified: boolean;
13808
+ createdAt?: number | undefined;
13808
13809
  sourceType?: string | undefined;
13809
13810
  verificationStatus?: string | undefined;
13810
- createdAt?: number | undefined;
13811
13811
  }, {
13812
13812
  id: string;
13813
13813
  text: string;
13814
13814
  verified: boolean;
13815
+ createdAt?: number | undefined;
13815
13816
  sourceType?: string | undefined;
13816
13817
  verificationStatus?: string | undefined;
13817
- createdAt?: number | undefined;
13818
13818
  }>, "many">;
13819
13819
  tasksCompleted: zod.ZodOptional<zod.ZodNumber>;
13820
13820
  totalTasks: zod.ZodOptional<zod.ZodNumber>;
@@ -13872,11 +13872,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13872
13872
  id: string;
13873
13873
  text: string;
13874
13874
  verified: boolean;
13875
+ createdAt?: number | undefined;
13875
13876
  sourceType?: string | undefined;
13876
13877
  verificationStatus?: string | undefined;
13877
- createdAt?: number | undefined;
13878
13878
  }[];
13879
- worktreeId: string & zod.BRAND<"Id<worktrees>">;
13880
13879
  outcome: {
13881
13880
  summary: string;
13882
13881
  verdict: string;
@@ -13884,11 +13883,12 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13884
13883
  endingConfidence: number;
13885
13884
  confidenceChange: number;
13886
13885
  };
13886
+ worktreeId: string & zod.BRAND<"Id<worktrees>">;
13887
13887
  questions: {
13888
13888
  status: string;
13889
+ evidenceCount: number;
13889
13890
  id: string;
13890
13891
  text: string;
13891
- evidenceCount: number;
13892
13892
  answer?: string | undefined;
13893
13893
  priority?: string | undefined;
13894
13894
  answerStatus?: string | undefined;
@@ -13901,8 +13901,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13901
13901
  edgeType: string;
13902
13902
  targetId: string;
13903
13903
  sourceId: string;
13904
- createdAt?: number | undefined;
13905
13904
  weight?: number | undefined;
13905
+ createdAt?: number | undefined;
13906
13906
  edgeId?: string | undefined;
13907
13907
  }[];
13908
13908
  topicId?: string | undefined;
@@ -13938,11 +13938,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13938
13938
  id: string;
13939
13939
  text: string;
13940
13940
  verified: boolean;
13941
+ createdAt?: number | undefined;
13941
13942
  sourceType?: string | undefined;
13942
13943
  verificationStatus?: string | undefined;
13943
- createdAt?: number | undefined;
13944
13944
  }[];
13945
- worktreeId: string;
13946
13945
  outcome: {
13947
13946
  summary: string;
13948
13947
  verdict: string;
@@ -13950,11 +13949,12 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13950
13949
  endingConfidence: number;
13951
13950
  confidenceChange: number;
13952
13951
  };
13952
+ worktreeId: string;
13953
13953
  questions: {
13954
13954
  status: string;
13955
+ evidenceCount: number;
13955
13956
  id: string;
13956
13957
  text: string;
13957
- evidenceCount: number;
13958
13958
  answer?: string | undefined;
13959
13959
  priority?: string | undefined;
13960
13960
  answerStatus?: string | undefined;
@@ -13967,8 +13967,8 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
13967
13967
  edgeType: string;
13968
13968
  targetId: string;
13969
13969
  sourceId: string;
13970
- createdAt?: number | undefined;
13971
13970
  weight?: number | undefined;
13971
+ createdAt?: number | undefined;
13972
13972
  edgeId?: string | undefined;
13973
13973
  }[];
13974
13974
  topicId?: string | undefined;
@@ -14083,16 +14083,16 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
14083
14083
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
14084
14084
  linkedBeliefId: zod.ZodOptional<zod.ZodString>;
14085
14085
  }, "strip", zod.ZodTypeAny, {
14086
- id: string;
14087
14086
  createdAt: number;
14087
+ id: string;
14088
14088
  content: string;
14089
14089
  createdBy: string;
14090
14090
  linkedBeliefId?: string | undefined;
14091
14091
  linkedQuestionId?: string | undefined;
14092
14092
  linkedTaskId?: string | undefined;
14093
14093
  }, {
14094
- id: string;
14095
14094
  createdAt: number;
14095
+ id: string;
14096
14096
  content: string;
14097
14097
  createdBy: string;
14098
14098
  linkedBeliefId?: string | undefined;
@@ -15145,16 +15145,16 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15145
15145
  }, "strip", zod.ZodTypeAny, {
15146
15146
  principalId: string;
15147
15147
  principalType: "agent" | "human" | "service";
15148
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
15149
15148
  reason?: string | undefined;
15150
15149
  sessionId?: string | undefined;
15150
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
15151
15151
  delegatedAt?: number | undefined;
15152
15152
  }, {
15153
15153
  principalId: string;
15154
15154
  principalType: "agent" | "human" | "service";
15155
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
15156
15155
  reason?: string | undefined;
15157
15156
  sessionId?: string | undefined;
15157
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
15158
15158
  delegatedAt?: number | undefined;
15159
15159
  }>, "many">>;
15160
15160
  sourceSessionId: zod.ZodOptional<zod.ZodString>;
@@ -15183,16 +15183,16 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15183
15183
  gate: zod.ZodOptional<zod.ZodString>;
15184
15184
  instructions: zod.ZodString;
15185
15185
  }, "strip", zod.ZodTypeAny, {
15186
+ description: string;
15186
15187
  title: string;
15187
15188
  name: string;
15188
- description: string;
15189
15189
  requiredTools: string[];
15190
15190
  instructions: string;
15191
15191
  gate?: string | undefined;
15192
15192
  }, {
15193
+ description: string;
15193
15194
  title: string;
15194
15195
  name: string;
15195
- description: string;
15196
15196
  requiredTools: string[];
15197
15197
  instructions: string;
15198
15198
  gate?: string | undefined;
@@ -15346,10 +15346,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15346
15346
  }, "strip", zod.ZodTypeAny, {
15347
15347
  toolName: string;
15348
15348
  toolVersion: string;
15349
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
15350
15349
  description?: string | undefined;
15350
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
15351
15351
  category?: "read" | "admin" | "write" | "system" | undefined;
15352
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
15352
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
15353
15353
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
15354
15354
  parameterSchema?: Record<string, any> | undefined;
15355
15355
  handlerRef?: string | undefined;
@@ -15363,10 +15363,10 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15363
15363
  }, {
15364
15364
  toolName: string;
15365
15365
  toolVersion: string;
15366
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
15367
15366
  description?: string | undefined;
15367
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
15368
15368
  category?: "read" | "admin" | "write" | "system" | undefined;
15369
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
15369
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
15370
15370
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
15371
15371
  parameterSchema?: Record<string, any> | undefined;
15372
15372
  handlerRef?: string | undefined;
@@ -15524,17 +15524,17 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15524
15524
  }, "strip", zod.ZodTypeAny, {
15525
15525
  key: string;
15526
15526
  promptRef: string;
15527
+ required?: boolean | undefined;
15527
15528
  metadata?: any;
15528
15529
  role?: string | undefined;
15529
- required?: boolean | undefined;
15530
15530
  phase?: string | undefined;
15531
15531
  version?: string | undefined;
15532
15532
  }, {
15533
15533
  key: string;
15534
15534
  promptRef: string;
15535
+ required?: boolean | undefined;
15535
15536
  metadata?: any;
15536
15537
  role?: string | undefined;
15537
- required?: boolean | undefined;
15538
15538
  phase?: string | undefined;
15539
15539
  version?: string | undefined;
15540
15540
  }>, "many">;
@@ -15552,15 +15552,15 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15552
15552
  }, "strip", zod.ZodTypeAny, {
15553
15553
  key: string;
15554
15554
  title: string;
15555
- metadata?: any;
15556
15555
  description?: string | undefined;
15556
+ metadata?: any;
15557
15557
  promptTemplateKey?: string | undefined;
15558
15558
  taskTemplateKeys?: string[] | undefined;
15559
15559
  }, {
15560
15560
  key: string;
15561
15561
  title: string;
15562
- metadata?: any;
15563
15562
  description?: string | undefined;
15563
+ metadata?: any;
15564
15564
  promptTemplateKey?: string | undefined;
15565
15565
  taskTemplateKeys?: string[] | undefined;
15566
15566
  }>, "many">;
@@ -15571,26 +15571,26 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15571
15571
  steps: {
15572
15572
  key: string;
15573
15573
  title: string;
15574
- metadata?: any;
15575
15574
  description?: string | undefined;
15575
+ metadata?: any;
15576
15576
  promptTemplateKey?: string | undefined;
15577
15577
  taskTemplateKeys?: string[] | undefined;
15578
15578
  }[];
15579
- metadata?: any;
15580
15579
  description?: string | undefined;
15580
+ metadata?: any;
15581
15581
  }, {
15582
15582
  key: string;
15583
15583
  name: string;
15584
15584
  steps: {
15585
15585
  key: string;
15586
15586
  title: string;
15587
- metadata?: any;
15588
15587
  description?: string | undefined;
15588
+ metadata?: any;
15589
15589
  promptTemplateKey?: string | undefined;
15590
15590
  taskTemplateKeys?: string[] | undefined;
15591
15591
  }[];
15592
- metadata?: any;
15593
15592
  description?: string | undefined;
15593
+ metadata?: any;
15594
15594
  }>, "many">;
15595
15595
  taskTemplates: zod.ZodArray<zod.ZodObject<{
15596
15596
  key: zod.ZodString;
@@ -15602,16 +15602,16 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15602
15602
  }, "strip", zod.ZodTypeAny, {
15603
15603
  key: string;
15604
15604
  title: string;
15605
+ description?: string | undefined;
15605
15606
  metadata?: any;
15606
15607
  priority?: "low" | "medium" | "high" | "critical" | undefined;
15607
- description?: string | undefined;
15608
15608
  phase?: string | undefined;
15609
15609
  }, {
15610
15610
  key: string;
15611
15611
  title: string;
15612
+ description?: string | undefined;
15612
15613
  metadata?: any;
15613
15614
  priority?: "low" | "medium" | "high" | "critical" | undefined;
15614
- description?: string | undefined;
15615
15615
  phase?: string | undefined;
15616
15616
  }>, "many">;
15617
15617
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -15642,9 +15642,9 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15642
15642
  promptTemplates: {
15643
15643
  key: string;
15644
15644
  promptRef: string;
15645
+ required?: boolean | undefined;
15645
15646
  metadata?: any;
15646
15647
  role?: string | undefined;
15647
- required?: boolean | undefined;
15648
15648
  phase?: string | undefined;
15649
15649
  version?: string | undefined;
15650
15650
  }[];
@@ -15654,25 +15654,25 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15654
15654
  steps: {
15655
15655
  key: string;
15656
15656
  title: string;
15657
- metadata?: any;
15658
15657
  description?: string | undefined;
15658
+ metadata?: any;
15659
15659
  promptTemplateKey?: string | undefined;
15660
15660
  taskTemplateKeys?: string[] | undefined;
15661
15661
  }[];
15662
- metadata?: any;
15663
15662
  description?: string | undefined;
15663
+ metadata?: any;
15664
15664
  }[];
15665
15665
  taskTemplates: {
15666
15666
  key: string;
15667
15667
  title: string;
15668
+ description?: string | undefined;
15668
15669
  metadata?: any;
15669
15670
  priority?: "low" | "medium" | "high" | "critical" | undefined;
15670
- description?: string | undefined;
15671
15671
  phase?: string | undefined;
15672
15672
  }[];
15673
15673
  lensKey: string;
15674
- metadata?: any;
15675
15674
  description?: string | undefined;
15675
+ metadata?: any;
15676
15676
  filterCriteria?: any;
15677
15677
  questionTemplates?: {
15678
15678
  key: string;
@@ -15688,9 +15688,9 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15688
15688
  promptTemplates: {
15689
15689
  key: string;
15690
15690
  promptRef: string;
15691
+ required?: boolean | undefined;
15691
15692
  metadata?: any;
15692
15693
  role?: string | undefined;
15693
- required?: boolean | undefined;
15694
15694
  phase?: string | undefined;
15695
15695
  version?: string | undefined;
15696
15696
  }[];
@@ -15700,25 +15700,25 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15700
15700
  steps: {
15701
15701
  key: string;
15702
15702
  title: string;
15703
- metadata?: any;
15704
15703
  description?: string | undefined;
15704
+ metadata?: any;
15705
15705
  promptTemplateKey?: string | undefined;
15706
15706
  taskTemplateKeys?: string[] | undefined;
15707
15707
  }[];
15708
- metadata?: any;
15709
15708
  description?: string | undefined;
15709
+ metadata?: any;
15710
15710
  }[];
15711
15711
  taskTemplates: {
15712
15712
  key: string;
15713
15713
  title: string;
15714
+ description?: string | undefined;
15714
15715
  metadata?: any;
15715
15716
  priority?: "low" | "medium" | "high" | "critical" | undefined;
15716
- description?: string | undefined;
15717
15717
  phase?: string | undefined;
15718
15718
  }[];
15719
15719
  lensKey: string;
15720
- metadata?: any;
15721
15720
  description?: string | undefined;
15721
+ metadata?: any;
15722
15722
  filterCriteria?: any;
15723
15723
  questionTemplates?: {
15724
15724
  key: string;
@@ -15964,11 +15964,11 @@ declare const ALL_TABLE_CONTRACTS: readonly [TableContract<{
15964
15964
  legacyPath: zod.ZodString;
15965
15965
  harnessPath: zod.ZodString;
15966
15966
  }, "strip", zod.ZodTypeAny, {
15967
- type: "tool" | "agent";
15967
+ type: "agent" | "tool";
15968
15968
  legacyPath: string;
15969
15969
  harnessPath: string;
15970
15970
  }, {
15971
- type: "tool" | "agent";
15971
+ type: "agent" | "tool";
15972
15972
  legacyPath: string;
15973
15973
  harnessPath: string;
15974
15974
  }>;
@@ -17393,13 +17393,13 @@ declare function listTableContractsByName(name: string): (TableContract<{
17393
17393
  priority: zod.ZodString;
17394
17394
  rationale: zod.ZodString;
17395
17395
  }, "strip", zod.ZodTypeAny, {
17396
+ rationale: string;
17396
17397
  action: string;
17397
17398
  priority: string;
17398
- rationale: string;
17399
17399
  }, {
17400
+ rationale: string;
17400
17401
  action: string;
17401
17402
  priority: string;
17402
- rationale: string;
17403
17403
  }>, "many">>;
17404
17404
  sourceWorktreeId: zod.ZodOptional<zod.ZodString>;
17405
17405
  sourceChatId: zod.ZodOptional<ConvexIdSchema<"chats">>;
@@ -17864,10 +17864,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
17864
17864
  importance: zod.ZodOptional<zod.ZodNumber>;
17865
17865
  totalCount: zod.ZodOptional<zod.ZodNumber>;
17866
17866
  }, "strip", zod.ZodTypeAny, {
17867
+ description: string;
17868
+ severity: "critical" | "warning" | "info";
17867
17869
  id: string;
17868
17870
  title: string;
17869
- severity: "critical" | "warning" | "info";
17870
- description: string;
17871
17871
  nodeIds: string[];
17872
17872
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
17873
17873
  nodeLabels: string[];
@@ -17875,10 +17875,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
17875
17875
  importance?: number | undefined;
17876
17876
  totalCount?: number | undefined;
17877
17877
  }, {
17878
+ description: string;
17879
+ severity: "critical" | "warning" | "info";
17878
17880
  id: string;
17879
17881
  title: string;
17880
- severity: "critical" | "warning" | "info";
17881
- description: string;
17882
17882
  nodeIds: string[];
17883
17883
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
17884
17884
  nodeLabels: string[];
@@ -17913,16 +17913,16 @@ declare function listTableContractsByName(name: string): (TableContract<{
17913
17913
  resolved_true: zod.ZodNumber;
17914
17914
  resolved_false: zod.ZodNumber;
17915
17915
  }, "strip", zod.ZodTypeAny, {
17916
- hypothesis: number;
17917
- active: number;
17918
17916
  superseded: number;
17917
+ active: number;
17918
+ hypothesis: number;
17919
17919
  assumption: number;
17920
17920
  resolved_true: number;
17921
17921
  resolved_false: number;
17922
17922
  }, {
17923
- hypothesis: number;
17924
- active: number;
17925
17923
  superseded: number;
17924
+ active: number;
17925
+ hypothesis: number;
17926
17926
  assumption: number;
17927
17927
  resolved_true: number;
17928
17928
  resolved_false: number;
@@ -17960,9 +17960,9 @@ declare function listTableContractsByName(name: string): (TableContract<{
17960
17960
  propagationRisks: number;
17961
17961
  temporalDecayCount: number;
17962
17962
  beliefStatus?: {
17963
- hypothesis: number;
17964
- active: number;
17965
17963
  superseded: number;
17964
+ active: number;
17965
+ hypothesis: number;
17966
17966
  assumption: number;
17967
17967
  resolved_true: number;
17968
17968
  resolved_false: number;
@@ -17992,9 +17992,9 @@ declare function listTableContractsByName(name: string): (TableContract<{
17992
17992
  propagationRisks: number;
17993
17993
  temporalDecayCount: number;
17994
17994
  beliefStatus?: {
17995
- hypothesis: number;
17996
- active: number;
17997
17995
  superseded: number;
17996
+ active: number;
17997
+ hypothesis: number;
17998
17998
  assumption: number;
17999
17999
  resolved_true: number;
18000
18000
  resolved_false: number;
@@ -18063,16 +18063,16 @@ declare function listTableContractsByName(name: string): (TableContract<{
18063
18063
  nodeIds: zod.ZodArray<zod.ZodString, "many">;
18064
18064
  nodeLabels: zod.ZodArray<zod.ZodString, "many">;
18065
18065
  }, "strip", zod.ZodTypeAny, {
18066
- title: string;
18067
- severity: string;
18068
18066
  description: string;
18067
+ severity: string;
18068
+ title: string;
18069
18069
  nodeIds: string[];
18070
18070
  category: string;
18071
18071
  nodeLabels: string[];
18072
18072
  }, {
18073
- title: string;
18074
- severity: string;
18075
18073
  description: string;
18074
+ severity: string;
18075
+ title: string;
18076
18076
  nodeIds: string[];
18077
18077
  category: string;
18078
18078
  nodeLabels: string[];
@@ -18115,17 +18115,17 @@ declare function listTableContractsByName(name: string): (TableContract<{
18115
18115
  }, "strip", zod.ZodTypeAny, {
18116
18116
  key: string;
18117
18117
  promptRef: string;
18118
+ required?: boolean | undefined;
18118
18119
  metadata?: any;
18119
18120
  role?: string | undefined;
18120
- required?: boolean | undefined;
18121
18121
  phase?: string | undefined;
18122
18122
  version?: string | undefined;
18123
18123
  }, {
18124
18124
  key: string;
18125
18125
  promptRef: string;
18126
+ required?: boolean | undefined;
18126
18127
  metadata?: any;
18127
18128
  role?: string | undefined;
18128
- required?: boolean | undefined;
18129
18129
  phase?: string | undefined;
18130
18130
  version?: string | undefined;
18131
18131
  }>, "many">;
@@ -18143,15 +18143,15 @@ declare function listTableContractsByName(name: string): (TableContract<{
18143
18143
  }, "strip", zod.ZodTypeAny, {
18144
18144
  key: string;
18145
18145
  title: string;
18146
- metadata?: any;
18147
18146
  description?: string | undefined;
18147
+ metadata?: any;
18148
18148
  promptTemplateKey?: string | undefined;
18149
18149
  taskTemplateKeys?: string[] | undefined;
18150
18150
  }, {
18151
18151
  key: string;
18152
18152
  title: string;
18153
- metadata?: any;
18154
18153
  description?: string | undefined;
18154
+ metadata?: any;
18155
18155
  promptTemplateKey?: string | undefined;
18156
18156
  taskTemplateKeys?: string[] | undefined;
18157
18157
  }>, "many">;
@@ -18162,26 +18162,26 @@ declare function listTableContractsByName(name: string): (TableContract<{
18162
18162
  steps: {
18163
18163
  key: string;
18164
18164
  title: string;
18165
- metadata?: any;
18166
18165
  description?: string | undefined;
18166
+ metadata?: any;
18167
18167
  promptTemplateKey?: string | undefined;
18168
18168
  taskTemplateKeys?: string[] | undefined;
18169
18169
  }[];
18170
- metadata?: any;
18171
18170
  description?: string | undefined;
18171
+ metadata?: any;
18172
18172
  }, {
18173
18173
  key: string;
18174
18174
  name: string;
18175
18175
  steps: {
18176
18176
  key: string;
18177
18177
  title: string;
18178
- metadata?: any;
18179
18178
  description?: string | undefined;
18179
+ metadata?: any;
18180
18180
  promptTemplateKey?: string | undefined;
18181
18181
  taskTemplateKeys?: string[] | undefined;
18182
18182
  }[];
18183
- metadata?: any;
18184
18183
  description?: string | undefined;
18184
+ metadata?: any;
18185
18185
  }>, "many">;
18186
18186
  taskTemplates: zod.ZodArray<zod.ZodObject<{
18187
18187
  key: zod.ZodString;
@@ -18193,16 +18193,16 @@ declare function listTableContractsByName(name: string): (TableContract<{
18193
18193
  }, "strip", zod.ZodTypeAny, {
18194
18194
  key: string;
18195
18195
  title: string;
18196
+ description?: string | undefined;
18196
18197
  metadata?: any;
18197
18198
  priority?: "low" | "medium" | "high" | "critical" | undefined;
18198
- description?: string | undefined;
18199
18199
  phase?: string | undefined;
18200
18200
  }, {
18201
18201
  key: string;
18202
18202
  title: string;
18203
+ description?: string | undefined;
18203
18204
  metadata?: any;
18204
18205
  priority?: "low" | "medium" | "high" | "critical" | undefined;
18205
- description?: string | undefined;
18206
18206
  phase?: string | undefined;
18207
18207
  }>, "many">;
18208
18208
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -18383,8 +18383,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
18383
18383
  phase: string;
18384
18384
  kind: string;
18385
18385
  stepId: string;
18386
- metadata?: Record<string, any> | undefined;
18387
18386
  summary?: string | undefined;
18387
+ metadata?: Record<string, any> | undefined;
18388
18388
  completedAt?: number | undefined;
18389
18389
  }, {
18390
18390
  status: "failed" | "completed" | "skipped";
@@ -18392,8 +18392,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
18392
18392
  phase: string;
18393
18393
  kind: string;
18394
18394
  stepId: string;
18395
- metadata?: Record<string, any> | undefined;
18396
18395
  summary?: string | undefined;
18396
+ metadata?: Record<string, any> | undefined;
18397
18397
  completedAt?: number | undefined;
18398
18398
  }>, "many">;
18399
18399
  inputSnapshot: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -18433,12 +18433,12 @@ declare function listTableContractsByName(name: string): (TableContract<{
18433
18433
  summary: string;
18434
18434
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
18435
18435
  errorMessage?: string | undefined;
18436
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
18436
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
18437
18437
  }, {
18438
18438
  summary: string;
18439
18439
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
18440
18440
  errorMessage?: string | undefined;
18441
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
18441
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
18442
18442
  }>;
18443
18443
  toolCalls: zod.ZodArray<zod.ZodObject<{
18444
18444
  toolCallId: zod.ZodString;
@@ -18455,8 +18455,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
18455
18455
  success: boolean;
18456
18456
  durationMs: number;
18457
18457
  toolCallId: string;
18458
- metadata?: Record<string, any> | undefined;
18459
18458
  policyDecisionId?: string | undefined;
18459
+ metadata?: Record<string, any> | undefined;
18460
18460
  gateClassification?: "core" | "shimmed" | undefined;
18461
18461
  requiredScopes?: string[] | undefined;
18462
18462
  graphWriteCount?: number | undefined;
@@ -18465,8 +18465,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
18465
18465
  success: boolean;
18466
18466
  durationMs: number;
18467
18467
  toolCallId: string;
18468
- metadata?: Record<string, any> | undefined;
18469
18468
  policyDecisionId?: string | undefined;
18469
+ metadata?: Record<string, any> | undefined;
18470
18470
  gateClassification?: "core" | "shimmed" | undefined;
18471
18471
  requiredScopes?: string[] | undefined;
18472
18472
  graphWriteCount?: number | undefined;
@@ -18483,15 +18483,15 @@ declare function listTableContractsByName(name: string): (TableContract<{
18483
18483
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
18484
18484
  action: string;
18485
18485
  operationId: string;
18486
- metadata?: Record<string, any> | undefined;
18487
18486
  summary?: string | undefined;
18487
+ metadata?: Record<string, any> | undefined;
18488
18488
  targetId?: string | undefined;
18489
18489
  }, {
18490
18490
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
18491
18491
  action: string;
18492
18492
  operationId: string;
18493
- metadata?: Record<string, any> | undefined;
18494
18493
  summary?: string | undefined;
18494
+ metadata?: Record<string, any> | undefined;
18495
18495
  targetId?: string | undefined;
18496
18496
  }>, "many">;
18497
18497
  graphReadCount: zod.ZodNumber;
@@ -18506,15 +18506,15 @@ declare function listTableContractsByName(name: string): (TableContract<{
18506
18506
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
18507
18507
  action: string;
18508
18508
  operationId: string;
18509
- metadata?: Record<string, any> | undefined;
18510
18509
  summary?: string | undefined;
18510
+ metadata?: Record<string, any> | undefined;
18511
18511
  targetId?: string | undefined;
18512
18512
  }, {
18513
18513
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
18514
18514
  action: string;
18515
18515
  operationId: string;
18516
- metadata?: Record<string, any> | undefined;
18517
18516
  summary?: string | undefined;
18517
+ metadata?: Record<string, any> | undefined;
18518
18518
  targetId?: string | undefined;
18519
18519
  }>, "many">;
18520
18520
  graphWriteCount: zod.ZodNumber;
@@ -18655,14 +18655,14 @@ declare function listTableContractsByName(name: string): (TableContract<{
18655
18655
  stack: zod.ZodOptional<zod.ZodString>;
18656
18656
  }, "strip", zod.ZodTypeAny, {
18657
18657
  message: string;
18658
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
18659
- stack?: string | undefined;
18658
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
18660
18659
  code?: string | undefined;
18660
+ stack?: string | undefined;
18661
18661
  }, {
18662
18662
  message: string;
18663
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
18664
- stack?: string | undefined;
18663
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
18665
18664
  code?: string | undefined;
18665
+ stack?: string | undefined;
18666
18666
  }>>;
18667
18667
  costMetrics: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
18668
18668
  metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -18994,13 +18994,13 @@ declare function listTableContractsByName(name: string): (TableContract<{
18994
18994
  content: zod.ZodString;
18995
18995
  createdAt: zod.ZodNumber;
18996
18996
  }, "strip", zod.ZodTypeAny, {
18997
- id: string;
18998
18997
  createdAt: number;
18998
+ id: string;
18999
18999
  content: string;
19000
19000
  userId: string;
19001
19001
  }, {
19002
- id: string;
19003
19002
  createdAt: number;
19003
+ id: string;
19004
19004
  content: string;
19005
19005
  userId: string;
19006
19006
  }>, "many">>;
@@ -19110,12 +19110,12 @@ declare function listTableContractsByName(name: string): (TableContract<{
19110
19110
  purpose: zod.ZodString;
19111
19111
  suggestedQuery: zod.ZodString;
19112
19112
  }, "strip", zod.ZodTypeAny, {
19113
- tool: string;
19114
19113
  purpose: string;
19114
+ tool: string;
19115
19115
  suggestedQuery: string;
19116
19116
  }, {
19117
- tool: string;
19118
19117
  purpose: string;
19118
+ tool: string;
19119
19119
  suggestedQuery: string;
19120
19120
  }>, "many">>;
19121
19121
  metrics: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -19140,15 +19140,15 @@ declare function listTableContractsByName(name: string): (TableContract<{
19140
19140
  company: zod.ZodString;
19141
19141
  rationale: zod.ZodString;
19142
19142
  }, "strip", zod.ZodTypeAny, {
19143
+ rationale: string;
19143
19144
  role: string;
19144
19145
  title: string;
19145
19146
  company: string;
19146
- rationale: string;
19147
19147
  }, {
19148
+ rationale: string;
19148
19149
  role: string;
19149
19150
  title: string;
19150
19151
  company: string;
19151
- rationale: string;
19152
19152
  }>, "many">>;
19153
19153
  experts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
19154
19154
  expertise: zod.ZodString;
@@ -19213,14 +19213,14 @@ declare function listTableContractsByName(name: string): (TableContract<{
19213
19213
  dependsOnStepIds?: string[] | undefined;
19214
19214
  runCondition?: string | undefined;
19215
19215
  continueOnFailure?: boolean | undefined;
19216
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
19216
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
19217
19217
  stepRunCount?: number | undefined;
19218
19218
  stepLastRunAt?: number | undefined;
19219
19219
  stepOutputSummary?: string | undefined;
19220
19220
  stepOutputData?: string | undefined;
19221
19221
  stepFailureReason?: string | undefined;
19222
19222
  researchResult?: string | undefined;
19223
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
19223
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
19224
19224
  researchCompletedAt?: number | undefined;
19225
19225
  researchCitations?: (string | {
19226
19226
  url: string;
@@ -19236,8 +19236,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
19236
19236
  capturedAt?: number | undefined;
19237
19237
  capturedImpact?: number | undefined;
19238
19238
  tools?: {
19239
- tool: string;
19240
19239
  purpose: string;
19240
+ tool: string;
19241
19241
  suggestedQuery: string;
19242
19242
  }[] | undefined;
19243
19243
  metrics?: {
@@ -19247,10 +19247,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
19247
19247
  currentValue?: string | undefined;
19248
19248
  }[] | undefined;
19249
19249
  personas?: {
19250
+ rationale: string;
19250
19251
  role: string;
19251
19252
  title: string;
19252
19253
  company: string;
19253
- rationale: string;
19254
19254
  }[] | undefined;
19255
19255
  experts?: {
19256
19256
  questions: string[];
@@ -19297,14 +19297,14 @@ declare function listTableContractsByName(name: string): (TableContract<{
19297
19297
  dependsOnStepIds?: string[] | undefined;
19298
19298
  runCondition?: string | undefined;
19299
19299
  continueOnFailure?: boolean | undefined;
19300
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
19300
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
19301
19301
  stepRunCount?: number | undefined;
19302
19302
  stepLastRunAt?: number | undefined;
19303
19303
  stepOutputSummary?: string | undefined;
19304
19304
  stepOutputData?: string | undefined;
19305
19305
  stepFailureReason?: string | undefined;
19306
19306
  researchResult?: string | undefined;
19307
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
19307
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
19308
19308
  researchCompletedAt?: number | undefined;
19309
19309
  researchCitations?: (string | {
19310
19310
  url: string;
@@ -19320,8 +19320,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
19320
19320
  capturedAt?: number | undefined;
19321
19321
  capturedImpact?: number | undefined;
19322
19322
  tools?: {
19323
- tool: string;
19324
19323
  purpose: string;
19324
+ tool: string;
19325
19325
  suggestedQuery: string;
19326
19326
  }[] | undefined;
19327
19327
  metrics?: {
@@ -19331,10 +19331,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
19331
19331
  currentValue?: string | undefined;
19332
19332
  }[] | undefined;
19333
19333
  personas?: {
19334
+ rationale: string;
19334
19335
  role: string;
19335
19336
  title: string;
19336
19337
  company: string;
19337
- rationale: string;
19338
19338
  }[] | undefined;
19339
19339
  experts?: {
19340
19340
  questions: string[];
@@ -19354,11 +19354,11 @@ declare function listTableContractsByName(name: string): (TableContract<{
19354
19354
  createdBy: zod.ZodString;
19355
19355
  createdAt: zod.ZodNumber;
19356
19356
  }, "strip", zod.ZodTypeAny, {
19357
- id: string;
19357
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
19358
19358
  createdAt: number;
19359
+ id: string;
19359
19360
  title: string;
19360
19361
  content: string;
19361
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
19362
19362
  createdBy: string;
19363
19363
  metadata?: {
19364
19364
  items?: {
@@ -19394,14 +19394,14 @@ declare function listTableContractsByName(name: string): (TableContract<{
19394
19394
  dependsOnStepIds?: string[] | undefined;
19395
19395
  runCondition?: string | undefined;
19396
19396
  continueOnFailure?: boolean | undefined;
19397
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
19397
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
19398
19398
  stepRunCount?: number | undefined;
19399
19399
  stepLastRunAt?: number | undefined;
19400
19400
  stepOutputSummary?: string | undefined;
19401
19401
  stepOutputData?: string | undefined;
19402
19402
  stepFailureReason?: string | undefined;
19403
19403
  researchResult?: string | undefined;
19404
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
19404
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
19405
19405
  researchCompletedAt?: number | undefined;
19406
19406
  researchCitations?: (string | {
19407
19407
  url: string;
@@ -19417,8 +19417,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
19417
19417
  capturedAt?: number | undefined;
19418
19418
  capturedImpact?: number | undefined;
19419
19419
  tools?: {
19420
- tool: string;
19421
19420
  purpose: string;
19421
+ tool: string;
19422
19422
  suggestedQuery: string;
19423
19423
  }[] | undefined;
19424
19424
  metrics?: {
@@ -19428,10 +19428,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
19428
19428
  currentValue?: string | undefined;
19429
19429
  }[] | undefined;
19430
19430
  personas?: {
19431
+ rationale: string;
19431
19432
  role: string;
19432
19433
  title: string;
19433
19434
  company: string;
19434
- rationale: string;
19435
19435
  }[] | undefined;
19436
19436
  experts?: {
19437
19437
  questions: string[];
@@ -19449,11 +19449,11 @@ declare function listTableContractsByName(name: string): (TableContract<{
19449
19449
  capturedInsightId?: (string & zod.BRAND<"Id<epistemicNodes>">) | undefined;
19450
19450
  capturedAt?: number | undefined;
19451
19451
  }, {
19452
- id: string;
19452
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
19453
19453
  createdAt: number;
19454
+ id: string;
19454
19455
  title: string;
19455
19456
  content: string;
19456
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
19457
19457
  createdBy: string;
19458
19458
  metadata?: {
19459
19459
  items?: {
@@ -19489,14 +19489,14 @@ declare function listTableContractsByName(name: string): (TableContract<{
19489
19489
  dependsOnStepIds?: string[] | undefined;
19490
19490
  runCondition?: string | undefined;
19491
19491
  continueOnFailure?: boolean | undefined;
19492
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
19492
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
19493
19493
  stepRunCount?: number | undefined;
19494
19494
  stepLastRunAt?: number | undefined;
19495
19495
  stepOutputSummary?: string | undefined;
19496
19496
  stepOutputData?: string | undefined;
19497
19497
  stepFailureReason?: string | undefined;
19498
19498
  researchResult?: string | undefined;
19499
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
19499
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
19500
19500
  researchCompletedAt?: number | undefined;
19501
19501
  researchCitations?: (string | {
19502
19502
  url: string;
@@ -19512,8 +19512,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
19512
19512
  capturedAt?: number | undefined;
19513
19513
  capturedImpact?: number | undefined;
19514
19514
  tools?: {
19515
- tool: string;
19516
19515
  purpose: string;
19516
+ tool: string;
19517
19517
  suggestedQuery: string;
19518
19518
  }[] | undefined;
19519
19519
  metrics?: {
@@ -19523,10 +19523,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
19523
19523
  currentValue?: string | undefined;
19524
19524
  }[] | undefined;
19525
19525
  personas?: {
19526
+ rationale: string;
19526
19527
  role: string;
19527
19528
  title: string;
19528
19529
  company: string;
19529
- rationale: string;
19530
19530
  }[] | undefined;
19531
19531
  experts?: {
19532
19532
  questions: string[];
@@ -19677,14 +19677,14 @@ declare function listTableContractsByName(name: string): (TableContract<{
19677
19677
  answerConfidence: zod.ZodOptional<zod.ZodEnum<["high", "medium", "low"]>>;
19678
19678
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
19679
19679
  }, "strip", zod.ZodTypeAny, {
19680
- status: "forked" | "answered" | "open";
19681
19680
  question: string;
19681
+ status: "forked" | "answered" | "open";
19682
19682
  answer?: string | undefined;
19683
19683
  linkedQuestionId?: string | undefined;
19684
19684
  answerConfidence?: "low" | "medium" | "high" | undefined;
19685
19685
  }, {
19686
- status: "forked" | "answered" | "open";
19687
19686
  question: string;
19687
+ status: "forked" | "answered" | "open";
19688
19688
  answer?: string | undefined;
19689
19689
  linkedQuestionId?: string | undefined;
19690
19690
  answerConfidence?: "low" | "medium" | "high" | undefined;
@@ -19897,15 +19897,15 @@ declare function listTableContractsByName(name: string): (TableContract<{
19897
19897
  edgeType: string;
19898
19898
  targetId: string;
19899
19899
  sourceId: string;
19900
- createdAt?: number | undefined;
19901
19900
  weight?: number | undefined;
19901
+ createdAt?: number | undefined;
19902
19902
  edgeId?: string | undefined;
19903
19903
  }, {
19904
19904
  edgeType: string;
19905
19905
  targetId: string;
19906
19906
  sourceId: string;
19907
- createdAt?: number | undefined;
19908
19907
  weight?: number | undefined;
19908
+ createdAt?: number | undefined;
19909
19909
  edgeId?: string | undefined;
19910
19910
  }>, "many">;
19911
19911
  relatedBeliefs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -19936,9 +19936,9 @@ declare function listTableContractsByName(name: string): (TableContract<{
19936
19936
  evidenceCount: zod.ZodNumber;
19937
19937
  }, "strip", zod.ZodTypeAny, {
19938
19938
  status: string;
19939
+ evidenceCount: number;
19939
19940
  id: string;
19940
19941
  text: string;
19941
- evidenceCount: number;
19942
19942
  answer?: string | undefined;
19943
19943
  priority?: string | undefined;
19944
19944
  answerStatus?: string | undefined;
@@ -19946,9 +19946,9 @@ declare function listTableContractsByName(name: string): (TableContract<{
19946
19946
  answeredAt?: number | undefined;
19947
19947
  }, {
19948
19948
  status: string;
19949
+ evidenceCount: number;
19949
19950
  id: string;
19950
19951
  text: string;
19951
- evidenceCount: number;
19952
19952
  answer?: string | undefined;
19953
19953
  priority?: string | undefined;
19954
19954
  answerStatus?: string | undefined;
@@ -19966,16 +19966,16 @@ declare function listTableContractsByName(name: string): (TableContract<{
19966
19966
  id: string;
19967
19967
  text: string;
19968
19968
  verified: boolean;
19969
+ createdAt?: number | undefined;
19969
19970
  sourceType?: string | undefined;
19970
19971
  verificationStatus?: string | undefined;
19971
- createdAt?: number | undefined;
19972
19972
  }, {
19973
19973
  id: string;
19974
19974
  text: string;
19975
19975
  verified: boolean;
19976
+ createdAt?: number | undefined;
19976
19977
  sourceType?: string | undefined;
19977
19978
  verificationStatus?: string | undefined;
19978
- createdAt?: number | undefined;
19979
19979
  }>, "many">;
19980
19980
  tasksCompleted: zod.ZodOptional<zod.ZodNumber>;
19981
19981
  totalTasks: zod.ZodOptional<zod.ZodNumber>;
@@ -20033,11 +20033,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
20033
20033
  id: string;
20034
20034
  text: string;
20035
20035
  verified: boolean;
20036
+ createdAt?: number | undefined;
20036
20037
  sourceType?: string | undefined;
20037
20038
  verificationStatus?: string | undefined;
20038
- createdAt?: number | undefined;
20039
20039
  }[];
20040
- worktreeId: string & zod.BRAND<"Id<worktrees>">;
20041
20040
  outcome: {
20042
20041
  summary: string;
20043
20042
  verdict: string;
@@ -20045,11 +20044,12 @@ declare function listTableContractsByName(name: string): (TableContract<{
20045
20044
  endingConfidence: number;
20046
20045
  confidenceChange: number;
20047
20046
  };
20047
+ worktreeId: string & zod.BRAND<"Id<worktrees>">;
20048
20048
  questions: {
20049
20049
  status: string;
20050
+ evidenceCount: number;
20050
20051
  id: string;
20051
20052
  text: string;
20052
- evidenceCount: number;
20053
20053
  answer?: string | undefined;
20054
20054
  priority?: string | undefined;
20055
20055
  answerStatus?: string | undefined;
@@ -20062,8 +20062,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
20062
20062
  edgeType: string;
20063
20063
  targetId: string;
20064
20064
  sourceId: string;
20065
- createdAt?: number | undefined;
20066
20065
  weight?: number | undefined;
20066
+ createdAt?: number | undefined;
20067
20067
  edgeId?: string | undefined;
20068
20068
  }[];
20069
20069
  topicId?: string | undefined;
@@ -20099,11 +20099,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
20099
20099
  id: string;
20100
20100
  text: string;
20101
20101
  verified: boolean;
20102
+ createdAt?: number | undefined;
20102
20103
  sourceType?: string | undefined;
20103
20104
  verificationStatus?: string | undefined;
20104
- createdAt?: number | undefined;
20105
20105
  }[];
20106
- worktreeId: string;
20107
20106
  outcome: {
20108
20107
  summary: string;
20109
20108
  verdict: string;
@@ -20111,11 +20110,12 @@ declare function listTableContractsByName(name: string): (TableContract<{
20111
20110
  endingConfidence: number;
20112
20111
  confidenceChange: number;
20113
20112
  };
20113
+ worktreeId: string;
20114
20114
  questions: {
20115
20115
  status: string;
20116
+ evidenceCount: number;
20116
20117
  id: string;
20117
20118
  text: string;
20118
- evidenceCount: number;
20119
20119
  answer?: string | undefined;
20120
20120
  priority?: string | undefined;
20121
20121
  answerStatus?: string | undefined;
@@ -20128,8 +20128,8 @@ declare function listTableContractsByName(name: string): (TableContract<{
20128
20128
  edgeType: string;
20129
20129
  targetId: string;
20130
20130
  sourceId: string;
20131
- createdAt?: number | undefined;
20132
20131
  weight?: number | undefined;
20132
+ createdAt?: number | undefined;
20133
20133
  edgeId?: string | undefined;
20134
20134
  }[];
20135
20135
  topicId?: string | undefined;
@@ -20244,16 +20244,16 @@ declare function listTableContractsByName(name: string): (TableContract<{
20244
20244
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
20245
20245
  linkedBeliefId: zod.ZodOptional<zod.ZodString>;
20246
20246
  }, "strip", zod.ZodTypeAny, {
20247
- id: string;
20248
20247
  createdAt: number;
20248
+ id: string;
20249
20249
  content: string;
20250
20250
  createdBy: string;
20251
20251
  linkedBeliefId?: string | undefined;
20252
20252
  linkedQuestionId?: string | undefined;
20253
20253
  linkedTaskId?: string | undefined;
20254
20254
  }, {
20255
- id: string;
20256
20255
  createdAt: number;
20256
+ id: string;
20257
20257
  content: string;
20258
20258
  createdBy: string;
20259
20259
  linkedBeliefId?: string | undefined;
@@ -20568,16 +20568,16 @@ declare function listTableContractsByName(name: string): (TableContract<{
20568
20568
  }, "strip", zod.ZodTypeAny, {
20569
20569
  principalId: string;
20570
20570
  principalType: "agent" | "human" | "service";
20571
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
20572
20571
  reason?: string | undefined;
20573
20572
  sessionId?: string | undefined;
20573
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
20574
20574
  delegatedAt?: number | undefined;
20575
20575
  }, {
20576
20576
  principalId: string;
20577
20577
  principalType: "agent" | "human" | "service";
20578
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
20579
20578
  reason?: string | undefined;
20580
20579
  sessionId?: string | undefined;
20580
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
20581
20581
  delegatedAt?: number | undefined;
20582
20582
  }>, "many">>;
20583
20583
  sourceSessionId: zod.ZodOptional<zod.ZodString>;
@@ -20606,16 +20606,16 @@ declare function listTableContractsByName(name: string): (TableContract<{
20606
20606
  gate: zod.ZodOptional<zod.ZodString>;
20607
20607
  instructions: zod.ZodString;
20608
20608
  }, "strip", zod.ZodTypeAny, {
20609
+ description: string;
20609
20610
  title: string;
20610
20611
  name: string;
20611
- description: string;
20612
20612
  requiredTools: string[];
20613
20613
  instructions: string;
20614
20614
  gate?: string | undefined;
20615
20615
  }, {
20616
+ description: string;
20616
20617
  title: string;
20617
20618
  name: string;
20618
- description: string;
20619
20619
  requiredTools: string[];
20620
20620
  instructions: string;
20621
20621
  gate?: string | undefined;
@@ -20769,10 +20769,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
20769
20769
  }, "strip", zod.ZodTypeAny, {
20770
20770
  toolName: string;
20771
20771
  toolVersion: string;
20772
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
20773
20772
  description?: string | undefined;
20773
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
20774
20774
  category?: "read" | "admin" | "write" | "system" | undefined;
20775
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
20775
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
20776
20776
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
20777
20777
  parameterSchema?: Record<string, any> | undefined;
20778
20778
  handlerRef?: string | undefined;
@@ -20786,10 +20786,10 @@ declare function listTableContractsByName(name: string): (TableContract<{
20786
20786
  }, {
20787
20787
  toolName: string;
20788
20788
  toolVersion: string;
20789
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
20790
20789
  description?: string | undefined;
20790
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
20791
20791
  category?: "read" | "admin" | "write" | "system" | undefined;
20792
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
20792
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
20793
20793
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
20794
20794
  parameterSchema?: Record<string, any> | undefined;
20795
20795
  handlerRef?: string | undefined;
@@ -20947,17 +20947,17 @@ declare function listTableContractsByName(name: string): (TableContract<{
20947
20947
  }, "strip", zod.ZodTypeAny, {
20948
20948
  key: string;
20949
20949
  promptRef: string;
20950
+ required?: boolean | undefined;
20950
20951
  metadata?: any;
20951
20952
  role?: string | undefined;
20952
- required?: boolean | undefined;
20953
20953
  phase?: string | undefined;
20954
20954
  version?: string | undefined;
20955
20955
  }, {
20956
20956
  key: string;
20957
20957
  promptRef: string;
20958
+ required?: boolean | undefined;
20958
20959
  metadata?: any;
20959
20960
  role?: string | undefined;
20960
- required?: boolean | undefined;
20961
20961
  phase?: string | undefined;
20962
20962
  version?: string | undefined;
20963
20963
  }>, "many">;
@@ -20975,15 +20975,15 @@ declare function listTableContractsByName(name: string): (TableContract<{
20975
20975
  }, "strip", zod.ZodTypeAny, {
20976
20976
  key: string;
20977
20977
  title: string;
20978
- metadata?: any;
20979
20978
  description?: string | undefined;
20979
+ metadata?: any;
20980
20980
  promptTemplateKey?: string | undefined;
20981
20981
  taskTemplateKeys?: string[] | undefined;
20982
20982
  }, {
20983
20983
  key: string;
20984
20984
  title: string;
20985
- metadata?: any;
20986
20985
  description?: string | undefined;
20986
+ metadata?: any;
20987
20987
  promptTemplateKey?: string | undefined;
20988
20988
  taskTemplateKeys?: string[] | undefined;
20989
20989
  }>, "many">;
@@ -20994,26 +20994,26 @@ declare function listTableContractsByName(name: string): (TableContract<{
20994
20994
  steps: {
20995
20995
  key: string;
20996
20996
  title: string;
20997
- metadata?: any;
20998
20997
  description?: string | undefined;
20998
+ metadata?: any;
20999
20999
  promptTemplateKey?: string | undefined;
21000
21000
  taskTemplateKeys?: string[] | undefined;
21001
21001
  }[];
21002
- metadata?: any;
21003
21002
  description?: string | undefined;
21003
+ metadata?: any;
21004
21004
  }, {
21005
21005
  key: string;
21006
21006
  name: string;
21007
21007
  steps: {
21008
21008
  key: string;
21009
21009
  title: string;
21010
- metadata?: any;
21011
21010
  description?: string | undefined;
21011
+ metadata?: any;
21012
21012
  promptTemplateKey?: string | undefined;
21013
21013
  taskTemplateKeys?: string[] | undefined;
21014
21014
  }[];
21015
- metadata?: any;
21016
21015
  description?: string | undefined;
21016
+ metadata?: any;
21017
21017
  }>, "many">;
21018
21018
  taskTemplates: zod.ZodArray<zod.ZodObject<{
21019
21019
  key: zod.ZodString;
@@ -21025,16 +21025,16 @@ declare function listTableContractsByName(name: string): (TableContract<{
21025
21025
  }, "strip", zod.ZodTypeAny, {
21026
21026
  key: string;
21027
21027
  title: string;
21028
+ description?: string | undefined;
21028
21029
  metadata?: any;
21029
21030
  priority?: "low" | "medium" | "high" | "critical" | undefined;
21030
- description?: string | undefined;
21031
21031
  phase?: string | undefined;
21032
21032
  }, {
21033
21033
  key: string;
21034
21034
  title: string;
21035
+ description?: string | undefined;
21035
21036
  metadata?: any;
21036
21037
  priority?: "low" | "medium" | "high" | "critical" | undefined;
21037
- description?: string | undefined;
21038
21038
  phase?: string | undefined;
21039
21039
  }>, "many">;
21040
21040
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -21065,9 +21065,9 @@ declare function listTableContractsByName(name: string): (TableContract<{
21065
21065
  promptTemplates: {
21066
21066
  key: string;
21067
21067
  promptRef: string;
21068
+ required?: boolean | undefined;
21068
21069
  metadata?: any;
21069
21070
  role?: string | undefined;
21070
- required?: boolean | undefined;
21071
21071
  phase?: string | undefined;
21072
21072
  version?: string | undefined;
21073
21073
  }[];
@@ -21077,25 +21077,25 @@ declare function listTableContractsByName(name: string): (TableContract<{
21077
21077
  steps: {
21078
21078
  key: string;
21079
21079
  title: string;
21080
- metadata?: any;
21081
21080
  description?: string | undefined;
21081
+ metadata?: any;
21082
21082
  promptTemplateKey?: string | undefined;
21083
21083
  taskTemplateKeys?: string[] | undefined;
21084
21084
  }[];
21085
- metadata?: any;
21086
21085
  description?: string | undefined;
21086
+ metadata?: any;
21087
21087
  }[];
21088
21088
  taskTemplates: {
21089
21089
  key: string;
21090
21090
  title: string;
21091
+ description?: string | undefined;
21091
21092
  metadata?: any;
21092
21093
  priority?: "low" | "medium" | "high" | "critical" | undefined;
21093
- description?: string | undefined;
21094
21094
  phase?: string | undefined;
21095
21095
  }[];
21096
21096
  lensKey: string;
21097
- metadata?: any;
21098
21097
  description?: string | undefined;
21098
+ metadata?: any;
21099
21099
  filterCriteria?: any;
21100
21100
  questionTemplates?: {
21101
21101
  key: string;
@@ -21111,9 +21111,9 @@ declare function listTableContractsByName(name: string): (TableContract<{
21111
21111
  promptTemplates: {
21112
21112
  key: string;
21113
21113
  promptRef: string;
21114
+ required?: boolean | undefined;
21114
21115
  metadata?: any;
21115
21116
  role?: string | undefined;
21116
- required?: boolean | undefined;
21117
21117
  phase?: string | undefined;
21118
21118
  version?: string | undefined;
21119
21119
  }[];
@@ -21123,25 +21123,25 @@ declare function listTableContractsByName(name: string): (TableContract<{
21123
21123
  steps: {
21124
21124
  key: string;
21125
21125
  title: string;
21126
- metadata?: any;
21127
21126
  description?: string | undefined;
21127
+ metadata?: any;
21128
21128
  promptTemplateKey?: string | undefined;
21129
21129
  taskTemplateKeys?: string[] | undefined;
21130
21130
  }[];
21131
- metadata?: any;
21132
21131
  description?: string | undefined;
21132
+ metadata?: any;
21133
21133
  }[];
21134
21134
  taskTemplates: {
21135
21135
  key: string;
21136
21136
  title: string;
21137
+ description?: string | undefined;
21137
21138
  metadata?: any;
21138
21139
  priority?: "low" | "medium" | "high" | "critical" | undefined;
21139
- description?: string | undefined;
21140
21140
  phase?: string | undefined;
21141
21141
  }[];
21142
21142
  lensKey: string;
21143
- metadata?: any;
21144
21143
  description?: string | undefined;
21144
+ metadata?: any;
21145
21145
  filterCriteria?: any;
21146
21146
  questionTemplates?: {
21147
21147
  key: string;
@@ -21366,11 +21366,11 @@ declare function listTableContractsByName(name: string): (TableContract<{
21366
21366
  legacyPath: zod.ZodString;
21367
21367
  harnessPath: zod.ZodString;
21368
21368
  }, "strip", zod.ZodTypeAny, {
21369
- type: "tool" | "agent";
21369
+ type: "agent" | "tool";
21370
21370
  legacyPath: string;
21371
21371
  harnessPath: string;
21372
21372
  }, {
21373
- type: "tool" | "agent";
21373
+ type: "agent" | "tool";
21374
21374
  legacyPath: string;
21375
21375
  harnessPath: string;
21376
21376
  }>;
@@ -22816,13 +22816,13 @@ declare function getTableContract(name: string, component?: string): TableContra
22816
22816
  priority: zod.ZodString;
22817
22817
  rationale: zod.ZodString;
22818
22818
  }, "strip", zod.ZodTypeAny, {
22819
+ rationale: string;
22819
22820
  action: string;
22820
22821
  priority: string;
22821
- rationale: string;
22822
22822
  }, {
22823
+ rationale: string;
22823
22824
  action: string;
22824
22825
  priority: string;
22825
- rationale: string;
22826
22826
  }>, "many">>;
22827
22827
  sourceWorktreeId: zod.ZodOptional<zod.ZodString>;
22828
22828
  sourceChatId: zod.ZodOptional<ConvexIdSchema<"chats">>;
@@ -23287,10 +23287,10 @@ declare function getTableContract(name: string, component?: string): TableContra
23287
23287
  importance: zod.ZodOptional<zod.ZodNumber>;
23288
23288
  totalCount: zod.ZodOptional<zod.ZodNumber>;
23289
23289
  }, "strip", zod.ZodTypeAny, {
23290
+ description: string;
23291
+ severity: "critical" | "warning" | "info";
23290
23292
  id: string;
23291
23293
  title: string;
23292
- severity: "critical" | "warning" | "info";
23293
- description: string;
23294
23294
  nodeIds: string[];
23295
23295
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
23296
23296
  nodeLabels: string[];
@@ -23298,10 +23298,10 @@ declare function getTableContract(name: string, component?: string): TableContra
23298
23298
  importance?: number | undefined;
23299
23299
  totalCount?: number | undefined;
23300
23300
  }, {
23301
+ description: string;
23302
+ severity: "critical" | "warning" | "info";
23301
23303
  id: string;
23302
23304
  title: string;
23303
- severity: "critical" | "warning" | "info";
23304
- description: string;
23305
23305
  nodeIds: string[];
23306
23306
  category: "temporal" | "staleness" | "structural_risk" | "evidence_gap" | "reasoning_flaw" | "opportunity" | "propagation_risk" | "epistemology" | "semantic_gap";
23307
23307
  nodeLabels: string[];
@@ -23336,16 +23336,16 @@ declare function getTableContract(name: string, component?: string): TableContra
23336
23336
  resolved_true: zod.ZodNumber;
23337
23337
  resolved_false: zod.ZodNumber;
23338
23338
  }, "strip", zod.ZodTypeAny, {
23339
- hypothesis: number;
23340
- active: number;
23341
23339
  superseded: number;
23340
+ active: number;
23341
+ hypothesis: number;
23342
23342
  assumption: number;
23343
23343
  resolved_true: number;
23344
23344
  resolved_false: number;
23345
23345
  }, {
23346
- hypothesis: number;
23347
- active: number;
23348
23346
  superseded: number;
23347
+ active: number;
23348
+ hypothesis: number;
23349
23349
  assumption: number;
23350
23350
  resolved_true: number;
23351
23351
  resolved_false: number;
@@ -23383,9 +23383,9 @@ declare function getTableContract(name: string, component?: string): TableContra
23383
23383
  propagationRisks: number;
23384
23384
  temporalDecayCount: number;
23385
23385
  beliefStatus?: {
23386
- hypothesis: number;
23387
- active: number;
23388
23386
  superseded: number;
23387
+ active: number;
23388
+ hypothesis: number;
23389
23389
  assumption: number;
23390
23390
  resolved_true: number;
23391
23391
  resolved_false: number;
@@ -23415,9 +23415,9 @@ declare function getTableContract(name: string, component?: string): TableContra
23415
23415
  propagationRisks: number;
23416
23416
  temporalDecayCount: number;
23417
23417
  beliefStatus?: {
23418
- hypothesis: number;
23419
- active: number;
23420
23418
  superseded: number;
23419
+ active: number;
23420
+ hypothesis: number;
23421
23421
  assumption: number;
23422
23422
  resolved_true: number;
23423
23423
  resolved_false: number;
@@ -23486,16 +23486,16 @@ declare function getTableContract(name: string, component?: string): TableContra
23486
23486
  nodeIds: zod.ZodArray<zod.ZodString, "many">;
23487
23487
  nodeLabels: zod.ZodArray<zod.ZodString, "many">;
23488
23488
  }, "strip", zod.ZodTypeAny, {
23489
- title: string;
23490
- severity: string;
23491
23489
  description: string;
23490
+ severity: string;
23491
+ title: string;
23492
23492
  nodeIds: string[];
23493
23493
  category: string;
23494
23494
  nodeLabels: string[];
23495
23495
  }, {
23496
- title: string;
23497
- severity: string;
23498
23496
  description: string;
23497
+ severity: string;
23498
+ title: string;
23499
23499
  nodeIds: string[];
23500
23500
  category: string;
23501
23501
  nodeLabels: string[];
@@ -23538,17 +23538,17 @@ declare function getTableContract(name: string, component?: string): TableContra
23538
23538
  }, "strip", zod.ZodTypeAny, {
23539
23539
  key: string;
23540
23540
  promptRef: string;
23541
+ required?: boolean | undefined;
23541
23542
  metadata?: any;
23542
23543
  role?: string | undefined;
23543
- required?: boolean | undefined;
23544
23544
  phase?: string | undefined;
23545
23545
  version?: string | undefined;
23546
23546
  }, {
23547
23547
  key: string;
23548
23548
  promptRef: string;
23549
+ required?: boolean | undefined;
23549
23550
  metadata?: any;
23550
23551
  role?: string | undefined;
23551
- required?: boolean | undefined;
23552
23552
  phase?: string | undefined;
23553
23553
  version?: string | undefined;
23554
23554
  }>, "many">;
@@ -23566,15 +23566,15 @@ declare function getTableContract(name: string, component?: string): TableContra
23566
23566
  }, "strip", zod.ZodTypeAny, {
23567
23567
  key: string;
23568
23568
  title: string;
23569
- metadata?: any;
23570
23569
  description?: string | undefined;
23570
+ metadata?: any;
23571
23571
  promptTemplateKey?: string | undefined;
23572
23572
  taskTemplateKeys?: string[] | undefined;
23573
23573
  }, {
23574
23574
  key: string;
23575
23575
  title: string;
23576
- metadata?: any;
23577
23576
  description?: string | undefined;
23577
+ metadata?: any;
23578
23578
  promptTemplateKey?: string | undefined;
23579
23579
  taskTemplateKeys?: string[] | undefined;
23580
23580
  }>, "many">;
@@ -23585,26 +23585,26 @@ declare function getTableContract(name: string, component?: string): TableContra
23585
23585
  steps: {
23586
23586
  key: string;
23587
23587
  title: string;
23588
- metadata?: any;
23589
23588
  description?: string | undefined;
23589
+ metadata?: any;
23590
23590
  promptTemplateKey?: string | undefined;
23591
23591
  taskTemplateKeys?: string[] | undefined;
23592
23592
  }[];
23593
- metadata?: any;
23594
23593
  description?: string | undefined;
23594
+ metadata?: any;
23595
23595
  }, {
23596
23596
  key: string;
23597
23597
  name: string;
23598
23598
  steps: {
23599
23599
  key: string;
23600
23600
  title: string;
23601
- metadata?: any;
23602
23601
  description?: string | undefined;
23602
+ metadata?: any;
23603
23603
  promptTemplateKey?: string | undefined;
23604
23604
  taskTemplateKeys?: string[] | undefined;
23605
23605
  }[];
23606
- metadata?: any;
23607
23606
  description?: string | undefined;
23607
+ metadata?: any;
23608
23608
  }>, "many">;
23609
23609
  taskTemplates: zod.ZodArray<zod.ZodObject<{
23610
23610
  key: zod.ZodString;
@@ -23616,16 +23616,16 @@ declare function getTableContract(name: string, component?: string): TableContra
23616
23616
  }, "strip", zod.ZodTypeAny, {
23617
23617
  key: string;
23618
23618
  title: string;
23619
+ description?: string | undefined;
23619
23620
  metadata?: any;
23620
23621
  priority?: "low" | "medium" | "high" | "critical" | undefined;
23621
- description?: string | undefined;
23622
23622
  phase?: string | undefined;
23623
23623
  }, {
23624
23624
  key: string;
23625
23625
  title: string;
23626
+ description?: string | undefined;
23626
23627
  metadata?: any;
23627
23628
  priority?: "low" | "medium" | "high" | "critical" | undefined;
23628
- description?: string | undefined;
23629
23629
  phase?: string | undefined;
23630
23630
  }>, "many">;
23631
23631
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -23806,8 +23806,8 @@ declare function getTableContract(name: string, component?: string): TableContra
23806
23806
  phase: string;
23807
23807
  kind: string;
23808
23808
  stepId: string;
23809
- metadata?: Record<string, any> | undefined;
23810
23809
  summary?: string | undefined;
23810
+ metadata?: Record<string, any> | undefined;
23811
23811
  completedAt?: number | undefined;
23812
23812
  }, {
23813
23813
  status: "failed" | "completed" | "skipped";
@@ -23815,8 +23815,8 @@ declare function getTableContract(name: string, component?: string): TableContra
23815
23815
  phase: string;
23816
23816
  kind: string;
23817
23817
  stepId: string;
23818
- metadata?: Record<string, any> | undefined;
23819
23818
  summary?: string | undefined;
23819
+ metadata?: Record<string, any> | undefined;
23820
23820
  completedAt?: number | undefined;
23821
23821
  }>, "many">;
23822
23822
  inputSnapshot: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -23856,12 +23856,12 @@ declare function getTableContract(name: string, component?: string): TableContra
23856
23856
  summary: string;
23857
23857
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
23858
23858
  errorMessage?: string | undefined;
23859
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
23859
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
23860
23860
  }, {
23861
23861
  summary: string;
23862
23862
  verdict: "partial" | "success" | "cancelled" | "timeout" | "failure";
23863
23863
  errorMessage?: string | undefined;
23864
- errorCategory?: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
23864
+ errorCategory?: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service" | undefined;
23865
23865
  }>;
23866
23866
  toolCalls: zod.ZodArray<zod.ZodObject<{
23867
23867
  toolCallId: zod.ZodString;
@@ -23878,8 +23878,8 @@ declare function getTableContract(name: string, component?: string): TableContra
23878
23878
  success: boolean;
23879
23879
  durationMs: number;
23880
23880
  toolCallId: string;
23881
- metadata?: Record<string, any> | undefined;
23882
23881
  policyDecisionId?: string | undefined;
23882
+ metadata?: Record<string, any> | undefined;
23883
23883
  gateClassification?: "core" | "shimmed" | undefined;
23884
23884
  requiredScopes?: string[] | undefined;
23885
23885
  graphWriteCount?: number | undefined;
@@ -23888,8 +23888,8 @@ declare function getTableContract(name: string, component?: string): TableContra
23888
23888
  success: boolean;
23889
23889
  durationMs: number;
23890
23890
  toolCallId: string;
23891
- metadata?: Record<string, any> | undefined;
23892
23891
  policyDecisionId?: string | undefined;
23892
+ metadata?: Record<string, any> | undefined;
23893
23893
  gateClassification?: "core" | "shimmed" | undefined;
23894
23894
  requiredScopes?: string[] | undefined;
23895
23895
  graphWriteCount?: number | undefined;
@@ -23906,15 +23906,15 @@ declare function getTableContract(name: string, component?: string): TableContra
23906
23906
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
23907
23907
  action: string;
23908
23908
  operationId: string;
23909
- metadata?: Record<string, any> | undefined;
23910
23909
  summary?: string | undefined;
23910
+ metadata?: Record<string, any> | undefined;
23911
23911
  targetId?: string | undefined;
23912
23912
  }, {
23913
23913
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
23914
23914
  action: string;
23915
23915
  operationId: string;
23916
- metadata?: Record<string, any> | undefined;
23917
23916
  summary?: string | undefined;
23917
+ metadata?: Record<string, any> | undefined;
23918
23918
  targetId?: string | undefined;
23919
23919
  }>, "many">;
23920
23920
  graphReadCount: zod.ZodNumber;
@@ -23929,15 +23929,15 @@ declare function getTableContract(name: string, component?: string): TableContra
23929
23929
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
23930
23930
  action: string;
23931
23931
  operationId: string;
23932
- metadata?: Record<string, any> | undefined;
23933
23932
  summary?: string | undefined;
23933
+ metadata?: Record<string, any> | undefined;
23934
23934
  targetId?: string | undefined;
23935
23935
  }, {
23936
23936
  surface: "topic" | "belief" | "question" | "evidence" | "worktree" | "external" | "workflow" | "document";
23937
23937
  action: string;
23938
23938
  operationId: string;
23939
- metadata?: Record<string, any> | undefined;
23940
23939
  summary?: string | undefined;
23940
+ metadata?: Record<string, any> | undefined;
23941
23941
  targetId?: string | undefined;
23942
23942
  }>, "many">;
23943
23943
  graphWriteCount: zod.ZodNumber;
@@ -24078,14 +24078,14 @@ declare function getTableContract(name: string, component?: string): TableContra
24078
24078
  stack: zod.ZodOptional<zod.ZodString>;
24079
24079
  }, "strip", zod.ZodTypeAny, {
24080
24080
  message: string;
24081
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
24082
- stack?: string | undefined;
24081
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
24083
24082
  code?: string | undefined;
24083
+ stack?: string | undefined;
24084
24084
  }, {
24085
24085
  message: string;
24086
- category: "policy_denied" | "internal" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
24087
- stack?: string | undefined;
24086
+ category: "internal" | "policy_denied" | "timeout" | "tool_execution" | "prompt_resolution" | "model_error" | "heartbeat_timeout" | "input_validation" | "external_service";
24088
24087
  code?: string | undefined;
24088
+ stack?: string | undefined;
24089
24089
  }>>;
24090
24090
  costMetrics: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
24091
24091
  metadata: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
@@ -24417,13 +24417,13 @@ declare function getTableContract(name: string, component?: string): TableContra
24417
24417
  content: zod.ZodString;
24418
24418
  createdAt: zod.ZodNumber;
24419
24419
  }, "strip", zod.ZodTypeAny, {
24420
- id: string;
24421
24420
  createdAt: number;
24421
+ id: string;
24422
24422
  content: string;
24423
24423
  userId: string;
24424
24424
  }, {
24425
- id: string;
24426
24425
  createdAt: number;
24426
+ id: string;
24427
24427
  content: string;
24428
24428
  userId: string;
24429
24429
  }>, "many">>;
@@ -24533,12 +24533,12 @@ declare function getTableContract(name: string, component?: string): TableContra
24533
24533
  purpose: zod.ZodString;
24534
24534
  suggestedQuery: zod.ZodString;
24535
24535
  }, "strip", zod.ZodTypeAny, {
24536
- tool: string;
24537
24536
  purpose: string;
24537
+ tool: string;
24538
24538
  suggestedQuery: string;
24539
24539
  }, {
24540
- tool: string;
24541
24540
  purpose: string;
24541
+ tool: string;
24542
24542
  suggestedQuery: string;
24543
24543
  }>, "many">>;
24544
24544
  metrics: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -24563,15 +24563,15 @@ declare function getTableContract(name: string, component?: string): TableContra
24563
24563
  company: zod.ZodString;
24564
24564
  rationale: zod.ZodString;
24565
24565
  }, "strip", zod.ZodTypeAny, {
24566
+ rationale: string;
24566
24567
  role: string;
24567
24568
  title: string;
24568
24569
  company: string;
24569
- rationale: string;
24570
24570
  }, {
24571
+ rationale: string;
24571
24572
  role: string;
24572
24573
  title: string;
24573
24574
  company: string;
24574
- rationale: string;
24575
24575
  }>, "many">>;
24576
24576
  experts: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
24577
24577
  expertise: zod.ZodString;
@@ -24636,14 +24636,14 @@ declare function getTableContract(name: string, component?: string): TableContra
24636
24636
  dependsOnStepIds?: string[] | undefined;
24637
24637
  runCondition?: string | undefined;
24638
24638
  continueOnFailure?: boolean | undefined;
24639
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
24639
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
24640
24640
  stepRunCount?: number | undefined;
24641
24641
  stepLastRunAt?: number | undefined;
24642
24642
  stepOutputSummary?: string | undefined;
24643
24643
  stepOutputData?: string | undefined;
24644
24644
  stepFailureReason?: string | undefined;
24645
24645
  researchResult?: string | undefined;
24646
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
24646
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
24647
24647
  researchCompletedAt?: number | undefined;
24648
24648
  researchCitations?: (string | {
24649
24649
  url: string;
@@ -24659,8 +24659,8 @@ declare function getTableContract(name: string, component?: string): TableContra
24659
24659
  capturedAt?: number | undefined;
24660
24660
  capturedImpact?: number | undefined;
24661
24661
  tools?: {
24662
- tool: string;
24663
24662
  purpose: string;
24663
+ tool: string;
24664
24664
  suggestedQuery: string;
24665
24665
  }[] | undefined;
24666
24666
  metrics?: {
@@ -24670,10 +24670,10 @@ declare function getTableContract(name: string, component?: string): TableContra
24670
24670
  currentValue?: string | undefined;
24671
24671
  }[] | undefined;
24672
24672
  personas?: {
24673
+ rationale: string;
24673
24674
  role: string;
24674
24675
  title: string;
24675
24676
  company: string;
24676
- rationale: string;
24677
24677
  }[] | undefined;
24678
24678
  experts?: {
24679
24679
  questions: string[];
@@ -24720,14 +24720,14 @@ declare function getTableContract(name: string, component?: string): TableContra
24720
24720
  dependsOnStepIds?: string[] | undefined;
24721
24721
  runCondition?: string | undefined;
24722
24722
  continueOnFailure?: boolean | undefined;
24723
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
24723
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
24724
24724
  stepRunCount?: number | undefined;
24725
24725
  stepLastRunAt?: number | undefined;
24726
24726
  stepOutputSummary?: string | undefined;
24727
24727
  stepOutputData?: string | undefined;
24728
24728
  stepFailureReason?: string | undefined;
24729
24729
  researchResult?: string | undefined;
24730
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
24730
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
24731
24731
  researchCompletedAt?: number | undefined;
24732
24732
  researchCitations?: (string | {
24733
24733
  url: string;
@@ -24743,8 +24743,8 @@ declare function getTableContract(name: string, component?: string): TableContra
24743
24743
  capturedAt?: number | undefined;
24744
24744
  capturedImpact?: number | undefined;
24745
24745
  tools?: {
24746
- tool: string;
24747
24746
  purpose: string;
24747
+ tool: string;
24748
24748
  suggestedQuery: string;
24749
24749
  }[] | undefined;
24750
24750
  metrics?: {
@@ -24754,10 +24754,10 @@ declare function getTableContract(name: string, component?: string): TableContra
24754
24754
  currentValue?: string | undefined;
24755
24755
  }[] | undefined;
24756
24756
  personas?: {
24757
+ rationale: string;
24757
24758
  role: string;
24758
24759
  title: string;
24759
24760
  company: string;
24760
- rationale: string;
24761
24761
  }[] | undefined;
24762
24762
  experts?: {
24763
24763
  questions: string[];
@@ -24777,11 +24777,11 @@ declare function getTableContract(name: string, component?: string): TableContra
24777
24777
  createdBy: zod.ZodString;
24778
24778
  createdAt: zod.ZodNumber;
24779
24779
  }, "strip", zod.ZodTypeAny, {
24780
- id: string;
24780
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
24781
24781
  createdAt: number;
24782
+ id: string;
24782
24783
  title: string;
24783
24784
  content: string;
24784
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
24785
24785
  createdBy: string;
24786
24786
  metadata?: {
24787
24787
  items?: {
@@ -24817,14 +24817,14 @@ declare function getTableContract(name: string, component?: string): TableContra
24817
24817
  dependsOnStepIds?: string[] | undefined;
24818
24818
  runCondition?: string | undefined;
24819
24819
  continueOnFailure?: boolean | undefined;
24820
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
24820
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
24821
24821
  stepRunCount?: number | undefined;
24822
24822
  stepLastRunAt?: number | undefined;
24823
24823
  stepOutputSummary?: string | undefined;
24824
24824
  stepOutputData?: string | undefined;
24825
24825
  stepFailureReason?: string | undefined;
24826
24826
  researchResult?: string | undefined;
24827
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
24827
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
24828
24828
  researchCompletedAt?: number | undefined;
24829
24829
  researchCitations?: (string | {
24830
24830
  url: string;
@@ -24840,8 +24840,8 @@ declare function getTableContract(name: string, component?: string): TableContra
24840
24840
  capturedAt?: number | undefined;
24841
24841
  capturedImpact?: number | undefined;
24842
24842
  tools?: {
24843
- tool: string;
24844
24843
  purpose: string;
24844
+ tool: string;
24845
24845
  suggestedQuery: string;
24846
24846
  }[] | undefined;
24847
24847
  metrics?: {
@@ -24851,10 +24851,10 @@ declare function getTableContract(name: string, component?: string): TableContra
24851
24851
  currentValue?: string | undefined;
24852
24852
  }[] | undefined;
24853
24853
  personas?: {
24854
+ rationale: string;
24854
24855
  role: string;
24855
24856
  title: string;
24856
24857
  company: string;
24857
- rationale: string;
24858
24858
  }[] | undefined;
24859
24859
  experts?: {
24860
24860
  questions: string[];
@@ -24872,11 +24872,11 @@ declare function getTableContract(name: string, component?: string): TableContra
24872
24872
  capturedInsightId?: (string & zod.BRAND<"Id<epistemicNodes>">) | undefined;
24873
24873
  capturedAt?: number | undefined;
24874
24874
  }, {
24875
- id: string;
24875
+ type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
24876
24876
  createdAt: number;
24877
+ id: string;
24877
24878
  title: string;
24878
24879
  content: string;
24879
- type: "transcript" | "note" | "call_script" | "email_template" | "research_plan" | "framework" | "checklist" | "file";
24880
24880
  createdBy: string;
24881
24881
  metadata?: {
24882
24882
  items?: {
@@ -24912,14 +24912,14 @@ declare function getTableContract(name: string, component?: string): TableContra
24912
24912
  dependsOnStepIds?: string[] | undefined;
24913
24913
  runCondition?: string | undefined;
24914
24914
  continueOnFailure?: boolean | undefined;
24915
- stepStatus?: "failed" | "pending" | "completed" | "running" | "skipped" | undefined;
24915
+ stepStatus?: "pending" | "failed" | "completed" | "running" | "skipped" | undefined;
24916
24916
  stepRunCount?: number | undefined;
24917
24917
  stepLastRunAt?: number | undefined;
24918
24918
  stepOutputSummary?: string | undefined;
24919
24919
  stepOutputData?: string | undefined;
24920
24920
  stepFailureReason?: string | undefined;
24921
24921
  researchResult?: string | undefined;
24922
- researchStatus?: "failed" | "pending" | "completed" | "running" | undefined;
24922
+ researchStatus?: "pending" | "failed" | "completed" | "running" | undefined;
24923
24923
  researchCompletedAt?: number | undefined;
24924
24924
  researchCitations?: (string | {
24925
24925
  url: string;
@@ -24935,8 +24935,8 @@ declare function getTableContract(name: string, component?: string): TableContra
24935
24935
  capturedAt?: number | undefined;
24936
24936
  capturedImpact?: number | undefined;
24937
24937
  tools?: {
24938
- tool: string;
24939
24938
  purpose: string;
24939
+ tool: string;
24940
24940
  suggestedQuery: string;
24941
24941
  }[] | undefined;
24942
24942
  metrics?: {
@@ -24946,10 +24946,10 @@ declare function getTableContract(name: string, component?: string): TableContra
24946
24946
  currentValue?: string | undefined;
24947
24947
  }[] | undefined;
24948
24948
  personas?: {
24949
+ rationale: string;
24949
24950
  role: string;
24950
24951
  title: string;
24951
24952
  company: string;
24952
- rationale: string;
24953
24953
  }[] | undefined;
24954
24954
  experts?: {
24955
24955
  questions: string[];
@@ -25100,14 +25100,14 @@ declare function getTableContract(name: string, component?: string): TableContra
25100
25100
  answerConfidence: zod.ZodOptional<zod.ZodEnum<["high", "medium", "low"]>>;
25101
25101
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
25102
25102
  }, "strip", zod.ZodTypeAny, {
25103
- status: "forked" | "answered" | "open";
25104
25103
  question: string;
25104
+ status: "forked" | "answered" | "open";
25105
25105
  answer?: string | undefined;
25106
25106
  linkedQuestionId?: string | undefined;
25107
25107
  answerConfidence?: "low" | "medium" | "high" | undefined;
25108
25108
  }, {
25109
- status: "forked" | "answered" | "open";
25110
25109
  question: string;
25110
+ status: "forked" | "answered" | "open";
25111
25111
  answer?: string | undefined;
25112
25112
  linkedQuestionId?: string | undefined;
25113
25113
  answerConfidence?: "low" | "medium" | "high" | undefined;
@@ -25320,15 +25320,15 @@ declare function getTableContract(name: string, component?: string): TableContra
25320
25320
  edgeType: string;
25321
25321
  targetId: string;
25322
25322
  sourceId: string;
25323
- createdAt?: number | undefined;
25324
25323
  weight?: number | undefined;
25324
+ createdAt?: number | undefined;
25325
25325
  edgeId?: string | undefined;
25326
25326
  }, {
25327
25327
  edgeType: string;
25328
25328
  targetId: string;
25329
25329
  sourceId: string;
25330
- createdAt?: number | undefined;
25331
25330
  weight?: number | undefined;
25331
+ createdAt?: number | undefined;
25332
25332
  edgeId?: string | undefined;
25333
25333
  }>, "many">;
25334
25334
  relatedBeliefs: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -25359,9 +25359,9 @@ declare function getTableContract(name: string, component?: string): TableContra
25359
25359
  evidenceCount: zod.ZodNumber;
25360
25360
  }, "strip", zod.ZodTypeAny, {
25361
25361
  status: string;
25362
+ evidenceCount: number;
25362
25363
  id: string;
25363
25364
  text: string;
25364
- evidenceCount: number;
25365
25365
  answer?: string | undefined;
25366
25366
  priority?: string | undefined;
25367
25367
  answerStatus?: string | undefined;
@@ -25369,9 +25369,9 @@ declare function getTableContract(name: string, component?: string): TableContra
25369
25369
  answeredAt?: number | undefined;
25370
25370
  }, {
25371
25371
  status: string;
25372
+ evidenceCount: number;
25372
25373
  id: string;
25373
25374
  text: string;
25374
- evidenceCount: number;
25375
25375
  answer?: string | undefined;
25376
25376
  priority?: string | undefined;
25377
25377
  answerStatus?: string | undefined;
@@ -25389,16 +25389,16 @@ declare function getTableContract(name: string, component?: string): TableContra
25389
25389
  id: string;
25390
25390
  text: string;
25391
25391
  verified: boolean;
25392
+ createdAt?: number | undefined;
25392
25393
  sourceType?: string | undefined;
25393
25394
  verificationStatus?: string | undefined;
25394
- createdAt?: number | undefined;
25395
25395
  }, {
25396
25396
  id: string;
25397
25397
  text: string;
25398
25398
  verified: boolean;
25399
+ createdAt?: number | undefined;
25399
25400
  sourceType?: string | undefined;
25400
25401
  verificationStatus?: string | undefined;
25401
- createdAt?: number | undefined;
25402
25402
  }>, "many">;
25403
25403
  tasksCompleted: zod.ZodOptional<zod.ZodNumber>;
25404
25404
  totalTasks: zod.ZodOptional<zod.ZodNumber>;
@@ -25456,11 +25456,10 @@ declare function getTableContract(name: string, component?: string): TableContra
25456
25456
  id: string;
25457
25457
  text: string;
25458
25458
  verified: boolean;
25459
+ createdAt?: number | undefined;
25459
25460
  sourceType?: string | undefined;
25460
25461
  verificationStatus?: string | undefined;
25461
- createdAt?: number | undefined;
25462
25462
  }[];
25463
- worktreeId: string & zod.BRAND<"Id<worktrees>">;
25464
25463
  outcome: {
25465
25464
  summary: string;
25466
25465
  verdict: string;
@@ -25468,11 +25467,12 @@ declare function getTableContract(name: string, component?: string): TableContra
25468
25467
  endingConfidence: number;
25469
25468
  confidenceChange: number;
25470
25469
  };
25470
+ worktreeId: string & zod.BRAND<"Id<worktrees>">;
25471
25471
  questions: {
25472
25472
  status: string;
25473
+ evidenceCount: number;
25473
25474
  id: string;
25474
25475
  text: string;
25475
- evidenceCount: number;
25476
25476
  answer?: string | undefined;
25477
25477
  priority?: string | undefined;
25478
25478
  answerStatus?: string | undefined;
@@ -25485,8 +25485,8 @@ declare function getTableContract(name: string, component?: string): TableContra
25485
25485
  edgeType: string;
25486
25486
  targetId: string;
25487
25487
  sourceId: string;
25488
- createdAt?: number | undefined;
25489
25488
  weight?: number | undefined;
25489
+ createdAt?: number | undefined;
25490
25490
  edgeId?: string | undefined;
25491
25491
  }[];
25492
25492
  topicId?: string | undefined;
@@ -25522,11 +25522,10 @@ declare function getTableContract(name: string, component?: string): TableContra
25522
25522
  id: string;
25523
25523
  text: string;
25524
25524
  verified: boolean;
25525
+ createdAt?: number | undefined;
25525
25526
  sourceType?: string | undefined;
25526
25527
  verificationStatus?: string | undefined;
25527
- createdAt?: number | undefined;
25528
25528
  }[];
25529
- worktreeId: string;
25530
25529
  outcome: {
25531
25530
  summary: string;
25532
25531
  verdict: string;
@@ -25534,11 +25533,12 @@ declare function getTableContract(name: string, component?: string): TableContra
25534
25533
  endingConfidence: number;
25535
25534
  confidenceChange: number;
25536
25535
  };
25536
+ worktreeId: string;
25537
25537
  questions: {
25538
25538
  status: string;
25539
+ evidenceCount: number;
25539
25540
  id: string;
25540
25541
  text: string;
25541
- evidenceCount: number;
25542
25542
  answer?: string | undefined;
25543
25543
  priority?: string | undefined;
25544
25544
  answerStatus?: string | undefined;
@@ -25551,8 +25551,8 @@ declare function getTableContract(name: string, component?: string): TableContra
25551
25551
  edgeType: string;
25552
25552
  targetId: string;
25553
25553
  sourceId: string;
25554
- createdAt?: number | undefined;
25555
25554
  weight?: number | undefined;
25555
+ createdAt?: number | undefined;
25556
25556
  edgeId?: string | undefined;
25557
25557
  }[];
25558
25558
  topicId?: string | undefined;
@@ -25667,16 +25667,16 @@ declare function getTableContract(name: string, component?: string): TableContra
25667
25667
  linkedQuestionId: zod.ZodOptional<zod.ZodString>;
25668
25668
  linkedBeliefId: zod.ZodOptional<zod.ZodString>;
25669
25669
  }, "strip", zod.ZodTypeAny, {
25670
- id: string;
25671
25670
  createdAt: number;
25671
+ id: string;
25672
25672
  content: string;
25673
25673
  createdBy: string;
25674
25674
  linkedBeliefId?: string | undefined;
25675
25675
  linkedQuestionId?: string | undefined;
25676
25676
  linkedTaskId?: string | undefined;
25677
25677
  }, {
25678
- id: string;
25679
25678
  createdAt: number;
25679
+ id: string;
25680
25680
  content: string;
25681
25681
  createdBy: string;
25682
25682
  linkedBeliefId?: string | undefined;
@@ -25991,16 +25991,16 @@ declare function getTableContract(name: string, component?: string): TableContra
25991
25991
  }, "strip", zod.ZodTypeAny, {
25992
25992
  principalId: string;
25993
25993
  principalType: "agent" | "human" | "service";
25994
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
25995
25994
  reason?: string | undefined;
25996
25995
  sessionId?: string | undefined;
25996
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
25997
25997
  delegatedAt?: number | undefined;
25998
25998
  }, {
25999
25999
  principalId: string;
26000
26000
  principalType: "agent" | "human" | "service";
26001
- authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
26002
26001
  reason?: string | undefined;
26003
26002
  sessionId?: string | undefined;
26003
+ authMode?: "interactive_user" | "service_principal" | "tenant_api_key" | "session_token" | undefined;
26004
26004
  delegatedAt?: number | undefined;
26005
26005
  }>, "many">>;
26006
26006
  sourceSessionId: zod.ZodOptional<zod.ZodString>;
@@ -26029,16 +26029,16 @@ declare function getTableContract(name: string, component?: string): TableContra
26029
26029
  gate: zod.ZodOptional<zod.ZodString>;
26030
26030
  instructions: zod.ZodString;
26031
26031
  }, "strip", zod.ZodTypeAny, {
26032
+ description: string;
26032
26033
  title: string;
26033
26034
  name: string;
26034
- description: string;
26035
26035
  requiredTools: string[];
26036
26036
  instructions: string;
26037
26037
  gate?: string | undefined;
26038
26038
  }, {
26039
+ description: string;
26039
26040
  title: string;
26040
26041
  name: string;
26041
- description: string;
26042
26042
  requiredTools: string[];
26043
26043
  instructions: string;
26044
26044
  gate?: string | undefined;
@@ -26192,10 +26192,10 @@ declare function getTableContract(name: string, component?: string): TableContra
26192
26192
  }, "strip", zod.ZodTypeAny, {
26193
26193
  toolName: string;
26194
26194
  toolVersion: string;
26195
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
26196
26195
  description?: string | undefined;
26196
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
26197
26197
  category?: "read" | "admin" | "write" | "system" | undefined;
26198
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
26198
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
26199
26199
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
26200
26200
  parameterSchema?: Record<string, any> | undefined;
26201
26201
  handlerRef?: string | undefined;
@@ -26209,10 +26209,10 @@ declare function getTableContract(name: string, component?: string): TableContra
26209
26209
  }, {
26210
26210
  toolName: string;
26211
26211
  toolVersion: string;
26212
- surfaces?: ("mcp" | "sdk" | "cli" | "chat" | "voice" | "sprint" | "api")[] | undefined;
26213
26212
  description?: string | undefined;
26213
+ surfaces?: ("cli" | "mcp" | "sdk" | "chat" | "voice" | "sprint" | "api")[] | undefined;
26214
26214
  category?: "read" | "admin" | "write" | "system" | undefined;
26215
- requiredAction?: "read" | "summarize" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
26215
+ requiredAction?: "summarize" | "read" | "export" | "mutate" | "admin" | "revoke" | "delete" | "create" | "grant" | undefined;
26216
26216
  requiredRole?: "tenant_admin" | "platform_admin" | "workspace_admin" | "editor" | "viewer" | "auditor" | "service_agent" | undefined;
26217
26217
  parameterSchema?: Record<string, any> | undefined;
26218
26218
  handlerRef?: string | undefined;
@@ -26370,17 +26370,17 @@ declare function getTableContract(name: string, component?: string): TableContra
26370
26370
  }, "strip", zod.ZodTypeAny, {
26371
26371
  key: string;
26372
26372
  promptRef: string;
26373
+ required?: boolean | undefined;
26373
26374
  metadata?: any;
26374
26375
  role?: string | undefined;
26375
- required?: boolean | undefined;
26376
26376
  phase?: string | undefined;
26377
26377
  version?: string | undefined;
26378
26378
  }, {
26379
26379
  key: string;
26380
26380
  promptRef: string;
26381
+ required?: boolean | undefined;
26381
26382
  metadata?: any;
26382
26383
  role?: string | undefined;
26383
- required?: boolean | undefined;
26384
26384
  phase?: string | undefined;
26385
26385
  version?: string | undefined;
26386
26386
  }>, "many">;
@@ -26398,15 +26398,15 @@ declare function getTableContract(name: string, component?: string): TableContra
26398
26398
  }, "strip", zod.ZodTypeAny, {
26399
26399
  key: string;
26400
26400
  title: string;
26401
- metadata?: any;
26402
26401
  description?: string | undefined;
26402
+ metadata?: any;
26403
26403
  promptTemplateKey?: string | undefined;
26404
26404
  taskTemplateKeys?: string[] | undefined;
26405
26405
  }, {
26406
26406
  key: string;
26407
26407
  title: string;
26408
- metadata?: any;
26409
26408
  description?: string | undefined;
26409
+ metadata?: any;
26410
26410
  promptTemplateKey?: string | undefined;
26411
26411
  taskTemplateKeys?: string[] | undefined;
26412
26412
  }>, "many">;
@@ -26417,26 +26417,26 @@ declare function getTableContract(name: string, component?: string): TableContra
26417
26417
  steps: {
26418
26418
  key: string;
26419
26419
  title: string;
26420
- metadata?: any;
26421
26420
  description?: string | undefined;
26421
+ metadata?: any;
26422
26422
  promptTemplateKey?: string | undefined;
26423
26423
  taskTemplateKeys?: string[] | undefined;
26424
26424
  }[];
26425
- metadata?: any;
26426
26425
  description?: string | undefined;
26426
+ metadata?: any;
26427
26427
  }, {
26428
26428
  key: string;
26429
26429
  name: string;
26430
26430
  steps: {
26431
26431
  key: string;
26432
26432
  title: string;
26433
- metadata?: any;
26434
26433
  description?: string | undefined;
26434
+ metadata?: any;
26435
26435
  promptTemplateKey?: string | undefined;
26436
26436
  taskTemplateKeys?: string[] | undefined;
26437
26437
  }[];
26438
- metadata?: any;
26439
26438
  description?: string | undefined;
26439
+ metadata?: any;
26440
26440
  }>, "many">;
26441
26441
  taskTemplates: zod.ZodArray<zod.ZodObject<{
26442
26442
  key: zod.ZodString;
@@ -26448,16 +26448,16 @@ declare function getTableContract(name: string, component?: string): TableContra
26448
26448
  }, "strip", zod.ZodTypeAny, {
26449
26449
  key: string;
26450
26450
  title: string;
26451
+ description?: string | undefined;
26451
26452
  metadata?: any;
26452
26453
  priority?: "low" | "medium" | "high" | "critical" | undefined;
26453
- description?: string | undefined;
26454
26454
  phase?: string | undefined;
26455
26455
  }, {
26456
26456
  key: string;
26457
26457
  title: string;
26458
+ description?: string | undefined;
26458
26459
  metadata?: any;
26459
26460
  priority?: "low" | "medium" | "high" | "critical" | undefined;
26460
- description?: string | undefined;
26461
26461
  phase?: string | undefined;
26462
26462
  }>, "many">;
26463
26463
  questionTemplates: zod.ZodOptional<zod.ZodArray<zod.ZodObject<{
@@ -26488,9 +26488,9 @@ declare function getTableContract(name: string, component?: string): TableContra
26488
26488
  promptTemplates: {
26489
26489
  key: string;
26490
26490
  promptRef: string;
26491
+ required?: boolean | undefined;
26491
26492
  metadata?: any;
26492
26493
  role?: string | undefined;
26493
- required?: boolean | undefined;
26494
26494
  phase?: string | undefined;
26495
26495
  version?: string | undefined;
26496
26496
  }[];
@@ -26500,25 +26500,25 @@ declare function getTableContract(name: string, component?: string): TableContra
26500
26500
  steps: {
26501
26501
  key: string;
26502
26502
  title: string;
26503
- metadata?: any;
26504
26503
  description?: string | undefined;
26504
+ metadata?: any;
26505
26505
  promptTemplateKey?: string | undefined;
26506
26506
  taskTemplateKeys?: string[] | undefined;
26507
26507
  }[];
26508
- metadata?: any;
26509
26508
  description?: string | undefined;
26509
+ metadata?: any;
26510
26510
  }[];
26511
26511
  taskTemplates: {
26512
26512
  key: string;
26513
26513
  title: string;
26514
+ description?: string | undefined;
26514
26515
  metadata?: any;
26515
26516
  priority?: "low" | "medium" | "high" | "critical" | undefined;
26516
- description?: string | undefined;
26517
26517
  phase?: string | undefined;
26518
26518
  }[];
26519
26519
  lensKey: string;
26520
- metadata?: any;
26521
26520
  description?: string | undefined;
26521
+ metadata?: any;
26522
26522
  filterCriteria?: any;
26523
26523
  questionTemplates?: {
26524
26524
  key: string;
@@ -26534,9 +26534,9 @@ declare function getTableContract(name: string, component?: string): TableContra
26534
26534
  promptTemplates: {
26535
26535
  key: string;
26536
26536
  promptRef: string;
26537
+ required?: boolean | undefined;
26537
26538
  metadata?: any;
26538
26539
  role?: string | undefined;
26539
- required?: boolean | undefined;
26540
26540
  phase?: string | undefined;
26541
26541
  version?: string | undefined;
26542
26542
  }[];
@@ -26546,25 +26546,25 @@ declare function getTableContract(name: string, component?: string): TableContra
26546
26546
  steps: {
26547
26547
  key: string;
26548
26548
  title: string;
26549
- metadata?: any;
26550
26549
  description?: string | undefined;
26550
+ metadata?: any;
26551
26551
  promptTemplateKey?: string | undefined;
26552
26552
  taskTemplateKeys?: string[] | undefined;
26553
26553
  }[];
26554
- metadata?: any;
26555
26554
  description?: string | undefined;
26555
+ metadata?: any;
26556
26556
  }[];
26557
26557
  taskTemplates: {
26558
26558
  key: string;
26559
26559
  title: string;
26560
+ description?: string | undefined;
26560
26561
  metadata?: any;
26561
26562
  priority?: "low" | "medium" | "high" | "critical" | undefined;
26562
- description?: string | undefined;
26563
26563
  phase?: string | undefined;
26564
26564
  }[];
26565
26565
  lensKey: string;
26566
- metadata?: any;
26567
26566
  description?: string | undefined;
26567
+ metadata?: any;
26568
26568
  filterCriteria?: any;
26569
26569
  questionTemplates?: {
26570
26570
  key: string;
@@ -26789,11 +26789,11 @@ declare function getTableContract(name: string, component?: string): TableContra
26789
26789
  legacyPath: zod.ZodString;
26790
26790
  harnessPath: zod.ZodString;
26791
26791
  }, "strip", zod.ZodTypeAny, {
26792
- type: "tool" | "agent";
26792
+ type: "agent" | "tool";
26793
26793
  legacyPath: string;
26794
26794
  harnessPath: string;
26795
26795
  }, {
26796
- type: "tool" | "agent";
26796
+ type: "agent" | "tool";
26797
26797
  legacyPath: string;
26798
26798
  harnessPath: string;
26799
26799
  }>;