@xpert-ai/contracts 3.23.0 → 3.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/index.cjs.js +5295 -368
  2. package/index.esm.js +5184 -369
  3. package/package.json +2 -2
  4. package/src/ai/agent-output-delivery.model.d.ts +10 -10
  5. package/src/ai/agent-runtime.model.d.ts +24 -24
  6. package/src/ai/assistant-model.model.d.ts +8 -0
  7. package/src/ai/assistant-template-dependencies.model.d.ts +1 -1
  8. package/src/ai/chat.model.d.ts +3 -1
  9. package/src/ai/index.d.ts +2 -0
  10. package/src/ai/mcp-publication.model.d.ts +20 -0
  11. package/src/ai/model-discovery.model.d.ts +2 -0
  12. package/src/ai/project-pipeline/analytics.d.ts +1685 -0
  13. package/src/ai/project-pipeline/budget.schema.d.ts +78 -0
  14. package/src/ai/project-pipeline/catalog.schema.d.ts +188 -0
  15. package/src/ai/project-pipeline/catalog.validation.d.ts +4 -0
  16. package/src/ai/project-pipeline/commands.schema.d.ts +4381 -0
  17. package/src/ai/project-pipeline/compatibility.d.ts +5 -0
  18. package/src/ai/project-pipeline/compatibility.schema.d.ts +29 -0
  19. package/src/ai/project-pipeline/configuration-form.d.ts +17374 -0
  20. package/src/ai/project-pipeline/configuration.schema.d.ts +3774 -0
  21. package/src/ai/project-pipeline/contribution.schema.d.ts +6721 -0
  22. package/src/ai/project-pipeline/dataflow.validation.d.ts +6 -0
  23. package/src/ai/project-pipeline/definition.schema.d.ts +3808 -0
  24. package/src/ai/project-pipeline/definition.validation.d.ts +7 -0
  25. package/src/ai/project-pipeline/execution-statistics.d.ts +267 -0
  26. package/src/ai/project-pipeline/graph.model.d.ts +89 -0
  27. package/src/ai/project-pipeline/human-wait-statistics.d.ts +70 -0
  28. package/src/ai/project-pipeline/human-wait.schema.d.ts +26 -0
  29. package/src/ai/project-pipeline/index.d.ts +28 -0
  30. package/src/ai/project-pipeline/model-usage-statistics.d.ts +143 -0
  31. package/src/ai/project-pipeline/native-source.schema.d.ts +40 -0
  32. package/src/ai/project-pipeline/node.schema.d.ts +839 -0
  33. package/src/ai/project-pipeline/operation.schema.d.ts +800 -0
  34. package/src/ai/project-pipeline/portfolio.schema.d.ts +3817 -0
  35. package/src/ai/project-pipeline/primitives.schema.d.ts +138 -0
  36. package/src/ai/project-pipeline/projection.schema.d.ts +4715 -0
  37. package/src/ai/project-pipeline/provider-actions.schema.d.ts +2030 -0
  38. package/src/ai/project-pipeline/queue-statistics.d.ts +326 -0
  39. package/src/ai/project-pipeline/resources.schema.d.ts +73 -0
  40. package/src/ai/project-pipeline/runtime.schema.d.ts +934 -0
  41. package/src/ai/project-pipeline/statistics.d.ts +811 -0
  42. package/src/ai/project-task-graph.model.d.ts +18 -2
  43. package/src/ai/project-task-runtime.model.d.ts +924 -924
  44. package/src/ai/provider-credential-validation.model.d.ts +63 -0
  45. package/src/ai/template-installation.model.d.ts +29 -0
  46. package/src/ai/types.d.ts +6 -4
  47. package/src/ai/xpert-project-type.model.d.ts +15 -4
  48. package/src/ai/xpert-project.model.d.ts +9 -2
  49. package/src/ai/xpert-template.model.d.ts +1 -1
  50. package/src/analytics-query.model.d.ts +5 -0
  51. package/src/artifact-presentation.model.d.ts +28 -0
  52. package/src/index.d.ts +1 -0
  53. package/src/view-extension/model.d.ts +10 -1
