@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
|
@@ -22,7 +22,7 @@ export { codingContracts } from './coding.js';
|
|
|
22
22
|
export { legacyContracts } from './legacy.js';
|
|
23
23
|
import 'zod';
|
|
24
24
|
import '../defineFunction-DO97DKs4.js';
|
|
25
|
-
import '../tool-contracts-
|
|
25
|
+
import '../tool-contracts-CYXVPN4K.js';
|
|
26
26
|
|
|
27
27
|
declare const ALL_FUNCTION_CONTRACTS: readonly FunctionContract[];
|
|
28
28
|
declare const FUNCTION_SURFACE_CONTRACTS: readonly FunctionContract[];
|
|
@@ -458,6 +458,14 @@ var ADD_WORKTREE = {
|
|
|
458
458
|
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.",
|
|
459
459
|
parameters: {
|
|
460
460
|
title: { type: "string", description: "Worktree name/objective" },
|
|
461
|
+
name: {
|
|
462
|
+
type: "string",
|
|
463
|
+
description: "Optional storage-name alias for callers that already use backend naming"
|
|
464
|
+
},
|
|
465
|
+
projectId: {
|
|
466
|
+
type: "string",
|
|
467
|
+
description: "Legacy topicId alias"
|
|
468
|
+
},
|
|
461
469
|
topicId: { type: "string", description: "Optional topic scope hint" },
|
|
462
470
|
branchId: {
|
|
463
471
|
type: "string",
|
|
@@ -471,14 +479,87 @@ var ADD_WORKTREE = {
|
|
|
471
479
|
type: "string",
|
|
472
480
|
description: "The testable claim this worktree investigates"
|
|
473
481
|
},
|
|
482
|
+
rationale: {
|
|
483
|
+
type: "string",
|
|
484
|
+
description: "Why this worktree exists and why it belongs in the campaign"
|
|
485
|
+
},
|
|
486
|
+
worktreeType: {
|
|
487
|
+
type: "string",
|
|
488
|
+
description: "Schema-enum worktree type used by the kernel lifecycle and retrieval layers"
|
|
489
|
+
},
|
|
490
|
+
gate: {
|
|
491
|
+
type: "string",
|
|
492
|
+
description: "Exit gate name for this worktree"
|
|
493
|
+
},
|
|
494
|
+
startDate: {
|
|
495
|
+
type: "number",
|
|
496
|
+
description: "Planned start timestamp in milliseconds since epoch"
|
|
497
|
+
},
|
|
498
|
+
endDate: {
|
|
499
|
+
type: "number",
|
|
500
|
+
description: "Planned end timestamp in milliseconds since epoch"
|
|
501
|
+
},
|
|
502
|
+
durationWeeks: {
|
|
503
|
+
type: "number",
|
|
504
|
+
description: "Planned duration in weeks"
|
|
505
|
+
},
|
|
506
|
+
confidenceImpact: {
|
|
507
|
+
type: "string",
|
|
508
|
+
description: "Expected confidence impact if the worktree succeeds",
|
|
509
|
+
enum: ["high", "medium", "low"]
|
|
510
|
+
},
|
|
511
|
+
beliefFocus: {
|
|
512
|
+
type: "string",
|
|
513
|
+
description: "Natural-language focus spanning the target belief neighborhood"
|
|
514
|
+
},
|
|
474
515
|
beliefIds: {
|
|
475
516
|
type: "array",
|
|
476
|
-
description: "
|
|
517
|
+
description: "Legacy alias for targetBeliefIds"
|
|
518
|
+
},
|
|
519
|
+
beliefs: {
|
|
520
|
+
type: "array",
|
|
521
|
+
description: "Legacy alias for targetBeliefIds"
|
|
522
|
+
},
|
|
523
|
+
targetBeliefIds: {
|
|
524
|
+
type: "array",
|
|
525
|
+
description: "Belief node IDs this worktree is expected to test or update"
|
|
526
|
+
},
|
|
527
|
+
targetQuestionIds: {
|
|
528
|
+
type: "array",
|
|
529
|
+
description: "Question node IDs this worktree is expected to answer"
|
|
530
|
+
},
|
|
531
|
+
keyQuestions: {
|
|
532
|
+
type: "array",
|
|
533
|
+
description: "Inline key question objects with question, optional status, answer, answerConfidence, and linkedQuestionId"
|
|
534
|
+
},
|
|
535
|
+
evidenceSignals: {
|
|
536
|
+
type: "array",
|
|
537
|
+
description: "Evidence signal objects with signal, optional collected state, progress, and notes"
|
|
538
|
+
},
|
|
539
|
+
decisionGate: {
|
|
540
|
+
type: "object",
|
|
541
|
+
description: "Decision gate object with goCriteria, noGoSignals, optional verdict, rationale, decidedAt, and decidedBy"
|
|
542
|
+
},
|
|
543
|
+
goCriteria: {
|
|
544
|
+
type: "array",
|
|
545
|
+
description: "Shorthand go criteria used to build decisionGate"
|
|
546
|
+
},
|
|
547
|
+
noGoSignals: {
|
|
548
|
+
type: "array",
|
|
549
|
+
description: "Shorthand no-go signals used to build decisionGate"
|
|
550
|
+
},
|
|
551
|
+
proofArtifacts: {
|
|
552
|
+
type: "array",
|
|
553
|
+
description: "Expected proof artifacts required to close the worktree"
|
|
477
554
|
},
|
|
478
555
|
autoShape: {
|
|
479
556
|
type: "boolean",
|
|
480
557
|
description: "Whether to invoke inquiry auto-shaping during worktree creation"
|
|
481
558
|
},
|
|
559
|
+
autoFixPolicy: {
|
|
560
|
+
type: "object",
|
|
561
|
+
description: "Policy for permitted automatic remediation inside the worktree"
|
|
562
|
+
},
|
|
482
563
|
domainPackId: {
|
|
483
564
|
type: "string",
|
|
484
565
|
description: "Optional domain pack whose shaping hooks should influence generated questions and tasks"
|
|
@@ -507,9 +588,17 @@ var ADD_WORKTREE = {
|
|
|
507
588
|
type: "array",
|
|
508
589
|
description: "Worktree IDs blocked by this worktree"
|
|
509
590
|
},
|
|
510
|
-
|
|
591
|
+
staffingHint: {
|
|
511
592
|
type: "string",
|
|
512
|
-
description: "
|
|
593
|
+
description: "Suggested staffing or agent allocation note"
|
|
594
|
+
},
|
|
595
|
+
lensId: {
|
|
596
|
+
type: "string",
|
|
597
|
+
description: "Lens that scopes this worktree when applicable"
|
|
598
|
+
},
|
|
599
|
+
lastReconciledAt: {
|
|
600
|
+
type: "number",
|
|
601
|
+
description: "Timestamp when worktree metadata was last reconciled"
|
|
513
602
|
}
|
|
514
603
|
},
|
|
515
604
|
required: ["title", "topicId"],
|
|
@@ -539,7 +628,7 @@ var MERGE = {
|
|
|
539
628
|
worktreeId: { type: "string", description: "The worktree to merge" },
|
|
540
629
|
outcomes: {
|
|
541
630
|
type: "array",
|
|
542
|
-
description: "
|
|
631
|
+
description: "Merge outcomes as key-finding strings, or scoring outcomes for beliefs: { beliefId, confidence, rationale }"
|
|
543
632
|
},
|
|
544
633
|
summary: { type: "string", description: "Overall findings summary" }
|
|
545
634
|
},
|
|
@@ -1093,6 +1182,74 @@ var GET_GRAPH_STRUCTURE_ANALYSIS = {
|
|
|
1093
1182
|
ontologyPrimitive: "graph",
|
|
1094
1183
|
tier: "showcase"
|
|
1095
1184
|
};
|
|
1185
|
+
var LIST_GRAPH_INTELLIGENCE_QUERIES = {
|
|
1186
|
+
name: "list_graph_intelligence_queries",
|
|
1187
|
+
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.",
|
|
1188
|
+
parameters: {
|
|
1189
|
+
categoryId: {
|
|
1190
|
+
type: "string",
|
|
1191
|
+
description: "Optional category filter, such as problems or strategic"
|
|
1192
|
+
},
|
|
1193
|
+
mode: {
|
|
1194
|
+
type: "string",
|
|
1195
|
+
description: "Optional mode filter: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1196
|
+
}
|
|
1197
|
+
},
|
|
1198
|
+
required: [],
|
|
1199
|
+
response: {
|
|
1200
|
+
description: "Graph Intelligence query catalog and mode-to-tool mapping",
|
|
1201
|
+
fields: {
|
|
1202
|
+
categories: "array \u2014 query categories",
|
|
1203
|
+
queries: "array \u2014 query definitions with prompt templates and tools",
|
|
1204
|
+
quickQueries: "array \u2014 recommended one-click query presets",
|
|
1205
|
+
publicToolNamesByMode: "object \u2014 public tool names available to each Graph Intelligence mode"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
ownerModule: "graph-intelligence",
|
|
1209
|
+
ontologyPrimitive: "graph",
|
|
1210
|
+
tier: "showcase"
|
|
1211
|
+
};
|
|
1212
|
+
var RUN_GRAPH_INTELLIGENCE_QUERY = {
|
|
1213
|
+
name: "run_graph_intelligence_query",
|
|
1214
|
+
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.",
|
|
1215
|
+
parameters: {
|
|
1216
|
+
topicId: { type: "string", description: "Topic to analyze" },
|
|
1217
|
+
queryId: {
|
|
1218
|
+
type: "string",
|
|
1219
|
+
description: "Graph Intelligence query ID, such as confirmation-bias, pre-mortem, or thesis-summary"
|
|
1220
|
+
},
|
|
1221
|
+
prompt: {
|
|
1222
|
+
type: "string",
|
|
1223
|
+
description: "Optional custom prompt for custom analysis runs"
|
|
1224
|
+
},
|
|
1225
|
+
input: {
|
|
1226
|
+
type: "string",
|
|
1227
|
+
description: "Optional entity, theme, belief, company, or search text for input-driven queries"
|
|
1228
|
+
},
|
|
1229
|
+
mode: {
|
|
1230
|
+
type: "string",
|
|
1231
|
+
description: "Optional mode override: core, bias, stress, operational, alpha, semantic, or evidence"
|
|
1232
|
+
},
|
|
1233
|
+
limit: {
|
|
1234
|
+
type: "number",
|
|
1235
|
+
description: "Maximum graph context rows to return"
|
|
1236
|
+
}
|
|
1237
|
+
},
|
|
1238
|
+
required: ["topicId"],
|
|
1239
|
+
response: {
|
|
1240
|
+
description: "Graph Intelligence query result bundle ready for model or prompt-library synthesis",
|
|
1241
|
+
fields: {
|
|
1242
|
+
query: "object \u2014 selected query definition",
|
|
1243
|
+
prompt: "string \u2014 resolved prompt template",
|
|
1244
|
+
toolPlan: "array \u2014 public tools and args the model can call next",
|
|
1245
|
+
analysis: "object \u2014 structure, coverage, gap, and confirmation-bias analysis",
|
|
1246
|
+
context: "object \u2014 sampled beliefs, questions, evidence, edges, and contradictions"
|
|
1247
|
+
}
|
|
1248
|
+
},
|
|
1249
|
+
ownerModule: "graph-intelligence",
|
|
1250
|
+
ontologyPrimitive: "graph",
|
|
1251
|
+
tier: "showcase"
|
|
1252
|
+
};
|
|
1096
1253
|
var GET_FALSIFICATION_QUESTIONS = {
|
|
1097
1254
|
name: "get_falsification_questions",
|
|
1098
1255
|
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.",
|
|
@@ -3558,6 +3715,69 @@ var GENERATE_SESSION_HANDOFF = {
|
|
|
3558
3715
|
tier: "showcase",
|
|
3559
3716
|
internal: true
|
|
3560
3717
|
};
|
|
3718
|
+
var BEGIN_BUILD_SESSION = {
|
|
3719
|
+
name: "begin_build_session",
|
|
3720
|
+
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.",
|
|
3721
|
+
parameters: {
|
|
3722
|
+
worktreeId: {
|
|
3723
|
+
type: "string",
|
|
3724
|
+
description: "The Lucern worktree ID to bootstrap."
|
|
3725
|
+
},
|
|
3726
|
+
branch: {
|
|
3727
|
+
type: "string",
|
|
3728
|
+
description: "Optional git branch name. Auto-generated from the worktree name when omitted."
|
|
3729
|
+
},
|
|
3730
|
+
branchBase: {
|
|
3731
|
+
type: "string",
|
|
3732
|
+
description: 'Base branch for the feature branch. Default: "staging".'
|
|
3733
|
+
},
|
|
3734
|
+
prBase: {
|
|
3735
|
+
type: "string",
|
|
3736
|
+
description: 'Target branch for the PR. Default: "staging".'
|
|
3737
|
+
},
|
|
3738
|
+
sessionMode: {
|
|
3739
|
+
type: "string",
|
|
3740
|
+
description: 'Session mode: "async" for Codex/headless or "interactive" for live sessions.',
|
|
3741
|
+
enum: ["async", "interactive"]
|
|
3742
|
+
},
|
|
3743
|
+
activateIfPlanning: {
|
|
3744
|
+
type: "boolean",
|
|
3745
|
+
description: "When true, automatically activate a planning worktree during bootstrap."
|
|
3746
|
+
}
|
|
3747
|
+
},
|
|
3748
|
+
required: ["worktreeId"],
|
|
3749
|
+
response: {
|
|
3750
|
+
description: "A compact build-session packet with worktree metadata, graph anchors, questions, dependencies, and git defaults.",
|
|
3751
|
+
fields: {
|
|
3752
|
+
topicId: "string \u2014 canonical topic scope",
|
|
3753
|
+
topicName: "string \u2014 human-readable topic name",
|
|
3754
|
+
worktreeId: "string \u2014 worktree ID",
|
|
3755
|
+
worktreeName: "string \u2014 human-readable worktree name",
|
|
3756
|
+
branch: "string \u2014 git branch name",
|
|
3757
|
+
branchBase: "string \u2014 base branch",
|
|
3758
|
+
prBase: "string \u2014 PR target branch",
|
|
3759
|
+
campaign: "number | null \u2014 top-level pipeline campaign",
|
|
3760
|
+
lane: "string \u2014 campaign lane",
|
|
3761
|
+
gate: "string \u2014 exit gate",
|
|
3762
|
+
hypothesis: "string \u2014 worktree hypothesis",
|
|
3763
|
+
focus: "string \u2014 session focus",
|
|
3764
|
+
status: "string \u2014 worktree status after optional activation",
|
|
3765
|
+
sessionMode: "string \u2014 async | interactive",
|
|
3766
|
+
targetBeliefIds: "array \u2014 scoped belief IDs",
|
|
3767
|
+
targetQuestionIds: "array \u2014 scoped question IDs",
|
|
3768
|
+
topBeliefs: "array \u2014 highest-confidence scoped beliefs",
|
|
3769
|
+
openQuestions: "array \u2014 open scoped questions",
|
|
3770
|
+
resolvedDecisions: "array \u2014 answered questions summarized for the session",
|
|
3771
|
+
dependencies: "array \u2014 upstream worktrees",
|
|
3772
|
+
unblocks: "array \u2014 downstream worktrees",
|
|
3773
|
+
mergeOrderNotes: "string \u2014 merge ordering advisory"
|
|
3774
|
+
}
|
|
3775
|
+
},
|
|
3776
|
+
ownerModule: "bootstrap",
|
|
3777
|
+
ontologyPrimitive: "worktree",
|
|
3778
|
+
tier: "showcase",
|
|
3779
|
+
internal: true
|
|
3780
|
+
};
|
|
3561
3781
|
var MCP_TOOL_CONTRACTS = {
|
|
3562
3782
|
// Belief lifecycle (commit, amend, fork, archive)
|
|
3563
3783
|
create_belief: CREATE_BELIEF,
|
|
@@ -3605,6 +3825,8 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3605
3825
|
// Graph intelligence (showcase)
|
|
3606
3826
|
detect_confirmation_bias: DETECT_CONFIRMATION_BIAS,
|
|
3607
3827
|
get_graph_structure_analysis: GET_GRAPH_STRUCTURE_ANALYSIS,
|
|
3828
|
+
list_graph_intelligence_queries: LIST_GRAPH_INTELLIGENCE_QUERIES,
|
|
3829
|
+
run_graph_intelligence_query: RUN_GRAPH_INTELLIGENCE_QUERY,
|
|
3608
3830
|
get_falsification_questions: GET_FALSIFICATION_QUESTIONS,
|
|
3609
3831
|
// Evidence operations (workhorse)
|
|
3610
3832
|
search_evidence: SEARCH_EVIDENCE,
|
|
@@ -3651,6 +3873,7 @@ var MCP_TOOL_CONTRACTS = {
|
|
|
3651
3873
|
get_agent_inbox: GET_AGENT_INBOX,
|
|
3652
3874
|
claim_files: CLAIM_FILES,
|
|
3653
3875
|
generate_session_handoff: GENERATE_SESSION_HANDOFF,
|
|
3876
|
+
begin_build_session: BEGIN_BUILD_SESSION,
|
|
3654
3877
|
// Policy / ACL (workhorse)
|
|
3655
3878
|
check_permission: CHECK_PERMISSION,
|
|
3656
3879
|
filter_by_permission: FILTER_BY_PERMISSION,
|
|
@@ -3786,6 +4009,8 @@ var MCP_ANALYSIS_PLATFORM_OPERATION_NAMES = [
|
|
|
3786
4009
|
"traverse_graph",
|
|
3787
4010
|
"get_graph_neighborhood",
|
|
3788
4011
|
"get_graph_structure_analysis",
|
|
4012
|
+
"list_graph_intelligence_queries",
|
|
4013
|
+
"run_graph_intelligence_query",
|
|
3789
4014
|
"find_contradictions",
|
|
3790
4015
|
"flag_contradiction",
|
|
3791
4016
|
"detect_confirmation_bias",
|
|
@@ -3877,6 +4102,7 @@ var PLATFORM_INTERNAL_OPERATION_NAMES = [
|
|
|
3877
4102
|
"get_change_history",
|
|
3878
4103
|
"get_failure_log",
|
|
3879
4104
|
"record_attempt",
|
|
4105
|
+
"begin_build_session",
|
|
3880
4106
|
"push",
|
|
3881
4107
|
"open_pull_request",
|
|
3882
4108
|
"record_judgment",
|
|
@@ -3931,7 +4157,6 @@ var SDK_ONLY_OPERATION_NAMES = [
|
|
|
3931
4157
|
"find_semantic_orphans"
|
|
3932
4158
|
];
|
|
3933
4159
|
var MCP_ONLY_INTERNAL_OPERATION_NAMES = [
|
|
3934
|
-
"begin_build_session",
|
|
3935
4160
|
"evaluate_engineering_contract",
|
|
3936
4161
|
"evaluate_research_contract"
|
|
3937
4162
|
];
|