@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
@@ -767,15 +767,23 @@ var GRAPH_AWARE_SEARCH = {
767
767
  // src/tool-contracts.lifecycle.ts
768
768
  var CREATE_BELIEF = {
769
769
  name: "create_belief",
770
- 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.",
770
+ 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.",
771
771
  parameters: {
772
772
  canonicalText: {
773
773
  type: "string",
774
774
  description: "The belief statement \u2014 what the agent holds to be true"
775
775
  },
776
+ topicGlobalId: {
777
+ type: "string",
778
+ description: "Required globalId (UUID) of the topic node in epistemicNodes that anchors the belief"
779
+ },
780
+ topicNodeId: {
781
+ type: "string",
782
+ description: "Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
783
+ },
776
784
  topicId: {
777
785
  type: "string",
778
- description: "Optional topic scope hint for the belief"
786
+ description: "Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
779
787
  },
780
788
  baseRate: {
781
789
  type: "number",
@@ -790,7 +798,7 @@ var CREATE_BELIEF = {
790
798
  description: "Optional extra metadata merged into the node (e.g., { codeAnchors: ['path/to/file.ts'] } for coding intelligence)"
791
799
  }
792
800
  },
793
- required: ["canonicalText"],
801
+ required: ["canonicalText", "topicGlobalId"],
794
802
  response: {
795
803
  description: "The created canonical belief record",
796
804
  fields: {
@@ -799,7 +807,7 @@ var CREATE_BELIEF = {
799
807
  beliefId: "string \u2014 canonical belief ID",
800
808
  text: "string \u2014 canonical belief formulation",
801
809
  topicId: "string",
802
- status: "string \u2014 active | superseded | archived",
810
+ beliefStatus: "string \u2014 assumption | hypothesis | active | superseded | resolved_true | resolved_false",
803
811
  scoringState: "string \u2014 unscored | scored"
804
812
  }
805
813
  },
@@ -822,7 +830,7 @@ var GET_BELIEF = {
822
830
  beliefId: "string \u2014 canonical belief ID",
823
831
  text: "string \u2014 canonical belief formulation",
824
832
  topicId: "string",
825
- status: "string \u2014 active | superseded | archived",
833
+ beliefStatus: "string \u2014 assumption | hypothesis | active | superseded | resolved_true | resolved_false",
826
834
  scoringState: "string \u2014 unscored | scored"
827
835
  }
828
836
  },
@@ -851,34 +859,24 @@ var REFINE_BELIEF = {
851
859
  ontologyPrimitive: "belief",
852
860
  tier: "showcase"
853
861
  };
854
- var MODULATE_CONFIDENCE = {
855
- name: "modulate_confidence",
856
- 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.",
862
+ var APPEND_SL_SCORING = {
863
+ name: "append_sl_scoring",
864
+ 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.",
857
865
  parameters: {
858
- nodeId: { type: "string", description: "The belief to score" },
859
- belief: {
860
- type: "number",
861
- description: "Subjective-logic belief mass `b` in [0, 1]"
862
- },
866
+ nodeId: { type: "string", description: "The belief receiving the SL score" },
867
+ belief: { type: "number", description: "Subjective Logic belief mass b" },
863
868
  disbelief: {
864
869
  type: "number",
865
- description: "Subjective-logic disbelief mass `d` in [0, 1]"
870
+ description: "Subjective Logic disbelief mass d"
866
871
  },
867
872
  uncertainty: {
868
873
  type: "number",
869
- description: "Subjective-logic uncertainty mass `u` in [0, 1]"
870
- },
871
- baseRate: {
872
- type: "number",
873
- description: "Subjective-logic base rate `a` in [0, 1]. Required for tuple payloads."
874
- },
875
- worktreeId: {
876
- type: "string",
877
- description: "Completed worktree that tested this belief when confidence policy requires merge-backed scoring."
874
+ description: "Subjective Logic uncertainty mass u"
878
875
  },
876
+ baseRate: { type: "number", description: "Subjective Logic base rate a" },
879
877
  trigger: {
880
878
  type: "string",
881
- description: "What caused this confidence change",
879
+ description: "Evidence-bearing cause of the scoring event",
882
880
  enum: [
883
881
  "evidence_added",
884
882
  "evidence_removed",
@@ -889,64 +887,39 @@ var MODULATE_CONFIDENCE = {
889
887
  "worktree_completed",
890
888
  "fusion",
891
889
  "discount",
892
- "deduction"
890
+ "deduction",
891
+ "backfill_synthetic"
893
892
  ]
894
893
  },
895
- triggeringEvidenceId: {
896
- type: "string",
897
- description: "Evidence node that caused an evidence-triggered modulation"
898
- },
899
- triggeringQuestionId: {
900
- type: "string",
901
- description: "Answered question whose resolution supports this modulation"
902
- },
903
- triggeringAnswerId: {
904
- type: "string",
905
- description: "Answer node whose content supports this modulation"
906
- },
907
- triggeringContradictionId: {
908
- type: "string",
909
- description: "Contradiction record that caused a contradiction-triggered modulation"
910
- },
911
- triggeringWorktreeId: {
912
- type: "string",
913
- description: "Completed worktree whose outcome caused a worktree-triggered modulation"
894
+ provenance: {
895
+ type: "object",
896
+ description: "At least one of evidence, question, answer, contradiction, or worktree."
914
897
  },
915
898
  rationale: {
916
899
  type: "string",
917
- description: "Human-readable explanation of why confidence changed"
900
+ description: "Why this evidence-bearing event moved the SL tuple"
918
901
  }
919
902
  },
920
- required: [
921
- "nodeId",
922
- "belief",
923
- "disbelief",
924
- "uncertainty",
925
- "baseRate",
926
- "trigger",
927
- "rationale"
928
- ],
903
+ required: ["nodeId", "belief", "disbelief", "uncertainty", "baseRate", "trigger", "rationale"],
929
904
  response: {
930
- description: "Confidence modulation result",
905
+ description: "Internal SL scoring append receipt",
931
906
  fields: {
932
- beliefId: "string \u2014 canonical belief ID",
933
- nodeId: "string \u2014 canonical belief ID",
934
- newConfidence: "number",
907
+ nodeId: "string",
935
908
  previousConfidence: "number",
936
- trigger: "string",
937
- requestId: "string \u2014 request identifier for the scheduled cascade",
938
- propagationSummary: "object \u2014 bounded inline cascade summary with totalCandidateTargets, inlineTargets, and remainingTargetCount"
909
+ newConfidence: "number",
910
+ beliefConfidenceId: "string"
939
911
  }
940
912
  },
941
913
  ownerModule: "graph-primitives",
942
914
  ontologyPrimitive: "belief",
943
- tier: "showcase"
915
+ tier: "workhorse",
916
+ internal: true
944
917
  };
945
918
  var FORK_BELIEF = {
946
919
  name: "fork_belief",
947
- 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.",
920
+ 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.",
948
921
  parameters: {
949
- nodeId: { type: "string", description: "The scored belief to fork from" },
922
+ nodeId: { type: "string", description: "The belief to fork from" },
950
923
  newFormulation: {
951
924
  type: "string",
952
925
  description: "The evolved belief statement"
@@ -958,12 +931,20 @@ var FORK_BELIEF = {
958
931
  "refinement",
959
932
  "contradiction_response",
960
933
  "scope_change",
961
- "confidence_collapse",
962
- "manual"
934
+ "confidence_collapse"
963
935
  ]
936
+ },
937
+ forkMode: {
938
+ type: "string",
939
+ description: "supersede replaces the parent; branch creates a child while preserving the parent.",
940
+ enum: ["supersede", "branch"]
941
+ },
942
+ triggeringEvidenceId: {
943
+ type: "string",
944
+ description: "Evidence already attached to the parent belief that caused the fork."
964
945
  }
965
946
  },
966
- required: ["nodeId", "newFormulation", "forkReason"],
947
+ required: ["nodeId", "newFormulation", "forkReason", "triggeringEvidenceId"],
967
948
  response: {
968
949
  description: "The forked canonical belief record",
969
950
  fields: {
@@ -1465,7 +1446,7 @@ var REASONING_METHODS = [
1465
1446
  // src/tool-contracts.graph.ts
1466
1447
  var QUERY_LINEAGE = {
1467
1448
  name: "query_lineage",
1468
- 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).",
1449
+ 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).",
1469
1450
  parameters: {
1470
1451
  nodeId: { type: "string", description: "Starting node to trace from" },
1471
1452
  depth: {
@@ -1664,7 +1645,7 @@ var FIND_CONTRADICTIONS = {
1664
1645
  };
1665
1646
  var BISECT_CONFIDENCE = {
1666
1647
  name: "bisect_confidence",
1667
- 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.",
1648
+ 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.",
1668
1649
  parameters: {
1669
1650
  nodeId: { type: "string", description: "The belief to bisect" },
1670
1651
  expectedDirection: {
@@ -1683,7 +1664,7 @@ var BISECT_CONFIDENCE = {
1683
1664
  fields: {
1684
1665
  beliefId: "string \u2014 canonical belief ID",
1685
1666
  expectedDirection: "string \u2014 overconfident | underconfident",
1686
- inflectionEntry: "object \u2014 the confidence modulation where divergence began",
1667
+ inflectionEntry: "object \u2014 the scoring event where divergence began",
1687
1668
  triggerEvent: "string | null \u2014 what caused the divergence",
1688
1669
  confidenceBefore: "number | null",
1689
1670
  confidenceAfter: "number | null",
@@ -2628,18 +2609,18 @@ var SEARCH_EVIDENCE = {
2628
2609
  };
2629
2610
  var CREATE_EVIDENCE = {
2630
2611
  name: "create_evidence",
2631
- 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.",
2612
+ 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.",
2632
2613
  parameters: {
2633
2614
  topicId: { type: "string", description: "Topic scope" },
2634
2615
  text: { type: "string", description: "Canonical evidence text" },
2635
2616
  source: { type: "string", description: "Source URL or source label" },
2636
2617
  targetId: {
2637
2618
  type: "string",
2638
- description: "Optional belief or question identifier to link immediately"
2619
+ description: "Belief identifier to link immediately"
2639
2620
  },
2640
2621
  weight: {
2641
2622
  type: "number",
2642
- description: "Optional support weight: -1.0 (contradicts) to +1.0 (supports). If omitted, evidenceRelation + confidence determine the weight."
2623
+ description: "Required nonzero signed impact score: -1.0 (contradicts) to +1.0 (supports)."
2643
2624
  },
2644
2625
  evidenceRelation: {
2645
2626
  type: "string",
@@ -2648,7 +2629,7 @@ var CREATE_EVIDENCE = {
2648
2629
  },
2649
2630
  confidence: {
2650
2631
  type: "number",
2651
- description: "Confidence in the evidence relation, 0.0 to 1.0"
2632
+ description: "Deprecated hint. Runtime confidence is derived from the signed impact score."
2652
2633
  },
2653
2634
  beliefRelations: {
2654
2635
  type: "array",
@@ -2670,7 +2651,7 @@ var CREATE_EVIDENCE = {
2670
2651
  },
2671
2652
  kind: { type: "string", description: "Optional evidence kind" }
2672
2653
  },
2673
- required: ["text", "rationale"],
2654
+ required: ["text", "rationale", "weight"],
2674
2655
  response: {
2675
2656
  description: "The created canonical evidence record",
2676
2657
  fields: {
@@ -2745,7 +2726,7 @@ var LINK_EVIDENCE = {
2745
2726
  },
2746
2727
  rationale: { type: "string", description: "Why this link exists" }
2747
2728
  },
2748
- required: ["evidenceId", "targetId"],
2729
+ required: ["evidenceId", "targetId", "weight"],
2749
2730
  response: {
2750
2731
  description: "The created canonical evidence edge summary",
2751
2732
  fields: {
@@ -2781,7 +2762,7 @@ var LINK_EVIDENCE_TO_BELIEF = {
2781
2762
  },
2782
2763
  rationale: { type: "string", description: "Why this evidence is relevant" }
2783
2764
  },
2784
- required: ["evidenceId", "beliefId"],
2765
+ required: ["evidenceId", "beliefId", "weight"],
2785
2766
  response: {
2786
2767
  description: "The created edge linking evidence to belief",
2787
2768
  fields: {
@@ -3583,6 +3564,10 @@ var COMPILE_CONTEXT = {
3583
3564
  type: "number",
3584
3565
  description: "Optional per-section item limit"
3585
3566
  },
3567
+ contentTopicLimit: {
3568
+ type: "number",
3569
+ 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."
3570
+ },
3586
3571
  maxDepth: {
3587
3572
  type: "number",
3588
3573
  description: "Optional descendant topic depth for neighborhood expansion"
@@ -3596,6 +3581,11 @@ var COMPILE_CONTEXT = {
3596
3581
  response: {
3597
3582
  description: "Compiled context pack for the requested topic",
3598
3583
  fields: {
3584
+ contextNarrative: "array \u2014 first field; ordered synthesis blocks with kind/text, starting with executive_summary and canonical narrative blocks before raw objects",
3585
+ narrativeCoverage: "object \u2014 recordsSynthesized, recordsNamed, recordsOmitted, topicsSynthesized, topicsEnriched, topicContentOmitted, enrichmentMode, and blocksEmitted for the narrative",
3586
+ synthesisLints: "array \u2014 inline quality warnings for degenerate synthesis blocks or weak narrative coverage",
3587
+ retrievalReceipt: "object \u2014 candidateCounts, coverageWarning, narrativeCoverage, synthesisLints, and suggestedNextActions",
3588
+ supportingObjects: "object \u2014 raw graph records grouped behind the synthesis: invariants, activeBeliefs, openQuestions, recentEvidence, worktrees, lanes, entities, and contradictions",
3599
3589
  schemaVersion: "string",
3600
3590
  topicId: "string",
3601
3591
  topicName: "string",
@@ -3603,15 +3593,6 @@ var COMPILE_CONTEXT = {
3603
3593
  generatedAt: "number \u2014 deterministic graph-backed reference timestamp for this compilation",
3604
3594
  ranking: "string \u2014 baseline_v1 | weighted_v1",
3605
3595
  summary: "object \u2014 counts and scoped health signals",
3606
- invariants: "array \u2014 high-confidence invariant beliefs",
3607
- activeBeliefs: "array \u2014 current high-signal beliefs",
3608
- openQuestions: "array \u2014 unresolved questions ranked for this query",
3609
- recentEvidence: "array \u2014 recent evidence ranked for this query",
3610
- contradictions: "array \u2014 unresolved contradiction records",
3611
- relatedEntities: "array | undefined \u2014 ranked ontological entities in scope",
3612
- contextNarrative: "array \u2014 ordered synthesis blocks with kind/text, starting with executive_summary and canonical narrative blocks before raw objects",
3613
- retrievalReceipt: "object \u2014 candidateCounts, coverageWarning, narrativeCoverage, synthesisLints, and suggestedNextActions",
3614
- narrativeCoverage: "object \u2014 recordsSynthesized, recordsNamed, recordsOmitted, and blocksEmitted for the narrative",
3615
3596
  injectionPolicy: "object \u2014 token-budgeted section selections",
3616
3597
  diagnostics: "object \u2014 scoring and utilization telemetry"
3617
3598
  }
@@ -5030,7 +5011,7 @@ var TRIGGER_BELIEF_REVIEW = {
5030
5011
  };
5031
5012
  var EVALUATE_CONTRACT = {
5032
5013
  name: "evaluate_contract",
5033
- 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.",
5014
+ 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.",
5034
5015
  parameters: {
5035
5016
  contractId: { type: "string", description: "Which contract to evaluate" },
5036
5017
  trigger: {
@@ -5386,7 +5367,7 @@ var MCP_TOOL_CONTRACTS = {
5386
5367
  create_belief: CREATE_BELIEF,
5387
5368
  get_belief: GET_BELIEF,
5388
5369
  refine_belief: REFINE_BELIEF,
5389
- modulate_confidence: MODULATE_CONFIDENCE,
5370
+ append_sl_scoring: APPEND_SL_SCORING,
5390
5371
  fork_belief: FORK_BELIEF,
5391
5372
  archive_belief: ARCHIVE_BELIEF,
5392
5373
  create_epistemic_contract: CREATE_EPISTEMIC_CONTRACT,