@lucern/contracts 0.1.2-alpha.4 → 0.3.0-alpha.0
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/dist/defineFunction-DO97DKs4.d.ts +14 -0
- package/dist/defineTable-CBQ03FXl.d.ts +36 -0
- package/dist/dsl-BgpoVOVQ.d.ts +110 -0
- package/dist/dsl.d.ts +5 -0
- package/dist/dsl.js +675 -0
- package/dist/dsl.js.map +1 -0
- package/dist/function-registry/beliefs.d.ts +519 -0
- package/dist/function-registry/beliefs.js +4326 -0
- package/dist/function-registry/beliefs.js.map +1 -0
- package/dist/function-registry/coding.d.ts +347 -0
- package/dist/function-registry/coding.js +4268 -0
- package/dist/function-registry/coding.js.map +1 -0
- package/dist/function-registry/context.d.ts +218 -0
- package/dist/function-registry/context.js +4175 -0
- package/dist/function-registry/context.js.map +1 -0
- package/dist/function-registry/contracts.d.ts +218 -0
- package/dist/function-registry/contracts.js +4143 -0
- package/dist/function-registry/contracts.js.map +1 -0
- package/dist/function-registry/coordination.d.ts +476 -0
- package/dist/function-registry/coordination.js +4254 -0
- package/dist/function-registry/coordination.js.map +1 -0
- package/dist/function-registry/edges.d.ts +175 -0
- package/dist/function-registry/edges.js +4150 -0
- package/dist/function-registry/edges.js.map +1 -0
- package/dist/function-registry/evidence.d.ts +433 -0
- package/dist/function-registry/evidence.js +4302 -0
- package/dist/function-registry/evidence.js.map +1 -0
- package/dist/function-registry/graph.d.ts +648 -0
- package/dist/function-registry/graph.js +4329 -0
- package/dist/function-registry/graph.js.map +1 -0
- package/dist/function-registry/helpers.d.ts +86 -0
- package/dist/function-registry/helpers.js +4131 -0
- package/dist/function-registry/helpers.js.map +1 -0
- package/dist/function-registry/identity.d.ts +218 -0
- package/dist/function-registry/identity.js +4154 -0
- package/dist/function-registry/identity.js.map +1 -0
- package/dist/function-registry/index.d.ts +32 -0
- package/dist/function-registry/index.js +4235 -0
- package/dist/function-registry/index.js.map +1 -0
- package/dist/function-registry/judgments.d.ts +175 -0
- package/dist/function-registry/judgments.js +4157 -0
- package/dist/function-registry/judgments.js.map +1 -0
- package/dist/function-registry/legacy.d.ts +132 -0
- package/dist/function-registry/legacy.js +4118 -0
- package/dist/function-registry/legacy.js.map +1 -0
- package/dist/function-registry/lenses.d.ts +261 -0
- package/dist/function-registry/lenses.js +4160 -0
- package/dist/function-registry/lenses.js.map +1 -0
- package/dist/function-registry/manifest.d.ts +36 -0
- package/dist/function-registry/manifest.js +366 -0
- package/dist/function-registry/manifest.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +562 -0
- package/dist/function-registry/ontologies.js +4292 -0
- package/dist/function-registry/ontologies.js.map +1 -0
- package/dist/function-registry/pipeline.d.ts +218 -0
- package/dist/function-registry/pipeline.js +4143 -0
- package/dist/function-registry/pipeline.js.map +1 -0
- package/dist/function-registry/questions.d.ts +605 -0
- package/dist/function-registry/questions.js +4329 -0
- package/dist/function-registry/questions.js.map +1 -0
- package/dist/function-registry/tasks.d.ts +261 -0
- package/dist/function-registry/tasks.js +4166 -0
- package/dist/function-registry/tasks.js.map +1 -0
- package/dist/function-registry/topics.d.ts +304 -0
- package/dist/function-registry/topics.js +4193 -0
- package/dist/function-registry/topics.js.map +1 -0
- package/dist/function-registry/types.d.ts +84 -0
- package/dist/function-registry/types.js +3 -0
- package/dist/function-registry/types.js.map +1 -0
- package/dist/function-registry/worktrees.d.ts +476 -0
- package/dist/function-registry/worktrees.js +4277 -0
- package/dist/function-registry/worktrees.js.map +1 -0
- package/dist/generated/convexSchemas.d.ts +20 -0
- package/dist/generated/convexSchemas.js +160 -0
- package/dist/generated/convexSchemas.js.map +1 -0
- package/dist/generated/schema-manifest.json +5179 -0
- package/dist/generated/tableOwnership.d.ts +127 -0
- package/dist/generated/tableOwnership.js +276 -0
- package/dist/generated/tableOwnership.js.map +1 -0
- package/dist/generated/tier-expectations.json +360 -0
- package/dist/idOf-DR8tkhQS.d.ts +10 -0
- package/dist/index-DoDXl8KS.d.ts +19 -0
- package/dist/index.d.ts +11 -2
- package/dist/index.js +5739 -315
- package/dist/index.js.map +1 -1
- package/dist/schema-helpers/enumValidation.d.ts +17 -0
- package/dist/schema-helpers/enumValidation.js +143 -0
- package/dist/schema-helpers/enumValidation.js.map +1 -0
- package/dist/schema-helpers/spine/nodes/decision.d.ts +19 -0
- package/dist/schema-helpers/spine/nodes/decision.js +81 -0
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.d.ts +9 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +62 -0
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -0
- package/dist/schema-helpers/topicIds.d.ts +17 -0
- package/dist/schema-helpers/topicIds.js +21 -0
- package/dist/schema-helpers/topicIds.js.map +1 -0
- package/dist/schema-helpers/topicLegacyScope.d.ts +19 -0
- package/dist/schema-helpers/topicLegacyScope.js +44 -0
- package/dist/schema-helpers/topicLegacyScope.js.map +1 -0
- package/dist/schema-helpers/validators.d.ts +8 -0
- package/dist/schema-helpers/validators.js +18 -0
- package/dist/schema-helpers/validators.js.map +1 -0
- package/dist/schemas/enums.d.ts +12 -0
- package/dist/schemas/enums.js +11 -0
- package/dist/schemas/enums.js.map +1 -0
- package/dist/schemas/index.d.ts +5 -0
- package/dist/schemas/index.js +4240 -0
- package/dist/schemas/index.js.map +1 -0
- package/dist/schemas/manifest.d.ts +24521 -0
- package/dist/schemas/manifest.js +4242 -0
- package/dist/schemas/manifest.js.map +1 -0
- package/dist/schemas/tables/identity/agent.d.ts +21 -0
- package/dist/schemas/tables/identity/agent.js +41 -0
- package/dist/schemas/tables/identity/agent.js.map +1 -0
- package/dist/schemas/tables/identity/epistemic.d.ts +18 -0
- package/dist/schemas/tables/identity/epistemic.js +38 -0
- package/dist/schemas/tables/identity/epistemic.js.map +1 -0
- package/dist/schemas/tables/identity/model.d.ts +62 -0
- package/dist/schemas/tables/identity/model.js +110 -0
- package/dist/schemas/tables/identity/model.js.map +1 -0
- package/dist/schemas/tables/identity/platform.d.ts +392 -0
- package/dist/schemas/tables/identity/platform.js +475 -0
- package/dist/schemas/tables/identity/platform.js.map +1 -0
- package/dist/schemas/tables/identity/project.d.ts +22 -0
- package/dist/schemas/tables/identity/project.js +48 -0
- package/dist/schemas/tables/identity/project.js.map +1 -0
- package/dist/schemas/tables/identity/user.d.ts +26 -0
- package/dist/schemas/tables/identity/user.js +47 -0
- package/dist/schemas/tables/identity/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +20 -0
- package/dist/schemas/tables/kernel/config.js +39 -0
- package/dist/schemas/tables/kernel/config.js.map +1 -0
- package/dist/schemas/tables/kernel/coordination.d.ts +30 -0
- package/dist/schemas/tables/kernel/coordination.js +57 -0
- package/dist/schemas/tables/kernel/coordination.js.map +1 -0
- package/dist/schemas/tables/kernel/decision.d.ts +246 -0
- package/dist/schemas/tables/kernel/decision.js +371 -0
- package/dist/schemas/tables/kernel/decision.js.map +1 -0
- package/dist/schemas/tables/kernel/embedding.d.ts +18 -0
- package/dist/schemas/tables/kernel/embedding.js +48 -0
- package/dist/schemas/tables/kernel/embedding.js.map +1 -0
- package/dist/schemas/tables/kernel/epistemic.d.ts +315 -0
- package/dist/schemas/tables/kernel/epistemic.js +327 -0
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -0
- package/dist/schemas/tables/kernel/idempotency.d.ts +13 -0
- package/dist/schemas/tables/kernel/idempotency.js +31 -0
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -0
- package/dist/schemas/tables/kernel/infra.d.ts +171 -0
- package/dist/schemas/tables/kernel/infra.js +160 -0
- package/dist/schemas/tables/kernel/infra.js.map +1 -0
- package/dist/schemas/tables/kernel/intelligence.d.ts +293 -0
- package/dist/schemas/tables/kernel/intelligence.js +207 -0
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -0
- package/dist/schemas/tables/kernel/lens.d.ts +192 -0
- package/dist/schemas/tables/kernel/lens.js +122 -0
- package/dist/schemas/tables/kernel/lens.js.map +1 -0
- package/dist/schemas/tables/kernel/ontology.d.ts +89 -0
- package/dist/schemas/tables/kernel/ontology.js +91 -0
- package/dist/schemas/tables/kernel/ontology.js.map +1 -0
- package/dist/schemas/tables/kernel/platform.d.ts +353 -0
- package/dist/schemas/tables/kernel/platform.js +349 -0
- package/dist/schemas/tables/kernel/platform.js.map +1 -0
- package/dist/schemas/tables/kernel/spine.d.ts +206 -0
- package/dist/schemas/tables/kernel/spine.js +243 -0
- package/dist/schemas/tables/kernel/spine.js.map +1 -0
- package/dist/schemas/tables/kernel/task.d.ts +614 -0
- package/dist/schemas/tables/kernel/task.js +189 -0
- package/dist/schemas/tables/kernel/task.js.map +1 -0
- package/dist/schemas/tables/kernel/topic.d.ts +25 -0
- package/dist/schemas/tables/kernel/topic.js +62 -0
- package/dist/schemas/tables/kernel/topic.js.map +1 -0
- package/dist/schemas/tables/kernel/workflow.d.ts +45 -0
- package/dist/schemas/tables/kernel/workflow.js +94 -0
- package/dist/schemas/tables/kernel/workflow.js.map +1 -0
- package/dist/schemas/tables/kernel/worktree.d.ts +823 -0
- package/dist/schemas/tables/kernel/worktree.js +328 -0
- package/dist/schemas/tables/kernel/worktree.js.map +1 -0
- package/dist/schemas/tables/mc/identity.d.ts +134 -0
- package/dist/schemas/tables/mc/identity.js +221 -0
- package/dist/schemas/tables/mc/identity.js.map +1 -0
- package/dist/schemas/tables/mc/methodology.d.ts +46 -0
- package/dist/schemas/tables/mc/methodology.js +69 -0
- package/dist/schemas/tables/mc/methodology.js.map +1 -0
- package/dist/schemas/tables/mc/pack.d.ts +540 -0
- package/dist/schemas/tables/mc/pack.js +294 -0
- package/dist/schemas/tables/mc/pack.js.map +1 -0
- package/dist/schemas/tables/mc/policy.d.ts +57 -0
- package/dist/schemas/tables/mc/policy.js +121 -0
- package/dist/schemas/tables/mc/policy.js.map +1 -0
- package/dist/schemas/tables/mc/registry.d.ts +155 -0
- package/dist/schemas/tables/mc/registry.js +164 -0
- package/dist/schemas/tables/mc/registry.js.map +1 -0
- package/dist/schemas/tables/mc/runtime.d.ts +119 -0
- package/dist/schemas/tables/mc/runtime.js +199 -0
- package/dist/schemas/tables/mc/runtime.js.map +1 -0
- package/dist/schemas/tables/mc/tenant.d.ts +106 -0
- package/dist/schemas/tables/mc/tenant.js +114 -0
- package/dist/schemas/tables/mc/tenant.js.map +1 -0
- package/dist/schemas/tables/mc/workspace.d.ts +28 -0
- package/dist/schemas/tables/mc/workspace.js +52 -0
- package/dist/schemas/tables/mc/workspace.js.map +1 -0
- package/dist/{sdk-tools.contract-BnV0hKLp.d.ts → sdk-tools.contract-C2kQN_Xk.d.ts} +3 -7
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +664 -175
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tool-contracts-WCnuE9DW.d.ts +288 -0
- package/dist/tool-contracts.d.ts +1 -0
- package/dist/{mcp-tools.contract.js → tool-contracts.js} +666 -116
- package/dist/tool-contracts.js.map +1 -0
- package/package.json +119 -2
- package/dist/mcp-tools.contract-D8kXcP6d.d.ts +0 -254
- package/dist/mcp-tools.contract.d.ts +0 -1
- package/dist/mcp-tools.contract.js.map +0 -1
|
@@ -7,7 +7,7 @@ var LENS_PERSPECTIVE_TYPES = [
|
|
|
7
7
|
"taxonomy"
|
|
8
8
|
];
|
|
9
9
|
|
|
10
|
-
// src/
|
|
10
|
+
// src/tool-contracts.ts
|
|
11
11
|
var CREATE_BELIEF = {
|
|
12
12
|
name: "create_belief",
|
|
13
13
|
description: "Commit a new belief (knowledge unit) to the reasoning graph. Like `git commit` \u2014 creates an atomic, traceable knowledge object with a mandatory prior. Creation stores the vacuous opinion `(0, 0, 1, a)`; use modulate_confidence to record the first evidential update.",
|
|
@@ -16,7 +16,10 @@ var CREATE_BELIEF = {
|
|
|
16
16
|
type: "string",
|
|
17
17
|
description: "The belief statement \u2014 what the agent holds to be true"
|
|
18
18
|
},
|
|
19
|
-
topicId: {
|
|
19
|
+
topicId: {
|
|
20
|
+
type: "string",
|
|
21
|
+
description: "Optional topic scope hint for the belief"
|
|
22
|
+
},
|
|
20
23
|
baseRate: {
|
|
21
24
|
type: "number",
|
|
22
25
|
description: "Required prior probability used to seed the vacuous opinion `(0, 0, 1, a)` at creation time."
|
|
@@ -30,7 +33,7 @@ var CREATE_BELIEF = {
|
|
|
30
33
|
description: "Optional extra metadata merged into the node (e.g., { codeAnchors: ['path/to/file.ts'] } for coding intelligence)"
|
|
31
34
|
}
|
|
32
35
|
},
|
|
33
|
-
required: ["canonicalText", "
|
|
36
|
+
required: ["canonicalText", "baseRate"],
|
|
34
37
|
response: {
|
|
35
38
|
description: "The created canonical belief record",
|
|
36
39
|
fields: {
|
|
@@ -302,7 +305,7 @@ var ADD_EVIDENCE = {
|
|
|
302
305
|
description: "Commit evidence to the reasoning graph and attach it to a belief. Like `git add && git commit` \u2014 an atomic write that creates a traceable evidence object. Weight ranges from -1.0 (contradicts) to +1.0 (strongly supports). Evidence is always context-bound: tied to its source, the time it was captured, and the belief it informs.",
|
|
303
306
|
parameters: {
|
|
304
307
|
canonicalText: { type: "string", description: "The evidence statement" },
|
|
305
|
-
topicId: { type: "string", description: "
|
|
308
|
+
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
306
309
|
sourceUrl: { type: "string", description: "URL of the source material" },
|
|
307
310
|
targetNodeId: {
|
|
308
311
|
type: "string",
|
|
@@ -333,7 +336,7 @@ var ADD_EVIDENCE = {
|
|
|
333
336
|
description: "Optional extra metadata merged into the node (e.g., { codeAnchors: ['path/to/file.ts'], failedApproach: true } for coding intelligence)"
|
|
334
337
|
}
|
|
335
338
|
},
|
|
336
|
-
required: ["canonicalText", "
|
|
339
|
+
required: ["canonicalText", "targetNodeId"],
|
|
337
340
|
response: {
|
|
338
341
|
description: "The created evidence node and its edge",
|
|
339
342
|
fields: {
|
|
@@ -363,14 +366,14 @@ var FLAG_CONTRADICTION = {
|
|
|
363
366
|
description: "How serious the contradiction is",
|
|
364
367
|
enum: ["low", "medium", "high", "critical"]
|
|
365
368
|
},
|
|
366
|
-
topicId: { type: "string", description: "
|
|
369
|
+
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
367
370
|
defeatType: {
|
|
368
371
|
type: "string",
|
|
369
372
|
description: "Pollock defeat classification: rebuts (direct contradiction), undercuts (attacks the inferential link), undermines (attacks a premise)",
|
|
370
373
|
enum: ["rebuts", "undercuts", "undermines"]
|
|
371
374
|
}
|
|
372
375
|
},
|
|
373
|
-
required: ["beliefA", "beliefB", "description"
|
|
376
|
+
required: ["beliefA", "beliefB", "description"],
|
|
374
377
|
response: {
|
|
375
378
|
description: "The created contradiction object",
|
|
376
379
|
fields: {
|
|
@@ -389,7 +392,7 @@ var ADD_WORKTREE = {
|
|
|
389
392
|
description: "Check out a branch into an active worktree for investigation. Like `git worktree add <branch>` \u2014 creates independent working state on a thematic branch. Beliefs committed within the worktree can be freely amended (draft code on a feature branch). When investigation is complete, `merge` integrates findings into main.",
|
|
390
393
|
parameters: {
|
|
391
394
|
title: { type: "string", description: "Worktree name/objective" },
|
|
392
|
-
topicId: { type: "string", description: "
|
|
395
|
+
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
393
396
|
branchId: {
|
|
394
397
|
type: "string",
|
|
395
398
|
description: "The branch this worktree investigates"
|
|
@@ -648,44 +651,6 @@ var SEARCH_BELIEFS = {
|
|
|
648
651
|
ontologyPrimitive: "belief",
|
|
649
652
|
tier: "workhorse"
|
|
650
653
|
};
|
|
651
|
-
var SEARCH_RESOURCES = {
|
|
652
|
-
name: "search_resources",
|
|
653
|
-
description: "Search beliefs, evidence, and questions in one cross-resource call. Like `git grep` across the reasoning stack \u2014 returns one ranked payload with grouped hits by resource type.",
|
|
654
|
-
parameters: {
|
|
655
|
-
q: { type: "string", description: "Search query" },
|
|
656
|
-
topicId: { type: "string", description: "Topic scope" },
|
|
657
|
-
types: {
|
|
658
|
-
type: "array",
|
|
659
|
-
description: "Optional resource filters: belief, evidence, question"
|
|
660
|
-
},
|
|
661
|
-
status: {
|
|
662
|
-
type: "string",
|
|
663
|
-
description: "Optional belief/question status filter"
|
|
664
|
-
},
|
|
665
|
-
minConfidence: {
|
|
666
|
-
type: "number",
|
|
667
|
-
description: "Optional minimum belief confidence threshold"
|
|
668
|
-
},
|
|
669
|
-
limit: { type: "number", description: "Maximum results (default: 25)" },
|
|
670
|
-
cursor: { type: "string", description: "Optional pagination cursor" }
|
|
671
|
-
},
|
|
672
|
-
required: ["q", "topicId"],
|
|
673
|
-
response: {
|
|
674
|
-
description: "Canonical cross-resource search payload",
|
|
675
|
-
fields: {
|
|
676
|
-
q: "string \u2014 echoed query text",
|
|
677
|
-
topicId: "string \u2014 canonical topic scope",
|
|
678
|
-
types: "array \u2014 the resource types included in the search",
|
|
679
|
-
results: "array \u2014 ranked mixed resource hits",
|
|
680
|
-
beliefs: "array \u2014 grouped belief hits",
|
|
681
|
-
evidence: "array \u2014 grouped evidence hits",
|
|
682
|
-
questions: "array \u2014 grouped question hits"
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
ownerModule: "graph-search",
|
|
686
|
-
ontologyPrimitive: "graph",
|
|
687
|
-
tier: "workhorse"
|
|
688
|
-
};
|
|
689
654
|
var FIND_CONTRADICTIONS = {
|
|
690
655
|
name: "find_contradictions",
|
|
691
656
|
description: "Find contradictions in the reasoning graph \u2014 beliefs that are in tension with each other. Like a merge conflict in `git` \u2014 surfaces incompatible states that require explicit resolution. Contradictions are first-class objects that may remain permanently unresolved. They can block judgments, trigger forks, or collapse confidence. Filter by project, status (unresolved, resolved, accepted), and severity.",
|
|
@@ -772,7 +737,7 @@ var RECORD_JUDGMENT = {
|
|
|
772
737
|
description: "Confidence in the judgment (0-1)"
|
|
773
738
|
}
|
|
774
739
|
},
|
|
775
|
-
required: ["title", "rationale"
|
|
740
|
+
required: ["title", "rationale"],
|
|
776
741
|
response: {
|
|
777
742
|
description: "The recorded judgment",
|
|
778
743
|
fields: {
|
|
@@ -837,7 +802,7 @@ var CREATE_LENS = {
|
|
|
837
802
|
status: "string \u2014 'active'"
|
|
838
803
|
}
|
|
839
804
|
},
|
|
840
|
-
ownerModule: "
|
|
805
|
+
ownerModule: "reasoning-kernel",
|
|
841
806
|
ontologyPrimitive: "lens",
|
|
842
807
|
tier: "showcase"
|
|
843
808
|
};
|
|
@@ -871,7 +836,7 @@ var LIST_LENSES = {
|
|
|
871
836
|
lenses: "array \u2014 each item includes lensId, name, workspaceId, perspectiveType, status, and optional isAppliedToTopic"
|
|
872
837
|
}
|
|
873
838
|
},
|
|
874
|
-
ownerModule: "
|
|
839
|
+
ownerModule: "reasoning-kernel",
|
|
875
840
|
ontologyPrimitive: "lens",
|
|
876
841
|
tier: "workhorse"
|
|
877
842
|
};
|
|
@@ -892,7 +857,7 @@ var APPLY_LENS_TO_TOPIC = {
|
|
|
892
857
|
status: "string \u2014 'active'"
|
|
893
858
|
}
|
|
894
859
|
},
|
|
895
|
-
ownerModule: "
|
|
860
|
+
ownerModule: "reasoning-kernel",
|
|
896
861
|
ontologyPrimitive: "lens",
|
|
897
862
|
tier: "workhorse"
|
|
898
863
|
};
|
|
@@ -913,7 +878,7 @@ var REMOVE_LENS_FROM_TOPIC = {
|
|
|
913
878
|
status: "string \u2014 'removed'"
|
|
914
879
|
}
|
|
915
880
|
},
|
|
916
|
-
ownerModule: "
|
|
881
|
+
ownerModule: "reasoning-kernel",
|
|
917
882
|
ontologyPrimitive: "lens",
|
|
918
883
|
tier: "workhorse"
|
|
919
884
|
};
|
|
@@ -1068,50 +1033,6 @@ var GET_FALSIFICATION_QUESTIONS = {
|
|
|
1068
1033
|
ontologyPrimitive: "question",
|
|
1069
1034
|
tier: "showcase"
|
|
1070
1035
|
};
|
|
1071
|
-
var SEARCH_SOURCES = {
|
|
1072
|
-
name: "search_sources",
|
|
1073
|
-
description: "Search and ingest external sources into the knowledge graph. Like `git fetch` \u2014 pulls information from external sources (web, documents, APIs) and stages it for evidence creation. Does not commit \u2014 you decide what becomes evidence.",
|
|
1074
|
-
parameters: {
|
|
1075
|
-
query: { type: "string", description: "Search query" },
|
|
1076
|
-
sources: {
|
|
1077
|
-
type: "array",
|
|
1078
|
-
description: "Source types to search: web, news, academic"
|
|
1079
|
-
}
|
|
1080
|
-
},
|
|
1081
|
-
required: ["query"],
|
|
1082
|
-
response: {
|
|
1083
|
-
description: "Results with source metadata, relevance scores, and suggested evidence",
|
|
1084
|
-
fields: {
|
|
1085
|
-
results: "array \u2014 { title, url, snippet, relevanceScore, suggestedEvidence }"
|
|
1086
|
-
}
|
|
1087
|
-
},
|
|
1088
|
-
ownerModule: "research-engine",
|
|
1089
|
-
ontologyPrimitive: "source",
|
|
1090
|
-
tier: "showcase"
|
|
1091
|
-
};
|
|
1092
|
-
var EXECUTE_DEEP_RESEARCH = {
|
|
1093
|
-
name: "execute_deep_research",
|
|
1094
|
-
description: "Execute multi-source deep research on a topic. Like `git submodule update --recursive` \u2014 launches a comprehensive research agent that searches multiple sources, synthesizes findings, and produces a structured report. Auto-links results to relevant questions and beliefs.",
|
|
1095
|
-
parameters: {
|
|
1096
|
-
query: { type: "string", description: "Research question or topic" },
|
|
1097
|
-
topicId: { type: "string", description: "Topic scope" },
|
|
1098
|
-
depth: {
|
|
1099
|
-
type: "string",
|
|
1100
|
-
description: "Research depth: quick, standard, deep",
|
|
1101
|
-
enum: ["quick", "standard", "deep"]
|
|
1102
|
-
}
|
|
1103
|
-
},
|
|
1104
|
-
required: ["query", "topicId"],
|
|
1105
|
-
response: {
|
|
1106
|
-
description: "Report with findings, sources, auto-linked evidence and questions",
|
|
1107
|
-
fields: {
|
|
1108
|
-
report: "object \u2014 { summary, findings, sources, linkedEvidence, linkedQuestions }"
|
|
1109
|
-
}
|
|
1110
|
-
},
|
|
1111
|
-
ownerModule: "research-engine",
|
|
1112
|
-
ontologyPrimitive: "source",
|
|
1113
|
-
tier: "showcase"
|
|
1114
|
-
};
|
|
1115
1036
|
var SEARCH_EVIDENCE = {
|
|
1116
1037
|
name: "search_evidence",
|
|
1117
1038
|
description: "Search for evidence across the reasoning graph. Like `git grep` \u2014 returns the evidence records that best match a textual query. Results share the same canonical semantics as the HTTP and SDK evidence search surface.",
|
|
@@ -1164,7 +1085,7 @@ var CREATE_EVIDENCE = {
|
|
|
1164
1085
|
},
|
|
1165
1086
|
kind: { type: "string", description: "Optional evidence kind" }
|
|
1166
1087
|
},
|
|
1167
|
-
required: ["
|
|
1088
|
+
required: ["text"],
|
|
1168
1089
|
response: {
|
|
1169
1090
|
description: "The created canonical evidence record",
|
|
1170
1091
|
fields: {
|
|
@@ -1285,7 +1206,7 @@ var CREATE_QUESTION = {
|
|
|
1285
1206
|
description: "Commit an investigation question to the reasoning graph. Like `git issue` \u2014 creates a traceable question that drives research and evidence collection. Questions test beliefs and guide worktree investigation.",
|
|
1286
1207
|
parameters: {
|
|
1287
1208
|
text: { type: "string", description: "The question text" },
|
|
1288
|
-
topicId: { type: "string", description: "
|
|
1209
|
+
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
1289
1210
|
priority: {
|
|
1290
1211
|
type: "string",
|
|
1291
1212
|
description: "Priority: urgent, high, medium, low",
|
|
@@ -1300,7 +1221,7 @@ var CREATE_QUESTION = {
|
|
|
1300
1221
|
description: "Optional metadata merged into the question record"
|
|
1301
1222
|
}
|
|
1302
1223
|
},
|
|
1303
|
-
required: ["text"
|
|
1224
|
+
required: ["text"],
|
|
1304
1225
|
response: {
|
|
1305
1226
|
description: "The created canonical question record",
|
|
1306
1227
|
fields: {
|
|
@@ -2010,7 +1931,7 @@ var INGEST_OBSERVATION = {
|
|
|
2010
1931
|
parameters: {
|
|
2011
1932
|
topicId: {
|
|
2012
1933
|
type: "string",
|
|
2013
|
-
description: "
|
|
1934
|
+
description: "Optional topic scope hint for the observation"
|
|
2014
1935
|
},
|
|
2015
1936
|
observationType: {
|
|
2016
1937
|
type: "string",
|
|
@@ -2039,7 +1960,7 @@ var INGEST_OBSERVATION = {
|
|
|
2039
1960
|
description: "Optional structured metadata payload"
|
|
2040
1961
|
}
|
|
2041
1962
|
},
|
|
2042
|
-
required: ["
|
|
1963
|
+
required: ["observationType", "summary"],
|
|
2043
1964
|
response: {
|
|
2044
1965
|
description: "Recorded observation entry",
|
|
2045
1966
|
fields: {
|
|
@@ -2058,7 +1979,7 @@ var GET_OBSERVATION_CONTEXT = {
|
|
|
2058
1979
|
name: "get_observation_context",
|
|
2059
1980
|
description: "Retrieve observer-ready context for a topic, including recent deltas and semantic matches. Like `git log --grep` \u2014 shows recent context and filtered matches across observation history. This powers prompt context injection without mutating graph state.",
|
|
2060
1981
|
parameters: {
|
|
2061
|
-
topicId: { type: "string", description: "
|
|
1982
|
+
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
2062
1983
|
query: {
|
|
2063
1984
|
type: "string",
|
|
2064
1985
|
description: "Optional semantic query over observation history"
|
|
@@ -2101,7 +2022,7 @@ var CREATE_TASK = {
|
|
|
2101
2022
|
},
|
|
2102
2023
|
linkedWorktreeId: { type: "string", description: "Worktree scope" }
|
|
2103
2024
|
},
|
|
2104
|
-
required: ["title"
|
|
2025
|
+
required: ["title"],
|
|
2105
2026
|
response: {
|
|
2106
2027
|
description: "The created task",
|
|
2107
2028
|
fields: {
|
|
@@ -2236,7 +2157,7 @@ var CREATE_TOPIC = {
|
|
|
2236
2157
|
depth: "number \u2014 nesting depth"
|
|
2237
2158
|
}
|
|
2238
2159
|
},
|
|
2239
|
-
ownerModule: "
|
|
2160
|
+
ownerModule: "reasoning-kernel",
|
|
2240
2161
|
ontologyPrimitive: "graph",
|
|
2241
2162
|
tier: "showcase"
|
|
2242
2163
|
};
|
|
@@ -2265,7 +2186,7 @@ var LIST_TOPICS = {
|
|
|
2265
2186
|
topics: "array \u2014 { id, name, type, depth, status, parentTopicId }"
|
|
2266
2187
|
}
|
|
2267
2188
|
},
|
|
2268
|
-
ownerModule: "
|
|
2189
|
+
ownerModule: "reasoning-kernel",
|
|
2269
2190
|
ontologyPrimitive: "graph",
|
|
2270
2191
|
tier: "workhorse"
|
|
2271
2192
|
};
|
|
@@ -2289,7 +2210,7 @@ var GET_TOPIC = {
|
|
|
2289
2210
|
topic: "object \u2014 { id, globalId, name, type, depth, status, parentTopicId, description }"
|
|
2290
2211
|
}
|
|
2291
2212
|
},
|
|
2292
|
-
ownerModule: "
|
|
2213
|
+
ownerModule: "reasoning-kernel",
|
|
2293
2214
|
ontologyPrimitive: "graph",
|
|
2294
2215
|
tier: "workhorse"
|
|
2295
2216
|
};
|
|
@@ -2340,7 +2261,7 @@ var UPDATE_TOPIC = {
|
|
|
2340
2261
|
visibility: "string \u2014 topic visibility"
|
|
2341
2262
|
}
|
|
2342
2263
|
},
|
|
2343
|
-
ownerModule: "
|
|
2264
|
+
ownerModule: "reasoning-kernel",
|
|
2344
2265
|
ontologyPrimitive: "graph",
|
|
2345
2266
|
tier: "workhorse"
|
|
2346
2267
|
};
|
|
@@ -2359,7 +2280,7 @@ var GET_TOPIC_TREE = {
|
|
|
2359
2280
|
description: "Tree of topics with nesting",
|
|
2360
2281
|
fields: { tree: "array \u2014 topics in BFS order with depth and path" }
|
|
2361
2282
|
},
|
|
2362
|
-
ownerModule: "
|
|
2283
|
+
ownerModule: "reasoning-kernel",
|
|
2363
2284
|
ontologyPrimitive: "graph",
|
|
2364
2285
|
tier: "workhorse"
|
|
2365
2286
|
};
|
|
@@ -2675,7 +2596,7 @@ var APPLY_ONTOLOGY = {
|
|
|
2675
2596
|
topicId: "string \u2014 canonical topic ID"
|
|
2676
2597
|
}
|
|
2677
2598
|
},
|
|
2678
|
-
ownerModule: "
|
|
2599
|
+
ownerModule: "reasoning-kernel",
|
|
2679
2600
|
ontologyPrimitive: "ontology",
|
|
2680
2601
|
tier: "showcase"
|
|
2681
2602
|
};
|
|
@@ -2713,7 +2634,7 @@ var MATCH_ENTITY_TYPE = {
|
|
|
2713
2634
|
topicId: "string|null \u2014 topic scope used for ontology resolution"
|
|
2714
2635
|
}
|
|
2715
2636
|
},
|
|
2716
|
-
ownerModule: "
|
|
2637
|
+
ownerModule: "reasoning-kernel",
|
|
2717
2638
|
ontologyPrimitive: "ontology",
|
|
2718
2639
|
tier: "showcase"
|
|
2719
2640
|
};
|
|
@@ -2882,6 +2803,619 @@ var RESOLVE_EFFECTIVE_ONTOLOGY = {
|
|
|
2882
2803
|
ontologyPrimitive: "ontology",
|
|
2883
2804
|
tier: "workhorse"
|
|
2884
2805
|
};
|
|
2806
|
+
var RECORD_SCOPE_LEARNING = {
|
|
2807
|
+
name: "record_scope_learning",
|
|
2808
|
+
description: "Write a structured learning entry into the epistemic spine. Like `git commit` for scope learnings \u2014 records evidence, can attach to a belief, and can open a follow-up belief/question in one atomic workflow.",
|
|
2809
|
+
parameters: {
|
|
2810
|
+
topicId: { type: "string", description: "Topic scope ID" },
|
|
2811
|
+
summary: { type: "string", description: "Atomic learning statement" },
|
|
2812
|
+
title: {
|
|
2813
|
+
type: "string",
|
|
2814
|
+
description: "Optional evidence title, such as a commit, doc, or issue."
|
|
2815
|
+
},
|
|
2816
|
+
body: {
|
|
2817
|
+
type: "string",
|
|
2818
|
+
description: "Optional rich evidence body. If omitted, body is synthesized from summary and touched paths."
|
|
2819
|
+
},
|
|
2820
|
+
contentType: {
|
|
2821
|
+
type: "string",
|
|
2822
|
+
description: "Optional evidence body format, such as markdown or text."
|
|
2823
|
+
},
|
|
2824
|
+
sourceKind: {
|
|
2825
|
+
type: "string",
|
|
2826
|
+
description: "Source type for the learning event",
|
|
2827
|
+
enum: ["commit", "merge", "doc", "issue", "manual"]
|
|
2828
|
+
},
|
|
2829
|
+
sourceRef: {
|
|
2830
|
+
type: "string",
|
|
2831
|
+
description: "Optional source reference, such as SHA, PR number, or URL slug."
|
|
2832
|
+
},
|
|
2833
|
+
sourceUrl: { type: "string", description: "Optional canonical source URL" },
|
|
2834
|
+
touchedPaths: {
|
|
2835
|
+
type: "array",
|
|
2836
|
+
description: "Optional touched file paths for retrieval hints"
|
|
2837
|
+
},
|
|
2838
|
+
tags: { type: "array", description: "Optional tags" },
|
|
2839
|
+
linkedBeliefNodeId: {
|
|
2840
|
+
type: "string",
|
|
2841
|
+
description: "Optional belief to attach evidence to"
|
|
2842
|
+
},
|
|
2843
|
+
evidenceRelation: {
|
|
2844
|
+
type: "string",
|
|
2845
|
+
description: "Relation to linked belief",
|
|
2846
|
+
enum: ["supports", "contradicts"]
|
|
2847
|
+
},
|
|
2848
|
+
confidence: { type: "number", description: "Optional confidence in [0,1]" },
|
|
2849
|
+
createQuestionText: {
|
|
2850
|
+
type: "string",
|
|
2851
|
+
description: "Optional follow-up question text"
|
|
2852
|
+
},
|
|
2853
|
+
createBeliefText: {
|
|
2854
|
+
type: "string",
|
|
2855
|
+
description: "Optional new belief text"
|
|
2856
|
+
},
|
|
2857
|
+
beliefType: {
|
|
2858
|
+
type: "string",
|
|
2859
|
+
description: "Optional belief type for createBeliefText"
|
|
2860
|
+
}
|
|
2861
|
+
},
|
|
2862
|
+
required: ["summary"],
|
|
2863
|
+
response: {
|
|
2864
|
+
description: "Created learning artifacts",
|
|
2865
|
+
fields: {
|
|
2866
|
+
topicId: "string \u2014 resolved topic ID",
|
|
2867
|
+
evidenceNodeId: "string",
|
|
2868
|
+
linkedBeliefNodeId: "string | null",
|
|
2869
|
+
createdQuestionId: "string | null",
|
|
2870
|
+
createdBeliefId: "string | null",
|
|
2871
|
+
sourceUrl: "string",
|
|
2872
|
+
createdAt: "number"
|
|
2873
|
+
}
|
|
2874
|
+
},
|
|
2875
|
+
ownerModule: "reasoning-kernel",
|
|
2876
|
+
ontologyPrimitive: "evidence",
|
|
2877
|
+
tier: "workhorse",
|
|
2878
|
+
internal: true
|
|
2879
|
+
};
|
|
2880
|
+
var PIPELINE_SNAPSHOT = {
|
|
2881
|
+
name: "pipeline_snapshot",
|
|
2882
|
+
description: "Summarize a topic's worktree pipeline in band-and-lane form. Like `git status --short` for Lucern execution \u2014 returns the hinge worktree, next planned wave, blockers, critical path, superseded work, and graph hygiene debt.",
|
|
2883
|
+
parameters: {
|
|
2884
|
+
topicId: { type: "string", description: "Topic scope ID" }
|
|
2885
|
+
},
|
|
2886
|
+
required: ["topicId"],
|
|
2887
|
+
response: {
|
|
2888
|
+
description: "Human-oriented pipeline summary for a single topic scope",
|
|
2889
|
+
fields: {
|
|
2890
|
+
topicId: "string",
|
|
2891
|
+
topicName: "string",
|
|
2892
|
+
currentBand: "number | null",
|
|
2893
|
+
nextBand: "number | null",
|
|
2894
|
+
activeWorktrees: "array \u2014 current hinge worktree(s)",
|
|
2895
|
+
nextWave: "array \u2014 worktrees in the next planned band",
|
|
2896
|
+
readyNow: "array \u2014 planning worktrees with dependencies completed",
|
|
2897
|
+
blockedBy: "array \u2014 grouped blockers",
|
|
2898
|
+
criticalPath: "array \u2014 ordered incomplete worktree chain",
|
|
2899
|
+
bands: "array \u2014 incomplete worktrees grouped by executionBand",
|
|
2900
|
+
superseded: "array \u2014 worktrees marked superseded or not for activation",
|
|
2901
|
+
graphHygiene: "object \u2014 untargeted and taskless worktree debt",
|
|
2902
|
+
riskQuestions: "array \u2014 critical/high open questions",
|
|
2903
|
+
narrative: "array \u2014 concise natural-language summary lines"
|
|
2904
|
+
}
|
|
2905
|
+
},
|
|
2906
|
+
ownerModule: "reasoning-kernel",
|
|
2907
|
+
ontologyPrimitive: "graph",
|
|
2908
|
+
tier: "workhorse",
|
|
2909
|
+
internal: true
|
|
2910
|
+
};
|
|
2911
|
+
var DISCOVER = {
|
|
2912
|
+
name: "discover",
|
|
2913
|
+
description: "Navigate the topic tree to find where knowledge lives. Like `git log --all --grep` \u2014 searches across the graph using bottom-up content matching plus top-down structural scoring.",
|
|
2914
|
+
parameters: {
|
|
2915
|
+
query: {
|
|
2916
|
+
type: "string",
|
|
2917
|
+
description: "What to look for across the topic tree"
|
|
2918
|
+
},
|
|
2919
|
+
topK: {
|
|
2920
|
+
type: "number",
|
|
2921
|
+
description: "How many matching topics to return (default: 3, max: 10)"
|
|
2922
|
+
},
|
|
2923
|
+
includeNeighborhood: {
|
|
2924
|
+
type: "boolean",
|
|
2925
|
+
description: "Whether to include beliefs/questions/evidence for matched topics"
|
|
2926
|
+
}
|
|
2927
|
+
},
|
|
2928
|
+
required: ["query"],
|
|
2929
|
+
response: {
|
|
2930
|
+
description: "Ranked topic matches with optional neighborhood content",
|
|
2931
|
+
fields: {
|
|
2932
|
+
query: "string \u2014 original query",
|
|
2933
|
+
matchedTopics: "array \u2014 ranked topics with scores and paths",
|
|
2934
|
+
neighborhoods: "array \u2014 beliefs, questions, evidence for each match",
|
|
2935
|
+
totalTopicsScored: "number",
|
|
2936
|
+
topicTreeSize: "number"
|
|
2937
|
+
}
|
|
2938
|
+
},
|
|
2939
|
+
ownerModule: "reasoning-kernel",
|
|
2940
|
+
ontologyPrimitive: "graph",
|
|
2941
|
+
tier: "showcase",
|
|
2942
|
+
deprecated: "Deprecated: use lucern.context.compile() with topicId"
|
|
2943
|
+
};
|
|
2944
|
+
var ANALYZE_TOPIC_DENSITY = {
|
|
2945
|
+
name: "analyze_topic_density",
|
|
2946
|
+
description: "Analyze topic belief density and identify natural conceptual clusters. Like `git diff --stat` for topic organization \u2014 detects when a topic has accumulated too many beliefs and suggests subtopic decomposition.",
|
|
2947
|
+
parameters: {
|
|
2948
|
+
topicId: { type: "string", description: "Topic ID to analyze" },
|
|
2949
|
+
threshold: {
|
|
2950
|
+
type: "number",
|
|
2951
|
+
description: "Belief count threshold for density warning"
|
|
2952
|
+
},
|
|
2953
|
+
minModularity: {
|
|
2954
|
+
type: "number",
|
|
2955
|
+
description: "Minimum modularity score for suggesting decomposition"
|
|
2956
|
+
}
|
|
2957
|
+
},
|
|
2958
|
+
required: ["topicId"],
|
|
2959
|
+
response: {
|
|
2960
|
+
description: "Density analysis with cluster suggestions",
|
|
2961
|
+
fields: {
|
|
2962
|
+
topicId: "string",
|
|
2963
|
+
topicName: "string",
|
|
2964
|
+
beliefCount: "number",
|
|
2965
|
+
edgeCount: "number",
|
|
2966
|
+
threshold: "number",
|
|
2967
|
+
isDense: "boolean",
|
|
2968
|
+
modularity: "number",
|
|
2969
|
+
clusterCount: "number",
|
|
2970
|
+
clusters: "array \u2014 suggested belief clusters",
|
|
2971
|
+
recommendation: "string"
|
|
2972
|
+
}
|
|
2973
|
+
},
|
|
2974
|
+
ownerModule: "reasoning-kernel",
|
|
2975
|
+
ontologyPrimitive: "graph",
|
|
2976
|
+
tier: "showcase"
|
|
2977
|
+
};
|
|
2978
|
+
var APPLY_AUTO_BRANCHING = {
|
|
2979
|
+
name: "apply_auto_branching",
|
|
2980
|
+
description: "Execute topic decomposition by creating subtopics and reassigning beliefs. Like `git subtree split` \u2014 splits a dense topic into focused subtopics while preserving belief identity and edges.",
|
|
2981
|
+
parameters: {
|
|
2982
|
+
topicId: { type: "string", description: "Parent topic ID to decompose" },
|
|
2983
|
+
clusters: {
|
|
2984
|
+
type: "array",
|
|
2985
|
+
description: "Cluster definitions from analyze_topic_density, each with name and beliefIds"
|
|
2986
|
+
},
|
|
2987
|
+
dryRun: {
|
|
2988
|
+
type: "boolean",
|
|
2989
|
+
description: "Preview changes without applying them"
|
|
2990
|
+
}
|
|
2991
|
+
},
|
|
2992
|
+
required: ["topicId", "clusters"],
|
|
2993
|
+
response: {
|
|
2994
|
+
description: "Results of the auto-branching operation",
|
|
2995
|
+
fields: {
|
|
2996
|
+
success: "boolean",
|
|
2997
|
+
parentTopicId: "string",
|
|
2998
|
+
createdSubtopics: "array",
|
|
2999
|
+
totalReassigned: "number",
|
|
3000
|
+
totalSkipped: "number",
|
|
3001
|
+
dryRun: "boolean"
|
|
3002
|
+
}
|
|
3003
|
+
},
|
|
3004
|
+
ownerModule: "reasoning-kernel",
|
|
3005
|
+
ontologyPrimitive: "graph",
|
|
3006
|
+
tier: "showcase"
|
|
3007
|
+
};
|
|
3008
|
+
var SEED_BELIEF_LATTICE = {
|
|
3009
|
+
name: "seed_belief_lattice",
|
|
3010
|
+
description: "Seed belief lattice coverage for a topic based on its resolved ontology. Like `git init` for ontology coverage \u2014 creates or previews seed beliefs for entity types that need a baseline anchor.",
|
|
3011
|
+
parameters: {
|
|
3012
|
+
topicId: {
|
|
3013
|
+
type: "string",
|
|
3014
|
+
description: "Topic scope ID. Lattice seeding must target a child topic."
|
|
3015
|
+
},
|
|
3016
|
+
dryRun: {
|
|
3017
|
+
type: "boolean",
|
|
3018
|
+
description: "Preview seeds without creating them"
|
|
3019
|
+
}
|
|
3020
|
+
},
|
|
3021
|
+
required: [],
|
|
3022
|
+
response: {
|
|
3023
|
+
description: "Lattice seed results with per-entity-type status",
|
|
3024
|
+
fields: {
|
|
3025
|
+
topicId: "string",
|
|
3026
|
+
ontologyResolved: "boolean",
|
|
3027
|
+
ontologyKey: "string | null",
|
|
3028
|
+
ontologyVersion: "string | null",
|
|
3029
|
+
entityTypeCount: "number",
|
|
3030
|
+
seeds: "array \u2014 per-entity-type seed status",
|
|
3031
|
+
summary: "object \u2014 created/existing/scored/total counts",
|
|
3032
|
+
dryRun: "boolean"
|
|
3033
|
+
}
|
|
3034
|
+
},
|
|
3035
|
+
ownerModule: "reasoning-kernel",
|
|
3036
|
+
ontologyPrimitive: "belief",
|
|
3037
|
+
tier: "workhorse",
|
|
3038
|
+
internal: true
|
|
3039
|
+
};
|
|
3040
|
+
var GET_LATTICE_COVERAGE = {
|
|
3041
|
+
name: "get_lattice_coverage",
|
|
3042
|
+
description: "Report belief lattice coverage for a topic. Like `git fsck` for ontology coverage \u2014 identifies anchored, hollow, and missing entity-type belief coverage.",
|
|
3043
|
+
parameters: {
|
|
3044
|
+
topicId: {
|
|
3045
|
+
type: "string",
|
|
3046
|
+
description: "Topic scope ID to check lattice coverage for"
|
|
3047
|
+
}
|
|
3048
|
+
},
|
|
3049
|
+
required: [],
|
|
3050
|
+
response: {
|
|
3051
|
+
description: "Per-entity-type coverage with overall score",
|
|
3052
|
+
fields: {
|
|
3053
|
+
topicId: "string",
|
|
3054
|
+
ontologyKey: "string | null",
|
|
3055
|
+
ontologyVersion: "string | null",
|
|
3056
|
+
entityTypes: "array \u2014 per-entity-type coverage rows",
|
|
3057
|
+
summary: "object \u2014 total/anchored/hollow/missing/coverageScore"
|
|
3058
|
+
}
|
|
3059
|
+
},
|
|
3060
|
+
ownerModule: "reasoning-kernel",
|
|
3061
|
+
ontologyPrimitive: "belief",
|
|
3062
|
+
tier: "workhorse",
|
|
3063
|
+
internal: true
|
|
3064
|
+
};
|
|
3065
|
+
var DISCOVER_ENTITY_CONNECTIONS = {
|
|
3066
|
+
name: "discover_entity_connections",
|
|
3067
|
+
description: "Find existing entities that should be connected to a belief/question/evidence node. Like `git log --diff-filter=M` for missing entity connections \u2014 scans entities in scope and suggests bridge edge types.",
|
|
3068
|
+
parameters: {
|
|
3069
|
+
nodeId: {
|
|
3070
|
+
type: "string",
|
|
3071
|
+
description: "Epistemic node ID to find entity connections for"
|
|
3072
|
+
},
|
|
3073
|
+
topicId: {
|
|
3074
|
+
type: "string",
|
|
3075
|
+
description: "Optional topic scope override"
|
|
3076
|
+
},
|
|
3077
|
+
minScore: {
|
|
3078
|
+
type: "number",
|
|
3079
|
+
description: "Minimum match score threshold"
|
|
3080
|
+
},
|
|
3081
|
+
limit: {
|
|
3082
|
+
type: "number",
|
|
3083
|
+
description: "Maximum candidates to return"
|
|
3084
|
+
}
|
|
3085
|
+
},
|
|
3086
|
+
required: ["nodeId"],
|
|
3087
|
+
response: {
|
|
3088
|
+
description: "Ranked entity connection candidates",
|
|
3089
|
+
fields: {
|
|
3090
|
+
nodeId: "string",
|
|
3091
|
+
candidateCount: "number",
|
|
3092
|
+
candidates: "array \u2014 suggested entity bridge candidates"
|
|
3093
|
+
}
|
|
3094
|
+
},
|
|
3095
|
+
ownerModule: "reasoning-kernel",
|
|
3096
|
+
ontologyPrimitive: "ontology",
|
|
3097
|
+
tier: "workhorse"
|
|
3098
|
+
};
|
|
3099
|
+
var TRIGGER_BELIEF_REVIEW = {
|
|
3100
|
+
name: "trigger_belief_review",
|
|
3101
|
+
description: "Flag beliefs for review after an entity changes. Like `git bisect` for stale beliefs \u2014 traverses bridge edges from the changed entity and creates review questions for stale connected beliefs.",
|
|
3102
|
+
parameters: {
|
|
3103
|
+
entityNodeId: {
|
|
3104
|
+
type: "string",
|
|
3105
|
+
description: "The entity node that changed"
|
|
3106
|
+
},
|
|
3107
|
+
changeDescription: {
|
|
3108
|
+
type: "string",
|
|
3109
|
+
description: "What changed about the entity"
|
|
3110
|
+
},
|
|
3111
|
+
maxQuestions: {
|
|
3112
|
+
type: "number",
|
|
3113
|
+
description: "Maximum review questions to create"
|
|
3114
|
+
}
|
|
3115
|
+
},
|
|
3116
|
+
required: ["entityNodeId"],
|
|
3117
|
+
response: {
|
|
3118
|
+
description: "Affected beliefs and created review questions",
|
|
3119
|
+
fields: {
|
|
3120
|
+
entityNodeId: "string",
|
|
3121
|
+
entityTitle: "string",
|
|
3122
|
+
entityType: "string",
|
|
3123
|
+
changeDescription: "string",
|
|
3124
|
+
affectedBeliefCount: "number",
|
|
3125
|
+
questionsCreated: "number",
|
|
3126
|
+
reviewedBeliefs: "array",
|
|
3127
|
+
questions: "array"
|
|
3128
|
+
}
|
|
3129
|
+
},
|
|
3130
|
+
ownerModule: "reasoning-kernel",
|
|
3131
|
+
ontologyPrimitive: "ontology",
|
|
3132
|
+
tier: "workhorse"
|
|
3133
|
+
};
|
|
3134
|
+
var EVALUATE_CONTRACT = {
|
|
3135
|
+
name: "evaluate_contract",
|
|
3136
|
+
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
|
+
parameters: {
|
|
3138
|
+
contractId: { type: "string", description: "Which contract to evaluate" },
|
|
3139
|
+
trigger: {
|
|
3140
|
+
type: "string",
|
|
3141
|
+
description: "What caused this evaluation"
|
|
3142
|
+
}
|
|
3143
|
+
},
|
|
3144
|
+
required: ["contractId"],
|
|
3145
|
+
response: {
|
|
3146
|
+
description: "The most recent contract evaluation result",
|
|
3147
|
+
fields: {
|
|
3148
|
+
evaluationId: "string",
|
|
3149
|
+
result: "string",
|
|
3150
|
+
status: "string",
|
|
3151
|
+
confidenceBefore: "number",
|
|
3152
|
+
confidenceAfter: "number",
|
|
3153
|
+
rationale: "string"
|
|
3154
|
+
}
|
|
3155
|
+
},
|
|
3156
|
+
ownerModule: "graph-primitives",
|
|
3157
|
+
ontologyPrimitive: "belief",
|
|
3158
|
+
tier: "workhorse"
|
|
3159
|
+
};
|
|
3160
|
+
var GET_CONTRACT_STATUS = {
|
|
3161
|
+
name: "get_contract_status",
|
|
3162
|
+
description: "Inspect epistemic contracts and their latest evaluations. Like `git status` for verification bindings \u2014 returns the contract rows plus the freshest recorded evaluation for each one.",
|
|
3163
|
+
parameters: {
|
|
3164
|
+
beliefNodeId: {
|
|
3165
|
+
type: "string",
|
|
3166
|
+
description: "Return all contracts attached to a specific belief"
|
|
3167
|
+
},
|
|
3168
|
+
contractId: {
|
|
3169
|
+
type: "string",
|
|
3170
|
+
description: "Return one specific contract by contractId"
|
|
3171
|
+
},
|
|
3172
|
+
status: {
|
|
3173
|
+
type: "string",
|
|
3174
|
+
description: "Optional status filter applied after lookup",
|
|
3175
|
+
enum: ["active", "satisfied", "violated", "expired", "suspended", "archived"]
|
|
3176
|
+
}
|
|
3177
|
+
},
|
|
3178
|
+
required: [],
|
|
3179
|
+
response: {
|
|
3180
|
+
description: "Matching contract rows with latest evaluation context",
|
|
3181
|
+
fields: {
|
|
3182
|
+
contracts: "array \u2014 matching contracts with latestEvaluation attached",
|
|
3183
|
+
count: "number"
|
|
3184
|
+
}
|
|
3185
|
+
},
|
|
3186
|
+
ownerModule: "graph-primitives",
|
|
3187
|
+
ontologyPrimitive: "belief",
|
|
3188
|
+
tier: "workhorse"
|
|
3189
|
+
};
|
|
3190
|
+
var REGISTER_SESSION = {
|
|
3191
|
+
name: "register_session",
|
|
3192
|
+
description: "Announce this agent session's presence to other parallel sessions. Like `git init` for coordination \u2014 creates a session record so other agents can discover you.",
|
|
3193
|
+
parameters: {
|
|
3194
|
+
sessionName: { type: "string", description: "Human-readable session label" },
|
|
3195
|
+
agentType: { type: "string", description: "Agent type" },
|
|
3196
|
+
topicId: { type: "string", description: "Current Lucern topic scope ID" },
|
|
3197
|
+
worktreeId: { type: "string", description: "Active Lucern worktree ID" },
|
|
3198
|
+
gitBranch: { type: "string", description: "Current git branch name" }
|
|
3199
|
+
},
|
|
3200
|
+
required: [],
|
|
3201
|
+
response: {
|
|
3202
|
+
description: "Session registration result",
|
|
3203
|
+
fields: {
|
|
3204
|
+
sessionId: "string",
|
|
3205
|
+
status: "string \u2014 active",
|
|
3206
|
+
isNew: "boolean"
|
|
3207
|
+
}
|
|
3208
|
+
},
|
|
3209
|
+
ownerModule: "coordination",
|
|
3210
|
+
ontologyPrimitive: "graph",
|
|
3211
|
+
tier: "workhorse",
|
|
3212
|
+
internal: true
|
|
3213
|
+
};
|
|
3214
|
+
var HEARTBEAT_SESSION = {
|
|
3215
|
+
name: "heartbeat_session",
|
|
3216
|
+
description: "Update this session's heartbeat and optional status fields. Like `git status` \u2014 signals liveness and updates what you are working on.",
|
|
3217
|
+
parameters: {
|
|
3218
|
+
topicId: { type: "string", description: "Updated topic scope" },
|
|
3219
|
+
worktreeId: { type: "string", description: "Updated worktree ID" },
|
|
3220
|
+
gitBranch: { type: "string", description: "Updated git branch" },
|
|
3221
|
+
status: {
|
|
3222
|
+
type: "string",
|
|
3223
|
+
description: "Session status update",
|
|
3224
|
+
enum: ["active", "idle"]
|
|
3225
|
+
}
|
|
3226
|
+
},
|
|
3227
|
+
required: [],
|
|
3228
|
+
response: {
|
|
3229
|
+
description: "Heartbeat result",
|
|
3230
|
+
fields: {
|
|
3231
|
+
success: "boolean",
|
|
3232
|
+
message: "string"
|
|
3233
|
+
}
|
|
3234
|
+
},
|
|
3235
|
+
ownerModule: "coordination",
|
|
3236
|
+
ontologyPrimitive: "graph",
|
|
3237
|
+
tier: "workhorse",
|
|
3238
|
+
internal: true
|
|
3239
|
+
};
|
|
3240
|
+
var END_SESSION = {
|
|
3241
|
+
name: "end_session",
|
|
3242
|
+
description: "Gracefully end this agent session. Like `git stash` \u2014 marks the session as ended so other agents know you are gone.",
|
|
3243
|
+
parameters: {},
|
|
3244
|
+
required: [],
|
|
3245
|
+
response: {
|
|
3246
|
+
description: "Session end result",
|
|
3247
|
+
fields: {
|
|
3248
|
+
success: "boolean",
|
|
3249
|
+
message: "string"
|
|
3250
|
+
}
|
|
3251
|
+
},
|
|
3252
|
+
ownerModule: "coordination",
|
|
3253
|
+
ontologyPrimitive: "graph",
|
|
3254
|
+
tier: "workhorse",
|
|
3255
|
+
internal: true
|
|
3256
|
+
};
|
|
3257
|
+
var LIST_ACTIVE_SESSIONS = {
|
|
3258
|
+
name: "list_active_sessions",
|
|
3259
|
+
description: "See who else is online with active agent sessions, scope, branch, and file claims. Like `git branch --list` for live agents \u2014 shows active and idle sessions before editing.",
|
|
3260
|
+
parameters: {
|
|
3261
|
+
includeIdle: {
|
|
3262
|
+
type: "boolean",
|
|
3263
|
+
description: "Include idle sessions"
|
|
3264
|
+
}
|
|
3265
|
+
},
|
|
3266
|
+
required: [],
|
|
3267
|
+
response: {
|
|
3268
|
+
description: "List of active/idle agent sessions",
|
|
3269
|
+
fields: {
|
|
3270
|
+
sessions: "array \u2014 active session records"
|
|
3271
|
+
}
|
|
3272
|
+
},
|
|
3273
|
+
ownerModule: "coordination",
|
|
3274
|
+
ontologyPrimitive: "graph",
|
|
3275
|
+
tier: "workhorse",
|
|
3276
|
+
internal: true
|
|
3277
|
+
};
|
|
3278
|
+
var SEND_AGENT_MESSAGE = {
|
|
3279
|
+
name: "send_agent_message",
|
|
3280
|
+
description: "Send a directed message to a specific agent session. Like `git notes` \u2014 leaves a coordination note for a specific peer.",
|
|
3281
|
+
parameters: {
|
|
3282
|
+
toSessionId: { type: "string", description: "Target session ID" },
|
|
3283
|
+
content: { type: "string", description: "Message text" },
|
|
3284
|
+
messageType: {
|
|
3285
|
+
type: "string",
|
|
3286
|
+
description: "Message intent",
|
|
3287
|
+
enum: ["note", "question", "answer", "alert", "handoff"]
|
|
3288
|
+
},
|
|
3289
|
+
relatedBeliefId: {
|
|
3290
|
+
type: "string",
|
|
3291
|
+
description: "Optional related belief node ID"
|
|
3292
|
+
},
|
|
3293
|
+
relatedWorktreeId: {
|
|
3294
|
+
type: "string",
|
|
3295
|
+
description: "Optional related worktree ID"
|
|
3296
|
+
}
|
|
3297
|
+
},
|
|
3298
|
+
required: ["toSessionId", "content"],
|
|
3299
|
+
response: {
|
|
3300
|
+
description: "Message delivery result",
|
|
3301
|
+
fields: { messageId: "string" }
|
|
3302
|
+
},
|
|
3303
|
+
ownerModule: "coordination",
|
|
3304
|
+
ontologyPrimitive: "graph",
|
|
3305
|
+
tier: "workhorse",
|
|
3306
|
+
internal: true
|
|
3307
|
+
};
|
|
3308
|
+
var BROADCAST_MESSAGE = {
|
|
3309
|
+
name: "broadcast_message",
|
|
3310
|
+
description: "Send a message to all active agent sessions. Like `git tag` \u2014 marks an important event visible to everyone.",
|
|
3311
|
+
parameters: {
|
|
3312
|
+
content: { type: "string", description: "Broadcast message text" },
|
|
3313
|
+
messageType: {
|
|
3314
|
+
type: "string",
|
|
3315
|
+
description: "Message intent",
|
|
3316
|
+
enum: ["note", "alert", "handoff"]
|
|
3317
|
+
},
|
|
3318
|
+
relatedBeliefId: {
|
|
3319
|
+
type: "string",
|
|
3320
|
+
description: "Optional related belief node ID"
|
|
3321
|
+
},
|
|
3322
|
+
relatedWorktreeId: {
|
|
3323
|
+
type: "string",
|
|
3324
|
+
description: "Optional related worktree ID"
|
|
3325
|
+
}
|
|
3326
|
+
},
|
|
3327
|
+
required: ["content"],
|
|
3328
|
+
response: {
|
|
3329
|
+
description: "Broadcast result",
|
|
3330
|
+
fields: { messageId: "string" }
|
|
3331
|
+
},
|
|
3332
|
+
ownerModule: "coordination",
|
|
3333
|
+
ontologyPrimitive: "graph",
|
|
3334
|
+
tier: "workhorse",
|
|
3335
|
+
internal: true
|
|
3336
|
+
};
|
|
3337
|
+
var GET_AGENT_INBOX = {
|
|
3338
|
+
name: "get_agent_inbox",
|
|
3339
|
+
description: "Check unread messages addressed to this session. Like `git log --incoming` \u2014 shows direct and broadcast messages from other agents.",
|
|
3340
|
+
parameters: {
|
|
3341
|
+
limit: { type: "number", description: "Max messages to return" },
|
|
3342
|
+
markAsRead: {
|
|
3343
|
+
type: "boolean",
|
|
3344
|
+
description: "Mark returned messages as read"
|
|
3345
|
+
}
|
|
3346
|
+
},
|
|
3347
|
+
required: [],
|
|
3348
|
+
response: {
|
|
3349
|
+
description: "Inbox messages",
|
|
3350
|
+
fields: {
|
|
3351
|
+
messages: "array \u2014 unread direct and broadcast messages"
|
|
3352
|
+
}
|
|
3353
|
+
},
|
|
3354
|
+
ownerModule: "coordination",
|
|
3355
|
+
ontologyPrimitive: "graph",
|
|
3356
|
+
tier: "workhorse",
|
|
3357
|
+
internal: true
|
|
3358
|
+
};
|
|
3359
|
+
var CLAIM_FILES = {
|
|
3360
|
+
name: "claim_files",
|
|
3361
|
+
description: "Declare which files this session is actively editing. Like `git add` for coordination \u2014 tells other sessions what you are touching and returns advisory conflicts.",
|
|
3362
|
+
parameters: {
|
|
3363
|
+
files: {
|
|
3364
|
+
type: "array",
|
|
3365
|
+
description: "File paths this session is actively editing"
|
|
3366
|
+
}
|
|
3367
|
+
},
|
|
3368
|
+
required: ["files"],
|
|
3369
|
+
response: {
|
|
3370
|
+
description: "File claim result with conflict detection",
|
|
3371
|
+
fields: {
|
|
3372
|
+
success: "boolean",
|
|
3373
|
+
conflicts: "array \u2014 conflicting file claims"
|
|
3374
|
+
}
|
|
3375
|
+
},
|
|
3376
|
+
ownerModule: "coordination",
|
|
3377
|
+
ontologyPrimitive: "graph",
|
|
3378
|
+
tier: "workhorse",
|
|
3379
|
+
internal: true
|
|
3380
|
+
};
|
|
3381
|
+
var GENERATE_SESSION_HANDOFF = {
|
|
3382
|
+
name: "generate_session_handoff",
|
|
3383
|
+
description: "Generate a complete, zero-context handoff message for a new coding session. Like `git format-patch` \u2014 produces a self-contained instruction set that bootstraps a fresh Lucern worktree session.",
|
|
3384
|
+
parameters: {
|
|
3385
|
+
worktreeId: {
|
|
3386
|
+
type: "string",
|
|
3387
|
+
description: "The Lucern worktree ID to generate handoff instructions for"
|
|
3388
|
+
},
|
|
3389
|
+
gitWorktreePath: {
|
|
3390
|
+
type: "string",
|
|
3391
|
+
description: "Optional existing git worktree path"
|
|
3392
|
+
},
|
|
3393
|
+
gitBranchName: {
|
|
3394
|
+
type: "string",
|
|
3395
|
+
description: "Optional branch name for the session"
|
|
3396
|
+
},
|
|
3397
|
+
additionalContext: {
|
|
3398
|
+
type: "string",
|
|
3399
|
+
description: "Optional extra context to include in the handoff"
|
|
3400
|
+
}
|
|
3401
|
+
},
|
|
3402
|
+
required: ["worktreeId"],
|
|
3403
|
+
response: {
|
|
3404
|
+
description: "A complete handoff message ready for a new coding session",
|
|
3405
|
+
fields: {
|
|
3406
|
+
handoffMessage: "string",
|
|
3407
|
+
worktreeId: "string",
|
|
3408
|
+
worktreeName: "string",
|
|
3409
|
+
trackBoundary: "object",
|
|
3410
|
+
needsActivation: "boolean",
|
|
3411
|
+
needsGitSetup: "string \u2014 create | fast-forward | ready"
|
|
3412
|
+
}
|
|
3413
|
+
},
|
|
3414
|
+
ownerModule: "bootstrap",
|
|
3415
|
+
ontologyPrimitive: "worktree",
|
|
3416
|
+
tier: "showcase",
|
|
3417
|
+
internal: true
|
|
3418
|
+
};
|
|
2885
3419
|
var MCP_TOOL_CONTRACTS = {
|
|
2886
3420
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
2887
3421
|
create_belief: CREATE_BELIEF,
|
|
@@ -2891,6 +3425,8 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
2891
3425
|
fork_belief: FORK_BELIEF,
|
|
2892
3426
|
archive_belief: ARCHIVE_BELIEF,
|
|
2893
3427
|
create_epistemic_contract: CREATE_EPISTEMIC_CONTRACT,
|
|
3428
|
+
evaluate_contract: EVALUATE_CONTRACT,
|
|
3429
|
+
get_contract_status: GET_CONTRACT_STATUS,
|
|
2894
3430
|
// Evidence (commit)
|
|
2895
3431
|
create_evidence: CREATE_EVIDENCE,
|
|
2896
3432
|
get_evidence: GET_EVIDENCE,
|
|
@@ -2918,7 +3454,6 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
2918
3454
|
get_graph_neighborhood: GET_GRAPH_NEIGHBORHOOD,
|
|
2919
3455
|
trace_entity_impact: TRACE_ENTITY_IMPACT,
|
|
2920
3456
|
search_beliefs: SEARCH_BELIEFS,
|
|
2921
|
-
search_resources: SEARCH_RESOURCES,
|
|
2922
3457
|
find_contradictions: FIND_CONTRADICTIONS,
|
|
2923
3458
|
bisect_confidence: BISECT_CONFIDENCE,
|
|
2924
3459
|
// Edges (commit)
|
|
@@ -2929,9 +3464,6 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
2929
3464
|
detect_confirmation_bias: DETECT_CONFIRMATION_BIAS,
|
|
2930
3465
|
get_graph_structure_analysis: GET_GRAPH_STRUCTURE_ANALYSIS,
|
|
2931
3466
|
get_falsification_questions: GET_FALSIFICATION_QUESTIONS,
|
|
2932
|
-
// Sources & research (showcase)
|
|
2933
|
-
search_sources: SEARCH_SOURCES,
|
|
2934
|
-
execute_deep_research: EXECUTE_DEEP_RESEARCH,
|
|
2935
3467
|
// Evidence operations (workhorse)
|
|
2936
3468
|
search_evidence: SEARCH_EVIDENCE,
|
|
2937
3469
|
link_evidence_to_belief: LINK_EVIDENCE_TO_BELIEF,
|
|
@@ -2958,6 +3490,24 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
2958
3490
|
update_worktree_metadata: UPDATE_WORKTREE_METADATA,
|
|
2959
3491
|
identity_whoami: IDENTITY_WHOAMI,
|
|
2960
3492
|
compile_context: COMPILE_CONTEXT,
|
|
3493
|
+
record_scope_learning: RECORD_SCOPE_LEARNING,
|
|
3494
|
+
pipeline_snapshot: PIPELINE_SNAPSHOT,
|
|
3495
|
+
discover: DISCOVER,
|
|
3496
|
+
analyze_topic_density: ANALYZE_TOPIC_DENSITY,
|
|
3497
|
+
apply_auto_branching: APPLY_AUTO_BRANCHING,
|
|
3498
|
+
seed_belief_lattice: SEED_BELIEF_LATTICE,
|
|
3499
|
+
get_lattice_coverage: GET_LATTICE_COVERAGE,
|
|
3500
|
+
discover_entity_connections: DISCOVER_ENTITY_CONNECTIONS,
|
|
3501
|
+
trigger_belief_review: TRIGGER_BELIEF_REVIEW,
|
|
3502
|
+
register_session: REGISTER_SESSION,
|
|
3503
|
+
heartbeat_session: HEARTBEAT_SESSION,
|
|
3504
|
+
end_session: END_SESSION,
|
|
3505
|
+
list_active_sessions: LIST_ACTIVE_SESSIONS,
|
|
3506
|
+
send_agent_message: SEND_AGENT_MESSAGE,
|
|
3507
|
+
broadcast_message: BROADCAST_MESSAGE,
|
|
3508
|
+
get_agent_inbox: GET_AGENT_INBOX,
|
|
3509
|
+
claim_files: CLAIM_FILES,
|
|
3510
|
+
generate_session_handoff: GENERATE_SESSION_HANDOFF,
|
|
2961
3511
|
// Policy / ACL (workhorse)
|
|
2962
3512
|
check_permission: CHECK_PERMISSION,
|
|
2963
3513
|
filter_by_permission: FILTER_BY_PERMISSION,
|
|
@@ -3985,65 +4535,6 @@ var GET_BELIEFS_BY_EPISTEMIC_STATUS = {
|
|
|
3985
4535
|
ontologyPrimitive: "belief",
|
|
3986
4536
|
tier: "sdk-only"
|
|
3987
4537
|
};
|
|
3988
|
-
var GET_PRIVILEGED_EVIDENCE = {
|
|
3989
|
-
name: "get_privileged_evidence",
|
|
3990
|
-
description: "Retrieve high-value evidence with access characteristics. Like `git log --author` filtering for key sources \u2014 identifies evidence from privileged access: primary interviews, proprietary data, non-public filings, expert networks.",
|
|
3991
|
-
parameters: {
|
|
3992
|
-
topicId: { type: "string", description: "Topic scope" },
|
|
3993
|
-
projectId: {
|
|
3994
|
-
type: "string",
|
|
3995
|
-
description: "Deprecated legacy alias for topic scope"
|
|
3996
|
-
},
|
|
3997
|
-
accessType: {
|
|
3998
|
-
type: "string",
|
|
3999
|
-
description: "Filter by access type",
|
|
4000
|
-
enum: [
|
|
4001
|
-
"primary_interview",
|
|
4002
|
-
"proprietary_data",
|
|
4003
|
-
"non_public",
|
|
4004
|
-
"expert_network",
|
|
4005
|
-
"field_research"
|
|
4006
|
-
]
|
|
4007
|
-
}
|
|
4008
|
-
},
|
|
4009
|
-
required: ["topicId"],
|
|
4010
|
-
response: {
|
|
4011
|
-
description: "Privileged evidence items",
|
|
4012
|
-
fields: {
|
|
4013
|
-
evidence: "array \u2014 { nodeId, canonicalText, accessType, sourceDescription, linkedBeliefs }",
|
|
4014
|
-
totalCount: "number"
|
|
4015
|
-
}
|
|
4016
|
-
},
|
|
4017
|
-
ownerModule: "graph-search",
|
|
4018
|
-
ontologyPrimitive: "evidence",
|
|
4019
|
-
tier: "sdk-only"
|
|
4020
|
-
};
|
|
4021
|
-
var GET_PRIVILEGED_SIGNALS = {
|
|
4022
|
-
name: "get_privileged_signals",
|
|
4023
|
-
description: "Aggregate high-signal patterns across evidence. Like `git shortlog --summary` for signal strength \u2014 identifies recurring patterns across privileged evidence sources that may indicate strong conviction drivers.",
|
|
4024
|
-
parameters: {
|
|
4025
|
-
topicId: { type: "string", description: "Topic scope" },
|
|
4026
|
-
projectId: {
|
|
4027
|
-
type: "string",
|
|
4028
|
-
description: "Deprecated legacy alias for topic scope"
|
|
4029
|
-
},
|
|
4030
|
-
minSignalStrength: {
|
|
4031
|
-
type: "number",
|
|
4032
|
-
description: "Minimum signal score (0-1, default: 0.7)"
|
|
4033
|
-
}
|
|
4034
|
-
},
|
|
4035
|
-
required: ["topicId"],
|
|
4036
|
-
response: {
|
|
4037
|
-
description: "Aggregated signal patterns",
|
|
4038
|
-
fields: {
|
|
4039
|
-
signals: "array \u2014 { pattern, signalStrength, evidenceCount, sources, affectedBeliefs }",
|
|
4040
|
-
totalSignals: "number"
|
|
4041
|
-
}
|
|
4042
|
-
},
|
|
4043
|
-
ownerModule: "graph-search",
|
|
4044
|
-
ontologyPrimitive: "evidence",
|
|
4045
|
-
tier: "sdk-only"
|
|
4046
|
-
};
|
|
4047
4538
|
var DETECT_ANCHORING_BIAS = {
|
|
4048
4539
|
name: "detect_anchoring_bias",
|
|
4049
4540
|
description: "Detect old unchallenged beliefs that may anchor reasoning. Like `git log --before` \u2014 finding stale commits that haven't been reviewed. Flags beliefs that were established early and have not received new evidence or challenge.",
|
|
@@ -4220,8 +4711,6 @@ var SDK_ONLY_TOOL_CONTRACTS = {
|
|
|
4220
4711
|
get_causal_chains: GET_CAUSAL_CHAINS,
|
|
4221
4712
|
get_non_consensus_beliefs: GET_NON_CONSENSUS_BELIEFS,
|
|
4222
4713
|
get_beliefs_by_epistemic_status: GET_BELIEFS_BY_EPISTEMIC_STATUS,
|
|
4223
|
-
get_privileged_evidence: GET_PRIVILEGED_EVIDENCE,
|
|
4224
|
-
get_privileged_signals: GET_PRIVILEGED_SIGNALS,
|
|
4225
4714
|
// 3.7 Bias detection suite (detect_confirmation_bias is in MCP)
|
|
4226
4715
|
detect_anchoring_bias: DETECT_ANCHORING_BIAS,
|
|
4227
4716
|
detect_source_concentration: DETECT_SOURCE_CONCENTRATION,
|
|
@@ -4247,6 +4736,6 @@ function validateSdkGitSemantics(tool) {
|
|
|
4247
4736
|
return { valid: true };
|
|
4248
4737
|
}
|
|
4249
4738
|
|
|
4250
|
-
export { ADD_NOTE_TO_WORKTREE, ADD_RESEARCH_ACTION, ADVANCE_WORKTREE_PHASE, ALL_SDK_TOOL_CONTRACTS, ALL_SDK_TOOL_NAMES, ANALYZE_BELIEF_CLUSTER_CANDIDATES, ANALYZE_BELIEF_CRITICALITY, ANALYZE_REASONING_DEPTH, COMPLETE_EVIDENCE_REVIEW, COMPLETE_HYPOTHESIS_FORMATION, CREATE_BELIEF_CONDITIONAL, CREATE_EVIDENCE_TASK, CREATE_SYNTHESIZED_BELIEF, DETECT_ANCHORING_BIAS, DETECT_SOURCE_CONCENTRATION, EXPLORE_CONNECTIONS, FIND_SEMANTIC_BRIDGES, FIND_SEMANTIC_ORPHANS, FIND_SOFT_CONTRADICTIONS, GET_BELIEFS_BY_EPISTEMIC_STATUS, GET_BELIEF_RELATIONSHIPS, GET_BELIEF_SUPPORT_CHAIN, GET_CAUSAL_CHAINS, GET_CHALLENGED_BELIEFS, GET_COLLECTION_CONVICTION, GET_CONVICTION_TREND, GET_DEEP_LINEAGE, GET_EVIDENCE_BY_METHODOLOGY, GET_NECESSARY_EVIDENCE, GET_NON_CONSENSUS_BELIEFS, GET_PREDICTIONS,
|
|
4739
|
+
export { ADD_NOTE_TO_WORKTREE, ADD_RESEARCH_ACTION, ADVANCE_WORKTREE_PHASE, ALL_SDK_TOOL_CONTRACTS, ALL_SDK_TOOL_NAMES, ANALYZE_BELIEF_CLUSTER_CANDIDATES, ANALYZE_BELIEF_CRITICALITY, ANALYZE_REASONING_DEPTH, COMPLETE_EVIDENCE_REVIEW, COMPLETE_HYPOTHESIS_FORMATION, CREATE_BELIEF_CONDITIONAL, CREATE_EVIDENCE_TASK, CREATE_SYNTHESIZED_BELIEF, DETECT_ANCHORING_BIAS, DETECT_SOURCE_CONCENTRATION, EXPLORE_CONNECTIONS, FIND_SEMANTIC_BRIDGES, FIND_SEMANTIC_ORPHANS, FIND_SOFT_CONTRADICTIONS, GET_BELIEFS_BY_EPISTEMIC_STATUS, GET_BELIEF_RELATIONSHIPS, GET_BELIEF_SUPPORT_CHAIN, GET_CAUSAL_CHAINS, GET_CHALLENGED_BELIEFS, GET_COLLECTION_CONVICTION, GET_CONVICTION_TREND, GET_DEEP_LINEAGE, GET_EVIDENCE_BY_METHODOLOGY, GET_NECESSARY_EVIDENCE, GET_NON_CONSENSUS_BELIEFS, GET_PREDICTIONS, GET_SURPRISE_DETECTION, GET_TASK_COUNTS, GRAPH_AWARE_SEARCH, LINK_BELIEF_TO_WORKTREE, LINK_DOCUMENT_TO_WORKTREE, LINK_EVIDENCE_TO_WORKTREE, LINK_QUESTION_TO_WORKTREE, LIST_TASKS2 as LIST_TASKS, REFINE_WORKTREE_BELIEF, SDK_ONLY_TOOL_CONTRACTS, SDK_ONLY_TOOL_NAMES, START_WORKTREE, TRACE_PROVENANCE, UPDATE_TASK2 as UPDATE_TASK, UPDATE_WORKTREE_PHASE, validateSdkGitSemantics };
|
|
4251
4740
|
//# sourceMappingURL=sdk-tools.contract.js.map
|
|
4252
4741
|
//# sourceMappingURL=sdk-tools.contract.js.map
|