@lucern/contracts 0.3.0-alpha.3 → 0.3.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/edge-policy-manifest-DpmTtjmm.d.ts +132 -0
- package/dist/function-registry/beliefs.d.ts +41 -41
- package/dist/function-registry/beliefs.js +274 -8
- package/dist/function-registry/beliefs.js.map +1 -1
- package/dist/function-registry/coding.js +259 -8
- package/dist/function-registry/coding.js.map +1 -1
- package/dist/function-registry/context.d.ts +13 -13
- package/dist/function-registry/context.js +259 -9
- package/dist/function-registry/context.js.map +1 -1
- package/dist/function-registry/contracts.js +230 -5
- package/dist/function-registry/contracts.js.map +1 -1
- package/dist/function-registry/coordination.js +230 -5
- package/dist/function-registry/coordination.js.map +1 -1
- package/dist/function-registry/edges.js +241 -6
- package/dist/function-registry/edges.js.map +1 -1
- package/dist/function-registry/evidence.d.ts +33 -33
- package/dist/function-registry/evidence.js +274 -9
- package/dist/function-registry/evidence.js.map +1 -1
- package/dist/function-registry/graph.d.ts +131 -53
- package/dist/function-registry/graph.js +346 -12
- package/dist/function-registry/graph.js.map +1 -1
- package/dist/function-registry/helpers.d.ts +1 -1
- package/dist/function-registry/helpers.js +230 -5
- package/dist/function-registry/helpers.js.map +1 -1
- package/dist/function-registry/identity.js +230 -5
- package/dist/function-registry/identity.js.map +1 -1
- package/dist/function-registry/index.d.ts +1 -1
- package/dist/function-registry/index.js +230 -5
- package/dist/function-registry/index.js.map +1 -1
- package/dist/function-registry/judgments.d.ts +9 -9
- package/dist/function-registry/judgments.js +242 -8
- package/dist/function-registry/judgments.js.map +1 -1
- package/dist/function-registry/legacy.js +230 -5
- package/dist/function-registry/legacy.js.map +1 -1
- package/dist/function-registry/lenses.d.ts +17 -17
- package/dist/function-registry/lenses.js +253 -8
- package/dist/function-registry/lenses.js.map +1 -1
- package/dist/function-registry/manifest.d.ts +5 -5
- package/dist/function-registry/manifest.js +3 -1
- package/dist/function-registry/manifest.js.map +1 -1
- package/dist/function-registry/ontologies.d.ts +45 -45
- package/dist/function-registry/ontologies.js +248 -11
- package/dist/function-registry/ontologies.js.map +1 -1
- package/dist/function-registry/pipeline.d.ts +13 -13
- package/dist/function-registry/pipeline.js +239 -8
- package/dist/function-registry/pipeline.js.map +1 -1
- package/dist/function-registry/questions.d.ts +49 -49
- package/dist/function-registry/questions.js +327 -13
- package/dist/function-registry/questions.js.map +1 -1
- package/dist/function-registry/tasks.js +230 -5
- package/dist/function-registry/tasks.js.map +1 -1
- package/dist/function-registry/topics.d.ts +21 -21
- package/dist/function-registry/topics.js +244 -8
- 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 +364 -17
- 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 +164 -0
- package/dist/function-registry-input-audit.js.map +1 -0
- package/dist/gateway.contract.d.ts +1 -0
- package/dist/gateway.contract.js.map +1 -1
- package/dist/generated/convexSchemas.js +2 -2
- package/dist/generated/convexSchemas.js.map +1 -1
- 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 +21 -667
- package/dist/index.js +2139 -52
- package/dist/index.js.map +1 -1
- package/dist/infisical-runtime.contract.d.ts +174 -0
- package/dist/infisical-runtime.contract.js +312 -0
- package/dist/infisical-runtime.contract.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.d.ts +2 -0
- package/dist/manifests/edge-policy-manifest.data.d.ts +27 -0
- package/dist/manifests/edge-policy-manifest.data.js +34 -0
- package/dist/manifests/edge-policy-manifest.data.js.map +1 -0
- package/dist/manifests/edge-policy-manifest.js +65 -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 +311 -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 +303 -0
- package/dist/manifests/tenant-client-manifest.js +409 -0
- package/dist/manifests/tenant-client-manifest.js.map +1 -0
- package/dist/projections/check-convex-args-shape.d.ts +3 -0
- package/dist/projections/check-convex-args-shape.js +396 -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 +128 -0
- package/dist/projections/create-evidence.projection.js.map +1 -0
- package/dist/projections/index.d.ts +102 -0
- package/dist/projections/index.js +345 -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/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 +9 -4
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/manifest.d.ts +940 -910
- package/dist/schemas/manifest.js +8 -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 +4 -1
- package/dist/schemas/tables/kernel/topic.js.map +1 -1
- package/dist/schemas/tables/kernel/worktree.d.ts +62 -62
- package/dist/schemas/tables/mc/identity.d.ts +2 -2
- 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 +1 -1
- package/dist/{sdk-tools.contract-S4ia0TTo.d.ts → sdk-tools.contract-Ng8ULxjr.d.ts} +1 -1
- package/dist/sdk-tools.contract.d.ts +2 -2
- package/dist/sdk-tools.contract.js +227 -4
- 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 +69 -5
- package/dist/tenant-client.contract.js +65 -4
- package/dist/tenant-client.contract.js.map +1 -1
- package/dist/{tool-contracts-C92-9ueT.d.ts → tool-contracts-CYXVPN4K.d.ts} +8 -2
- package/dist/tool-contracts.d.ts +1 -1
- package/dist/tool-contracts.js +228 -5
- package/dist/tool-contracts.js.map +1 -1
- package/package.json +9 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* MCP Tool Contract Definitions
|
|
@@ -115,10 +115,10 @@ declare const evidenceContracts: readonly [{
|
|
|
115
115
|
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
116
116
|
};
|
|
117
117
|
convex: FunctionConvexTarget | undefined;
|
|
118
|
-
args:
|
|
119
|
-
returns:
|
|
120
|
-
input:
|
|
121
|
-
output:
|
|
118
|
+
args: z.ZodTypeAny;
|
|
119
|
+
returns: z.ZodTypeAny;
|
|
120
|
+
input: z.ZodTypeAny;
|
|
121
|
+
output: z.ZodTypeAny;
|
|
122
122
|
openapi: {
|
|
123
123
|
summary: string;
|
|
124
124
|
tags: string[];
|
|
@@ -154,10 +154,10 @@ declare const evidenceContracts: readonly [{
|
|
|
154
154
|
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
155
155
|
};
|
|
156
156
|
convex: FunctionConvexTarget | undefined;
|
|
157
|
-
args:
|
|
158
|
-
returns:
|
|
159
|
-
input:
|
|
160
|
-
output:
|
|
157
|
+
args: z.ZodTypeAny;
|
|
158
|
+
returns: z.ZodTypeAny;
|
|
159
|
+
input: z.ZodTypeAny;
|
|
160
|
+
output: z.ZodTypeAny;
|
|
161
161
|
openapi: {
|
|
162
162
|
summary: string;
|
|
163
163
|
tags: string[];
|
|
@@ -193,10 +193,10 @@ declare const evidenceContracts: readonly [{
|
|
|
193
193
|
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
194
194
|
};
|
|
195
195
|
convex: FunctionConvexTarget | undefined;
|
|
196
|
-
args:
|
|
197
|
-
returns:
|
|
198
|
-
input:
|
|
199
|
-
output:
|
|
196
|
+
args: z.ZodTypeAny;
|
|
197
|
+
returns: z.ZodTypeAny;
|
|
198
|
+
input: z.ZodTypeAny;
|
|
199
|
+
output: z.ZodTypeAny;
|
|
200
200
|
openapi: {
|
|
201
201
|
summary: string;
|
|
202
202
|
tags: string[];
|
|
@@ -232,10 +232,10 @@ declare const evidenceContracts: readonly [{
|
|
|
232
232
|
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
233
233
|
};
|
|
234
234
|
convex: FunctionConvexTarget | undefined;
|
|
235
|
-
args:
|
|
236
|
-
returns:
|
|
237
|
-
input:
|
|
238
|
-
output:
|
|
235
|
+
args: z.ZodTypeAny;
|
|
236
|
+
returns: z.ZodTypeAny;
|
|
237
|
+
input: z.ZodTypeAny;
|
|
238
|
+
output: z.ZodTypeAny;
|
|
239
239
|
openapi: {
|
|
240
240
|
summary: string;
|
|
241
241
|
tags: string[];
|
|
@@ -271,10 +271,10 @@ declare const evidenceContracts: readonly [{
|
|
|
271
271
|
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
272
272
|
};
|
|
273
273
|
convex: FunctionConvexTarget | undefined;
|
|
274
|
-
args:
|
|
275
|
-
returns:
|
|
276
|
-
input:
|
|
277
|
-
output:
|
|
274
|
+
args: z.ZodTypeAny;
|
|
275
|
+
returns: z.ZodTypeAny;
|
|
276
|
+
input: z.ZodTypeAny;
|
|
277
|
+
output: z.ZodTypeAny;
|
|
278
278
|
openapi: {
|
|
279
279
|
summary: string;
|
|
280
280
|
tags: string[];
|
|
@@ -310,10 +310,10 @@ declare const evidenceContracts: readonly [{
|
|
|
310
310
|
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
311
311
|
};
|
|
312
312
|
convex: FunctionConvexTarget | undefined;
|
|
313
|
-
args:
|
|
314
|
-
returns:
|
|
315
|
-
input:
|
|
316
|
-
output:
|
|
313
|
+
args: z.ZodTypeAny;
|
|
314
|
+
returns: z.ZodTypeAny;
|
|
315
|
+
input: z.ZodTypeAny;
|
|
316
|
+
output: z.ZodTypeAny;
|
|
317
317
|
openapi: {
|
|
318
318
|
summary: string;
|
|
319
319
|
tags: string[];
|
|
@@ -349,10 +349,10 @@ declare const evidenceContracts: readonly [{
|
|
|
349
349
|
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
350
350
|
};
|
|
351
351
|
convex: FunctionConvexTarget | undefined;
|
|
352
|
-
args:
|
|
353
|
-
returns:
|
|
354
|
-
input:
|
|
355
|
-
output:
|
|
352
|
+
args: z.ZodTypeAny;
|
|
353
|
+
returns: z.ZodTypeAny;
|
|
354
|
+
input: z.ZodTypeAny;
|
|
355
|
+
output: z.ZodTypeAny;
|
|
356
356
|
openapi: {
|
|
357
357
|
summary: string;
|
|
358
358
|
tags: string[];
|
|
@@ -388,10 +388,10 @@ declare const evidenceContracts: readonly [{
|
|
|
388
388
|
allowedPrincipalTypes: ("user" | "service" | "agent")[];
|
|
389
389
|
};
|
|
390
390
|
convex: FunctionConvexTarget | undefined;
|
|
391
|
-
args:
|
|
392
|
-
returns:
|
|
393
|
-
input:
|
|
394
|
-
output:
|
|
391
|
+
args: z.ZodTypeAny;
|
|
392
|
+
returns: z.ZodTypeAny;
|
|
393
|
+
input: z.ZodTypeAny;
|
|
394
|
+
output: z.ZodTypeAny;
|
|
395
395
|
openapi: {
|
|
396
396
|
summary: string;
|
|
397
397
|
tags: string[];
|
|
@@ -423,6 +423,14 @@ var ADD_WORKTREE = {
|
|
|
423
423
|
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
424
|
parameters: {
|
|
425
425
|
title: { type: "string", description: "Worktree name/objective" },
|
|
426
|
+
name: {
|
|
427
|
+
type: "string",
|
|
428
|
+
description: "Optional storage-name alias for callers that already use backend naming"
|
|
429
|
+
},
|
|
430
|
+
projectId: {
|
|
431
|
+
type: "string",
|
|
432
|
+
description: "Legacy topicId alias"
|
|
433
|
+
},
|
|
426
434
|
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
427
435
|
branchId: {
|
|
428
436
|
type: "string",
|
|
@@ -436,14 +444,87 @@ var ADD_WORKTREE = {
|
|
|
436
444
|
type: "string",
|
|
437
445
|
description: "The testable claim this worktree investigates"
|
|
438
446
|
},
|
|
447
|
+
rationale: {
|
|
448
|
+
type: "string",
|
|
449
|
+
description: "Why this worktree exists and why it belongs in the campaign"
|
|
450
|
+
},
|
|
451
|
+
worktreeType: {
|
|
452
|
+
type: "string",
|
|
453
|
+
description: "Schema-enum worktree type used by the kernel lifecycle and retrieval layers"
|
|
454
|
+
},
|
|
455
|
+
gate: {
|
|
456
|
+
type: "string",
|
|
457
|
+
description: "Exit gate name for this worktree"
|
|
458
|
+
},
|
|
459
|
+
startDate: {
|
|
460
|
+
type: "number",
|
|
461
|
+
description: "Planned start timestamp in milliseconds since epoch"
|
|
462
|
+
},
|
|
463
|
+
endDate: {
|
|
464
|
+
type: "number",
|
|
465
|
+
description: "Planned end timestamp in milliseconds since epoch"
|
|
466
|
+
},
|
|
467
|
+
durationWeeks: {
|
|
468
|
+
type: "number",
|
|
469
|
+
description: "Planned duration in weeks"
|
|
470
|
+
},
|
|
471
|
+
confidenceImpact: {
|
|
472
|
+
type: "string",
|
|
473
|
+
description: "Expected confidence impact if the worktree succeeds",
|
|
474
|
+
enum: ["high", "medium", "low"]
|
|
475
|
+
},
|
|
476
|
+
beliefFocus: {
|
|
477
|
+
type: "string",
|
|
478
|
+
description: "Natural-language focus spanning the target belief neighborhood"
|
|
479
|
+
},
|
|
439
480
|
beliefIds: {
|
|
440
481
|
type: "array",
|
|
441
|
-
description: "
|
|
482
|
+
description: "Legacy alias for targetBeliefIds"
|
|
483
|
+
},
|
|
484
|
+
beliefs: {
|
|
485
|
+
type: "array",
|
|
486
|
+
description: "Legacy alias for targetBeliefIds"
|
|
487
|
+
},
|
|
488
|
+
targetBeliefIds: {
|
|
489
|
+
type: "array",
|
|
490
|
+
description: "Belief node IDs this worktree is expected to test or update"
|
|
491
|
+
},
|
|
492
|
+
targetQuestionIds: {
|
|
493
|
+
type: "array",
|
|
494
|
+
description: "Question node IDs this worktree is expected to answer"
|
|
495
|
+
},
|
|
496
|
+
keyQuestions: {
|
|
497
|
+
type: "array",
|
|
498
|
+
description: "Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId"
|
|
499
|
+
},
|
|
500
|
+
evidenceSignals: {
|
|
501
|
+
type: "array",
|
|
502
|
+
description: "Evidence signal objects with signal, optional collected state, progress, and notes"
|
|
503
|
+
},
|
|
504
|
+
decisionGate: {
|
|
505
|
+
type: "object",
|
|
506
|
+
description: "Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy"
|
|
507
|
+
},
|
|
508
|
+
goCriteria: {
|
|
509
|
+
type: "array",
|
|
510
|
+
description: "Shorthand go criteria used to build decisionGate"
|
|
511
|
+
},
|
|
512
|
+
noGoSignals: {
|
|
513
|
+
type: "array",
|
|
514
|
+
description: "Shorthand no-go signals used to build decisionGate"
|
|
515
|
+
},
|
|
516
|
+
proofArtifacts: {
|
|
517
|
+
type: "array",
|
|
518
|
+
description: "Expected proof artifacts required to close the worktree"
|
|
442
519
|
},
|
|
443
520
|
autoShape: {
|
|
444
521
|
type: "boolean",
|
|
445
522
|
description: "Whether to invoke inquiry auto-shaping during worktree creation"
|
|
446
523
|
},
|
|
524
|
+
autoFixPolicy: {
|
|
525
|
+
type: "object",
|
|
526
|
+
description: "Policy for permitted automatic remediation inside the worktree"
|
|
527
|
+
},
|
|
447
528
|
domainPackId: {
|
|
448
529
|
type: "string",
|
|
449
530
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
@@ -472,9 +553,17 @@ var ADD_WORKTREE = {
|
|
|
472
553
|
type: "array",
|
|
473
554
|
description: "Worktree IDs blocked by this worktree"
|
|
474
555
|
},
|
|
475
|
-
|
|
556
|
+
staffingHint: {
|
|
476
557
|
type: "string",
|
|
477
|
-
description: "
|
|
558
|
+
description: "Suggested staffing or agent allocation note"
|
|
559
|
+
},
|
|
560
|
+
lensId: {
|
|
561
|
+
type: "string",
|
|
562
|
+
description: "Lens that scopes this worktree when applicable"
|
|
563
|
+
},
|
|
564
|
+
lastReconciledAt: {
|
|
565
|
+
type: "number",
|
|
566
|
+
description: "Timestamp when worktree metadata was last reconciled"
|
|
478
567
|
}
|
|
479
568
|
},
|
|
480
569
|
required: ["title", "topicId"],
|
|
@@ -504,7 +593,7 @@ var MERGE = {
|
|
|
504
593
|
worktreeId: { type: "string", description: "The worktree to merge" },
|
|
505
594
|
outcomes: {
|
|
506
595
|
type: "array",
|
|
507
|
-
description: "
|
|
596
|
+
description: "Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }"
|
|
508
597
|
},
|
|
509
598
|
summary: { type: "string", description: "Overall findings summary" }
|
|
510
599
|
},
|
|
@@ -1058,6 +1147,74 @@ var GET_GRAPH_STRUCTURE_ANALYSIS = {
|
|
|
1058
1147
|
ontologyPrimitive: "graph",
|
|
1059
1148
|
tier: "showcase"
|
|
1060
1149
|
};
|
|
1150
|
+
var LIST_GRAPH_INTELLIGENCE_QUERIES = {
|
|
1151
|
+
name: "list_graph_intelligence_queries",
|
|
1152
|
+
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.",
|
|
1153
|
+
parameters: {
|
|
1154
|
+
categoryId: {
|
|
1155
|
+
type: "string",
|
|
1156
|
+
description: "Optional category filter, such as problems or strategic"
|
|
1157
|
+
},
|
|
1158
|
+
mode: {
|
|
1159
|
+
type: "string",
|
|
1160
|
+
description: "Optional mode filter: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1161
|
+
}
|
|
1162
|
+
},
|
|
1163
|
+
required: [],
|
|
1164
|
+
response: {
|
|
1165
|
+
description: "Graph Intelligence query catalog and mode-to-tool mapping",
|
|
1166
|
+
fields: {
|
|
1167
|
+
categories: "array \u2014 query categories",
|
|
1168
|
+
queries: "array \u2014 query definitions with prompt templates and tools",
|
|
1169
|
+
quickQueries: "array \u2014 recommended one-click query presets",
|
|
1170
|
+
publicToolNamesByMode: "object \u2014 public tool names available to each Graph Intelligence mode"
|
|
1171
|
+
}
|
|
1172
|
+
},
|
|
1173
|
+
ownerModule: "graph-intelligence",
|
|
1174
|
+
ontologyPrimitive: "graph",
|
|
1175
|
+
tier: "showcase"
|
|
1176
|
+
};
|
|
1177
|
+
var RUN_GRAPH_INTELLIGENCE_QUERY = {
|
|
1178
|
+
name: "run_graph_intelligence_query",
|
|
1179
|
+
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.",
|
|
1180
|
+
parameters: {
|
|
1181
|
+
topicId: { type: "string", description: "Topic to analyze" },
|
|
1182
|
+
queryId: {
|
|
1183
|
+
type: "string",
|
|
1184
|
+
description: "Graph Intelligence query ID, such as confirmation-bias, pre-mortem, or thesis-summary"
|
|
1185
|
+
},
|
|
1186
|
+
prompt: {
|
|
1187
|
+
type: "string",
|
|
1188
|
+
description: "Optional custom prompt for custom analysis runs"
|
|
1189
|
+
},
|
|
1190
|
+
input: {
|
|
1191
|
+
type: "string",
|
|
1192
|
+
description: "Optional entity, theme, belief, company, or search text for input-driven queries"
|
|
1193
|
+
},
|
|
1194
|
+
mode: {
|
|
1195
|
+
type: "string",
|
|
1196
|
+
description: "Optional mode override: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1197
|
+
},
|
|
1198
|
+
limit: {
|
|
1199
|
+
type: "number",
|
|
1200
|
+
description: "Maximum graph context rows to return"
|
|
1201
|
+
}
|
|
1202
|
+
},
|
|
1203
|
+
required: ["topicId"],
|
|
1204
|
+
response: {
|
|
1205
|
+
description: "Graph Intelligence query result bundle ready for model or prompt-library synthesis",
|
|
1206
|
+
fields: {
|
|
1207
|
+
query: "object \u2014 selected query definition",
|
|
1208
|
+
prompt: "string \u2014 resolved prompt template",
|
|
1209
|
+
toolPlan: "array \u2014 public tools and args the model can call next",
|
|
1210
|
+
analysis: "object \u2014 structure, coverage, gap, and confirmation-bias analysis",
|
|
1211
|
+
context: "object \u2014 sampled beliefs, questions, evidence, edges, and contradictions"
|
|
1212
|
+
}
|
|
1213
|
+
},
|
|
1214
|
+
ownerModule: "graph-intelligence",
|
|
1215
|
+
ontologyPrimitive: "graph",
|
|
1216
|
+
tier: "showcase"
|
|
1217
|
+
};
|
|
1061
1218
|
var GET_FALSIFICATION_QUESTIONS = {
|
|
1062
1219
|
name: "get_falsification_questions",
|
|
1063
1220
|
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.",
|
|
@@ -3523,6 +3680,69 @@ var GENERATE_SESSION_HANDOFF = {
|
|
|
3523
3680
|
tier: "showcase",
|
|
3524
3681
|
internal: true
|
|
3525
3682
|
};
|
|
3683
|
+
var BEGIN_BUILD_SESSION = {
|
|
3684
|
+
name: "begin_build_session",
|
|
3685
|
+
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.",
|
|
3686
|
+
parameters: {
|
|
3687
|
+
worktreeId: {
|
|
3688
|
+
type: "string",
|
|
3689
|
+
description: "The Lucern worktree ID to bootstrap."
|
|
3690
|
+
},
|
|
3691
|
+
branch: {
|
|
3692
|
+
type: "string",
|
|
3693
|
+
description: "Optional git branch name. Auto-generated from the worktree name when omitted."
|
|
3694
|
+
},
|
|
3695
|
+
branchBase: {
|
|
3696
|
+
type: "string",
|
|
3697
|
+
description: 'Base branch for the feature branch. Default: "staging".'
|
|
3698
|
+
},
|
|
3699
|
+
prBase: {
|
|
3700
|
+
type: "string",
|
|
3701
|
+
description: 'Target branch for the PR. Default: "staging".'
|
|
3702
|
+
},
|
|
3703
|
+
sessionMode: {
|
|
3704
|
+
type: "string",
|
|
3705
|
+
description: 'Session mode: "async" for Codex/headless or "interactive" for live sessions.',
|
|
3706
|
+
enum: ["async", "interactive"]
|
|
3707
|
+
},
|
|
3708
|
+
activateIfPlanning: {
|
|
3709
|
+
type: "boolean",
|
|
3710
|
+
description: "When true, automatically activate a planning worktree during bootstrap."
|
|
3711
|
+
}
|
|
3712
|
+
},
|
|
3713
|
+
required: ["worktreeId"],
|
|
3714
|
+
response: {
|
|
3715
|
+
description: "A compact build-session packet with worktree metadata, graph anchors, questions, dependencies, and git defaults.",
|
|
3716
|
+
fields: {
|
|
3717
|
+
topicId: "string \u2014 canonical topic scope",
|
|
3718
|
+
topicName: "string \u2014 human-readable topic name",
|
|
3719
|
+
worktreeId: "string \u2014 worktree ID",
|
|
3720
|
+
worktreeName: "string \u2014 human-readable worktree name",
|
|
3721
|
+
branch: "string \u2014 git branch name",
|
|
3722
|
+
branchBase: "string \u2014 base branch",
|
|
3723
|
+
prBase: "string \u2014 PR target branch",
|
|
3724
|
+
campaign: "number | null \u2014 top-level pipeline campaign",
|
|
3725
|
+
lane: "string \u2014 campaign lane",
|
|
3726
|
+
gate: "string \u2014 exit gate",
|
|
3727
|
+
hypothesis: "string \u2014 worktree hypothesis",
|
|
3728
|
+
focus: "string \u2014 session focus",
|
|
3729
|
+
status: "string \u2014 worktree status after optional activation",
|
|
3730
|
+
sessionMode: "string \u2014 async | interactive",
|
|
3731
|
+
targetBeliefIds: "array \u2014 scoped belief IDs",
|
|
3732
|
+
targetQuestionIds: "array \u2014 scoped question IDs",
|
|
3733
|
+
topBeliefs: "array \u2014 highest-confidence scoped beliefs",
|
|
3734
|
+
openQuestions: "array \u2014 open scoped questions",
|
|
3735
|
+
resolvedDecisions: "array \u2014 answered questions summarized for the session",
|
|
3736
|
+
dependencies: "array \u2014 upstream worktrees",
|
|
3737
|
+
unblocks: "array \u2014 downstream worktrees",
|
|
3738
|
+
mergeOrderNotes: "string \u2014 merge ordering advisory"
|
|
3739
|
+
}
|
|
3740
|
+
},
|
|
3741
|
+
ownerModule: "bootstrap",
|
|
3742
|
+
ontologyPrimitive: "worktree",
|
|
3743
|
+
tier: "showcase",
|
|
3744
|
+
internal: true
|
|
3745
|
+
};
|
|
3526
3746
|
var MCP_TOOL_CONTRACTS = {
|
|
3527
3747
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
3528
3748
|
create_belief: CREATE_BELIEF,
|
|
@@ -3570,6 +3790,8 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3570
3790
|
// Graph intelligence (showcase)
|
|
3571
3791
|
detect_confirmation_bias: DETECT_CONFIRMATION_BIAS,
|
|
3572
3792
|
get_graph_structure_analysis: GET_GRAPH_STRUCTURE_ANALYSIS,
|
|
3793
|
+
list_graph_intelligence_queries: LIST_GRAPH_INTELLIGENCE_QUERIES,
|
|
3794
|
+
run_graph_intelligence_query: RUN_GRAPH_INTELLIGENCE_QUERY,
|
|
3573
3795
|
get_falsification_questions: GET_FALSIFICATION_QUESTIONS,
|
|
3574
3796
|
// Evidence operations (workhorse)
|
|
3575
3797
|
search_evidence: SEARCH_EVIDENCE,
|
|
@@ -3616,6 +3838,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3616
3838
|
get_agent_inbox: GET_AGENT_INBOX,
|
|
3617
3839
|
claim_files: CLAIM_FILES,
|
|
3618
3840
|
generate_session_handoff: GENERATE_SESSION_HANDOFF,
|
|
3841
|
+
begin_build_session: BEGIN_BUILD_SESSION,
|
|
3619
3842
|
// Policy / ACL (workhorse)
|
|
3620
3843
|
check_permission: CHECK_PERMISSION,
|
|
3621
3844
|
filter_by_permission: FILTER_BY_PERMISSION,
|
|
@@ -3751,6 +3974,8 @@ var MCP_ANALYSIS_PLATFORM_OPERATION_NAMES = [
|
|
|
3751
3974
|
"traverse_graph",
|
|
3752
3975
|
"get_graph_neighborhood",
|
|
3753
3976
|
"get_graph_structure_analysis",
|
|
3977
|
+
"list_graph_intelligence_queries",
|
|
3978
|
+
"run_graph_intelligence_query",
|
|
3754
3979
|
"find_contradictions",
|
|
3755
3980
|
"flag_contradiction",
|
|
3756
3981
|
"detect_confirmation_bias",
|
|
@@ -3829,6 +4054,7 @@ var PLATFORM_INTERNAL_OPERATION_NAMES = [
|
|
|
3829
4054
|
"get_change_history",
|
|
3830
4055
|
"get_failure_log",
|
|
3831
4056
|
"record_attempt",
|
|
4057
|
+
"begin_build_session",
|
|
3832
4058
|
"push",
|
|
3833
4059
|
"open_pull_request",
|
|
3834
4060
|
"record_judgment",
|
|
@@ -3883,7 +4109,6 @@ var SDK_ONLY_OPERATION_NAMES = [
|
|
|
3883
4109
|
"find_semantic_orphans"
|
|
3884
4110
|
];
|
|
3885
4111
|
var MCP_ONLY_INTERNAL_OPERATION_NAMES = [
|
|
3886
|
-
"begin_build_session",
|
|
3887
4112
|
"evaluate_engineering_contract",
|
|
3888
4113
|
"evaluate_research_contract"
|
|
3889
4114
|
];
|
|
@@ -4373,8 +4598,46 @@ var createEvidenceProjection = defineProjection({
|
|
|
4373
4598
|
trustedBypassAccessCheck: v.optional(v.boolean())
|
|
4374
4599
|
})
|
|
4375
4600
|
});
|
|
4376
|
-
|
|
4377
|
-
|
|
4601
|
+
var jsonRecordSchema2 = z.record(z.unknown());
|
|
4602
|
+
var evidenceRelationSchema = z.enum(["supports", "contradicts", "neutral"]);
|
|
4603
|
+
var createEvidenceArgs = z.object({
|
|
4604
|
+
topicId: z.string().optional().describe("Topic scope for the evidence."),
|
|
4605
|
+
text: z.string().describe("Canonical evidence text."),
|
|
4606
|
+
source: z.string().optional().describe("Source URL or source label."),
|
|
4607
|
+
sourceUrl: z.string().optional().describe("Canonical source URL."),
|
|
4608
|
+
targetId: z.string().optional().describe("Belief or question identifier to link immediately."),
|
|
4609
|
+
linkedBeliefNodeId: z.string().optional().describe("Belief node this evidence bears on."),
|
|
4610
|
+
evidenceRelation: evidenceRelationSchema.optional().describe("How the evidence relates to the linked belief."),
|
|
4611
|
+
confidence: z.number().optional().describe("Confidence in the evidence relation."),
|
|
4612
|
+
weight: z.number().optional().describe("Support weight from -1.0 to +1.0."),
|
|
4613
|
+
metadata: jsonRecordSchema2.optional().describe("Metadata merged into the canonical evidence node."),
|
|
4614
|
+
rationale: z.string().describe("Why this evidence should enter the reasoning graph."),
|
|
4615
|
+
reasoning: z.string().optional().describe("Reasoning note preserved in evidence metadata."),
|
|
4616
|
+
title: z.string().optional().describe("Optional short title."),
|
|
4617
|
+
content: z.string().optional().describe("Optional long-form content."),
|
|
4618
|
+
contentType: z.string().optional().describe("Content format or MIME hint."),
|
|
4619
|
+
kind: z.string().optional().describe("Evidence kind."),
|
|
4620
|
+
tags: z.array(z.string()).optional().describe("Evidence tags."),
|
|
4621
|
+
sourceType: z.string().optional().describe("Evidence source type."),
|
|
4622
|
+
externalSourceType: z.string().optional().describe("External source type for imported evidence."),
|
|
4623
|
+
sourceQuestionId: z.string().optional().describe("Question that sourced this evidence."),
|
|
4624
|
+
methodology: z.string().optional().describe("Collection methodology."),
|
|
4625
|
+
informationAsymmetry: z.string().optional().describe("Information asymmetry class."),
|
|
4626
|
+
sourceDescription: z.string().optional().describe("Human-readable source description.")
|
|
4627
|
+
});
|
|
4628
|
+
var addEvidenceArgs = z.object({
|
|
4629
|
+
canonicalText: z.string().describe("The evidence statement."),
|
|
4630
|
+
text: z.string().optional().describe("Canonical evidence text alias used by newer callers."),
|
|
4631
|
+
topicId: z.string().optional().describe("Topic scope hint."),
|
|
4632
|
+
sourceUrl: z.string().optional().describe("URL of the source material."),
|
|
4633
|
+
targetNodeId: z.string().describe("The belief this evidence bears on."),
|
|
4634
|
+
weight: z.number().optional().describe("Support weight from -1.0 to +1.0."),
|
|
4635
|
+
reasoning: z.string().describe("Why this evidence is relevant to the target belief."),
|
|
4636
|
+
title: z.string().optional().describe("Optional short title."),
|
|
4637
|
+
content: z.string().optional().describe("Optional long-form evidence content."),
|
|
4638
|
+
contentType: z.string().optional().describe("Content format or MIME hint."),
|
|
4639
|
+
metadata: jsonRecordSchema2.optional().describe("Optional metadata merged into the evidence node.")
|
|
4640
|
+
});
|
|
4378
4641
|
var evidenceIdInput = (input) => compactRecord({
|
|
4379
4642
|
evidenceId: input.evidenceId,
|
|
4380
4643
|
insightId: input.insightId,
|
|
@@ -4449,7 +4712,8 @@ var evidenceContracts = [
|
|
|
4449
4712
|
functionName: "create",
|
|
4450
4713
|
kind: "mutation",
|
|
4451
4714
|
inputProjection: createEvidenceInput
|
|
4452
|
-
}
|
|
4715
|
+
},
|
|
4716
|
+
args: createEvidenceArgs
|
|
4453
4717
|
}),
|
|
4454
4718
|
surfaceContract({
|
|
4455
4719
|
name: "add_evidence",
|
|
@@ -4485,7 +4749,8 @@ var evidenceContracts = [
|
|
|
4485
4749
|
context
|
|
4486
4750
|
);
|
|
4487
4751
|
}
|
|
4488
|
-
}
|
|
4752
|
+
},
|
|
4753
|
+
args: addEvidenceArgs
|
|
4489
4754
|
}),
|
|
4490
4755
|
surfaceContract({
|
|
4491
4756
|
name: "get_evidence",
|