@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
@@ -5,15 +5,23 @@ import { z } from 'zod';
5
5
  // src/tool-contracts.lifecycle.ts
6
6
  var CREATE_BELIEF = {
7
7
  name: "create_belief",
8
- 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.",
8
+ 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.",
9
9
  parameters: {
10
10
  canonicalText: {
11
11
  type: "string",
12
12
  description: "The belief statement \u2014 what the agent holds to be true"
13
13
  },
14
+ topicGlobalId: {
15
+ type: "string",
16
+ description: "Required globalId (UUID) of the topic node in epistemicNodes that anchors the belief"
17
+ },
18
+ topicNodeId: {
19
+ type: "string",
20
+ description: "Optional internal epistemicNodes _id for the topic anchor. Prefer topicGlobalId for public callers."
21
+ },
14
22
  topicId: {
15
23
  type: "string",
16
- description: "Optional topic scope hint for the belief"
24
+ description: "Deprecated compatibility alias for topicGlobalId. Must identify a topic epistemicNode, not a legacy topics-table row."
17
25
  },
18
26
  baseRate: {
19
27
  type: "number",
@@ -28,7 +36,7 @@ var CREATE_BELIEF = {
28
36
  description: "Optional extra metadata merged into the node (e.g., { codeAnchors: ['path/to/file.ts'] } for coding intelligence)"
29
37
  }
30
38
  },
31
- required: ["canonicalText"],
39
+ required: ["canonicalText", "topicGlobalId"],
32
40
  response: {
33
41
  description: "The created canonical belief record",
34
42
  fields: {
@@ -37,7 +45,7 @@ var CREATE_BELIEF = {
37
45
  beliefId: "string \u2014 canonical belief ID",
38
46
  text: "string \u2014 canonical belief formulation",
39
47
  topicId: "string",
40
- status: "string \u2014 active | superseded | archived",
48
+ beliefStatus: "string \u2014 assumption | hypothesis | active | superseded | resolved_true | resolved_false",
41
49
  scoringState: "string \u2014 unscored | scored"
42
50
  }
43
51
  },
@@ -60,7 +68,7 @@ var GET_BELIEF = {
60
68
  beliefId: "string \u2014 canonical belief ID",
61
69
  text: "string \u2014 canonical belief formulation",
62
70
  topicId: "string",
63
- status: "string \u2014 active | superseded | archived",
71
+ beliefStatus: "string \u2014 assumption | hypothesis | active | superseded | resolved_true | resolved_false",
64
72
  scoringState: "string \u2014 unscored | scored"
65
73
  }
66
74
  },
@@ -89,34 +97,24 @@ var REFINE_BELIEF = {
89
97
  ontologyPrimitive: "belief",
90
98
  tier: "showcase"
91
99
  };
92
- var MODULATE_CONFIDENCE = {
93
- name: "modulate_confidence",
94
- 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.",
100
+ var APPEND_SL_SCORING = {
101
+ name: "append_sl_scoring",
102
+ 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.",
95
103
  parameters: {
96
- nodeId: { type: "string", description: "The belief to score" },
97
- belief: {
98
- type: "number",
99
- description: "Subjective-logic belief mass `b` in [0, 1]"
100
- },
104
+ nodeId: { type: "string", description: "The belief receiving the SL score" },
105
+ belief: { type: "number", description: "Subjective Logic belief mass b" },
101
106
  disbelief: {
102
107
  type: "number",
103
- description: "Subjective-logic disbelief mass `d` in [0, 1]"
108
+ description: "Subjective Logic disbelief mass d"
104
109
  },
105
110
  uncertainty: {
106
111
  type: "number",
107
- description: "Subjective-logic uncertainty mass `u` in [0, 1]"
108
- },
109
- baseRate: {
110
- type: "number",
111
- description: "Subjective-logic base rate `a` in [0, 1]. Required for tuple payloads."
112
- },
113
- worktreeId: {
114
- type: "string",
115
- description: "Completed worktree that tested this belief when confidence policy requires merge-backed scoring."
112
+ description: "Subjective Logic uncertainty mass u"
116
113
  },
114
+ baseRate: { type: "number", description: "Subjective Logic base rate a" },
117
115
  trigger: {
118
116
  type: "string",
119
- description: "What caused this confidence change",
117
+ description: "Evidence-bearing cause of the scoring event",
120
118
  enum: [
121
119
  "evidence_added",
122
120
  "evidence_removed",
@@ -127,64 +125,39 @@ var MODULATE_CONFIDENCE = {
127
125
  "worktree_completed",
128
126
  "fusion",
129
127
  "discount",
130
- "deduction"
128
+ "deduction",
129
+ "backfill_synthetic"
131
130
  ]
132
131
  },
133
- triggeringEvidenceId: {
134
- type: "string",
135
- description: "Evidence node that caused an evidence-triggered modulation"
136
- },
137
- triggeringQuestionId: {
138
- type: "string",
139
- description: "Answered question whose resolution supports this modulation"
140
- },
141
- triggeringAnswerId: {
142
- type: "string",
143
- description: "Answer node whose content supports this modulation"
144
- },
145
- triggeringContradictionId: {
146
- type: "string",
147
- description: "Contradiction record that caused a contradiction-triggered modulation"
148
- },
149
- triggeringWorktreeId: {
150
- type: "string",
151
- description: "Completed worktree whose outcome caused a worktree-triggered modulation"
132
+ provenance: {
133
+ type: "object",
134
+ description: "At least one of evidence, question, answer, contradiction, or worktree."
152
135
  },
153
136
  rationale: {
154
137
  type: "string",
155
- description: "Human-readable explanation of why confidence changed"
138
+ description: "Why this evidence-bearing event moved the SL tuple"
156
139
  }
157
140
  },
158
- required: [
159
- "nodeId",
160
- "belief",
161
- "disbelief",
162
- "uncertainty",
163
- "baseRate",
164
- "trigger",
165
- "rationale"
166
- ],
141
+ required: ["nodeId", "belief", "disbelief", "uncertainty", "baseRate", "trigger", "rationale"],
167
142
  response: {
168
- description: "Confidence modulation result",
143
+ description: "Internal SL scoring append receipt",
169
144
  fields: {
170
- beliefId: "string \u2014 canonical belief ID",
171
- nodeId: "string \u2014 canonical belief ID",
172
- newConfidence: "number",
145
+ nodeId: "string",
173
146
  previousConfidence: "number",
174
- trigger: "string",
175
- requestId: "string \u2014 request identifier for the scheduled cascade",
176
- propagationSummary: "object \u2014 bounded inline cascade summary with totalCandidateTargets, inlineTargets, and remainingTargetCount"
147
+ newConfidence: "number",
148
+ beliefConfidenceId: "string"
177
149
  }
178
150
  },
179
151
  ownerModule: "graph-primitives",
180
152
  ontologyPrimitive: "belief",
181
- tier: "showcase"
153
+ tier: "workhorse",
154
+ internal: true
182
155
  };
183
156
  var FORK_BELIEF = {
184
157
  name: "fork_belief",
185
- 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.",
158
+ 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.",
186
159
  parameters: {
187
- nodeId: { type: "string", description: "The scored belief to fork from" },
160
+ nodeId: { type: "string", description: "The belief to fork from" },
188
161
  newFormulation: {
189
162
  type: "string",
190
163
  description: "The evolved belief statement"
@@ -196,12 +169,20 @@ var FORK_BELIEF = {
196
169
  "refinement",
197
170
  "contradiction_response",
198
171
  "scope_change",
199
- "confidence_collapse",
200
- "manual"
172
+ "confidence_collapse"
201
173
  ]
174
+ },
175
+ forkMode: {
176
+ type: "string",
177
+ description: "supersede replaces the parent; branch creates a child while preserving the parent.",
178
+ enum: ["supersede", "branch"]
179
+ },
180
+ triggeringEvidenceId: {
181
+ type: "string",
182
+ description: "Evidence already attached to the parent belief that caused the fork."
202
183
  }
203
184
  },
204
- required: ["nodeId", "newFormulation", "forkReason"],
185
+ required: ["nodeId", "newFormulation", "forkReason", "triggeringEvidenceId"],
205
186
  response: {
206
187
  description: "The forked canonical belief record",
207
188
  fields: {
@@ -703,7 +684,7 @@ var REASONING_METHODS = [
703
684
  // src/tool-contracts.graph.ts
704
685
  var QUERY_LINEAGE = {
705
686
  name: "query_lineage",
706
- 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).",
687
+ 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).",
707
688
  parameters: {
708
689
  nodeId: { type: "string", description: "Starting node to trace from" },
709
690
  depth: {
@@ -902,7 +883,7 @@ var FIND_CONTRADICTIONS = {
902
883
  };
903
884
  var BISECT_CONFIDENCE = {
904
885
  name: "bisect_confidence",
905
- 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.",
886
+ 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.",
906
887
  parameters: {
907
888
  nodeId: { type: "string", description: "The belief to bisect" },
908
889
  expectedDirection: {
@@ -921,7 +902,7 @@ var BISECT_CONFIDENCE = {
921
902
  fields: {
922
903
  beliefId: "string \u2014 canonical belief ID",
923
904
  expectedDirection: "string \u2014 overconfident | underconfident",
924
- inflectionEntry: "object \u2014 the confidence modulation where divergence began",
905
+ inflectionEntry: "object \u2014 the scoring event where divergence began",
925
906
  triggerEvent: "string | null \u2014 what caused the divergence",
926
907
  confidenceBefore: "number | null",
927
908
  confidenceAfter: "number | null",
@@ -1866,18 +1847,18 @@ var SEARCH_EVIDENCE = {
1866
1847
  };
1867
1848
  var CREATE_EVIDENCE = {
1868
1849
  name: "create_evidence",
1869
- 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.",
1850
+ 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.",
1870
1851
  parameters: {
1871
1852
  topicId: { type: "string", description: "Topic scope" },
1872
1853
  text: { type: "string", description: "Canonical evidence text" },
1873
1854
  source: { type: "string", description: "Source URL or source label" },
1874
1855
  targetId: {
1875
1856
  type: "string",
1876
- description: "Optional belief or question identifier to link immediately"
1857
+ description: "Belief identifier to link immediately"
1877
1858
  },
1878
1859
  weight: {
1879
1860
  type: "number",
1880
- description: "Optional support weight: -1.0 (contradicts) to +1.0 (supports). If omitted, evidenceRelation + confidence determine the weight."
1861
+ description: "Required nonzero signed impact score: -1.0 (contradicts) to +1.0 (supports)."
1881
1862
  },
1882
1863
  evidenceRelation: {
1883
1864
  type: "string",
@@ -1886,7 +1867,7 @@ var CREATE_EVIDENCE = {
1886
1867
  },
1887
1868
  confidence: {
1888
1869
  type: "number",
1889
- description: "Confidence in the evidence relation, 0.0 to 1.0"
1870
+ description: "Deprecated hint. Runtime confidence is derived from the signed impact score."
1890
1871
  },
1891
1872
  beliefRelations: {
1892
1873
  type: "array",
@@ -1908,7 +1889,7 @@ var CREATE_EVIDENCE = {
1908
1889
  },
1909
1890
  kind: { type: "string", description: "Optional evidence kind" }
1910
1891
  },
1911
- required: ["text", "rationale"],
1892
+ required: ["text", "rationale", "weight"],
1912
1893
  response: {
1913
1894
  description: "The created canonical evidence record",
1914
1895
  fields: {
@@ -1983,7 +1964,7 @@ var LINK_EVIDENCE = {
1983
1964
  },
1984
1965
  rationale: { type: "string", description: "Why this link exists" }
1985
1966
  },
1986
- required: ["evidenceId", "targetId"],
1967
+ required: ["evidenceId", "targetId", "weight"],
1987
1968
  response: {
1988
1969
  description: "The created canonical evidence edge summary",
1989
1970
  fields: {
@@ -2019,7 +2000,7 @@ var LINK_EVIDENCE_TO_BELIEF = {
2019
2000
  },
2020
2001
  rationale: { type: "string", description: "Why this evidence is relevant" }
2021
2002
  },
2022
- required: ["evidenceId", "beliefId"],
2003
+ required: ["evidenceId", "beliefId", "weight"],
2023
2004
  response: {
2024
2005
  description: "The created edge linking evidence to belief",
2025
2006
  fields: {
@@ -2838,6 +2819,11 @@ var COMPILE_CONTEXT = {
2838
2819
  response: {
2839
2820
  description: "Compiled context pack for the requested topic",
2840
2821
  fields: {
2822
+ contextNarrative: "array \u2014 first field; ordered synthesis blocks with kind/text, starting with executive_summary and canonical narrative blocks before raw objects",
2823
+ narrativeCoverage: "object \u2014 recordsSynthesized, recordsNamed, recordsOmitted, topicsSynthesized, topicsEnriched, topicContentOmitted, enrichmentMode, and blocksEmitted for the narrative",
2824
+ synthesisLints: "array \u2014 inline quality warnings for degenerate synthesis blocks or weak narrative coverage",
2825
+ retrievalReceipt: "object \u2014 candidateCounts, coverageWarning, narrativeCoverage, synthesisLints, and suggestedNextActions",
2826
+ supportingObjects: "object \u2014 raw graph records grouped behind the synthesis: invariants, activeBeliefs, openQuestions, recentEvidence, worktrees, lanes, entities, and contradictions",
2841
2827
  schemaVersion: "string",
2842
2828
  topicId: "string",
2843
2829
  topicName: "string",
@@ -2845,15 +2831,6 @@ var COMPILE_CONTEXT = {
2845
2831
  generatedAt: "number \u2014 deterministic graph-backed reference timestamp for this compilation",
2846
2832
  ranking: "string \u2014 baseline_v1 | weighted_v1",
2847
2833
  summary: "object \u2014 counts and scoped health signals",
2848
- invariants: "array \u2014 high-confidence invariant beliefs",
2849
- activeBeliefs: "array \u2014 current high-signal beliefs",
2850
- openQuestions: "array \u2014 unresolved questions ranked for this query",
2851
- recentEvidence: "array \u2014 recent evidence ranked for this query",
2852
- contradictions: "array \u2014 unresolved contradiction records",
2853
- relatedEntities: "array | undefined \u2014 ranked ontological entities in scope",
2854
- contextNarrative: "array \u2014 ordered synthesis blocks with kind/text, starting with executive_summary and canonical narrative blocks before raw objects",
2855
- retrievalReceipt: "object \u2014 candidateCounts, coverageWarning, narrativeCoverage, synthesisLints, and suggestedNextActions",
2856
- narrativeCoverage: "object \u2014 recordsSynthesized, recordsNamed, recordsOmitted, topicsSynthesized, topicsEnriched, topicContentOmitted, enrichmentMode, and blocksEmitted for the narrative",
2857
2834
  injectionPolicy: "object \u2014 token-budgeted section selections",
2858
2835
  diagnostics: "object \u2014 scoring and utilization telemetry"
2859
2836
  }
@@ -4272,7 +4249,7 @@ var TRIGGER_BELIEF_REVIEW = {
4272
4249
  };
4273
4250
  var EVALUATE_CONTRACT = {
4274
4251
  name: "evaluate_contract",
4275
- 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.",
4252
+ 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.",
4276
4253
  parameters: {
4277
4254
  contractId: { type: "string", description: "Which contract to evaluate" },
4278
4255
  trigger: {
@@ -4628,7 +4605,7 @@ var MCP_TOOL_CONTRACTS = {
4628
4605
  create_belief: CREATE_BELIEF,
4629
4606
  get_belief: GET_BELIEF,
4630
4607
  refine_belief: REFINE_BELIEF,
4631
- modulate_confidence: MODULATE_CONFIDENCE,
4608
+ append_sl_scoring: APPEND_SL_SCORING,
4632
4609
  fork_belief: FORK_BELIEF,
4633
4610
  archive_belief: ARCHIVE_BELIEF,
4634
4611
  create_epistemic_contract: CREATE_EPISTEMIC_CONTRACT,
@@ -5123,12 +5100,12 @@ var LUCERN_OPERATION_MANIFEST = {
5123
5100
  internalSystem,
5124
5101
  "Lucern system/background operation. Available to platform code paths, hidden from public MCP discovery."
5125
5102
  ),
5126
- modulate_confidence: {
5127
- name: "modulate_confidence",
5103
+ append_sl_scoring: {
5104
+ name: "append_sl_scoring",
5128
5105
  surfaceClass: "platform_internal",
5129
5106
  surfaceIntent: "system",
5130
5107
  surfaces: internalSdkRestOnly,
5131
- rationale: "Internal SL ledger append primitive. Public callers attach evidence or contradiction relations; confidence is derived algorithmically."
5108
+ rationale: "Internal SL scoring append primitive. Public callers attach evidence or contradiction relations; confidence is derived algorithmically."
5132
5109
  },
5133
5110
  ...entries(
5134
5111
  LEGACY_COMPAT_OPERATION_NAMES,