@lucern/contracts 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/CHANGELOG.md +4 -1
  2. package/dist/dsl.d.ts +75 -4
  3. package/dist/dsl.values-rhsroqi0.d.ts +21 -0
  4. package/dist/dsl.values.d.ts +5 -0
  5. package/dist/dsl.values.js +675 -0
  6. package/dist/dsl.values.js.map +1 -0
  7. package/dist/function-registry/beliefs.d.ts +1 -17
  8. package/dist/function-registry/beliefs.js +155 -117
  9. package/dist/function-registry/beliefs.js.map +1 -1
  10. package/dist/function-registry/coding.d.ts +1 -17
  11. package/dist/function-registry/coding.js +155 -117
  12. package/dist/function-registry/coding.js.map +1 -1
  13. package/dist/function-registry/context.d.ts +1 -17
  14. package/dist/function-registry/context.js +155 -117
  15. package/dist/function-registry/context.js.map +1 -1
  16. package/dist/function-registry/contracts.d.ts +1 -17
  17. package/dist/function-registry/contracts.js +155 -117
  18. package/dist/function-registry/contracts.js.map +1 -1
  19. package/dist/function-registry/coordination.d.ts +1 -17
  20. package/dist/function-registry/coordination.js +155 -117
  21. package/dist/function-registry/coordination.js.map +1 -1
  22. package/dist/function-registry/edges.d.ts +1 -17
  23. package/dist/function-registry/edges.js +155 -117
  24. package/dist/function-registry/edges.js.map +1 -1
  25. package/dist/function-registry/evidence.d.ts +1 -17
  26. package/dist/function-registry/evidence.js +155 -117
  27. package/dist/function-registry/evidence.js.map +1 -1
  28. package/dist/function-registry/graph.d.ts +1 -17
  29. package/dist/function-registry/graph.js +155 -117
  30. package/dist/function-registry/graph.js.map +1 -1
  31. package/dist/function-registry/helpers.d.ts +1 -1
  32. package/dist/function-registry/helpers.js +155 -117
  33. package/dist/function-registry/helpers.js.map +1 -1
  34. package/dist/function-registry/identity.d.ts +1 -17
  35. package/dist/function-registry/identity.js +155 -117
  36. package/dist/function-registry/identity.js.map +1 -1
  37. package/dist/function-registry/index.d.ts +1 -1
  38. package/dist/function-registry/index.js +158 -118
  39. package/dist/function-registry/index.js.map +1 -1
  40. package/dist/function-registry/judgments.d.ts +1 -17
  41. package/dist/function-registry/judgments.js +155 -117
  42. package/dist/function-registry/judgments.js.map +1 -1
  43. package/dist/function-registry/legacy.d.ts +1 -17
  44. package/dist/function-registry/legacy.js +155 -117
  45. package/dist/function-registry/legacy.js.map +1 -1
  46. package/dist/function-registry/lenses.d.ts +1 -17
  47. package/dist/function-registry/lenses.js +155 -117
  48. package/dist/function-registry/lenses.js.map +1 -1
  49. package/dist/function-registry/manifest.d.ts +3 -3
  50. package/dist/function-registry/manifest.js +1 -0
  51. package/dist/function-registry/manifest.js.map +1 -1
  52. package/dist/function-registry/nodes.d.ts +1 -17
  53. package/dist/function-registry/nodes.js +155 -117
  54. package/dist/function-registry/nodes.js.map +1 -1
  55. package/dist/function-registry/ontologies.d.ts +1 -17
  56. package/dist/function-registry/ontologies.js +155 -117
  57. package/dist/function-registry/ontologies.js.map +1 -1
  58. package/dist/function-registry/pipeline.d.ts +1 -17
  59. package/dist/function-registry/pipeline.js +155 -117
  60. package/dist/function-registry/pipeline.js.map +1 -1
  61. package/dist/function-registry/questions.d.ts +1 -17
  62. package/dist/function-registry/questions.js +155 -117
  63. package/dist/function-registry/questions.js.map +1 -1
  64. package/dist/function-registry/tasks.d.ts +1 -17
  65. package/dist/function-registry/tasks.js +155 -117
  66. package/dist/function-registry/tasks.js.map +1 -1
  67. package/dist/function-registry/topics.d.ts +1 -17
  68. package/dist/function-registry/topics.js +155 -117
  69. package/dist/function-registry/topics.js.map +1 -1
  70. package/dist/function-registry/types.d.ts +2 -2
  71. package/dist/function-registry/worktrees.d.ts +41 -17
  72. package/dist/function-registry/worktrees.js +174 -117
  73. package/dist/function-registry/worktrees.js.map +1 -1
  74. package/dist/generated/lucernWebPublicEnv.js.map +1 -1
  75. package/dist/generated/lucernWebServerEnv.js.map +1 -1
  76. package/dist/{idOf-DR8tkhQS.d.ts → idOf-BmkVDhD8.d.ts} +1 -1
  77. package/dist/index.d.ts +47 -8
  78. package/dist/index.js +45072 -45005
  79. package/dist/index.js.map +1 -1
  80. package/dist/infisical-runtime.base.d.ts +444 -0
  81. package/dist/infisical-runtime.base.js +640 -0
  82. package/dist/infisical-runtime.base.js.map +1 -0
  83. package/dist/infisical-runtime.contract.d.ts +9 -440
  84. package/dist/infisical-runtime.contract.js +14 -1
  85. package/dist/infisical-runtime.contract.js.map +1 -1
  86. package/dist/infisical-runtime.platform-ops-secrets.d.ts +743 -0
  87. package/dist/infisical-runtime.platform-ops-secrets.js +962 -0
  88. package/dist/infisical-runtime.platform-ops-secrets.js.map +1 -0
  89. package/dist/infisical-runtime.platform-secrets.d.ts +598 -0
  90. package/dist/infisical-runtime.platform-secrets.js +726 -0
  91. package/dist/infisical-runtime.platform-secrets.js.map +1 -0
  92. package/dist/infisical-runtime.tenant-secrets.d.ts +486 -0
  93. package/dist/infisical-runtime.tenant-secrets.js +1131 -0
  94. package/dist/infisical-runtime.tenant-secrets.js.map +1 -0
  95. package/dist/manifests/edge-policy-manifest.d.ts +1 -1
  96. package/dist/manifests/infisical-runtime-manifest.d.ts +1 -1
  97. package/dist/manifests/infisical-runtime-manifest.js +14 -1
  98. package/dist/manifests/infisical-runtime-manifest.js.map +1 -1
  99. package/dist/manifests/tenant-client-manifest.d.ts +5 -1
  100. package/dist/manifests/tenant-client-manifest.js +5 -0
  101. package/dist/manifests/tenant-client-manifest.js.map +1 -1
  102. package/dist/proof-attestation.json +1 -1
  103. package/dist/schemas/index.d.ts +1 -1
  104. package/dist/schemas/index.js.map +1 -1
  105. package/dist/schemas/manifest.d.ts +61 -61
  106. package/dist/schemas/manifest.js.map +1 -1
  107. package/dist/schemas/tables/kernel/config.js.map +1 -1
  108. package/dist/schemas/tables/kernel/coordination.js.map +1 -1
  109. package/dist/schemas/tables/kernel/decision.d.ts +1 -1
  110. package/dist/schemas/tables/kernel/decision.js.map +1 -1
  111. package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
  112. package/dist/schemas/tables/kernel/embedding.js.map +1 -1
  113. package/dist/schemas/tables/kernel/epistemic.d.ts +1 -1
  114. package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
  115. package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
  116. package/dist/schemas/tables/kernel/infra.js.map +1 -1
  117. package/dist/schemas/tables/kernel/intelligence.d.ts +1 -1
  118. package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
  119. package/dist/schemas/tables/kernel/lens.d.ts +5 -5
  120. package/dist/schemas/tables/kernel/lens.js.map +1 -1
  121. package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
  122. package/dist/schemas/tables/kernel/ontology.js.map +1 -1
  123. package/dist/schemas/tables/kernel/platform.js.map +1 -1
  124. package/dist/schemas/tables/kernel/spine.d.ts +1 -1
  125. package/dist/schemas/tables/kernel/spine.js.map +1 -1
  126. package/dist/schemas/tables/kernel/task.d.ts +1 -1
  127. package/dist/schemas/tables/kernel/task.js.map +1 -1
  128. package/dist/schemas/tables/kernel/topic.d.ts +1 -1
  129. package/dist/schemas/tables/kernel/topic.js.map +1 -1
  130. package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
  131. package/dist/schemas/tables/kernel/workflow.js.map +1 -1
  132. package/dist/schemas/tables/kernel/worktree.d.ts +1 -1
  133. package/dist/schemas/tables/kernel/worktree.js.map +1 -1
  134. package/dist/schemas/tables/mc/identity.d.ts +1 -1
  135. package/dist/schemas/tables/mc/methodology.d.ts +1 -1
  136. package/dist/schemas/tables/mc/pack.d.ts +9 -9
  137. package/dist/schemas/tables/mc/policy.d.ts +1 -1
  138. package/dist/schemas/tables/mc/registry.d.ts +1 -1
  139. package/dist/schemas/tables/mc/runtime.d.ts +1 -1
  140. package/dist/schemas/tables/mc/tenant.d.ts +1 -1
  141. package/dist/schemas/tables/mc/workspace.d.ts +1 -1
  142. package/dist/schemas.values-5J5oIK7z.d.ts +26 -0
  143. package/dist/schemas.values.d.ts +7 -0
  144. package/dist/schemas.values.js +5324 -0
  145. package/dist/schemas.values.js.map +1 -0
  146. package/dist/sdk-tools.contract.analytics.d.ts +27 -0
  147. package/dist/sdk-tools.contract.analytics.js +616 -0
  148. package/dist/sdk-tools.contract.analytics.js.map +1 -0
  149. package/dist/sdk-tools.contract.d.ts +43 -2
  150. package/dist/sdk-tools.contract.graph.d.ts +11 -0
  151. package/dist/sdk-tools.contract.graph.js +156 -0
  152. package/dist/sdk-tools.contract.graph.js.map +1 -0
  153. package/dist/sdk-tools.contract.js +4107 -4062
  154. package/dist/sdk-tools.contract.js.map +1 -1
  155. package/dist/sdk-tools.contract.registry.d.ts +25 -0
  156. package/dist/sdk-tools.contract.registry.js +5504 -0
  157. package/dist/sdk-tools.contract.registry.js.map +1 -0
  158. package/dist/sdk-tools.contract.types.d.ts +15 -0
  159. package/dist/sdk-tools.contract.types.js +3 -0
  160. package/dist/sdk-tools.contract.types.js.map +1 -0
  161. package/dist/sdk-tools.contract.values-LuBh95zg.d.ts +58 -0
  162. package/dist/sdk-tools.contract.values.d.ts +7 -0
  163. package/dist/sdk-tools.contract.values.js +5581 -0
  164. package/dist/sdk-tools.contract.values.js.map +1 -0
  165. package/dist/sdk-tools.contract.workflow.d.ts +17 -0
  166. package/dist/sdk-tools.contract.workflow.js +287 -0
  167. package/dist/sdk-tools.contract.workflow.js.map +1 -0
  168. package/dist/tenant-client.contract.d.ts +5 -1
  169. package/dist/tenant-client.contract.js +5 -0
  170. package/dist/tenant-client.contract.js.map +1 -1
  171. package/dist/tool-contracts.d.ts +34 -1
  172. package/dist/tool-contracts.graph.d.ts +18 -0
  173. package/dist/tool-contracts.graph.js +378 -0
  174. package/dist/tool-contracts.graph.js.map +1 -0
  175. package/dist/tool-contracts.intelligence-evidence.d.ts +15 -0
  176. package/dist/tool-contracts.intelligence-evidence.js +303 -0
  177. package/dist/tool-contracts.intelligence-evidence.js.map +1 -0
  178. package/dist/tool-contracts.js +155 -118
  179. package/dist/tool-contracts.js.map +1 -1
  180. package/dist/tool-contracts.lifecycle.d.ts +13 -0
  181. package/dist/tool-contracts.lifecycle.js +410 -0
  182. package/dist/tool-contracts.lifecycle.js.map +1 -0
  183. package/dist/tool-contracts.nodes-lenses.d.ts +17 -0
  184. package/dist/tool-contracts.nodes-lenses.js +334 -0
  185. package/dist/tool-contracts.nodes-lenses.js.map +1 -0
  186. package/dist/tool-contracts.ontology.d.ts +16 -0
  187. package/dist/tool-contracts.ontology.js +344 -0
  188. package/dist/tool-contracts.ontology.js.map +1 -0
  189. package/dist/tool-contracts.pipeline-coordination.d.ts +25 -0
  190. package/dist/tool-contracts.pipeline-coordination.js +684 -0
  191. package/dist/tool-contracts.pipeline-coordination.js.map +1 -0
  192. package/dist/tool-contracts.policy-observation-task-topic.d.ts +25 -0
  193. package/dist/tool-contracts.policy-observation-task-topic.js +740 -0
  194. package/dist/tool-contracts.policy-observation-task-topic.js.map +1 -0
  195. package/dist/tool-contracts.questions-listing.d.ts +27 -0
  196. package/dist/tool-contracts.questions-listing.js +782 -0
  197. package/dist/tool-contracts.questions-listing.js.map +1 -0
  198. package/dist/tool-contracts.types.d.ts +34 -0
  199. package/dist/tool-contracts.types.js +3 -0
  200. package/dist/tool-contracts.types.js.map +1 -0
  201. package/dist/tool-contracts.values-DjctSW7S.d.ts +147 -0
  202. package/dist/tool-contracts.values.d.ts +11 -0
  203. package/dist/tool-contracts.values.js +4398 -0
  204. package/dist/tool-contracts.values.js.map +1 -0
  205. package/dist/tool-contracts.worktrees.d.ts +8 -0
  206. package/dist/tool-contracts.worktrees.js +280 -0
  207. package/dist/tool-contracts.worktrees.js.map +1 -0
  208. package/package.json +3 -11
  209. package/dist/dsl-DVPthQGY.d.ts +0 -110
  210. package/dist/index-CM1Pl_vI.d.ts +0 -28
  211. package/dist/sdk-tools.contract-CKmSsrZ2.d.ts +0 -146
  212. package/dist/tool-contracts-C_xvM9q2.d.ts +0 -326
  213. package/dist/{edge-policy-manifest-Dw5IhT1L.d.ts → edge-policy-manifest-4KOSP4nk.d.ts} +2 -2
