@lucern/contracts 0.3.0-alpha.1 → 0.3.0-alpha.11
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 +4 -0
- package/dist/api-enums.contract.d.ts +5 -3
- package/dist/api-enums.contract.js +14 -12
- package/dist/api-enums.contract.js.map +1 -1
- package/dist/component-boundary.contract.d.ts +14 -0
- package/dist/component-boundary.contract.js +174 -0
- package/dist/component-boundary.contract.js.map +1 -0
- package/dist/component-host-boundary.contract.d.ts +46 -0
- package/dist/component-host-boundary.contract.js +60 -0
- package/dist/component-host-boundary.contract.js.map +1 -0
- package/dist/context-pack.contract.d.ts +5 -3
- package/dist/context-pack.contract.js.map +1 -1
- package/dist/{defineTable-CBQ03FXl.d.ts → defineTable-t1wr5wgn.d.ts} +1 -1
- package/dist/{dsl-BgpoVOVQ.d.ts → dsl-DVPthQGY.d.ts} +2 -2
- package/dist/dsl.d.ts +2 -2
- package/dist/dsl.js +1 -4
- package/dist/dsl.js.map +1 -1
- package/dist/edge-policy-manifest-Dw5IhT1L.d.ts +133 -0
- package/dist/function-registry/beliefs.d.ts +54 -41
- package/dist/function-registry/beliefs.js +759 -38
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.d.ts +9 -0
- package/dist/function-registry/coding.js +811 -39
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +19 -13
- package/dist/function-registry/context.js +750 -42
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.d.ts +6 -0
- package/dist/function-registry/contracts.js +715 -35
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.d.ts +12 -0
- package/dist/function-registry/coordination.js +715 -35
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +165 -0
- package/dist/function-registry/edges.js +923 -67
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +44 -33
- package/dist/function-registry/evidence.js +769 -47
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +149 -53
- package/dist/function-registry/graph.js +831 -42
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +6 -3
- package/dist/function-registry/helpers.js +716 -36
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.d.ts +6 -0
- package/dist/function-registry/identity.js +715 -35
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +5 -3
- package/dist/function-registry/index.js +722 -39
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +14 -9
- package/dist/function-registry/judgments.js +727 -38
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.d.ts +4 -0
- package/dist/function-registry/legacy.js +715 -35
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +24 -17
- package/dist/function-registry/lenses.js +738 -38
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +6 -6
- package/dist/function-registry/manifest.js +18 -2
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/nodes.d.ts +412 -0
- package/dist/function-registry/nodes.js +5303 -0
- package/dist/function-registry/nodes.js.map +1 -0
- package/dist/function-registry/ontologies.d.ts +59 -45
- package/dist/function-registry/ontologies.js +733 -41
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +19 -13
- package/dist/function-registry/pipeline.js +724 -38
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +64 -49
- package/dist/function-registry/questions.js +812 -43
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +24 -17
- package/dist/function-registry/tasks.js +776 -44
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +109 -21
- package/dist/function-registry/topics.js +797 -39
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +6 -2
- package/dist/function-registry/worktrees.d.ts +94 -41
- package/dist/function-registry/worktrees.js +854 -47
- package/dist/function-registry/worktrees.js.map +1 -1
- package/dist/function-registry-input-audit.d.ts +13 -0
- package/dist/function-registry-input-audit.js +166 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +5 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.d.ts +3 -3
- package/dist/generated/convexSchemas.js +38 -18
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/infisicalRuntimeEnv.d.ts +70 -0
- package/dist/generated/infisicalRuntimeEnv.js +26572 -0
- package/dist/generated/infisicalRuntimeEnv.js.map +1 -0
- package/dist/generated/lucernGatewayEnv.d.ts +17 -0
- package/dist/generated/lucernGatewayEnv.js +38 -0
- package/dist/generated/lucernGatewayEnv.js.map +1 -0
- package/dist/generated/lucernWebPublicEnv.d.ts +26 -0
- package/dist/generated/lucernWebPublicEnv.js +32 -0
- package/dist/generated/lucernWebPublicEnv.js.map +1 -0
- package/dist/generated/lucernWebServerEnv.d.ts +33 -0
- package/dist/generated/lucernWebServerEnv.js +51 -0
- package/dist/generated/lucernWebServerEnv.js.map +1 -0
- package/dist/generated/schema-manifest.json +1199 -138
- package/dist/generated/tableOwnership.d.ts +47 -27
- package/dist/generated/tableOwnership.js +66 -26
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +62 -8
- package/dist/graph-intelligence.contract.d.ts +506 -0
- package/dist/graph-intelligence.contract.js +595 -0
- package/dist/graph-intelligence.contract.js.map +1 -0
- package/dist/graph-types/index.d.ts +5 -1
- package/dist/graph-types/index.js +15 -4
- package/dist/graph-types/index.js.map +1 -1
- package/dist/index-CM1Pl_vI.d.ts +28 -0
- package/dist/index.d.ts +29 -414
- package/dist/index.js +34791 -1088
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +1768 -0
- package/dist/infisical-runtime.contract.js +3093 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/lens-filter.contract.js +4 -3
- package/dist/lens-filter.contract.js.map +1 -1
- package/dist/lens-workflow.contract.js +4 -3
- package/dist/lens-workflow.contract.js.map +1 -1
- package/dist/manifests/edge-policy-manifest.d.ts +2 -0
- package/dist/manifests/edge-policy-manifest.data.d.ts +13 -0
- package/dist/manifests/edge-policy-manifest.data.js +26 -0
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.js +92 -0
- package/dist/manifests/edge-policy-manifest.js.map +1 -0
- package/dist/manifests/infisical-runtime-manifest.d.ts +1672 -0
- package/dist/manifests/infisical-runtime-manifest.js +2948 -0
- package/dist/manifests/infisical-runtime-manifest.js.map +1 -0
- package/dist/manifests/invariant-manifest.d.ts +65 -0
- package/dist/manifests/invariant-manifest.js +18 -0
- package/dist/manifests/invariant-manifest.js.map +1 -0
- package/dist/manifests/invariants/ast-utils.d.ts +14 -0
- package/dist/manifests/invariants/ast-utils.js +54 -0
- package/dist/manifests/invariants/ast-utils.js.map +1 -0
- package/dist/manifests/invariants/index.d.ts +15 -0
- package/dist/manifests/invariants/index.js +183 -0
- package/dist/manifests/invariants/index.js.map +1 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.d.ts +12 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js +94 -0
- package/dist/manifests/invariants/inv-1-beliefs-append-only.js.map +1 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.d.ts +12 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js +99 -0
- package/dist/manifests/invariants/inv-14-no-silent-transitions.js.map +1 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.d.ts +12 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js +42 -0
- package/dist/manifests/invariants/manifest-1-projections-declare-audit.js.map +1 -0
- package/dist/manifests/tenant-client-manifest.d.ts +322 -0
- package/dist/manifests/tenant-client-manifest.js +432 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -0
- package/dist/mcp-gateway-boundary.contract.d.ts +201 -0
- package/dist/mcp-gateway-boundary.contract.js +45 -0
- package/dist/mcp-gateway-boundary.contract.js.map +1 -0
- package/dist/projections/check-convex-args-shape.d.ts +3 -0
- package/dist/projections/check-convex-args-shape.js +403 -0
- package/dist/projections/check-convex-args-shape.js.map +1 -0
- package/dist/projections/create-evidence.projection.d.ts +176 -0
- package/dist/projections/create-evidence.projection.js +130 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +352 -0
- package/dist/projections/index.js.map +1 -0
- package/dist/projections/list-beliefs.projection.d.ts +36 -0
- package/dist/projections/list-beliefs.projection.js +54 -0
- package/dist/projections/list-beliefs.projection.js.map +1 -0
- package/dist/projections/list-tasks.projection.d.ts +44 -0
- package/dist/projections/list-tasks.projection.js +57 -0
- package/dist/projections/list-tasks.projection.js.map +1 -0
- package/dist/projections/modulate-confidence.projection.d.ts +219 -0
- package/dist/projections/modulate-confidence.projection.js +148 -0
- package/dist/projections/modulate-confidence.projection.js.map +1 -0
- package/dist/projections/projection-dsl.d.ts +11 -0
- package/dist/projections/projection-dsl.js +8 -0
- package/dist/projections/projection-dsl.js.map +1 -0
- package/dist/proof-attestation.json +45 -0
- package/dist/schema-helpers/enumValidation.js +2 -5
- package/dist/schema-helpers/enumValidation.js.map +1 -1
- package/dist/schema-helpers/spine/nodes/decision.js +2 -1
- package/dist/schema-helpers/spine/nodes/decision.js.map +1 -1
- package/dist/schema-helpers/spine/tables/epistemicNodes.js +27 -27
- package/dist/schema-helpers/spine/tables/epistemicNodes.js.map +1 -1
- package/dist/schemas/component-table-manifest.d.ts +6 -6
- package/dist/schemas/component-table-manifest.js +2 -2
- package/dist/schemas/component-table-manifest.js.map +1 -1
- package/dist/schemas/enums.d.ts +5 -2
- package/dist/schemas/enums.js +5 -2
- package/dist/schemas/enums.js.map +1 -1
- package/dist/schemas/index.d.ts +3 -3
- package/dist/schemas/index.js +1129 -139
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +2979 -949
- package/dist/schemas/manifest.js +1127 -137
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/controlPlane/accessControl.d.ts +260 -0
- package/dist/schemas/tables/controlPlane/accessControl.js +653 -0
- package/dist/schemas/tables/controlPlane/accessControl.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/agent.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/agent.js +3 -3
- package/dist/schemas/tables/controlPlane/agent.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/epistemic.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/epistemic.js +3 -3
- package/dist/schemas/tables/controlPlane/epistemic.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/model.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/model.js +6 -6
- package/dist/schemas/tables/controlPlane/model.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/platform.d.ts +11 -11
- package/dist/schemas/tables/{identity → controlPlane}/platform.js +18 -18
- package/dist/schemas/tables/controlPlane/platform.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/project.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/project.js +3 -3
- package/dist/schemas/tables/controlPlane/project.js.map +1 -0
- package/dist/schemas/tables/{identity → controlPlane}/user.d.ts +1 -1
- package/dist/schemas/tables/{identity → controlPlane}/user.js +3 -3
- package/dist/schemas/tables/controlPlane/user.js.map +1 -0
- package/dist/schemas/tables/kernel/config.d.ts +1 -1
- package/dist/schemas/tables/kernel/config.js.map +1 -1
- package/dist/schemas/tables/kernel/coordination.d.ts +1 -1
- package/dist/schemas/tables/kernel/coordination.js.map +1 -1
- package/dist/schemas/tables/kernel/decision.d.ts +1 -1
- package/dist/schemas/tables/kernel/decision.js.map +1 -1
- package/dist/schemas/tables/kernel/embedding.d.ts +1 -1
- package/dist/schemas/tables/kernel/embedding.js.map +1 -1
- package/dist/schemas/tables/kernel/epistemic.d.ts +7 -7
- package/dist/schemas/tables/kernel/epistemic.js.map +1 -1
- package/dist/schemas/tables/kernel/idempotency.d.ts +1 -1
- package/dist/schemas/tables/kernel/idempotency.js.map +1 -1
- package/dist/schemas/tables/kernel/infra.d.ts +5 -5
- package/dist/schemas/tables/kernel/infra.js.map +1 -1
- package/dist/schemas/tables/kernel/intelligence.d.ts +11 -11
- package/dist/schemas/tables/kernel/intelligence.js.map +1 -1
- package/dist/schemas/tables/kernel/lens.d.ts +5 -5
- package/dist/schemas/tables/kernel/lens.js.map +1 -1
- package/dist/schemas/tables/kernel/ontology.d.ts +1 -1
- package/dist/schemas/tables/kernel/ontology.js.map +1 -1
- package/dist/schemas/tables/kernel/platform.d.ts +13 -13
- package/dist/schemas/tables/kernel/platform.js.map +1 -1
- package/dist/schemas/tables/kernel/spine.d.ts +5 -4
- package/dist/schemas/tables/kernel/spine.js +6 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +43 -43
- package/dist/schemas/tables/kernel/task.js.map +1 -1
- package/dist/schemas/tables/kernel/topic.d.ts +1 -1
- package/dist/schemas/tables/kernel/topic.js +5 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/workflow.d.ts +1 -1
- package/dist/schemas/tables/kernel/workflow.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +55 -55
- package/dist/schemas/tables/kernel/worktree.js.map +1 -1
- package/dist/schemas/tables/mc/identity.d.ts +44 -4
- package/dist/schemas/tables/mc/identity.js +66 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/methodology.d.ts +1 -1
- package/dist/schemas/tables/mc/methodology.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +21 -21
- package/dist/schemas/tables/mc/pack.js.map +1 -1
- package/dist/schemas/tables/mc/policy.d.ts +2 -2
- package/dist/schemas/tables/mc/policy.js +1 -1
- package/dist/schemas/tables/mc/policy.js.map +1 -1
- package/dist/schemas/tables/mc/registry.d.ts +5 -5
- package/dist/schemas/tables/mc/registry.js.map +1 -1
- package/dist/schemas/tables/mc/runtime.d.ts +109 -3
- package/dist/schemas/tables/mc/runtime.js +330 -104
- package/dist/schemas/tables/mc/runtime.js.map +1 -1
- package/dist/schemas/tables/mc/tenant.d.ts +3 -2
- package/dist/schemas/tables/mc/tenant.js +2 -1
- package/dist/schemas/tables/mc/tenant.js.map +1 -1
- package/dist/schemas/tables/mc/workspace.d.ts +28 -5
- package/dist/schemas/tables/mc/workspace.js +36 -2
- package/dist/schemas/tables/mc/workspace.js.map +1 -1
- package/dist/sdk-methods.contract.d.ts +2 -2
- package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-BNklQDfB.d.ts} +2 -2
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +672 -24
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1269 -0
- package/dist/tenant-bootstrap-seed.contract.js +751 -0
- package/dist/tenant-bootstrap-seed.contract.js.map +1 -0
- package/dist/tenant-bootstrap-seed.defaults.d.ts +16 -0
- package/dist/tenant-bootstrap-seed.defaults.js +303 -0
- package/dist/tenant-bootstrap-seed.defaults.js.map +1 -0
- package/dist/tenant-client.contract.d.ts +349 -0
- package/dist/tenant-client.contract.js +488 -0
- package/dist/tenant-client.contract.js.map +1 -0
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-BevD9Ho2.d.ts} +36 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +673 -25
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +30 -1
- package/dist/index-CV-0_VWJ.d.ts +0 -25
- package/dist/schemas/tables/identity/agent.js.map +0 -1
- package/dist/schemas/tables/identity/epistemic.js.map +0 -1
- package/dist/schemas/tables/identity/model.js.map +0 -1
- package/dist/schemas/tables/identity/platform.js.map +0 -1
- package/dist/schemas/tables/identity/project.js.map +0 -1
- package/dist/schemas/tables/identity/user.js.map +0 -1
|
@@ -3,6 +3,20 @@ import { v } from 'convex/values';
|
|
|
3
3
|
|
|
4
4
|
// src/function-registry/helpers.ts
|
|
5
5
|
|
|
6
|
+
// src/types/reasoning-method.ts
|
|
7
|
+
var REASONING_METHODS = [
|
|
8
|
+
"deductive",
|
|
9
|
+
"inductive",
|
|
10
|
+
"abductive",
|
|
11
|
+
"analogical",
|
|
12
|
+
"causal",
|
|
13
|
+
"correlational",
|
|
14
|
+
"testimonial",
|
|
15
|
+
"statistical",
|
|
16
|
+
"implicit",
|
|
17
|
+
"pattern_match"
|
|
18
|
+
];
|
|
19
|
+
|
|
6
20
|
// src/lens-workflow.contract.ts
|
|
7
21
|
var LENS_PERSPECTIVE_TYPES = [
|
|
8
22
|
"investigation",
|
|
@@ -423,7 +437,22 @@ var ADD_WORKTREE = {
|
|
|
423
437
|
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.",
|
|
424
438
|
parameters: {
|
|
425
439
|
title: { type: "string", description: "Worktree name/objective" },
|
|
426
|
-
|
|
440
|
+
name: {
|
|
441
|
+
type: "string",
|
|
442
|
+
description: "Optional storage-name alias for callers that already use backend naming"
|
|
443
|
+
},
|
|
444
|
+
projectId: {
|
|
445
|
+
type: "string",
|
|
446
|
+
description: "Legacy topicId alias or resolver hint"
|
|
447
|
+
},
|
|
448
|
+
topicId: {
|
|
449
|
+
type: "string",
|
|
450
|
+
description: "Optional topic scope hint for resolver validation"
|
|
451
|
+
},
|
|
452
|
+
topicHint: {
|
|
453
|
+
type: "string",
|
|
454
|
+
description: "Natural-language topic hint for automatic topic resolution"
|
|
455
|
+
},
|
|
427
456
|
branchId: {
|
|
428
457
|
type: "string",
|
|
429
458
|
description: "The branch this worktree investigates"
|
|
@@ -436,18 +465,107 @@ var ADD_WORKTREE = {
|
|
|
436
465
|
type: "string",
|
|
437
466
|
description: "The testable claim this worktree investigates"
|
|
438
467
|
},
|
|
468
|
+
rationale: {
|
|
469
|
+
type: "string",
|
|
470
|
+
description: "Why this worktree exists and why it belongs in the campaign"
|
|
471
|
+
},
|
|
472
|
+
worktreeType: {
|
|
473
|
+
type: "string",
|
|
474
|
+
description: "Schema-enum worktree type used by the kernel lifecycle and retrieval layers"
|
|
475
|
+
},
|
|
476
|
+
gate: {
|
|
477
|
+
type: "string",
|
|
478
|
+
description: "Exit gate name for this worktree"
|
|
479
|
+
},
|
|
480
|
+
startDate: {
|
|
481
|
+
type: "number",
|
|
482
|
+
description: "Planned start timestamp in milliseconds since epoch"
|
|
483
|
+
},
|
|
484
|
+
endDate: {
|
|
485
|
+
type: "number",
|
|
486
|
+
description: "Planned end timestamp in milliseconds since epoch"
|
|
487
|
+
},
|
|
488
|
+
durationWeeks: {
|
|
489
|
+
type: "number",
|
|
490
|
+
description: "Planned duration in weeks"
|
|
491
|
+
},
|
|
492
|
+
confidenceImpact: {
|
|
493
|
+
type: "string",
|
|
494
|
+
description: "Expected confidence impact if the worktree succeeds",
|
|
495
|
+
enum: ["high", "medium", "low"]
|
|
496
|
+
},
|
|
497
|
+
beliefFocus: {
|
|
498
|
+
type: "string",
|
|
499
|
+
description: "Natural-language focus spanning the target belief neighborhood"
|
|
500
|
+
},
|
|
439
501
|
beliefIds: {
|
|
440
502
|
type: "array",
|
|
441
|
-
description: "
|
|
503
|
+
description: "Legacy alias for targetBeliefIds"
|
|
504
|
+
},
|
|
505
|
+
beliefs: {
|
|
506
|
+
type: "array",
|
|
507
|
+
description: "Legacy alias for targetBeliefIds"
|
|
508
|
+
},
|
|
509
|
+
targetBeliefIds: {
|
|
510
|
+
type: "array",
|
|
511
|
+
description: "Belief node IDs this worktree is expected to test or update"
|
|
512
|
+
},
|
|
513
|
+
targetQuestionIds: {
|
|
514
|
+
type: "array",
|
|
515
|
+
description: "Question node IDs this worktree is expected to answer"
|
|
516
|
+
},
|
|
517
|
+
keyQuestions: {
|
|
518
|
+
type: "array",
|
|
519
|
+
description: "Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId"
|
|
520
|
+
},
|
|
521
|
+
evidenceSignals: {
|
|
522
|
+
type: "array",
|
|
523
|
+
description: "Evidence signal objects with signal, optional collected state, progress, and notes"
|
|
524
|
+
},
|
|
525
|
+
decisionGate: {
|
|
526
|
+
type: "object",
|
|
527
|
+
description: "Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy"
|
|
528
|
+
},
|
|
529
|
+
goCriteria: {
|
|
530
|
+
type: "array",
|
|
531
|
+
description: "Shorthand go criteria used to build decisionGate"
|
|
532
|
+
},
|
|
533
|
+
noGoSignals: {
|
|
534
|
+
type: "array",
|
|
535
|
+
description: "Shorthand no-go signals used to build decisionGate"
|
|
536
|
+
},
|
|
537
|
+
proofArtifacts: {
|
|
538
|
+
type: "array",
|
|
539
|
+
description: "Expected proof artifacts required to close the worktree"
|
|
442
540
|
},
|
|
443
541
|
autoShape: {
|
|
444
542
|
type: "boolean",
|
|
445
543
|
description: "Whether to invoke inquiry auto-shaping during worktree creation"
|
|
446
544
|
},
|
|
545
|
+
autoFixPolicy: {
|
|
546
|
+
type: "object",
|
|
547
|
+
description: "Policy for permitted automatic remediation inside the worktree"
|
|
548
|
+
},
|
|
447
549
|
domainPackId: {
|
|
448
550
|
type: "string",
|
|
449
551
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
450
552
|
},
|
|
553
|
+
tags: {
|
|
554
|
+
type: "array",
|
|
555
|
+
description: "Additional topic-resolution tags for the worktree"
|
|
556
|
+
},
|
|
557
|
+
touchedPaths: {
|
|
558
|
+
type: "array",
|
|
559
|
+
description: "File paths used as topic-resolution signals"
|
|
560
|
+
},
|
|
561
|
+
sourceRef: {
|
|
562
|
+
type: "string",
|
|
563
|
+
description: "Source reference used as a topic-resolution signal"
|
|
564
|
+
},
|
|
565
|
+
sourceKind: {
|
|
566
|
+
type: "string",
|
|
567
|
+
description: "Source kind used as a topic-resolution signal"
|
|
568
|
+
},
|
|
451
569
|
campaign: {
|
|
452
570
|
type: "number",
|
|
453
571
|
description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
|
|
@@ -472,12 +590,20 @@ var ADD_WORKTREE = {
|
|
|
472
590
|
type: "array",
|
|
473
591
|
description: "Worktree IDs blocked by this worktree"
|
|
474
592
|
},
|
|
475
|
-
|
|
593
|
+
staffingHint: {
|
|
476
594
|
type: "string",
|
|
477
|
-
description: "
|
|
595
|
+
description: "Suggested staffing or agent allocation note"
|
|
596
|
+
},
|
|
597
|
+
lensId: {
|
|
598
|
+
type: "string",
|
|
599
|
+
description: "Lens that scopes this worktree when applicable"
|
|
600
|
+
},
|
|
601
|
+
lastReconciledAt: {
|
|
602
|
+
type: "number",
|
|
603
|
+
description: "Timestamp when worktree metadata was last reconciled"
|
|
478
604
|
}
|
|
479
605
|
},
|
|
480
|
-
required: ["title"
|
|
606
|
+
required: ["title"],
|
|
481
607
|
response: {
|
|
482
608
|
description: "The created worktree",
|
|
483
609
|
fields: {
|
|
@@ -504,7 +630,7 @@ var MERGE = {
|
|
|
504
630
|
worktreeId: { type: "string", description: "The worktree to merge" },
|
|
505
631
|
outcomes: {
|
|
506
632
|
type: "array",
|
|
507
|
-
description: "
|
|
633
|
+
description: "Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }"
|
|
508
634
|
},
|
|
509
635
|
summary: { type: "string", description: "Overall findings summary" }
|
|
510
636
|
},
|
|
@@ -722,19 +848,23 @@ var FIND_CONTRADICTIONS = {
|
|
|
722
848
|
};
|
|
723
849
|
var CREATE_EDGE = {
|
|
724
850
|
name: "create_edge",
|
|
725
|
-
description: "Commit a typed relationship between two nodes in the reasoning graph. Like `git commit` \u2014 an atomic write that declares a dependency between nodes.
|
|
851
|
+
description: "Commit a typed relationship between two nodes in the reasoning graph. Like `git commit` \u2014 an atomic write that declares a dependency between nodes. Accepts any public epistemic edge type between public graph node refs so agents can author the full spine.",
|
|
726
852
|
parameters: {
|
|
727
|
-
|
|
728
|
-
type: "
|
|
729
|
-
description: "Source
|
|
853
|
+
from: {
|
|
854
|
+
type: "object",
|
|
855
|
+
description: "Source graph ref, e.g. { kind: 'epistemic_node', nodeId: '...', nodeType: 'topic' }"
|
|
730
856
|
},
|
|
731
|
-
|
|
732
|
-
type: "
|
|
733
|
-
description: "Target
|
|
857
|
+
to: {
|
|
858
|
+
type: "object",
|
|
859
|
+
description: "Target graph ref, e.g. { kind: 'epistemic_node', nodeId: '...', nodeType: 'belief' }"
|
|
734
860
|
},
|
|
735
861
|
edgeType: {
|
|
736
862
|
type: "string",
|
|
737
|
-
description: "Relationship type
|
|
863
|
+
description: "Relationship type from the public epistemic edge enum."
|
|
864
|
+
},
|
|
865
|
+
globalId: {
|
|
866
|
+
type: "string",
|
|
867
|
+
description: "Optional idempotent edge global ID."
|
|
738
868
|
},
|
|
739
869
|
weight: {
|
|
740
870
|
type: "number",
|
|
@@ -744,10 +874,14 @@ var CREATE_EDGE = {
|
|
|
744
874
|
reasoningMethod: {
|
|
745
875
|
type: "string",
|
|
746
876
|
description: "How this was determined",
|
|
747
|
-
enum: [
|
|
877
|
+
enum: [...REASONING_METHODS]
|
|
878
|
+
},
|
|
879
|
+
metadata: {
|
|
880
|
+
type: "object",
|
|
881
|
+
description: "Optional edge metadata."
|
|
748
882
|
}
|
|
749
883
|
},
|
|
750
|
-
required: ["
|
|
884
|
+
required: ["from", "to", "edgeType"],
|
|
751
885
|
response: {
|
|
752
886
|
description: "The created edge",
|
|
753
887
|
fields: {
|
|
@@ -761,6 +895,240 @@ var CREATE_EDGE = {
|
|
|
761
895
|
ontologyPrimitive: "edge",
|
|
762
896
|
tier: "showcase"
|
|
763
897
|
};
|
|
898
|
+
var UPDATE_EDGE = {
|
|
899
|
+
name: "update_edge",
|
|
900
|
+
description: "Amend metadata on an existing graph edge. Like `git commit --amend` \u2014 changes the edge annotation without recreating the relationship.",
|
|
901
|
+
parameters: {
|
|
902
|
+
edgeId: { type: "string", description: "Edge ID or global ID to update" },
|
|
903
|
+
weight: { type: "number", description: "Updated edge weight" },
|
|
904
|
+
confidence: { type: "number", description: "Updated confidence" },
|
|
905
|
+
context: { type: "string", description: "Updated human-readable context" },
|
|
906
|
+
derivationType: { type: "string", description: "Updated derivation type" },
|
|
907
|
+
metadata: { type: "object", description: "Updated metadata" }
|
|
908
|
+
},
|
|
909
|
+
required: ["edgeId"],
|
|
910
|
+
response: {
|
|
911
|
+
description: "Edge update result",
|
|
912
|
+
fields: { success: "boolean" }
|
|
913
|
+
},
|
|
914
|
+
ownerModule: "graph-primitives",
|
|
915
|
+
ontologyPrimitive: "edge",
|
|
916
|
+
tier: "workhorse"
|
|
917
|
+
};
|
|
918
|
+
var REMOVE_EDGE = {
|
|
919
|
+
name: "remove_edge",
|
|
920
|
+
description: "Remove one graph edge by ID. Like `git rm` \u2014 deletes a single explicit relationship from the spine.",
|
|
921
|
+
parameters: {
|
|
922
|
+
edgeId: { type: "string", description: "Edge ID or global ID to remove" }
|
|
923
|
+
},
|
|
924
|
+
required: ["edgeId"],
|
|
925
|
+
response: {
|
|
926
|
+
description: "Edge removal result",
|
|
927
|
+
fields: { success: "boolean" }
|
|
928
|
+
},
|
|
929
|
+
ownerModule: "graph-primitives",
|
|
930
|
+
ontologyPrimitive: "edge",
|
|
931
|
+
tier: "workhorse"
|
|
932
|
+
};
|
|
933
|
+
var REMOVE_EDGES_BETWEEN = {
|
|
934
|
+
name: "remove_edges_between",
|
|
935
|
+
description: "Remove graph edges between two nodes. Like `git rm <pathspec>` \u2014 deletes relationships matching a source, target, and optional type.",
|
|
936
|
+
parameters: {
|
|
937
|
+
fromNodeId: { type: "string", description: "Source node ID or global ID" },
|
|
938
|
+
toNodeId: { type: "string", description: "Target node ID or global ID" },
|
|
939
|
+
edgeType: { type: "string", description: "Optional edge type filter" }
|
|
940
|
+
},
|
|
941
|
+
required: ["fromNodeId", "toNodeId"],
|
|
942
|
+
response: {
|
|
943
|
+
description: "Matched edge removal result",
|
|
944
|
+
fields: { deleted: "number" }
|
|
945
|
+
},
|
|
946
|
+
ownerModule: "graph-primitives",
|
|
947
|
+
ontologyPrimitive: "edge",
|
|
948
|
+
tier: "workhorse"
|
|
949
|
+
};
|
|
950
|
+
var BATCH_CREATE_EDGES = {
|
|
951
|
+
name: "batch_create_edges",
|
|
952
|
+
description: "Commit multiple typed graph edges. Like `git commit` with many staged paths \u2014 writes a batch of explicit relationships atomically per edge.",
|
|
953
|
+
parameters: {
|
|
954
|
+
edges: {
|
|
955
|
+
type: "array",
|
|
956
|
+
description: "Edges to create, each with from, to, edgeType, and optional weight/confidence/context."
|
|
957
|
+
},
|
|
958
|
+
skipLayerValidation: {
|
|
959
|
+
type: "boolean",
|
|
960
|
+
description: "Skip kernel layer validation for trusted materialization flows."
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
required: ["edges"],
|
|
964
|
+
response: {
|
|
965
|
+
description: "Batch edge creation result",
|
|
966
|
+
fields: {
|
|
967
|
+
created: "number",
|
|
968
|
+
results: "array",
|
|
969
|
+
errors: "array"
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
ownerModule: "graph-primitives",
|
|
973
|
+
ontologyPrimitive: "edge",
|
|
974
|
+
tier: "workhorse"
|
|
975
|
+
};
|
|
976
|
+
var CREATE_EPISTEMIC_NODE = {
|
|
977
|
+
name: "create_epistemic_node",
|
|
978
|
+
description: "Commit a generic epistemic graph node. Like `git commit` \u2014 creates a canonical node in the public spine for topics, beliefs, evidence, questions, answers, sources, and entities.",
|
|
979
|
+
parameters: {
|
|
980
|
+
globalId: { type: "string", description: "Optional idempotent node global ID" },
|
|
981
|
+
nodeType: { type: "string", description: "Public epistemic node type" },
|
|
982
|
+
canonicalText: { type: "string", description: "Canonical node text" },
|
|
983
|
+
text: { type: "string", description: "Alias for canonicalText" },
|
|
984
|
+
contentHash: { type: "string", description: "Optional idempotency content hash" },
|
|
985
|
+
sourceType: { type: "string", description: "Source type for provenance" },
|
|
986
|
+
topicId: { type: "string", description: "Optional topic scope" },
|
|
987
|
+
content: { type: "string", description: "Extended content" },
|
|
988
|
+
title: { type: "string", description: "Display title" },
|
|
989
|
+
metadata: { type: "object", description: "Optional node metadata" }
|
|
990
|
+
},
|
|
991
|
+
required: ["nodeType"],
|
|
992
|
+
response: {
|
|
993
|
+
description: "Created node result",
|
|
994
|
+
fields: {
|
|
995
|
+
nodeId: "string",
|
|
996
|
+
nodeGlobalId: "string",
|
|
997
|
+
isDuplicate: "boolean"
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
ownerModule: "reasoning-kernel",
|
|
1001
|
+
ontologyPrimitive: "graph",
|
|
1002
|
+
tier: "showcase"
|
|
1003
|
+
};
|
|
1004
|
+
var GET_EPISTEMIC_NODE = {
|
|
1005
|
+
name: "get_epistemic_node",
|
|
1006
|
+
description: "Read one epistemic graph node. Like `git show` \u2014 resolves a canonical spine node by ID or global ID.",
|
|
1007
|
+
parameters: {
|
|
1008
|
+
nodeId: { type: "string", description: "Node ID or global ID" }
|
|
1009
|
+
},
|
|
1010
|
+
required: ["nodeId"],
|
|
1011
|
+
response: {
|
|
1012
|
+
description: "The resolved node",
|
|
1013
|
+
fields: { node: "object" }
|
|
1014
|
+
},
|
|
1015
|
+
ownerModule: "reasoning-kernel",
|
|
1016
|
+
ontologyPrimitive: "graph",
|
|
1017
|
+
tier: "workhorse"
|
|
1018
|
+
};
|
|
1019
|
+
var LIST_EPISTEMIC_NODES = {
|
|
1020
|
+
name: "list_epistemic_nodes",
|
|
1021
|
+
description: "List epistemic graph nodes. Like `git ls-tree` \u2014 lists canonical spine nodes by topic, type, status, or search query.",
|
|
1022
|
+
parameters: {
|
|
1023
|
+
topicId: { type: "string", description: "Optional topic scope" },
|
|
1024
|
+
nodeType: { type: "string", description: "Optional node type filter" },
|
|
1025
|
+
status: { type: "string", description: "Optional lifecycle status" },
|
|
1026
|
+
searchQuery: { type: "string", description: "Optional text search query" },
|
|
1027
|
+
limit: { type: "number", description: "Maximum nodes to return" }
|
|
1028
|
+
},
|
|
1029
|
+
required: [],
|
|
1030
|
+
response: {
|
|
1031
|
+
description: "Matching nodes",
|
|
1032
|
+
fields: { nodes: "array" }
|
|
1033
|
+
},
|
|
1034
|
+
ownerModule: "reasoning-kernel",
|
|
1035
|
+
ontologyPrimitive: "graph",
|
|
1036
|
+
tier: "workhorse"
|
|
1037
|
+
};
|
|
1038
|
+
var UPDATE_EPISTEMIC_NODE = {
|
|
1039
|
+
name: "update_epistemic_node",
|
|
1040
|
+
description: "Amend an epistemic graph node. Like `git commit --amend` \u2014 updates mutable node metadata, text, status, or verification fields.",
|
|
1041
|
+
parameters: {
|
|
1042
|
+
nodeId: { type: "string", description: "Node ID or global ID" },
|
|
1043
|
+
canonicalText: { type: "string", description: "Updated canonical text" },
|
|
1044
|
+
text: { type: "string", description: "Alias for canonicalText" },
|
|
1045
|
+
contentHash: { type: "string", description: "Updated content hash" },
|
|
1046
|
+
content: { type: "string", description: "Updated content" },
|
|
1047
|
+
title: { type: "string", description: "Updated display title" },
|
|
1048
|
+
metadata: { type: "object", description: "Updated metadata" },
|
|
1049
|
+
confidence: { type: "number", description: "Updated confidence" },
|
|
1050
|
+
verificationStatus: { type: "string", description: "Updated verification status" },
|
|
1051
|
+
status: { type: "string", description: "Updated lifecycle status" }
|
|
1052
|
+
},
|
|
1053
|
+
required: ["nodeId"],
|
|
1054
|
+
response: {
|
|
1055
|
+
description: "Node update result",
|
|
1056
|
+
fields: { success: "boolean" }
|
|
1057
|
+
},
|
|
1058
|
+
ownerModule: "reasoning-kernel",
|
|
1059
|
+
ontologyPrimitive: "graph",
|
|
1060
|
+
tier: "workhorse"
|
|
1061
|
+
};
|
|
1062
|
+
var ARCHIVE_EPISTEMIC_NODE = {
|
|
1063
|
+
name: "archive_epistemic_node",
|
|
1064
|
+
description: "Archive an epistemic graph node. Like `git rm --cached` \u2014 removes a node from active traversal without hard-deleting it.",
|
|
1065
|
+
parameters: {
|
|
1066
|
+
nodeId: { type: "string", description: "Node ID or global ID" }
|
|
1067
|
+
},
|
|
1068
|
+
required: ["nodeId"],
|
|
1069
|
+
response: {
|
|
1070
|
+
description: "Archive result",
|
|
1071
|
+
fields: { success: "boolean", effectiveStatus: "string" }
|
|
1072
|
+
},
|
|
1073
|
+
ownerModule: "reasoning-kernel",
|
|
1074
|
+
ontologyPrimitive: "graph",
|
|
1075
|
+
tier: "workhorse"
|
|
1076
|
+
};
|
|
1077
|
+
var VERIFY_EPISTEMIC_NODE = {
|
|
1078
|
+
name: "verify_epistemic_node",
|
|
1079
|
+
description: "Record verification state on an epistemic graph node. Like `git tag` \u2014 marks the node with a reviewed verification state.",
|
|
1080
|
+
parameters: {
|
|
1081
|
+
nodeId: { type: "string", description: "Node ID or global ID" },
|
|
1082
|
+
verificationStatus: { type: "string", description: "Verification status" },
|
|
1083
|
+
confidence: { type: "number", description: "Optional confidence update" }
|
|
1084
|
+
},
|
|
1085
|
+
required: ["nodeId", "verificationStatus"],
|
|
1086
|
+
response: {
|
|
1087
|
+
description: "Verification result",
|
|
1088
|
+
fields: { success: "boolean" }
|
|
1089
|
+
},
|
|
1090
|
+
ownerModule: "reasoning-kernel",
|
|
1091
|
+
ontologyPrimitive: "graph",
|
|
1092
|
+
tier: "workhorse"
|
|
1093
|
+
};
|
|
1094
|
+
var SUPERSEDE_EPISTEMIC_NODE = {
|
|
1095
|
+
name: "supersede_epistemic_node",
|
|
1096
|
+
description: "Supersede an epistemic graph node with a new version. Like `git commit --amend` on an immutable history branch \u2014 creates the replacement and marks the old node superseded.",
|
|
1097
|
+
parameters: {
|
|
1098
|
+
oldNodeId: { type: "string", description: "Node ID or global ID to supersede" },
|
|
1099
|
+
newGlobalId: { type: "string", description: "Optional replacement global ID" },
|
|
1100
|
+
newCanonicalText: { type: "string", description: "Replacement canonical text" },
|
|
1101
|
+
text: { type: "string", description: "Alias for newCanonicalText" },
|
|
1102
|
+
newContentHash: { type: "string", description: "Optional replacement content hash" },
|
|
1103
|
+
reason: { type: "string", description: "Reason for superseding" }
|
|
1104
|
+
},
|
|
1105
|
+
required: ["oldNodeId"],
|
|
1106
|
+
response: {
|
|
1107
|
+
description: "Supersede result",
|
|
1108
|
+
fields: { oldNodeId: "string", newNodeId: "string" }
|
|
1109
|
+
},
|
|
1110
|
+
ownerModule: "reasoning-kernel",
|
|
1111
|
+
ontologyPrimitive: "graph",
|
|
1112
|
+
tier: "workhorse"
|
|
1113
|
+
};
|
|
1114
|
+
var BATCH_CREATE_EPISTEMIC_NODES = {
|
|
1115
|
+
name: "batch_create_epistemic_nodes",
|
|
1116
|
+
description: "Commit multiple epistemic graph nodes. Like `git commit` with many staged files \u2014 writes a batch of canonical spine nodes.",
|
|
1117
|
+
parameters: {
|
|
1118
|
+
nodes: {
|
|
1119
|
+
type: "array",
|
|
1120
|
+
description: "Nodes to create with nodeType, canonicalText/text, and optional metadata."
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
required: ["nodes"],
|
|
1124
|
+
response: {
|
|
1125
|
+
description: "Batch node creation result",
|
|
1126
|
+
fields: { created: "number", results: "array" }
|
|
1127
|
+
},
|
|
1128
|
+
ownerModule: "reasoning-kernel",
|
|
1129
|
+
ontologyPrimitive: "graph",
|
|
1130
|
+
tier: "workhorse"
|
|
1131
|
+
};
|
|
764
1132
|
var RECORD_JUDGMENT = {
|
|
765
1133
|
name: "record_judgment",
|
|
766
1134
|
description: "Record a judgment \u2014 an irreversible commitment based on the current epistemic state. Like a `git tag` marking a release. A judgment synthesizes beliefs, evidence, and uncertainties into a determination. Once issued, a judgment is evaluated against the epistemic state that existed when it was made (knowledge horizon evaluation, Invariant #10).",
|
|
@@ -1058,6 +1426,74 @@ var GET_GRAPH_STRUCTURE_ANALYSIS = {
|
|
|
1058
1426
|
ontologyPrimitive: "graph",
|
|
1059
1427
|
tier: "showcase"
|
|
1060
1428
|
};
|
|
1429
|
+
var LIST_GRAPH_INTELLIGENCE_QUERIES = {
|
|
1430
|
+
name: "list_graph_intelligence_queries",
|
|
1431
|
+
description: "List the Graph Intelligence query catalog that powers structural graph analysis experiences. Returns categories, query IDs, prompt templates, modes, and the public tool plan each query can use.",
|
|
1432
|
+
parameters: {
|
|
1433
|
+
categoryId: {
|
|
1434
|
+
type: "string",
|
|
1435
|
+
description: "Optional category filter, such as problems or strategic"
|
|
1436
|
+
},
|
|
1437
|
+
mode: {
|
|
1438
|
+
type: "string",
|
|
1439
|
+
description: "Optional mode filter: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1440
|
+
}
|
|
1441
|
+
},
|
|
1442
|
+
required: [],
|
|
1443
|
+
response: {
|
|
1444
|
+
description: "Graph Intelligence query catalog and mode-to-tool mapping",
|
|
1445
|
+
fields: {
|
|
1446
|
+
categories: "array \u2014 query categories",
|
|
1447
|
+
queries: "array \u2014 query definitions with prompt templates and tools",
|
|
1448
|
+
quickQueries: "array \u2014 recommended one-click query presets",
|
|
1449
|
+
publicToolNamesByMode: "object \u2014 public tool names available to each Graph Intelligence mode"
|
|
1450
|
+
}
|
|
1451
|
+
},
|
|
1452
|
+
ownerModule: "graph-intelligence",
|
|
1453
|
+
ontologyPrimitive: "graph",
|
|
1454
|
+
tier: "showcase"
|
|
1455
|
+
};
|
|
1456
|
+
var RUN_GRAPH_INTELLIGENCE_QUERY = {
|
|
1457
|
+
name: "run_graph_intelligence_query",
|
|
1458
|
+
description: "Run a named Graph Intelligence query against a tenant topic graph. Returns the selected query, prompt, deterministic graph-analysis bundle, graph context, and public tool plan for model synthesis.",
|
|
1459
|
+
parameters: {
|
|
1460
|
+
topicId: { type: "string", description: "Topic to analyze" },
|
|
1461
|
+
queryId: {
|
|
1462
|
+
type: "string",
|
|
1463
|
+
description: "Graph Intelligence query ID, such as confirmation-bias, pre-mortem, or thesis-summary"
|
|
1464
|
+
},
|
|
1465
|
+
prompt: {
|
|
1466
|
+
type: "string",
|
|
1467
|
+
description: "Optional custom prompt for custom analysis runs"
|
|
1468
|
+
},
|
|
1469
|
+
input: {
|
|
1470
|
+
type: "string",
|
|
1471
|
+
description: "Optional entity, theme, belief, company, or search text for input-driven queries"
|
|
1472
|
+
},
|
|
1473
|
+
mode: {
|
|
1474
|
+
type: "string",
|
|
1475
|
+
description: "Optional mode override: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1476
|
+
},
|
|
1477
|
+
limit: {
|
|
1478
|
+
type: "number",
|
|
1479
|
+
description: "Maximum graph context rows to return"
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
required: ["topicId"],
|
|
1483
|
+
response: {
|
|
1484
|
+
description: "Graph Intelligence query result bundle ready for model or prompt-library synthesis",
|
|
1485
|
+
fields: {
|
|
1486
|
+
query: "object \u2014 selected query definition",
|
|
1487
|
+
prompt: "string \u2014 resolved prompt template",
|
|
1488
|
+
toolPlan: "array \u2014 public tools and args the model can call next",
|
|
1489
|
+
analysis: "object \u2014 structure, coverage, gap, and confirmation-bias analysis",
|
|
1490
|
+
context: "object \u2014 sampled beliefs, questions, evidence, edges, and contradictions"
|
|
1491
|
+
}
|
|
1492
|
+
},
|
|
1493
|
+
ownerModule: "graph-intelligence",
|
|
1494
|
+
ontologyPrimitive: "graph",
|
|
1495
|
+
tier: "showcase"
|
|
1496
|
+
};
|
|
1061
1497
|
var GET_FALSIFICATION_QUESTIONS = {
|
|
1062
1498
|
name: "get_falsification_questions",
|
|
1063
1499
|
description: "Generate Popperian falsification questions for beliefs. Like `git test` \u2014 identifies the questions most likely to disprove current beliefs. Karl Popper as a tool: surfaces what would need to be true to invalidate each belief.",
|
|
@@ -1906,15 +2342,15 @@ var IDENTITY_WHOAMI = {
|
|
|
1906
2342
|
};
|
|
1907
2343
|
var COMPILE_CONTEXT = {
|
|
1908
2344
|
name: "compile_context",
|
|
1909
|
-
description: "Compile a focused reasoning context
|
|
2345
|
+
description: "Compile a focused reasoning context. If topicId is omitted, Lucern resolves the best topic from the query. Like `git log --graph --decorate` for the reasoning substrate \u2014 returns the canonical Pillar 3 context pack through the public API shape.",
|
|
1910
2346
|
parameters: {
|
|
1911
2347
|
topicId: {
|
|
1912
2348
|
type: "string",
|
|
1913
|
-
description: "
|
|
2349
|
+
description: "Optional topic scope ID. Omit to resolve the topic from query."
|
|
1914
2350
|
},
|
|
1915
2351
|
query: {
|
|
1916
2352
|
type: "string",
|
|
1917
|
-
description: "
|
|
2353
|
+
description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
|
|
1918
2354
|
},
|
|
1919
2355
|
budget: {
|
|
1920
2356
|
type: "number",
|
|
@@ -1938,7 +2374,7 @@ var COMPILE_CONTEXT = {
|
|
|
1938
2374
|
description: "Include related ontological entities in the compiled result"
|
|
1939
2375
|
}
|
|
1940
2376
|
},
|
|
1941
|
-
required: [
|
|
2377
|
+
required: [],
|
|
1942
2378
|
response: {
|
|
1943
2379
|
description: "Compiled context pack for the requested topic",
|
|
1944
2380
|
fields: {
|
|
@@ -2112,18 +2548,64 @@ var CREATE_TASK = {
|
|
|
2112
2548
|
name: "create_task",
|
|
2113
2549
|
description: "Create an execution task tied to the reasoning state. Like `git task` \u2014 tracks concrete work items (calls to make, data to gather, analyses to run) linked to questions, beliefs, or worktrees.",
|
|
2114
2550
|
parameters: {
|
|
2115
|
-
title: { type: "string", description: "Task
|
|
2551
|
+
title: { type: "string", description: "Task title" },
|
|
2116
2552
|
topicId: { type: "string", description: "Topic scope" },
|
|
2553
|
+
description: {
|
|
2554
|
+
type: "string",
|
|
2555
|
+
description: "Long-form task description"
|
|
2556
|
+
},
|
|
2117
2557
|
taskType: {
|
|
2118
2558
|
type: "string",
|
|
2119
|
-
description: "
|
|
2120
|
-
enum: [
|
|
2559
|
+
description: "Task taxonomy",
|
|
2560
|
+
enum: [
|
|
2561
|
+
"general",
|
|
2562
|
+
"find_evidence",
|
|
2563
|
+
"verify_claim",
|
|
2564
|
+
"research",
|
|
2565
|
+
"review",
|
|
2566
|
+
"interview",
|
|
2567
|
+
"analysis",
|
|
2568
|
+
"track_metrics"
|
|
2569
|
+
]
|
|
2570
|
+
},
|
|
2571
|
+
priority: {
|
|
2572
|
+
type: "string",
|
|
2573
|
+
description: "Priority",
|
|
2574
|
+
enum: ["urgent", "high", "medium", "low"]
|
|
2575
|
+
},
|
|
2576
|
+
status: {
|
|
2577
|
+
type: "string",
|
|
2578
|
+
description: "Initial status (defaults to todo)",
|
|
2579
|
+
enum: ["todo", "in_progress", "blocked", "done"]
|
|
2580
|
+
},
|
|
2581
|
+
linkedWorktreeId: {
|
|
2582
|
+
type: "string",
|
|
2583
|
+
description: "Worktree this task belongs to"
|
|
2584
|
+
},
|
|
2585
|
+
linkedBeliefId: {
|
|
2586
|
+
type: "string",
|
|
2587
|
+
description: "Belief this task supports"
|
|
2121
2588
|
},
|
|
2122
2589
|
linkedQuestionId: {
|
|
2123
2590
|
type: "string",
|
|
2124
2591
|
description: "Question this task addresses"
|
|
2125
2592
|
},
|
|
2126
|
-
|
|
2593
|
+
assigneeId: {
|
|
2594
|
+
type: "string",
|
|
2595
|
+
description: "Principal assigned to the task"
|
|
2596
|
+
},
|
|
2597
|
+
dueDate: {
|
|
2598
|
+
type: "number",
|
|
2599
|
+
description: "Due date as epoch milliseconds"
|
|
2600
|
+
},
|
|
2601
|
+
tags: {
|
|
2602
|
+
type: "array",
|
|
2603
|
+
description: "Free-form string tags"
|
|
2604
|
+
},
|
|
2605
|
+
metadata: {
|
|
2606
|
+
type: "object",
|
|
2607
|
+
description: "Structured task metadata for handoff context and routing hints"
|
|
2608
|
+
}
|
|
2127
2609
|
},
|
|
2128
2610
|
required: ["title"],
|
|
2129
2611
|
response: {
|
|
@@ -2196,6 +2678,10 @@ var UPDATE_TASK = {
|
|
|
2196
2678
|
type: "string",
|
|
2197
2679
|
description: "Updated status",
|
|
2198
2680
|
enum: ["todo", "in_progress", "blocked", "done"]
|
|
2681
|
+
},
|
|
2682
|
+
metadata: {
|
|
2683
|
+
type: "object",
|
|
2684
|
+
description: "Structured task metadata to replace or refine"
|
|
2199
2685
|
}
|
|
2200
2686
|
},
|
|
2201
2687
|
required: ["taskId"],
|
|
@@ -2243,6 +2729,10 @@ var CREATE_TOPIC = {
|
|
|
2243
2729
|
name: "create_topic",
|
|
2244
2730
|
description: "Create a new topic container for scoping knowledge. Like `git init` \u2014 initializes a new repository for a knowledge domain. Topics are hierarchical: a deal topic can nest under a theme topic. Types: domain, theme, deal, strategy, constitution, project, portfolio.",
|
|
2245
2731
|
parameters: {
|
|
2732
|
+
globalId: {
|
|
2733
|
+
type: "string",
|
|
2734
|
+
description: "Optional idempotent topic global ID"
|
|
2735
|
+
},
|
|
2246
2736
|
name: { type: "string", description: "Topic name" },
|
|
2247
2737
|
type: {
|
|
2248
2738
|
type: "string",
|
|
@@ -2253,6 +2743,18 @@ var CREATE_TOPIC = {
|
|
|
2253
2743
|
type: "string",
|
|
2254
2744
|
description: "Optional parent topic for nesting"
|
|
2255
2745
|
},
|
|
2746
|
+
parentTopicGlobalId: {
|
|
2747
|
+
type: "string",
|
|
2748
|
+
description: "Optional parent topic global ID for nesting"
|
|
2749
|
+
},
|
|
2750
|
+
tenantId: { type: "string", description: "Optional tenant scope" },
|
|
2751
|
+
workspaceId: { type: "string", description: "Optional workspace scope" },
|
|
2752
|
+
visibility: {
|
|
2753
|
+
type: "string",
|
|
2754
|
+
description: "Topic visibility",
|
|
2755
|
+
enum: ["private", "team", "firm", "external", "public"]
|
|
2756
|
+
},
|
|
2757
|
+
metadata: { type: "object", description: "Optional topic metadata" },
|
|
2256
2758
|
createdBy: { type: "string", description: "Who created this topic" }
|
|
2257
2759
|
},
|
|
2258
2760
|
required: ["name", "type"],
|
|
@@ -2261,6 +2763,9 @@ var CREATE_TOPIC = {
|
|
|
2261
2763
|
fields: {
|
|
2262
2764
|
id: "string \u2014 topic ID",
|
|
2263
2765
|
globalId: "string \u2014 globally unique ID",
|
|
2766
|
+
topicGlobalId: "string \u2014 topic global ID",
|
|
2767
|
+
epistemicNodeId: "string \u2014 materialized topic node ID",
|
|
2768
|
+
epistemicNodeGlobalId: "string \u2014 materialized topic node global ID",
|
|
2264
2769
|
depth: "number \u2014 nesting depth"
|
|
2265
2770
|
}
|
|
2266
2771
|
},
|
|
@@ -2391,6 +2896,65 @@ var GET_TOPIC_TREE = {
|
|
|
2391
2896
|
ontologyPrimitive: "graph",
|
|
2392
2897
|
tier: "workhorse"
|
|
2393
2898
|
};
|
|
2899
|
+
var MATERIALIZE_TOPIC_GRAPH = {
|
|
2900
|
+
name: "materialize_topic_graph",
|
|
2901
|
+
description: "Backfill the topic graph spine. Like `git fsck --connectivity-only` with repair enabled \u2014 creates missing topic nodes and parent-child edges idempotently.",
|
|
2902
|
+
parameters: {
|
|
2903
|
+
rootTopicId: {
|
|
2904
|
+
type: "string",
|
|
2905
|
+
description: "Optional root topic for a bounded materialization pass"
|
|
2906
|
+
},
|
|
2907
|
+
dryRun: {
|
|
2908
|
+
type: "boolean",
|
|
2909
|
+
description: "When true, report missing rows without writing them"
|
|
2910
|
+
}
|
|
2911
|
+
},
|
|
2912
|
+
required: [],
|
|
2913
|
+
response: {
|
|
2914
|
+
description: "Topic graph materialization counts",
|
|
2915
|
+
fields: {
|
|
2916
|
+
topicsSeen: "number",
|
|
2917
|
+
nodesCreated: "number",
|
|
2918
|
+
nodesExisting: "number",
|
|
2919
|
+
edgesCreated: "number",
|
|
2920
|
+
edgesExisting: "number",
|
|
2921
|
+
errors: "array"
|
|
2922
|
+
}
|
|
2923
|
+
},
|
|
2924
|
+
ownerModule: "reasoning-kernel",
|
|
2925
|
+
ontologyPrimitive: "graph",
|
|
2926
|
+
tier: "workhorse"
|
|
2927
|
+
};
|
|
2928
|
+
var GET_TOPIC_GRAPH_SPINE = {
|
|
2929
|
+
name: "get_topic_graph_spine",
|
|
2930
|
+
description: "Verify the topic graph spine. Like `git fsck` \u2014 reads topics, materialized topic nodes, parent-child edges, and missing spine rows.",
|
|
2931
|
+
parameters: {
|
|
2932
|
+
rootTopicId: {
|
|
2933
|
+
type: "string",
|
|
2934
|
+
description: "Optional root topic for a bounded verifier pass"
|
|
2935
|
+
},
|
|
2936
|
+
includeTopicBeliefEdges: {
|
|
2937
|
+
type: "boolean",
|
|
2938
|
+
description: "Include topic -> belief edges in the verifier payload"
|
|
2939
|
+
}
|
|
2940
|
+
},
|
|
2941
|
+
required: [],
|
|
2942
|
+
response: {
|
|
2943
|
+
description: "Topic graph spine verification payload",
|
|
2944
|
+
fields: {
|
|
2945
|
+
ok: "boolean",
|
|
2946
|
+
counts: "object",
|
|
2947
|
+
topics: "array",
|
|
2948
|
+
topicNodes: "array",
|
|
2949
|
+
parentEdges: "array",
|
|
2950
|
+
missingTopicNodes: "array",
|
|
2951
|
+
missingParentEdges: "array"
|
|
2952
|
+
}
|
|
2953
|
+
},
|
|
2954
|
+
ownerModule: "reasoning-kernel",
|
|
2955
|
+
ontologyPrimitive: "graph",
|
|
2956
|
+
tier: "workhorse"
|
|
2957
|
+
};
|
|
2394
2958
|
var GET_CODE_CONTEXT = {
|
|
2395
2959
|
name: "get_code_context",
|
|
2396
2960
|
description: "Returns code-grounded beliefs, contracts, migration states, and failed attempts anchored to a specific file or function path. Like `git log -- <path>` \u2014 filters the knowledge graph to nodes anchored to a file path via metadata.codeAnchors. Results are separated by coding belief type: decisions, contracts, migrations, patterns, deprecations, and failures.",
|
|
@@ -3523,6 +4087,72 @@ var GENERATE_SESSION_HANDOFF = {
|
|
|
3523
4087
|
tier: "showcase",
|
|
3524
4088
|
internal: true
|
|
3525
4089
|
};
|
|
4090
|
+
var BEGIN_BUILD_SESSION = {
|
|
4091
|
+
name: "begin_build_session",
|
|
4092
|
+
description: "Bootstrap a coding build session for a Lucern worktree. Like `git worktree add` plus `git status` \u2014 returns the compact context packet an agent needs before editing.",
|
|
4093
|
+
parameters: {
|
|
4094
|
+
worktreeId: {
|
|
4095
|
+
type: "string",
|
|
4096
|
+
description: "The Lucern worktree ID to bootstrap."
|
|
4097
|
+
},
|
|
4098
|
+
branch: {
|
|
4099
|
+
type: "string",
|
|
4100
|
+
description: "Optional git branch name. Auto-generated from the worktree name when omitted."
|
|
4101
|
+
},
|
|
4102
|
+
branchBase: {
|
|
4103
|
+
type: "string",
|
|
4104
|
+
description: 'Base branch for the feature branch. Default: "staging".'
|
|
4105
|
+
},
|
|
4106
|
+
prBase: {
|
|
4107
|
+
type: "string",
|
|
4108
|
+
description: 'Target branch for the PR. Default: "staging".'
|
|
4109
|
+
},
|
|
4110
|
+
sessionMode: {
|
|
4111
|
+
type: "string",
|
|
4112
|
+
description: 'Session mode: "async" for Codex/headless or "interactive" for live sessions.',
|
|
4113
|
+
enum: ["async", "interactive"]
|
|
4114
|
+
},
|
|
4115
|
+
activateIfPlanning: {
|
|
4116
|
+
type: "boolean",
|
|
4117
|
+
description: "When true, automatically activate a planning worktree during bootstrap."
|
|
4118
|
+
}
|
|
4119
|
+
},
|
|
4120
|
+
required: ["worktreeId"],
|
|
4121
|
+
response: {
|
|
4122
|
+
description: "A compact build-session packet with worktree metadata, graph anchors, questions, dependencies, and git defaults.",
|
|
4123
|
+
fields: {
|
|
4124
|
+
topicId: "string \u2014 canonical topic scope",
|
|
4125
|
+
topicName: "string \u2014 human-readable topic name",
|
|
4126
|
+
worktreeId: "string \u2014 worktree ID",
|
|
4127
|
+
worktreeName: "string \u2014 human-readable worktree name",
|
|
4128
|
+
branch: "string \u2014 git branch name",
|
|
4129
|
+
branchBase: "string \u2014 base branch",
|
|
4130
|
+
prBase: "string \u2014 PR target branch",
|
|
4131
|
+
campaign: "number | null \u2014 top-level pipeline campaign",
|
|
4132
|
+
lane: "string \u2014 campaign lane",
|
|
4133
|
+
gate: "string \u2014 exit gate",
|
|
4134
|
+
hypothesis: "string \u2014 worktree hypothesis",
|
|
4135
|
+
focus: "string \u2014 session focus",
|
|
4136
|
+
status: "string \u2014 worktree status after optional activation",
|
|
4137
|
+
sessionMode: "string \u2014 async | interactive",
|
|
4138
|
+
targetBeliefIds: "array \u2014 scoped belief IDs",
|
|
4139
|
+
targetQuestionIds: "array \u2014 scoped question IDs",
|
|
4140
|
+
taskIds: "array \u2014 assigned task IDs for this worktree",
|
|
4141
|
+
incompleteTaskIds: "array \u2014 assigned task IDs that still require done/deferred/blocked proof",
|
|
4142
|
+
tasks: "array \u2014 assigned task packet with id, title, status, priority, links, and summaries",
|
|
4143
|
+
topBeliefs: "array \u2014 highest-confidence scoped beliefs",
|
|
4144
|
+
openQuestions: "array \u2014 open scoped questions",
|
|
4145
|
+
resolvedDecisions: "array \u2014 answered questions summarized for the session",
|
|
4146
|
+
dependencies: "array \u2014 upstream worktrees",
|
|
4147
|
+
unblocks: "array \u2014 downstream worktrees",
|
|
4148
|
+
mergeOrderNotes: "string \u2014 merge ordering advisory"
|
|
4149
|
+
}
|
|
4150
|
+
},
|
|
4151
|
+
ownerModule: "bootstrap",
|
|
4152
|
+
ontologyPrimitive: "worktree",
|
|
4153
|
+
tier: "showcase",
|
|
4154
|
+
internal: true
|
|
4155
|
+
};
|
|
3526
4156
|
var MCP_TOOL_CONTRACTS = {
|
|
3527
4157
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
3528
4158
|
create_belief: CREATE_BELIEF,
|
|
@@ -3565,11 +4195,26 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3565
4195
|
bisect_confidence: BISECT_CONFIDENCE,
|
|
3566
4196
|
// Edges (commit)
|
|
3567
4197
|
create_edge: CREATE_EDGE,
|
|
4198
|
+
update_edge: UPDATE_EDGE,
|
|
4199
|
+
remove_edge: REMOVE_EDGE,
|
|
4200
|
+
remove_edges_between: REMOVE_EDGES_BETWEEN,
|
|
4201
|
+
batch_create_edges: BATCH_CREATE_EDGES,
|
|
4202
|
+
// Epistemic node spine (commit/amend/show)
|
|
4203
|
+
create_epistemic_node: CREATE_EPISTEMIC_NODE,
|
|
4204
|
+
get_epistemic_node: GET_EPISTEMIC_NODE,
|
|
4205
|
+
list_epistemic_nodes: LIST_EPISTEMIC_NODES,
|
|
4206
|
+
update_epistemic_node: UPDATE_EPISTEMIC_NODE,
|
|
4207
|
+
archive_epistemic_node: ARCHIVE_EPISTEMIC_NODE,
|
|
4208
|
+
verify_epistemic_node: VERIFY_EPISTEMIC_NODE,
|
|
4209
|
+
supersede_epistemic_node: SUPERSEDE_EPISTEMIC_NODE,
|
|
4210
|
+
batch_create_epistemic_nodes: BATCH_CREATE_EPISTEMIC_NODES,
|
|
3568
4211
|
// Judgments (tag)
|
|
3569
4212
|
record_judgment: RECORD_JUDGMENT,
|
|
3570
4213
|
// Graph intelligence (showcase)
|
|
3571
4214
|
detect_confirmation_bias: DETECT_CONFIRMATION_BIAS,
|
|
3572
4215
|
get_graph_structure_analysis: GET_GRAPH_STRUCTURE_ANALYSIS,
|
|
4216
|
+
list_graph_intelligence_queries: LIST_GRAPH_INTELLIGENCE_QUERIES,
|
|
4217
|
+
run_graph_intelligence_query: RUN_GRAPH_INTELLIGENCE_QUERY,
|
|
3573
4218
|
get_falsification_questions: GET_FALSIFICATION_QUESTIONS,
|
|
3574
4219
|
// Evidence operations (workhorse)
|
|
3575
4220
|
search_evidence: SEARCH_EVIDENCE,
|
|
@@ -3616,6 +4261,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3616
4261
|
get_agent_inbox: GET_AGENT_INBOX,
|
|
3617
4262
|
claim_files: CLAIM_FILES,
|
|
3618
4263
|
generate_session_handoff: GENERATE_SESSION_HANDOFF,
|
|
4264
|
+
begin_build_session: BEGIN_BUILD_SESSION,
|
|
3619
4265
|
// Policy / ACL (workhorse)
|
|
3620
4266
|
check_permission: CHECK_PERMISSION,
|
|
3621
4267
|
filter_by_permission: FILTER_BY_PERMISSION,
|
|
@@ -3635,6 +4281,8 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3635
4281
|
get_topic: GET_TOPIC,
|
|
3636
4282
|
update_topic: UPDATE_TOPIC,
|
|
3637
4283
|
get_topic_tree: GET_TOPIC_TREE,
|
|
4284
|
+
materialize_topic_graph: MATERIALIZE_TOPIC_GRAPH,
|
|
4285
|
+
get_topic_graph_spine: GET_TOPIC_GRAPH_SPINE,
|
|
3638
4286
|
// Coding intelligence (code-grounded knowledge)
|
|
3639
4287
|
get_code_context: GET_CODE_CONTEXT,
|
|
3640
4288
|
get_change_history: GET_CHANGE_HISTORY,
|
|
@@ -3739,18 +4387,34 @@ var MCP_CORE_OPERATION_NAMES = [
|
|
|
3739
4387
|
"find_missing_questions",
|
|
3740
4388
|
"get_high_priority_questions",
|
|
3741
4389
|
"get_falsification_questions",
|
|
4390
|
+
"create_epistemic_node",
|
|
4391
|
+
"get_epistemic_node",
|
|
4392
|
+
"list_epistemic_nodes",
|
|
4393
|
+
"update_epistemic_node",
|
|
4394
|
+
"archive_epistemic_node",
|
|
4395
|
+
"verify_epistemic_node",
|
|
4396
|
+
"supersede_epistemic_node",
|
|
4397
|
+
"batch_create_epistemic_nodes",
|
|
3742
4398
|
"create_topic",
|
|
3743
4399
|
"get_topic",
|
|
3744
4400
|
"list_topics",
|
|
3745
4401
|
"update_topic",
|
|
3746
|
-
"get_topic_tree"
|
|
4402
|
+
"get_topic_tree",
|
|
4403
|
+
"materialize_topic_graph",
|
|
4404
|
+
"get_topic_graph_spine"
|
|
3747
4405
|
];
|
|
3748
4406
|
var MCP_ANALYSIS_PLATFORM_OPERATION_NAMES = [
|
|
3749
4407
|
"create_edge",
|
|
4408
|
+
"update_edge",
|
|
4409
|
+
"remove_edge",
|
|
4410
|
+
"remove_edges_between",
|
|
4411
|
+
"batch_create_edges",
|
|
3750
4412
|
"query_lineage",
|
|
3751
4413
|
"traverse_graph",
|
|
3752
4414
|
"get_graph_neighborhood",
|
|
3753
4415
|
"get_graph_structure_analysis",
|
|
4416
|
+
"list_graph_intelligence_queries",
|
|
4417
|
+
"run_graph_intelligence_query",
|
|
3754
4418
|
"find_contradictions",
|
|
3755
4419
|
"flag_contradiction",
|
|
3756
4420
|
"detect_confirmation_bias",
|
|
@@ -3829,6 +4493,7 @@ var PLATFORM_INTERNAL_OPERATION_NAMES = [
|
|
|
3829
4493
|
"get_change_history",
|
|
3830
4494
|
"get_failure_log",
|
|
3831
4495
|
"record_attempt",
|
|
4496
|
+
"begin_build_session",
|
|
3832
4497
|
"push",
|
|
3833
4498
|
"open_pull_request",
|
|
3834
4499
|
"record_judgment",
|
|
@@ -3883,7 +4548,6 @@ var SDK_ONLY_OPERATION_NAMES = [
|
|
|
3883
4548
|
"find_semantic_orphans"
|
|
3884
4549
|
];
|
|
3885
4550
|
var MCP_ONLY_INTERNAL_OPERATION_NAMES = [
|
|
3886
|
-
"begin_build_session",
|
|
3887
4551
|
"evaluate_engineering_contract",
|
|
3888
4552
|
"evaluate_research_contract"
|
|
3889
4553
|
];
|
|
@@ -3980,6 +4644,13 @@ var LUCERN_OPERATION_MANIFEST = {
|
|
|
3980
4644
|
"Lucern MCP-only platform operation for local agent/bootstrap or verification workflows. Hidden from public discovery."
|
|
3981
4645
|
)
|
|
3982
4646
|
};
|
|
4647
|
+
z.enum(["decision", "belief", "question", "theme", "deal", "topic", "claim", "evidence", "synthesis", "answer", "atomic_fact", "excerpt", "source", "company", "person", "investor", "function", "value_chain"]);
|
|
4648
|
+
var EDGE_TYPE_VALUES = ["supports", "informs", "depends_on", "derived_from", "contains", "tests", "supersedes", "responds_to", "belongs_to", "relates_to_thesis", "works_at", "invested_in", "competes_with", "participates_in", "founded_by", "evaluates", "performs", "function_in", "impacts", "raised_from", "mentioned_in", "perspective_on", "plays_theme", "answers", "explores", "qualifies", "based_on", "based_on_belief", "based_on_question", "blocked_by_contradiction", "informed_by_theme", "same_as", "reinforces", "parent_of", "child_of", "falsified_by", "exclusive_with", "collapses_if", "cascade_from", "counterfactual_of", "cascade_to", "mutually_exclusive", "correlates_with", "amplifies", "precondition_for", "in_tension_with", "strengthened_by", "weakened_by", "alternative_to", "subsumes", "validated_by", "required_for", "blocks", "prerequisite_for", "parallel_to", "corroborates", "extends", "same_source_as", "same_theme_as", "assumes", "would_predict", "analogous_to", "independent_of", "implements", "violates", "co_changes_with", "migrating_from", "migrating_to", "scoped_by", "about_entity", "entity_referenced_in", "contradicts", "cites", "summarizes", "related_to", "partially_answers", "refines", "branches_from"];
|
|
4649
|
+
var STORAGE_EDGE_TYPE_VALUES = [...EDGE_TYPE_VALUES, "extracted_from"];
|
|
4650
|
+
z.enum(EDGE_TYPE_VALUES);
|
|
4651
|
+
z.enum(STORAGE_EDGE_TYPE_VALUES);
|
|
4652
|
+
z.enum(["active", "archived", "watching"]);
|
|
4653
|
+
z.enum(["private", "team", "firm", "external", "public"]);
|
|
3983
4654
|
|
|
3984
4655
|
// src/function-registry/helpers.ts
|
|
3985
4656
|
var jsonObjectSchema = z.record(z.unknown());
|
|
@@ -4076,12 +4747,20 @@ function unwrapMcpParameterSchema(schema) {
|
|
|
4076
4747
|
current = current._def.schema;
|
|
4077
4748
|
continue;
|
|
4078
4749
|
default:
|
|
4079
|
-
return {
|
|
4750
|
+
return {
|
|
4751
|
+
schema: current,
|
|
4752
|
+
required,
|
|
4753
|
+
description: description ?? current.description
|
|
4754
|
+
};
|
|
4080
4755
|
}
|
|
4081
4756
|
}
|
|
4082
4757
|
}
|
|
4083
4758
|
function mcpParameterFromZod(fieldName, schema, contractName) {
|
|
4084
|
-
const {
|
|
4759
|
+
const {
|
|
4760
|
+
schema: unwrapped,
|
|
4761
|
+
required,
|
|
4762
|
+
description: schemaDescription
|
|
4763
|
+
} = unwrapMcpParameterSchema(schema);
|
|
4085
4764
|
const description = schemaDescription ?? unwrapped.description ?? fieldName;
|
|
4086
4765
|
switch (unwrapped._def.typeName) {
|
|
4087
4766
|
case z.ZodFirstPartyTypeKind.ZodString:
|
|
@@ -4126,10 +4805,12 @@ function mcpContractFromArgsSchema(base, args, contractName) {
|
|
|
4126
4805
|
const entries2 = Object.entries(getObjectShape(args)).sort(
|
|
4127
4806
|
([left], [right]) => left.localeCompare(right)
|
|
4128
4807
|
);
|
|
4129
|
-
const converted = entries2.map(
|
|
4130
|
-
fieldName,
|
|
4131
|
-
|
|
4132
|
-
|
|
4808
|
+
const converted = entries2.map(
|
|
4809
|
+
([fieldName, schema]) => [
|
|
4810
|
+
fieldName,
|
|
4811
|
+
mcpParameterFromZod(fieldName, schema, contractName)
|
|
4812
|
+
]
|
|
4813
|
+
);
|
|
4133
4814
|
return {
|
|
4134
4815
|
...base,
|
|
4135
4816
|
parameters: Object.fromEntries(
|
|
@@ -4138,9 +4819,7 @@ function mcpContractFromArgsSchema(base, args, contractName) {
|
|
|
4138
4819
|
required: converted.filter(([, field]) => field.required).map(([fieldName]) => fieldName)
|
|
4139
4820
|
};
|
|
4140
4821
|
}
|
|
4141
|
-
|
|
4142
|
-
return contract;
|
|
4143
|
-
}
|
|
4822
|
+
var defineFunctionContract = (contract) => contract;
|
|
4144
4823
|
function compactRecord(input) {
|
|
4145
4824
|
return Object.fromEntries(
|
|
4146
4825
|
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
@@ -4225,6 +4904,7 @@ function surfaceContract(args) {
|
|
|
4225
4904
|
allowedPrincipalTypes: ["user", "service", "agent"]
|
|
4226
4905
|
},
|
|
4227
4906
|
convex: args.convex,
|
|
4907
|
+
gateway: args.gateway,
|
|
4228
4908
|
args: canonicalArgs,
|
|
4229
4909
|
returns: canonicalReturns,
|
|
4230
4910
|
input,
|
|
@@ -4244,12 +4924,17 @@ function defineProjection(def) {
|
|
|
4244
4924
|
// src/projections/list-tasks.projection.ts
|
|
4245
4925
|
var taskStatusSchema = z.enum(["todo", "in_progress", "blocked", "done"]).optional().describe("Filter by task status");
|
|
4246
4926
|
var listTasksInputSchema = z.object({
|
|
4247
|
-
topicId: z.string().describe("Topic scope"),
|
|
4927
|
+
topicId: z.string().optional().describe("Topic scope"),
|
|
4248
4928
|
worktreeId: z.string().optional().describe("Alias for linkedWorktreeId"),
|
|
4249
4929
|
linkedWorktreeId: z.string().optional().describe("Filter to tasks linked to this worktree"),
|
|
4250
4930
|
status: taskStatusSchema,
|
|
4251
4931
|
limit: z.number().optional().describe("Maximum results")
|
|
4252
|
-
})
|
|
4932
|
+
}).refine(
|
|
4933
|
+
(input) => Boolean(input.topicId || input.worktreeId || input.linkedWorktreeId),
|
|
4934
|
+
{
|
|
4935
|
+
message: "topicId or worktreeId is required"
|
|
4936
|
+
}
|
|
4937
|
+
);
|
|
4253
4938
|
function compactRecord2(input) {
|
|
4254
4939
|
return Object.fromEntries(
|
|
4255
4940
|
Object.entries(input).filter(([, value]) => value !== void 0)
|
|
@@ -4266,7 +4951,7 @@ var listTasksProjection = defineProjection({
|
|
|
4266
4951
|
linkedWorktreeId: input.linkedWorktreeId ?? input.worktreeId
|
|
4267
4952
|
}),
|
|
4268
4953
|
convexArgsValidator: v.object({
|
|
4269
|
-
topicId: v.string(),
|
|
4954
|
+
topicId: v.optional(v.string()),
|
|
4270
4955
|
status: v.optional(
|
|
4271
4956
|
v.union(
|
|
4272
4957
|
v.literal("todo"),
|
|
@@ -4281,6 +4966,48 @@ var listTasksProjection = defineProjection({
|
|
|
4281
4966
|
});
|
|
4282
4967
|
|
|
4283
4968
|
// src/function-registry/tasks.ts
|
|
4969
|
+
var taskPrioritySchema = z.enum(["urgent", "high", "medium", "low"]);
|
|
4970
|
+
var taskStatusSchema2 = z.enum(["todo", "in_progress", "blocked", "done"]);
|
|
4971
|
+
var taskTypeSchema = z.enum([
|
|
4972
|
+
"general",
|
|
4973
|
+
"find_evidence",
|
|
4974
|
+
"verify_claim",
|
|
4975
|
+
"research",
|
|
4976
|
+
"review",
|
|
4977
|
+
"interview",
|
|
4978
|
+
"analysis",
|
|
4979
|
+
"track_metrics"
|
|
4980
|
+
]);
|
|
4981
|
+
var createTaskArgs = z.object({
|
|
4982
|
+
title: z.string().describe("Task title."),
|
|
4983
|
+
topicId: z.string().optional().describe("Topic scope."),
|
|
4984
|
+
description: z.string().optional().describe("Long-form task description."),
|
|
4985
|
+
taskType: taskTypeSchema.optional().describe("Task taxonomy."),
|
|
4986
|
+
priority: taskPrioritySchema.optional().describe("Priority. Defaults to medium when omitted by the server."),
|
|
4987
|
+
status: taskStatusSchema2.optional().describe("Initial status. Defaults to todo."),
|
|
4988
|
+
linkedWorktreeId: z.string().optional().describe("Worktree this task belongs to."),
|
|
4989
|
+
linkedBeliefId: z.string().optional().describe("Belief this task supports."),
|
|
4990
|
+
linkedQuestionId: z.string().optional().describe("Question this task addresses."),
|
|
4991
|
+
assigneeId: z.string().optional().describe("Principal assigned to the task."),
|
|
4992
|
+
dueDate: z.number().optional().describe("Due date as epoch milliseconds."),
|
|
4993
|
+
tags: z.array(z.string()).optional().describe("Free-form tags."),
|
|
4994
|
+
metadata: z.record(z.unknown()).optional().describe("Structured task metadata for handoff context and routing hints.")
|
|
4995
|
+
});
|
|
4996
|
+
var createTaskInput = (input) => compactRecord({
|
|
4997
|
+
title: input.title,
|
|
4998
|
+
topicId: input.topicId,
|
|
4999
|
+
description: input.description,
|
|
5000
|
+
taskType: input.taskType,
|
|
5001
|
+
priority: input.priority ?? "medium",
|
|
5002
|
+
status: input.status ?? "todo",
|
|
5003
|
+
linkedWorktreeId: input.linkedWorktreeId,
|
|
5004
|
+
linkedBeliefId: input.linkedBeliefId,
|
|
5005
|
+
linkedQuestionId: input.linkedQuestionId,
|
|
5006
|
+
assigneeId: input.assigneeId,
|
|
5007
|
+
dueDate: input.dueDate,
|
|
5008
|
+
tags: input.tags,
|
|
5009
|
+
metadata: input.metadata
|
|
5010
|
+
});
|
|
4284
5011
|
var taskInput = (input) => compactRecord({
|
|
4285
5012
|
...input,
|
|
4286
5013
|
taskId: input.taskId ?? input.id
|
|
@@ -4296,8 +5023,7 @@ var taskTopicInput = (input) => {
|
|
|
4296
5023
|
};
|
|
4297
5024
|
var completeTaskInput = (input) => compactRecord({
|
|
4298
5025
|
taskId: input.taskId ?? input.id,
|
|
4299
|
-
outputSummary: input.outputSummary ?? input.summary
|
|
4300
|
-
userId: input.userId
|
|
5026
|
+
outputSummary: input.outputSummary ?? input.summary
|
|
4301
5027
|
});
|
|
4302
5028
|
var tasksContracts = [
|
|
4303
5029
|
surfaceContract({
|
|
@@ -4312,8 +5038,11 @@ var tasksContracts = [
|
|
|
4312
5038
|
convex: {
|
|
4313
5039
|
module: "tasks",
|
|
4314
5040
|
functionName: "create",
|
|
4315
|
-
kind: "mutation"
|
|
4316
|
-
|
|
5041
|
+
kind: "mutation",
|
|
5042
|
+
inputProjection: createTaskInput
|
|
5043
|
+
},
|
|
5044
|
+
gateway: { handler: "tasks.create" },
|
|
5045
|
+
args: createTaskArgs
|
|
4317
5046
|
}),
|
|
4318
5047
|
surfaceContract({
|
|
4319
5048
|
name: "list_tasks",
|
|
@@ -4331,6 +5060,7 @@ var tasksContracts = [
|
|
|
4331
5060
|
kind: "query",
|
|
4332
5061
|
inputProjection: taskTopicInput
|
|
4333
5062
|
},
|
|
5063
|
+
gateway: { handler: "tasks.list" },
|
|
4334
5064
|
args: listTasksInputSchema
|
|
4335
5065
|
}),
|
|
4336
5066
|
surfaceContract({
|
|
@@ -4348,7 +5078,8 @@ var tasksContracts = [
|
|
|
4348
5078
|
functionName: "update",
|
|
4349
5079
|
kind: "mutation",
|
|
4350
5080
|
inputProjection: taskInput
|
|
4351
|
-
}
|
|
5081
|
+
},
|
|
5082
|
+
gateway: { handler: "tasks.update" }
|
|
4352
5083
|
}),
|
|
4353
5084
|
surfaceContract({
|
|
4354
5085
|
name: "complete_task",
|
|
@@ -4364,7 +5095,8 @@ var tasksContracts = [
|
|
|
4364
5095
|
functionName: "complete",
|
|
4365
5096
|
kind: "mutation",
|
|
4366
5097
|
inputProjection: completeTaskInput
|
|
4367
|
-
}
|
|
5098
|
+
},
|
|
5099
|
+
gateway: { handler: "tasks.complete" }
|
|
4368
5100
|
})
|
|
4369
5101
|
];
|
|
4370
5102
|
|