@lucern/contracts 1.0.16 → 1.0.17

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 (116) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/api-enums.contract.d.ts +2 -2
  3. package/dist/api-enums.contract.js +2 -8
  4. package/dist/api-enums.contract.js.map +1 -1
  5. package/dist/context-pack.contract.d.ts +27 -7
  6. package/dist/context-pack.contract.js.map +1 -1
  7. package/dist/function-registry/beliefs.js +109 -115
  8. package/dist/function-registry/beliefs.js.map +1 -1
  9. package/dist/function-registry/coding.js +68 -91
  10. package/dist/function-registry/coding.js.map +1 -1
  11. package/dist/function-registry/context.js +68 -91
  12. package/dist/function-registry/context.js.map +1 -1
  13. package/dist/function-registry/contracts.js +68 -91
  14. package/dist/function-registry/contracts.js.map +1 -1
  15. package/dist/function-registry/coordination.js +68 -91
  16. package/dist/function-registry/coordination.js.map +1 -1
  17. package/dist/function-registry/edges.js +68 -91
  18. package/dist/function-registry/edges.js.map +1 -1
  19. package/dist/function-registry/evidence.js +182 -125
  20. package/dist/function-registry/evidence.js.map +1 -1
  21. package/dist/function-registry/graph.js +68 -91
  22. package/dist/function-registry/graph.js.map +1 -1
  23. package/dist/function-registry/helpers.js +68 -91
  24. package/dist/function-registry/helpers.js.map +1 -1
  25. package/dist/function-registry/identity.js +68 -91
  26. package/dist/function-registry/identity.js.map +1 -1
  27. package/dist/function-registry/index.js +68 -91
  28. package/dist/function-registry/index.js.map +1 -1
  29. package/dist/function-registry/judgments.js +68 -91
  30. package/dist/function-registry/judgments.js.map +1 -1
  31. package/dist/function-registry/legacy.js +68 -91
  32. package/dist/function-registry/legacy.js.map +1 -1
  33. package/dist/function-registry/lenses.js +68 -91
  34. package/dist/function-registry/lenses.js.map +1 -1
  35. package/dist/function-registry/manifest.d.ts +3 -3
  36. package/dist/function-registry/manifest.js +3 -3
  37. package/dist/function-registry/manifest.js.map +1 -1
  38. package/dist/function-registry/nodes.js +68 -91
  39. package/dist/function-registry/nodes.js.map +1 -1
  40. package/dist/function-registry/ontologies.js +68 -91
  41. package/dist/function-registry/ontologies.js.map +1 -1
  42. package/dist/function-registry/pipeline.js +68 -91
  43. package/dist/function-registry/pipeline.js.map +1 -1
  44. package/dist/function-registry/questions.js +68 -91
  45. package/dist/function-registry/questions.js.map +1 -1
  46. package/dist/function-registry/tasks.js +68 -91
  47. package/dist/function-registry/tasks.js.map +1 -1
  48. package/dist/function-registry/topics.js +68 -91
  49. package/dist/function-registry/topics.js.map +1 -1
  50. package/dist/function-registry/worktrees.js +68 -91
  51. package/dist/function-registry/worktrees.js.map +1 -1
  52. package/dist/generated/convexSchemas.js +2 -2
  53. package/dist/generated/convexSchemas.js.map +1 -1
  54. package/dist/index.d.ts +4 -4
  55. package/dist/index.js +162 -130
  56. package/dist/index.js.map +1 -1
  57. package/dist/manifests/invariant-manifest.d.ts +1 -1
  58. package/dist/manifests/invariants/index.d.ts +1 -1
  59. package/dist/manifests/invariants/index.js +1 -1
  60. package/dist/manifests/invariants/index.js.map +1 -1
  61. package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +1 -1
  62. package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +1 -1
  63. package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +1 -1
  64. package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +1 -1
  65. package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -1
  66. package/dist/projections/{modulate-confidence.projection.d.ts → append-sl-scoring.projection.d.ts} +69 -69
  67. package/dist/projections/{modulate-confidence.projection.js → append-sl-scoring.projection.js} +14 -14
  68. package/dist/projections/append-sl-scoring.projection.js.map +1 -0
  69. package/dist/projections/check-convex-args-shape.js +88 -29
  70. package/dist/projections/check-convex-args-shape.js.map +1 -1
  71. package/dist/projections/create-evidence.projection.js +76 -17
  72. package/dist/projections/create-evidence.projection.js.map +1 -1
  73. package/dist/projections/index.d.ts +47 -47
  74. package/dist/projections/index.js +88 -29
  75. package/dist/projections/index.js.map +1 -1
  76. package/dist/proof-attestation.json +3 -3
  77. package/dist/schemas/index.js +6 -4
  78. package/dist/schemas/index.js.map +1 -1
  79. package/dist/schemas/manifest.d.ts +110 -60
  80. package/dist/schemas/manifest.js +6 -4
  81. package/dist/schemas/manifest.js.map +1 -1
  82. package/dist/schemas/tables/kernel/intelligence.d.ts +20 -10
  83. package/dist/schemas/tables/kernel/intelligence.js +4 -2
  84. package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
  85. package/dist/schemas/tables/kernel/spine.d.ts +2 -2
  86. package/dist/schemas/tables/kernel/spine.js +2 -2
  87. package/dist/schemas/tables/kernel/spine.js.map +1 -1
  88. package/dist/schemas.values.js +6 -4
  89. package/dist/schemas.values.js.map +1 -1
  90. package/dist/sdk-methods.contract.d.ts +6 -16
  91. package/dist/sdk-tools.contract.js +65 -88
  92. package/dist/sdk-tools.contract.js.map +1 -1
  93. package/dist/sdk-tools.contract.registry.js +65 -88
  94. package/dist/sdk-tools.contract.registry.js.map +1 -1
  95. package/dist/sdk-tools.contract.values.js +65 -88
  96. package/dist/sdk-tools.contract.values.js.map +1 -1
  97. package/dist/tool-contracts.d.ts +1 -1
  98. package/dist/tool-contracts.graph.js +3 -3
  99. package/dist/tool-contracts.graph.js.map +1 -1
  100. package/dist/tool-contracts.intelligence-evidence.js +7 -7
  101. package/dist/tool-contracts.intelligence-evidence.js.map +1 -1
  102. package/dist/tool-contracts.js +66 -89
  103. package/dist/tool-contracts.js.map +1 -1
  104. package/dist/tool-contracts.lifecycle.d.ts +2 -2
  105. package/dist/tool-contracts.lifecycle.js +49 -68
  106. package/dist/tool-contracts.lifecycle.js.map +1 -1
  107. package/dist/tool-contracts.pipeline-coordination.js +1 -1
  108. package/dist/tool-contracts.pipeline-coordination.js.map +1 -1
  109. package/dist/tool-contracts.questions-listing.js +5 -9
  110. package/dist/tool-contracts.questions-listing.js.map +1 -1
  111. package/dist/{tool-contracts.values-BhxfrXS5.d.ts → tool-contracts.values-CCoI3qQY.d.ts} +3 -3
  112. package/dist/tool-contracts.values.d.ts +1 -1
  113. package/dist/tool-contracts.values.js +66 -89
  114. package/dist/tool-contracts.values.js.map +1 -1
  115. package/package.json +1 -1
  116. package/dist/projections/modulate-confidence.projection.js.map +0 -1
