@lucern/contracts 1.0.15 → 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 +6 -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 +33 -7
  6. package/dist/context-pack.contract.js.map +1 -1
  7. package/dist/function-registry/beliefs.js +113 -115
  8. package/dist/function-registry/beliefs.js.map +1 -1
  9. package/dist/function-registry/coding.js +72 -91
  10. package/dist/function-registry/coding.js.map +1 -1
  11. package/dist/function-registry/context.js +72 -91
  12. package/dist/function-registry/context.js.map +1 -1
  13. package/dist/function-registry/contracts.js +72 -91
  14. package/dist/function-registry/contracts.js.map +1 -1
  15. package/dist/function-registry/coordination.js +72 -91
  16. package/dist/function-registry/coordination.js.map +1 -1
  17. package/dist/function-registry/edges.js +72 -91
  18. package/dist/function-registry/edges.js.map +1 -1
  19. package/dist/function-registry/evidence.js +186 -125
  20. package/dist/function-registry/evidence.js.map +1 -1
  21. package/dist/function-registry/graph.js +72 -91
  22. package/dist/function-registry/graph.js.map +1 -1
  23. package/dist/function-registry/helpers.js +72 -91
  24. package/dist/function-registry/helpers.js.map +1 -1
  25. package/dist/function-registry/identity.js +72 -91
  26. package/dist/function-registry/identity.js.map +1 -1
  27. package/dist/function-registry/index.js +72 -91
  28. package/dist/function-registry/index.js.map +1 -1
  29. package/dist/function-registry/judgments.js +72 -91
  30. package/dist/function-registry/judgments.js.map +1 -1
  31. package/dist/function-registry/legacy.js +72 -91
  32. package/dist/function-registry/legacy.js.map +1 -1
  33. package/dist/function-registry/lenses.js +72 -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 +72 -91
  39. package/dist/function-registry/nodes.js.map +1 -1
  40. package/dist/function-registry/ontologies.js +72 -91
  41. package/dist/function-registry/ontologies.js.map +1 -1
  42. package/dist/function-registry/pipeline.js +72 -91
  43. package/dist/function-registry/pipeline.js.map +1 -1
  44. package/dist/function-registry/questions.js +72 -91
  45. package/dist/function-registry/questions.js.map +1 -1
  46. package/dist/function-registry/tasks.js +72 -91
  47. package/dist/function-registry/tasks.js.map +1 -1
  48. package/dist/function-registry/topics.js +72 -91
  49. package/dist/function-registry/topics.js.map +1 -1
  50. package/dist/function-registry/worktrees.js +72 -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 +166 -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 +12 -16
  91. package/dist/sdk-tools.contract.js +69 -88
  92. package/dist/sdk-tools.contract.js.map +1 -1
  93. package/dist/sdk-tools.contract.registry.js +69 -88
  94. package/dist/sdk-tools.contract.registry.js.map +1 -1
  95. package/dist/sdk-tools.contract.values.js +69 -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 +70 -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 +9 -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 +70 -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: {
@@ -5033,6 +5008,10 @@ var COMPILE_CONTEXT = {
5033
5008
  type: "number",
5034
5009
  description: "Optional per-section item limit"
5035
5010
  },
5011
+ contentTopicLimit: {
5012
+ type: "number",
5013
+ description: "Dimension-seeded compiles synthesize every matching worktree but bound raw belief/question/evidence enrichment to this many carrier topics (max 16) so hosted Convex queries remain fast. Receipts report any omitted raw topic enrichment."
5014
+ },
5036
5015
  maxDepth: {
5037
5016
  type: "number",
5038
5017
  description: "Optional descendant topic depth for neighborhood expansion"
@@ -5046,6 +5025,11 @@ var COMPILE_CONTEXT = {
5046
5025
  response: {
5047
5026
  description: "Compiled context pack for the requested topic",
5048
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",
5049
5033
  schemaVersion: "string",
5050
5034
  topicId: "string",
5051
5035
  topicName: "string",
@@ -5053,15 +5037,6 @@ var COMPILE_CONTEXT = {
5053
5037
  generatedAt: "number \u2014 deterministic graph-backed reference timestamp for this compilation",
5054
5038
  ranking: "string \u2014 baseline_v1 | weighted_v1",
5055
5039
  summary: "object \u2014 counts and scoped health signals",
5056
- invariants: "array \u2014 high-confidence invariant beliefs",
5057
- activeBeliefs: "array \u2014 current high-signal beliefs",
5058
- openQuestions: "array \u2014 unresolved questions ranked for this query",
5059
- recentEvidence: "array \u2014 recent evidence ranked for this query",
5060
- contradictions: "array \u2014 unresolved contradiction records",
5061
- relatedEntities: "array | undefined \u2014 ranked ontological entities in scope",
5062
- contextNarrative: "array \u2014 ordered synthesis blocks with kind/text, starting with executive_summary and canonical narrative blocks before raw objects",
5063
- retrievalReceipt: "object \u2014 candidateCounts, coverageWarning, narrativeCoverage, synthesisLints, and suggestedNextActions",
5064
- narrativeCoverage: "object \u2014 recordsSynthesized, recordsNamed, recordsOmitted, and blocksEmitted for the narrative",
5065
5040
  injectionPolicy: "object \u2014 token-budgeted section selections",
5066
5041
  diagnostics: "object \u2014 scoring and utilization telemetry"
5067
5042
  }
@@ -5620,7 +5595,7 @@ var MCP_TOOL_CONTRACTS = {
5620
5595
  create_belief: CREATE_BELIEF,
5621
5596
  get_belief: GET_BELIEF,
5622
5597
  refine_belief: REFINE_BELIEF,
5623
- modulate_confidence: MODULATE_CONFIDENCE,
5598
+ append_sl_scoring: APPEND_SL_SCORING,
5624
5599
  fork_belief: FORK_BELIEF,
5625
5600
  archive_belief: ARCHIVE_BELIEF,
5626
5601
  create_epistemic_contract: CREATE_EPISTEMIC_CONTRACT,
@@ -7451,8 +7426,10 @@ var graphAnalysisCache = defineTable({
7451
7426
  "beliefStatus": z.object({
7452
7427
  "assumption": z.number(),
7453
7428
  "hypothesis": z.number(),
7454
- "belief": z.number(),
7455
- "fact": z.number()
7429
+ "active": z.number(),
7430
+ "superseded": z.number(),
7431
+ "resolved_true": z.number(),
7432
+ "resolved_false": z.number()
7456
7433
  }).optional(),
7457
7434
  "evidenceTemporalNature": z.object({
7458
7435
  "factual": z.number(),
@@ -7674,8 +7651,8 @@ var epistemicNodes = defineTable({
7674
7651
  "exportClass": z.enum(["internal_only", "client_safe", "public_safe", "restricted"]).optional(),
7675
7652
  "anonymizationClass": z.enum(["none", "standard", "strict"]).optional(),
7676
7653
  "beliefType": z.string().optional(),
7677
- "beliefStatus": z.enum(["assumption", "hypothesis", "belief", "fact"]).optional(),
7678
- "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(),
7679
7656
  "reversibility": z.enum(["irreversible", "hard_to_reverse", "reversible", "trivial"]).optional(),
7680
7657
  "predictionMeta": z.object({
7681
7658
  "isPrediction": z.boolean(),
@@ -48558,11 +48535,39 @@ var createEvidenceInputSchemaBase = z.object({
48558
48535
  metadata: jsonRecordSchema.optional(),
48559
48536
  trustedBypassAccessCheck: z.boolean().optional()
48560
48537
  }).passthrough();
48561
- function hasNonzeroWeight(value) {
48562
- 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;
48563
48540
  }
48564
- function hasRelationSignal(value, weight) {
48565
- 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
+ }
48566
48571
  }
48567
48572
  var createEvidenceInputSchema = createEvidenceInputSchemaBase.superRefine(
48568
48573
  (input, ctx) => {
@@ -48579,13 +48584,27 @@ var createEvidenceInputSchema = createEvidenceInputSchemaBase.superRefine(
48579
48584
  input.linkedBeliefNodeId || kind === "belief" || kind === "unknown" && target
48580
48585
  );
48581
48586
  const weight = typeof input.weight === "number" ? input.weight : void 0;
48582
- 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") {
48583
48596
  ctx.addIssue({
48584
48597
  code: z.ZodIssueCode.custom,
48585
- message: "belief-targeted evidence requires evidenceRelation='supports'|'contradicts' or a nonzero signed weight",
48586
- 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"]
48587
48600
  });
48588
48601
  }
48602
+ if (linksPrimaryBelief) {
48603
+ validateSignedImpactScore(weight, ctx, ["weight"]);
48604
+ validateRelationImpactConsistency(input.evidenceRelation, weight, ctx, [
48605
+ "weight"
48606
+ ]);
48607
+ }
48589
48608
  input.beliefRelations?.forEach((relation, index) => {
48590
48609
  const beliefNodeId = relation.beliefNodeId ?? relation.beliefId ?? relation.targetId;
48591
48610
  if (!beliefNodeId) {
@@ -48596,15 +48615,18 @@ var createEvidenceInputSchema = createEvidenceInputSchemaBase.superRefine(
48596
48615
  });
48597
48616
  }
48598
48617
  const relationWeight = typeof relation.weight === "number" ? relation.weight : void 0;
48599
- if (beliefNodeId && !hasRelationSignal(
48600
- relation.evidenceRelation ?? relation.relation,
48601
- relationWeight
48602
- )) {
48603
- ctx.addIssue({
48604
- code: z.ZodIssueCode.custom,
48605
- message: "beliefRelations entries require evidenceRelation='supports'|'contradicts' or a nonzero signed weight",
48606
- path: ["beliefRelations", index, "evidenceRelation"]
48607
- });
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
+ );
48608
48630
  }
48609
48631
  });
48610
48632
  }
@@ -48658,18 +48680,28 @@ function targetKind(targetId) {
48658
48680
  }
48659
48681
  return "unknown";
48660
48682
  }
48661
- function normalizeRelation(value, weight) {
48683
+ function normalizeRelationAlias(value) {
48662
48684
  if (value === "supports" || value === "supporting") {
48663
48685
  return "supports";
48664
48686
  }
48665
48687
  if (value === "contradicts" || value === "contradicting") {
48666
48688
  return "contradicts";
48667
48689
  }
48690
+ return void 0;
48691
+ }
48692
+ function normalizeRelation(value, weight) {
48693
+ const alias = normalizeRelationAlias(value);
48694
+ if (alias) {
48695
+ return alias;
48696
+ }
48668
48697
  if (weight === void 0 || !hasNonzeroWeight(weight)) {
48669
48698
  return void 0;
48670
48699
  }
48671
48700
  return weight < 0 ? "contradicts" : "supports";
48672
48701
  }
48702
+ function hasNonzeroWeight(value) {
48703
+ return typeof value === "number" && Number.isFinite(value) && value !== 0;
48704
+ }
48673
48705
  function normalizeConfidence(confidence, weight) {
48674
48706
  if (confidence !== void 0) {
48675
48707
  return Math.min(1, Math.max(0, confidence));
@@ -48696,6 +48728,7 @@ function normalizeBeliefRelation(relation) {
48696
48728
  beliefNodeId,
48697
48729
  relation: evidenceRelation,
48698
48730
  confidence: normalizeConfidence(relation.confidence, weight),
48731
+ weight,
48699
48732
  rationale: relation.rationale
48700
48733
  });
48701
48734
  }
@@ -48744,6 +48777,7 @@ var createEvidenceProjection = defineProjection({
48744
48777
  linkedBeliefNodeId,
48745
48778
  evidenceRelation,
48746
48779
  confidence,
48780
+ weight,
48747
48781
  beliefRelations: beliefRelations && beliefRelations.length > 0 ? beliefRelations : void 0,
48748
48782
  rationale: input.rationale,
48749
48783
  trustedBypassAccessCheck: input.trustedBypassAccessCheck ?? true
@@ -48773,12 +48807,14 @@ var createEvidenceProjection = defineProjection({
48773
48807
  v.literal("contradicts")
48774
48808
  )
48775
48809
  ),
48810
+ weight: v.optional(v.number()),
48776
48811
  beliefRelations: v.optional(
48777
48812
  v.array(
48778
48813
  v.object({
48779
48814
  beliefNodeId: v.string(),
48780
48815
  relation: v.union(v.literal("supports"), v.literal("contradicts")),
48781
48816
  confidence: v.optional(v.number()),
48817
+ weight: v.number(),
48782
48818
  rationale: v.optional(v.string())
48783
48819
  })
48784
48820
  )
@@ -48896,7 +48932,7 @@ var slOpinionProjectionSchema = z.object({
48896
48932
  uncertainty: z.number(),
48897
48933
  baseRate: z.number()
48898
48934
  });
48899
- var modulateConfidenceInputObjectSchema = z.object({
48935
+ var appendSlScoringInputObjectSchema = z.object({
48900
48936
  nodeId: z.string().optional(),
48901
48937
  beliefNodeId: z.string().optional(),
48902
48938
  worktreeId: z.string().optional(),
@@ -48915,23 +48951,23 @@ var modulateConfidenceInputObjectSchema = z.object({
48915
48951
  rationale: z.string(),
48916
48952
  trustedBypassAccessCheck: z.boolean().optional()
48917
48953
  });
48918
- var modulateConfidenceInputSchema = modulateConfidenceInputObjectSchema.superRefine((input, ctx) => {
48954
+ var appendSlScoringInputSchema = appendSlScoringInputObjectSchema.superRefine((input, ctx) => {
48919
48955
  if (hasProvenance(input)) {
48920
48956
  return;
48921
48957
  }
48922
48958
  ctx.addIssue({
48923
48959
  code: z.ZodIssueCode.custom,
48924
- message: "modulate_confidence requires evidence, question, answer, contradiction, or worktree provenance",
48960
+ message: "append_sl_scoring requires evidence, question, answer, contradiction, or worktree provenance",
48925
48961
  path: ["provenance"]
48926
48962
  });
48927
48963
  });
48928
- var modulateConfidenceProjection = defineProjection({
48929
- contractName: "modulate_confidence",
48930
- inputSchema: modulateConfidenceInputSchema,
48964
+ var appendSlScoringProjection = defineProjection({
48965
+ contractName: "append_sl_scoring",
48966
+ inputSchema: appendSlScoringInputSchema,
48931
48967
  project: (input) => {
48932
48968
  const nodeId = input.beliefNodeId ?? input.nodeId;
48933
48969
  if (!nodeId) {
48934
- throw new Error("modulate_confidence requires beliefNodeId or nodeId");
48970
+ throw new Error("append_sl_scoring requires beliefNodeId or nodeId");
48935
48971
  }
48936
48972
  const opinion = input.opinion ?? {
48937
48973
  belief: requireNumber(input.belief, "belief"),
@@ -48988,14 +49024,14 @@ var modulateConfidenceProjection = defineProjection({
48988
49024
  });
48989
49025
  function requireNumber(value, field) {
48990
49026
  if (value === void 0) {
48991
- throw new Error(`modulate_confidence requires ${field}`);
49027
+ throw new Error(`append_sl_scoring requires ${field}`);
48992
49028
  }
48993
49029
  return value;
48994
49030
  }
48995
49031
  function assertProvenance(input) {
48996
49032
  if (!hasProvenance(input)) {
48997
49033
  throw new Error(
48998
- "modulate_confidence requires evidence, question, answer, contradiction, or worktree provenance"
49034
+ "append_sl_scoring requires evidence, question, answer, contradiction, or worktree provenance"
48999
49035
  );
49000
49036
  }
49001
49037
  }
@@ -49005,10 +49041,10 @@ function hasProvenance(input) {
49005
49041
 
49006
49042
  // src/projections/index.ts
49007
49043
  var projections = {
49044
+ append_sl_scoring: appendSlScoringProjection,
49008
49045
  create_evidence: createEvidenceProjection,
49009
49046
  list_beliefs: listBeliefsProjection,
49010
- list_tasks: listTasksProjection,
49011
- modulate_confidence: modulateConfidenceProjection
49047
+ list_tasks: listTasksProjection
49012
49048
  };
49013
49049
 
49014
49050
  // src/text-matching.contract.ts
@@ -50926,6 +50962,6 @@ var mcpToolsContract = tool_contracts_values_exports;
50926
50962
  var schemaContracts = schemas_values_exports;
50927
50963
  var sdkToolsContract = sdk_tools_contract_values_exports;
50928
50964
 
50929
- 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 };
50930
50966
  //# sourceMappingURL=index.js.map
50931
50967
  //# sourceMappingURL=index.js.map