@lucern/contracts 0.3.0-alpha.17 → 0.3.0-alpha.3

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 (316) hide show
  1. package/CHANGELOG.md +0 -10
  2. package/dist/api-enums.contract.d.ts +3 -5
  3. package/dist/api-enums.contract.js +12 -14
  4. package/dist/api-enums.contract.js.map +1 -1
  5. package/dist/auth-context.contract.js +2 -14
  6. package/dist/auth-context.contract.js.map +1 -1
  7. package/dist/auth-session.contract.js +2 -14
  8. package/dist/auth-session.contract.js.map +1 -1
  9. package/dist/auth.contract.d.ts +1 -1
  10. package/dist/auth.contract.js +2 -14
  11. package/dist/auth.contract.js.map +1 -1
  12. package/dist/component-boundary.contract.d.ts +1 -1
  13. package/dist/component-boundary.contract.js +26 -46
  14. package/dist/component-boundary.contract.js.map +1 -1
  15. package/dist/context-pack.contract.d.ts +3 -5
  16. package/dist/context-pack.contract.js.map +1 -1
  17. package/dist/{defineTable-t1wr5wgn.d.ts → defineTable-CBQ03FXl.d.ts} +1 -1
  18. package/dist/{dsl-DVPthQGY.d.ts → dsl-BgpoVOVQ.d.ts} +2 -2
  19. package/dist/dsl.d.ts +2 -2
  20. package/dist/dsl.js +4 -1
  21. package/dist/dsl.js.map +1 -1
  22. package/dist/function-registry/beliefs.d.ts +51 -64
  23. package/dist/function-registry/beliefs.js +57 -817
  24. package/dist/function-registry/beliefs.js.map +1 -1
  25. package/dist/function-registry/coding.d.ts +6 -15
  26. package/dist/function-registry/coding.js +43 -866
  27. package/dist/function-registry/coding.js.map +1 -1
  28. package/dist/function-registry/context.d.ts +16 -22
  29. package/dist/function-registry/context.js +46 -805
  30. package/dist/function-registry/context.js.map +1 -1
  31. package/dist/function-registry/contracts.d.ts +3 -9
  32. package/dist/function-registry/contracts.js +39 -770
  33. package/dist/function-registry/contracts.js.map +1 -1
  34. package/dist/function-registry/coordination.d.ts +9 -21
  35. package/dist/function-registry/coordination.js +39 -770
  36. package/dist/function-registry/coordination.js.map +1 -1
  37. package/dist/function-registry/edges.d.ts +2 -167
  38. package/dist/function-registry/edges.js +71 -978
  39. package/dist/function-registry/edges.js.map +1 -1
  40. package/dist/function-registry/evidence.d.ts +41 -52
  41. package/dist/function-registry/evidence.js +62 -826
  42. package/dist/function-registry/evidence.js.map +1 -1
  43. package/dist/function-registry/graph.d.ts +66 -162
  44. package/dist/function-registry/graph.js +46 -886
  45. package/dist/function-registry/graph.js.map +1 -1
  46. package/dist/function-registry/helpers.d.ts +4 -7
  47. package/dist/function-registry/helpers.js +40 -771
  48. package/dist/function-registry/helpers.js.map +1 -1
  49. package/dist/function-registry/identity.d.ts +16 -62
  50. package/dist/function-registry/identity.js +45 -793
  51. package/dist/function-registry/identity.js.map +1 -1
  52. package/dist/function-registry/index.d.ts +3 -5
  53. package/dist/function-registry/index.js +43 -777
  54. package/dist/function-registry/index.js.map +1 -1
  55. package/dist/function-registry/judgments.d.ts +11 -16
  56. package/dist/function-registry/judgments.js +42 -782
  57. package/dist/function-registry/judgments.js.map +1 -1
  58. package/dist/function-registry/legacy.d.ts +1 -5
  59. package/dist/function-registry/legacy.js +39 -770
  60. package/dist/function-registry/legacy.js.map +1 -1
  61. package/dist/function-registry/lenses.d.ts +21 -28
  62. package/dist/function-registry/lenses.js +42 -793
  63. package/dist/function-registry/lenses.js.map +1 -1
  64. package/dist/function-registry/manifest.d.ts +6 -6
  65. package/dist/function-registry/manifest.js +2 -19
  66. package/dist/function-registry/manifest.js.map +1 -1
  67. package/dist/function-registry/ontologies.d.ts +56 -70
  68. package/dist/function-registry/ontologies.js +45 -788
  69. package/dist/function-registry/ontologies.js.map +1 -1
  70. package/dist/function-registry/pipeline.d.ts +16 -22
  71. package/dist/function-registry/pipeline.js +42 -779
  72. package/dist/function-registry/pipeline.js.map +1 -1
  73. package/dist/function-registry/questions.d.ts +61 -76
  74. package/dist/function-registry/questions.js +52 -869
  75. package/dist/function-registry/questions.js.map +1 -1
  76. package/dist/function-registry/tasks.d.ts +21 -28
  77. package/dist/function-registry/tasks.js +48 -845
  78. package/dist/function-registry/tasks.js.map +1 -1
  79. package/dist/function-registry/topics.d.ts +26 -114
  80. package/dist/function-registry/topics.js +43 -852
  81. package/dist/function-registry/topics.js.map +1 -1
  82. package/dist/function-registry/types.d.ts +3 -7
  83. package/dist/function-registry/worktrees.d.ts +51 -104
  84. package/dist/function-registry/worktrees.js +51 -925
  85. package/dist/function-registry/worktrees.js.map +1 -1
  86. package/dist/gateway.contract.d.ts +0 -5
  87. package/dist/gateway.contract.js.map +1 -1
  88. package/dist/generated/convexSchemas.d.ts +3 -3
  89. package/dist/generated/convexSchemas.js +18 -38
  90. package/dist/generated/convexSchemas.js.map +1 -1
  91. package/dist/generated/schema-manifest.json +114 -1221
  92. package/dist/generated/tableOwnership.d.ts +28 -48
  93. package/dist/generated/tableOwnership.js +26 -66
  94. package/dist/generated/tableOwnership.js.map +1 -1
  95. package/dist/generated/tier-expectations.json +9 -64
  96. package/dist/graph-types/index.d.ts +1 -5
  97. package/dist/graph-types/index.js +4 -15
  98. package/dist/graph-types/index.js.map +1 -1
  99. package/dist/index-CV-0_VWJ.d.ts +25 -0
  100. package/dist/index.d.ts +669 -28
  101. package/dist/index.js +400 -34707
  102. package/dist/index.js.map +1 -1
  103. package/dist/lens-filter.contract.js +3 -4
  104. package/dist/lens-filter.contract.js.map +1 -1
  105. package/dist/lens-workflow.contract.js +3 -4
  106. package/dist/lens-workflow.contract.js.map +1 -1
  107. package/dist/mcp-gateway-boundary.contract.d.ts +3 -23
  108. package/dist/mcp-gateway-boundary.contract.js +0 -2
  109. package/dist/mcp-gateway-boundary.contract.js.map +1 -1
  110. package/dist/schema-helpers/enumValidation.js +5 -2
  111. package/dist/schema-helpers/enumValidation.js.map +1 -1
  112. package/dist/schema-helpers/spine/nodes/decision.js +1 -2
  113. package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
  114. package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
  115. package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
  116. package/dist/schemas/component-table-manifest.d.ts +6 -6
  117. package/dist/schemas/component-table-manifest.js +2 -2
  118. package/dist/schemas/component-table-manifest.js.map +1 -1
  119. package/dist/schemas/enums.d.ts +2 -5
  120. package/dist/schemas/enums.js +2 -5
  121. package/dist/schemas/enums.js.map +1 -1
  122. package/dist/schemas/index.d.ts +3 -3
  123. package/dist/schemas/index.js +139 -1130
  124. package/dist/schemas/index.js.map +1 -1
  125. package/dist/schemas/manifest.d.ts +948 -2948
  126. package/dist/schemas/manifest.js +137 -1128
  127. package/dist/schemas/manifest.js.map +1 -1
  128. package/dist/schemas/sl-opinion.d.ts +4 -4
  129. package/dist/schemas/tables/{controlPlane → identity}/agent.d.ts +1 -1
  130. package/dist/schemas/tables/{controlPlane → identity}/agent.js +3 -3
  131. package/dist/schemas/tables/identity/agent.js.map +1 -0
  132. package/dist/schemas/tables/{controlPlane → identity}/epistemic.d.ts +1 -1
  133. package/dist/schemas/tables/{controlPlane → identity}/epistemic.js +3 -3
  134. package/dist/schemas/tables/identity/epistemic.js.map +1 -0
  135. package/dist/schemas/tables/{controlPlane → identity}/model.d.ts +1 -1
  136. package/dist/schemas/tables/{controlPlane → identity}/model.js +6 -6
  137. package/dist/schemas/tables/identity/model.js.map +1 -0
  138. package/dist/schemas/tables/{controlPlane → identity}/platform.d.ts +11 -11
  139. package/dist/schemas/tables/{controlPlane → identity}/platform.js +18 -18
  140. package/dist/schemas/tables/identity/platform.js.map +1 -0
  141. package/dist/schemas/tables/{controlPlane → identity}/project.d.ts +1 -1
  142. package/dist/schemas/tables/{controlPlane → identity}/project.js +3 -3
  143. package/dist/schemas/tables/identity/project.js.map +1 -0
  144. package/dist/schemas/tables/{controlPlane → identity}/user.d.ts +1 -1
  145. package/dist/schemas/tables/{controlPlane → identity}/user.js +3 -3
  146. package/dist/schemas/tables/identity/user.js.map +1 -0
  147. package/dist/schemas/tables/kernel/config.d.ts +1 -1
  148. package/dist/schemas/tables/kernel/config.js.map +1 -1
  149. package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
  150. package/dist/schemas/tables/kernel/coordination.js.map +1 -1
  151. package/dist/schemas/tables/kernel/decision.d.ts +1 -1
  152. package/dist/schemas/tables/kernel/decision.js.map +1 -1
  153. package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
  154. package/dist/schemas/tables/kernel/embedding.js.map +1 -1
  155. package/dist/schemas/tables/kernel/epistemic.d.ts +7 -7
  156. package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
  157. package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
  158. package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
  159. package/dist/schemas/tables/kernel/infra.d.ts +5 -5
  160. package/dist/schemas/tables/kernel/infra.js.map +1 -1
  161. package/dist/schemas/tables/kernel/intelligence.d.ts +11 -11
  162. package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
  163. package/dist/schemas/tables/kernel/lens.d.ts +5 -5
  164. package/dist/schemas/tables/kernel/lens.js.map +1 -1
  165. package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
  166. package/dist/schemas/tables/kernel/ontology.js.map +1 -1
  167. package/dist/schemas/tables/kernel/platform.d.ts +13 -13
  168. package/dist/schemas/tables/kernel/platform.js.map +1 -1
  169. package/dist/schemas/tables/kernel/spine.d.ts +4 -5
  170. package/dist/schemas/tables/kernel/spine.js +2 -6
  171. package/dist/schemas/tables/kernel/spine.js.map +1 -1
  172. package/dist/schemas/tables/kernel/task.d.ts +43 -43
  173. package/dist/schemas/tables/kernel/task.js.map +1 -1
  174. package/dist/schemas/tables/kernel/topic.d.ts +1 -1
  175. package/dist/schemas/tables/kernel/topic.js +1 -5
  176. package/dist/schemas/tables/kernel/topic.js.map +1 -1
  177. package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
  178. package/dist/schemas/tables/kernel/workflow.js.map +1 -1
  179. package/dist/schemas/tables/kernel/worktree.d.ts +55 -55
  180. package/dist/schemas/tables/kernel/worktree.js.map +1 -1
  181. package/dist/schemas/tables/mc/identity.d.ts +4 -21
  182. package/dist/schemas/tables/mc/identity.js +1 -32
  183. package/dist/schemas/tables/mc/identity.js.map +1 -1
  184. package/dist/schemas/tables/mc/methodology.d.ts +1 -1
  185. package/dist/schemas/tables/mc/methodology.js.map +1 -1
  186. package/dist/schemas/tables/mc/pack.d.ts +21 -21
  187. package/dist/schemas/tables/mc/pack.js.map +1 -1
  188. package/dist/schemas/tables/mc/policy.d.ts +2 -2
  189. package/dist/schemas/tables/mc/policy.js +1 -1
  190. package/dist/schemas/tables/mc/policy.js.map +1 -1
  191. package/dist/schemas/tables/mc/registry.d.ts +5 -5
  192. package/dist/schemas/tables/mc/registry.js.map +1 -1
  193. package/dist/schemas/tables/mc/runtime.d.ts +3 -109
  194. package/dist/schemas/tables/mc/runtime.js +104 -330
  195. package/dist/schemas/tables/mc/runtime.js.map +1 -1
  196. package/dist/schemas/tables/mc/tenant.d.ts +2 -4
  197. package/dist/schemas/tables/mc/tenant.js +1 -3
  198. package/dist/schemas/tables/mc/tenant.js.map +1 -1
  199. package/dist/schemas/tables/mc/workspace.d.ts +5 -28
  200. package/dist/schemas/tables/mc/workspace.js +2 -36
  201. package/dist/schemas/tables/mc/workspace.js.map +1 -1
  202. package/dist/sdk-methods.contract.d.ts +2 -2
  203. package/dist/{sdk-tools.contract-CKmSsrZ2.d.ts → sdk-tools.contract-S4ia0TTo.d.ts} +2 -2
  204. package/dist/sdk-tools.contract.d.ts +2 -2
  205. package/dist/sdk-tools.contract.js +27 -719
  206. package/dist/sdk-tools.contract.js.map +1 -1
  207. package/dist/tenant-client.contract.d.ts +14 -102
  208. package/dist/tenant-client.contract.js +12 -113
  209. package/dist/tenant-client.contract.js.map +1 -1
  210. package/dist/{tool-contracts-C_xvM9q2.d.ts → tool-contracts-C92-9ueT.d.ts} +2 -38
  211. package/dist/tool-contracts.d.ts +1 -1
  212. package/dist/tool-contracts.js +28 -720
  213. package/dist/tool-contracts.js.map +1 -1
  214. package/package.json +1 -30
  215. package/dist/component-host-boundary.contract.d.ts +0 -46
  216. package/dist/component-host-boundary.contract.js +0 -60
  217. package/dist/component-host-boundary.contract.js.map +0 -1
  218. package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +0 -133
  219. package/dist/function-registry/nodes.d.ts +0 -412
  220. package/dist/function-registry/nodes.js +0 -5354
  221. package/dist/function-registry/nodes.js.map +0 -1
  222. package/dist/function-registry-input-audit.d.ts +0 -13
  223. package/dist/function-registry-input-audit.js +0 -166
  224. package/dist/function-registry-input-audit.js.map +0 -1
  225. package/dist/generated/infisicalRuntimeEnv.d.ts +0 -70
  226. package/dist/generated/infisicalRuntimeEnv.js +0 -27345
  227. package/dist/generated/infisicalRuntimeEnv.js.map +0 -1
  228. package/dist/generated/lucernGatewayEnv.d.ts +0 -17
  229. package/dist/generated/lucernGatewayEnv.js +0 -38
  230. package/dist/generated/lucernGatewayEnv.js.map +0 -1
  231. package/dist/generated/lucernWebPublicEnv.d.ts +0 -26
  232. package/dist/generated/lucernWebPublicEnv.js +0 -32
  233. package/dist/generated/lucernWebPublicEnv.js.map +0 -1
  234. package/dist/generated/lucernWebServerEnv.d.ts +0 -33
  235. package/dist/generated/lucernWebServerEnv.js +0 -51
  236. package/dist/generated/lucernWebServerEnv.js.map +0 -1
  237. package/dist/graph-intelligence.contract.d.ts +0 -506
  238. package/dist/graph-intelligence.contract.js +0 -595
  239. package/dist/graph-intelligence.contract.js.map +0 -1
  240. package/dist/index-CM1Pl_vI.d.ts +0 -28
  241. package/dist/infisical-runtime.contract.d.ts +0 -1889
  242. package/dist/infisical-runtime.contract.js +0 -3235
  243. package/dist/infisical-runtime.contract.js.map +0 -1
  244. package/dist/manifests/edge-policy-manifest.d.ts +0 -2
  245. package/dist/manifests/edge-policy-manifest.data.d.ts +0 -13
  246. package/dist/manifests/edge-policy-manifest.data.js +0 -26
  247. package/dist/manifests/edge-policy-manifest.data.js.map +0 -1
  248. package/dist/manifests/edge-policy-manifest.js +0 -92
  249. package/dist/manifests/edge-policy-manifest.js.map +0 -1
  250. package/dist/manifests/infisical-runtime-manifest.d.ts +0 -1792
  251. package/dist/manifests/infisical-runtime-manifest.js +0 -3090
  252. package/dist/manifests/infisical-runtime-manifest.js.map +0 -1
  253. package/dist/manifests/invariant-manifest.d.ts +0 -65
  254. package/dist/manifests/invariant-manifest.js +0 -18
  255. package/dist/manifests/invariant-manifest.js.map +0 -1
  256. package/dist/manifests/invariants/ast-utils.d.ts +0 -14
  257. package/dist/manifests/invariants/ast-utils.js +0 -54
  258. package/dist/manifests/invariants/ast-utils.js.map +0 -1
  259. package/dist/manifests/invariants/index.d.ts +0 -15
  260. package/dist/manifests/invariants/index.js +0 -183
  261. package/dist/manifests/invariants/index.js.map +0 -1
  262. package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +0 -12
  263. package/dist/manifests/invariants/inv-1-beliefs-append-only.js +0 -94
  264. package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +0 -1
  265. package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +0 -12
  266. package/dist/manifests/invariants/inv-14-no-silent-transitions.js +0 -99
  267. package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +0 -1
  268. package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +0 -12
  269. package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +0 -42
  270. package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +0 -1
  271. package/dist/manifests/tenant-client-manifest.d.ts +0 -327
  272. package/dist/manifests/tenant-client-manifest.js +0 -449
  273. package/dist/manifests/tenant-client-manifest.js.map +0 -1
  274. package/dist/permit-principal-projection.contract.d.ts +0 -74
  275. package/dist/permit-principal-projection.contract.js +0 -167
  276. package/dist/permit-principal-projection.contract.js.map +0 -1
  277. package/dist/projections/check-convex-args-shape.d.ts +0 -3
  278. package/dist/projections/check-convex-args-shape.js +0 -403
  279. package/dist/projections/check-convex-args-shape.js.map +0 -1
  280. package/dist/projections/create-evidence.projection.d.ts +0 -176
  281. package/dist/projections/create-evidence.projection.js +0 -130
  282. package/dist/projections/create-evidence.projection.js.map +0 -1
  283. package/dist/projections/index.d.ts +0 -102
  284. package/dist/projections/index.js +0 -352
  285. package/dist/projections/index.js.map +0 -1
  286. package/dist/projections/list-beliefs.projection.d.ts +0 -36
  287. package/dist/projections/list-beliefs.projection.js +0 -54
  288. package/dist/projections/list-beliefs.projection.js.map +0 -1
  289. package/dist/projections/list-tasks.projection.d.ts +0 -44
  290. package/dist/projections/list-tasks.projection.js +0 -57
  291. package/dist/projections/list-tasks.projection.js.map +0 -1
  292. package/dist/projections/modulate-confidence.projection.d.ts +0 -219
  293. package/dist/projections/modulate-confidence.projection.js +0 -148
  294. package/dist/projections/modulate-confidence.projection.js.map +0 -1
  295. package/dist/projections/projection-dsl.d.ts +0 -11
  296. package/dist/projections/projection-dsl.js +0 -8
  297. package/dist/projections/projection-dsl.js.map +0 -1
  298. package/dist/proof-attestation.json +0 -45
  299. package/dist/schemas/tables/controlPlane/accessControl.d.ts +0 -260
  300. package/dist/schemas/tables/controlPlane/accessControl.js +0 -658
  301. package/dist/schemas/tables/controlPlane/accessControl.js.map +0 -1
  302. package/dist/schemas/tables/controlPlane/agent.js.map +0 -1
  303. package/dist/schemas/tables/controlPlane/epistemic.js.map +0 -1
  304. package/dist/schemas/tables/controlPlane/model.js.map +0 -1
  305. package/dist/schemas/tables/controlPlane/platform.js.map +0 -1
  306. package/dist/schemas/tables/controlPlane/project.js.map +0 -1
  307. package/dist/schemas/tables/controlPlane/user.js.map +0 -1
  308. package/dist/schemas/tables/kernel/events.d.ts +0 -21
  309. package/dist/schemas/tables/kernel/events.js +0 -43
  310. package/dist/schemas/tables/kernel/events.js.map +0 -1
  311. package/dist/tenant-bootstrap-seed.contract.d.ts +0 -1289
  312. package/dist/tenant-bootstrap-seed.contract.js +0 -764
  313. package/dist/tenant-bootstrap-seed.contract.js.map +0 -1
  314. package/dist/tenant-bootstrap-seed.defaults.d.ts +0 -16
  315. package/dist/tenant-bootstrap-seed.defaults.js +0 -321
  316. package/dist/tenant-bootstrap-seed.defaults.js.map +0 -1