package/dist/index.js CHANGED
@@ -710,6 +710,7 @@ __export(tool_contracts_values_exports, {
710
710
  ADD_WORKTREE: () => ADD_WORKTREE,
711
711
  ANALYZE_TOPIC_DENSITY: () => ANALYZE_TOPIC_DENSITY,
712
712
  ANSWER_QUESTION: () => ANSWER_QUESTION,
713
+ APPEND_SL_SCORING: () => APPEND_SL_SCORING,
713
714
  APPLY_AUTO_BRANCHING: () => APPLY_AUTO_BRANCHING,
714
715
  APPLY_LENS_TO_TOPIC: () => APPLY_LENS_TO_TOPIC,
715
716
  APPLY_ONTOLOGY: () => APPLY_ONTOLOGY,
@@ -801,7 +802,6 @@ __export(tool_contracts_values_exports, {
801
802
  MATERIALIZE_TOPIC_GRAPH: () => MATERIALIZE_TOPIC_GRAPH,
802
803
  MCP_TOOL_CONTRACTS: () => MCP_TOOL_CONTRACTS,
803
804
  MERGE: () => MERGE,
804
- MODULATE_CONFIDENCE: () => MODULATE_CONFIDENCE,
805
805
  OPEN_PULL_REQUEST: () => OPEN_PULL_REQUEST,
806
806
  PIPELINE_SNAPSHOT: () => PIPELINE_SNAPSHOT,
807
807
  PUBLISH_ONTOLOGY_VERSION: () => PUBLISH_ONTOLOGY_VERSION,
@@ -861,10 +861,8 @@ var FORK_REASONS = [
861
861
  // Created in response to a detected contradiction
862
862
  "scope_change",
863
863
  // Belief scope narrowed or broadened
864
- "confidence_collapse",
864
+ "confidence_collapse"
865
865
  // Confidence dropped below viability threshold
866
- "manual"
867
- // User-initiated fork without specific trigger
868
866
  ];
869
867
  var CONFIDENCE_TRIGGERS = [
870
868
  "evidence_added",
@@ -875,12 +873,8 @@ var CONFIDENCE_TRIGGERS = [
875
873
  // A contradiction was flagged involving this belief
876
874
  "contradiction_resolved",
877
875
  // A contradiction was resolved
878
- "manual",
879
- // User manually adjusted confidence
880
- "decay",
881
- // Time-based confidence erosion
882
876
  "agent_assessment",
883
- // An agent provided a structured assessment
877
+ // An agent-proposed scoring event with concrete provenance
884
878
  "worktree_outcome",
885
879
  // Worktree outcome determined this confidence
886
880
  "worktree_completed",
@@ -1015,7 +1009,7 @@ var INTEGRATION_EDGE_TYPES = [
1015
1009
  // src/tool-contracts.graph.ts
1016
1010
  var QUERY_LINEAGE = {
1017
1011
  name: "query_lineage",
1018
- 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).",
1012
+ description: "Trace a belief's full ancestry \u2014 every fork, score, and SL scoring event. 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).",
1019
1013
  parameters: {
1020
1014
  nodeId: { type: "string", description: "Starting node to trace from" },
1021
1015
  depth: {
@@ -1214,7 +1208,7 @@ var FIND_CONTRADICTIONS = {
1214
1208
  };
1215
1209
  var BISECT_CONFIDENCE = {
1216
1210
  name: "bisect_confidence",
1217
- 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.",
1211
+ 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 SL scoring events to identify which evidence or event caused the divergence.",
1218
1212
  parameters: {
1219
1213
  nodeId: { type: "string", description: "The belief to bisect" },
1220
1214
  expectedDirection: {
@@ -1233,7 +1227,7 @@ var BISECT_CONFIDENCE = {
1233
1227
  fields: {
1234
1228
  beliefId: "string \u2014 canonical belief ID",
1235
1229
  expectedDirection: "string \u2014 overconfident | underconfident",
1236
- inflectionEntry: "object \u2014 the confidence modulation where divergence began",
1230
+ inflectionEntry: "object \u2014 the scoring event where divergence began",
1237
1231
  triggerEvent: "string | null \u2014 what caused the divergence",
1238
1232
  confidenceBefore: "number | null",
1239
1233
  confidenceAfter: "number | null",
@@ -1527,18 +1521,18 @@ var SEARCH_EVIDENCE = {
1527
1521
  };
1528
1522
  var CREATE_EVIDENCE = {
1529
1523
  name: "create_evidence",
1530
- description: "Commit evidence to the reasoning graph. Like `git commit` \u2014 creates a traceable evidence record with canonical public IDs. Optionally links the evidence to a belief or question in the same operation. When evidence bears on beliefs, state whether it supports or contradicts; SL confidence is derived from these evidence relations.",
1524
+ description: "Commit evidence to the reasoning graph. Like `git commit` \u2014 creates a traceable evidence record with canonical public IDs. Evidence creation must link to at least one belief and must include a signed impact score. Positive scores support the belief; negative scores contradict it. SL confidence is derived from these weighted evidence relations.",
1531
1525
  parameters: {
1532
1526
  topicId: { type: "string", description: "Topic scope" },
1533
1527
  text: { type: "string", description: "Canonical evidence text" },
1534
1528
  source: { type: "string", description: "Source URL or source label" },
1535
1529
  targetId: {
1536
1530
  type: "string",
1537
- description: "Optional belief or question identifier to link immediately"
1531
+ description: "Belief identifier to link immediately"
1538
1532
  },
1539
1533
  weight: {
1540
1534
  type: "number",
1541
- description: "Optional support weight: -1.0 (contradicts) to +1.0 (supports). If omitted, evidenceRelation + confidence determine the weight."
1535
+ description: "Required nonzero signed impact score: -1.0 (contradicts) to +1.0 (supports)."
1542
1536
  },
1543
1537
  evidenceRelation: {
1544
1538
  type: "string",
@@ -1547,7 +1541,7 @@ var CREATE_EVIDENCE = {
1547
1541
  },
1548
1542
  confidence: {
1549
1543
  type: "number",
1550
- description: "Confidence in the evidence relation, 0.0 to 1.0"
1544
+ description: "Deprecated hint. Runtime confidence is derived from the signed impact score."
1551
1545
  },
1552
1546
  beliefRelations: {
1553
1547
  type: "array",
@@ -1569,7 +1563,7 @@ var CREATE_EVIDENCE = {
1569
1563
  },
1570
1564
  kind: { type: "string", description: "Optional evidence kind" }
1571
1565
  },
1572
- required: ["text", "rationale"],
1566
+ required: ["text", "rationale", "weight"],
1573
1567
  response: {
1574
1568
  description: "The created canonical evidence record",
1575
1569
  fields: {
@@ -1644,7 +1638,7 @@ var LINK_EVIDENCE = {
1644
1638
  },
1645
1639
  rationale: { type: "string", description: "Why this link exists" }
1646
1640
  },
1647
- required: ["evidenceId", "targetId"],
1641
+ required: ["evidenceId", "targetId", "weight"],
1648
1642
  response: {
1649
1643
  description: "The created canonical evidence edge summary",
1650
1644
  fields: {
@@ -1680,7 +1674,7 @@ var LINK_EVIDENCE_TO_BELIEF = {
1680
1674
  },
1681
1675
  rationale: { type: "string", description: "Why this evidence is relevant" }
1682
1676
  },
1683
- required: ["evidenceId", "beliefId"],
1677
+ required: ["evidenceId", "beliefId", "weight"],
1684
1678
  response: {
1685
1679
  description: "The created edge linking evidence to belief",
1686
1680
  fields: {
@@ -1698,15 +1692,23 @@ var LINK_EVIDENCE_TO_BELIEF = {
1698
1692
  // src/tool-contracts.lifecycle.ts
1699
1693
  var CREATE_BELIEF = {
1700
1694
  name: "create_belief",
1701
- 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)`; attach supporting or contradicting evidence with create_evidence or link_evidence_to_belief to record evidential updates.",
1695
+ 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 requires a topic epistemic-node anchor and writes a `scoped_by` edge directly from belief node to topic node; orphan beliefs are invalid. Creation stores the vacuous opinion `(0, 0, 1, a)`; attach supporting or contradicting evidence with create_evidence or link_evidence_to_belief to record evidential updates.",
1702
1696
  parameters: {
1703
1697
  canonicalText: {
1704
1698
  type: "string",
1705
1699
  description: "The belief statement \u2014 what the agent holds to be true"
1706
1700
  },
1701
+ topicGlobalId: {
1702
+ type: "string",
1703
+ description: "Required globalId (UUID) of the topic node in epistemicNodes that anchors the belief"
1704
+ },
1705
+ topicNodeId: {
1706
+ type: "string",
1707
+ description: "Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
1708
+ },
1707
1709
  topicId: {
1708
1710
  type: "string",
1709
- description: "Optional topic scope hint for the belief"
1711
+ description: "Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
1710
1712
  },
1711
1713
  baseRate: {
1712
1714
  type: "number",
@@ -1721,7 +1723,7 @@ var CREATE_BELIEF = {
1721
1723
  description: "Optional extra metadata merged into the node (e.g., { codeAnchors: ['path/to/file.ts'] } for coding intelligence)"
1722
1724
  }
1723
1725
  },
1724
- required: ["canonicalText"],
1726
+ required: ["canonicalText", "topicGlobalId"],
1725
1727
  response: {
1726
1728
  description: "The created canonical belief record",
1727
1729
  fields: {
@@ -1730,7 +1732,7 @@ var CREATE_BELIEF = {
1730
1732
  beliefId: "string \u2014 canonical belief ID",
1731
1733
  text: "string \u2014 canonical belief formulation",
1732
1734
  topicId: "string",
1733
- status: "string \u2014 active | superseded | archived",
1735
+ beliefStatus: "string \u2014 assumption | hypothesis | active | superseded | resolved_true | resolved_false",
1734
1736
  scoringState: "string \u2014 unscored | scored"
1735
1737
  }
1736
1738
  },
@@ -1753,7 +1755,7 @@ var GET_BELIEF = {
1753
1755
  beliefId: "string \u2014 canonical belief ID",
1754
1756
  text: "string \u2014 canonical belief formulation",
1755
1757
  topicId: "string",
1756
- status: "string \u2014 active | superseded | archived",
1758
+ beliefStatus: "string \u2014 assumption | hypothesis | active | superseded | resolved_true | resolved_false",
1757
1759
  scoringState: "string \u2014 unscored | scored"
1758
1760
  }
1759
1761
  },
@@ -1782,34 +1784,24 @@ var REFINE_BELIEF = {
1782
1784
  ontologyPrimitive: "belief",
1783
1785
  tier: "showcase"
1784
1786
  };
1785
- var MODULATE_CONFIDENCE = {
1786
- name: "modulate_confidence",
1787
- description: "Internal-only subjective-logic ledger append. Like `git commit` to the credence log for the scoring engine \u2014 never an operator-facing way to assert confidence. Agents, SDK callers, CLI users, and MCP clients must instead create or link evidence with `evidenceRelation: supports|contradicts`; the kernel derives the next opinion from that evidence. This compatibility primitive is reserved for governed system scoring paths that already hold a full subjective-logic tuple and truth-bearing provenance.",
1787
+ var APPEND_SL_SCORING = {
1788
+ name: "append_sl_scoring",
1789
+ description: "Internal evidence-backed Subjective Logic scoring append. This is not a public MCP tool: callers should attach supporting or contradicting evidence, and governed system paths append the derived SL tuple.",
1788
1790
  parameters: {
1789
- nodeId: { type: "string", description: "The belief to score" },
1790
- belief: {
1791
- type: "number",
1792
- description: "Subjective-logic belief mass `b` in [0, 1]"
1793
- },
1791
+ nodeId: { type: "string", description: "The belief receiving the SL score" },
1792
+ belief: { type: "number", description: "Subjective Logic belief mass b" },
1794
1793
  disbelief: {
1795
1794
  type: "number",
1796
- description: "Subjective-logic disbelief mass `d` in [0, 1]"
1795
+ description: "Subjective Logic disbelief mass d"
1797
1796
  },
1798
1797
  uncertainty: {
1799
1798
  type: "number",
1800
- description: "Subjective-logic uncertainty mass `u` in [0, 1]"
1801
- },
1802
- baseRate: {
1803
- type: "number",
1804
- description: "Subjective-logic base rate `a` in [0, 1]. Required for tuple payloads."
1805
- },
1806
- worktreeId: {
1807
- type: "string",
1808
- description: "Completed worktree that tested this belief when confidence policy requires merge-backed scoring."
1799
+ description: "Subjective Logic uncertainty mass u"
1809
1800
  },
1801
+ baseRate: { type: "number", description: "Subjective Logic base rate a" },
1810
1802
  trigger: {
1811
1803
  type: "string",
1812
- description: "What caused this confidence change",
1804
+ description: "Evidence-bearing cause of the scoring event",
1813
1805
  enum: [
1814
1806
  "evidence_added",
1815
1807
  "evidence_removed",
@@ -1820,64 +1812,39 @@ var MODULATE_CONFIDENCE = {
1820
1812
  "worktree_completed",
1821
1813
  "fusion",
1822
1814
  "discount",
1823
- "deduction"
1815
+ "deduction",
1816
+ "backfill_synthetic"
1824
1817
  ]
1825
1818
  },
1826
- triggeringEvidenceId: {
1827
- type: "string",
1828
- description: "Evidence node that caused an evidence-triggered modulation"
1829
- },
1830
- triggeringQuestionId: {
1831
- type: "string",
1832
- description: "Answered question whose resolution supports this modulation"
1833
- },
1834
- triggeringAnswerId: {
1835
- type: "string",
1836
- description: "Answer node whose content supports this modulation"
1837
- },
1838
- triggeringContradictionId: {
1839
- type: "string",
1840
- description: "Contradiction record that caused a contradiction-triggered modulation"
1841
- },
1842
- triggeringWorktreeId: {
1843
- type: "string",
1844
- description: "Completed worktree whose outcome caused a worktree-triggered modulation"
1819
+ provenance: {
1820
+ type: "object",
1821
+ description: "At least one of evidence, question, answer, contradiction, or worktree."
1845
1822
  },
1846
1823
  rationale: {
1847
1824
  type: "string",
1848
- description: "Human-readable explanation of why confidence changed"
1825
+ description: "Why this evidence-bearing event moved the SL tuple"
1849
1826
  }
1850
1827
  },
1851
- required: [
1852
- "nodeId",
1853
- "belief",
1854
- "disbelief",
1855
- "uncertainty",
1856
- "baseRate",
1857
- "trigger",
1858
- "rationale"
1859
- ],
1828
+ required: ["nodeId", "belief", "disbelief", "uncertainty", "baseRate", "trigger", "rationale"],
1860
1829
  response: {
1861
- description: "Confidence modulation result",
1830
+ description: "Internal SL scoring append receipt",
1862
1831
  fields: {
1863
- beliefId: "string \u2014 canonical belief ID",
1864
- nodeId: "string \u2014 canonical belief ID",
1865
- newConfidence: "number",
1832
+ nodeId: "string",
1866
1833
  previousConfidence: "number",
1867
- trigger: "string",
1868
- requestId: "string \u2014 request identifier for the scheduled cascade",
1869
- propagationSummary: "object \u2014 bounded inline cascade summary with totalCandidateTargets, inlineTargets, and remainingTargetCount"
1834
+ newConfidence: "number",
1835
+ beliefConfidenceId: "string"
1870
1836
  }
1871
1837
  },
1872
1838
  ownerModule: "graph-primitives",
1873
1839
  ontologyPrimitive: "belief",
1874
- tier: "showcase"
1840
+ tier: "workhorse",
1841
+ internal: true
1875
1842
  };
1876
1843
  var FORK_BELIEF = {
1877
1844
  name: "fork_belief",
1878
- description: "Branch off a scored belief to create a new version with a different formulation. Like `git fork` \u2014 the parent remains immutable with full history. The new belief gets a `supersedes` edge to the parent. Fork reasons: refinement, contradiction_response, scope_change, confidence_collapse, manual.",
1845
+ description: "Branch off an evidence-bearing belief to create a new formulation. Like `git fork` \u2014 the parent remains immutable with full history, and every fork must cite evidence already attached to the parent through SL scoring. `forkMode=supersede` marks the parent superseded and requires contradicting evidence; `forkMode=branch` preserves the parent and creates a derived child.",
1879
1846
  parameters: {
1880
- nodeId: { type: "string", description: "The scored belief to fork from" },
1847
+ nodeId: { type: "string", description: "The belief to fork from" },
1881
1848
  newFormulation: {
1882
1849
  type: "string",
1883
1850
  description: "The evolved belief statement"
@@ -1889,12 +1856,20 @@ var FORK_BELIEF = {
1889
1856
  "refinement",
1890
1857
  "contradiction_response",
1891
1858
  "scope_change",
1892
- "confidence_collapse",
1893
- "manual"
1859
+ "confidence_collapse"
1894
1860
  ]
1861
+ },
1862
+ forkMode: {
1863
+ type: "string",
1864
+ description: "supersede replaces the parent; branch creates a child while preserving the parent.",
1865
+ enum: ["supersede", "branch"]
1866
+ },
1867
+ triggeringEvidenceId: {
1868
+ type: "string",
1869
+ description: "Evidence already attached to the parent belief that caused the fork."
1895
1870
  }
1896
1871
  },
1897
- required: ["nodeId", "newFormulation", "forkReason"],
1872
+ required: ["nodeId", "newFormulation", "forkReason", "triggeringEvidenceId"],
1898
1873
  response: {
1899
1874
  description: "The forked canonical belief record",
1900
1875
  fields: {
@@ -3159,7 +3134,7 @@ var TRIGGER_BELIEF_REVIEW = {
3159
3134
  };
3160
3135
  var EVALUATE_CONTRACT = {
3161
3136
  name: "evaluate_contract",
3162
- description: "Run a contract evaluation and record the append-only result. Like `git test` for a belief binding \u2014 executes the evaluator, logs the result, and applies any allowed confidence modulation.",
3137
+ description: "Run a contract evaluation and record the append-only result. Like `git test` for a belief binding \u2014 executes the evaluator, logs the result, and applies any allowed SL scoring action.",
3163
3138
  parameters: {
3164
3139
  contractId: { type: "string", description: "Which contract to evaluate" },
3165
3140
  trigger: {
@@ -5050,6 +5025,11 @@ var COMPILE_CONTEXT = {
5050
5025
  response: {
5051
5026
  description: "Compiled context pack for the requested topic",
5052
5027
  fields: {
5028
+ contextNarrative: "array \u2014 first field; ordered synthesis blocks with kind/text, starting with executive_summary and canonical narrative blocks before raw objects",
5029
+ narrativeCoverage: "object \u2014 recordsSynthesized, recordsNamed, recordsOmitted, topicsSynthesized, topicsEnriched, topicContentOmitted, enrichmentMode, and blocksEmitted for the narrative",
5030
+ synthesisLints: "array \u2014 inline quality warnings for degenerate synthesis blocks or weak narrative coverage",
5031
+ retrievalReceipt: "object \u2014 candidateCounts, coverageWarning, narrativeCoverage, synthesisLints, and suggestedNextActions",
5032
+ supportingObjects: "object \u2014 raw graph records grouped behind the synthesis: invariants, activeBeliefs, openQuestions, recentEvidence, worktrees, lanes, entities, and contradictions",
5053
5033
  schemaVersion: "string",
5054
5034
  topicId: "string",
5055
5035
  topicName: "string",
@@ -5057,15 +5037,6 @@ var COMPILE_CONTEXT = {
5057
5037
  generatedAt: "number \u2014 deterministic graph-backed reference timestamp for this compilation",
5058
5038
  ranking: "string \u2014 baseline_v1 | weighted_v1",
5059
5039
  summary: "object \u2014 counts and scoped health signals",
5060
- invariants: "array \u2014 high-confidence invariant beliefs",
5061
- activeBeliefs: "array \u2014 current high-signal beliefs",
5062
- openQuestions: "array \u2014 unresolved questions ranked for this query",
5063
- recentEvidence: "array \u2014 recent evidence ranked for this query",
5064
- contradictions: "array \u2014 unresolved contradiction records",
5065
- relatedEntities: "array | undefined \u2014 ranked ontological entities in scope",
5066
- contextNarrative: "array \u2014 ordered synthesis blocks with kind/text, starting with executive_summary and canonical narrative blocks before raw objects",
5067
- retrievalReceipt: "object \u2014 candidateCounts, coverageWarning, narrativeCoverage, synthesisLints, and suggestedNextActions",
5068
- narrativeCoverage: "object \u2014 recordsSynthesized, recordsNamed, recordsOmitted, topicsSynthesized, topicsEnriched, topicContentOmitted, enrichmentMode, and blocksEmitted for the narrative",
5069
5040
  injectionPolicy: "object \u2014 token-budgeted section selections",
5070
5041
  diagnostics: "object \u2014 scoring and utilization telemetry"
5071
5042
  }
@@ -5624,7 +5595,7 @@ var MCP_TOOL_CONTRACTS = {
5624
5595
  create_belief: CREATE_BELIEF,
5625
5596
  get_belief: GET_BELIEF,
5626
5597
  refine_belief: REFINE_BELIEF,
5627
- modulate_confidence: MODULATE_CONFIDENCE,
5598
+ append_sl_scoring: APPEND_SL_SCORING,
5628
5599
  fork_belief: FORK_BELIEF,
5629
5600
  archive_belief: ARCHIVE_BELIEF,
5630
5601
  create_epistemic_contract: CREATE_EPISTEMIC_CONTRACT,
@@ -7455,8 +7426,10 @@ var graphAnalysisCache = defineTable({
7455
7426
  "beliefStatus": z.object({
7456
7427
  "assumption": z.number(),
7457
7428
  "hypothesis": z.number(),
7458
- "belief": z.number(),
7459
- "fact": z.number()
7429
+ "active": z.number(),
7430
+ "superseded": z.number(),
7431
+ "resolved_true": z.number(),
7432
+ "resolved_false": z.number()
7460
7433
  }).optional(),
7461
7434
  "evidenceTemporalNature": z.object({
7462
7435
  "factual": z.number(),
@@ -7678,8 +7651,8 @@ var epistemicNodes = defineTable({
7678
7651
  "exportClass": z.enum(["internal_only", "client_safe", "public_safe", "restricted"]).optional(),
7679
7652
  "anonymizationClass": z.enum(["none", "standard", "strict"]).optional(),
7680
7653
  "beliefType": z.string().optional(),
7681
- "beliefStatus": z.enum(["assumption", "hypothesis", "belief", "fact"]).optional(),
7682
- "epistemicStatus": z.enum(["hypothesis", "emerging", "established", "challenged", "assumption", "deprecated"]).optional(),
7654
+ "beliefStatus": z.enum(["assumption", "hypothesis", "active", "superseded", "resolved_true", "resolved_false"]).optional(),
7655
+ "epistemicStatus": z.enum(["assumption", "hypothesis", "active", "superseded", "resolved_true", "resolved_false"]).optional(),
7683
7656
  "reversibility": z.enum(["irreversible", "hard_to_reverse", "reversible", "trivial"]).optional(),
7684
7657
  "predictionMeta": z.object({
7685
7658
  "isPrediction": z.boolean(),
@@ -48562,11 +48535,39 @@ var createEvidenceInputSchemaBase = z.object({
48562
48535
  metadata: jsonRecordSchema.optional(),
48563
48536
  trustedBypassAccessCheck: z.boolean().optional()
48564
48537
  }).passthrough();
48565
- function hasNonzeroWeight(value) {
48566
- return typeof value === "number" && Number.isFinite(value) && value !== 0;
48538
+ function isSignedImpactScore(value) {
48539
+ return typeof value === "number" && Number.isFinite(value) && value >= -1 && value <= 1 && value !== 0;
48567
48540
  }
48568
- function hasRelationSignal(value, weight) {
48569
- return Boolean(normalizeRelation(value, weight));
48541
+ function validateSignedImpactScore(value, ctx, path) {
48542
+ if (!isSignedImpactScore(value)) {
48543
+ ctx.addIssue({
48544
+ code: z.ZodIssueCode.custom,
48545
+ message: "evidence-to-belief links require an explicit nonzero signed impact score in [-1, 1]",
48546
+ path
48547
+ });
48548
+ return false;
48549
+ }
48550
+ return true;
48551
+ }
48552
+ function validateRelationImpactConsistency(relation, weight, ctx, path) {
48553
+ const normalized = normalizeRelationAlias(relation);
48554
+ if (!normalized || !isSignedImpactScore(weight)) {
48555
+ return;
48556
+ }
48557
+ if (normalized === "supports" && weight < 0) {
48558
+ ctx.addIssue({
48559
+ code: z.ZodIssueCode.custom,
48560
+ message: "supporting evidence requires a positive impact score",
48561
+ path
48562
+ });
48563
+ }
48564
+ if (normalized === "contradicts" && weight > 0) {
48565
+ ctx.addIssue({
48566
+ code: z.ZodIssueCode.custom,
48567
+ message: "contradicting evidence requires a negative impact score",
48568
+ path
48569
+ });
48570
+ }
48570
48571
  }
48571
48572
  var createEvidenceInputSchema = createEvidenceInputSchemaBase.superRefine(
48572
48573
  (input, ctx) => {
@@ -48583,13 +48584,27 @@ var createEvidenceInputSchema = createEvidenceInputSchemaBase.superRefine(
48583
48584
  input.linkedBeliefNodeId || kind === "belief" || kind === "unknown" && target
48584
48585
  );
48585
48586
  const weight = typeof input.weight === "number" ? input.weight : void 0;
48586
- if (linksPrimaryBelief && !hasRelationSignal(input.evidenceRelation, weight)) {
48587
+ const hasBeliefRelations = (input.beliefRelations?.length ?? 0) > 0;
48588
+ if (!linksPrimaryBelief && !hasBeliefRelations) {
48589
+ ctx.addIssue({
48590
+ code: z.ZodIssueCode.custom,
48591
+ message: "create_evidence requires at least one linked belief; evidence cannot be created as an orphan or linked only to a question/worktree",
48592
+ path: ["linkedBeliefNodeId"]
48593
+ });
48594
+ }
48595
+ if (kind === "question" || kind === "worktree") {
48587
48596
  ctx.addIssue({
48588
48597
  code: z.ZodIssueCode.custom,
48589
- message: "belief-targeted evidence requires evidenceRelation='supports'|'contradicts' or a nonzero signed weight",
48590
- path: ["evidenceRelation"]
48598
+ message: "create_evidence targetId must be a belief. Link evidence to questions/worktrees only after the evidence has a belief impact edge.",
48599
+ path: ["targetId"]
48591
48600
  });
48592
48601
  }
48602
+ if (linksPrimaryBelief) {
48603
+ validateSignedImpactScore(weight, ctx, ["weight"]);
48604
+ validateRelationImpactConsistency(input.evidenceRelation, weight, ctx, [
48605
+ "weight"
48606
+ ]);
48607
+ }
48593
48608
  input.beliefRelations?.forEach((relation, index) => {
48594
48609
  const beliefNodeId = relation.beliefNodeId ?? relation.beliefId ?? relation.targetId;
48595
48610
  if (!beliefNodeId) {
@@ -48600,15 +48615,18 @@ var createEvidenceInputSchema = createEvidenceInputSchemaBase.superRefine(
48600
48615
  });
48601
48616
  }
48602
48617
  const relationWeight = typeof relation.weight === "number" ? relation.weight : void 0;
48603
- if (beliefNodeId && !hasRelationSignal(
48604
- relation.evidenceRelation ?? relation.relation,
48605
- relationWeight
48606
- )) {
48607
- ctx.addIssue({
48608
- code: z.ZodIssueCode.custom,
48609
- message: "beliefRelations entries require evidenceRelation='supports'|'contradicts' or a nonzero signed weight",
48610
- path: ["beliefRelations", index, "evidenceRelation"]
48611
- });
48618
+ if (beliefNodeId) {
48619
+ validateSignedImpactScore(relationWeight, ctx, [
48620
+ "beliefRelations",
48621
+ index,
48622
+ "weight"
48623
+ ]);
48624
+ validateRelationImpactConsistency(
48625
+ relation.evidenceRelation ?? relation.relation,
48626
+ relationWeight,
48627
+ ctx,
48628
+ ["beliefRelations", index, "weight"]
48629
+ );
48612
48630
  }
48613
48631
  });
48614
48632
  }
@@ -48662,18 +48680,28 @@ function targetKind(targetId) {
48662
48680
  }
48663
48681
  return "unknown";
48664
48682
  }
48665
- function normalizeRelation(value, weight) {
48683
+ function normalizeRelationAlias(value) {
48666
48684
  if (value === "supports" || value === "supporting") {
48667
48685
  return "supports";
48668
48686
  }
48669
48687
  if (value === "contradicts" || value === "contradicting") {
48670
48688
  return "contradicts";
48671
48689
  }
48690
+ return void 0;
48691
+ }
48692
+ function normalizeRelation(value, weight) {
48693
+ const alias = normalizeRelationAlias(value);
48694
+ if (alias) {
48695
+ return alias;
48696
+ }
48672
48697
  if (weight === void 0 || !hasNonzeroWeight(weight)) {
48673
48698
  return void 0;
48674
48699
  }
48675
48700
  return weight < 0 ? "contradicts" : "supports";
48676
48701
  }
48702
+ function hasNonzeroWeight(value) {
48703
+ return typeof value === "number" && Number.isFinite(value) && value !== 0;
48704
+ }
48677
48705
  function normalizeConfidence(confidence, weight) {
48678
48706
  if (confidence !== void 0) {
48679
48707
  return Math.min(1, Math.max(0, confidence));
@@ -48700,6 +48728,7 @@ function normalizeBeliefRelation(relation) {
48700
48728
  beliefNodeId,
48701
48729
  relation: evidenceRelation,
48702
48730
  confidence: normalizeConfidence(relation.confidence, weight),
48731
+ weight,
48703
48732
  rationale: relation.rationale
48704
48733
  });
48705
48734
  }
@@ -48748,6 +48777,7 @@ var createEvidenceProjection = defineProjection({
48748
48777
  linkedBeliefNodeId,
48749
48778
  evidenceRelation,
48750
48779
  confidence,
48780
+ weight,
48751
48781
  beliefRelations: beliefRelations && beliefRelations.length > 0 ? beliefRelations : void 0,
48752
48782
  rationale: input.rationale,
48753
48783
  trustedBypassAccessCheck: input.trustedBypassAccessCheck ?? true
@@ -48777,12 +48807,14 @@ var createEvidenceProjection = defineProjection({
48777
48807
  v.literal("contradicts")
48778
48808
  )
48779
48809
  ),
48810
+ weight: v.optional(v.number()),
48780
48811
  beliefRelations: v.optional(
48781
48812
  v.array(
48782
48813
  v.object({
48783
48814
  beliefNodeId: v.string(),
48784
48815
  relation: v.union(v.literal("supports"), v.literal("contradicts")),
48785
48816
  confidence: v.optional(v.number()),
48817
+ weight: v.number(),
48786
48818
  rationale: v.optional(v.string())
48787
48819
  })
48788
48820
  )
@@ -48900,7 +48932,7 @@ var slOpinionProjectionSchema = z.object({
48900
48932
  uncertainty: z.number(),
48901
48933
  baseRate: z.number()
48902
48934
  });
48903
- var modulateConfidenceInputObjectSchema = z.object({
48935
+ var appendSlScoringInputObjectSchema = z.object({
48904
48936
  nodeId: z.string().optional(),
48905
48937
  beliefNodeId: z.string().optional(),
48906
48938
  worktreeId: z.string().optional(),
@@ -48919,23 +48951,23 @@ var modulateConfidenceInputObjectSchema = z.object({
48919
48951
  rationale: z.string(),
48920
48952
  trustedBypassAccessCheck: z.boolean().optional()
48921
48953
  });
48922
- var modulateConfidenceInputSchema = modulateConfidenceInputObjectSchema.superRefine((input, ctx) => {
48954
+ var appendSlScoringInputSchema = appendSlScoringInputObjectSchema.superRefine((input, ctx) => {
48923
48955
  if (hasProvenance(input)) {
48924
48956
  return;
48925
48957
  }
48926
48958
  ctx.addIssue({
48927
48959
  code: z.ZodIssueCode.custom,
48928
- message: "modulate_confidence requires evidence, question, answer, contradiction, or worktree provenance",
48960
+ message: "append_sl_scoring requires evidence, question, answer, contradiction, or worktree provenance",
48929
48961
  path: ["provenance"]
48930
48962
  });
48931
48963
  });
48932
- var modulateConfidenceProjection = defineProjection({
48933
- contractName: "modulate_confidence",
48934
- inputSchema: modulateConfidenceInputSchema,
48964
+ var appendSlScoringProjection = defineProjection({
48965
+ contractName: "append_sl_scoring",
48966
+ inputSchema: appendSlScoringInputSchema,
48935
48967
  project: (input) => {
48936
48968
  const nodeId = input.beliefNodeId ?? input.nodeId;
48937
48969
  if (!nodeId) {
48938
- throw new Error("modulate_confidence requires beliefNodeId or nodeId");
48970
+ throw new Error("append_sl_scoring requires beliefNodeId or nodeId");
48939
48971
  }
48940
48972
  const opinion = input.opinion ?? {
48941
48973
  belief: requireNumber(input.belief, "belief"),
@@ -48992,14 +49024,14 @@ var modulateConfidenceProjection = defineProjection({
48992
49024
  });
48993
49025
  function requireNumber(value, field) {
48994
49026
  if (value === void 0) {
48995
- throw new Error(`modulate_confidence requires ${field}`);
49027
+ throw new Error(`append_sl_scoring requires ${field}`);
48996
49028
  }
48997
49029
  return value;
48998
49030
  }
48999
49031
  function assertProvenance(input) {
49000
49032
  if (!hasProvenance(input)) {
49001
49033
  throw new Error(
49002
- "modulate_confidence requires evidence, question, answer, contradiction, or worktree provenance"
49034
+ "append_sl_scoring requires evidence, question, answer, contradiction, or worktree provenance"
49003
49035
  );
49004
49036
  }
49005
49037
  }
@@ -49009,10 +49041,10 @@ function hasProvenance(input) {
49009
49041
 
49010
49042
  // src/projections/index.ts
49011
49043
  var projections = {
49044
+ append_sl_scoring: appendSlScoringProjection,
49012
49045
  create_evidence: createEvidenceProjection,
49013
49046
  list_beliefs: listBeliefsProjection,
49014
- list_tasks: listTasksProjection,
49015
- modulate_confidence: modulateConfidenceProjection
49047
+ list_tasks: listTasksProjection
49016
49048
  };
49017
49049
 
49018
49050
  // src/text-matching.contract.ts
@@ -50930,6 +50962,6 @@ var mcpToolsContract = tool_contracts_values_exports;
50930
50962
  var schemaContracts = schemas_values_exports;
50931
50963
  var sdkToolsContract = sdk_tools_contract_values_exports;
50932
50964
 
50933
- export { BELIEF_STATUSES, BELIEF_TYPE_BONUS, BRANCH_STATUSES, CANONICAL_WORKFLOW_DEFINITIONS, COMPONENT_BOUNDARY_COMPONENT_LAYERS, COMPONENT_BOUNDARY_CONTRACT_VERSION, COMPONENT_BOUNDARY_DIRECT_DB_METHODS, COMPONENT_BOUNDARY_HIGH_RISK_TABLES, COMPONENT_BOUNDARY_HOST_SOURCE_ROOTS, COMPONENT_HOST_BOUNDARY_CONTRACT_VERSION, COMPONENT_HOST_DB_READ_OPERATIONS, COMPONENT_HOST_DB_WRITE_OPERATIONS, COMPONENT_HOST_PROTECTED_TABLES, COMPONENT_HOST_PROTECTED_TABLE_OWNERS, COMPONENT_HOST_WRITE_ALLOWED_EXCEPTIONS, COMPONENT_HOST_WRITE_AUDIT_ROOTS, CONFIDENCE_TRIGGERS, CONTEXT_PACK_SCHEMA_VERSION, CONTEXT_PACK_SECTION_KEYS, CONTEXT_RANKING_PROFILES, CONTRADICTION_SEVERITIES, CONTRADICTION_STATUSES, ComponentTableManifestSchema, DEFAULT_BELIEF_TYPE_BONUS, DEFAULT_COMPILATION_MODE, DEFAULT_ENTITY_LIMIT, DEFAULT_PRIORITY_SCORE, DEFAULT_RANKING_PROFILE, DEFAULT_SECTION_LIMIT, DEFAULT_SEVERITY_SCORE, DEFAULT_TIER_APPROVAL_MODE, DEFAULT_TOKEN_BUDGET, DEFAULT_WORKFLOW_AUTO_FIX_POLICY, DEFEAT_TYPES, DOMAIN_EVENT_TYPES, DOMAIN_EVENT_VERSION, ENTITY_RANKING_WEIGHTS, EPISTEMIC_LAYERS, EVENT_RETENTION_DEFAULT_DAYS, EdgePolicyEntrySchema, EdgePolicyManifestSchema, EpistemicNodeTypeSchema, FORK_REASONS, GENERATED_INFISICAL_BOOTSTRAP_ENV_NAMES, GENERATED_INFISICAL_CONTROL_ENV_NAMES, GENERATED_INFISICAL_KNOWN_ENV_NAMES, GENERATED_INFISICAL_MANAGED_ENV_NAMES, GENERATED_INFISICAL_RUNTIME_ENV, GENERATED_LUCERN_GATEWAY_ENV_NAMES, GENERATED_LUCERN_WEB_PUBLIC_ENV_NAMES, GENERATED_LUCERN_WEB_SERVER_ENV_NAMES, GRAPH_INTELLIGENCE_MODE_TOOL_NAMES, GRAPH_INTELLIGENCE_PUBLIC_TOOL_NAMES, GRAPH_INTELLIGENCE_QUERIES, GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS, GRAPH_INTELLIGENCE_QUERY_CATALOG_VERSION, GRAPH_INTELLIGENCE_QUERY_CATEGORIES, GRAPH_INTELLIGENCE_QUERY_MODES, GRAPH_INTELLIGENCE_QUICK_QUERIES, GRAPH_REF_NODE_TYPES, GraphRefSchema, INFISICAL_CONVEX_TIERS, INFISICAL_CONVEX_TIER_BY_VERCEL_ENVIRONMENT, INFISICAL_RUNTIME_BOOTSTRAP_ENV, INFISICAL_RUNTIME_CONTRACT_VERSION, INFISICAL_RUNTIME_CONTROL_ENV, INFISICAL_RUNTIME_DEFAULT_API_URL, INFISICAL_RUNTIME_DEFAULT_PROJECT_ID, INFISICAL_RUNTIME_DELIVERY_MODES, INFISICAL_RUNTIME_ENVIRONMENTS, INFISICAL_RUNTIME_MANIFEST, INFISICAL_RUNTIME_PATHS, INFISICAL_RUNTIME_SURFACES, INFISICAL_RUNTIME_SURFACE_IDS, INFISICAL_SECRET_CONSUMERS, INFISICAL_SECRET_DEFINITIONS, INFISICAL_SECRET_DESTINATION_KINDS, INFISICAL_SECRET_ENVIRONMENT_POLICIES, INFISICAL_SECRET_OWNERS, INFISICAL_SECRET_SCOPES, INFISICAL_TENANT_SOFTWARE_SYSTEMS, INFISICAL_VERCEL_DESTINATION_ENVIRONMENTS, INFISICAL_VERCEL_SYNC_DESTINATIONS, INFISICAL_VERCEL_SYNC_RECONCILIATION, INFISICAL_VERCEL_TARGETS, INTEGRATION_EDGE_TYPES, InvariantManifestSchema, JUDGMENT_TYPES, MAX_ENTITY_LIMIT, MAX_SECTION_LIMIT, MAX_TOKEN_BUDGET, MERGE_OUTCOMES, MIN_CONTRADICTION_BUDGET, MIN_TOKEN_BUDGET, MIN_TOKEN_ESTIMATE, MORNING_BRIEF_WORKFLOW_ID, NIGHTLY_RECONCILIATION_WORKFLOW_ID, PRIORITY_SCORES, PULL_REQUEST_STATUSES, RANKING_WEIGHTS, REASONING_METHODS, RECENCY_HALF_LIFE_DAYS, RESOLVED_QUESTION_STATUSES, ROOT_TOPIC_ID, SECTION_BUDGET_RATIOS, SESSION_AUTH_MODES, SESSION_LIFECYCLE_STATUSES, SESSION_PRINCIPAL_TYPES, SEVERITY_SCORES, SLOpinionInputSchema, TENANT_BOOTSTRAP_FORBIDDEN_SEED_TABLES, TENANT_BOOTSTRAP_SEED_AUTH_METADATA_FIELDS, TENANT_BOOTSTRAP_SEED_COMPONENTS, TENANT_BOOTSTRAP_SEED_CONTRACT_VERSION, TENANT_BOOTSTRAP_SEED_MANIFEST, TENANT_BOOTSTRAP_SEED_TABLES, TENANT_BOOTSTRAP_TABLE_REQUIREMENTS, TENANT_BOOTSTRAP_TEMPLATE_ACTOR, TENANT_BOOTSTRAP_TEMPLATE_SEED_VERSION, TENANT_BOOTSTRAP_TEMPLATE_TENANT_ID, TENANT_CLIENT_AUTH_MODES, TENANT_CLIENT_CAPABILITIES, TENANT_CLIENT_COMPONENT_CONFIG_IMPORTS, TENANT_CLIENT_CONTRACT_VERSION, TENANT_CLIENT_FORBIDDEN_IMPORT_PATTERNS, TENANT_CLIENT_FORBIDDEN_INSTALL_TOKEN_INFISICAL_PATHS, TENANT_CLIENT_FORBIDDEN_SECRET_ENV, TENANT_CLIENT_FULL_SUITE_PACKAGE_NAMES, TENANT_CLIENT_INSTALLABLE_PACKAGES, TENANT_CLIENT_INSTALL_PROFILES, TENANT_CLIENT_INSTALL_TOKEN_ENV, TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH, TENANT_CLIENT_ISOLATION_RULES, TENANT_CLIENT_MANIFEST, TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS, TENANT_CLIENT_PRINCIPAL_TYPES, TENANT_CLIENT_PUBLIC_IMPORTS, TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS, TENANT_CLIENT_REQUIRED_SDK_NAMESPACES, TOKENS_PER_WORD, WEBHOOK_MAX_ATTEMPTS, WEBHOOK_RETRY_DELAYS_MS, WORKFLOW_ACTION_KINDS, WORKFLOW_APPROVAL_MODES, WORKFLOW_AUTO_FIX_MODES, WORKFLOW_HOOK_EVENTS, WORKFLOW_INTEGRITY_CHECKS, WORKFLOW_MUTATION_TIERS, WORKFLOW_OUTPUT_KINDS, WORKFLOW_PROOF_ARTIFACT_KINDS, WORKFLOW_RUNTIME_SCHEMA_VERSION, WORKFLOW_RUN_STATUSES, WORKFLOW_STAFFING_HINTS, WORKFLOW_TRIGGER_KINDS, WORKTREE_PHASES, assertEdgePolicyAllowed, assertTenantClientImportAllowed, bigramTokenize, buildDomainEvent, buildProjectedUserFromPermitPrincipal, buildTenantBootstrapTemplateSeedRows, canonicalGeneratedInfisicalEnvName, classifyTenantClientImport, collectTopicNeighborhood, compareEventCursor, contractDsl, convexTierForVercelDestinationEnvironment, createEventId, createEvidenceProjection, decodeEventCursor, decodePrefixedId, defineProjection, edgePolicyManifest, emitDomainEvent, encodeEventCursor, encodePrefixedId, expectedTenantConvexDeploymentForVercelEnvironment, fillGraphIntelligencePromptTemplate, findEdgePolicy, findInfisicalRuntimePath, findInfisicalRuntimeSurface, findInfisicalSecretDefinition, findInfisicalTenantSoftwareSystem, findInfisicalVercelSyncDestination, findProjectedUserByPermitClerkId, findProjectedUserByPermitPrincipalId, findTenantBootstrapSeedTable, findTenantBootstrapTableRequirement, findTenantClientInstallablePackage, formatTenantClientImportViolation, generatedInfisicalVariableForName, getComponentBoundaryTableLayer, getGraphIntelligenceQuery, hasPrefixedIdPrefix, inferActorType, inferSessionPrincipalType, infisicalSecretDefinitionsForConsumer, infisicalSecretDefinitionsForDestination, isActivePermitProjectionStatus, isAfterCursor, isComponentBoundaryComponentOwnedTable, isGeneratedInfisicalKnownEnvName, isGeneratedInfisicalManagedEnvName, isGraphIntelligenceQueryMode, isLucernPrompt, isTenantBootstrapForbiddenSeedTable, isTenantBootstrapSeedTable, isTenantClientAllowedImport, isTenantClientComponentConfigImport, isTenantClientInstallablePackage, isTenantClientPublicImport, jaccardSimilarity, lastDelegator, listBeliefsProjection, listGraphIntelligenceQueries, listTasksProjection, mapPermitRoleToPlatformRole, mcpToolsContract, modulateConfidenceProjection, normalizeDelegationChain, normalizeRetentionDays, prepareLexicalQuery, projections, rankEntityConnections, rankEntityTypeMatches, rankWindowScore, readGeneratedInfisicalDestinationEnv, readGeneratedInfisicalEnvValue, readGeneratedInfisicalRuntimeEnvSurface, readGeneratedLucernGatewayEnv, readGeneratedLucernWebPublicEnv, readGeneratedLucernWebServerEnv, readPermitProjectionString, requireActorPrincipalId, rerankLexicalWindow, schemaContracts, scoreEntityConnection, scoreEntityTypeMatch, scoreLexicalSignal, scoreLexicalSignals, sdkToolsContract, sortEventsByCursor, stemToken, tenantSoftwareSystemConvexEnvNames, tenantSoftwareSystemOwnsConvexEnvName, tokenOverlapScore, tokenizeSearchText, validateInfisicalSecretDefinitions, vercelCustomEnvironmentIdForTenantSoftwareSystem, wordOverlapScore, wordTokenize };
50965
+ export { BELIEF_STATUSES, BELIEF_TYPE_BONUS, BRANCH_STATUSES, CANONICAL_WORKFLOW_DEFINITIONS, COMPONENT_BOUNDARY_COMPONENT_LAYERS, COMPONENT_BOUNDARY_CONTRACT_VERSION, COMPONENT_BOUNDARY_DIRECT_DB_METHODS, COMPONENT_BOUNDARY_HIGH_RISK_TABLES, COMPONENT_BOUNDARY_HOST_SOURCE_ROOTS, COMPONENT_HOST_BOUNDARY_CONTRACT_VERSION, COMPONENT_HOST_DB_READ_OPERATIONS, COMPONENT_HOST_DB_WRITE_OPERATIONS, COMPONENT_HOST_PROTECTED_TABLES, COMPONENT_HOST_PROTECTED_TABLE_OWNERS, COMPONENT_HOST_WRITE_ALLOWED_EXCEPTIONS, COMPONENT_HOST_WRITE_AUDIT_ROOTS, CONFIDENCE_TRIGGERS, CONTEXT_PACK_SCHEMA_VERSION, CONTEXT_PACK_SECTION_KEYS, CONTEXT_RANKING_PROFILES, CONTRADICTION_SEVERITIES, CONTRADICTION_STATUSES, ComponentTableManifestSchema, DEFAULT_BELIEF_TYPE_BONUS, DEFAULT_COMPILATION_MODE, DEFAULT_ENTITY_LIMIT, DEFAULT_PRIORITY_SCORE, DEFAULT_RANKING_PROFILE, DEFAULT_SECTION_LIMIT, DEFAULT_SEVERITY_SCORE, DEFAULT_TIER_APPROVAL_MODE, DEFAULT_TOKEN_BUDGET, DEFAULT_WORKFLOW_AUTO_FIX_POLICY, DEFEAT_TYPES, DOMAIN_EVENT_TYPES, DOMAIN_EVENT_VERSION, ENTITY_RANKING_WEIGHTS, EPISTEMIC_LAYERS, EVENT_RETENTION_DEFAULT_DAYS, EdgePolicyEntrySchema, EdgePolicyManifestSchema, EpistemicNodeTypeSchema, FORK_REASONS, GENERATED_INFISICAL_BOOTSTRAP_ENV_NAMES, GENERATED_INFISICAL_CONTROL_ENV_NAMES, GENERATED_INFISICAL_KNOWN_ENV_NAMES, GENERATED_INFISICAL_MANAGED_ENV_NAMES, GENERATED_INFISICAL_RUNTIME_ENV, GENERATED_LUCERN_GATEWAY_ENV_NAMES, GENERATED_LUCERN_WEB_PUBLIC_ENV_NAMES, GENERATED_LUCERN_WEB_SERVER_ENV_NAMES, GRAPH_INTELLIGENCE_MODE_TOOL_NAMES, GRAPH_INTELLIGENCE_PUBLIC_TOOL_NAMES, GRAPH_INTELLIGENCE_QUERIES, GRAPH_INTELLIGENCE_QUERIES_WITH_TOOLS, GRAPH_INTELLIGENCE_QUERY_CATALOG_VERSION, GRAPH_INTELLIGENCE_QUERY_CATEGORIES, GRAPH_INTELLIGENCE_QUERY_MODES, GRAPH_INTELLIGENCE_QUICK_QUERIES, GRAPH_REF_NODE_TYPES, GraphRefSchema, INFISICAL_CONVEX_TIERS, INFISICAL_CONVEX_TIER_BY_VERCEL_ENVIRONMENT, INFISICAL_RUNTIME_BOOTSTRAP_ENV, INFISICAL_RUNTIME_CONTRACT_VERSION, INFISICAL_RUNTIME_CONTROL_ENV, INFISICAL_RUNTIME_DEFAULT_API_URL, INFISICAL_RUNTIME_DEFAULT_PROJECT_ID, INFISICAL_RUNTIME_DELIVERY_MODES, INFISICAL_RUNTIME_ENVIRONMENTS, INFISICAL_RUNTIME_MANIFEST, INFISICAL_RUNTIME_PATHS, INFISICAL_RUNTIME_SURFACES, INFISICAL_RUNTIME_SURFACE_IDS, INFISICAL_SECRET_CONSUMERS, INFISICAL_SECRET_DEFINITIONS, INFISICAL_SECRET_DESTINATION_KINDS, INFISICAL_SECRET_ENVIRONMENT_POLICIES, INFISICAL_SECRET_OWNERS, INFISICAL_SECRET_SCOPES, INFISICAL_TENANT_SOFTWARE_SYSTEMS, INFISICAL_VERCEL_DESTINATION_ENVIRONMENTS, INFISICAL_VERCEL_SYNC_DESTINATIONS, INFISICAL_VERCEL_SYNC_RECONCILIATION, INFISICAL_VERCEL_TARGETS, INTEGRATION_EDGE_TYPES, InvariantManifestSchema, JUDGMENT_TYPES, MAX_ENTITY_LIMIT, MAX_SECTION_LIMIT, MAX_TOKEN_BUDGET, MERGE_OUTCOMES, MIN_CONTRADICTION_BUDGET, MIN_TOKEN_BUDGET, MIN_TOKEN_ESTIMATE, MORNING_BRIEF_WORKFLOW_ID, NIGHTLY_RECONCILIATION_WORKFLOW_ID, PRIORITY_SCORES, PULL_REQUEST_STATUSES, RANKING_WEIGHTS, REASONING_METHODS, RECENCY_HALF_LIFE_DAYS, RESOLVED_QUESTION_STATUSES, ROOT_TOPIC_ID, SECTION_BUDGET_RATIOS, SESSION_AUTH_MODES, SESSION_LIFECYCLE_STATUSES, SESSION_PRINCIPAL_TYPES, SEVERITY_SCORES, SLOpinionInputSchema, TENANT_BOOTSTRAP_FORBIDDEN_SEED_TABLES, TENANT_BOOTSTRAP_SEED_AUTH_METADATA_FIELDS, TENANT_BOOTSTRAP_SEED_COMPONENTS, TENANT_BOOTSTRAP_SEED_CONTRACT_VERSION, TENANT_BOOTSTRAP_SEED_MANIFEST, TENANT_BOOTSTRAP_SEED_TABLES, TENANT_BOOTSTRAP_TABLE_REQUIREMENTS, TENANT_BOOTSTRAP_TEMPLATE_ACTOR, TENANT_BOOTSTRAP_TEMPLATE_SEED_VERSION, TENANT_BOOTSTRAP_TEMPLATE_TENANT_ID, TENANT_CLIENT_AUTH_MODES, TENANT_CLIENT_CAPABILITIES, TENANT_CLIENT_COMPONENT_CONFIG_IMPORTS, TENANT_CLIENT_CONTRACT_VERSION, TENANT_CLIENT_FORBIDDEN_IMPORT_PATTERNS, TENANT_CLIENT_FORBIDDEN_INSTALL_TOKEN_INFISICAL_PATHS, TENANT_CLIENT_FORBIDDEN_SECRET_ENV, TENANT_CLIENT_FULL_SUITE_PACKAGE_NAMES, TENANT_CLIENT_INSTALLABLE_PACKAGES, TENANT_CLIENT_INSTALL_PROFILES, TENANT_CLIENT_INSTALL_TOKEN_ENV, TENANT_CLIENT_INSTALL_TOKEN_INFISICAL_PATH, TENANT_CLIENT_ISOLATION_RULES, TENANT_CLIENT_MANIFEST, TENANT_CLIENT_OPTIONAL_CONTEXT_FIELDS, TENANT_CLIENT_PRINCIPAL_TYPES, TENANT_CLIENT_PUBLIC_IMPORTS, TENANT_CLIENT_REQUIRED_CONTEXT_FIELDS, TENANT_CLIENT_REQUIRED_SDK_NAMESPACES, TOKENS_PER_WORD, WEBHOOK_MAX_ATTEMPTS, WEBHOOK_RETRY_DELAYS_MS, WORKFLOW_ACTION_KINDS, WORKFLOW_APPROVAL_MODES, WORKFLOW_AUTO_FIX_MODES, WORKFLOW_HOOK_EVENTS, WORKFLOW_INTEGRITY_CHECKS, WORKFLOW_MUTATION_TIERS, WORKFLOW_OUTPUT_KINDS, WORKFLOW_PROOF_ARTIFACT_KINDS, WORKFLOW_RUNTIME_SCHEMA_VERSION, WORKFLOW_RUN_STATUSES, WORKFLOW_STAFFING_HINTS, WORKFLOW_TRIGGER_KINDS, WORKTREE_PHASES, appendSlScoringProjection, assertEdgePolicyAllowed, assertTenantClientImportAllowed, bigramTokenize, buildDomainEvent, buildProjectedUserFromPermitPrincipal, buildTenantBootstrapTemplateSeedRows, canonicalGeneratedInfisicalEnvName, classifyTenantClientImport, collectTopicNeighborhood, compareEventCursor, contractDsl, convexTierForVercelDestinationEnvironment, createEventId, createEvidenceProjection, decodeEventCursor, decodePrefixedId, defineProjection, edgePolicyManifest, emitDomainEvent, encodeEventCursor, encodePrefixedId, expectedTenantConvexDeploymentForVercelEnvironment, fillGraphIntelligencePromptTemplate, findEdgePolicy, findInfisicalRuntimePath, findInfisicalRuntimeSurface, findInfisicalSecretDefinition, findInfisicalTenantSoftwareSystem, findInfisicalVercelSyncDestination, findProjectedUserByPermitClerkId, findProjectedUserByPermitPrincipalId, findTenantBootstrapSeedTable, findTenantBootstrapTableRequirement, findTenantClientInstallablePackage, formatTenantClientImportViolation, generatedInfisicalVariableForName, getComponentBoundaryTableLayer, getGraphIntelligenceQuery, hasPrefixedIdPrefix, inferActorType, inferSessionPrincipalType, infisicalSecretDefinitionsForConsumer, infisicalSecretDefinitionsForDestination, isActivePermitProjectionStatus, isAfterCursor, isComponentBoundaryComponentOwnedTable, isGeneratedInfisicalKnownEnvName, isGeneratedInfisicalManagedEnvName, isGraphIntelligenceQueryMode, isLucernPrompt, isTenantBootstrapForbiddenSeedTable, isTenantBootstrapSeedTable, isTenantClientAllowedImport, isTenantClientComponentConfigImport, isTenantClientInstallablePackage, isTenantClientPublicImport, jaccardSimilarity, lastDelegator, listBeliefsProjection, listGraphIntelligenceQueries, listTasksProjection, mapPermitRoleToPlatformRole, mcpToolsContract, normalizeDelegationChain, normalizeRetentionDays, prepareLexicalQuery, projections, rankEntityConnections, rankEntityTypeMatches, rankWindowScore, readGeneratedInfisicalDestinationEnv, readGeneratedInfisicalEnvValue, readGeneratedInfisicalRuntimeEnvSurface, readGeneratedLucernGatewayEnv, readGeneratedLucernWebPublicEnv, readGeneratedLucernWebServerEnv, readPermitProjectionString, requireActorPrincipalId, rerankLexicalWindow, schemaContracts, scoreEntityConnection, scoreEntityTypeMatch, scoreLexicalSignal, scoreLexicalSignals, sdkToolsContract, sortEventsByCursor, stemToken, tenantSoftwareSystemConvexEnvNames, tenantSoftwareSystemOwnsConvexEnvName, tokenOverlapScore, tokenizeSearchText, validateInfisicalSecretDefinitions, vercelCustomEnvironmentIdForTenantSoftwareSystem, wordOverlapScore, wordTokenize };
50934
50966
  //# sourceMappingURL=index.js.map
50935
50967
  //# sourceMappingURL=index.js.map