@lucern/contracts 0.3.0-alpha.1 → 0.3.0-alpha.10
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/component-boundary.contract.d.ts +14 -0
- package/dist/component-boundary.contract.js +155 -0
- package/dist/component-boundary.contract.js.map +1 -0
- package/dist/component-host-boundary.contract.d.ts +41 -0
- package/dist/component-host-boundary.contract.js +54 -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/{dsl-BgpoVOVQ.d.ts → dsl-djCRfuWC.d.ts} +1 -1
- package/dist/dsl.d.ts +1 -1
- 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 +41 -41
- package/dist/function-registry/beliefs.js +709 -31
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +694 -31
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +13 -13
- package/dist/function-registry/context.js +700 -35
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +665 -28
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +665 -28
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.d.ts +156 -0
- package/dist/function-registry/edges.js +876 -60
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +33 -33
- package/dist/function-registry/evidence.js +717 -37
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +131 -53
- package/dist/function-registry/graph.js +781 -35
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +3 -3
- package/dist/function-registry/helpers.js +665 -28
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +665 -28
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +321 -7
- package/dist/function-registry/index.js +1046 -33
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +9 -9
- package/dist/function-registry/judgments.js +677 -31
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +665 -28
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +17 -17
- package/dist/function-registry/lenses.js +688 -31
- 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/ontologies.d.ts +45 -45
- package/dist/function-registry/ontologies.js +683 -34
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +13 -13
- package/dist/function-registry/pipeline.js +674 -31
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +49 -49
- package/dist/function-registry/questions.js +762 -36
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.d.ts +17 -17
- package/dist/function-registry/tasks.js +709 -30
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +99 -21
- package/dist/function-registry/topics.js +747 -32
- package/dist/function-registry/topics.js.map +1 -1
- package/dist/function-registry/types.d.ts +1 -1
- package/dist/function-registry/worktrees.d.ts +80 -41
- package/dist/function-registry/worktrees.js +804 -40
- 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 +2 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +4 -3
- package/dist/generated/convexSchemas.js.map +1 -1
- package/dist/generated/schema-manifest.json +49 -3
- package/dist/generated/tableOwnership.d.ts +2 -1
- package/dist/generated/tableOwnership.js +2 -0
- package/dist/generated/tableOwnership.js.map +1 -1
- package/dist/generated/tier-expectations.json +4 -2
- 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-CV-0_VWJ.d.ts → index-O09U2xHk.d.ts} +5 -2
- package/dist/index.d.ts +24 -413
- package/dist/index.js +3286 -136
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +174 -0
- package/dist/infisical-runtime.contract.js +317 -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 +151 -0
- package/dist/manifests/infisical-runtime-manifest.js +316 -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 +181 -0
- package/dist/mcp-gateway-boundary.contract.js +43 -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 +399 -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 +131 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +348 -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 +32 -0
- package/dist/projections/list-tasks.projection.js +52 -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/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 +2 -2
- 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 +1 -1
- package/dist/schemas/index.js +45 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +1030 -890
- package/dist/schemas/manifest.js +44 -3
- package/dist/schemas/manifest.js.map +1 -1
- package/dist/schemas/sl-opinion.d.ts +4 -4
- package/dist/schemas/tables/identity/platform.d.ts +10 -10
- package/dist/schemas/tables/kernel/epistemic.d.ts +6 -6
- package/dist/schemas/tables/kernel/infra.d.ts +4 -4
- package/dist/schemas/tables/kernel/intelligence.d.ts +10 -10
- package/dist/schemas/tables/kernel/lens.d.ts +4 -4
- package/dist/schemas/tables/kernel/platform.d.ts +12 -12
- package/dist/schemas/tables/kernel/spine.d.ts +3 -3
- package/dist/schemas/tables/kernel/spine.js +5 -2
- package/dist/schemas/tables/kernel/spine.js.map +1 -1
- package/dist/schemas/tables/kernel/task.d.ts +42 -42
- package/dist/schemas/tables/kernel/topic.js +5 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +58 -58
- package/dist/schemas/tables/mc/identity.d.ts +26 -3
- package/dist/schemas/tables/mc/identity.js +35 -1
- package/dist/schemas/tables/mc/identity.js.map +1 -1
- package/dist/schemas/tables/mc/pack.d.ts +20 -20
- package/dist/schemas/tables/mc/registry.d.ts +4 -4
- package/dist/schemas/tables/mc/workspace.d.ts +9 -3
- package/dist/schemas/tables/mc/workspace.js +3 -1
- 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 +646 -23
- package/dist/sdk-tools.contract.js.map +1 -1
- package/dist/tenant-bootstrap-seed.contract.d.ts +1101 -0
- package/dist/tenant-bootstrap-seed.contract.js +653 -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 +647 -24
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +9 -1
|
@@ -418,7 +418,22 @@ var ADD_WORKTREE = {
|
|
|
418
418
|
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.",
|
|
419
419
|
parameters: {
|
|
420
420
|
title: { type: "string", description: "Worktree name/objective" },
|
|
421
|
-
|
|
421
|
+
name: {
|
|
422
|
+
type: "string",
|
|
423
|
+
description: "Optional storage-name alias for callers that already use backend naming"
|
|
424
|
+
},
|
|
425
|
+
projectId: {
|
|
426
|
+
type: "string",
|
|
427
|
+
description: "Legacy topicId alias or resolver hint"
|
|
428
|
+
},
|
|
429
|
+
topicId: {
|
|
430
|
+
type: "string",
|
|
431
|
+
description: "Optional topic scope hint for resolver validation"
|
|
432
|
+
},
|
|
433
|
+
topicHint: {
|
|
434
|
+
type: "string",
|
|
435
|
+
description: "Natural-language topic hint for automatic topic resolution"
|
|
436
|
+
},
|
|
422
437
|
branchId: {
|
|
423
438
|
type: "string",
|
|
424
439
|
description: "The branch this worktree investigates"
|
|
@@ -431,18 +446,107 @@ var ADD_WORKTREE = {
|
|
|
431
446
|
type: "string",
|
|
432
447
|
description: "The testable claim this worktree investigates"
|
|
433
448
|
},
|
|
449
|
+
rationale: {
|
|
450
|
+
type: "string",
|
|
451
|
+
description: "Why this worktree exists and why it belongs in the campaign"
|
|
452
|
+
},
|
|
453
|
+
worktreeType: {
|
|
454
|
+
type: "string",
|
|
455
|
+
description: "Schema-enum worktree type used by the kernel lifecycle and retrieval layers"
|
|
456
|
+
},
|
|
457
|
+
gate: {
|
|
458
|
+
type: "string",
|
|
459
|
+
description: "Exit gate name for this worktree"
|
|
460
|
+
},
|
|
461
|
+
startDate: {
|
|
462
|
+
type: "number",
|
|
463
|
+
description: "Planned start timestamp in milliseconds since epoch"
|
|
464
|
+
},
|
|
465
|
+
endDate: {
|
|
466
|
+
type: "number",
|
|
467
|
+
description: "Planned end timestamp in milliseconds since epoch"
|
|
468
|
+
},
|
|
469
|
+
durationWeeks: {
|
|
470
|
+
type: "number",
|
|
471
|
+
description: "Planned duration in weeks"
|
|
472
|
+
},
|
|
473
|
+
confidenceImpact: {
|
|
474
|
+
type: "string",
|
|
475
|
+
description: "Expected confidence impact if the worktree succeeds",
|
|
476
|
+
enum: ["high", "medium", "low"]
|
|
477
|
+
},
|
|
478
|
+
beliefFocus: {
|
|
479
|
+
type: "string",
|
|
480
|
+
description: "Natural-language focus spanning the target belief neighborhood"
|
|
481
|
+
},
|
|
434
482
|
beliefIds: {
|
|
435
483
|
type: "array",
|
|
436
|
-
description: "
|
|
484
|
+
description: "Legacy alias for targetBeliefIds"
|
|
485
|
+
},
|
|
486
|
+
beliefs: {
|
|
487
|
+
type: "array",
|
|
488
|
+
description: "Legacy alias for targetBeliefIds"
|
|
489
|
+
},
|
|
490
|
+
targetBeliefIds: {
|
|
491
|
+
type: "array",
|
|
492
|
+
description: "Belief node IDs this worktree is expected to test or update"
|
|
493
|
+
},
|
|
494
|
+
targetQuestionIds: {
|
|
495
|
+
type: "array",
|
|
496
|
+
description: "Question node IDs this worktree is expected to answer"
|
|
497
|
+
},
|
|
498
|
+
keyQuestions: {
|
|
499
|
+
type: "array",
|
|
500
|
+
description: "Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId"
|
|
501
|
+
},
|
|
502
|
+
evidenceSignals: {
|
|
503
|
+
type: "array",
|
|
504
|
+
description: "Evidence signal objects with signal, optional collected state, progress, and notes"
|
|
505
|
+
},
|
|
506
|
+
decisionGate: {
|
|
507
|
+
type: "object",
|
|
508
|
+
description: "Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy"
|
|
509
|
+
},
|
|
510
|
+
goCriteria: {
|
|
511
|
+
type: "array",
|
|
512
|
+
description: "Shorthand go criteria used to build decisionGate"
|
|
513
|
+
},
|
|
514
|
+
noGoSignals: {
|
|
515
|
+
type: "array",
|
|
516
|
+
description: "Shorthand no-go signals used to build decisionGate"
|
|
517
|
+
},
|
|
518
|
+
proofArtifacts: {
|
|
519
|
+
type: "array",
|
|
520
|
+
description: "Expected proof artifacts required to close the worktree"
|
|
437
521
|
},
|
|
438
522
|
autoShape: {
|
|
439
523
|
type: "boolean",
|
|
440
524
|
description: "Whether to invoke inquiry auto-shaping during worktree creation"
|
|
441
525
|
},
|
|
526
|
+
autoFixPolicy: {
|
|
527
|
+
type: "object",
|
|
528
|
+
description: "Policy for permitted automatic remediation inside the worktree"
|
|
529
|
+
},
|
|
442
530
|
domainPackId: {
|
|
443
531
|
type: "string",
|
|
444
532
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
445
533
|
},
|
|
534
|
+
tags: {
|
|
535
|
+
type: "array",
|
|
536
|
+
description: "Additional topic-resolution tags for the worktree"
|
|
537
|
+
},
|
|
538
|
+
touchedPaths: {
|
|
539
|
+
type: "array",
|
|
540
|
+
description: "File paths used as topic-resolution signals"
|
|
541
|
+
},
|
|
542
|
+
sourceRef: {
|
|
543
|
+
type: "string",
|
|
544
|
+
description: "Source reference used as a topic-resolution signal"
|
|
545
|
+
},
|
|
546
|
+
sourceKind: {
|
|
547
|
+
type: "string",
|
|
548
|
+
description: "Source kind used as a topic-resolution signal"
|
|
549
|
+
},
|
|
446
550
|
campaign: {
|
|
447
551
|
type: "number",
|
|
448
552
|
description: "Top-level pipeline campaign number. Campaigns define the outer execution slice."
|
|
@@ -467,12 +571,20 @@ var ADD_WORKTREE = {
|
|
|
467
571
|
type: "array",
|
|
468
572
|
description: "Worktree IDs blocked by this worktree"
|
|
469
573
|
},
|
|
470
|
-
|
|
574
|
+
staffingHint: {
|
|
471
575
|
type: "string",
|
|
472
|
-
description: "
|
|
576
|
+
description: "Suggested staffing or agent allocation note"
|
|
577
|
+
},
|
|
578
|
+
lensId: {
|
|
579
|
+
type: "string",
|
|
580
|
+
description: "Lens that scopes this worktree when applicable"
|
|
581
|
+
},
|
|
582
|
+
lastReconciledAt: {
|
|
583
|
+
type: "number",
|
|
584
|
+
description: "Timestamp when worktree metadata was last reconciled"
|
|
473
585
|
}
|
|
474
586
|
},
|
|
475
|
-
required: ["title"
|
|
587
|
+
required: ["title"],
|
|
476
588
|
response: {
|
|
477
589
|
description: "The created worktree",
|
|
478
590
|
fields: {
|
|
@@ -499,7 +611,7 @@ var MERGE = {
|
|
|
499
611
|
worktreeId: { type: "string", description: "The worktree to merge" },
|
|
500
612
|
outcomes: {
|
|
501
613
|
type: "array",
|
|
502
|
-
description: "
|
|
614
|
+
description: "Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }"
|
|
503
615
|
},
|
|
504
616
|
summary: { type: "string", description: "Overall findings summary" }
|
|
505
617
|
},
|
|
@@ -717,19 +829,23 @@ var FIND_CONTRADICTIONS = {
|
|
|
717
829
|
};
|
|
718
830
|
var CREATE_EDGE = {
|
|
719
831
|
name: "create_edge",
|
|
720
|
-
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.
|
|
832
|
+
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.",
|
|
721
833
|
parameters: {
|
|
722
|
-
|
|
723
|
-
type: "
|
|
724
|
-
description: "Source
|
|
834
|
+
from: {
|
|
835
|
+
type: "object",
|
|
836
|
+
description: "Source graph ref, e.g. { kind: 'epistemic_node', nodeId: '...', nodeType: 'topic' }"
|
|
725
837
|
},
|
|
726
|
-
|
|
727
|
-
type: "
|
|
728
|
-
description: "Target
|
|
838
|
+
to: {
|
|
839
|
+
type: "object",
|
|
840
|
+
description: "Target graph ref, e.g. { kind: 'epistemic_node', nodeId: '...', nodeType: 'belief' }"
|
|
729
841
|
},
|
|
730
842
|
edgeType: {
|
|
731
843
|
type: "string",
|
|
732
|
-
description: "Relationship type
|
|
844
|
+
description: "Relationship type from the public epistemic edge enum."
|
|
845
|
+
},
|
|
846
|
+
globalId: {
|
|
847
|
+
type: "string",
|
|
848
|
+
description: "Optional idempotent edge global ID."
|
|
733
849
|
},
|
|
734
850
|
weight: {
|
|
735
851
|
type: "number",
|
|
@@ -740,9 +856,13 @@ var CREATE_EDGE = {
|
|
|
740
856
|
type: "string",
|
|
741
857
|
description: "How this was determined",
|
|
742
858
|
enum: ["deductive", "inductive", "abductive", "analogical", "empirical"]
|
|
859
|
+
},
|
|
860
|
+
metadata: {
|
|
861
|
+
type: "object",
|
|
862
|
+
description: "Optional edge metadata."
|
|
743
863
|
}
|
|
744
864
|
},
|
|
745
|
-
required: ["
|
|
865
|
+
required: ["from", "to", "edgeType"],
|
|
746
866
|
response: {
|
|
747
867
|
description: "The created edge",
|
|
748
868
|
fields: {
|
|
@@ -756,6 +876,240 @@ var CREATE_EDGE = {
|
|
|
756
876
|
ontologyPrimitive: "edge",
|
|
757
877
|
tier: "showcase"
|
|
758
878
|
};
|
|
879
|
+
var UPDATE_EDGE = {
|
|
880
|
+
name: "update_edge",
|
|
881
|
+
description: "Amend metadata on an existing graph edge. Like `git commit --amend` \u2014 changes the edge annotation without recreating the relationship.",
|
|
882
|
+
parameters: {
|
|
883
|
+
edgeId: { type: "string", description: "Edge ID or global ID to update" },
|
|
884
|
+
weight: { type: "number", description: "Updated edge weight" },
|
|
885
|
+
confidence: { type: "number", description: "Updated confidence" },
|
|
886
|
+
context: { type: "string", description: "Updated human-readable context" },
|
|
887
|
+
derivationType: { type: "string", description: "Updated derivation type" },
|
|
888
|
+
metadata: { type: "object", description: "Updated metadata" }
|
|
889
|
+
},
|
|
890
|
+
required: ["edgeId"],
|
|
891
|
+
response: {
|
|
892
|
+
description: "Edge update result",
|
|
893
|
+
fields: { success: "boolean" }
|
|
894
|
+
},
|
|
895
|
+
ownerModule: "graph-primitives",
|
|
896
|
+
ontologyPrimitive: "edge",
|
|
897
|
+
tier: "workhorse"
|
|
898
|
+
};
|
|
899
|
+
var REMOVE_EDGE = {
|
|
900
|
+
name: "remove_edge",
|
|
901
|
+
description: "Remove one graph edge by ID. Like `git rm` \u2014 deletes a single explicit relationship from the spine.",
|
|
902
|
+
parameters: {
|
|
903
|
+
edgeId: { type: "string", description: "Edge ID or global ID to remove" }
|
|
904
|
+
},
|
|
905
|
+
required: ["edgeId"],
|
|
906
|
+
response: {
|
|
907
|
+
description: "Edge removal result",
|
|
908
|
+
fields: { success: "boolean" }
|
|
909
|
+
},
|
|
910
|
+
ownerModule: "graph-primitives",
|
|
911
|
+
ontologyPrimitive: "edge",
|
|
912
|
+
tier: "workhorse"
|
|
913
|
+
};
|
|
914
|
+
var REMOVE_EDGES_BETWEEN = {
|
|
915
|
+
name: "remove_edges_between",
|
|
916
|
+
description: "Remove graph edges between two nodes. Like `git rm <pathspec>` \u2014 deletes relationships matching a source, target, and optional type.",
|
|
917
|
+
parameters: {
|
|
918
|
+
fromNodeId: { type: "string", description: "Source node ID or global ID" },
|
|
919
|
+
toNodeId: { type: "string", description: "Target node ID or global ID" },
|
|
920
|
+
edgeType: { type: "string", description: "Optional edge type filter" }
|
|
921
|
+
},
|
|
922
|
+
required: ["fromNodeId", "toNodeId"],
|
|
923
|
+
response: {
|
|
924
|
+
description: "Matched edge removal result",
|
|
925
|
+
fields: { deleted: "number" }
|
|
926
|
+
},
|
|
927
|
+
ownerModule: "graph-primitives",
|
|
928
|
+
ontologyPrimitive: "edge",
|
|
929
|
+
tier: "workhorse"
|
|
930
|
+
};
|
|
931
|
+
var BATCH_CREATE_EDGES = {
|
|
932
|
+
name: "batch_create_edges",
|
|
933
|
+
description: "Commit multiple typed graph edges. Like `git commit` with many staged paths \u2014 writes a batch of explicit relationships atomically per edge.",
|
|
934
|
+
parameters: {
|
|
935
|
+
edges: {
|
|
936
|
+
type: "array",
|
|
937
|
+
description: "Edges to create, each with from, to, edgeType, and optional weight/confidence/context."
|
|
938
|
+
},
|
|
939
|
+
skipLayerValidation: {
|
|
940
|
+
type: "boolean",
|
|
941
|
+
description: "Skip kernel layer validation for trusted materialization flows."
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
required: ["edges"],
|
|
945
|
+
response: {
|
|
946
|
+
description: "Batch edge creation result",
|
|
947
|
+
fields: {
|
|
948
|
+
created: "number",
|
|
949
|
+
results: "array",
|
|
950
|
+
errors: "array"
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
ownerModule: "graph-primitives",
|
|
954
|
+
ontologyPrimitive: "edge",
|
|
955
|
+
tier: "workhorse"
|
|
956
|
+
};
|
|
957
|
+
var CREATE_EPISTEMIC_NODE = {
|
|
958
|
+
name: "create_epistemic_node",
|
|
959
|
+
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.",
|
|
960
|
+
parameters: {
|
|
961
|
+
globalId: { type: "string", description: "Optional idempotent node global ID" },
|
|
962
|
+
nodeType: { type: "string", description: "Public epistemic node type" },
|
|
963
|
+
canonicalText: { type: "string", description: "Canonical node text" },
|
|
964
|
+
text: { type: "string", description: "Alias for canonicalText" },
|
|
965
|
+
contentHash: { type: "string", description: "Optional idempotency content hash" },
|
|
966
|
+
sourceType: { type: "string", description: "Source type for provenance" },
|
|
967
|
+
topicId: { type: "string", description: "Optional topic scope" },
|
|
968
|
+
content: { type: "string", description: "Extended content" },
|
|
969
|
+
title: { type: "string", description: "Display title" },
|
|
970
|
+
metadata: { type: "object", description: "Optional node metadata" }
|
|
971
|
+
},
|
|
972
|
+
required: ["nodeType"],
|
|
973
|
+
response: {
|
|
974
|
+
description: "Created node result",
|
|
975
|
+
fields: {
|
|
976
|
+
nodeId: "string",
|
|
977
|
+
nodeGlobalId: "string",
|
|
978
|
+
isDuplicate: "boolean"
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
ownerModule: "reasoning-kernel",
|
|
982
|
+
ontologyPrimitive: "graph",
|
|
983
|
+
tier: "showcase"
|
|
984
|
+
};
|
|
985
|
+
var GET_EPISTEMIC_NODE = {
|
|
986
|
+
name: "get_epistemic_node",
|
|
987
|
+
description: "Read one epistemic graph node. Like `git show` \u2014 resolves a canonical spine node by ID or global ID.",
|
|
988
|
+
parameters: {
|
|
989
|
+
nodeId: { type: "string", description: "Node ID or global ID" }
|
|
990
|
+
},
|
|
991
|
+
required: ["nodeId"],
|
|
992
|
+
response: {
|
|
993
|
+
description: "The resolved node",
|
|
994
|
+
fields: { node: "object" }
|
|
995
|
+
},
|
|
996
|
+
ownerModule: "reasoning-kernel",
|
|
997
|
+
ontologyPrimitive: "graph",
|
|
998
|
+
tier: "workhorse"
|
|
999
|
+
};
|
|
1000
|
+
var LIST_EPISTEMIC_NODES = {
|
|
1001
|
+
name: "list_epistemic_nodes",
|
|
1002
|
+
description: "List epistemic graph nodes. Like `git ls-tree` \u2014 lists canonical spine nodes by topic, type, status, or search query.",
|
|
1003
|
+
parameters: {
|
|
1004
|
+
topicId: { type: "string", description: "Optional topic scope" },
|
|
1005
|
+
nodeType: { type: "string", description: "Optional node type filter" },
|
|
1006
|
+
status: { type: "string", description: "Optional lifecycle status" },
|
|
1007
|
+
searchQuery: { type: "string", description: "Optional text search query" },
|
|
1008
|
+
limit: { type: "number", description: "Maximum nodes to return" }
|
|
1009
|
+
},
|
|
1010
|
+
required: [],
|
|
1011
|
+
response: {
|
|
1012
|
+
description: "Matching nodes",
|
|
1013
|
+
fields: { nodes: "array" }
|
|
1014
|
+
},
|
|
1015
|
+
ownerModule: "reasoning-kernel",
|
|
1016
|
+
ontologyPrimitive: "graph",
|
|
1017
|
+
tier: "workhorse"
|
|
1018
|
+
};
|
|
1019
|
+
var UPDATE_EPISTEMIC_NODE = {
|
|
1020
|
+
name: "update_epistemic_node",
|
|
1021
|
+
description: "Amend an epistemic graph node. Like `git commit --amend` \u2014 updates mutable node metadata, text, status, or verification fields.",
|
|
1022
|
+
parameters: {
|
|
1023
|
+
nodeId: { type: "string", description: "Node ID or global ID" },
|
|
1024
|
+
canonicalText: { type: "string", description: "Updated canonical text" },
|
|
1025
|
+
text: { type: "string", description: "Alias for canonicalText" },
|
|
1026
|
+
contentHash: { type: "string", description: "Updated content hash" },
|
|
1027
|
+
content: { type: "string", description: "Updated content" },
|
|
1028
|
+
title: { type: "string", description: "Updated display title" },
|
|
1029
|
+
metadata: { type: "object", description: "Updated metadata" },
|
|
1030
|
+
confidence: { type: "number", description: "Updated confidence" },
|
|
1031
|
+
verificationStatus: { type: "string", description: "Updated verification status" },
|
|
1032
|
+
status: { type: "string", description: "Updated lifecycle status" }
|
|
1033
|
+
},
|
|
1034
|
+
required: ["nodeId"],
|
|
1035
|
+
response: {
|
|
1036
|
+
description: "Node update result",
|
|
1037
|
+
fields: { success: "boolean" }
|
|
1038
|
+
},
|
|
1039
|
+
ownerModule: "reasoning-kernel",
|
|
1040
|
+
ontologyPrimitive: "graph",
|
|
1041
|
+
tier: "workhorse"
|
|
1042
|
+
};
|
|
1043
|
+
var ARCHIVE_EPISTEMIC_NODE = {
|
|
1044
|
+
name: "archive_epistemic_node",
|
|
1045
|
+
description: "Archive an epistemic graph node. Like `git rm --cached` \u2014 removes a node from active traversal without hard-deleting it.",
|
|
1046
|
+
parameters: {
|
|
1047
|
+
nodeId: { type: "string", description: "Node ID or global ID" }
|
|
1048
|
+
},
|
|
1049
|
+
required: ["nodeId"],
|
|
1050
|
+
response: {
|
|
1051
|
+
description: "Archive result",
|
|
1052
|
+
fields: { success: "boolean", effectiveStatus: "string" }
|
|
1053
|
+
},
|
|
1054
|
+
ownerModule: "reasoning-kernel",
|
|
1055
|
+
ontologyPrimitive: "graph",
|
|
1056
|
+
tier: "workhorse"
|
|
1057
|
+
};
|
|
1058
|
+
var VERIFY_EPISTEMIC_NODE = {
|
|
1059
|
+
name: "verify_epistemic_node",
|
|
1060
|
+
description: "Record verification state on an epistemic graph node. Like `git tag` \u2014 marks the node with a reviewed verification state.",
|
|
1061
|
+
parameters: {
|
|
1062
|
+
nodeId: { type: "string", description: "Node ID or global ID" },
|
|
1063
|
+
verificationStatus: { type: "string", description: "Verification status" },
|
|
1064
|
+
confidence: { type: "number", description: "Optional confidence update" }
|
|
1065
|
+
},
|
|
1066
|
+
required: ["nodeId", "verificationStatus"],
|
|
1067
|
+
response: {
|
|
1068
|
+
description: "Verification result",
|
|
1069
|
+
fields: { success: "boolean" }
|
|
1070
|
+
},
|
|
1071
|
+
ownerModule: "reasoning-kernel",
|
|
1072
|
+
ontologyPrimitive: "graph",
|
|
1073
|
+
tier: "workhorse"
|
|
1074
|
+
};
|
|
1075
|
+
var SUPERSEDE_EPISTEMIC_NODE = {
|
|
1076
|
+
name: "supersede_epistemic_node",
|
|
1077
|
+
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.",
|
|
1078
|
+
parameters: {
|
|
1079
|
+
oldNodeId: { type: "string", description: "Node ID or global ID to supersede" },
|
|
1080
|
+
newGlobalId: { type: "string", description: "Optional replacement global ID" },
|
|
1081
|
+
newCanonicalText: { type: "string", description: "Replacement canonical text" },
|
|
1082
|
+
text: { type: "string", description: "Alias for newCanonicalText" },
|
|
1083
|
+
newContentHash: { type: "string", description: "Optional replacement content hash" },
|
|
1084
|
+
reason: { type: "string", description: "Reason for superseding" }
|
|
1085
|
+
},
|
|
1086
|
+
required: ["oldNodeId"],
|
|
1087
|
+
response: {
|
|
1088
|
+
description: "Supersede result",
|
|
1089
|
+
fields: { oldNodeId: "string", newNodeId: "string" }
|
|
1090
|
+
},
|
|
1091
|
+
ownerModule: "reasoning-kernel",
|
|
1092
|
+
ontologyPrimitive: "graph",
|
|
1093
|
+
tier: "workhorse"
|
|
1094
|
+
};
|
|
1095
|
+
var BATCH_CREATE_EPISTEMIC_NODES = {
|
|
1096
|
+
name: "batch_create_epistemic_nodes",
|
|
1097
|
+
description: "Commit multiple epistemic graph nodes. Like `git commit` with many staged files \u2014 writes a batch of canonical spine nodes.",
|
|
1098
|
+
parameters: {
|
|
1099
|
+
nodes: {
|
|
1100
|
+
type: "array",
|
|
1101
|
+
description: "Nodes to create with nodeType, canonicalText/text, and optional metadata."
|
|
1102
|
+
}
|
|
1103
|
+
},
|
|
1104
|
+
required: ["nodes"],
|
|
1105
|
+
response: {
|
|
1106
|
+
description: "Batch node creation result",
|
|
1107
|
+
fields: { created: "number", results: "array" }
|
|
1108
|
+
},
|
|
1109
|
+
ownerModule: "reasoning-kernel",
|
|
1110
|
+
ontologyPrimitive: "graph",
|
|
1111
|
+
tier: "workhorse"
|
|
1112
|
+
};
|
|
759
1113
|
var RECORD_JUDGMENT = {
|
|
760
1114
|
name: "record_judgment",
|
|
761
1115
|
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).",
|
|
@@ -1053,6 +1407,74 @@ var GET_GRAPH_STRUCTURE_ANALYSIS = {
|
|
|
1053
1407
|
ontologyPrimitive: "graph",
|
|
1054
1408
|
tier: "showcase"
|
|
1055
1409
|
};
|
|
1410
|
+
var LIST_GRAPH_INTELLIGENCE_QUERIES = {
|
|
1411
|
+
name: "list_graph_intelligence_queries",
|
|
1412
|
+
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.",
|
|
1413
|
+
parameters: {
|
|
1414
|
+
categoryId: {
|
|
1415
|
+
type: "string",
|
|
1416
|
+
description: "Optional category filter, such as problems or strategic"
|
|
1417
|
+
},
|
|
1418
|
+
mode: {
|
|
1419
|
+
type: "string",
|
|
1420
|
+
description: "Optional mode filter: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
required: [],
|
|
1424
|
+
response: {
|
|
1425
|
+
description: "Graph Intelligence query catalog and mode-to-tool mapping",
|
|
1426
|
+
fields: {
|
|
1427
|
+
categories: "array \u2014 query categories",
|
|
1428
|
+
queries: "array \u2014 query definitions with prompt templates and tools",
|
|
1429
|
+
quickQueries: "array \u2014 recommended one-click query presets",
|
|
1430
|
+
publicToolNamesByMode: "object \u2014 public tool names available to each Graph Intelligence mode"
|
|
1431
|
+
}
|
|
1432
|
+
},
|
|
1433
|
+
ownerModule: "graph-intelligence",
|
|
1434
|
+
ontologyPrimitive: "graph",
|
|
1435
|
+
tier: "showcase"
|
|
1436
|
+
};
|
|
1437
|
+
var RUN_GRAPH_INTELLIGENCE_QUERY = {
|
|
1438
|
+
name: "run_graph_intelligence_query",
|
|
1439
|
+
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.",
|
|
1440
|
+
parameters: {
|
|
1441
|
+
topicId: { type: "string", description: "Topic to analyze" },
|
|
1442
|
+
queryId: {
|
|
1443
|
+
type: "string",
|
|
1444
|
+
description: "Graph Intelligence query ID, such as confirmation-bias, pre-mortem, or thesis-summary"
|
|
1445
|
+
},
|
|
1446
|
+
prompt: {
|
|
1447
|
+
type: "string",
|
|
1448
|
+
description: "Optional custom prompt for custom analysis runs"
|
|
1449
|
+
},
|
|
1450
|
+
input: {
|
|
1451
|
+
type: "string",
|
|
1452
|
+
description: "Optional entity, theme, belief, company, or search text for input-driven queries"
|
|
1453
|
+
},
|
|
1454
|
+
mode: {
|
|
1455
|
+
type: "string",
|
|
1456
|
+
description: "Optional mode override: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1457
|
+
},
|
|
1458
|
+
limit: {
|
|
1459
|
+
type: "number",
|
|
1460
|
+
description: "Maximum graph context rows to return"
|
|
1461
|
+
}
|
|
1462
|
+
},
|
|
1463
|
+
required: ["topicId"],
|
|
1464
|
+
response: {
|
|
1465
|
+
description: "Graph Intelligence query result bundle ready for model or prompt-library synthesis",
|
|
1466
|
+
fields: {
|
|
1467
|
+
query: "object \u2014 selected query definition",
|
|
1468
|
+
prompt: "string \u2014 resolved prompt template",
|
|
1469
|
+
toolPlan: "array \u2014 public tools and args the model can call next",
|
|
1470
|
+
analysis: "object \u2014 structure, coverage, gap, and confirmation-bias analysis",
|
|
1471
|
+
context: "object \u2014 sampled beliefs, questions, evidence, edges, and contradictions"
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
ownerModule: "graph-intelligence",
|
|
1475
|
+
ontologyPrimitive: "graph",
|
|
1476
|
+
tier: "showcase"
|
|
1477
|
+
};
|
|
1056
1478
|
var GET_FALSIFICATION_QUESTIONS = {
|
|
1057
1479
|
name: "get_falsification_questions",
|
|
1058
1480
|
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.",
|
|
@@ -1901,15 +2323,15 @@ var IDENTITY_WHOAMI = {
|
|
|
1901
2323
|
};
|
|
1902
2324
|
var COMPILE_CONTEXT = {
|
|
1903
2325
|
name: "compile_context",
|
|
1904
|
-
description: "Compile a focused reasoning context
|
|
2326
|
+
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.",
|
|
1905
2327
|
parameters: {
|
|
1906
2328
|
topicId: {
|
|
1907
2329
|
type: "string",
|
|
1908
|
-
description: "
|
|
2330
|
+
description: "Optional topic scope ID. Omit to resolve the topic from query."
|
|
1909
2331
|
},
|
|
1910
2332
|
query: {
|
|
1911
2333
|
type: "string",
|
|
1912
|
-
description: "
|
|
2334
|
+
description: "Focus query used to resolve the topic and rank context items. Required when topicId is omitted."
|
|
1913
2335
|
},
|
|
1914
2336
|
budget: {
|
|
1915
2337
|
type: "number",
|
|
@@ -1933,7 +2355,7 @@ var COMPILE_CONTEXT = {
|
|
|
1933
2355
|
description: "Include related ontological entities in the compiled result"
|
|
1934
2356
|
}
|
|
1935
2357
|
},
|
|
1936
|
-
required: [
|
|
2358
|
+
required: [],
|
|
1937
2359
|
response: {
|
|
1938
2360
|
description: "Compiled context pack for the requested topic",
|
|
1939
2361
|
fields: {
|
|
@@ -2107,18 +2529,60 @@ var CREATE_TASK = {
|
|
|
2107
2529
|
name: "create_task",
|
|
2108
2530
|
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.",
|
|
2109
2531
|
parameters: {
|
|
2110
|
-
title: { type: "string", description: "Task
|
|
2532
|
+
title: { type: "string", description: "Task title" },
|
|
2111
2533
|
topicId: { type: "string", description: "Topic scope" },
|
|
2534
|
+
description: {
|
|
2535
|
+
type: "string",
|
|
2536
|
+
description: "Long-form task description"
|
|
2537
|
+
},
|
|
2112
2538
|
taskType: {
|
|
2113
2539
|
type: "string",
|
|
2114
|
-
description: "
|
|
2115
|
-
enum: [
|
|
2540
|
+
description: "Task taxonomy",
|
|
2541
|
+
enum: [
|
|
2542
|
+
"general",
|
|
2543
|
+
"find_evidence",
|
|
2544
|
+
"verify_claim",
|
|
2545
|
+
"research",
|
|
2546
|
+
"review",
|
|
2547
|
+
"interview",
|
|
2548
|
+
"analysis",
|
|
2549
|
+
"track_metrics"
|
|
2550
|
+
]
|
|
2551
|
+
},
|
|
2552
|
+
priority: {
|
|
2553
|
+
type: "string",
|
|
2554
|
+
description: "Priority",
|
|
2555
|
+
enum: ["urgent", "high", "medium", "low"]
|
|
2556
|
+
},
|
|
2557
|
+
status: {
|
|
2558
|
+
type: "string",
|
|
2559
|
+
description: "Initial status (defaults to todo)",
|
|
2560
|
+
enum: ["todo", "in_progress", "blocked", "done"]
|
|
2561
|
+
},
|
|
2562
|
+
linkedWorktreeId: {
|
|
2563
|
+
type: "string",
|
|
2564
|
+
description: "Worktree this task belongs to"
|
|
2565
|
+
},
|
|
2566
|
+
linkedBeliefId: {
|
|
2567
|
+
type: "string",
|
|
2568
|
+
description: "Belief this task supports"
|
|
2116
2569
|
},
|
|
2117
2570
|
linkedQuestionId: {
|
|
2118
2571
|
type: "string",
|
|
2119
2572
|
description: "Question this task addresses"
|
|
2120
2573
|
},
|
|
2121
|
-
|
|
2574
|
+
assigneeId: {
|
|
2575
|
+
type: "string",
|
|
2576
|
+
description: "Principal assigned to the task"
|
|
2577
|
+
},
|
|
2578
|
+
dueDate: {
|
|
2579
|
+
type: "number",
|
|
2580
|
+
description: "Due date as epoch milliseconds"
|
|
2581
|
+
},
|
|
2582
|
+
tags: {
|
|
2583
|
+
type: "array",
|
|
2584
|
+
description: "Free-form string tags"
|
|
2585
|
+
}
|
|
2122
2586
|
},
|
|
2123
2587
|
required: ["title"],
|
|
2124
2588
|
response: {
|
|
@@ -2238,6 +2702,10 @@ var CREATE_TOPIC = {
|
|
|
2238
2702
|
name: "create_topic",
|
|
2239
2703
|
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.",
|
|
2240
2704
|
parameters: {
|
|
2705
|
+
globalId: {
|
|
2706
|
+
type: "string",
|
|
2707
|
+
description: "Optional idempotent topic global ID"
|
|
2708
|
+
},
|
|
2241
2709
|
name: { type: "string", description: "Topic name" },
|
|
2242
2710
|
type: {
|
|
2243
2711
|
type: "string",
|
|
@@ -2248,6 +2716,18 @@ var CREATE_TOPIC = {
|
|
|
2248
2716
|
type: "string",
|
|
2249
2717
|
description: "Optional parent topic for nesting"
|
|
2250
2718
|
},
|
|
2719
|
+
parentTopicGlobalId: {
|
|
2720
|
+
type: "string",
|
|
2721
|
+
description: "Optional parent topic global ID for nesting"
|
|
2722
|
+
},
|
|
2723
|
+
tenantId: { type: "string", description: "Optional tenant scope" },
|
|
2724
|
+
workspaceId: { type: "string", description: "Optional workspace scope" },
|
|
2725
|
+
visibility: {
|
|
2726
|
+
type: "string",
|
|
2727
|
+
description: "Topic visibility",
|
|
2728
|
+
enum: ["private", "team", "firm", "external", "public"]
|
|
2729
|
+
},
|
|
2730
|
+
metadata: { type: "object", description: "Optional topic metadata" },
|
|
2251
2731
|
createdBy: { type: "string", description: "Who created this topic" }
|
|
2252
2732
|
},
|
|
2253
2733
|
required: ["name", "type"],
|
|
@@ -2256,6 +2736,9 @@ var CREATE_TOPIC = {
|
|
|
2256
2736
|
fields: {
|
|
2257
2737
|
id: "string \u2014 topic ID",
|
|
2258
2738
|
globalId: "string \u2014 globally unique ID",
|
|
2739
|
+
topicGlobalId: "string \u2014 topic global ID",
|
|
2740
|
+
epistemicNodeId: "string \u2014 materialized topic node ID",
|
|
2741
|
+
epistemicNodeGlobalId: "string \u2014 materialized topic node global ID",
|
|
2259
2742
|
depth: "number \u2014 nesting depth"
|
|
2260
2743
|
}
|
|
2261
2744
|
},
|
|
@@ -2386,6 +2869,65 @@ var GET_TOPIC_TREE = {
|
|
|
2386
2869
|
ontologyPrimitive: "graph",
|
|
2387
2870
|
tier: "workhorse"
|
|
2388
2871
|
};
|
|
2872
|
+
var MATERIALIZE_TOPIC_GRAPH = {
|
|
2873
|
+
name: "materialize_topic_graph",
|
|
2874
|
+
description: "Backfill the topic graph spine. Like `git fsck --connectivity-only` with repair enabled \u2014 creates missing topic nodes and parent-child edges idempotently.",
|
|
2875
|
+
parameters: {
|
|
2876
|
+
rootTopicId: {
|
|
2877
|
+
type: "string",
|
|
2878
|
+
description: "Optional root topic for a bounded materialization pass"
|
|
2879
|
+
},
|
|
2880
|
+
dryRun: {
|
|
2881
|
+
type: "boolean",
|
|
2882
|
+
description: "When true, report missing rows without writing them"
|
|
2883
|
+
}
|
|
2884
|
+
},
|
|
2885
|
+
required: [],
|
|
2886
|
+
response: {
|
|
2887
|
+
description: "Topic graph materialization counts",
|
|
2888
|
+
fields: {
|
|
2889
|
+
topicsSeen: "number",
|
|
2890
|
+
nodesCreated: "number",
|
|
2891
|
+
nodesExisting: "number",
|
|
2892
|
+
edgesCreated: "number",
|
|
2893
|
+
edgesExisting: "number",
|
|
2894
|
+
errors: "array"
|
|
2895
|
+
}
|
|
2896
|
+
},
|
|
2897
|
+
ownerModule: "reasoning-kernel",
|
|
2898
|
+
ontologyPrimitive: "graph",
|
|
2899
|
+
tier: "workhorse"
|
|
2900
|
+
};
|
|
2901
|
+
var GET_TOPIC_GRAPH_SPINE = {
|
|
2902
|
+
name: "get_topic_graph_spine",
|
|
2903
|
+
description: "Verify the topic graph spine. Like `git fsck` \u2014 reads topics, materialized topic nodes, parent-child edges, and missing spine rows.",
|
|
2904
|
+
parameters: {
|
|
2905
|
+
rootTopicId: {
|
|
2906
|
+
type: "string",
|
|
2907
|
+
description: "Optional root topic for a bounded verifier pass"
|
|
2908
|
+
},
|
|
2909
|
+
includeTopicBeliefEdges: {
|
|
2910
|
+
type: "boolean",
|
|
2911
|
+
description: "Include topic -> belief edges in the verifier payload"
|
|
2912
|
+
}
|
|
2913
|
+
},
|
|
2914
|
+
required: [],
|
|
2915
|
+
response: {
|
|
2916
|
+
description: "Topic graph spine verification payload",
|
|
2917
|
+
fields: {
|
|
2918
|
+
ok: "boolean",
|
|
2919
|
+
counts: "object",
|
|
2920
|
+
topics: "array",
|
|
2921
|
+
topicNodes: "array",
|
|
2922
|
+
parentEdges: "array",
|
|
2923
|
+
missingTopicNodes: "array",
|
|
2924
|
+
missingParentEdges: "array"
|
|
2925
|
+
}
|
|
2926
|
+
},
|
|
2927
|
+
ownerModule: "reasoning-kernel",
|
|
2928
|
+
ontologyPrimitive: "graph",
|
|
2929
|
+
tier: "workhorse"
|
|
2930
|
+
};
|
|
2389
2931
|
var GET_CODE_CONTEXT = {
|
|
2390
2932
|
name: "get_code_context",
|
|
2391
2933
|
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.",
|
|
@@ -3518,6 +4060,69 @@ var GENERATE_SESSION_HANDOFF = {
|
|
|
3518
4060
|
tier: "showcase",
|
|
3519
4061
|
internal: true
|
|
3520
4062
|
};
|
|
4063
|
+
var BEGIN_BUILD_SESSION = {
|
|
4064
|
+
name: "begin_build_session",
|
|
4065
|
+
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.",
|
|
4066
|
+
parameters: {
|
|
4067
|
+
worktreeId: {
|
|
4068
|
+
type: "string",
|
|
4069
|
+
description: "The Lucern worktree ID to bootstrap."
|
|
4070
|
+
},
|
|
4071
|
+
branch: {
|
|
4072
|
+
type: "string",
|
|
4073
|
+
description: "Optional git branch name. Auto-generated from the worktree name when omitted."
|
|
4074
|
+
},
|
|
4075
|
+
branchBase: {
|
|
4076
|
+
type: "string",
|
|
4077
|
+
description: 'Base branch for the feature branch. Default: "staging".'
|
|
4078
|
+
},
|
|
4079
|
+
prBase: {
|
|
4080
|
+
type: "string",
|
|
4081
|
+
description: 'Target branch for the PR. Default: "staging".'
|
|
4082
|
+
},
|
|
4083
|
+
sessionMode: {
|
|
4084
|
+
type: "string",
|
|
4085
|
+
description: 'Session mode: "async" for Codex/headless or "interactive" for live sessions.',
|
|
4086
|
+
enum: ["async", "interactive"]
|
|
4087
|
+
},
|
|
4088
|
+
activateIfPlanning: {
|
|
4089
|
+
type: "boolean",
|
|
4090
|
+
description: "When true, automatically activate a planning worktree during bootstrap."
|
|
4091
|
+
}
|
|
4092
|
+
},
|
|
4093
|
+
required: ["worktreeId"],
|
|
4094
|
+
response: {
|
|
4095
|
+
description: "A compact build-session packet with worktree metadata, graph anchors, questions, dependencies, and git defaults.",
|
|
4096
|
+
fields: {
|
|
4097
|
+
topicId: "string \u2014 canonical topic scope",
|
|
4098
|
+
topicName: "string \u2014 human-readable topic name",
|
|
4099
|
+
worktreeId: "string \u2014 worktree ID",
|
|
4100
|
+
worktreeName: "string \u2014 human-readable worktree name",
|
|
4101
|
+
branch: "string \u2014 git branch name",
|
|
4102
|
+
branchBase: "string \u2014 base branch",
|
|
4103
|
+
prBase: "string \u2014 PR target branch",
|
|
4104
|
+
campaign: "number | null \u2014 top-level pipeline campaign",
|
|
4105
|
+
lane: "string \u2014 campaign lane",
|
|
4106
|
+
gate: "string \u2014 exit gate",
|
|
4107
|
+
hypothesis: "string \u2014 worktree hypothesis",
|
|
4108
|
+
focus: "string \u2014 session focus",
|
|
4109
|
+
status: "string \u2014 worktree status after optional activation",
|
|
4110
|
+
sessionMode: "string \u2014 async | interactive",
|
|
4111
|
+
targetBeliefIds: "array \u2014 scoped belief IDs",
|
|
4112
|
+
targetQuestionIds: "array \u2014 scoped question IDs",
|
|
4113
|
+
topBeliefs: "array \u2014 highest-confidence scoped beliefs",
|
|
4114
|
+
openQuestions: "array \u2014 open scoped questions",
|
|
4115
|
+
resolvedDecisions: "array \u2014 answered questions summarized for the session",
|
|
4116
|
+
dependencies: "array \u2014 upstream worktrees",
|
|
4117
|
+
unblocks: "array \u2014 downstream worktrees",
|
|
4118
|
+
mergeOrderNotes: "string \u2014 merge ordering advisory"
|
|
4119
|
+
}
|
|
4120
|
+
},
|
|
4121
|
+
ownerModule: "bootstrap",
|
|
4122
|
+
ontologyPrimitive: "worktree",
|
|
4123
|
+
tier: "showcase",
|
|
4124
|
+
internal: true
|
|
4125
|
+
};
|
|
3521
4126
|
var MCP_TOOL_CONTRACTS = {
|
|
3522
4127
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
3523
4128
|
create_belief: CREATE_BELIEF,
|
|
@@ -3560,11 +4165,26 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3560
4165
|
bisect_confidence: BISECT_CONFIDENCE,
|
|
3561
4166
|
// Edges (commit)
|
|
3562
4167
|
create_edge: CREATE_EDGE,
|
|
4168
|
+
update_edge: UPDATE_EDGE,
|
|
4169
|
+
remove_edge: REMOVE_EDGE,
|
|
4170
|
+
remove_edges_between: REMOVE_EDGES_BETWEEN,
|
|
4171
|
+
batch_create_edges: BATCH_CREATE_EDGES,
|
|
4172
|
+
// Epistemic node spine (commit/amend/show)
|
|
4173
|
+
create_epistemic_node: CREATE_EPISTEMIC_NODE,
|
|
4174
|
+
get_epistemic_node: GET_EPISTEMIC_NODE,
|
|
4175
|
+
list_epistemic_nodes: LIST_EPISTEMIC_NODES,
|
|
4176
|
+
update_epistemic_node: UPDATE_EPISTEMIC_NODE,
|
|
4177
|
+
archive_epistemic_node: ARCHIVE_EPISTEMIC_NODE,
|
|
4178
|
+
verify_epistemic_node: VERIFY_EPISTEMIC_NODE,
|
|
4179
|
+
supersede_epistemic_node: SUPERSEDE_EPISTEMIC_NODE,
|
|
4180
|
+
batch_create_epistemic_nodes: BATCH_CREATE_EPISTEMIC_NODES,
|
|
3563
4181
|
// Judgments (tag)
|
|
3564
4182
|
record_judgment: RECORD_JUDGMENT,
|
|
3565
4183
|
// Graph intelligence (showcase)
|
|
3566
4184
|
detect_confirmation_bias: DETECT_CONFIRMATION_BIAS,
|
|
3567
4185
|
get_graph_structure_analysis: GET_GRAPH_STRUCTURE_ANALYSIS,
|
|
4186
|
+
list_graph_intelligence_queries: LIST_GRAPH_INTELLIGENCE_QUERIES,
|
|
4187
|
+
run_graph_intelligence_query: RUN_GRAPH_INTELLIGENCE_QUERY,
|
|
3568
4188
|
get_falsification_questions: GET_FALSIFICATION_QUESTIONS,
|
|
3569
4189
|
// Evidence operations (workhorse)
|
|
3570
4190
|
search_evidence: SEARCH_EVIDENCE,
|
|
@@ -3611,6 +4231,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3611
4231
|
get_agent_inbox: GET_AGENT_INBOX,
|
|
3612
4232
|
claim_files: CLAIM_FILES,
|
|
3613
4233
|
generate_session_handoff: GENERATE_SESSION_HANDOFF,
|
|
4234
|
+
begin_build_session: BEGIN_BUILD_SESSION,
|
|
3614
4235
|
// Policy / ACL (workhorse)
|
|
3615
4236
|
check_permission: CHECK_PERMISSION,
|
|
3616
4237
|
filter_by_permission: FILTER_BY_PERMISSION,
|
|
@@ -3630,6 +4251,8 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3630
4251
|
get_topic: GET_TOPIC,
|
|
3631
4252
|
update_topic: UPDATE_TOPIC,
|
|
3632
4253
|
get_topic_tree: GET_TOPIC_TREE,
|
|
4254
|
+
materialize_topic_graph: MATERIALIZE_TOPIC_GRAPH,
|
|
4255
|
+
get_topic_graph_spine: GET_TOPIC_GRAPH_SPINE,
|
|
3633
4256
|
// Coding intelligence (code-grounded knowledge)
|
|
3634
4257
|
get_code_context: GET_CODE_CONTEXT,
|
|
3635
4258
|
get_change_history: GET_CHANGE_HISTORY,
|