@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.
- package/CHANGELOG.md +3 -0
- package/dist/api-enums.contract.d.ts +2 -2
- package/dist/api-enums.contract.js +2 -8
- package/dist/api-enums.contract.js.map +1 -1
- package/dist/context-pack.contract.d.ts +27 -7
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/function-registry/beliefs.js +109 -115
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +68 -91
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.js +68 -91
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +68 -91
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +68 -91
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +68 -91
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.js +182 -125
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.js +68 -91
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.js +68 -91
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +68 -91
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.js +68 -91
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.js +68 -91
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +68 -91
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.js +68 -91
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +3 -3
- package/dist/function-registry/manifest.js +3 -3
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.js +68 -91
- package/dist/function-registry/nodes.js.map +1 -1
- package/dist/function-registry/ontologies.js +68 -91
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.js +68 -91
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.js +68 -91
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +68 -91
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.js +68 -91
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/worktrees.js +68 -91
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/generated/convexSchemas.js +2 -2
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +162 -130
- package/dist/index.js.map +1 -1
- package/dist/manifests/invariant-manifest.d.ts +1 -1
- package/dist/manifests/invariants/index.d.ts +1 -1
- package/dist/manifests/invariants/index.js +1 -1
- package/dist/manifests/invariants/index.js.map +1 -1
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +1 -1
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +1 -1
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +1 -1
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +1 -1
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -1
- package/dist/projections/{modulate-confidence.projection.d.ts → append-sl-scoring.projection.d.ts} +69 -69
- package/dist/projections/{modulate-confidence.projection.js → append-sl-scoring.projection.js} +14 -14
- package/dist/projections/append-sl-scoring.projection.js.map +1 -0
- package/dist/projections/check-convex-args-shape.js +88 -29
- package/dist/projections/check-convex-args-shape.js.map +1 -1
- package/dist/projections/create-evidence.projection.js +76 -17
- package/dist/projections/create-evidence.projection.js.map +1 -1
- package/dist/projections/index.d.ts +47 -47
- package/dist/projections/index.js +88 -29
- package/dist/projections/index.js.map +1 -1
- package/dist/proof-attestation.json +3 -3
- package/dist/schemas/index.js +6 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +110 -60
- package/dist/schemas/manifest.js +6 -4
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +20 -10
- package/dist/schemas/tables/kernel/intelligence.js +4 -2
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +2 -2
- package/dist/schemas/tables/kernel/spine.js +2 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas.values.js +6 -4
- package/dist/schemas.values.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +6 -16
- package/dist/sdk-tools.contract.js +65 -88
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/sdk-tools.contract.registry.js +65 -88
- package/dist/sdk-tools.contract.registry.js.map +1 -1
- package/dist/sdk-tools.contract.values.js +65 -88
- package/dist/sdk-tools.contract.values.js.map +1 -1
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.graph.js +3 -3
- package/dist/tool-contracts.graph.js.map +1 -1
- package/dist/tool-contracts.intelligence-evidence.js +7 -7
- package/dist/tool-contracts.intelligence-evidence.js.map +1 -1
- package/dist/tool-contracts.js +66 -89
- package/dist/tool-contracts.js.map +1 -1
- package/dist/tool-contracts.lifecycle.d.ts +2 -2
- package/dist/tool-contracts.lifecycle.js +49 -68
- package/dist/tool-contracts.lifecycle.js.map +1 -1
- package/dist/tool-contracts.pipeline-coordination.js +1 -1
- package/dist/tool-contracts.pipeline-coordination.js.map +1 -1
- package/dist/tool-contracts.questions-listing.js +5 -9
- package/dist/tool-contracts.questions-listing.js.map +1 -1
- package/dist/{tool-contracts.values-BhxfrXS5.d.ts → tool-contracts.values-CCoI3qQY.d.ts} +3 -3
- package/dist/tool-contracts.values.d.ts +1 -1
- package/dist/tool-contracts.values.js +66 -89
- package/dist/tool-contracts.values.js.map +1 -1
- package/package.json +1 -1
- 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: "
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
855
|
-
name: "
|
|
856
|
-
description: "Internal
|
|
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
|
|
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
|
|
870
|
+
description: "Subjective Logic disbelief mass d"
|
|
866
871
|
},
|
|
867
872
|
uncertainty: {
|
|
868
873
|
type: "number",
|
|
869
|
-
description: "Subjective
|
|
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: "
|
|
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
|
-
|
|
896
|
-
type: "
|
|
897
|
-
description: "
|
|
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: "
|
|
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: "
|
|
905
|
+
description: "Internal SL scoring append receipt",
|
|
931
906
|
fields: {
|
|
932
|
-
|
|
933
|
-
nodeId: "string \u2014 canonical belief ID",
|
|
934
|
-
newConfidence: "number",
|
|
907
|
+
nodeId: "string",
|
|
935
908
|
previousConfidence: "number",
|
|
936
|
-
|
|
937
|
-
|
|
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: "
|
|
915
|
+
tier: "workhorse",
|
|
916
|
+
internal: true
|
|
944
917
|
};
|
|
945
918
|
var FORK_BELIEF = {
|
|
946
919
|
name: "fork_belief",
|
|
947
|
-
description: "Branch off
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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: "
|
|
2619
|
+
description: "Belief identifier to link immediately"
|
|
2639
2620
|
},
|
|
2640
2621
|
weight: {
|
|
2641
2622
|
type: "number",
|
|
2642
|
-
description: "
|
|
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: "
|
|
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: {
|
|
@@ -3600,6 +3581,11 @@ var COMPILE_CONTEXT = {
|
|
|
3600
3581
|
response: {
|
|
3601
3582
|
description: "Compiled context pack for the requested topic",
|
|
3602
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",
|
|
3603
3589
|
schemaVersion: "string",
|
|
3604
3590
|
topicId: "string",
|
|
3605
3591
|
topicName: "string",
|
|
@@ -3607,15 +3593,6 @@ var COMPILE_CONTEXT = {
|
|
|
3607
3593
|
generatedAt: "number \u2014 deterministic graph-backed reference timestamp for this compilation",
|
|
3608
3594
|
ranking: "string \u2014 baseline_v1 | weighted_v1",
|
|
3609
3595
|
summary: "object \u2014 counts and scoped health signals",
|
|
3610
|
-
invariants: "array \u2014 high-confidence invariant beliefs",
|
|
3611
|
-
activeBeliefs: "array \u2014 current high-signal beliefs",
|
|
3612
|
-
openQuestions: "array \u2014 unresolved questions ranked for this query",
|
|
3613
|
-
recentEvidence: "array \u2014 recent evidence ranked for this query",
|
|
3614
|
-
contradictions: "array \u2014 unresolved contradiction records",
|
|
3615
|
-
relatedEntities: "array | undefined \u2014 ranked ontological entities in scope",
|
|
3616
|
-
contextNarrative: "array \u2014 ordered synthesis blocks with kind/text, starting with executive_summary and canonical narrative blocks before raw objects",
|
|
3617
|
-
retrievalReceipt: "object \u2014 candidateCounts, coverageWarning, narrativeCoverage, synthesisLints, and suggestedNextActions",
|
|
3618
|
-
narrativeCoverage: "object \u2014 recordsSynthesized, recordsNamed, recordsOmitted, topicsSynthesized, topicsEnriched, topicContentOmitted, enrichmentMode, and blocksEmitted for the narrative",
|
|
3619
3596
|
injectionPolicy: "object \u2014 token-budgeted section selections",
|
|
3620
3597
|
diagnostics: "object \u2014 scoring and utilization telemetry"
|
|
3621
3598
|
}
|
|
@@ -5034,7 +5011,7 @@ var TRIGGER_BELIEF_REVIEW = {
|
|
|
5034
5011
|
};
|
|
5035
5012
|
var EVALUATE_CONTRACT = {
|
|
5036
5013
|
name: "evaluate_contract",
|
|
5037
|
-
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
|
|
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.",
|
|
5038
5015
|
parameters: {
|
|
5039
5016
|
contractId: { type: "string", description: "Which contract to evaluate" },
|
|
5040
5017
|
trigger: {
|
|
@@ -5390,7 +5367,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
5390
5367
|
create_belief: CREATE_BELIEF,
|
|
5391
5368
|
get_belief: GET_BELIEF,
|
|
5392
5369
|
refine_belief: REFINE_BELIEF,
|
|
5393
|
-
|
|
5370
|
+
append_sl_scoring: APPEND_SL_SCORING,
|
|
5394
5371
|
fork_belief: FORK_BELIEF,
|
|
5395
5372
|
archive_belief: ARCHIVE_BELIEF,
|
|
5396
5373
|
create_epistemic_contract: CREATE_EPISTEMIC_CONTRACT,
|