@@ -0,0 +1,3808 @@
1
+ import { z } from 'zod/v3';
2
+ export declare const projectPipelineDefinitionShapeSchema: z.ZodDiscriminatedUnion<"executionAuthority", [z.ZodObject<{
3
+ executionAuthority: z.ZodLiteral<"provider">;
4
+ providerRef: z.ZodString;
5
+ topology: z.ZodObject<{
6
+ source: z.ZodLiteral<"provider">;
7
+ presentationAdapterRef: z.ZodString;
8
+ }, "strict", z.ZodTypeAny, {
9
+ source: "provider";
10
+ presentationAdapterRef: string;
11
+ }, {
12
+ source: "provider";
13
+ presentationAdapterRef: string;
14
+ }>;
15
+ actionRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
+ hostRequirements: z.ZodOptional<z.ZodObject<{
17
+ protocol: z.ZodNumber;
18
+ features: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodNumber>, Record<string, number>, Record<string, number>>;
19
+ }, "strict", z.ZodTypeAny, {
20
+ protocol: number;
21
+ features: Record<string, number>;
22
+ }, {
23
+ protocol: number;
24
+ features: Record<string, number>;
25
+ }>>;
26
+ key: z.ZodEffects<z.ZodString, string, string>;
27
+ version: z.ZodString;
28
+ title: z.ZodString;
29
+ subjectResolverRef: z.ZodString;
30
+ roles: z.ZodArray<z.ZodObject<{
31
+ key: z.ZodEffects<z.ZodString, string, string>;
32
+ allowedKinds: z.ZodArray<z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>, "many">;
33
+ }, "strict", z.ZodTypeAny, {
34
+ key: string;
35
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
36
+ }, {
37
+ key: string;
38
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
39
+ }>, "many">;
40
+ lanes: z.ZodArray<z.ZodObject<{
41
+ key: z.ZodEffects<z.ZodString, string, string>;
42
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
43
+ label: z.ZodString;
44
+ order: z.ZodNumber;
45
+ }, "strict", z.ZodTypeAny, {
46
+ key: string;
47
+ roleKey: string;
48
+ label: string;
49
+ order: number;
50
+ }, {
51
+ key: string;
52
+ roleKey: string;
53
+ label: string;
54
+ order: number;
55
+ }>, "many">;
56
+ stages: z.ZodArray<z.ZodObject<{
57
+ key: z.ZodEffects<z.ZodString, string, string>;
58
+ label: z.ZodString;
59
+ icon: z.ZodOptional<z.ZodEnum<["layers", "file-text", "folder-open", "list-checks", "search", "scan-search", "boxes", "package", "settings", "clipboard-check", "shield-check", "git-pull-request", "code", "test-tube", "git-merge", "calculator", "file-check", "truck"]>>;
60
+ order: z.ZodNumber;
61
+ }, "strict", z.ZodTypeAny, {
62
+ key: string;
63
+ label: string;
64
+ order: number;
65
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
66
+ }, {
67
+ key: string;
68
+ label: string;
69
+ order: number;
70
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
71
+ }>, "many">;
72
+ presentation: z.ZodOptional<z.ZodObject<{
73
+ views: z.ZodArray<z.ZodEnum<["tasks", "pipeline", "agent_timeline"]>, "many">;
74
+ nodeDetailRef: z.ZodOptional<z.ZodString>;
75
+ evidenceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
76
+ }, "strict", z.ZodTypeAny, {
77
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
78
+ nodeDetailRef?: string | undefined;
79
+ evidenceTypes?: string[] | undefined;
80
+ }, {
81
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
82
+ nodeDetailRef?: string | undefined;
83
+ evidenceTypes?: string[] | undefined;
84
+ }>>;
85
+ metrics: z.ZodOptional<z.ZodObject<{
86
+ dimensionRefs: z.ZodArray<z.ZodString, "many">;
87
+ metricRefs: z.ZodArray<z.ZodString, "many">;
88
+ }, "strict", z.ZodTypeAny, {
89
+ dimensionRefs: string[];
90
+ metricRefs: string[];
91
+ }, {
92
+ dimensionRefs: string[];
93
+ metricRefs: string[];
94
+ }>>;
95
+ }, "strict", z.ZodTypeAny, {
96
+ key: string;
97
+ executionAuthority: "provider";
98
+ providerRef: string;
99
+ topology: {
100
+ source: "provider";
101
+ presentationAdapterRef: string;
102
+ };
103
+ version: string;
104
+ title: string;
105
+ subjectResolverRef: string;
106
+ roles: {
107
+ key: string;
108
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
109
+ }[];
110
+ lanes: {
111
+ key: string;
112
+ roleKey: string;
113
+ label: string;
114
+ order: number;
115
+ }[];
116
+ stages: {
117
+ key: string;
118
+ label: string;
119
+ order: number;
120
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
121
+ }[];
122
+ actionRefs?: string[] | undefined;
123
+ hostRequirements?: {
124
+ protocol: number;
125
+ features: Record<string, number>;
126
+ } | undefined;
127
+ presentation?: {
128
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
129
+ nodeDetailRef?: string | undefined;
130
+ evidenceTypes?: string[] | undefined;
131
+ } | undefined;
132
+ metrics?: {
133
+ dimensionRefs: string[];
134
+ metricRefs: string[];
135
+ } | undefined;
136
+ }, {
137
+ key: string;
138
+ executionAuthority: "provider";
139
+ providerRef: string;
140
+ topology: {
141
+ source: "provider";
142
+ presentationAdapterRef: string;
143
+ };
144
+ version: string;
145
+ title: string;
146
+ subjectResolverRef: string;
147
+ roles: {
148
+ key: string;
149
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
150
+ }[];
151
+ lanes: {
152
+ key: string;
153
+ roleKey: string;
154
+ label: string;
155
+ order: number;
156
+ }[];
157
+ stages: {
158
+ key: string;
159
+ label: string;
160
+ order: number;
161
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
162
+ }[];
163
+ actionRefs?: string[] | undefined;
164
+ hostRequirements?: {
165
+ protocol: number;
166
+ features: Record<string, number>;
167
+ } | undefined;
168
+ presentation?: {
169
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
170
+ nodeDetailRef?: string | undefined;
171
+ evidenceTypes?: string[] | undefined;
172
+ } | undefined;
173
+ metrics?: {
174
+ dimensionRefs: string[];
175
+ metricRefs: string[];
176
+ } | undefined;
177
+ }>, z.ZodObject<{
178
+ executionAuthority: z.ZodLiteral<"platform">;
179
+ topology: z.ZodObject<{
180
+ source: z.ZodLiteral<"definition">;
181
+ }, "strict", z.ZodTypeAny, {
182
+ source: "definition";
183
+ }, {
184
+ source: "definition";
185
+ }>;
186
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
187
+ kind: z.ZodLiteral<"work">;
188
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
189
+ operationRef: z.ZodString;
190
+ executorSlot: z.ZodEffects<z.ZodString, string, string>;
191
+ completionRef: z.ZodString;
192
+ resourceResolverRef: z.ZodOptional<z.ZodString>;
193
+ outputSchemaRef: z.ZodOptional<z.ZodString>;
194
+ key: z.ZodEffects<z.ZodString, string, string>;
195
+ label: z.ZodOptional<z.ZodString>;
196
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
197
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
198
+ from: z.ZodLiteral<"subject">;
199
+ }, "strict", z.ZodTypeAny, {
200
+ from: "subject";
201
+ }, {
202
+ from: "subject";
203
+ }>, z.ZodObject<{
204
+ from: z.ZodLiteral<"parameter">;
205
+ key: z.ZodEffects<z.ZodString, string, string>;
206
+ }, "strict", z.ZodTypeAny, {
207
+ key: string;
208
+ from: "parameter";
209
+ }, {
210
+ key: string;
211
+ from: "parameter";
212
+ }>, z.ZodObject<{
213
+ from: z.ZodLiteral<"node_output">;
214
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
215
+ port: z.ZodEffects<z.ZodString, string, string>;
216
+ }, "strict", z.ZodTypeAny, {
217
+ from: "node_output";
218
+ nodeKey: string;
219
+ port: string;
220
+ }, {
221
+ from: "node_output";
222
+ nodeKey: string;
223
+ port: string;
224
+ }>, z.ZodObject<{
225
+ from: z.ZodLiteral<"collection">;
226
+ items: z.ZodArray<z.ZodObject<{
227
+ from: z.ZodLiteral<"node_output">;
228
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
229
+ port: z.ZodEffects<z.ZodString, string, string>;
230
+ }, "strict", z.ZodTypeAny, {
231
+ from: "node_output";
232
+ nodeKey: string;
233
+ port: string;
234
+ }, {
235
+ from: "node_output";
236
+ nodeKey: string;
237
+ port: string;
238
+ }>, "many">;
239
+ }, "strict", z.ZodTypeAny, {
240
+ from: "collection";
241
+ items: {
242
+ from: "node_output";
243
+ nodeKey: string;
244
+ port: string;
245
+ }[];
246
+ }, {
247
+ from: "collection";
248
+ items: {
249
+ from: "node_output";
250
+ nodeKey: string;
251
+ port: string;
252
+ }[];
253
+ }>]>>>;
254
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
255
+ }, "strict", z.ZodTypeAny, {
256
+ key: string;
257
+ kind: "work";
258
+ laneKey: string;
259
+ operationRef: string;
260
+ executorSlot: string;
261
+ completionRef: string;
262
+ stageKey: string;
263
+ label?: string | undefined;
264
+ resourceResolverRef?: string | undefined;
265
+ outputSchemaRef?: string | undefined;
266
+ inputBindings?: Record<string, {
267
+ from: "node_output";
268
+ nodeKey: string;
269
+ port: string;
270
+ } | {
271
+ from: "subject";
272
+ } | {
273
+ key: string;
274
+ from: "parameter";
275
+ } | {
276
+ from: "collection";
277
+ items: {
278
+ from: "node_output";
279
+ nodeKey: string;
280
+ port: string;
281
+ }[];
282
+ }> | undefined;
283
+ outputPorts?: Record<string, string> | undefined;
284
+ }, {
285
+ key: string;
286
+ kind: "work";
287
+ laneKey: string;
288
+ operationRef: string;
289
+ executorSlot: string;
290
+ completionRef: string;
291
+ stageKey: string;
292
+ label?: string | undefined;
293
+ resourceResolverRef?: string | undefined;
294
+ outputSchemaRef?: string | undefined;
295
+ inputBindings?: Record<string, {
296
+ from: "node_output";
297
+ nodeKey: string;
298
+ port: string;
299
+ } | {
300
+ from: "subject";
301
+ } | {
302
+ key: string;
303
+ from: "parameter";
304
+ } | {
305
+ from: "collection";
306
+ items: {
307
+ from: "node_output";
308
+ nodeKey: string;
309
+ port: string;
310
+ }[];
311
+ }> | undefined;
312
+ outputPorts?: Record<string, string> | undefined;
313
+ }>, z.ZodObject<{
314
+ kind: z.ZodLiteral<"fork">;
315
+ key: z.ZodEffects<z.ZodString, string, string>;
316
+ label: z.ZodOptional<z.ZodString>;
317
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
318
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
319
+ from: z.ZodLiteral<"subject">;
320
+ }, "strict", z.ZodTypeAny, {
321
+ from: "subject";
322
+ }, {
323
+ from: "subject";
324
+ }>, z.ZodObject<{
325
+ from: z.ZodLiteral<"parameter">;
326
+ key: z.ZodEffects<z.ZodString, string, string>;
327
+ }, "strict", z.ZodTypeAny, {
328
+ key: string;
329
+ from: "parameter";
330
+ }, {
331
+ key: string;
332
+ from: "parameter";
333
+ }>, z.ZodObject<{
334
+ from: z.ZodLiteral<"node_output">;
335
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
336
+ port: z.ZodEffects<z.ZodString, string, string>;
337
+ }, "strict", z.ZodTypeAny, {
338
+ from: "node_output";
339
+ nodeKey: string;
340
+ port: string;
341
+ }, {
342
+ from: "node_output";
343
+ nodeKey: string;
344
+ port: string;
345
+ }>, z.ZodObject<{
346
+ from: z.ZodLiteral<"collection">;
347
+ items: z.ZodArray<z.ZodObject<{
348
+ from: z.ZodLiteral<"node_output">;
349
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
350
+ port: z.ZodEffects<z.ZodString, string, string>;
351
+ }, "strict", z.ZodTypeAny, {
352
+ from: "node_output";
353
+ nodeKey: string;
354
+ port: string;
355
+ }, {
356
+ from: "node_output";
357
+ nodeKey: string;
358
+ port: string;
359
+ }>, "many">;
360
+ }, "strict", z.ZodTypeAny, {
361
+ from: "collection";
362
+ items: {
363
+ from: "node_output";
364
+ nodeKey: string;
365
+ port: string;
366
+ }[];
367
+ }, {
368
+ from: "collection";
369
+ items: {
370
+ from: "node_output";
371
+ nodeKey: string;
372
+ port: string;
373
+ }[];
374
+ }>]>>>;
375
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
376
+ }, "strict", z.ZodTypeAny, {
377
+ key: string;
378
+ kind: "fork";
379
+ stageKey: string;
380
+ label?: string | undefined;
381
+ inputBindings?: Record<string, {
382
+ from: "node_output";
383
+ nodeKey: string;
384
+ port: string;
385
+ } | {
386
+ from: "subject";
387
+ } | {
388
+ key: string;
389
+ from: "parameter";
390
+ } | {
391
+ from: "collection";
392
+ items: {
393
+ from: "node_output";
394
+ nodeKey: string;
395
+ port: string;
396
+ }[];
397
+ }> | undefined;
398
+ outputPorts?: Record<string, string> | undefined;
399
+ }, {
400
+ key: string;
401
+ kind: "fork";
402
+ stageKey: string;
403
+ label?: string | undefined;
404
+ inputBindings?: Record<string, {
405
+ from: "node_output";
406
+ nodeKey: string;
407
+ port: string;
408
+ } | {
409
+ from: "subject";
410
+ } | {
411
+ key: string;
412
+ from: "parameter";
413
+ } | {
414
+ from: "collection";
415
+ items: {
416
+ from: "node_output";
417
+ nodeKey: string;
418
+ port: string;
419
+ }[];
420
+ }> | undefined;
421
+ outputPorts?: Record<string, string> | undefined;
422
+ }>, z.ZodObject<{
423
+ kind: z.ZodLiteral<"join">;
424
+ join: z.ZodObject<{
425
+ mode: z.ZodLiteral<"all_selected">;
426
+ accept: z.ZodLiteral<"completed">;
427
+ }, "strict", z.ZodTypeAny, {
428
+ mode: "all_selected";
429
+ accept: "completed";
430
+ }, {
431
+ mode: "all_selected";
432
+ accept: "completed";
433
+ }>;
434
+ key: z.ZodEffects<z.ZodString, string, string>;
435
+ label: z.ZodOptional<z.ZodString>;
436
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
437
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
438
+ from: z.ZodLiteral<"subject">;
439
+ }, "strict", z.ZodTypeAny, {
440
+ from: "subject";
441
+ }, {
442
+ from: "subject";
443
+ }>, z.ZodObject<{
444
+ from: z.ZodLiteral<"parameter">;
445
+ key: z.ZodEffects<z.ZodString, string, string>;
446
+ }, "strict", z.ZodTypeAny, {
447
+ key: string;
448
+ from: "parameter";
449
+ }, {
450
+ key: string;
451
+ from: "parameter";
452
+ }>, z.ZodObject<{
453
+ from: z.ZodLiteral<"node_output">;
454
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
455
+ port: z.ZodEffects<z.ZodString, string, string>;
456
+ }, "strict", z.ZodTypeAny, {
457
+ from: "node_output";
458
+ nodeKey: string;
459
+ port: string;
460
+ }, {
461
+ from: "node_output";
462
+ nodeKey: string;
463
+ port: string;
464
+ }>, z.ZodObject<{
465
+ from: z.ZodLiteral<"collection">;
466
+ items: z.ZodArray<z.ZodObject<{
467
+ from: z.ZodLiteral<"node_output">;
468
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
469
+ port: z.ZodEffects<z.ZodString, string, string>;
470
+ }, "strict", z.ZodTypeAny, {
471
+ from: "node_output";
472
+ nodeKey: string;
473
+ port: string;
474
+ }, {
475
+ from: "node_output";
476
+ nodeKey: string;
477
+ port: string;
478
+ }>, "many">;
479
+ }, "strict", z.ZodTypeAny, {
480
+ from: "collection";
481
+ items: {
482
+ from: "node_output";
483
+ nodeKey: string;
484
+ port: string;
485
+ }[];
486
+ }, {
487
+ from: "collection";
488
+ items: {
489
+ from: "node_output";
490
+ nodeKey: string;
491
+ port: string;
492
+ }[];
493
+ }>]>>>;
494
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
495
+ }, "strict", z.ZodTypeAny, {
496
+ join: {
497
+ mode: "all_selected";
498
+ accept: "completed";
499
+ };
500
+ key: string;
501
+ kind: "join";
502
+ stageKey: string;
503
+ label?: string | undefined;
504
+ inputBindings?: Record<string, {
505
+ from: "node_output";
506
+ nodeKey: string;
507
+ port: string;
508
+ } | {
509
+ from: "subject";
510
+ } | {
511
+ key: string;
512
+ from: "parameter";
513
+ } | {
514
+ from: "collection";
515
+ items: {
516
+ from: "node_output";
517
+ nodeKey: string;
518
+ port: string;
519
+ }[];
520
+ }> | undefined;
521
+ outputPorts?: Record<string, string> | undefined;
522
+ }, {
523
+ join: {
524
+ mode: "all_selected";
525
+ accept: "completed";
526
+ };
527
+ key: string;
528
+ kind: "join";
529
+ stageKey: string;
530
+ label?: string | undefined;
531
+ inputBindings?: Record<string, {
532
+ from: "node_output";
533
+ nodeKey: string;
534
+ port: string;
535
+ } | {
536
+ from: "subject";
537
+ } | {
538
+ key: string;
539
+ from: "parameter";
540
+ } | {
541
+ from: "collection";
542
+ items: {
543
+ from: "node_output";
544
+ nodeKey: string;
545
+ port: string;
546
+ }[];
547
+ }> | undefined;
548
+ outputPorts?: Record<string, string> | undefined;
549
+ }>, z.ZodObject<{
550
+ kind: z.ZodLiteral<"router">;
551
+ policyRef: z.ZodString;
552
+ outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
553
+ unmatched: z.ZodLiteral<"block">;
554
+ key: z.ZodEffects<z.ZodString, string, string>;
555
+ label: z.ZodOptional<z.ZodString>;
556
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
557
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
558
+ from: z.ZodLiteral<"subject">;
559
+ }, "strict", z.ZodTypeAny, {
560
+ from: "subject";
561
+ }, {
562
+ from: "subject";
563
+ }>, z.ZodObject<{
564
+ from: z.ZodLiteral<"parameter">;
565
+ key: z.ZodEffects<z.ZodString, string, string>;
566
+ }, "strict", z.ZodTypeAny, {
567
+ key: string;
568
+ from: "parameter";
569
+ }, {
570
+ key: string;
571
+ from: "parameter";
572
+ }>, z.ZodObject<{
573
+ from: z.ZodLiteral<"node_output">;
574
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
575
+ port: z.ZodEffects<z.ZodString, string, string>;
576
+ }, "strict", z.ZodTypeAny, {
577
+ from: "node_output";
578
+ nodeKey: string;
579
+ port: string;
580
+ }, {
581
+ from: "node_output";
582
+ nodeKey: string;
583
+ port: string;
584
+ }>, z.ZodObject<{
585
+ from: z.ZodLiteral<"collection">;
586
+ items: z.ZodArray<z.ZodObject<{
587
+ from: z.ZodLiteral<"node_output">;
588
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
589
+ port: z.ZodEffects<z.ZodString, string, string>;
590
+ }, "strict", z.ZodTypeAny, {
591
+ from: "node_output";
592
+ nodeKey: string;
593
+ port: string;
594
+ }, {
595
+ from: "node_output";
596
+ nodeKey: string;
597
+ port: string;
598
+ }>, "many">;
599
+ }, "strict", z.ZodTypeAny, {
600
+ from: "collection";
601
+ items: {
602
+ from: "node_output";
603
+ nodeKey: string;
604
+ port: string;
605
+ }[];
606
+ }, {
607
+ from: "collection";
608
+ items: {
609
+ from: "node_output";
610
+ nodeKey: string;
611
+ port: string;
612
+ }[];
613
+ }>]>>>;
614
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
615
+ }, "strict", z.ZodTypeAny, {
616
+ key: string;
617
+ kind: "router";
618
+ stageKey: string;
619
+ policyRef: string;
620
+ outcomes: string[];
621
+ unmatched: "block";
622
+ label?: string | undefined;
623
+ inputBindings?: Record<string, {
624
+ from: "node_output";
625
+ nodeKey: string;
626
+ port: string;
627
+ } | {
628
+ from: "subject";
629
+ } | {
630
+ key: string;
631
+ from: "parameter";
632
+ } | {
633
+ from: "collection";
634
+ items: {
635
+ from: "node_output";
636
+ nodeKey: string;
637
+ port: string;
638
+ }[];
639
+ }> | undefined;
640
+ outputPorts?: Record<string, string> | undefined;
641
+ }, {
642
+ key: string;
643
+ kind: "router";
644
+ stageKey: string;
645
+ policyRef: string;
646
+ outcomes: string[];
647
+ unmatched: "block";
648
+ label?: string | undefined;
649
+ inputBindings?: Record<string, {
650
+ from: "node_output";
651
+ nodeKey: string;
652
+ port: string;
653
+ } | {
654
+ from: "subject";
655
+ } | {
656
+ key: string;
657
+ from: "parameter";
658
+ } | {
659
+ from: "collection";
660
+ items: {
661
+ from: "node_output";
662
+ nodeKey: string;
663
+ port: string;
664
+ }[];
665
+ }> | undefined;
666
+ outputPorts?: Record<string, string> | undefined;
667
+ }>, z.ZodObject<{
668
+ kind: z.ZodLiteral<"human_gate">;
669
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
670
+ policyRef: z.ZodString;
671
+ candidateRoleKey: z.ZodEffects<z.ZodString, string, string>;
672
+ outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
673
+ outcomeLabels: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
674
+ key: z.ZodEffects<z.ZodString, string, string>;
675
+ label: z.ZodOptional<z.ZodString>;
676
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
677
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
678
+ from: z.ZodLiteral<"subject">;
679
+ }, "strict", z.ZodTypeAny, {
680
+ from: "subject";
681
+ }, {
682
+ from: "subject";
683
+ }>, z.ZodObject<{
684
+ from: z.ZodLiteral<"parameter">;
685
+ key: z.ZodEffects<z.ZodString, string, string>;
686
+ }, "strict", z.ZodTypeAny, {
687
+ key: string;
688
+ from: "parameter";
689
+ }, {
690
+ key: string;
691
+ from: "parameter";
692
+ }>, z.ZodObject<{
693
+ from: z.ZodLiteral<"node_output">;
694
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
695
+ port: z.ZodEffects<z.ZodString, string, string>;
696
+ }, "strict", z.ZodTypeAny, {
697
+ from: "node_output";
698
+ nodeKey: string;
699
+ port: string;
700
+ }, {
701
+ from: "node_output";
702
+ nodeKey: string;
703
+ port: string;
704
+ }>, z.ZodObject<{
705
+ from: z.ZodLiteral<"collection">;
706
+ items: z.ZodArray<z.ZodObject<{
707
+ from: z.ZodLiteral<"node_output">;
708
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
709
+ port: z.ZodEffects<z.ZodString, string, string>;
710
+ }, "strict", z.ZodTypeAny, {
711
+ from: "node_output";
712
+ nodeKey: string;
713
+ port: string;
714
+ }, {
715
+ from: "node_output";
716
+ nodeKey: string;
717
+ port: string;
718
+ }>, "many">;
719
+ }, "strict", z.ZodTypeAny, {
720
+ from: "collection";
721
+ items: {
722
+ from: "node_output";
723
+ nodeKey: string;
724
+ port: string;
725
+ }[];
726
+ }, {
727
+ from: "collection";
728
+ items: {
729
+ from: "node_output";
730
+ nodeKey: string;
731
+ port: string;
732
+ }[];
733
+ }>]>>>;
734
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
735
+ }, "strict", z.ZodTypeAny, {
736
+ key: string;
737
+ kind: "human_gate";
738
+ laneKey: string;
739
+ stageKey: string;
740
+ policyRef: string;
741
+ outcomes: string[];
742
+ candidateRoleKey: string;
743
+ label?: string | undefined;
744
+ inputBindings?: Record<string, {
745
+ from: "node_output";
746
+ nodeKey: string;
747
+ port: string;
748
+ } | {
749
+ from: "subject";
750
+ } | {
751
+ key: string;
752
+ from: "parameter";
753
+ } | {
754
+ from: "collection";
755
+ items: {
756
+ from: "node_output";
757
+ nodeKey: string;
758
+ port: string;
759
+ }[];
760
+ }> | undefined;
761
+ outputPorts?: Record<string, string> | undefined;
762
+ outcomeLabels?: Record<string, string> | undefined;
763
+ }, {
764
+ key: string;
765
+ kind: "human_gate";
766
+ laneKey: string;
767
+ stageKey: string;
768
+ policyRef: string;
769
+ outcomes: string[];
770
+ candidateRoleKey: string;
771
+ label?: string | undefined;
772
+ inputBindings?: Record<string, {
773
+ from: "node_output";
774
+ nodeKey: string;
775
+ port: string;
776
+ } | {
777
+ from: "subject";
778
+ } | {
779
+ key: string;
780
+ from: "parameter";
781
+ } | {
782
+ from: "collection";
783
+ items: {
784
+ from: "node_output";
785
+ nodeKey: string;
786
+ port: string;
787
+ }[];
788
+ }> | undefined;
789
+ outputPorts?: Record<string, string> | undefined;
790
+ outcomeLabels?: Record<string, string> | undefined;
791
+ }>, z.ZodObject<{
792
+ kind: z.ZodLiteral<"external_wait">;
793
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
794
+ subscriptionRef: z.ZodString;
795
+ key: z.ZodEffects<z.ZodString, string, string>;
796
+ label: z.ZodOptional<z.ZodString>;
797
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
798
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
799
+ from: z.ZodLiteral<"subject">;
800
+ }, "strict", z.ZodTypeAny, {
801
+ from: "subject";
802
+ }, {
803
+ from: "subject";
804
+ }>, z.ZodObject<{
805
+ from: z.ZodLiteral<"parameter">;
806
+ key: z.ZodEffects<z.ZodString, string, string>;
807
+ }, "strict", z.ZodTypeAny, {
808
+ key: string;
809
+ from: "parameter";
810
+ }, {
811
+ key: string;
812
+ from: "parameter";
813
+ }>, z.ZodObject<{
814
+ from: z.ZodLiteral<"node_output">;
815
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
816
+ port: z.ZodEffects<z.ZodString, string, string>;
817
+ }, "strict", z.ZodTypeAny, {
818
+ from: "node_output";
819
+ nodeKey: string;
820
+ port: string;
821
+ }, {
822
+ from: "node_output";
823
+ nodeKey: string;
824
+ port: string;
825
+ }>, z.ZodObject<{
826
+ from: z.ZodLiteral<"collection">;
827
+ items: z.ZodArray<z.ZodObject<{
828
+ from: z.ZodLiteral<"node_output">;
829
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
830
+ port: z.ZodEffects<z.ZodString, string, string>;
831
+ }, "strict", z.ZodTypeAny, {
832
+ from: "node_output";
833
+ nodeKey: string;
834
+ port: string;
835
+ }, {
836
+ from: "node_output";
837
+ nodeKey: string;
838
+ port: string;
839
+ }>, "many">;
840
+ }, "strict", z.ZodTypeAny, {
841
+ from: "collection";
842
+ items: {
843
+ from: "node_output";
844
+ nodeKey: string;
845
+ port: string;
846
+ }[];
847
+ }, {
848
+ from: "collection";
849
+ items: {
850
+ from: "node_output";
851
+ nodeKey: string;
852
+ port: string;
853
+ }[];
854
+ }>]>>>;
855
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
856
+ }, "strict", z.ZodTypeAny, {
857
+ key: string;
858
+ kind: "external_wait";
859
+ laneKey: string;
860
+ stageKey: string;
861
+ subscriptionRef: string;
862
+ label?: string | undefined;
863
+ inputBindings?: Record<string, {
864
+ from: "node_output";
865
+ nodeKey: string;
866
+ port: string;
867
+ } | {
868
+ from: "subject";
869
+ } | {
870
+ key: string;
871
+ from: "parameter";
872
+ } | {
873
+ from: "collection";
874
+ items: {
875
+ from: "node_output";
876
+ nodeKey: string;
877
+ port: string;
878
+ }[];
879
+ }> | undefined;
880
+ outputPorts?: Record<string, string> | undefined;
881
+ }, {
882
+ key: string;
883
+ kind: "external_wait";
884
+ laneKey: string;
885
+ stageKey: string;
886
+ subscriptionRef: string;
887
+ label?: string | undefined;
888
+ inputBindings?: Record<string, {
889
+ from: "node_output";
890
+ nodeKey: string;
891
+ port: string;
892
+ } | {
893
+ from: "subject";
894
+ } | {
895
+ key: string;
896
+ from: "parameter";
897
+ } | {
898
+ from: "collection";
899
+ items: {
900
+ from: "node_output";
901
+ nodeKey: string;
902
+ port: string;
903
+ }[];
904
+ }> | undefined;
905
+ outputPorts?: Record<string, string> | undefined;
906
+ }>, z.ZodObject<{
907
+ kind: z.ZodLiteral<"terminal">;
908
+ outcome: z.ZodEffects<z.ZodString, string, string>;
909
+ disposition: z.ZodOptional<z.ZodEnum<["complete", "await_new_subject"]>>;
910
+ key: z.ZodEffects<z.ZodString, string, string>;
911
+ label: z.ZodOptional<z.ZodString>;
912
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
913
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
914
+ from: z.ZodLiteral<"subject">;
915
+ }, "strict", z.ZodTypeAny, {
916
+ from: "subject";
917
+ }, {
918
+ from: "subject";
919
+ }>, z.ZodObject<{
920
+ from: z.ZodLiteral<"parameter">;
921
+ key: z.ZodEffects<z.ZodString, string, string>;
922
+ }, "strict", z.ZodTypeAny, {
923
+ key: string;
924
+ from: "parameter";
925
+ }, {
926
+ key: string;
927
+ from: "parameter";
928
+ }>, z.ZodObject<{
929
+ from: z.ZodLiteral<"node_output">;
930
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
931
+ port: z.ZodEffects<z.ZodString, string, string>;
932
+ }, "strict", z.ZodTypeAny, {
933
+ from: "node_output";
934
+ nodeKey: string;
935
+ port: string;
936
+ }, {
937
+ from: "node_output";
938
+ nodeKey: string;
939
+ port: string;
940
+ }>, z.ZodObject<{
941
+ from: z.ZodLiteral<"collection">;
942
+ items: z.ZodArray<z.ZodObject<{
943
+ from: z.ZodLiteral<"node_output">;
944
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
945
+ port: z.ZodEffects<z.ZodString, string, string>;
946
+ }, "strict", z.ZodTypeAny, {
947
+ from: "node_output";
948
+ nodeKey: string;
949
+ port: string;
950
+ }, {
951
+ from: "node_output";
952
+ nodeKey: string;
953
+ port: string;
954
+ }>, "many">;
955
+ }, "strict", z.ZodTypeAny, {
956
+ from: "collection";
957
+ items: {
958
+ from: "node_output";
959
+ nodeKey: string;
960
+ port: string;
961
+ }[];
962
+ }, {
963
+ from: "collection";
964
+ items: {
965
+ from: "node_output";
966
+ nodeKey: string;
967
+ port: string;
968
+ }[];
969
+ }>]>>>;
970
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
971
+ }, "strict", z.ZodTypeAny, {
972
+ key: string;
973
+ outcome: string;
974
+ kind: "terminal";
975
+ stageKey: string;
976
+ label?: string | undefined;
977
+ inputBindings?: Record<string, {
978
+ from: "node_output";
979
+ nodeKey: string;
980
+ port: string;
981
+ } | {
982
+ from: "subject";
983
+ } | {
984
+ key: string;
985
+ from: "parameter";
986
+ } | {
987
+ from: "collection";
988
+ items: {
989
+ from: "node_output";
990
+ nodeKey: string;
991
+ port: string;
992
+ }[];
993
+ }> | undefined;
994
+ outputPorts?: Record<string, string> | undefined;
995
+ disposition?: "complete" | "await_new_subject" | undefined;
996
+ }, {
997
+ key: string;
998
+ outcome: string;
999
+ kind: "terminal";
1000
+ stageKey: string;
1001
+ label?: string | undefined;
1002
+ inputBindings?: Record<string, {
1003
+ from: "node_output";
1004
+ nodeKey: string;
1005
+ port: string;
1006
+ } | {
1007
+ from: "subject";
1008
+ } | {
1009
+ key: string;
1010
+ from: "parameter";
1011
+ } | {
1012
+ from: "collection";
1013
+ items: {
1014
+ from: "node_output";
1015
+ nodeKey: string;
1016
+ port: string;
1017
+ }[];
1018
+ }> | undefined;
1019
+ outputPorts?: Record<string, string> | undefined;
1020
+ disposition?: "complete" | "await_new_subject" | undefined;
1021
+ }>]>, "many">;
1022
+ edges: z.ZodArray<z.ZodObject<{
1023
+ from: z.ZodEffects<z.ZodString, string, string>;
1024
+ to: z.ZodEffects<z.ZodString, string, string>;
1025
+ outcome: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1026
+ }, "strict", z.ZodTypeAny, {
1027
+ from: string;
1028
+ to: string;
1029
+ outcome?: string | undefined;
1030
+ }, {
1031
+ from: string;
1032
+ to: string;
1033
+ outcome?: string | undefined;
1034
+ }>, "many">;
1035
+ roundPolicy: z.ZodObject<{
1036
+ entryNodeKey: z.ZodEffects<z.ZodString, string, string>;
1037
+ maxRounds: z.ZodNumber;
1038
+ onRework: z.ZodLiteral<"await_new_subject_then_next_round">;
1039
+ onLimit: z.ZodLiteral<"attention">;
1040
+ newVersionWhileActive: z.ZodLiteral<"supersede_round">;
1041
+ terminalOutcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
1042
+ }, "strict", z.ZodTypeAny, {
1043
+ entryNodeKey: string;
1044
+ maxRounds: number;
1045
+ onRework: "await_new_subject_then_next_round";
1046
+ onLimit: "attention";
1047
+ newVersionWhileActive: "supersede_round";
1048
+ terminalOutcomes: string[];
1049
+ }, {
1050
+ entryNodeKey: string;
1051
+ maxRounds: number;
1052
+ onRework: "await_new_subject_then_next_round";
1053
+ onLimit: "attention";
1054
+ newVersionWhileActive: "supersede_round";
1055
+ terminalOutcomes: string[];
1056
+ }>;
1057
+ failurePolicy: z.ZodObject<{
1058
+ requiredNodeFailure: z.ZodLiteral<"block_and_attention">;
1059
+ unknownExecution: z.ZodLiteral<"inspect_without_replay">;
1060
+ }, "strict", z.ZodTypeAny, {
1061
+ requiredNodeFailure: "block_and_attention";
1062
+ unknownExecution: "inspect_without_replay";
1063
+ }, {
1064
+ requiredNodeFailure: "block_and_attention";
1065
+ unknownExecution: "inspect_without_replay";
1066
+ }>;
1067
+ hostRequirements: z.ZodOptional<z.ZodObject<{
1068
+ protocol: z.ZodNumber;
1069
+ features: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodNumber>, Record<string, number>, Record<string, number>>;
1070
+ }, "strict", z.ZodTypeAny, {
1071
+ protocol: number;
1072
+ features: Record<string, number>;
1073
+ }, {
1074
+ protocol: number;
1075
+ features: Record<string, number>;
1076
+ }>>;
1077
+ key: z.ZodEffects<z.ZodString, string, string>;
1078
+ version: z.ZodString;
1079
+ title: z.ZodString;
1080
+ subjectResolverRef: z.ZodString;
1081
+ roles: z.ZodArray<z.ZodObject<{
1082
+ key: z.ZodEffects<z.ZodString, string, string>;
1083
+ allowedKinds: z.ZodArray<z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>, "many">;
1084
+ }, "strict", z.ZodTypeAny, {
1085
+ key: string;
1086
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1087
+ }, {
1088
+ key: string;
1089
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1090
+ }>, "many">;
1091
+ lanes: z.ZodArray<z.ZodObject<{
1092
+ key: z.ZodEffects<z.ZodString, string, string>;
1093
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
1094
+ label: z.ZodString;
1095
+ order: z.ZodNumber;
1096
+ }, "strict", z.ZodTypeAny, {
1097
+ key: string;
1098
+ roleKey: string;
1099
+ label: string;
1100
+ order: number;
1101
+ }, {
1102
+ key: string;
1103
+ roleKey: string;
1104
+ label: string;
1105
+ order: number;
1106
+ }>, "many">;
1107
+ stages: z.ZodArray<z.ZodObject<{
1108
+ key: z.ZodEffects<z.ZodString, string, string>;
1109
+ label: z.ZodString;
1110
+ icon: z.ZodOptional<z.ZodEnum<["layers", "file-text", "folder-open", "list-checks", "search", "scan-search", "boxes", "package", "settings", "clipboard-check", "shield-check", "git-pull-request", "code", "test-tube", "git-merge", "calculator", "file-check", "truck"]>>;
1111
+ order: z.ZodNumber;
1112
+ }, "strict", z.ZodTypeAny, {
1113
+ key: string;
1114
+ label: string;
1115
+ order: number;
1116
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1117
+ }, {
1118
+ key: string;
1119
+ label: string;
1120
+ order: number;
1121
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1122
+ }>, "many">;
1123
+ presentation: z.ZodOptional<z.ZodObject<{
1124
+ views: z.ZodArray<z.ZodEnum<["tasks", "pipeline", "agent_timeline"]>, "many">;
1125
+ nodeDetailRef: z.ZodOptional<z.ZodString>;
1126
+ evidenceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1127
+ }, "strict", z.ZodTypeAny, {
1128
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1129
+ nodeDetailRef?: string | undefined;
1130
+ evidenceTypes?: string[] | undefined;
1131
+ }, {
1132
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1133
+ nodeDetailRef?: string | undefined;
1134
+ evidenceTypes?: string[] | undefined;
1135
+ }>>;
1136
+ metrics: z.ZodOptional<z.ZodObject<{
1137
+ dimensionRefs: z.ZodArray<z.ZodString, "many">;
1138
+ metricRefs: z.ZodArray<z.ZodString, "many">;
1139
+ }, "strict", z.ZodTypeAny, {
1140
+ dimensionRefs: string[];
1141
+ metricRefs: string[];
1142
+ }, {
1143
+ dimensionRefs: string[];
1144
+ metricRefs: string[];
1145
+ }>>;
1146
+ }, "strict", z.ZodTypeAny, {
1147
+ key: string;
1148
+ executionAuthority: "platform";
1149
+ topology: {
1150
+ source: "definition";
1151
+ };
1152
+ version: string;
1153
+ title: string;
1154
+ subjectResolverRef: string;
1155
+ roles: {
1156
+ key: string;
1157
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1158
+ }[];
1159
+ lanes: {
1160
+ key: string;
1161
+ roleKey: string;
1162
+ label: string;
1163
+ order: number;
1164
+ }[];
1165
+ stages: {
1166
+ key: string;
1167
+ label: string;
1168
+ order: number;
1169
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1170
+ }[];
1171
+ nodes: ({
1172
+ key: string;
1173
+ kind: "work";
1174
+ laneKey: string;
1175
+ operationRef: string;
1176
+ executorSlot: string;
1177
+ completionRef: string;
1178
+ stageKey: string;
1179
+ label?: string | undefined;
1180
+ resourceResolverRef?: string | undefined;
1181
+ outputSchemaRef?: string | undefined;
1182
+ inputBindings?: Record<string, {
1183
+ from: "node_output";
1184
+ nodeKey: string;
1185
+ port: string;
1186
+ } | {
1187
+ from: "subject";
1188
+ } | {
1189
+ key: string;
1190
+ from: "parameter";
1191
+ } | {
1192
+ from: "collection";
1193
+ items: {
1194
+ from: "node_output";
1195
+ nodeKey: string;
1196
+ port: string;
1197
+ }[];
1198
+ }> | undefined;
1199
+ outputPorts?: Record<string, string> | undefined;
1200
+ } | {
1201
+ key: string;
1202
+ kind: "fork";
1203
+ stageKey: string;
1204
+ label?: string | undefined;
1205
+ inputBindings?: Record<string, {
1206
+ from: "node_output";
1207
+ nodeKey: string;
1208
+ port: string;
1209
+ } | {
1210
+ from: "subject";
1211
+ } | {
1212
+ key: string;
1213
+ from: "parameter";
1214
+ } | {
1215
+ from: "collection";
1216
+ items: {
1217
+ from: "node_output";
1218
+ nodeKey: string;
1219
+ port: string;
1220
+ }[];
1221
+ }> | undefined;
1222
+ outputPorts?: Record<string, string> | undefined;
1223
+ } | {
1224
+ join: {
1225
+ mode: "all_selected";
1226
+ accept: "completed";
1227
+ };
1228
+ key: string;
1229
+ kind: "join";
1230
+ stageKey: string;
1231
+ label?: string | undefined;
1232
+ inputBindings?: Record<string, {
1233
+ from: "node_output";
1234
+ nodeKey: string;
1235
+ port: string;
1236
+ } | {
1237
+ from: "subject";
1238
+ } | {
1239
+ key: string;
1240
+ from: "parameter";
1241
+ } | {
1242
+ from: "collection";
1243
+ items: {
1244
+ from: "node_output";
1245
+ nodeKey: string;
1246
+ port: string;
1247
+ }[];
1248
+ }> | undefined;
1249
+ outputPorts?: Record<string, string> | undefined;
1250
+ } | {
1251
+ key: string;
1252
+ kind: "router";
1253
+ stageKey: string;
1254
+ policyRef: string;
1255
+ outcomes: string[];
1256
+ unmatched: "block";
1257
+ label?: string | undefined;
1258
+ inputBindings?: Record<string, {
1259
+ from: "node_output";
1260
+ nodeKey: string;
1261
+ port: string;
1262
+ } | {
1263
+ from: "subject";
1264
+ } | {
1265
+ key: string;
1266
+ from: "parameter";
1267
+ } | {
1268
+ from: "collection";
1269
+ items: {
1270
+ from: "node_output";
1271
+ nodeKey: string;
1272
+ port: string;
1273
+ }[];
1274
+ }> | undefined;
1275
+ outputPorts?: Record<string, string> | undefined;
1276
+ } | {
1277
+ key: string;
1278
+ kind: "human_gate";
1279
+ laneKey: string;
1280
+ stageKey: string;
1281
+ policyRef: string;
1282
+ outcomes: string[];
1283
+ candidateRoleKey: string;
1284
+ label?: string | undefined;
1285
+ inputBindings?: Record<string, {
1286
+ from: "node_output";
1287
+ nodeKey: string;
1288
+ port: string;
1289
+ } | {
1290
+ from: "subject";
1291
+ } | {
1292
+ key: string;
1293
+ from: "parameter";
1294
+ } | {
1295
+ from: "collection";
1296
+ items: {
1297
+ from: "node_output";
1298
+ nodeKey: string;
1299
+ port: string;
1300
+ }[];
1301
+ }> | undefined;
1302
+ outputPorts?: Record<string, string> | undefined;
1303
+ outcomeLabels?: Record<string, string> | undefined;
1304
+ } | {
1305
+ key: string;
1306
+ kind: "external_wait";
1307
+ laneKey: string;
1308
+ stageKey: string;
1309
+ subscriptionRef: string;
1310
+ label?: string | undefined;
1311
+ inputBindings?: Record<string, {
1312
+ from: "node_output";
1313
+ nodeKey: string;
1314
+ port: string;
1315
+ } | {
1316
+ from: "subject";
1317
+ } | {
1318
+ key: string;
1319
+ from: "parameter";
1320
+ } | {
1321
+ from: "collection";
1322
+ items: {
1323
+ from: "node_output";
1324
+ nodeKey: string;
1325
+ port: string;
1326
+ }[];
1327
+ }> | undefined;
1328
+ outputPorts?: Record<string, string> | undefined;
1329
+ } | {
1330
+ key: string;
1331
+ outcome: string;
1332
+ kind: "terminal";
1333
+ stageKey: string;
1334
+ label?: string | undefined;
1335
+ inputBindings?: Record<string, {
1336
+ from: "node_output";
1337
+ nodeKey: string;
1338
+ port: string;
1339
+ } | {
1340
+ from: "subject";
1341
+ } | {
1342
+ key: string;
1343
+ from: "parameter";
1344
+ } | {
1345
+ from: "collection";
1346
+ items: {
1347
+ from: "node_output";
1348
+ nodeKey: string;
1349
+ port: string;
1350
+ }[];
1351
+ }> | undefined;
1352
+ outputPorts?: Record<string, string> | undefined;
1353
+ disposition?: "complete" | "await_new_subject" | undefined;
1354
+ })[];
1355
+ edges: {
1356
+ from: string;
1357
+ to: string;
1358
+ outcome?: string | undefined;
1359
+ }[];
1360
+ roundPolicy: {
1361
+ entryNodeKey: string;
1362
+ maxRounds: number;
1363
+ onRework: "await_new_subject_then_next_round";
1364
+ onLimit: "attention";
1365
+ newVersionWhileActive: "supersede_round";
1366
+ terminalOutcomes: string[];
1367
+ };
1368
+ failurePolicy: {
1369
+ requiredNodeFailure: "block_and_attention";
1370
+ unknownExecution: "inspect_without_replay";
1371
+ };
1372
+ hostRequirements?: {
1373
+ protocol: number;
1374
+ features: Record<string, number>;
1375
+ } | undefined;
1376
+ presentation?: {
1377
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1378
+ nodeDetailRef?: string | undefined;
1379
+ evidenceTypes?: string[] | undefined;
1380
+ } | undefined;
1381
+ metrics?: {
1382
+ dimensionRefs: string[];
1383
+ metricRefs: string[];
1384
+ } | undefined;
1385
+ }, {
1386
+ key: string;
1387
+ executionAuthority: "platform";
1388
+ topology: {
1389
+ source: "definition";
1390
+ };
1391
+ version: string;
1392
+ title: string;
1393
+ subjectResolverRef: string;
1394
+ roles: {
1395
+ key: string;
1396
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1397
+ }[];
1398
+ lanes: {
1399
+ key: string;
1400
+ roleKey: string;
1401
+ label: string;
1402
+ order: number;
1403
+ }[];
1404
+ stages: {
1405
+ key: string;
1406
+ label: string;
1407
+ order: number;
1408
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1409
+ }[];
1410
+ nodes: ({
1411
+ key: string;
1412
+ kind: "work";
1413
+ laneKey: string;
1414
+ operationRef: string;
1415
+ executorSlot: string;
1416
+ completionRef: string;
1417
+ stageKey: string;
1418
+ label?: string | undefined;
1419
+ resourceResolverRef?: string | undefined;
1420
+ outputSchemaRef?: string | undefined;
1421
+ inputBindings?: Record<string, {
1422
+ from: "node_output";
1423
+ nodeKey: string;
1424
+ port: string;
1425
+ } | {
1426
+ from: "subject";
1427
+ } | {
1428
+ key: string;
1429
+ from: "parameter";
1430
+ } | {
1431
+ from: "collection";
1432
+ items: {
1433
+ from: "node_output";
1434
+ nodeKey: string;
1435
+ port: string;
1436
+ }[];
1437
+ }> | undefined;
1438
+ outputPorts?: Record<string, string> | undefined;
1439
+ } | {
1440
+ key: string;
1441
+ kind: "fork";
1442
+ stageKey: string;
1443
+ label?: string | undefined;
1444
+ inputBindings?: Record<string, {
1445
+ from: "node_output";
1446
+ nodeKey: string;
1447
+ port: string;
1448
+ } | {
1449
+ from: "subject";
1450
+ } | {
1451
+ key: string;
1452
+ from: "parameter";
1453
+ } | {
1454
+ from: "collection";
1455
+ items: {
1456
+ from: "node_output";
1457
+ nodeKey: string;
1458
+ port: string;
1459
+ }[];
1460
+ }> | undefined;
1461
+ outputPorts?: Record<string, string> | undefined;
1462
+ } | {
1463
+ join: {
1464
+ mode: "all_selected";
1465
+ accept: "completed";
1466
+ };
1467
+ key: string;
1468
+ kind: "join";
1469
+ stageKey: string;
1470
+ label?: string | undefined;
1471
+ inputBindings?: Record<string, {
1472
+ from: "node_output";
1473
+ nodeKey: string;
1474
+ port: string;
1475
+ } | {
1476
+ from: "subject";
1477
+ } | {
1478
+ key: string;
1479
+ from: "parameter";
1480
+ } | {
1481
+ from: "collection";
1482
+ items: {
1483
+ from: "node_output";
1484
+ nodeKey: string;
1485
+ port: string;
1486
+ }[];
1487
+ }> | undefined;
1488
+ outputPorts?: Record<string, string> | undefined;
1489
+ } | {
1490
+ key: string;
1491
+ kind: "router";
1492
+ stageKey: string;
1493
+ policyRef: string;
1494
+ outcomes: string[];
1495
+ unmatched: "block";
1496
+ label?: string | undefined;
1497
+ inputBindings?: Record<string, {
1498
+ from: "node_output";
1499
+ nodeKey: string;
1500
+ port: string;
1501
+ } | {
1502
+ from: "subject";
1503
+ } | {
1504
+ key: string;
1505
+ from: "parameter";
1506
+ } | {
1507
+ from: "collection";
1508
+ items: {
1509
+ from: "node_output";
1510
+ nodeKey: string;
1511
+ port: string;
1512
+ }[];
1513
+ }> | undefined;
1514
+ outputPorts?: Record<string, string> | undefined;
1515
+ } | {
1516
+ key: string;
1517
+ kind: "human_gate";
1518
+ laneKey: string;
1519
+ stageKey: string;
1520
+ policyRef: string;
1521
+ outcomes: string[];
1522
+ candidateRoleKey: string;
1523
+ label?: string | undefined;
1524
+ inputBindings?: Record<string, {
1525
+ from: "node_output";
1526
+ nodeKey: string;
1527
+ port: string;
1528
+ } | {
1529
+ from: "subject";
1530
+ } | {
1531
+ key: string;
1532
+ from: "parameter";
1533
+ } | {
1534
+ from: "collection";
1535
+ items: {
1536
+ from: "node_output";
1537
+ nodeKey: string;
1538
+ port: string;
1539
+ }[];
1540
+ }> | undefined;
1541
+ outputPorts?: Record<string, string> | undefined;
1542
+ outcomeLabels?: Record<string, string> | undefined;
1543
+ } | {
1544
+ key: string;
1545
+ kind: "external_wait";
1546
+ laneKey: string;
1547
+ stageKey: string;
1548
+ subscriptionRef: string;
1549
+ label?: string | undefined;
1550
+ inputBindings?: Record<string, {
1551
+ from: "node_output";
1552
+ nodeKey: string;
1553
+ port: string;
1554
+ } | {
1555
+ from: "subject";
1556
+ } | {
1557
+ key: string;
1558
+ from: "parameter";
1559
+ } | {
1560
+ from: "collection";
1561
+ items: {
1562
+ from: "node_output";
1563
+ nodeKey: string;
1564
+ port: string;
1565
+ }[];
1566
+ }> | undefined;
1567
+ outputPorts?: Record<string, string> | undefined;
1568
+ } | {
1569
+ key: string;
1570
+ outcome: string;
1571
+ kind: "terminal";
1572
+ stageKey: string;
1573
+ label?: string | undefined;
1574
+ inputBindings?: Record<string, {
1575
+ from: "node_output";
1576
+ nodeKey: string;
1577
+ port: string;
1578
+ } | {
1579
+ from: "subject";
1580
+ } | {
1581
+ key: string;
1582
+ from: "parameter";
1583
+ } | {
1584
+ from: "collection";
1585
+ items: {
1586
+ from: "node_output";
1587
+ nodeKey: string;
1588
+ port: string;
1589
+ }[];
1590
+ }> | undefined;
1591
+ outputPorts?: Record<string, string> | undefined;
1592
+ disposition?: "complete" | "await_new_subject" | undefined;
1593
+ })[];
1594
+ edges: {
1595
+ from: string;
1596
+ to: string;
1597
+ outcome?: string | undefined;
1598
+ }[];
1599
+ roundPolicy: {
1600
+ entryNodeKey: string;
1601
+ maxRounds: number;
1602
+ onRework: "await_new_subject_then_next_round";
1603
+ onLimit: "attention";
1604
+ newVersionWhileActive: "supersede_round";
1605
+ terminalOutcomes: string[];
1606
+ };
1607
+ failurePolicy: {
1608
+ requiredNodeFailure: "block_and_attention";
1609
+ unknownExecution: "inspect_without_replay";
1610
+ };
1611
+ hostRequirements?: {
1612
+ protocol: number;
1613
+ features: Record<string, number>;
1614
+ } | undefined;
1615
+ presentation?: {
1616
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1617
+ nodeDetailRef?: string | undefined;
1618
+ evidenceTypes?: string[] | undefined;
1619
+ } | undefined;
1620
+ metrics?: {
1621
+ dimensionRefs: string[];
1622
+ metricRefs: string[];
1623
+ } | undefined;
1624
+ }>]>;
1625
+ export type ProjectPipelineDefinition = z.output<typeof projectPipelineDefinitionShapeSchema>;
1626
+ export declare const projectPipelineDefinitionSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"executionAuthority", [z.ZodObject<{
1627
+ executionAuthority: z.ZodLiteral<"provider">;
1628
+ providerRef: z.ZodString;
1629
+ topology: z.ZodObject<{
1630
+ source: z.ZodLiteral<"provider">;
1631
+ presentationAdapterRef: z.ZodString;
1632
+ }, "strict", z.ZodTypeAny, {
1633
+ source: "provider";
1634
+ presentationAdapterRef: string;
1635
+ }, {
1636
+ source: "provider";
1637
+ presentationAdapterRef: string;
1638
+ }>;
1639
+ actionRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1640
+ hostRequirements: z.ZodOptional<z.ZodObject<{
1641
+ protocol: z.ZodNumber;
1642
+ features: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodNumber>, Record<string, number>, Record<string, number>>;
1643
+ }, "strict", z.ZodTypeAny, {
1644
+ protocol: number;
1645
+ features: Record<string, number>;
1646
+ }, {
1647
+ protocol: number;
1648
+ features: Record<string, number>;
1649
+ }>>;
1650
+ key: z.ZodEffects<z.ZodString, string, string>;
1651
+ version: z.ZodString;
1652
+ title: z.ZodString;
1653
+ subjectResolverRef: z.ZodString;
1654
+ roles: z.ZodArray<z.ZodObject<{
1655
+ key: z.ZodEffects<z.ZodString, string, string>;
1656
+ allowedKinds: z.ZodArray<z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>, "many">;
1657
+ }, "strict", z.ZodTypeAny, {
1658
+ key: string;
1659
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1660
+ }, {
1661
+ key: string;
1662
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1663
+ }>, "many">;
1664
+ lanes: z.ZodArray<z.ZodObject<{
1665
+ key: z.ZodEffects<z.ZodString, string, string>;
1666
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
1667
+ label: z.ZodString;
1668
+ order: z.ZodNumber;
1669
+ }, "strict", z.ZodTypeAny, {
1670
+ key: string;
1671
+ roleKey: string;
1672
+ label: string;
1673
+ order: number;
1674
+ }, {
1675
+ key: string;
1676
+ roleKey: string;
1677
+ label: string;
1678
+ order: number;
1679
+ }>, "many">;
1680
+ stages: z.ZodArray<z.ZodObject<{
1681
+ key: z.ZodEffects<z.ZodString, string, string>;
1682
+ label: z.ZodString;
1683
+ icon: z.ZodOptional<z.ZodEnum<["layers", "file-text", "folder-open", "list-checks", "search", "scan-search", "boxes", "package", "settings", "clipboard-check", "shield-check", "git-pull-request", "code", "test-tube", "git-merge", "calculator", "file-check", "truck"]>>;
1684
+ order: z.ZodNumber;
1685
+ }, "strict", z.ZodTypeAny, {
1686
+ key: string;
1687
+ label: string;
1688
+ order: number;
1689
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1690
+ }, {
1691
+ key: string;
1692
+ label: string;
1693
+ order: number;
1694
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1695
+ }>, "many">;
1696
+ presentation: z.ZodOptional<z.ZodObject<{
1697
+ views: z.ZodArray<z.ZodEnum<["tasks", "pipeline", "agent_timeline"]>, "many">;
1698
+ nodeDetailRef: z.ZodOptional<z.ZodString>;
1699
+ evidenceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1700
+ }, "strict", z.ZodTypeAny, {
1701
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1702
+ nodeDetailRef?: string | undefined;
1703
+ evidenceTypes?: string[] | undefined;
1704
+ }, {
1705
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1706
+ nodeDetailRef?: string | undefined;
1707
+ evidenceTypes?: string[] | undefined;
1708
+ }>>;
1709
+ metrics: z.ZodOptional<z.ZodObject<{
1710
+ dimensionRefs: z.ZodArray<z.ZodString, "many">;
1711
+ metricRefs: z.ZodArray<z.ZodString, "many">;
1712
+ }, "strict", z.ZodTypeAny, {
1713
+ dimensionRefs: string[];
1714
+ metricRefs: string[];
1715
+ }, {
1716
+ dimensionRefs: string[];
1717
+ metricRefs: string[];
1718
+ }>>;
1719
+ }, "strict", z.ZodTypeAny, {
1720
+ key: string;
1721
+ executionAuthority: "provider";
1722
+ providerRef: string;
1723
+ topology: {
1724
+ source: "provider";
1725
+ presentationAdapterRef: string;
1726
+ };
1727
+ version: string;
1728
+ title: string;
1729
+ subjectResolverRef: string;
1730
+ roles: {
1731
+ key: string;
1732
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1733
+ }[];
1734
+ lanes: {
1735
+ key: string;
1736
+ roleKey: string;
1737
+ label: string;
1738
+ order: number;
1739
+ }[];
1740
+ stages: {
1741
+ key: string;
1742
+ label: string;
1743
+ order: number;
1744
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1745
+ }[];
1746
+ actionRefs?: string[] | undefined;
1747
+ hostRequirements?: {
1748
+ protocol: number;
1749
+ features: Record<string, number>;
1750
+ } | undefined;
1751
+ presentation?: {
1752
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1753
+ nodeDetailRef?: string | undefined;
1754
+ evidenceTypes?: string[] | undefined;
1755
+ } | undefined;
1756
+ metrics?: {
1757
+ dimensionRefs: string[];
1758
+ metricRefs: string[];
1759
+ } | undefined;
1760
+ }, {
1761
+ key: string;
1762
+ executionAuthority: "provider";
1763
+ providerRef: string;
1764
+ topology: {
1765
+ source: "provider";
1766
+ presentationAdapterRef: string;
1767
+ };
1768
+ version: string;
1769
+ title: string;
1770
+ subjectResolverRef: string;
1771
+ roles: {
1772
+ key: string;
1773
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
1774
+ }[];
1775
+ lanes: {
1776
+ key: string;
1777
+ roleKey: string;
1778
+ label: string;
1779
+ order: number;
1780
+ }[];
1781
+ stages: {
1782
+ key: string;
1783
+ label: string;
1784
+ order: number;
1785
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
1786
+ }[];
1787
+ actionRefs?: string[] | undefined;
1788
+ hostRequirements?: {
1789
+ protocol: number;
1790
+ features: Record<string, number>;
1791
+ } | undefined;
1792
+ presentation?: {
1793
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
1794
+ nodeDetailRef?: string | undefined;
1795
+ evidenceTypes?: string[] | undefined;
1796
+ } | undefined;
1797
+ metrics?: {
1798
+ dimensionRefs: string[];
1799
+ metricRefs: string[];
1800
+ } | undefined;
1801
+ }>, z.ZodObject<{
1802
+ executionAuthority: z.ZodLiteral<"platform">;
1803
+ topology: z.ZodObject<{
1804
+ source: z.ZodLiteral<"definition">;
1805
+ }, "strict", z.ZodTypeAny, {
1806
+ source: "definition";
1807
+ }, {
1808
+ source: "definition";
1809
+ }>;
1810
+ nodes: z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
1811
+ kind: z.ZodLiteral<"work">;
1812
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
1813
+ operationRef: z.ZodString;
1814
+ executorSlot: z.ZodEffects<z.ZodString, string, string>;
1815
+ completionRef: z.ZodString;
1816
+ resourceResolverRef: z.ZodOptional<z.ZodString>;
1817
+ outputSchemaRef: z.ZodOptional<z.ZodString>;
1818
+ key: z.ZodEffects<z.ZodString, string, string>;
1819
+ label: z.ZodOptional<z.ZodString>;
1820
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
1821
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1822
+ from: z.ZodLiteral<"subject">;
1823
+ }, "strict", z.ZodTypeAny, {
1824
+ from: "subject";
1825
+ }, {
1826
+ from: "subject";
1827
+ }>, z.ZodObject<{
1828
+ from: z.ZodLiteral<"parameter">;
1829
+ key: z.ZodEffects<z.ZodString, string, string>;
1830
+ }, "strict", z.ZodTypeAny, {
1831
+ key: string;
1832
+ from: "parameter";
1833
+ }, {
1834
+ key: string;
1835
+ from: "parameter";
1836
+ }>, z.ZodObject<{
1837
+ from: z.ZodLiteral<"node_output">;
1838
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
1839
+ port: z.ZodEffects<z.ZodString, string, string>;
1840
+ }, "strict", z.ZodTypeAny, {
1841
+ from: "node_output";
1842
+ nodeKey: string;
1843
+ port: string;
1844
+ }, {
1845
+ from: "node_output";
1846
+ nodeKey: string;
1847
+ port: string;
1848
+ }>, z.ZodObject<{
1849
+ from: z.ZodLiteral<"collection">;
1850
+ items: z.ZodArray<z.ZodObject<{
1851
+ from: z.ZodLiteral<"node_output">;
1852
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
1853
+ port: z.ZodEffects<z.ZodString, string, string>;
1854
+ }, "strict", z.ZodTypeAny, {
1855
+ from: "node_output";
1856
+ nodeKey: string;
1857
+ port: string;
1858
+ }, {
1859
+ from: "node_output";
1860
+ nodeKey: string;
1861
+ port: string;
1862
+ }>, "many">;
1863
+ }, "strict", z.ZodTypeAny, {
1864
+ from: "collection";
1865
+ items: {
1866
+ from: "node_output";
1867
+ nodeKey: string;
1868
+ port: string;
1869
+ }[];
1870
+ }, {
1871
+ from: "collection";
1872
+ items: {
1873
+ from: "node_output";
1874
+ nodeKey: string;
1875
+ port: string;
1876
+ }[];
1877
+ }>]>>>;
1878
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
1879
+ }, "strict", z.ZodTypeAny, {
1880
+ key: string;
1881
+ kind: "work";
1882
+ laneKey: string;
1883
+ operationRef: string;
1884
+ executorSlot: string;
1885
+ completionRef: string;
1886
+ stageKey: string;
1887
+ label?: string | undefined;
1888
+ resourceResolverRef?: string | undefined;
1889
+ outputSchemaRef?: string | undefined;
1890
+ inputBindings?: Record<string, {
1891
+ from: "node_output";
1892
+ nodeKey: string;
1893
+ port: string;
1894
+ } | {
1895
+ from: "subject";
1896
+ } | {
1897
+ key: string;
1898
+ from: "parameter";
1899
+ } | {
1900
+ from: "collection";
1901
+ items: {
1902
+ from: "node_output";
1903
+ nodeKey: string;
1904
+ port: string;
1905
+ }[];
1906
+ }> | undefined;
1907
+ outputPorts?: Record<string, string> | undefined;
1908
+ }, {
1909
+ key: string;
1910
+ kind: "work";
1911
+ laneKey: string;
1912
+ operationRef: string;
1913
+ executorSlot: string;
1914
+ completionRef: string;
1915
+ stageKey: string;
1916
+ label?: string | undefined;
1917
+ resourceResolverRef?: string | undefined;
1918
+ outputSchemaRef?: string | undefined;
1919
+ inputBindings?: Record<string, {
1920
+ from: "node_output";
1921
+ nodeKey: string;
1922
+ port: string;
1923
+ } | {
1924
+ from: "subject";
1925
+ } | {
1926
+ key: string;
1927
+ from: "parameter";
1928
+ } | {
1929
+ from: "collection";
1930
+ items: {
1931
+ from: "node_output";
1932
+ nodeKey: string;
1933
+ port: string;
1934
+ }[];
1935
+ }> | undefined;
1936
+ outputPorts?: Record<string, string> | undefined;
1937
+ }>, z.ZodObject<{
1938
+ kind: z.ZodLiteral<"fork">;
1939
+ key: z.ZodEffects<z.ZodString, string, string>;
1940
+ label: z.ZodOptional<z.ZodString>;
1941
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
1942
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
1943
+ from: z.ZodLiteral<"subject">;
1944
+ }, "strict", z.ZodTypeAny, {
1945
+ from: "subject";
1946
+ }, {
1947
+ from: "subject";
1948
+ }>, z.ZodObject<{
1949
+ from: z.ZodLiteral<"parameter">;
1950
+ key: z.ZodEffects<z.ZodString, string, string>;
1951
+ }, "strict", z.ZodTypeAny, {
1952
+ key: string;
1953
+ from: "parameter";
1954
+ }, {
1955
+ key: string;
1956
+ from: "parameter";
1957
+ }>, z.ZodObject<{
1958
+ from: z.ZodLiteral<"node_output">;
1959
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
1960
+ port: z.ZodEffects<z.ZodString, string, string>;
1961
+ }, "strict", z.ZodTypeAny, {
1962
+ from: "node_output";
1963
+ nodeKey: string;
1964
+ port: string;
1965
+ }, {
1966
+ from: "node_output";
1967
+ nodeKey: string;
1968
+ port: string;
1969
+ }>, z.ZodObject<{
1970
+ from: z.ZodLiteral<"collection">;
1971
+ items: z.ZodArray<z.ZodObject<{
1972
+ from: z.ZodLiteral<"node_output">;
1973
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
1974
+ port: z.ZodEffects<z.ZodString, string, string>;
1975
+ }, "strict", z.ZodTypeAny, {
1976
+ from: "node_output";
1977
+ nodeKey: string;
1978
+ port: string;
1979
+ }, {
1980
+ from: "node_output";
1981
+ nodeKey: string;
1982
+ port: string;
1983
+ }>, "many">;
1984
+ }, "strict", z.ZodTypeAny, {
1985
+ from: "collection";
1986
+ items: {
1987
+ from: "node_output";
1988
+ nodeKey: string;
1989
+ port: string;
1990
+ }[];
1991
+ }, {
1992
+ from: "collection";
1993
+ items: {
1994
+ from: "node_output";
1995
+ nodeKey: string;
1996
+ port: string;
1997
+ }[];
1998
+ }>]>>>;
1999
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
2000
+ }, "strict", z.ZodTypeAny, {
2001
+ key: string;
2002
+ kind: "fork";
2003
+ stageKey: string;
2004
+ label?: string | undefined;
2005
+ inputBindings?: Record<string, {
2006
+ from: "node_output";
2007
+ nodeKey: string;
2008
+ port: string;
2009
+ } | {
2010
+ from: "subject";
2011
+ } | {
2012
+ key: string;
2013
+ from: "parameter";
2014
+ } | {
2015
+ from: "collection";
2016
+ items: {
2017
+ from: "node_output";
2018
+ nodeKey: string;
2019
+ port: string;
2020
+ }[];
2021
+ }> | undefined;
2022
+ outputPorts?: Record<string, string> | undefined;
2023
+ }, {
2024
+ key: string;
2025
+ kind: "fork";
2026
+ stageKey: string;
2027
+ label?: string | undefined;
2028
+ inputBindings?: Record<string, {
2029
+ from: "node_output";
2030
+ nodeKey: string;
2031
+ port: string;
2032
+ } | {
2033
+ from: "subject";
2034
+ } | {
2035
+ key: string;
2036
+ from: "parameter";
2037
+ } | {
2038
+ from: "collection";
2039
+ items: {
2040
+ from: "node_output";
2041
+ nodeKey: string;
2042
+ port: string;
2043
+ }[];
2044
+ }> | undefined;
2045
+ outputPorts?: Record<string, string> | undefined;
2046
+ }>, z.ZodObject<{
2047
+ kind: z.ZodLiteral<"join">;
2048
+ join: z.ZodObject<{
2049
+ mode: z.ZodLiteral<"all_selected">;
2050
+ accept: z.ZodLiteral<"completed">;
2051
+ }, "strict", z.ZodTypeAny, {
2052
+ mode: "all_selected";
2053
+ accept: "completed";
2054
+ }, {
2055
+ mode: "all_selected";
2056
+ accept: "completed";
2057
+ }>;
2058
+ key: z.ZodEffects<z.ZodString, string, string>;
2059
+ label: z.ZodOptional<z.ZodString>;
2060
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
2061
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2062
+ from: z.ZodLiteral<"subject">;
2063
+ }, "strict", z.ZodTypeAny, {
2064
+ from: "subject";
2065
+ }, {
2066
+ from: "subject";
2067
+ }>, z.ZodObject<{
2068
+ from: z.ZodLiteral<"parameter">;
2069
+ key: z.ZodEffects<z.ZodString, string, string>;
2070
+ }, "strict", z.ZodTypeAny, {
2071
+ key: string;
2072
+ from: "parameter";
2073
+ }, {
2074
+ key: string;
2075
+ from: "parameter";
2076
+ }>, z.ZodObject<{
2077
+ from: z.ZodLiteral<"node_output">;
2078
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2079
+ port: z.ZodEffects<z.ZodString, string, string>;
2080
+ }, "strict", z.ZodTypeAny, {
2081
+ from: "node_output";
2082
+ nodeKey: string;
2083
+ port: string;
2084
+ }, {
2085
+ from: "node_output";
2086
+ nodeKey: string;
2087
+ port: string;
2088
+ }>, z.ZodObject<{
2089
+ from: z.ZodLiteral<"collection">;
2090
+ items: z.ZodArray<z.ZodObject<{
2091
+ from: z.ZodLiteral<"node_output">;
2092
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2093
+ port: z.ZodEffects<z.ZodString, string, string>;
2094
+ }, "strict", z.ZodTypeAny, {
2095
+ from: "node_output";
2096
+ nodeKey: string;
2097
+ port: string;
2098
+ }, {
2099
+ from: "node_output";
2100
+ nodeKey: string;
2101
+ port: string;
2102
+ }>, "many">;
2103
+ }, "strict", z.ZodTypeAny, {
2104
+ from: "collection";
2105
+ items: {
2106
+ from: "node_output";
2107
+ nodeKey: string;
2108
+ port: string;
2109
+ }[];
2110
+ }, {
2111
+ from: "collection";
2112
+ items: {
2113
+ from: "node_output";
2114
+ nodeKey: string;
2115
+ port: string;
2116
+ }[];
2117
+ }>]>>>;
2118
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
2119
+ }, "strict", z.ZodTypeAny, {
2120
+ join: {
2121
+ mode: "all_selected";
2122
+ accept: "completed";
2123
+ };
2124
+ key: string;
2125
+ kind: "join";
2126
+ stageKey: string;
2127
+ label?: string | undefined;
2128
+ inputBindings?: Record<string, {
2129
+ from: "node_output";
2130
+ nodeKey: string;
2131
+ port: string;
2132
+ } | {
2133
+ from: "subject";
2134
+ } | {
2135
+ key: string;
2136
+ from: "parameter";
2137
+ } | {
2138
+ from: "collection";
2139
+ items: {
2140
+ from: "node_output";
2141
+ nodeKey: string;
2142
+ port: string;
2143
+ }[];
2144
+ }> | undefined;
2145
+ outputPorts?: Record<string, string> | undefined;
2146
+ }, {
2147
+ join: {
2148
+ mode: "all_selected";
2149
+ accept: "completed";
2150
+ };
2151
+ key: string;
2152
+ kind: "join";
2153
+ stageKey: string;
2154
+ label?: string | undefined;
2155
+ inputBindings?: Record<string, {
2156
+ from: "node_output";
2157
+ nodeKey: string;
2158
+ port: string;
2159
+ } | {
2160
+ from: "subject";
2161
+ } | {
2162
+ key: string;
2163
+ from: "parameter";
2164
+ } | {
2165
+ from: "collection";
2166
+ items: {
2167
+ from: "node_output";
2168
+ nodeKey: string;
2169
+ port: string;
2170
+ }[];
2171
+ }> | undefined;
2172
+ outputPorts?: Record<string, string> | undefined;
2173
+ }>, z.ZodObject<{
2174
+ kind: z.ZodLiteral<"router">;
2175
+ policyRef: z.ZodString;
2176
+ outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2177
+ unmatched: z.ZodLiteral<"block">;
2178
+ key: z.ZodEffects<z.ZodString, string, string>;
2179
+ label: z.ZodOptional<z.ZodString>;
2180
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
2181
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2182
+ from: z.ZodLiteral<"subject">;
2183
+ }, "strict", z.ZodTypeAny, {
2184
+ from: "subject";
2185
+ }, {
2186
+ from: "subject";
2187
+ }>, z.ZodObject<{
2188
+ from: z.ZodLiteral<"parameter">;
2189
+ key: z.ZodEffects<z.ZodString, string, string>;
2190
+ }, "strict", z.ZodTypeAny, {
2191
+ key: string;
2192
+ from: "parameter";
2193
+ }, {
2194
+ key: string;
2195
+ from: "parameter";
2196
+ }>, z.ZodObject<{
2197
+ from: z.ZodLiteral<"node_output">;
2198
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2199
+ port: z.ZodEffects<z.ZodString, string, string>;
2200
+ }, "strict", z.ZodTypeAny, {
2201
+ from: "node_output";
2202
+ nodeKey: string;
2203
+ port: string;
2204
+ }, {
2205
+ from: "node_output";
2206
+ nodeKey: string;
2207
+ port: string;
2208
+ }>, z.ZodObject<{
2209
+ from: z.ZodLiteral<"collection">;
2210
+ items: z.ZodArray<z.ZodObject<{
2211
+ from: z.ZodLiteral<"node_output">;
2212
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2213
+ port: z.ZodEffects<z.ZodString, string, string>;
2214
+ }, "strict", z.ZodTypeAny, {
2215
+ from: "node_output";
2216
+ nodeKey: string;
2217
+ port: string;
2218
+ }, {
2219
+ from: "node_output";
2220
+ nodeKey: string;
2221
+ port: string;
2222
+ }>, "many">;
2223
+ }, "strict", z.ZodTypeAny, {
2224
+ from: "collection";
2225
+ items: {
2226
+ from: "node_output";
2227
+ nodeKey: string;
2228
+ port: string;
2229
+ }[];
2230
+ }, {
2231
+ from: "collection";
2232
+ items: {
2233
+ from: "node_output";
2234
+ nodeKey: string;
2235
+ port: string;
2236
+ }[];
2237
+ }>]>>>;
2238
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
2239
+ }, "strict", z.ZodTypeAny, {
2240
+ key: string;
2241
+ kind: "router";
2242
+ stageKey: string;
2243
+ policyRef: string;
2244
+ outcomes: string[];
2245
+ unmatched: "block";
2246
+ label?: string | undefined;
2247
+ inputBindings?: Record<string, {
2248
+ from: "node_output";
2249
+ nodeKey: string;
2250
+ port: string;
2251
+ } | {
2252
+ from: "subject";
2253
+ } | {
2254
+ key: string;
2255
+ from: "parameter";
2256
+ } | {
2257
+ from: "collection";
2258
+ items: {
2259
+ from: "node_output";
2260
+ nodeKey: string;
2261
+ port: string;
2262
+ }[];
2263
+ }> | undefined;
2264
+ outputPorts?: Record<string, string> | undefined;
2265
+ }, {
2266
+ key: string;
2267
+ kind: "router";
2268
+ stageKey: string;
2269
+ policyRef: string;
2270
+ outcomes: string[];
2271
+ unmatched: "block";
2272
+ label?: string | undefined;
2273
+ inputBindings?: Record<string, {
2274
+ from: "node_output";
2275
+ nodeKey: string;
2276
+ port: string;
2277
+ } | {
2278
+ from: "subject";
2279
+ } | {
2280
+ key: string;
2281
+ from: "parameter";
2282
+ } | {
2283
+ from: "collection";
2284
+ items: {
2285
+ from: "node_output";
2286
+ nodeKey: string;
2287
+ port: string;
2288
+ }[];
2289
+ }> | undefined;
2290
+ outputPorts?: Record<string, string> | undefined;
2291
+ }>, z.ZodObject<{
2292
+ kind: z.ZodLiteral<"human_gate">;
2293
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
2294
+ policyRef: z.ZodString;
2295
+ candidateRoleKey: z.ZodEffects<z.ZodString, string, string>;
2296
+ outcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2297
+ outcomeLabels: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
2298
+ key: z.ZodEffects<z.ZodString, string, string>;
2299
+ label: z.ZodOptional<z.ZodString>;
2300
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
2301
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2302
+ from: z.ZodLiteral<"subject">;
2303
+ }, "strict", z.ZodTypeAny, {
2304
+ from: "subject";
2305
+ }, {
2306
+ from: "subject";
2307
+ }>, z.ZodObject<{
2308
+ from: z.ZodLiteral<"parameter">;
2309
+ key: z.ZodEffects<z.ZodString, string, string>;
2310
+ }, "strict", z.ZodTypeAny, {
2311
+ key: string;
2312
+ from: "parameter";
2313
+ }, {
2314
+ key: string;
2315
+ from: "parameter";
2316
+ }>, z.ZodObject<{
2317
+ from: z.ZodLiteral<"node_output">;
2318
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2319
+ port: z.ZodEffects<z.ZodString, string, string>;
2320
+ }, "strict", z.ZodTypeAny, {
2321
+ from: "node_output";
2322
+ nodeKey: string;
2323
+ port: string;
2324
+ }, {
2325
+ from: "node_output";
2326
+ nodeKey: string;
2327
+ port: string;
2328
+ }>, z.ZodObject<{
2329
+ from: z.ZodLiteral<"collection">;
2330
+ items: z.ZodArray<z.ZodObject<{
2331
+ from: z.ZodLiteral<"node_output">;
2332
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2333
+ port: z.ZodEffects<z.ZodString, string, string>;
2334
+ }, "strict", z.ZodTypeAny, {
2335
+ from: "node_output";
2336
+ nodeKey: string;
2337
+ port: string;
2338
+ }, {
2339
+ from: "node_output";
2340
+ nodeKey: string;
2341
+ port: string;
2342
+ }>, "many">;
2343
+ }, "strict", z.ZodTypeAny, {
2344
+ from: "collection";
2345
+ items: {
2346
+ from: "node_output";
2347
+ nodeKey: string;
2348
+ port: string;
2349
+ }[];
2350
+ }, {
2351
+ from: "collection";
2352
+ items: {
2353
+ from: "node_output";
2354
+ nodeKey: string;
2355
+ port: string;
2356
+ }[];
2357
+ }>]>>>;
2358
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
2359
+ }, "strict", z.ZodTypeAny, {
2360
+ key: string;
2361
+ kind: "human_gate";
2362
+ laneKey: string;
2363
+ stageKey: string;
2364
+ policyRef: string;
2365
+ outcomes: string[];
2366
+ candidateRoleKey: string;
2367
+ label?: string | undefined;
2368
+ inputBindings?: Record<string, {
2369
+ from: "node_output";
2370
+ nodeKey: string;
2371
+ port: string;
2372
+ } | {
2373
+ from: "subject";
2374
+ } | {
2375
+ key: string;
2376
+ from: "parameter";
2377
+ } | {
2378
+ from: "collection";
2379
+ items: {
2380
+ from: "node_output";
2381
+ nodeKey: string;
2382
+ port: string;
2383
+ }[];
2384
+ }> | undefined;
2385
+ outputPorts?: Record<string, string> | undefined;
2386
+ outcomeLabels?: Record<string, string> | undefined;
2387
+ }, {
2388
+ key: string;
2389
+ kind: "human_gate";
2390
+ laneKey: string;
2391
+ stageKey: string;
2392
+ policyRef: string;
2393
+ outcomes: string[];
2394
+ candidateRoleKey: string;
2395
+ label?: string | undefined;
2396
+ inputBindings?: Record<string, {
2397
+ from: "node_output";
2398
+ nodeKey: string;
2399
+ port: string;
2400
+ } | {
2401
+ from: "subject";
2402
+ } | {
2403
+ key: string;
2404
+ from: "parameter";
2405
+ } | {
2406
+ from: "collection";
2407
+ items: {
2408
+ from: "node_output";
2409
+ nodeKey: string;
2410
+ port: string;
2411
+ }[];
2412
+ }> | undefined;
2413
+ outputPorts?: Record<string, string> | undefined;
2414
+ outcomeLabels?: Record<string, string> | undefined;
2415
+ }>, z.ZodObject<{
2416
+ kind: z.ZodLiteral<"external_wait">;
2417
+ laneKey: z.ZodEffects<z.ZodString, string, string>;
2418
+ subscriptionRef: z.ZodString;
2419
+ key: z.ZodEffects<z.ZodString, string, string>;
2420
+ label: z.ZodOptional<z.ZodString>;
2421
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
2422
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2423
+ from: z.ZodLiteral<"subject">;
2424
+ }, "strict", z.ZodTypeAny, {
2425
+ from: "subject";
2426
+ }, {
2427
+ from: "subject";
2428
+ }>, z.ZodObject<{
2429
+ from: z.ZodLiteral<"parameter">;
2430
+ key: z.ZodEffects<z.ZodString, string, string>;
2431
+ }, "strict", z.ZodTypeAny, {
2432
+ key: string;
2433
+ from: "parameter";
2434
+ }, {
2435
+ key: string;
2436
+ from: "parameter";
2437
+ }>, z.ZodObject<{
2438
+ from: z.ZodLiteral<"node_output">;
2439
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2440
+ port: z.ZodEffects<z.ZodString, string, string>;
2441
+ }, "strict", z.ZodTypeAny, {
2442
+ from: "node_output";
2443
+ nodeKey: string;
2444
+ port: string;
2445
+ }, {
2446
+ from: "node_output";
2447
+ nodeKey: string;
2448
+ port: string;
2449
+ }>, z.ZodObject<{
2450
+ from: z.ZodLiteral<"collection">;
2451
+ items: z.ZodArray<z.ZodObject<{
2452
+ from: z.ZodLiteral<"node_output">;
2453
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2454
+ port: z.ZodEffects<z.ZodString, string, string>;
2455
+ }, "strict", z.ZodTypeAny, {
2456
+ from: "node_output";
2457
+ nodeKey: string;
2458
+ port: string;
2459
+ }, {
2460
+ from: "node_output";
2461
+ nodeKey: string;
2462
+ port: string;
2463
+ }>, "many">;
2464
+ }, "strict", z.ZodTypeAny, {
2465
+ from: "collection";
2466
+ items: {
2467
+ from: "node_output";
2468
+ nodeKey: string;
2469
+ port: string;
2470
+ }[];
2471
+ }, {
2472
+ from: "collection";
2473
+ items: {
2474
+ from: "node_output";
2475
+ nodeKey: string;
2476
+ port: string;
2477
+ }[];
2478
+ }>]>>>;
2479
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
2480
+ }, "strict", z.ZodTypeAny, {
2481
+ key: string;
2482
+ kind: "external_wait";
2483
+ laneKey: string;
2484
+ stageKey: string;
2485
+ subscriptionRef: string;
2486
+ label?: string | undefined;
2487
+ inputBindings?: Record<string, {
2488
+ from: "node_output";
2489
+ nodeKey: string;
2490
+ port: string;
2491
+ } | {
2492
+ from: "subject";
2493
+ } | {
2494
+ key: string;
2495
+ from: "parameter";
2496
+ } | {
2497
+ from: "collection";
2498
+ items: {
2499
+ from: "node_output";
2500
+ nodeKey: string;
2501
+ port: string;
2502
+ }[];
2503
+ }> | undefined;
2504
+ outputPorts?: Record<string, string> | undefined;
2505
+ }, {
2506
+ key: string;
2507
+ kind: "external_wait";
2508
+ laneKey: string;
2509
+ stageKey: string;
2510
+ subscriptionRef: string;
2511
+ label?: string | undefined;
2512
+ inputBindings?: Record<string, {
2513
+ from: "node_output";
2514
+ nodeKey: string;
2515
+ port: string;
2516
+ } | {
2517
+ from: "subject";
2518
+ } | {
2519
+ key: string;
2520
+ from: "parameter";
2521
+ } | {
2522
+ from: "collection";
2523
+ items: {
2524
+ from: "node_output";
2525
+ nodeKey: string;
2526
+ port: string;
2527
+ }[];
2528
+ }> | undefined;
2529
+ outputPorts?: Record<string, string> | undefined;
2530
+ }>, z.ZodObject<{
2531
+ kind: z.ZodLiteral<"terminal">;
2532
+ outcome: z.ZodEffects<z.ZodString, string, string>;
2533
+ disposition: z.ZodOptional<z.ZodEnum<["complete", "await_new_subject"]>>;
2534
+ key: z.ZodEffects<z.ZodString, string, string>;
2535
+ label: z.ZodOptional<z.ZodString>;
2536
+ stageKey: z.ZodEffects<z.ZodString, string, string>;
2537
+ inputBindings: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodDiscriminatedUnion<"from", [z.ZodObject<{
2538
+ from: z.ZodLiteral<"subject">;
2539
+ }, "strict", z.ZodTypeAny, {
2540
+ from: "subject";
2541
+ }, {
2542
+ from: "subject";
2543
+ }>, z.ZodObject<{
2544
+ from: z.ZodLiteral<"parameter">;
2545
+ key: z.ZodEffects<z.ZodString, string, string>;
2546
+ }, "strict", z.ZodTypeAny, {
2547
+ key: string;
2548
+ from: "parameter";
2549
+ }, {
2550
+ key: string;
2551
+ from: "parameter";
2552
+ }>, z.ZodObject<{
2553
+ from: z.ZodLiteral<"node_output">;
2554
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2555
+ port: z.ZodEffects<z.ZodString, string, string>;
2556
+ }, "strict", z.ZodTypeAny, {
2557
+ from: "node_output";
2558
+ nodeKey: string;
2559
+ port: string;
2560
+ }, {
2561
+ from: "node_output";
2562
+ nodeKey: string;
2563
+ port: string;
2564
+ }>, z.ZodObject<{
2565
+ from: z.ZodLiteral<"collection">;
2566
+ items: z.ZodArray<z.ZodObject<{
2567
+ from: z.ZodLiteral<"node_output">;
2568
+ nodeKey: z.ZodEffects<z.ZodString, string, string>;
2569
+ port: z.ZodEffects<z.ZodString, string, string>;
2570
+ }, "strict", z.ZodTypeAny, {
2571
+ from: "node_output";
2572
+ nodeKey: string;
2573
+ port: string;
2574
+ }, {
2575
+ from: "node_output";
2576
+ nodeKey: string;
2577
+ port: string;
2578
+ }>, "many">;
2579
+ }, "strict", z.ZodTypeAny, {
2580
+ from: "collection";
2581
+ items: {
2582
+ from: "node_output";
2583
+ nodeKey: string;
2584
+ port: string;
2585
+ }[];
2586
+ }, {
2587
+ from: "collection";
2588
+ items: {
2589
+ from: "node_output";
2590
+ nodeKey: string;
2591
+ port: string;
2592
+ }[];
2593
+ }>]>>>;
2594
+ outputPorts: z.ZodOptional<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodString>>;
2595
+ }, "strict", z.ZodTypeAny, {
2596
+ key: string;
2597
+ outcome: string;
2598
+ kind: "terminal";
2599
+ stageKey: string;
2600
+ label?: string | undefined;
2601
+ inputBindings?: Record<string, {
2602
+ from: "node_output";
2603
+ nodeKey: string;
2604
+ port: string;
2605
+ } | {
2606
+ from: "subject";
2607
+ } | {
2608
+ key: string;
2609
+ from: "parameter";
2610
+ } | {
2611
+ from: "collection";
2612
+ items: {
2613
+ from: "node_output";
2614
+ nodeKey: string;
2615
+ port: string;
2616
+ }[];
2617
+ }> | undefined;
2618
+ outputPorts?: Record<string, string> | undefined;
2619
+ disposition?: "complete" | "await_new_subject" | undefined;
2620
+ }, {
2621
+ key: string;
2622
+ outcome: string;
2623
+ kind: "terminal";
2624
+ stageKey: string;
2625
+ label?: string | undefined;
2626
+ inputBindings?: Record<string, {
2627
+ from: "node_output";
2628
+ nodeKey: string;
2629
+ port: string;
2630
+ } | {
2631
+ from: "subject";
2632
+ } | {
2633
+ key: string;
2634
+ from: "parameter";
2635
+ } | {
2636
+ from: "collection";
2637
+ items: {
2638
+ from: "node_output";
2639
+ nodeKey: string;
2640
+ port: string;
2641
+ }[];
2642
+ }> | undefined;
2643
+ outputPorts?: Record<string, string> | undefined;
2644
+ disposition?: "complete" | "await_new_subject" | undefined;
2645
+ }>]>, "many">;
2646
+ edges: z.ZodArray<z.ZodObject<{
2647
+ from: z.ZodEffects<z.ZodString, string, string>;
2648
+ to: z.ZodEffects<z.ZodString, string, string>;
2649
+ outcome: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
2650
+ }, "strict", z.ZodTypeAny, {
2651
+ from: string;
2652
+ to: string;
2653
+ outcome?: string | undefined;
2654
+ }, {
2655
+ from: string;
2656
+ to: string;
2657
+ outcome?: string | undefined;
2658
+ }>, "many">;
2659
+ roundPolicy: z.ZodObject<{
2660
+ entryNodeKey: z.ZodEffects<z.ZodString, string, string>;
2661
+ maxRounds: z.ZodNumber;
2662
+ onRework: z.ZodLiteral<"await_new_subject_then_next_round">;
2663
+ onLimit: z.ZodLiteral<"attention">;
2664
+ newVersionWhileActive: z.ZodLiteral<"supersede_round">;
2665
+ terminalOutcomes: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
2666
+ }, "strict", z.ZodTypeAny, {
2667
+ entryNodeKey: string;
2668
+ maxRounds: number;
2669
+ onRework: "await_new_subject_then_next_round";
2670
+ onLimit: "attention";
2671
+ newVersionWhileActive: "supersede_round";
2672
+ terminalOutcomes: string[];
2673
+ }, {
2674
+ entryNodeKey: string;
2675
+ maxRounds: number;
2676
+ onRework: "await_new_subject_then_next_round";
2677
+ onLimit: "attention";
2678
+ newVersionWhileActive: "supersede_round";
2679
+ terminalOutcomes: string[];
2680
+ }>;
2681
+ failurePolicy: z.ZodObject<{
2682
+ requiredNodeFailure: z.ZodLiteral<"block_and_attention">;
2683
+ unknownExecution: z.ZodLiteral<"inspect_without_replay">;
2684
+ }, "strict", z.ZodTypeAny, {
2685
+ requiredNodeFailure: "block_and_attention";
2686
+ unknownExecution: "inspect_without_replay";
2687
+ }, {
2688
+ requiredNodeFailure: "block_and_attention";
2689
+ unknownExecution: "inspect_without_replay";
2690
+ }>;
2691
+ hostRequirements: z.ZodOptional<z.ZodObject<{
2692
+ protocol: z.ZodNumber;
2693
+ features: z.ZodEffects<z.ZodRecord<z.ZodEffects<z.ZodString, string, string>, z.ZodNumber>, Record<string, number>, Record<string, number>>;
2694
+ }, "strict", z.ZodTypeAny, {
2695
+ protocol: number;
2696
+ features: Record<string, number>;
2697
+ }, {
2698
+ protocol: number;
2699
+ features: Record<string, number>;
2700
+ }>>;
2701
+ key: z.ZodEffects<z.ZodString, string, string>;
2702
+ version: z.ZodString;
2703
+ title: z.ZodString;
2704
+ subjectResolverRef: z.ZodString;
2705
+ roles: z.ZodArray<z.ZodObject<{
2706
+ key: z.ZodEffects<z.ZodString, string, string>;
2707
+ allowedKinds: z.ZodArray<z.ZodEnum<["assistant", "runtime_binding", "human", "service"]>, "many">;
2708
+ }, "strict", z.ZodTypeAny, {
2709
+ key: string;
2710
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2711
+ }, {
2712
+ key: string;
2713
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2714
+ }>, "many">;
2715
+ lanes: z.ZodArray<z.ZodObject<{
2716
+ key: z.ZodEffects<z.ZodString, string, string>;
2717
+ roleKey: z.ZodEffects<z.ZodString, string, string>;
2718
+ label: z.ZodString;
2719
+ order: z.ZodNumber;
2720
+ }, "strict", z.ZodTypeAny, {
2721
+ key: string;
2722
+ roleKey: string;
2723
+ label: string;
2724
+ order: number;
2725
+ }, {
2726
+ key: string;
2727
+ roleKey: string;
2728
+ label: string;
2729
+ order: number;
2730
+ }>, "many">;
2731
+ stages: z.ZodArray<z.ZodObject<{
2732
+ key: z.ZodEffects<z.ZodString, string, string>;
2733
+ label: z.ZodString;
2734
+ icon: z.ZodOptional<z.ZodEnum<["layers", "file-text", "folder-open", "list-checks", "search", "scan-search", "boxes", "package", "settings", "clipboard-check", "shield-check", "git-pull-request", "code", "test-tube", "git-merge", "calculator", "file-check", "truck"]>>;
2735
+ order: z.ZodNumber;
2736
+ }, "strict", z.ZodTypeAny, {
2737
+ key: string;
2738
+ label: string;
2739
+ order: number;
2740
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2741
+ }, {
2742
+ key: string;
2743
+ label: string;
2744
+ order: number;
2745
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2746
+ }>, "many">;
2747
+ presentation: z.ZodOptional<z.ZodObject<{
2748
+ views: z.ZodArray<z.ZodEnum<["tasks", "pipeline", "agent_timeline"]>, "many">;
2749
+ nodeDetailRef: z.ZodOptional<z.ZodString>;
2750
+ evidenceTypes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2751
+ }, "strict", z.ZodTypeAny, {
2752
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
2753
+ nodeDetailRef?: string | undefined;
2754
+ evidenceTypes?: string[] | undefined;
2755
+ }, {
2756
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
2757
+ nodeDetailRef?: string | undefined;
2758
+ evidenceTypes?: string[] | undefined;
2759
+ }>>;
2760
+ metrics: z.ZodOptional<z.ZodObject<{
2761
+ dimensionRefs: z.ZodArray<z.ZodString, "many">;
2762
+ metricRefs: z.ZodArray<z.ZodString, "many">;
2763
+ }, "strict", z.ZodTypeAny, {
2764
+ dimensionRefs: string[];
2765
+ metricRefs: string[];
2766
+ }, {
2767
+ dimensionRefs: string[];
2768
+ metricRefs: string[];
2769
+ }>>;
2770
+ }, "strict", z.ZodTypeAny, {
2771
+ key: string;
2772
+ executionAuthority: "platform";
2773
+ topology: {
2774
+ source: "definition";
2775
+ };
2776
+ version: string;
2777
+ title: string;
2778
+ subjectResolverRef: string;
2779
+ roles: {
2780
+ key: string;
2781
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
2782
+ }[];
2783
+ lanes: {
2784
+ key: string;
2785
+ roleKey: string;
2786
+ label: string;
2787
+ order: number;
2788
+ }[];
2789
+ stages: {
2790
+ key: string;
2791
+ label: string;
2792
+ order: number;
2793
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
2794
+ }[];
2795
+ nodes: ({
2796
+ key: string;
2797
+ kind: "work";
2798
+ laneKey: string;
2799
+ operationRef: string;
2800
+ executorSlot: string;
2801
+ completionRef: string;
2802
+ stageKey: string;
2803
+ label?: string | undefined;
2804
+ resourceResolverRef?: string | undefined;
2805
+ outputSchemaRef?: string | undefined;
2806
+ inputBindings?: Record<string, {
2807
+ from: "node_output";
2808
+ nodeKey: string;
2809
+ port: string;
2810
+ } | {
2811
+ from: "subject";
2812
+ } | {
2813
+ key: string;
2814
+ from: "parameter";
2815
+ } | {
2816
+ from: "collection";
2817
+ items: {
2818
+ from: "node_output";
2819
+ nodeKey: string;
2820
+ port: string;
2821
+ }[];
2822
+ }> | undefined;
2823
+ outputPorts?: Record<string, string> | undefined;
2824
+ } | {
2825
+ key: string;
2826
+ kind: "fork";
2827
+ stageKey: string;
2828
+ label?: string | undefined;
2829
+ inputBindings?: Record<string, {
2830
+ from: "node_output";
2831
+ nodeKey: string;
2832
+ port: string;
2833
+ } | {
2834
+ from: "subject";
2835
+ } | {
2836
+ key: string;
2837
+ from: "parameter";
2838
+ } | {
2839
+ from: "collection";
2840
+ items: {
2841
+ from: "node_output";
2842
+ nodeKey: string;
2843
+ port: string;
2844
+ }[];
2845
+ }> | undefined;
2846
+ outputPorts?: Record<string, string> | undefined;
2847
+ } | {
2848
+ join: {
2849
+ mode: "all_selected";
2850
+ accept: "completed";
2851
+ };
2852
+ key: string;
2853
+ kind: "join";
2854
+ stageKey: string;
2855
+ label?: string | undefined;
2856
+ inputBindings?: Record<string, {
2857
+ from: "node_output";
2858
+ nodeKey: string;
2859
+ port: string;
2860
+ } | {
2861
+ from: "subject";
2862
+ } | {
2863
+ key: string;
2864
+ from: "parameter";
2865
+ } | {
2866
+ from: "collection";
2867
+ items: {
2868
+ from: "node_output";
2869
+ nodeKey: string;
2870
+ port: string;
2871
+ }[];
2872
+ }> | undefined;
2873
+ outputPorts?: Record<string, string> | undefined;
2874
+ } | {
2875
+ key: string;
2876
+ kind: "router";
2877
+ stageKey: string;
2878
+ policyRef: string;
2879
+ outcomes: string[];
2880
+ unmatched: "block";
2881
+ label?: string | undefined;
2882
+ inputBindings?: Record<string, {
2883
+ from: "node_output";
2884
+ nodeKey: string;
2885
+ port: string;
2886
+ } | {
2887
+ from: "subject";
2888
+ } | {
2889
+ key: string;
2890
+ from: "parameter";
2891
+ } | {
2892
+ from: "collection";
2893
+ items: {
2894
+ from: "node_output";
2895
+ nodeKey: string;
2896
+ port: string;
2897
+ }[];
2898
+ }> | undefined;
2899
+ outputPorts?: Record<string, string> | undefined;
2900
+ } | {
2901
+ key: string;
2902
+ kind: "human_gate";
2903
+ laneKey: string;
2904
+ stageKey: string;
2905
+ policyRef: string;
2906
+ outcomes: string[];
2907
+ candidateRoleKey: string;
2908
+ label?: string | undefined;
2909
+ inputBindings?: Record<string, {
2910
+ from: "node_output";
2911
+ nodeKey: string;
2912
+ port: string;
2913
+ } | {
2914
+ from: "subject";
2915
+ } | {
2916
+ key: string;
2917
+ from: "parameter";
2918
+ } | {
2919
+ from: "collection";
2920
+ items: {
2921
+ from: "node_output";
2922
+ nodeKey: string;
2923
+ port: string;
2924
+ }[];
2925
+ }> | undefined;
2926
+ outputPorts?: Record<string, string> | undefined;
2927
+ outcomeLabels?: Record<string, string> | undefined;
2928
+ } | {
2929
+ key: string;
2930
+ kind: "external_wait";
2931
+ laneKey: string;
2932
+ stageKey: string;
2933
+ subscriptionRef: string;
2934
+ label?: string | undefined;
2935
+ inputBindings?: Record<string, {
2936
+ from: "node_output";
2937
+ nodeKey: string;
2938
+ port: string;
2939
+ } | {
2940
+ from: "subject";
2941
+ } | {
2942
+ key: string;
2943
+ from: "parameter";
2944
+ } | {
2945
+ from: "collection";
2946
+ items: {
2947
+ from: "node_output";
2948
+ nodeKey: string;
2949
+ port: string;
2950
+ }[];
2951
+ }> | undefined;
2952
+ outputPorts?: Record<string, string> | undefined;
2953
+ } | {
2954
+ key: string;
2955
+ outcome: string;
2956
+ kind: "terminal";
2957
+ stageKey: string;
2958
+ label?: string | undefined;
2959
+ inputBindings?: Record<string, {
2960
+ from: "node_output";
2961
+ nodeKey: string;
2962
+ port: string;
2963
+ } | {
2964
+ from: "subject";
2965
+ } | {
2966
+ key: string;
2967
+ from: "parameter";
2968
+ } | {
2969
+ from: "collection";
2970
+ items: {
2971
+ from: "node_output";
2972
+ nodeKey: string;
2973
+ port: string;
2974
+ }[];
2975
+ }> | undefined;
2976
+ outputPorts?: Record<string, string> | undefined;
2977
+ disposition?: "complete" | "await_new_subject" | undefined;
2978
+ })[];
2979
+ edges: {
2980
+ from: string;
2981
+ to: string;
2982
+ outcome?: string | undefined;
2983
+ }[];
2984
+ roundPolicy: {
2985
+ entryNodeKey: string;
2986
+ maxRounds: number;
2987
+ onRework: "await_new_subject_then_next_round";
2988
+ onLimit: "attention";
2989
+ newVersionWhileActive: "supersede_round";
2990
+ terminalOutcomes: string[];
2991
+ };
2992
+ failurePolicy: {
2993
+ requiredNodeFailure: "block_and_attention";
2994
+ unknownExecution: "inspect_without_replay";
2995
+ };
2996
+ hostRequirements?: {
2997
+ protocol: number;
2998
+ features: Record<string, number>;
2999
+ } | undefined;
3000
+ presentation?: {
3001
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3002
+ nodeDetailRef?: string | undefined;
3003
+ evidenceTypes?: string[] | undefined;
3004
+ } | undefined;
3005
+ metrics?: {
3006
+ dimensionRefs: string[];
3007
+ metricRefs: string[];
3008
+ } | undefined;
3009
+ }, {
3010
+ key: string;
3011
+ executionAuthority: "platform";
3012
+ topology: {
3013
+ source: "definition";
3014
+ };
3015
+ version: string;
3016
+ title: string;
3017
+ subjectResolverRef: string;
3018
+ roles: {
3019
+ key: string;
3020
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3021
+ }[];
3022
+ lanes: {
3023
+ key: string;
3024
+ roleKey: string;
3025
+ label: string;
3026
+ order: number;
3027
+ }[];
3028
+ stages: {
3029
+ key: string;
3030
+ label: string;
3031
+ order: number;
3032
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3033
+ }[];
3034
+ nodes: ({
3035
+ key: string;
3036
+ kind: "work";
3037
+ laneKey: string;
3038
+ operationRef: string;
3039
+ executorSlot: string;
3040
+ completionRef: string;
3041
+ stageKey: string;
3042
+ label?: string | undefined;
3043
+ resourceResolverRef?: string | undefined;
3044
+ outputSchemaRef?: string | undefined;
3045
+ inputBindings?: Record<string, {
3046
+ from: "node_output";
3047
+ nodeKey: string;
3048
+ port: string;
3049
+ } | {
3050
+ from: "subject";
3051
+ } | {
3052
+ key: string;
3053
+ from: "parameter";
3054
+ } | {
3055
+ from: "collection";
3056
+ items: {
3057
+ from: "node_output";
3058
+ nodeKey: string;
3059
+ port: string;
3060
+ }[];
3061
+ }> | undefined;
3062
+ outputPorts?: Record<string, string> | undefined;
3063
+ } | {
3064
+ key: string;
3065
+ kind: "fork";
3066
+ stageKey: string;
3067
+ label?: string | undefined;
3068
+ inputBindings?: Record<string, {
3069
+ from: "node_output";
3070
+ nodeKey: string;
3071
+ port: string;
3072
+ } | {
3073
+ from: "subject";
3074
+ } | {
3075
+ key: string;
3076
+ from: "parameter";
3077
+ } | {
3078
+ from: "collection";
3079
+ items: {
3080
+ from: "node_output";
3081
+ nodeKey: string;
3082
+ port: string;
3083
+ }[];
3084
+ }> | undefined;
3085
+ outputPorts?: Record<string, string> | undefined;
3086
+ } | {
3087
+ join: {
3088
+ mode: "all_selected";
3089
+ accept: "completed";
3090
+ };
3091
+ key: string;
3092
+ kind: "join";
3093
+ stageKey: string;
3094
+ label?: string | undefined;
3095
+ inputBindings?: Record<string, {
3096
+ from: "node_output";
3097
+ nodeKey: string;
3098
+ port: string;
3099
+ } | {
3100
+ from: "subject";
3101
+ } | {
3102
+ key: string;
3103
+ from: "parameter";
3104
+ } | {
3105
+ from: "collection";
3106
+ items: {
3107
+ from: "node_output";
3108
+ nodeKey: string;
3109
+ port: string;
3110
+ }[];
3111
+ }> | undefined;
3112
+ outputPorts?: Record<string, string> | undefined;
3113
+ } | {
3114
+ key: string;
3115
+ kind: "router";
3116
+ stageKey: string;
3117
+ policyRef: string;
3118
+ outcomes: string[];
3119
+ unmatched: "block";
3120
+ label?: string | undefined;
3121
+ inputBindings?: Record<string, {
3122
+ from: "node_output";
3123
+ nodeKey: string;
3124
+ port: string;
3125
+ } | {
3126
+ from: "subject";
3127
+ } | {
3128
+ key: string;
3129
+ from: "parameter";
3130
+ } | {
3131
+ from: "collection";
3132
+ items: {
3133
+ from: "node_output";
3134
+ nodeKey: string;
3135
+ port: string;
3136
+ }[];
3137
+ }> | undefined;
3138
+ outputPorts?: Record<string, string> | undefined;
3139
+ } | {
3140
+ key: string;
3141
+ kind: "human_gate";
3142
+ laneKey: string;
3143
+ stageKey: string;
3144
+ policyRef: string;
3145
+ outcomes: string[];
3146
+ candidateRoleKey: string;
3147
+ label?: string | undefined;
3148
+ inputBindings?: Record<string, {
3149
+ from: "node_output";
3150
+ nodeKey: string;
3151
+ port: string;
3152
+ } | {
3153
+ from: "subject";
3154
+ } | {
3155
+ key: string;
3156
+ from: "parameter";
3157
+ } | {
3158
+ from: "collection";
3159
+ items: {
3160
+ from: "node_output";
3161
+ nodeKey: string;
3162
+ port: string;
3163
+ }[];
3164
+ }> | undefined;
3165
+ outputPorts?: Record<string, string> | undefined;
3166
+ outcomeLabels?: Record<string, string> | undefined;
3167
+ } | {
3168
+ key: string;
3169
+ kind: "external_wait";
3170
+ laneKey: string;
3171
+ stageKey: string;
3172
+ subscriptionRef: string;
3173
+ label?: string | undefined;
3174
+ inputBindings?: Record<string, {
3175
+ from: "node_output";
3176
+ nodeKey: string;
3177
+ port: string;
3178
+ } | {
3179
+ from: "subject";
3180
+ } | {
3181
+ key: string;
3182
+ from: "parameter";
3183
+ } | {
3184
+ from: "collection";
3185
+ items: {
3186
+ from: "node_output";
3187
+ nodeKey: string;
3188
+ port: string;
3189
+ }[];
3190
+ }> | undefined;
3191
+ outputPorts?: Record<string, string> | undefined;
3192
+ } | {
3193
+ key: string;
3194
+ outcome: string;
3195
+ kind: "terminal";
3196
+ stageKey: string;
3197
+ label?: string | undefined;
3198
+ inputBindings?: Record<string, {
3199
+ from: "node_output";
3200
+ nodeKey: string;
3201
+ port: string;
3202
+ } | {
3203
+ from: "subject";
3204
+ } | {
3205
+ key: string;
3206
+ from: "parameter";
3207
+ } | {
3208
+ from: "collection";
3209
+ items: {
3210
+ from: "node_output";
3211
+ nodeKey: string;
3212
+ port: string;
3213
+ }[];
3214
+ }> | undefined;
3215
+ outputPorts?: Record<string, string> | undefined;
3216
+ disposition?: "complete" | "await_new_subject" | undefined;
3217
+ })[];
3218
+ edges: {
3219
+ from: string;
3220
+ to: string;
3221
+ outcome?: string | undefined;
3222
+ }[];
3223
+ roundPolicy: {
3224
+ entryNodeKey: string;
3225
+ maxRounds: number;
3226
+ onRework: "await_new_subject_then_next_round";
3227
+ onLimit: "attention";
3228
+ newVersionWhileActive: "supersede_round";
3229
+ terminalOutcomes: string[];
3230
+ };
3231
+ failurePolicy: {
3232
+ requiredNodeFailure: "block_and_attention";
3233
+ unknownExecution: "inspect_without_replay";
3234
+ };
3235
+ hostRequirements?: {
3236
+ protocol: number;
3237
+ features: Record<string, number>;
3238
+ } | undefined;
3239
+ presentation?: {
3240
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3241
+ nodeDetailRef?: string | undefined;
3242
+ evidenceTypes?: string[] | undefined;
3243
+ } | undefined;
3244
+ metrics?: {
3245
+ dimensionRefs: string[];
3246
+ metricRefs: string[];
3247
+ } | undefined;
3248
+ }>]>, {
3249
+ key: string;
3250
+ executionAuthority: "provider";
3251
+ providerRef: string;
3252
+ topology: {
3253
+ source: "provider";
3254
+ presentationAdapterRef: string;
3255
+ };
3256
+ version: string;
3257
+ title: string;
3258
+ subjectResolverRef: string;
3259
+ roles: {
3260
+ key: string;
3261
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3262
+ }[];
3263
+ lanes: {
3264
+ key: string;
3265
+ roleKey: string;
3266
+ label: string;
3267
+ order: number;
3268
+ }[];
3269
+ stages: {
3270
+ key: string;
3271
+ label: string;
3272
+ order: number;
3273
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3274
+ }[];
3275
+ actionRefs?: string[] | undefined;
3276
+ hostRequirements?: {
3277
+ protocol: number;
3278
+ features: Record<string, number>;
3279
+ } | undefined;
3280
+ presentation?: {
3281
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3282
+ nodeDetailRef?: string | undefined;
3283
+ evidenceTypes?: string[] | undefined;
3284
+ } | undefined;
3285
+ metrics?: {
3286
+ dimensionRefs: string[];
3287
+ metricRefs: string[];
3288
+ } | undefined;
3289
+ } | {
3290
+ key: string;
3291
+ executionAuthority: "platform";
3292
+ topology: {
3293
+ source: "definition";
3294
+ };
3295
+ version: string;
3296
+ title: string;
3297
+ subjectResolverRef: string;
3298
+ roles: {
3299
+ key: string;
3300
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3301
+ }[];
3302
+ lanes: {
3303
+ key: string;
3304
+ roleKey: string;
3305
+ label: string;
3306
+ order: number;
3307
+ }[];
3308
+ stages: {
3309
+ key: string;
3310
+ label: string;
3311
+ order: number;
3312
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3313
+ }[];
3314
+ nodes: ({
3315
+ key: string;
3316
+ kind: "work";
3317
+ laneKey: string;
3318
+ operationRef: string;
3319
+ executorSlot: string;
3320
+ completionRef: string;
3321
+ stageKey: string;
3322
+ label?: string | undefined;
3323
+ resourceResolverRef?: string | undefined;
3324
+ outputSchemaRef?: string | undefined;
3325
+ inputBindings?: Record<string, {
3326
+ from: "node_output";
3327
+ nodeKey: string;
3328
+ port: string;
3329
+ } | {
3330
+ from: "subject";
3331
+ } | {
3332
+ key: string;
3333
+ from: "parameter";
3334
+ } | {
3335
+ from: "collection";
3336
+ items: {
3337
+ from: "node_output";
3338
+ nodeKey: string;
3339
+ port: string;
3340
+ }[];
3341
+ }> | undefined;
3342
+ outputPorts?: Record<string, string> | undefined;
3343
+ } | {
3344
+ key: string;
3345
+ kind: "fork";
3346
+ stageKey: string;
3347
+ label?: string | undefined;
3348
+ inputBindings?: Record<string, {
3349
+ from: "node_output";
3350
+ nodeKey: string;
3351
+ port: string;
3352
+ } | {
3353
+ from: "subject";
3354
+ } | {
3355
+ key: string;
3356
+ from: "parameter";
3357
+ } | {
3358
+ from: "collection";
3359
+ items: {
3360
+ from: "node_output";
3361
+ nodeKey: string;
3362
+ port: string;
3363
+ }[];
3364
+ }> | undefined;
3365
+ outputPorts?: Record<string, string> | undefined;
3366
+ } | {
3367
+ join: {
3368
+ mode: "all_selected";
3369
+ accept: "completed";
3370
+ };
3371
+ key: string;
3372
+ kind: "join";
3373
+ stageKey: string;
3374
+ label?: string | undefined;
3375
+ inputBindings?: Record<string, {
3376
+ from: "node_output";
3377
+ nodeKey: string;
3378
+ port: string;
3379
+ } | {
3380
+ from: "subject";
3381
+ } | {
3382
+ key: string;
3383
+ from: "parameter";
3384
+ } | {
3385
+ from: "collection";
3386
+ items: {
3387
+ from: "node_output";
3388
+ nodeKey: string;
3389
+ port: string;
3390
+ }[];
3391
+ }> | undefined;
3392
+ outputPorts?: Record<string, string> | undefined;
3393
+ } | {
3394
+ key: string;
3395
+ kind: "router";
3396
+ stageKey: string;
3397
+ policyRef: string;
3398
+ outcomes: string[];
3399
+ unmatched: "block";
3400
+ label?: string | undefined;
3401
+ inputBindings?: Record<string, {
3402
+ from: "node_output";
3403
+ nodeKey: string;
3404
+ port: string;
3405
+ } | {
3406
+ from: "subject";
3407
+ } | {
3408
+ key: string;
3409
+ from: "parameter";
3410
+ } | {
3411
+ from: "collection";
3412
+ items: {
3413
+ from: "node_output";
3414
+ nodeKey: string;
3415
+ port: string;
3416
+ }[];
3417
+ }> | undefined;
3418
+ outputPorts?: Record<string, string> | undefined;
3419
+ } | {
3420
+ key: string;
3421
+ kind: "human_gate";
3422
+ laneKey: string;
3423
+ stageKey: string;
3424
+ policyRef: string;
3425
+ outcomes: string[];
3426
+ candidateRoleKey: string;
3427
+ label?: string | undefined;
3428
+ inputBindings?: Record<string, {
3429
+ from: "node_output";
3430
+ nodeKey: string;
3431
+ port: string;
3432
+ } | {
3433
+ from: "subject";
3434
+ } | {
3435
+ key: string;
3436
+ from: "parameter";
3437
+ } | {
3438
+ from: "collection";
3439
+ items: {
3440
+ from: "node_output";
3441
+ nodeKey: string;
3442
+ port: string;
3443
+ }[];
3444
+ }> | undefined;
3445
+ outputPorts?: Record<string, string> | undefined;
3446
+ outcomeLabels?: Record<string, string> | undefined;
3447
+ } | {
3448
+ key: string;
3449
+ kind: "external_wait";
3450
+ laneKey: string;
3451
+ stageKey: string;
3452
+ subscriptionRef: string;
3453
+ label?: string | undefined;
3454
+ inputBindings?: Record<string, {
3455
+ from: "node_output";
3456
+ nodeKey: string;
3457
+ port: string;
3458
+ } | {
3459
+ from: "subject";
3460
+ } | {
3461
+ key: string;
3462
+ from: "parameter";
3463
+ } | {
3464
+ from: "collection";
3465
+ items: {
3466
+ from: "node_output";
3467
+ nodeKey: string;
3468
+ port: string;
3469
+ }[];
3470
+ }> | undefined;
3471
+ outputPorts?: Record<string, string> | undefined;
3472
+ } | {
3473
+ key: string;
3474
+ outcome: string;
3475
+ kind: "terminal";
3476
+ stageKey: string;
3477
+ label?: string | undefined;
3478
+ inputBindings?: Record<string, {
3479
+ from: "node_output";
3480
+ nodeKey: string;
3481
+ port: string;
3482
+ } | {
3483
+ from: "subject";
3484
+ } | {
3485
+ key: string;
3486
+ from: "parameter";
3487
+ } | {
3488
+ from: "collection";
3489
+ items: {
3490
+ from: "node_output";
3491
+ nodeKey: string;
3492
+ port: string;
3493
+ }[];
3494
+ }> | undefined;
3495
+ outputPorts?: Record<string, string> | undefined;
3496
+ disposition?: "complete" | "await_new_subject" | undefined;
3497
+ })[];
3498
+ edges: {
3499
+ from: string;
3500
+ to: string;
3501
+ outcome?: string | undefined;
3502
+ }[];
3503
+ roundPolicy: {
3504
+ entryNodeKey: string;
3505
+ maxRounds: number;
3506
+ onRework: "await_new_subject_then_next_round";
3507
+ onLimit: "attention";
3508
+ newVersionWhileActive: "supersede_round";
3509
+ terminalOutcomes: string[];
3510
+ };
3511
+ failurePolicy: {
3512
+ requiredNodeFailure: "block_and_attention";
3513
+ unknownExecution: "inspect_without_replay";
3514
+ };
3515
+ hostRequirements?: {
3516
+ protocol: number;
3517
+ features: Record<string, number>;
3518
+ } | undefined;
3519
+ presentation?: {
3520
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3521
+ nodeDetailRef?: string | undefined;
3522
+ evidenceTypes?: string[] | undefined;
3523
+ } | undefined;
3524
+ metrics?: {
3525
+ dimensionRefs: string[];
3526
+ metricRefs: string[];
3527
+ } | undefined;
3528
+ }, {
3529
+ key: string;
3530
+ executionAuthority: "provider";
3531
+ providerRef: string;
3532
+ topology: {
3533
+ source: "provider";
3534
+ presentationAdapterRef: string;
3535
+ };
3536
+ version: string;
3537
+ title: string;
3538
+ subjectResolverRef: string;
3539
+ roles: {
3540
+ key: string;
3541
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3542
+ }[];
3543
+ lanes: {
3544
+ key: string;
3545
+ roleKey: string;
3546
+ label: string;
3547
+ order: number;
3548
+ }[];
3549
+ stages: {
3550
+ key: string;
3551
+ label: string;
3552
+ order: number;
3553
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3554
+ }[];
3555
+ actionRefs?: string[] | undefined;
3556
+ hostRequirements?: {
3557
+ protocol: number;
3558
+ features: Record<string, number>;
3559
+ } | undefined;
3560
+ presentation?: {
3561
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3562
+ nodeDetailRef?: string | undefined;
3563
+ evidenceTypes?: string[] | undefined;
3564
+ } | undefined;
3565
+ metrics?: {
3566
+ dimensionRefs: string[];
3567
+ metricRefs: string[];
3568
+ } | undefined;
3569
+ } | {
3570
+ key: string;
3571
+ executionAuthority: "platform";
3572
+ topology: {
3573
+ source: "definition";
3574
+ };
3575
+ version: string;
3576
+ title: string;
3577
+ subjectResolverRef: string;
3578
+ roles: {
3579
+ key: string;
3580
+ allowedKinds: ("assistant" | "runtime_binding" | "human" | "service")[];
3581
+ }[];
3582
+ lanes: {
3583
+ key: string;
3584
+ roleKey: string;
3585
+ label: string;
3586
+ order: number;
3587
+ }[];
3588
+ stages: {
3589
+ key: string;
3590
+ label: string;
3591
+ order: number;
3592
+ icon?: "code" | "layers" | "file-text" | "folder-open" | "list-checks" | "search" | "scan-search" | "boxes" | "package" | "settings" | "clipboard-check" | "shield-check" | "git-pull-request" | "test-tube" | "git-merge" | "calculator" | "file-check" | "truck" | undefined;
3593
+ }[];
3594
+ nodes: ({
3595
+ key: string;
3596
+ kind: "work";
3597
+ laneKey: string;
3598
+ operationRef: string;
3599
+ executorSlot: string;
3600
+ completionRef: string;
3601
+ stageKey: string;
3602
+ label?: string | undefined;
3603
+ resourceResolverRef?: string | undefined;
3604
+ outputSchemaRef?: string | undefined;
3605
+ inputBindings?: Record<string, {
3606
+ from: "node_output";
3607
+ nodeKey: string;
3608
+ port: string;
3609
+ } | {
3610
+ from: "subject";
3611
+ } | {
3612
+ key: string;
3613
+ from: "parameter";
3614
+ } | {
3615
+ from: "collection";
3616
+ items: {
3617
+ from: "node_output";
3618
+ nodeKey: string;
3619
+ port: string;
3620
+ }[];
3621
+ }> | undefined;
3622
+ outputPorts?: Record<string, string> | undefined;
3623
+ } | {
3624
+ key: string;
3625
+ kind: "fork";
3626
+ stageKey: string;
3627
+ label?: string | undefined;
3628
+ inputBindings?: Record<string, {
3629
+ from: "node_output";
3630
+ nodeKey: string;
3631
+ port: string;
3632
+ } | {
3633
+ from: "subject";
3634
+ } | {
3635
+ key: string;
3636
+ from: "parameter";
3637
+ } | {
3638
+ from: "collection";
3639
+ items: {
3640
+ from: "node_output";
3641
+ nodeKey: string;
3642
+ port: string;
3643
+ }[];
3644
+ }> | undefined;
3645
+ outputPorts?: Record<string, string> | undefined;
3646
+ } | {
3647
+ join: {
3648
+ mode: "all_selected";
3649
+ accept: "completed";
3650
+ };
3651
+ key: string;
3652
+ kind: "join";
3653
+ stageKey: string;
3654
+ label?: string | undefined;
3655
+ inputBindings?: Record<string, {
3656
+ from: "node_output";
3657
+ nodeKey: string;
3658
+ port: string;
3659
+ } | {
3660
+ from: "subject";
3661
+ } | {
3662
+ key: string;
3663
+ from: "parameter";
3664
+ } | {
3665
+ from: "collection";
3666
+ items: {
3667
+ from: "node_output";
3668
+ nodeKey: string;
3669
+ port: string;
3670
+ }[];
3671
+ }> | undefined;
3672
+ outputPorts?: Record<string, string> | undefined;
3673
+ } | {
3674
+ key: string;
3675
+ kind: "router";
3676
+ stageKey: string;
3677
+ policyRef: string;
3678
+ outcomes: string[];
3679
+ unmatched: "block";
3680
+ label?: string | undefined;
3681
+ inputBindings?: Record<string, {
3682
+ from: "node_output";
3683
+ nodeKey: string;
3684
+ port: string;
3685
+ } | {
3686
+ from: "subject";
3687
+ } | {
3688
+ key: string;
3689
+ from: "parameter";
3690
+ } | {
3691
+ from: "collection";
3692
+ items: {
3693
+ from: "node_output";
3694
+ nodeKey: string;
3695
+ port: string;
3696
+ }[];
3697
+ }> | undefined;
3698
+ outputPorts?: Record<string, string> | undefined;
3699
+ } | {
3700
+ key: string;
3701
+ kind: "human_gate";
3702
+ laneKey: string;
3703
+ stageKey: string;
3704
+ policyRef: string;
3705
+ outcomes: string[];
3706
+ candidateRoleKey: string;
3707
+ label?: string | undefined;
3708
+ inputBindings?: Record<string, {
3709
+ from: "node_output";
3710
+ nodeKey: string;
3711
+ port: string;
3712
+ } | {
3713
+ from: "subject";
3714
+ } | {
3715
+ key: string;
3716
+ from: "parameter";
3717
+ } | {
3718
+ from: "collection";
3719
+ items: {
3720
+ from: "node_output";
3721
+ nodeKey: string;
3722
+ port: string;
3723
+ }[];
3724
+ }> | undefined;
3725
+ outputPorts?: Record<string, string> | undefined;
3726
+ outcomeLabels?: Record<string, string> | undefined;
3727
+ } | {
3728
+ key: string;
3729
+ kind: "external_wait";
3730
+ laneKey: string;
3731
+ stageKey: string;
3732
+ subscriptionRef: string;
3733
+ label?: string | undefined;
3734
+ inputBindings?: Record<string, {
3735
+ from: "node_output";
3736
+ nodeKey: string;
3737
+ port: string;
3738
+ } | {
3739
+ from: "subject";
3740
+ } | {
3741
+ key: string;
3742
+ from: "parameter";
3743
+ } | {
3744
+ from: "collection";
3745
+ items: {
3746
+ from: "node_output";
3747
+ nodeKey: string;
3748
+ port: string;
3749
+ }[];
3750
+ }> | undefined;
3751
+ outputPorts?: Record<string, string> | undefined;
3752
+ } | {
3753
+ key: string;
3754
+ outcome: string;
3755
+ kind: "terminal";
3756
+ stageKey: string;
3757
+ label?: string | undefined;
3758
+ inputBindings?: Record<string, {
3759
+ from: "node_output";
3760
+ nodeKey: string;
3761
+ port: string;
3762
+ } | {
3763
+ from: "subject";
3764
+ } | {
3765
+ key: string;
3766
+ from: "parameter";
3767
+ } | {
3768
+ from: "collection";
3769
+ items: {
3770
+ from: "node_output";
3771
+ nodeKey: string;
3772
+ port: string;
3773
+ }[];
3774
+ }> | undefined;
3775
+ outputPorts?: Record<string, string> | undefined;
3776
+ disposition?: "complete" | "await_new_subject" | undefined;
3777
+ })[];
3778
+ edges: {
3779
+ from: string;
3780
+ to: string;
3781
+ outcome?: string | undefined;
3782
+ }[];
3783
+ roundPolicy: {
3784
+ entryNodeKey: string;
3785
+ maxRounds: number;
3786
+ onRework: "await_new_subject_then_next_round";
3787
+ onLimit: "attention";
3788
+ newVersionWhileActive: "supersede_round";
3789
+ terminalOutcomes: string[];
3790
+ };
3791
+ failurePolicy: {
3792
+ requiredNodeFailure: "block_and_attention";
3793
+ unknownExecution: "inspect_without_replay";
3794
+ };
3795
+ hostRequirements?: {
3796
+ protocol: number;
3797
+ features: Record<string, number>;
3798
+ } | undefined;
3799
+ presentation?: {
3800
+ views: ("tasks" | "pipeline" | "agent_timeline")[];
3801
+ nodeDetailRef?: string | undefined;
3802
+ evidenceTypes?: string[] | undefined;
3803
+ } | undefined;
3804
+ metrics?: {
3805
+ dimensionRefs: string[];
3806
+ metricRefs: string[];
3807
+ } | undefined;
3808
+ }>;