@@ -1,27 +1,4 @@
1
- // src/types/reasoning-method.ts
2
- var REASONING_METHODS = [
3
- "deductive",
4
- "inductive",
5
- "abductive",
6
- "analogical",
7
- "causal",
8
- "correlational",
9
- "testimonial",
10
- "statistical",
11
- "implicit",
12
- "pattern_match"
13
- ];
14
-
15
- // src/lens-workflow.contract.ts
16
- var LENS_PERSPECTIVE_TYPES = [
17
- "investigation",
18
- "monitoring",
19
- "analysis",
20
- "comparison",
21
- "taxonomy"
22
- ];
23
-
24
- // src/tool-contracts.ts
1
+ // src/tool-contracts.lifecycle.ts
25
2
  var CREATE_BELIEF = {
26
3
  name: "create_belief",
27
4
  description: "Commit a new belief (knowledge unit) to the reasoning graph. Like `git commit` \u2014 creates an atomic, traceable knowledge object with a prior. Creation stores the vacuous opinion `(0, 0, 1, a)`; use modulate_confidence to record the first evidential update.",
@@ -427,6 +404,8 @@ var FLAG_CONTRADICTION = {
427
404
  ontologyPrimitive: "belief",
428
405
  tier: "showcase"
429
406
  };
407
+
408
+ // src/tool-contracts.worktrees.ts
430
409
  var ADD_WORKTREE = {
431
410
  name: "add_worktree",
432
411
  description: "Check out a branch into an active worktree for investigation. Like `git worktree add <branch>` \u2014 creates independent working state on a thematic branch. Beliefs committed within the worktree can be freely amended (draft code on a feature branch). When investigation is complete, `merge` integrates findings into main.",
@@ -642,6 +621,82 @@ var MERGE = {
642
621
  ontologyPrimitive: "worktree",
643
622
  tier: "showcase"
644
623
  };
624
+ var PUSH = {
625
+ name: "push",
626
+ description: "Push scored beliefs from a merged worktree to other contexts. Like `git push` \u2014 makes local findings available on the remote. Only merged beliefs can be pushed. Publication makes findings visible to other projects, teams, or external consumers.",
627
+ parameters: {
628
+ worktreeId: {
629
+ type: "string",
630
+ description: "The merged worktree whose findings to push"
631
+ },
632
+ targetContext: {
633
+ type: "string",
634
+ description: "Where to push (e.g., 'portfolio', 'ic_review', 'external')"
635
+ },
636
+ beliefIds: {
637
+ type: "array",
638
+ description: "Optional subset of beliefs to push (default: all scored)"
639
+ }
640
+ },
641
+ required: ["worktreeId", "targetContext"],
642
+ response: {
643
+ description: "Push result",
644
+ fields: {
645
+ pushedCount: "number",
646
+ targetContext: "string",
647
+ pushedAt: "number"
648
+ }
649
+ },
650
+ ownerModule: "workflow-engine",
651
+ ontologyPrimitive: "worktree",
652
+ tier: "workhorse"
653
+ };
654
+ var OPEN_PULL_REQUEST = {
655
+ name: "open_pull_request",
656
+ description: "Open a pull request for peer review before merging a worktree. Like opening a `git pull request` \u2014 the worktree's findings are ready but await approval before merge. Reviewers can approve, request changes, or block the merge. This is the gate between draft work and scored knowledge.",
657
+ parameters: {
658
+ worktreeId: {
659
+ type: "string",
660
+ description: "The worktree to submit for review"
661
+ },
662
+ reviewers: {
663
+ type: "array",
664
+ description: "User IDs of requested reviewers"
665
+ },
666
+ summary: {
667
+ type: "string",
668
+ description: "Summary of findings and why they're ready for merge"
669
+ }
670
+ },
671
+ required: ["worktreeId", "summary"],
672
+ response: {
673
+ description: "The pull request",
674
+ fields: {
675
+ pullRequestId: "string",
676
+ worktreeId: "string",
677
+ status: "string \u2014 'pending_review'"
678
+ }
679
+ },
680
+ ownerModule: "workflow-engine",
681
+ ontologyPrimitive: "worktree",
682
+ tier: "showcase"
683
+ };
684
+
685
+ // src/types/reasoning-method.ts
686
+ var REASONING_METHODS = [
687
+ "deductive",
688
+ "inductive",
689
+ "abductive",
690
+ "analogical",
691
+ "causal",
692
+ "correlational",
693
+ "testimonial",
694
+ "statistical",
695
+ "implicit",
696
+ "pattern_match"
697
+ ];
698
+
699
+ // src/tool-contracts.graph.ts
645
700
  var QUERY_LINEAGE = {
646
701
  name: "query_lineage",
647
702
  description: "Trace a belief's full ancestry \u2014 every fork, score, and confidence modulation. Like `git log --graph`. Returns the complete evolution chain showing how understanding developed over time. Lineage is permanent and can never be erased (Invariant #3).",
@@ -841,6 +896,39 @@ var FIND_CONTRADICTIONS = {
841
896
  ontologyPrimitive: "belief",
842
897
  tier: "showcase"
843
898
  };
899
+ var BISECT_CONFIDENCE = {
900
+ name: "bisect_confidence",
901
+ description: "Find when a belief's confidence diverged from reality. Like `git bisect` \u2014 binary search through the credence history to find the inflection point. Given a belief that is now known to be wrong (or right), traces back through confidence modulations to identify which evidence or event caused the divergence.",
902
+ parameters: {
903
+ nodeId: { type: "string", description: "The belief to bisect" },
904
+ expectedDirection: {
905
+ type: "string",
906
+ description: "Was confidence too high or too low?",
907
+ enum: ["overconfident", "underconfident"]
908
+ },
909
+ timeRange: {
910
+ type: "object",
911
+ description: "Optional time range to search within: { start: number, end: number }"
912
+ }
913
+ },
914
+ required: ["nodeId", "expectedDirection"],
915
+ response: {
916
+ description: "The inflection point in confidence history",
917
+ fields: {
918
+ beliefId: "string \u2014 canonical belief ID",
919
+ expectedDirection: "string \u2014 overconfident | underconfident",
920
+ inflectionEntry: "object \u2014 the confidence modulation where divergence began",
921
+ triggerEvent: "string | null \u2014 what caused the divergence",
922
+ confidenceBefore: "number | null",
923
+ confidenceAfter: "number | null",
924
+ totalEntries: "number",
925
+ inflectionIndex: "number | null"
926
+ }
927
+ },
928
+ ownerModule: "graph-search",
929
+ ontologyPrimitive: "belief",
930
+ tier: "showcase"
931
+ };
844
932
  var CREATE_EDGE = {
845
933
  name: "create_edge",
846
934
  description: "Commit a typed relationship between two nodes in the reasoning graph. Like `git commit` \u2014 an atomic write that declares a dependency between nodes. Accepts any public epistemic edge type between public graph node refs so agents can author the full spine.",
@@ -968,6 +1056,17 @@ var BATCH_CREATE_EDGES = {
968
1056
  ontologyPrimitive: "edge",
969
1057
  tier: "workhorse"
970
1058
  };
1059
+
1060
+ // src/lens-workflow.contract.ts
1061
+ var LENS_PERSPECTIVE_TYPES = [
1062
+ "investigation",
1063
+ "monitoring",
1064
+ "analysis",
1065
+ "comparison",
1066
+ "taxonomy"
1067
+ ];
1068
+
1069
+ // src/tool-contracts.nodes-lenses.ts
971
1070
  var CREATE_EPISTEMIC_NODE = {
972
1071
  name: "create_epistemic_node",
973
1072
  description: "Commit a generic epistemic graph node. Like `git commit` \u2014 creates a canonical node in the public spine for topics, beliefs, evidence, questions, answers, sources, and entities.",
@@ -1288,99 +1387,8 @@ var REMOVE_LENS_FROM_TOPIC = {
1288
1387
  ontologyPrimitive: "lens",
1289
1388
  tier: "workhorse"
1290
1389
  };
1291
- var PUSH = {
1292
- name: "push",
1293
- description: "Push scored beliefs from a merged worktree to other contexts. Like `git push` \u2014 makes local findings available on the remote. Only merged beliefs can be pushed. Publication makes findings visible to other projects, teams, or external consumers.",
1294
- parameters: {
1295
- worktreeId: {
1296
- type: "string",
1297
- description: "The merged worktree whose findings to push"
1298
- },
1299
- targetContext: {
1300
- type: "string",
1301
- description: "Where to push (e.g., 'portfolio', 'ic_review', 'external')"
1302
- },
1303
- beliefIds: {
1304
- type: "array",
1305
- description: "Optional subset of beliefs to push (default: all scored)"
1306
- }
1307
- },
1308
- required: ["worktreeId", "targetContext"],
1309
- response: {
1310
- description: "Push result",
1311
- fields: {
1312
- pushedCount: "number",
1313
- targetContext: "string",
1314
- pushedAt: "number"
1315
- }
1316
- },
1317
- ownerModule: "workflow-engine",
1318
- ontologyPrimitive: "worktree",
1319
- tier: "workhorse"
1320
- };
1321
- var OPEN_PULL_REQUEST = {
1322
- name: "open_pull_request",
1323
- description: "Open a pull request for peer review before merging a worktree. Like opening a `git pull request` \u2014 the worktree's findings are ready but await approval before merge. Reviewers can approve, request changes, or block the merge. This is the gate between draft work and scored knowledge.",
1324
- parameters: {
1325
- worktreeId: {
1326
- type: "string",
1327
- description: "The worktree to submit for review"
1328
- },
1329
- reviewers: {
1330
- type: "array",
1331
- description: "User IDs of requested reviewers"
1332
- },
1333
- summary: {
1334
- type: "string",
1335
- description: "Summary of findings and why they're ready for merge"
1336
- }
1337
- },
1338
- required: ["worktreeId", "summary"],
1339
- response: {
1340
- description: "The pull request",
1341
- fields: {
1342
- pullRequestId: "string",
1343
- worktreeId: "string",
1344
- status: "string \u2014 'pending_review'"
1345
- }
1346
- },
1347
- ownerModule: "workflow-engine",
1348
- ontologyPrimitive: "worktree",
1349
- tier: "showcase"
1350
- };
1351
- var BISECT_CONFIDENCE = {
1352
- name: "bisect_confidence",
1353
- description: "Find when a belief's confidence diverged from reality. Like `git bisect` \u2014 binary search through the credence history to find the inflection point. Given a belief that is now known to be wrong (or right), traces back through confidence modulations to identify which evidence or event caused the divergence.",
1354
- parameters: {
1355
- nodeId: { type: "string", description: "The belief to bisect" },
1356
- expectedDirection: {
1357
- type: "string",
1358
- description: "Was confidence too high or too low?",
1359
- enum: ["overconfident", "underconfident"]
1360
- },
1361
- timeRange: {
1362
- type: "object",
1363
- description: "Optional time range to search within: { start: number, end: number }"
1364
- }
1365
- },
1366
- required: ["nodeId", "expectedDirection"],
1367
- response: {
1368
- description: "The inflection point in confidence history",
1369
- fields: {
1370
- beliefId: "string \u2014 canonical belief ID",
1371
- expectedDirection: "string \u2014 overconfident | underconfident",
1372
- inflectionEntry: "object \u2014 the confidence modulation where divergence began",
1373
- triggerEvent: "string | null \u2014 what caused the divergence",
1374
- confidenceBefore: "number | null",
1375
- confidenceAfter: "number | null",
1376
- totalEntries: "number",
1377
- inflectionIndex: "number | null"
1378
- }
1379
- },
1380
- ownerModule: "graph-search",
1381
- ontologyPrimitive: "belief",
1382
- tier: "showcase"
1383
- };
1390
+
1391
+ // src/tool-contracts.intelligence-evidence.ts
1384
1392
  var DETECT_CONFIRMATION_BIAS = {
1385
1393
  name: "detect_confirmation_bias",
1386
1394
  description: "Detect confirmation bias in the evidence graph. Like `git diff --stat` for reasoning \u2014 analyzes the ratio of supporting vs challenging evidence per belief and flags beliefs where the evidence is suspiciously one-sided. Returns risk classification (critical/high/moderate/healthy).",
@@ -1679,6 +1687,8 @@ var LINK_EVIDENCE_TO_BELIEF = {
1679
1687
  ontologyPrimitive: "edge",
1680
1688
  tier: "workhorse"
1681
1689
  };
1690
+
1691
+ // src/tool-contracts.questions-listing.ts
1682
1692
  var CREATE_QUESTION = {
1683
1693
  name: "create_question",
1684
1694
  description: "Commit an investigation question to the reasoning graph. Like `git issue` \u2014 creates a traceable question that drives research and evidence collection. Questions test beliefs and guide worktree investigation.",
@@ -2137,6 +2147,24 @@ var LIST_ALL_WORKTREES = {
2137
2147
  ontologyPrimitive: "worktree",
2138
2148
  tier: "showcase"
2139
2149
  };
2150
+ var GET_WORKTREE = {
2151
+ name: "get_worktree",
2152
+ description: "Get one worktree by ID. Like `git worktree list --porcelain <worktree>` \u2014 inspects one investigation branch without scanning the full pipeline inventory.",
2153
+ parameters: {
2154
+ worktreeId: { type: "string", description: "Canonical worktree ID to retrieve" },
2155
+ id: { type: "string", description: "Legacy alias for worktreeId" }
2156
+ },
2157
+ required: ["worktreeId"],
2158
+ response: {
2159
+ description: "Single worktree record with pipeline metadata",
2160
+ fields: {
2161
+ worktree: "object \u2014 { worktreeId, title, topicId, status, hypothesis, campaign, lane, laneOrderInCampaign, orderInLane, dependsOn, blocks, gate }"
2162
+ }
2163
+ },
2164
+ ownerModule: "workflow-engine",
2165
+ ontologyPrimitive: "worktree",
2166
+ tier: "workhorse"
2167
+ };
2140
2168
  var LIST_CAMPAIGNS = {
2141
2169
  name: "list_campaigns",
2142
2170
  description: "List compact pipeline campaigns with their nested lanes. Use this to see the top-level campaign > lane > worktree shape without pulling the full worktree inventory.",
@@ -2438,6 +2466,8 @@ var COMPILE_CONTEXT = {
2438
2466
  ontologyPrimitive: "graph",
2439
2467
  tier: "showcase"
2440
2468
  };
2469
+
2470
+ // src/tool-contracts.policy-observation-task-topic.ts
2441
2471
  var CHECK_PERMISSION = {
2442
2472
  name: "check_permission",
2443
2473
  description: "Check whether a principal can read or mutate a topic scope. Like `git check-ref-format` for ACLs \u2014 validates whether the requested operation is allowed before execution.",
@@ -3173,6 +3203,8 @@ var GET_GRAPH_GAPS = {
3173
3203
  ontologyPrimitive: "graph",
3174
3204
  tier: "showcase"
3175
3205
  };
3206
+
3207
+ // src/tool-contracts.ontology.ts
3176
3208
  var MANAGE_WRITE_POLICY = {
3177
3209
  name: "manage_write_policy",
3178
3210
  description: "Manage write policies for MCP mutation tools. Like `git config` for write permissions \u2014 sets per-topic or global policies that control which roles can mutate the graph.",
@@ -3512,6 +3544,8 @@ var RESOLVE_EFFECTIVE_ONTOLOGY = {
3512
3544
  ontologyPrimitive: "ontology",
3513
3545
  tier: "workhorse"
3514
3546
  };
3547
+
3548
+ // src/tool-contracts.pipeline-coordination.ts
3515
3549
  var RECORD_SCOPE_LEARNING = {
3516
3550
  name: "record_scope_learning",
3517
3551
  description: "Write a structured learning entry into the epistemic spine. Like `git commit` for scope learnings \u2014 records evidence, can attach to a belief, and can open a follow-up belief/question in one atomic workflow.",
@@ -4191,6 +4225,8 @@ var BEGIN_BUILD_SESSION = {
4191
4225
  tier: "showcase",
4192
4226
  internal: true
4193
4227
  };
4228
+
4229
+ // src/tool-contracts.ts
4194
4230
  var MCP_TOOL_CONTRACTS = {
4195
4231
  // Belief lifecycle (commit, amend, fork, archive)
4196
4232
  create_belief: CREATE_BELIEF,
@@ -4273,6 +4309,7 @@ var MCP_TOOL_CONTRACTS = {
4273
4309
  find_missing_questions: FIND_MISSING_QUESTIONS,
4274
4310
  // Listing & query (workhorse)
4275
4311
  list_beliefs: LIST_BELIEFS,
4312
+ get_worktree: GET_WORKTREE,
4276
4313
  list_worktrees: LIST_WORKTREES,
4277
4314
  list_all_worktrees: LIST_ALL_WORKTREES,
4278
4315
  list_campaigns: LIST_CAMPAIGNS,
@@ -4356,6 +4393,6 @@ function validateGitSemantics(tool) {
4356
4393
  return { valid: true };
4357
4394
  }
4358
4395
 
4359
- export { ACTIVATE_WORKTREE, ADD_EVIDENCE, ADD_WORKTREE, ANALYZE_TOPIC_DENSITY, ANSWER_QUESTION, APPLY_AUTO_BRANCHING, APPLY_LENS_TO_TOPIC, APPLY_ONTOLOGY, ARCHIVE_BELIEF, ARCHIVE_EPISTEMIC_NODE, ARCHIVE_ONTOLOGY, ARCHIVE_QUESTION, BATCH_CREATE_EDGES, BATCH_CREATE_EPISTEMIC_NODES, BEGIN_BUILD_SESSION, BISECT_CONFIDENCE, BROADCAST_MESSAGE, CHECK_PERMISSION, CLAIM_FILES, COMPILE_CONTEXT, COMPLETE_TASK, CREATE_ANSWER, CREATE_BELIEF, CREATE_EDGE, CREATE_EPISTEMIC_CONTRACT, CREATE_EPISTEMIC_NODE, CREATE_EVIDENCE, CREATE_LENS, CREATE_ONTOLOGY, CREATE_ONTOLOGY_VERSION, CREATE_QUESTION, CREATE_TASK, CREATE_TOPIC, DEPRECATE_ONTOLOGY_VERSION, DETECT_CONFIRMATION_BIAS, DISCOVER, DISCOVER_ENTITY_CONNECTIONS, END_SESSION, EVALUATE_CONTRACT, FILTER_BY_PERMISSION, FIND_CONTRADICTIONS, FIND_MISSING_QUESTIONS, FLAG_CONTRADICTION, FORK_BELIEF, GENERATE_SESSION_HANDOFF, GET_AGENT_INBOX, GET_ANSWER, GET_AUDIT_TRAIL, GET_BELIEF, GET_CHANGE_HISTORY, GET_CODE_CONTEXT, GET_CONFIDENCE_HISTORY, GET_CONTRACT_STATUS, GET_EPISTEMIC_NODE, GET_EVIDENCE, GET_FAILURE_LOG, GET_FALSIFICATION_QUESTIONS, GET_GRAPH_GAPS, GET_GRAPH_NEIGHBORHOOD, GET_GRAPH_STRUCTURE_ANALYSIS, GET_HIGH_PRIORITY_QUESTIONS, GET_LATTICE_COVERAGE, GET_OBSERVATION_CONTEXT, GET_ONTOLOGY, GET_QUESTION, GET_TOPIC, GET_TOPIC_COVERAGE, GET_TOPIC_GRAPH_SPINE, GET_TOPIC_TREE, GIT_SEMANTIC_REQUIRED_TOOLS, HEARTBEAT_SESSION, IDENTITY_WHOAMI, INGEST_OBSERVATION, LINK_EVIDENCE, LINK_EVIDENCE_TO_BELIEF, LINK_EVIDENCE_TO_QUESTION, LIST_ACTIVE_SESSIONS, LIST_ALL_WORKTREES, LIST_BELIEFS, LIST_CAMPAIGNS, LIST_EPISTEMIC_NODES, LIST_EVIDENCE, LIST_GRAPH_INTELLIGENCE_QUERIES, LIST_LENSES, LIST_ONTOLOGIES, LIST_QUESTIONS, LIST_TASKS, LIST_TOPICS, LIST_WORKTREES, MANAGE_WRITE_POLICY, MATCH_ENTITY_TYPE, MATERIALIZE_TOPIC_GRAPH, MCP_TOOL_CONTRACTS, MERGE, MODULATE_CONFIDENCE, OPEN_PULL_REQUEST, PIPELINE_SNAPSHOT, PUBLISH_ONTOLOGY_VERSION, PUSH, QUERY_LINEAGE, RECORD_ATTEMPT, RECORD_JUDGMENT, RECORD_SCOPE_LEARNING, REFINE_BELIEF, REFINE_QUESTION, REGISTER_SESSION, REMOVE_EDGE, REMOVE_EDGES_BETWEEN, REMOVE_LENS_FROM_TOPIC, RESOLVE_EFFECTIVE_ONTOLOGY, RESOLVE_INTERACTIVE_PRINCIPAL, RUN_GRAPH_INTELLIGENCE_QUERY, SEARCH_BELIEFS, SEARCH_EVIDENCE, SEED_BELIEF_LATTICE, SEND_AGENT_MESSAGE, SUPERSEDE_EPISTEMIC_NODE, TRACE_ENTITY_IMPACT, TRAVERSE_GRAPH, TRIGGER_BELIEF_REVIEW, UPDATE_EDGE, UPDATE_EPISTEMIC_NODE, UPDATE_ONTOLOGY, UPDATE_QUESTION_STATUS, UPDATE_TASK, UPDATE_TOPIC, UPDATE_WORKTREE_METADATA, UPDATE_WORKTREE_TARGETS, VERIFY_EPISTEMIC_NODE, validateGitSemantics };
4396
+ export { ACTIVATE_WORKTREE, ADD_EVIDENCE, ADD_WORKTREE, ANALYZE_TOPIC_DENSITY, ANSWER_QUESTION, APPLY_AUTO_BRANCHING, APPLY_LENS_TO_TOPIC, APPLY_ONTOLOGY, ARCHIVE_BELIEF, ARCHIVE_EPISTEMIC_NODE, ARCHIVE_ONTOLOGY, ARCHIVE_QUESTION, BATCH_CREATE_EDGES, BATCH_CREATE_EPISTEMIC_NODES, BEGIN_BUILD_SESSION, BISECT_CONFIDENCE, BROADCAST_MESSAGE, CHECK_PERMISSION, CLAIM_FILES, COMPILE_CONTEXT, COMPLETE_TASK, CREATE_ANSWER, CREATE_BELIEF, CREATE_EDGE, CREATE_EPISTEMIC_CONTRACT, CREATE_EPISTEMIC_NODE, CREATE_EVIDENCE, CREATE_LENS, CREATE_ONTOLOGY, CREATE_ONTOLOGY_VERSION, CREATE_QUESTION, CREATE_TASK, CREATE_TOPIC, DEPRECATE_ONTOLOGY_VERSION, DETECT_CONFIRMATION_BIAS, DISCOVER, DISCOVER_ENTITY_CONNECTIONS, END_SESSION, EVALUATE_CONTRACT, FILTER_BY_PERMISSION, FIND_CONTRADICTIONS, FIND_MISSING_QUESTIONS, FLAG_CONTRADICTION, FORK_BELIEF, GENERATE_SESSION_HANDOFF, GET_AGENT_INBOX, GET_ANSWER, GET_AUDIT_TRAIL, GET_BELIEF, GET_CHANGE_HISTORY, GET_CODE_CONTEXT, GET_CONFIDENCE_HISTORY, GET_CONTRACT_STATUS, GET_EPISTEMIC_NODE, GET_EVIDENCE, GET_FAILURE_LOG, GET_FALSIFICATION_QUESTIONS, GET_GRAPH_GAPS, GET_GRAPH_NEIGHBORHOOD, GET_GRAPH_STRUCTURE_ANALYSIS, GET_HIGH_PRIORITY_QUESTIONS, GET_LATTICE_COVERAGE, GET_OBSERVATION_CONTEXT, GET_ONTOLOGY, GET_QUESTION, GET_TOPIC, GET_TOPIC_COVERAGE, GET_TOPIC_GRAPH_SPINE, GET_TOPIC_TREE, GET_WORKTREE, GIT_SEMANTIC_REQUIRED_TOOLS, HEARTBEAT_SESSION, IDENTITY_WHOAMI, INGEST_OBSERVATION, LINK_EVIDENCE, LINK_EVIDENCE_TO_BELIEF, LINK_EVIDENCE_TO_QUESTION, LIST_ACTIVE_SESSIONS, LIST_ALL_WORKTREES, LIST_BELIEFS, LIST_CAMPAIGNS, LIST_EPISTEMIC_NODES, LIST_EVIDENCE, LIST_GRAPH_INTELLIGENCE_QUERIES, LIST_LENSES, LIST_ONTOLOGIES, LIST_QUESTIONS, LIST_TASKS, LIST_TOPICS, LIST_WORKTREES, MANAGE_WRITE_POLICY, MATCH_ENTITY_TYPE, MATERIALIZE_TOPIC_GRAPH, MCP_TOOL_CONTRACTS, MERGE, MODULATE_CONFIDENCE, OPEN_PULL_REQUEST, PIPELINE_SNAPSHOT, PUBLISH_ONTOLOGY_VERSION, PUSH, QUERY_LINEAGE, RECORD_ATTEMPT, RECORD_JUDGMENT, RECORD_SCOPE_LEARNING, REFINE_BELIEF, REFINE_QUESTION, REGISTER_SESSION, REMOVE_EDGE, REMOVE_EDGES_BETWEEN, REMOVE_LENS_FROM_TOPIC, RESOLVE_EFFECTIVE_ONTOLOGY, RESOLVE_INTERACTIVE_PRINCIPAL, RUN_GRAPH_INTELLIGENCE_QUERY, SEARCH_BELIEFS, SEARCH_EVIDENCE, SEED_BELIEF_LATTICE, SEND_AGENT_MESSAGE, SUPERSEDE_EPISTEMIC_NODE, TRACE_ENTITY_IMPACT, TRAVERSE_GRAPH, TRIGGER_BELIEF_REVIEW, UPDATE_EDGE, UPDATE_EPISTEMIC_NODE, UPDATE_ONTOLOGY, UPDATE_QUESTION_STATUS, UPDATE_TASK, UPDATE_TOPIC, UPDATE_WORKTREE_METADATA, UPDATE_WORKTREE_TARGETS, VERIFY_EPISTEMIC_NODE, validateGitSemantics };
4360
4397
  //# sourceMappingURL=tool-contracts.js.map
4361
4398
  //# sourceMappingURL=tool-contracts.js.map