@@ -10,8 +10,6 @@ import { questionsContracts } from './questions.js';
10
10
  export { questionsContracts } from './questions.js';
11
11
  import { topicsContracts } from './topics.js';
12
12
  export { topicsContracts } from './topics.js';
13
- import { nodesContracts } from './nodes.js';
14
- export { nodesContracts } from './nodes.js';
15
13
  import { lensesContracts } from './lenses.js';
16
14
  export { lensesContracts } from './lenses.js';
17
15
  import { ontologiesContracts } from './ontologies.js';
@@ -40,20 +38,6 @@ import { z } from 'zod';
40
38
 
41
39
  // src/function-registry/index.ts
42
40
 
43
- // src/types/reasoning-method.ts
44
- var REASONING_METHODS = [
45
- "deductive",
46
- "inductive",
47
- "abductive",
48
- "analogical",
49
- "causal",
50
- "correlational",
51
- "testimonial",
52
- "statistical",
53
- "implicit",
54
- "pattern_match"
55
- ];
56
-
57
41
  // src/lens-workflow.contract.ts
58
42
  var LENS_PERSPECTIVE_TYPES = [
59
43
  "investigation",
@@ -474,22 +458,7 @@ var ADD_WORKTREE = {
474
458
  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.",
475
459
  parameters: {
476
460
  title: { type: "string", description: "Worktree name/objective" },
477
- name: {
478
- type: "string",
479
- description: "Optional storage-name alias for callers that already use backend naming"
480
- },
481
- projectId: {
482
- type: "string",
483
- description: "Legacy topicId alias or resolver hint"
484
- },
485
- topicId: {
486
- type: "string",
487
- description: "Optional topic scope hint for resolver validation"
488
- },
489
- topicHint: {
490
- type: "string",
491
- description: "Natural-language topic hint for automatic topic resolution"
492
- },
461
+ topicId: { type: "string", description: "Optional topic scope hint" },
493
462
  branchId: {
494
463
  type: "string",
495
464
  description: "The branch this worktree investigates"
@@ -502,107 +471,18 @@ var ADD_WORKTREE = {
502
471
  type: "string",
503
472
  description: "The testable claim this worktree investigates"
504
473
  },
505
- rationale: {
506
- type: "string",
507
- description: "Why this worktree exists and why it belongs in the campaign"
508
- },
509
- worktreeType: {
510
- type: "string",
511
- description: "Schema-enum worktree type used by the kernel lifecycle and retrieval layers"
512
- },
513
- gate: {
514
- type: "string",
515
- description: "Exit gate name for this worktree"
516
- },
517
- startDate: {
518
- type: "number",
519
- description: "Planned start timestamp in milliseconds since epoch"
520
- },
521
- endDate: {
522
- type: "number",
523
- description: "Planned end timestamp in milliseconds since epoch"
524
- },
525
- durationWeeks: {
526
- type: "number",
527
- description: "Planned duration in weeks"
528
- },
529
- confidenceImpact: {
530
- type: "string",
531
- description: "Expected confidence impact if the worktree succeeds",
532
- enum: ["high", "medium", "low"]
533
- },
534
- beliefFocus: {
535
- type: "string",
536
- description: "Natural-language focus spanning the target belief neighborhood"
537
- },
538
474
  beliefIds: {
539
475
  type: "array",
540
- description: "Legacy alias for targetBeliefIds"
541
- },
542
- beliefs: {
543
- type: "array",
544
- description: "Legacy alias for targetBeliefIds"
545
- },
546
- targetBeliefIds: {
547
- type: "array",
548
- description: "Belief node IDs this worktree is expected to test or update"
549
- },
550
- targetQuestionIds: {
551
- type: "array",
552
- description: "Question node IDs this worktree is expected to answer"
553
- },
554
- keyQuestions: {
555
- type: "array",
556
- description: "Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId"
557
- },
558
- evidenceSignals: {
559
- type: "array",
560
- description: "Evidence signal objects with signal, optional collected state, progress, and notes"
561
- },
562
- decisionGate: {
563
- type: "object",
564
- description: "Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy"
565
- },
566
- goCriteria: {
567
- type: "array",
568
- description: "Shorthand go criteria used to build decisionGate"
569
- },
570
- noGoSignals: {
571
- type: "array",
572
- description: "Shorthand no-go signals used to build decisionGate"
573
- },
574
- proofArtifacts: {
575
- type: "array",
576
- description: "Expected proof artifacts required to close the worktree"
476
+ description: "Beliefs to test in this worktree"
577
477
  },
578
478
  autoShape: {
579
479
  type: "boolean",
580
480
  description: "Whether to invoke inquiry auto-shaping during worktree creation"
581
481
  },
582
- autoFixPolicy: {
583
- type: "object",
584
- description: "Policy for permitted automatic remediation inside the worktree"
585
- },
586
482
  domainPackId: {
587
483
  type: "string",
588
484
  description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
589
485
  },
590
- tags: {
591
- type: "array",
592
- description: "Additional topic-resolution tags for the worktree"
593
- },
594
- touchedPaths: {
595
- type: "array",
596
- description: "File paths used as topic-resolution signals"
597
- },
598
- sourceRef: {
599
- type: "string",
600
- description: "Source reference used as a topic-resolution signal"
601
- },
602
- sourceKind: {
603
- type: "string",
604
- description: "Source kind used as a topic-resolution signal"
605
- },
606
486
  campaign: {
607
487
  type: "number",
608
488
  description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
@@ -627,20 +507,12 @@ var ADD_WORKTREE = {
627
507
  type: "array",
628
508
  description: "Worktree IDs blocked by this worktree"
629
509
  },
630
- staffingHint: {
631
- type: "string",
632
- description: "Suggested staffing or agent allocation note"
633
- },
634
- lensId: {
510
+ gate: {
635
511
  type: "string",
636
- description: "Lens that scopes this worktree when applicable"
637
- },
638
- lastReconciledAt: {
639
- type: "number",
640
- description: "Timestamp when worktree metadata was last reconciled"
512
+ description: "Exit gate name for this worktree"
641
513
  }
642
514
  },
643
- required: ["title"],
515
+ required: ["title", "topicId"],
644
516
  response: {
645
517
  description: "The created worktree",
646
518
  fields: {
@@ -667,7 +539,7 @@ var MERGE = {
667
539
  worktreeId: { type: "string", description: "The worktree to merge" },
668
540
  outcomes: {
669
541
  type: "array",
670
- description: "Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }"
542
+ description: "Scoring outcomes for each belief: { beliefId, confidence, rationale }"
671
543
  },
672
544
  summary: { type: "string", description: "Overall findings summary" }
673
545
  },
@@ -885,23 +757,19 @@ var FIND_CONTRADICTIONS = {
885
757
  };
886
758
  var CREATE_EDGE = {
887
759
  name: "create_edge",
888
- 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.",
760
+ 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. The engine enforces layer transition rules \u2014 for example, L1 \u2192 L3 direct edges are forbidden (must go through L2).",
889
761
  parameters: {
890
- from: {
891
- type: "object",
892
- description: "Source graph ref, e.g. { kind: 'epistemic_node', nodeId: '...', nodeType: 'topic' }"
893
- },
894
- to: {
895
- type: "object",
896
- description: "Target graph ref, e.g. { kind: 'epistemic_node', nodeId: '...', nodeType: 'belief' }"
762
+ sourceId: {
763
+ type: "string",
764
+ description: "Source node of the relationship"
897
765
  },
898
- edgeType: {
766
+ targetId: {
899
767
  type: "string",
900
- description: "Relationship type from the public epistemic edge enum."
768
+ description: "Target node of the relationship"
901
769
  },
902
- globalId: {
770
+ edgeType: {
903
771
  type: "string",
904
- description: "Optional idempotent edge global ID."
772
+ description: "Relationship type (informs, tests, depends_on, supersedes, etc.)"
905
773
  },
906
774
  weight: {
907
775
  type: "number",
@@ -911,14 +779,10 @@ var CREATE_EDGE = {
911
779
  reasoningMethod: {
912
780
  type: "string",
913
781
  description: "How this was determined",
914
- enum: [...REASONING_METHODS]
915
- },
916
- metadata: {
917
- type: "object",
918
- description: "Optional edge metadata."
782
+ enum: ["deductive", "inductive", "abductive", "analogical", "empirical"]
919
783
  }
920
784
  },
921
- required: ["from", "to", "edgeType"],
785
+ required: ["sourceId", "targetId", "edgeType"],
922
786
  response: {
923
787
  description: "The created edge",
924
788
  fields: {
@@ -932,240 +796,6 @@ var CREATE_EDGE = {
932
796
  ontologyPrimitive: "edge",
933
797
  tier: "showcase"
934
798
  };
935
- var UPDATE_EDGE = {
936
- name: "update_edge",
937
- description: "Amend metadata on an existing graph edge. Like `git commit --amend` \u2014 changes the edge annotation without recreating the relationship.",
938
- parameters: {
939
- edgeId: { type: "string", description: "Edge ID or global ID to update" },
940
- weight: { type: "number", description: "Updated edge weight" },
941
- confidence: { type: "number", description: "Updated confidence" },
942
- context: { type: "string", description: "Updated human-readable context" },
943
- derivationType: { type: "string", description: "Updated derivation type" },
944
- metadata: { type: "object", description: "Updated metadata" }
945
- },
946
- required: ["edgeId"],
947
- response: {
948
- description: "Edge update result",
949
- fields: { success: "boolean" }
950
- },
951
- ownerModule: "graph-primitives",
952
- ontologyPrimitive: "edge",
953
- tier: "workhorse"
954
- };
955
- var REMOVE_EDGE = {
956
- name: "remove_edge",
957
- description: "Remove one graph edge by ID. Like `git rm` \u2014 deletes a single explicit relationship from the spine.",
958
- parameters: {
959
- edgeId: { type: "string", description: "Edge ID or global ID to remove" }
960
- },
961
- required: ["edgeId"],
962
- response: {
963
- description: "Edge removal result",
964
- fields: { success: "boolean" }
965
- },
966
- ownerModule: "graph-primitives",
967
- ontologyPrimitive: "edge",
968
- tier: "workhorse"
969
- };
970
- var REMOVE_EDGES_BETWEEN = {
971
- name: "remove_edges_between",
972
- description: "Remove graph edges between two nodes. Like `git rm <pathspec>` \u2014 deletes relationships matching a source, target, and optional type.",
973
- parameters: {
974
- fromNodeId: { type: "string", description: "Source node ID or global ID" },
975
- toNodeId: { type: "string", description: "Target node ID or global ID" },
976
- edgeType: { type: "string", description: "Optional edge type filter" }
977
- },
978
- required: ["fromNodeId", "toNodeId"],
979
- response: {
980
- description: "Matched edge removal result",
981
- fields: { deleted: "number" }
982
- },
983
- ownerModule: "graph-primitives",
984
- ontologyPrimitive: "edge",
985
- tier: "workhorse"
986
- };
987
- var BATCH_CREATE_EDGES = {
988
- name: "batch_create_edges",
989
- description: "Commit multiple typed graph edges. Like `git commit` with many staged paths \u2014 writes a batch of explicit relationships atomically per edge.",
990
- parameters: {
991
- edges: {
992
- type: "array",
993
- description: "Edges to create, each with from, to, edgeType, and optional weight/confidence/context."
994
- },
995
- skipLayerValidation: {
996
- type: "boolean",
997
- description: "Skip kernel layer validation for trusted materialization flows."
998
- }
999
- },
1000
- required: ["edges"],
1001
- response: {
1002
- description: "Batch edge creation result",
1003
- fields: {
1004
- created: "number",
1005
- results: "array",
1006
- errors: "array"
1007
- }
1008
- },
1009
- ownerModule: "graph-primitives",
1010
- ontologyPrimitive: "edge",
1011
- tier: "workhorse"
1012
- };
1013
- var CREATE_EPISTEMIC_NODE = {
1014
- name: "create_epistemic_node",
1015
- 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.",
1016
- parameters: {
1017
- globalId: { type: "string", description: "Optional idempotent node global ID" },
1018
- nodeType: { type: "string", description: "Public epistemic node type" },
1019
- canonicalText: { type: "string", description: "Canonical node text" },
1020
- text: { type: "string", description: "Alias for canonicalText" },
1021
- contentHash: { type: "string", description: "Optional idempotency content hash" },
1022
- sourceType: { type: "string", description: "Source type for provenance" },
1023
- topicId: { type: "string", description: "Optional topic scope" },
1024
- content: { type: "string", description: "Extended content" },
1025
- title: { type: "string", description: "Display title" },
1026
- metadata: { type: "object", description: "Optional node metadata" }
1027
- },
1028
- required: ["nodeType"],
1029
- response: {
1030
- description: "Created node result",
1031
- fields: {
1032
- nodeId: "string",
1033
- nodeGlobalId: "string",
1034
- isDuplicate: "boolean"
1035
- }
1036
- },
1037
- ownerModule: "reasoning-kernel",
1038
- ontologyPrimitive: "graph",
1039
- tier: "showcase"
1040
- };
1041
- var GET_EPISTEMIC_NODE = {
1042
- name: "get_epistemic_node",
1043
- description: "Read one epistemic graph node. Like `git show` \u2014 resolves a canonical spine node by ID or global ID.",
1044
- parameters: {
1045
- nodeId: { type: "string", description: "Node ID or global ID" }
1046
- },
1047
- required: ["nodeId"],
1048
- response: {
1049
- description: "The resolved node",
1050
- fields: { node: "object" }
1051
- },
1052
- ownerModule: "reasoning-kernel",
1053
- ontologyPrimitive: "graph",
1054
- tier: "workhorse"
1055
- };
1056
- var LIST_EPISTEMIC_NODES = {
1057
- name: "list_epistemic_nodes",
1058
- description: "List epistemic graph nodes. Like `git ls-tree` \u2014 lists canonical spine nodes by topic, type, status, or search query.",
1059
- parameters: {
1060
- topicId: { type: "string", description: "Optional topic scope" },
1061
- nodeType: { type: "string", description: "Optional node type filter" },
1062
- status: { type: "string", description: "Optional lifecycle status" },
1063
- searchQuery: { type: "string", description: "Optional text search query" },
1064
- limit: { type: "number", description: "Maximum nodes to return" }
1065
- },
1066
- required: [],
1067
- response: {
1068
- description: "Matching nodes",
1069
- fields: { nodes: "array" }
1070
- },
1071
- ownerModule: "reasoning-kernel",
1072
- ontologyPrimitive: "graph",
1073
- tier: "workhorse"
1074
- };
1075
- var UPDATE_EPISTEMIC_NODE = {
1076
- name: "update_epistemic_node",
1077
- description: "Amend an epistemic graph node. Like `git commit --amend` \u2014 updates mutable node metadata, text, status, or verification fields.",
1078
- parameters: {
1079
- nodeId: { type: "string", description: "Node ID or global ID" },
1080
- canonicalText: { type: "string", description: "Updated canonical text" },
1081
- text: { type: "string", description: "Alias for canonicalText" },
1082
- contentHash: { type: "string", description: "Updated content hash" },
1083
- content: { type: "string", description: "Updated content" },
1084
- title: { type: "string", description: "Updated display title" },
1085
- metadata: { type: "object", description: "Updated metadata" },
1086
- confidence: { type: "number", description: "Updated confidence" },
1087
- verificationStatus: { type: "string", description: "Updated verification status" },
1088
- status: { type: "string", description: "Updated lifecycle status" }
1089
- },
1090
- required: ["nodeId"],
1091
- response: {
1092
- description: "Node update result",
1093
- fields: { success: "boolean" }
1094
- },
1095
- ownerModule: "reasoning-kernel",
1096
- ontologyPrimitive: "graph",
1097
- tier: "workhorse"
1098
- };
1099
- var ARCHIVE_EPISTEMIC_NODE = {
1100
- name: "archive_epistemic_node",
1101
- description: "Archive an epistemic graph node. Like `git rm --cached` \u2014 removes a node from active traversal without hard-deleting it.",
1102
- parameters: {
1103
- nodeId: { type: "string", description: "Node ID or global ID" }
1104
- },
1105
- required: ["nodeId"],
1106
- response: {
1107
- description: "Archive result",
1108
- fields: { success: "boolean", effectiveStatus: "string" }
1109
- },
1110
- ownerModule: "reasoning-kernel",
1111
- ontologyPrimitive: "graph",
1112
- tier: "workhorse"
1113
- };
1114
- var VERIFY_EPISTEMIC_NODE = {
1115
- name: "verify_epistemic_node",
1116
- description: "Record verification state on an epistemic graph node. Like `git tag` \u2014 marks the node with a reviewed verification state.",
1117
- parameters: {
1118
- nodeId: { type: "string", description: "Node ID or global ID" },
1119
- verificationStatus: { type: "string", description: "Verification status" },
1120
- confidence: { type: "number", description: "Optional confidence update" }
1121
- },
1122
- required: ["nodeId", "verificationStatus"],
1123
- response: {
1124
- description: "Verification result",
1125
- fields: { success: "boolean" }
1126
- },
1127
- ownerModule: "reasoning-kernel",
1128
- ontologyPrimitive: "graph",
1129
- tier: "workhorse"
1130
- };
1131
- var SUPERSEDE_EPISTEMIC_NODE = {
1132
- name: "supersede_epistemic_node",
1133
- description: "Supersede an epistemic graph node with a new version. Like `git commit --amend` on an immutable history branch \u2014 creates the replacement and marks the old node superseded.",
1134
- parameters: {
1135
- oldNodeId: { type: "string", description: "Node ID or global ID to supersede" },
1136
- newGlobalId: { type: "string", description: "Optional replacement global ID" },
1137
- newCanonicalText: { type: "string", description: "Replacement canonical text" },
1138
- text: { type: "string", description: "Alias for newCanonicalText" },
1139
- newContentHash: { type: "string", description: "Optional replacement content hash" },
1140
- reason: { type: "string", description: "Reason for superseding" }
1141
- },
1142
- required: ["oldNodeId"],
1143
- response: {
1144
- description: "Supersede result",
1145
- fields: { oldNodeId: "string", newNodeId: "string" }
1146
- },
1147
- ownerModule: "reasoning-kernel",
1148
- ontologyPrimitive: "graph",
1149
- tier: "workhorse"
1150
- };
1151
- var BATCH_CREATE_EPISTEMIC_NODES = {
1152
- name: "batch_create_epistemic_nodes",
1153
- description: "Commit multiple epistemic graph nodes. Like `git commit` with many staged files \u2014 writes a batch of canonical spine nodes.",
1154
- parameters: {
1155
- nodes: {
1156
- type: "array",
1157
- description: "Nodes to create with nodeType, canonicalText/text, and optional metadata."
1158
- }
1159
- },
1160
- required: ["nodes"],
1161
- response: {
1162
- description: "Batch node creation result",
1163
- fields: { created: "number", results: "array" }
1164
- },
1165
- ownerModule: "reasoning-kernel",
1166
- ontologyPrimitive: "graph",
1167
- tier: "workhorse"
1168
- };
1169
799
  var RECORD_JUDGMENT = {
1170
800
  name: "record_judgment",
1171
801
  description: "Record a judgment \u2014 an irreversible commitment based on the current epistemic state. Like a `git tag` marking a release. A judgment synthesizes beliefs, evidence, and uncertainties into a determination. Once issued, a judgment is evaluated against the epistemic state that existed when it was made (knowledge horizon evaluation, Invariant #10).",
@@ -1463,74 +1093,6 @@ var GET_GRAPH_STRUCTURE_ANALYSIS = {
1463
1093
  ontologyPrimitive: "graph",
1464
1094
  tier: "showcase"
1465
1095
  };
1466
- var LIST_GRAPH_INTELLIGENCE_QUERIES = {
1467
- name: "list_graph_intelligence_queries",
1468
- description: "List the Graph Intelligence query catalog that powers structural graph analysis experiences. Returns categories, query IDs, prompt templates, modes, and the public tool plan each query can use.",
1469
- parameters: {
1470
- categoryId: {
1471
- type: "string",
1472
- description: "Optional category filter, such as problems or strategic"
1473
- },
1474
- mode: {
1475
- type: "string",
1476
- description: "Optional mode filter: core, bias, stress, operational, alpha, semantic, or evidence"
1477
- }
1478
- },
1479
- required: [],
1480
- response: {
1481
- description: "Graph Intelligence query catalog and mode-to-tool mapping",
1482
- fields: {
1483
- categories: "array \u2014 query categories",
1484
- queries: "array \u2014 query definitions with prompt templates and tools",
1485
- quickQueries: "array \u2014 recommended one-click query presets",
1486
- publicToolNamesByMode: "object \u2014 public tool names available to each Graph Intelligence mode"
1487
- }
1488
- },
1489
- ownerModule: "graph-intelligence",
1490
- ontologyPrimitive: "graph",
1491
- tier: "showcase"
1492
- };
1493
- var RUN_GRAPH_INTELLIGENCE_QUERY = {
1494
- name: "run_graph_intelligence_query",
1495
- description: "Run a named Graph Intelligence query against a tenant topic graph. Returns the selected query, prompt, deterministic graph-analysis bundle, graph context, and public tool plan for model synthesis.",
1496
- parameters: {
1497
- topicId: { type: "string", description: "Topic to analyze" },
1498
- queryId: {
1499
- type: "string",
1500
- description: "Graph Intelligence query ID, such as confirmation-bias, pre-mortem, or thesis-summary"
1501
- },
1502
- prompt: {
1503
- type: "string",
1504
- description: "Optional custom prompt for custom analysis runs"
1505
- },
1506
- input: {
1507
- type: "string",
1508
- description: "Optional entity, theme, belief, company, or search text for input-driven queries"
1509
- },
1510
- mode: {
1511
- type: "string",
1512
- description: "Optional mode override: core, bias, stress, operational, alpha, semantic, or evidence"
1513
- },
1514
- limit: {
1515
- type: "number",
1516
- description: "Maximum graph context rows to return"
1517
- }
1518
- },
1519
- required: ["topicId"],
1520
- response: {
1521
- description: "Graph Intelligence query result bundle ready for model or prompt-library synthesis",
1522
- fields: {
1523
- query: "object \u2014 selected query definition",
1524
- prompt: "string \u2014 resolved prompt template",
1525
- toolPlan: "array \u2014 public tools and args the model can call next",
1526
- analysis: "object \u2014 structure, coverage, gap, and confirmation-bias analysis",
1527
- context: "object \u2014 sampled beliefs, questions, evidence, edges, and contradictions"
1528
- }
1529
- },
1530
- ownerModule: "graph-intelligence",
1531
- ontologyPrimitive: "graph",
1532
- tier: "showcase"
1533
- };
1534
1096
  var GET_FALSIFICATION_QUESTIONS = {
1535
1097
  name: "get_falsification_questions",
1536
1098
  description: "Generate Popperian falsification questions for beliefs. Like `git test` \u2014 identifies the questions most likely to disprove current beliefs. Karl Popper as a tool: surfaces what would need to be true to invalidate each belief.",
@@ -2365,8 +1927,8 @@ var IDENTITY_WHOAMI = {
2365
1927
  response: {
2366
1928
  description: "Canonical identity summary for the current session",
2367
1929
  fields: {
2368
- principalId: "string \u2014 canonical principal identifier; for humans this is the Clerk user_... ID",
2369
- principalType: "string \u2014 human, service, agent, group, or external_viewer",
1930
+ principalId: "string \u2014 canonical federated principal identifier",
1931
+ principalType: "string \u2014 human, service, or agent",
2370
1932
  tenantId: "string | undefined \u2014 resolved tenant scope",
2371
1933
  workspaceId: "string | undefined \u2014 resolved workspace scope",
2372
1934
  scopes: "string[] | undefined \u2014 granted scopes for this session",
@@ -2377,60 +1939,17 @@ var IDENTITY_WHOAMI = {
2377
1939
  ontologyPrimitive: "identity",
2378
1940
  tier: "workhorse"
2379
1941
  };
2380
- var RESOLVE_INTERACTIVE_PRINCIPAL = {
2381
- name: "resolve_interactive_principal",
2382
- description: "Read the Permit-backed Lucern principal context for an authenticated Clerk user. Like `git config --get user.email` plus the repository ACL \u2014 resolves the Clerk subject into tenant/workspace authorization context.",
2383
- parameters: {
2384
- clerkId: {
2385
- type: "string",
2386
- description: "Authenticated Clerk subject (`sub`). Clerk proves identity only; it is not the authorization record."
2387
- },
2388
- tenantId: {
2389
- type: "string",
2390
- description: "Optional tenant scope. Omit only when the Clerk alias is globally unambiguous."
2391
- },
2392
- workspaceId: {
2393
- type: "string",
2394
- description: "Optional workspace scope. Required when the principal has access to multiple workspaces and no default can be inferred."
2395
- },
2396
- providerProjectId: {
2397
- type: "string",
2398
- description: "Optional Clerk project or provider instance id for tenants with multiple identity providers."
2399
- }
2400
- },
2401
- required: ["clerkId"],
2402
- response: {
2403
- description: "Permit-backed Lucern principal context for tenant SDK bootstrap",
2404
- fields: {
2405
- principalId: "string \u2014 canonical Clerk user_... ID for human sessions",
2406
- principalType: "string \u2014 human, service, agent, group, or external_viewer",
2407
- clerkId: "string \u2014 authenticated Clerk subject alias",
2408
- tenantId: "string \u2014 resolved tenant scope",
2409
- workspaceId: "string | null \u2014 resolved workspace scope",
2410
- roles: "string[] \u2014 effective Permit roles",
2411
- scopes: "string[] \u2014 effective scopes derived from Permit/control-plane projection",
2412
- groupIds: "string[] \u2014 active Permit group memberships",
2413
- principalStatus: "string \u2014 active, invited, suspended, disabled, revoked, or missing",
2414
- tenantStatus: "string \u2014 projected tenant resource status",
2415
- workspaceStatus: "string \u2014 projected workspace resource status",
2416
- permit: "object \u2014 Permit subject, tenant, and optional workspace tuple"
2417
- }
2418
- },
2419
- ownerModule: "control-plane",
2420
- ontologyPrimitive: "identity",
2421
- tier: "workhorse"
2422
- };
2423
1942
  var COMPILE_CONTEXT = {
2424
1943
  name: "compile_context",
2425
- description: "Compile a focused reasoning context. If topicId is omitted, Lucern resolves the best topic from the query. Like `git log --graph --decorate` for the reasoning substrate \u2014 returns the canonical Pillar 3 context pack through the public API shape.",
1944
+ description: "Compile a focused reasoning context for a topic. Like `git log --graph --decorate` for the reasoning substrate \u2014 returns the canonical Pillar 3 context pack through the public API shape.",
2426
1945
  parameters: {
2427
1946
  topicId: {
2428
1947
  type: "string",
2429
- description: "Optional topic scope ID. Omit to resolve the topic from query."
1948
+ description: "Topic scope ID to compile"
2430
1949
  },
2431
1950
  query: {
2432
1951
  type: "string",
2433
- description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
1952
+ description: "Optional focus query used to rank context items"
2434
1953
  },
2435
1954
  budget: {
2436
1955
  type: "number",
@@ -2454,7 +1973,7 @@ var COMPILE_CONTEXT = {
2454
1973
  description: "Include related ontological entities in the compiled result"
2455
1974
  }
2456
1975
  },
2457
- required: [],
1976
+ required: ["topicId"],
2458
1977
  response: {
2459
1978
  description: "Compiled context pack for the requested topic",
2460
1979
  fields: {
@@ -2628,64 +2147,18 @@ var CREATE_TASK = {
2628
2147
  name: "create_task",
2629
2148
  description: "Create an execution task tied to the reasoning state. Like `git task` \u2014 tracks concrete work items (calls to make, data to gather, analyses to run) linked to questions, beliefs, or worktrees.",
2630
2149
  parameters: {
2631
- title: { type: "string", description: "Task title" },
2150
+ title: { type: "string", description: "Task description" },
2632
2151
  topicId: { type: "string", description: "Topic scope" },
2633
- description: {
2634
- type: "string",
2635
- description: "Long-form task description"
2636
- },
2637
2152
  taskType: {
2638
2153
  type: "string",
2639
- description: "Task taxonomy",
2640
- enum: [
2641
- "general",
2642
- "find_evidence",
2643
- "verify_claim",
2644
- "research",
2645
- "review",
2646
- "interview",
2647
- "analysis",
2648
- "track_metrics"
2649
- ]
2650
- },
2651
- priority: {
2652
- type: "string",
2653
- description: "Priority",
2654
- enum: ["urgent", "high", "medium", "low"]
2655
- },
2656
- status: {
2657
- type: "string",
2658
- description: "Initial status (defaults to todo)",
2659
- enum: ["todo", "in_progress", "blocked", "done"]
2660
- },
2661
- linkedWorktreeId: {
2662
- type: "string",
2663
- description: "Worktree this task belongs to"
2664
- },
2665
- linkedBeliefId: {
2666
- type: "string",
2667
- description: "Belief this task supports"
2154
+ description: "Type: research, interview, analysis, data_collection",
2155
+ enum: ["research", "interview", "analysis", "data_collection"]
2668
2156
  },
2669
2157
  linkedQuestionId: {
2670
2158
  type: "string",
2671
2159
  description: "Question this task addresses"
2672
2160
  },
2673
- assigneeId: {
2674
- type: "string",
2675
- description: "Principal assigned to the task"
2676
- },
2677
- dueDate: {
2678
- type: "number",
2679
- description: "Due date as epoch milliseconds"
2680
- },
2681
- tags: {
2682
- type: "array",
2683
- description: "Free-form string tags"
2684
- },
2685
- metadata: {
2686
- type: "object",
2687
- description: "Structured task metadata for handoff context and routing hints"
2688
- }
2161
+ linkedWorktreeId: { type: "string", description: "Worktree scope" }
2689
2162
  },
2690
2163
  required: ["title"],
2691
2164
  response: {
@@ -2758,10 +2231,6 @@ var UPDATE_TASK = {
2758
2231
  type: "string",
2759
2232
  description: "Updated status",
2760
2233
  enum: ["todo", "in_progress", "blocked", "done"]
2761
- },
2762
- metadata: {
2763
- type: "object",
2764
- description: "Structured task metadata to replace or refine"
2765
2234
  }
2766
2235
  },
2767
2236
  required: ["taskId"],
@@ -2809,10 +2278,6 @@ var CREATE_TOPIC = {
2809
2278
  name: "create_topic",
2810
2279
  description: "Create a new topic container for scoping knowledge. Like `git init` \u2014 initializes a new repository for a knowledge domain. Topics are hierarchical: a deal topic can nest under a theme topic. Types: domain, theme, deal, strategy, constitution, project, portfolio.",
2811
2280
  parameters: {
2812
- globalId: {
2813
- type: "string",
2814
- description: "Optional idempotent topic global ID"
2815
- },
2816
2281
  name: { type: "string", description: "Topic name" },
2817
2282
  type: {
2818
2283
  type: "string",
@@ -2823,18 +2288,6 @@ var CREATE_TOPIC = {
2823
2288
  type: "string",
2824
2289
  description: "Optional parent topic for nesting"
2825
2290
  },
2826
- parentTopicGlobalId: {
2827
- type: "string",
2828
- description: "Optional parent topic global ID for nesting"
2829
- },
2830
- tenantId: { type: "string", description: "Optional tenant scope" },
2831
- workspaceId: { type: "string", description: "Optional workspace scope" },
2832
- visibility: {
2833
- type: "string",
2834
- description: "Topic visibility",
2835
- enum: ["private", "team", "firm", "external", "public"]
2836
- },
2837
- metadata: { type: "object", description: "Optional topic metadata" },
2838
2291
  createdBy: { type: "string", description: "Who created this topic" }
2839
2292
  },
2840
2293
  required: ["name", "type"],
@@ -2843,9 +2296,6 @@ var CREATE_TOPIC = {
2843
2296
  fields: {
2844
2297
  id: "string \u2014 topic ID",
2845
2298
  globalId: "string \u2014 globally unique ID",
2846
- topicGlobalId: "string \u2014 topic global ID",
2847
- epistemicNodeId: "string \u2014 materialized topic node ID",
2848
- epistemicNodeGlobalId: "string \u2014 materialized topic node global ID",
2849
2299
  depth: "number \u2014 nesting depth"
2850
2300
  }
2851
2301
  },
@@ -2976,65 +2426,6 @@ var GET_TOPIC_TREE = {
2976
2426
  ontologyPrimitive: "graph",
2977
2427
  tier: "workhorse"
2978
2428
  };
2979
- var MATERIALIZE_TOPIC_GRAPH = {
2980
- name: "materialize_topic_graph",
2981
- description: "Backfill the topic graph spine. Like `git fsck --connectivity-only` with repair enabled \u2014 creates missing topic nodes and parent-child edges idempotently.",
2982
- parameters: {
2983
- rootTopicId: {
2984
- type: "string",
2985
- description: "Optional root topic for a bounded materialization pass"
2986
- },
2987
- dryRun: {
2988
- type: "boolean",
2989
- description: "When true, report missing rows without writing them"
2990
- }
2991
- },
2992
- required: [],
2993
- response: {
2994
- description: "Topic graph materialization counts",
2995
- fields: {
2996
- topicsSeen: "number",
2997
- nodesCreated: "number",
2998
- nodesExisting: "number",
2999
- edgesCreated: "number",
3000
- edgesExisting: "number",
3001
- errors: "array"
3002
- }
3003
- },
3004
- ownerModule: "reasoning-kernel",
3005
- ontologyPrimitive: "graph",
3006
- tier: "workhorse"
3007
- };
3008
- var GET_TOPIC_GRAPH_SPINE = {
3009
- name: "get_topic_graph_spine",
3010
- description: "Verify the topic graph spine. Like `git fsck` \u2014 reads topics, materialized topic nodes, parent-child edges, and missing spine rows.",
3011
- parameters: {
3012
- rootTopicId: {
3013
- type: "string",
3014
- description: "Optional root topic for a bounded verifier pass"
3015
- },
3016
- includeTopicBeliefEdges: {
3017
- type: "boolean",
3018
- description: "Include topic -> belief edges in the verifier payload"
3019
- }
3020
- },
3021
- required: [],
3022
- response: {
3023
- description: "Topic graph spine verification payload",
3024
- fields: {
3025
- ok: "boolean",
3026
- counts: "object",
3027
- topics: "array",
3028
- topicNodes: "array",
3029
- parentEdges: "array",
3030
- missingTopicNodes: "array",
3031
- missingParentEdges: "array"
3032
- }
3033
- },
3034
- ownerModule: "reasoning-kernel",
3035
- ontologyPrimitive: "graph",
3036
- tier: "workhorse"
3037
- };
3038
2429
  var GET_CODE_CONTEXT = {
3039
2430
  name: "get_code_context",
3040
2431
  description: "Returns code-grounded beliefs, contracts, migration states, and failed attempts anchored to a specific file or function path. Like `git log -- <path>` \u2014 filters the knowledge graph to nodes anchored to a file path via metadata.codeAnchors. Results are separated by coding belief type: decisions, contracts, migrations, patterns, deprecations, and failures.",
@@ -3230,7 +2621,7 @@ var MANAGE_WRITE_POLICY = {
3230
2621
  },
3231
2622
  role: {
3232
2623
  type: "string",
3233
- description: "Role to set policy for (required for 'set'). E.g. 'agent:internal' or a Permit role key such as 'workspace_admin'."
2624
+ description: "Role to set policy for (required for 'set'). E.g. 'agent:internal', 'user:analyst'."
3234
2625
  },
3235
2626
  permission: {
3236
2627
  type: "string",
@@ -4167,72 +3558,6 @@ var GENERATE_SESSION_HANDOFF = {
4167
3558
  tier: "showcase",
4168
3559
  internal: true
4169
3560
  };
4170
- var BEGIN_BUILD_SESSION = {
4171
- name: "begin_build_session",
4172
- description: "Bootstrap a coding build session for a Lucern worktree. Like `git worktree add` plus `git status` \u2014 returns the compact context packet an agent needs before editing.",
4173
- parameters: {
4174
- worktreeId: {
4175
- type: "string",
4176
- description: "The Lucern worktree ID to bootstrap."
4177
- },
4178
- branch: {
4179
- type: "string",
4180
- description: "Optional git branch name. Auto-generated from the worktree name when omitted."
4181
- },
4182
- branchBase: {
4183
- type: "string",
4184
- description: 'Base branch for the feature branch. Default: "staging".'
4185
- },
4186
- prBase: {
4187
- type: "string",
4188
- description: 'Target branch for the PR. Default: "staging".'
4189
- },
4190
- sessionMode: {
4191
- type: "string",
4192
- description: 'Session mode: "async" for Codex/headless or "interactive" for live sessions.',
4193
- enum: ["async", "interactive"]
4194
- },
4195
- activateIfPlanning: {
4196
- type: "boolean",
4197
- description: "When true, automatically activate a planning worktree during bootstrap."
4198
- }
4199
- },
4200
- required: ["worktreeId"],
4201
- response: {
4202
- description: "A compact build-session packet with worktree metadata, graph anchors, questions, dependencies, and git defaults.",
4203
- fields: {
4204
- topicId: "string \u2014 canonical topic scope",
4205
- topicName: "string \u2014 human-readable topic name",
4206
- worktreeId: "string \u2014 worktree ID",
4207
- worktreeName: "string \u2014 human-readable worktree name",
4208
- branch: "string \u2014 git branch name",
4209
- branchBase: "string \u2014 base branch",
4210
- prBase: "string \u2014 PR target branch",
4211
- campaign: "number | null \u2014 top-level pipeline campaign",
4212
- lane: "string \u2014 campaign lane",
4213
- gate: "string \u2014 exit gate",
4214
- hypothesis: "string \u2014 worktree hypothesis",
4215
- focus: "string \u2014 session focus",
4216
- status: "string \u2014 worktree status after optional activation",
4217
- sessionMode: "string \u2014 async | interactive",
4218
- targetBeliefIds: "array \u2014 scoped belief IDs",
4219
- targetQuestionIds: "array \u2014 scoped question IDs",
4220
- taskIds: "array \u2014 assigned task IDs for this worktree",
4221
- incompleteTaskIds: "array \u2014 assigned task IDs that still require done/deferred/blocked proof",
4222
- tasks: "array \u2014 assigned task packet with id, title, status, priority, links, and summaries",
4223
- topBeliefs: "array \u2014 highest-confidence scoped beliefs",
4224
- openQuestions: "array \u2014 open scoped questions",
4225
- resolvedDecisions: "array \u2014 answered questions summarized for the session",
4226
- dependencies: "array \u2014 upstream worktrees",
4227
- unblocks: "array \u2014 downstream worktrees",
4228
- mergeOrderNotes: "string \u2014 merge ordering advisory"
4229
- }
4230
- },
4231
- ownerModule: "bootstrap",
4232
- ontologyPrimitive: "worktree",
4233
- tier: "showcase",
4234
- internal: true
4235
- };
4236
3561
  var MCP_TOOL_CONTRACTS = {
4237
3562
  // Belief lifecycle (commit, amend, fork, archive)
4238
3563
  create_belief: CREATE_BELIEF,
@@ -4275,26 +3600,11 @@ var MCP_TOOL_CONTRACTS = {
4275
3600
  bisect_confidence: BISECT_CONFIDENCE,
4276
3601
  // Edges (commit)
4277
3602
  create_edge: CREATE_EDGE,
4278
- update_edge: UPDATE_EDGE,
4279
- remove_edge: REMOVE_EDGE,
4280
- remove_edges_between: REMOVE_EDGES_BETWEEN,
4281
- batch_create_edges: BATCH_CREATE_EDGES,
4282
- // Epistemic node spine (commit/amend/show)
4283
- create_epistemic_node: CREATE_EPISTEMIC_NODE,
4284
- get_epistemic_node: GET_EPISTEMIC_NODE,
4285
- list_epistemic_nodes: LIST_EPISTEMIC_NODES,
4286
- update_epistemic_node: UPDATE_EPISTEMIC_NODE,
4287
- archive_epistemic_node: ARCHIVE_EPISTEMIC_NODE,
4288
- verify_epistemic_node: VERIFY_EPISTEMIC_NODE,
4289
- supersede_epistemic_node: SUPERSEDE_EPISTEMIC_NODE,
4290
- batch_create_epistemic_nodes: BATCH_CREATE_EPISTEMIC_NODES,
4291
3603
  // Judgments (tag)
4292
3604
  record_judgment: RECORD_JUDGMENT,
4293
3605
  // Graph intelligence (showcase)
4294
3606
  detect_confirmation_bias: DETECT_CONFIRMATION_BIAS,
4295
3607
  get_graph_structure_analysis: GET_GRAPH_STRUCTURE_ANALYSIS,
4296
- list_graph_intelligence_queries: LIST_GRAPH_INTELLIGENCE_QUERIES,
4297
- run_graph_intelligence_query: RUN_GRAPH_INTELLIGENCE_QUERY,
4298
3608
  get_falsification_questions: GET_FALSIFICATION_QUESTIONS,
4299
3609
  // Evidence operations (workhorse)
4300
3610
  search_evidence: SEARCH_EVIDENCE,
@@ -4322,7 +3632,6 @@ var MCP_TOOL_CONTRACTS = {
4322
3632
  update_worktree_targets: UPDATE_WORKTREE_TARGETS,
4323
3633
  update_worktree_metadata: UPDATE_WORKTREE_METADATA,
4324
3634
  identity_whoami: IDENTITY_WHOAMI,
4325
- resolve_interactive_principal: RESOLVE_INTERACTIVE_PRINCIPAL,
4326
3635
  compile_context: COMPILE_CONTEXT,
4327
3636
  record_scope_learning: RECORD_SCOPE_LEARNING,
4328
3637
  pipeline_snapshot: PIPELINE_SNAPSHOT,
@@ -4342,7 +3651,6 @@ var MCP_TOOL_CONTRACTS = {
4342
3651
  get_agent_inbox: GET_AGENT_INBOX,
4343
3652
  claim_files: CLAIM_FILES,
4344
3653
  generate_session_handoff: GENERATE_SESSION_HANDOFF,
4345
- begin_build_session: BEGIN_BUILD_SESSION,
4346
3654
  // Policy / ACL (workhorse)
4347
3655
  check_permission: CHECK_PERMISSION,
4348
3656
  filter_by_permission: FILTER_BY_PERMISSION,
@@ -4362,8 +3670,6 @@ var MCP_TOOL_CONTRACTS = {
4362
3670
  get_topic: GET_TOPIC,
4363
3671
  update_topic: UPDATE_TOPIC,
4364
3672
  get_topic_tree: GET_TOPIC_TREE,
4365
- materialize_topic_graph: MATERIALIZE_TOPIC_GRAPH,
4366
- get_topic_graph_spine: GET_TOPIC_GRAPH_SPINE,
4367
3673
  // Coding intelligence (code-grounded knowledge)
4368
3674
  get_code_context: GET_CODE_CONTEXT,
4369
3675
  get_change_history: GET_CHANGE_HISTORY,
@@ -4440,7 +3746,6 @@ function entries(names, surfaceClass, surfaceIntent, surfaces, rationale) {
4440
3746
  var MCP_CORE_OPERATION_NAMES = [
4441
3747
  "compile_context",
4442
3748
  "identity_whoami",
4443
- "resolve_interactive_principal",
4444
3749
  "check_permission",
4445
3750
  "filter_by_permission",
4446
3751
  "create_belief",
@@ -4469,34 +3774,18 @@ var MCP_CORE_OPERATION_NAMES = [
4469
3774
  "find_missing_questions",
4470
3775
  "get_high_priority_questions",
4471
3776
  "get_falsification_questions",
4472
- "create_epistemic_node",
4473
- "get_epistemic_node",
4474
- "list_epistemic_nodes",
4475
- "update_epistemic_node",
4476
- "archive_epistemic_node",
4477
- "verify_epistemic_node",
4478
- "supersede_epistemic_node",
4479
- "batch_create_epistemic_nodes",
4480
3777
  "create_topic",
4481
3778
  "get_topic",
4482
3779
  "list_topics",
4483
3780
  "update_topic",
4484
- "get_topic_tree",
4485
- "materialize_topic_graph",
4486
- "get_topic_graph_spine"
3781
+ "get_topic_tree"
4487
3782
  ];
4488
3783
  var MCP_ANALYSIS_PLATFORM_OPERATION_NAMES = [
4489
3784
  "create_edge",
4490
- "update_edge",
4491
- "remove_edge",
4492
- "remove_edges_between",
4493
- "batch_create_edges",
4494
3785
  "query_lineage",
4495
3786
  "traverse_graph",
4496
3787
  "get_graph_neighborhood",
4497
3788
  "get_graph_structure_analysis",
4498
- "list_graph_intelligence_queries",
4499
- "run_graph_intelligence_query",
4500
3789
  "find_contradictions",
4501
3790
  "flag_contradiction",
4502
3791
  "detect_confirmation_bias",
@@ -4588,7 +3877,6 @@ var PLATFORM_INTERNAL_OPERATION_NAMES = [
4588
3877
  "get_change_history",
4589
3878
  "get_failure_log",
4590
3879
  "record_attempt",
4591
- "begin_build_session",
4592
3880
  "push",
4593
3881
  "open_pull_request",
4594
3882
  "record_judgment",
@@ -4643,6 +3931,7 @@ var SDK_ONLY_OPERATION_NAMES = [
4643
3931
  "find_semantic_orphans"
4644
3932
  ];
4645
3933
  var MCP_ONLY_INTERNAL_OPERATION_NAMES = [
3934
+ "begin_build_session",
4646
3935
  "evaluate_engineering_contract",
4647
3936
  "evaluate_research_contract"
4648
3937
  ];
@@ -4766,13 +4055,6 @@ function surfaceIntentGateViolations(entry) {
4766
4055
  }
4767
4056
  return violations;
4768
4057
  }
4769
- var NODE_TYPE = z.enum(["decision", "belief", "question", "theme", "deal", "topic", "claim", "evidence", "synthesis", "answer", "atomic_fact", "excerpt", "source", "company", "person", "investor", "function", "value_chain"]);
4770
- var EDGE_TYPE_VALUES = ["supports", "informs", "depends_on", "derived_from", "contains", "tests", "supersedes", "responds_to", "belongs_to", "relates_to_thesis", "works_at", "invested_in", "competes_with", "participates_in", "founded_by", "evaluates", "performs", "function_in", "impacts", "raised_from", "mentioned_in", "perspective_on", "plays_theme", "answers", "explores", "qualifies", "based_on", "based_on_belief", "based_on_question", "blocked_by_contradiction", "informed_by_theme", "same_as", "reinforces", "parent_of", "child_of", "falsified_by", "exclusive_with", "collapses_if", "cascade_from", "counterfactual_of", "cascade_to", "mutually_exclusive", "correlates_with", "amplifies", "precondition_for", "in_tension_with", "strengthened_by", "weakened_by", "alternative_to", "subsumes", "validated_by", "required_for", "blocks", "prerequisite_for", "parallel_to", "corroborates", "extends", "same_source_as", "same_theme_as", "assumes", "would_predict", "analogous_to", "independent_of", "implements", "violates", "co_changes_with", "migrating_from", "migrating_to", "scoped_by", "about_entity", "entity_referenced_in", "contradicts", "cites", "summarizes", "related_to", "partially_answers", "refines", "branches_from"];
4771
- var STORAGE_EDGE_TYPE_VALUES = [...EDGE_TYPE_VALUES, "extracted_from"];
4772
- z.enum(EDGE_TYPE_VALUES);
4773
- z.enum(STORAGE_EDGE_TYPE_VALUES);
4774
- z.enum(["active", "archived", "watching"]);
4775
- z.enum(["private", "team", "firm", "external", "public"]);
4776
4058
 
4777
4059
  // src/function-registry/helpers.ts
4778
4060
  var jsonObjectSchema = z.record(z.unknown());
@@ -4869,20 +4151,12 @@ function unwrapMcpParameterSchema(schema) {
4869
4151
  current = current._def.schema;
4870
4152
  continue;
4871
4153
  default:
4872
- return {
4873
- schema: current,
4874
- required,
4875
- description: description ?? current.description
4876
- };
4154
+ return { schema: current, required, description: description ?? current.description };
4877
4155
  }
4878
4156
  }
4879
4157
  }
4880
4158
  function mcpParameterFromZod(fieldName, schema, contractName) {
4881
- const {
4882
- schema: unwrapped,
4883
- required,
4884
- description: schemaDescription
4885
- } = unwrapMcpParameterSchema(schema);
4159
+ const { schema: unwrapped, required, description: schemaDescription } = unwrapMcpParameterSchema(schema);
4886
4160
  const description = schemaDescription ?? unwrapped.description ?? fieldName;
4887
4161
  switch (unwrapped._def.typeName) {
4888
4162
  case z.ZodFirstPartyTypeKind.ZodString:
@@ -4927,12 +4201,10 @@ function mcpContractFromArgsSchema(base, args, contractName) {
4927
4201
  const entries2 = Object.entries(getObjectShape(args)).sort(
4928
4202
  ([left], [right]) => left.localeCompare(right)
4929
4203
  );
4930
- const converted = entries2.map(
4931
- ([fieldName, schema]) => [
4932
- fieldName,
4933
- mcpParameterFromZod(fieldName, schema, contractName)
4934
- ]
4935
- );
4204
+ const converted = entries2.map(([fieldName, schema]) => [
4205
+ fieldName,
4206
+ mcpParameterFromZod(fieldName, schema, contractName)
4207
+ ]);
4936
4208
  return {
4937
4209
  ...base,
4938
4210
  parameters: Object.fromEntries(
@@ -4941,7 +4213,9 @@ function mcpContractFromArgsSchema(base, args, contractName) {
4941
4213
  required: converted.filter(([, field]) => field.required).map(([fieldName]) => fieldName)
4942
4214
  };
4943
4215
  }
4944
- var defineFunctionContract = (contract) => contract;
4216
+ function defineFunctionContract(contract) {
4217
+ return contract;
4218
+ }
4945
4219
  function classifyContract(contract, surfaceClass) {
4946
4220
  return {
4947
4221
  ...contract,
@@ -5047,16 +4321,9 @@ function surfaceContract(args) {
5047
4321
  scopes: args.scopes ?? [
5048
4322
  args.kind === "query" ? `${args.domain}.read` : `${args.domain}.write`
5049
4323
  ],
5050
- allowedPrincipalTypes: [
5051
- "user",
5052
- "service",
5053
- "agent",
5054
- "group",
5055
- "external_viewer"
5056
- ]
4324
+ allowedPrincipalTypes: ["user", "service", "agent"]
5057
4325
  },
5058
4326
  convex: args.convex,
5059
- gateway: args.gateway,
5060
4327
  args: canonicalArgs,
5061
4328
  returns: canonicalReturns,
5062
4329
  input,
@@ -5090,7 +4357,6 @@ var ALL_FUNCTION_CONTRACTS = [
5090
4357
  ...evidenceContracts,
5091
4358
  ...questionsContracts,
5092
4359
  ...topicsContracts,
5093
- ...nodesContracts,
5094
4360
  ...lensesContracts,
5095
4361
  ...ontologiesContracts,
5096
4362
  ...worktreesContracts,
@@ -5109,10 +4375,10 @@ var FUNCTION_SURFACE_CONTRACTS = ALL_FUNCTION_CONTRACTS;
5109
4375
  var FUNCTION_CONTRACTS_BY_NAME = new Map(
5110
4376
  ALL_FUNCTION_CONTRACTS.map((contract) => [contract.name, contract])
5111
4377
  );
5112
- var getFunctionContract = FUNCTION_CONTRACTS_BY_NAME.get.bind(
5113
- FUNCTION_CONTRACTS_BY_NAME
5114
- );
4378
+ function getFunctionContract(name) {
4379
+ return FUNCTION_CONTRACTS_BY_NAME.get(name);
4380
+ }
5115
4381
 
5116
- export { ALL_FUNCTION_CONTRACTS, DUPLICATE_OPERATION_NAMES, FORBIDDEN_APPLICATION_OPERATION_NAMES, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, LEGACY_COMPAT_OPERATION_NAMES, LUCERN_OPERATION_MANIFEST, MCP_ANALYSIS_PLATFORM_OPERATION_NAMES, MCP_ANALYSIS_TENANT_OPERATION_NAMES, MCP_AUTOMATION_OPERATION_NAMES, MCP_CORE_OPERATION_NAMES, MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES, MCP_GOVERNANCE_TENANT_OPERATION_NAMES, MCP_ONLY_INTERNAL_OPERATION_NAMES, MCP_WORKFLOW_PLATFORM_OPERATION_NAMES, MCP_WORKFLOW_TENANT_OPERATION_NAMES, NODE_TYPE, PLATFORM_INTERNAL_OPERATION_NAMES, PLATFORM_PUBLIC_OPERATION_NAMES, SDK_ONLY_OPERATION_NAMES, TENANT_PUBLIC_OPERATION_NAMES, argsSchemaFromMcpContract, assertSurfaceCoverage, authUserId, classifyContract, compactRecord, defineFunctionContract, getFunctionContract, inputSchemaFromMcpContract, jsonObjectSchema, recordValue, surfaceContract, surfaceEnabled, surfaceIntentGateViolations, surfaceMcpContract, withCreatedBy, withUserId };
4382
+ export { ALL_FUNCTION_CONTRACTS, DUPLICATE_OPERATION_NAMES, FORBIDDEN_APPLICATION_OPERATION_NAMES, FUNCTION_CONTRACTS_BY_NAME, FUNCTION_SURFACE_CONTRACTS, LEGACY_COMPAT_OPERATION_NAMES, LUCERN_OPERATION_MANIFEST, MCP_ANALYSIS_PLATFORM_OPERATION_NAMES, MCP_ANALYSIS_TENANT_OPERATION_NAMES, MCP_AUTOMATION_OPERATION_NAMES, MCP_CORE_OPERATION_NAMES, MCP_GOVERNANCE_PLATFORM_OPERATION_NAMES, MCP_GOVERNANCE_TENANT_OPERATION_NAMES, MCP_ONLY_INTERNAL_OPERATION_NAMES, MCP_WORKFLOW_PLATFORM_OPERATION_NAMES, MCP_WORKFLOW_TENANT_OPERATION_NAMES, PLATFORM_INTERNAL_OPERATION_NAMES, PLATFORM_PUBLIC_OPERATION_NAMES, SDK_ONLY_OPERATION_NAMES, TENANT_PUBLIC_OPERATION_NAMES, argsSchemaFromMcpContract, assertSurfaceCoverage, authUserId, classifyContract, compactRecord, defineFunctionContract, getFunctionContract, inputSchemaFromMcpContract, jsonObjectSchema, recordValue, surfaceContract, surfaceEnabled, surfaceIntentGateViolations, surfaceMcpContract, withCreatedBy, withUserId };
5117
4383
  //# sourceMappingURL=index.js.map
5118
4384
  //# sourceMappingURL=index.js.map