@lucern/confidence 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.
package/README.md CHANGED
@@ -11,10 +11,10 @@ Scope:
11
11
  This module contains the pure logic for confidence updates. Convex-facing adapters remain in the kernel and graph-primitives layers.
12
12
 
13
13
  Constraints:
14
- - `modulateConfidence` remains append-only at the mutation boundary
14
+ - `appendSlScoring` remains append-only at the mutation boundary
15
15
  - Confidence history continues to be written through the existing belief-confidence ledger
16
16
  - Belief creation starts from the canonical vacuous prior `(b=0, d=0, u=1, a=0.5)` unless the caller supplies an explicit prior
17
- - Belief/disbelief mass only moves when a confidence modulation cites a truth-bearing artifact: evidence, an answered question or answer node, a contradiction, or a worktree outcome
17
+ - Belief/disbelief mass only moves when a SL scoring cites a truth-bearing artifact: evidence, an answered question or answer node, a contradiction, or a worktree outcome
18
18
  - Public mutation callers must provide opinion-space tuple fields; scalar confidence is a derived projection, not a write contract
19
19
 
20
20
  ## SL rigor
@@ -22,7 +22,7 @@ Constraints:
22
22
  - The canonical confidence shape is the 4-tuple `(b, d, u, a)`.
23
23
  - `b + d + u = 1`, and the projected scalar remains `P = b + a*u`.
24
24
  - A newly created belief is vacuous by default: `b=0`, `d=0`, `u=1`, `a=0.5`.
25
- - `modulateConfidence` is provenance-bound. `manual` and `decay` are not confidence triggers; direct human or agent assessments must still cite evidence, an answered question/answer, a contradiction, or a worktree outcome.
25
+ - `appendSlScoring` is provenance-bound. `manual` and `decay` are not confidence triggers; direct human or agent assessments must still cite evidence, an answered question/answer, a contradiction, or a worktree outcome.
26
26
  - Use `opinionFromScalar(value, mode, options?)` for scalar conversion.
27
27
  - Supported modes are `base_rate`, `dogmatic`, and `projected_with_u`.
28
28
  - `toDogmaticOpinion()` remains as a deprecated shim to the explicit dogmatic mode.
package/dist/index.js CHANGED
@@ -792,7 +792,7 @@ function propagateThroughEdge(sourceOpinion, targetOpinion, edgeType, weight = 1
792
792
  if (!handler) {
793
793
  return {
794
794
  opinion: targetOpinion,
795
- operator: "manual_assessment",
795
+ operator: "no_op",
796
796
  rationale: `Unknown edge type: ${edgeType} \u2014 no propagation`
797
797
  };
798
798
  }
@@ -1245,7 +1245,7 @@ function createInheritedContractRecord(contract, args) {
1245
1245
  };
1246
1246
  }
1247
1247
  function normalizeEvidentialAction(value) {
1248
- return value === "modulate_confidence" || value === "flag_review" || value === "archive" ? value : void 0;
1248
+ return value === "append_sl_scoring" || value === "flag_review" || value === "archive" ? value : void 0;
1249
1249
  }
1250
1250
  function parseComparisonOperator(value, evaluatorName) {
1251
1251
  if (value === "gte" || value === "lte" || value === "eq" || value === "gt" || value === "lt") {