@dogpile/sdk 0.3.1 → 0.4.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 (56) hide show
  1. package/CHANGELOG.md +136 -0
  2. package/README.md +1 -0
  3. package/dist/browser/index.js +1595 -54
  4. package/dist/browser/index.js.map +1 -1
  5. package/dist/index.d.ts +1 -1
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/providers/openai-compatible.d.ts +11 -0
  8. package/dist/providers/openai-compatible.d.ts.map +1 -1
  9. package/dist/providers/openai-compatible.js +87 -2
  10. package/dist/providers/openai-compatible.js.map +1 -1
  11. package/dist/runtime/cancellation.d.ts +26 -0
  12. package/dist/runtime/cancellation.d.ts.map +1 -1
  13. package/dist/runtime/cancellation.js +38 -1
  14. package/dist/runtime/cancellation.js.map +1 -1
  15. package/dist/runtime/coordinator.d.ts +74 -1
  16. package/dist/runtime/coordinator.d.ts.map +1 -1
  17. package/dist/runtime/coordinator.js +932 -25
  18. package/dist/runtime/coordinator.js.map +1 -1
  19. package/dist/runtime/decisions.d.ts +25 -3
  20. package/dist/runtime/decisions.d.ts.map +1 -1
  21. package/dist/runtime/decisions.js +241 -3
  22. package/dist/runtime/decisions.js.map +1 -1
  23. package/dist/runtime/defaults.d.ts +37 -1
  24. package/dist/runtime/defaults.d.ts.map +1 -1
  25. package/dist/runtime/defaults.js +347 -0
  26. package/dist/runtime/defaults.js.map +1 -1
  27. package/dist/runtime/engine.d.ts.map +1 -1
  28. package/dist/runtime/engine.js +254 -24
  29. package/dist/runtime/engine.js.map +1 -1
  30. package/dist/runtime/sequential.d.ts.map +1 -1
  31. package/dist/runtime/sequential.js +8 -1
  32. package/dist/runtime/sequential.js.map +1 -1
  33. package/dist/runtime/validation.d.ts +10 -0
  34. package/dist/runtime/validation.d.ts.map +1 -1
  35. package/dist/runtime/validation.js +73 -0
  36. package/dist/runtime/validation.js.map +1 -1
  37. package/dist/types/events.d.ts +329 -8
  38. package/dist/types/events.d.ts.map +1 -1
  39. package/dist/types/replay.d.ts +5 -1
  40. package/dist/types/replay.d.ts.map +1 -1
  41. package/dist/types.d.ts +131 -5
  42. package/dist/types.d.ts.map +1 -1
  43. package/dist/types.js.map +1 -1
  44. package/package.json +1 -1
  45. package/src/index.ts +10 -0
  46. package/src/providers/openai-compatible.ts +82 -3
  47. package/src/runtime/cancellation.ts +59 -1
  48. package/src/runtime/coordinator.ts +1170 -25
  49. package/src/runtime/decisions.ts +307 -4
  50. package/src/runtime/defaults.ts +376 -0
  51. package/src/runtime/engine.ts +363 -24
  52. package/src/runtime/sequential.ts +9 -1
  53. package/src/runtime/validation.ts +81 -0
  54. package/src/types/events.ts +359 -8
  55. package/src/types/replay.ts +12 -1
  56. package/src/types.ts +147 -3
@@ -1,4 +1,4 @@
1
- import type { BudgetStopReason, CostSummary, JsonObject, ModelRequest, ModelResponse, NormalizedQualityScore, RunEvaluation, RuntimeToolIdentity, RuntimeToolResult, TerminationStopRecord } from "../types.js";
1
+ import type { BudgetCaps, BudgetStopReason, CostSummary, JsonObject, ModelRequest, ModelResponse, NormalizedQualityScore, ProtocolName, RunEvaluation, RunResult, RuntimeToolIdentity, RuntimeToolResult, TerminationStopRecord, Trace } from "../types.js";
2
2
  /**
3
3
  * Event emitted when a protocol assigns or records an agent role.
4
4
  *
@@ -21,6 +21,8 @@ export interface RoleAssignmentEvent {
21
21
  readonly type: "role-assignment";
22
22
  /** Stable run id shared by all events in one workflow. */
23
23
  readonly runId: string;
24
+ /** Root-first ancestry chain when bubbled through a parent stream. */
25
+ readonly parentRunIds?: readonly string[];
24
26
  /** ISO-8601 event timestamp. */
25
27
  readonly at: string;
26
28
  /** Agent receiving the role assignment. */
@@ -44,6 +46,8 @@ export interface ModelRequestEvent {
44
46
  readonly type: "model-request";
45
47
  /** Stable run id shared by all events in one workflow. */
46
48
  readonly runId: string;
49
+ /** Root-first ancestry chain when bubbled through a parent stream. */
50
+ readonly parentRunIds?: readonly string[];
47
51
  /** ISO-8601 event timestamp. */
48
52
  readonly at: string;
49
53
  /** Stable provider call id within the run. */
@@ -71,6 +75,8 @@ export interface ModelResponseEvent {
71
75
  readonly type: "model-response";
72
76
  /** Stable run id shared by all events in one workflow. */
73
77
  readonly runId: string;
78
+ /** Root-first ancestry chain when bubbled through a parent stream. */
79
+ readonly parentRunIds?: readonly string[];
74
80
  /** ISO-8601 event timestamp. */
75
81
  readonly at: string;
76
82
  /** Stable provider call id within the run. */
@@ -110,6 +116,8 @@ export interface ModelOutputChunkEvent {
110
116
  readonly type: "model-output-chunk";
111
117
  /** Stable run id shared by all events in one workflow. */
112
118
  readonly runId: string;
119
+ /** Root-first ancestry chain when bubbled through a parent stream. */
120
+ readonly parentRunIds?: readonly string[];
113
121
  /** ISO-8601 event timestamp. */
114
122
  readonly at: string;
115
123
  /** Agent currently producing output. */
@@ -138,6 +146,8 @@ export interface ToolCallEvent {
138
146
  readonly type: "tool-call";
139
147
  /** Stable run id shared by all events in one workflow. */
140
148
  readonly runId: string;
149
+ /** Root-first ancestry chain when bubbled through a parent stream. */
150
+ readonly parentRunIds?: readonly string[];
141
151
  /** ISO-8601 event timestamp. */
142
152
  readonly at: string;
143
153
  /** Stable tool call id within the run. */
@@ -164,6 +174,8 @@ export interface ToolResultEvent {
164
174
  readonly type: "tool-result";
165
175
  /** Stable run id shared by all events in one workflow. */
166
176
  readonly runId: string;
177
+ /** Root-first ancestry chain when bubbled through a parent stream. */
178
+ readonly parentRunIds?: readonly string[];
167
179
  /** ISO-8601 event timestamp. */
168
180
  readonly at: string;
169
181
  /** Stable tool call id within the run. */
@@ -187,7 +199,9 @@ export interface ToolResultEvent {
187
199
  * metadata so reproduction harnesses can distinguish contribution from
188
200
  * voluntary abstention without reparsing raw text.
189
201
  */
190
- export interface AgentDecision {
202
+ export interface ParticipateAgentDecision {
203
+ /** Discriminant marking this as a participate-style decision. */
204
+ readonly type: "participate";
191
205
  /** Task-specific role selected by the agent for this turn. */
192
206
  readonly selectedRole: string;
193
207
  /** Whether the agent contributed or voluntarily abstained. */
@@ -197,6 +211,44 @@ export interface AgentDecision {
197
211
  /** Agent-provided contribution text, or abstention explanation. */
198
212
  readonly contribution: string;
199
213
  }
214
+ /**
215
+ * Decision emitted by a coordinator agent that delegates a sub-mission to a
216
+ * coordination protocol rather than contributing directly. The runtime
217
+ * dispatches a child run when this decision is returned.
218
+ */
219
+ export interface DelegateAgentDecision {
220
+ /** Discriminant marking this as a delegate-style decision. */
221
+ readonly type: "delegate";
222
+ /** Coordination protocol the child sub-run will execute. */
223
+ readonly protocol: ProtocolName;
224
+ /** Mission text passed to the child sub-run. */
225
+ readonly intent: string;
226
+ /**
227
+ * Optional model provider id assertion. When set, the runtime requires the
228
+ * value to match the parent's `ConfiguredModelProvider.id` (D-11) — child
229
+ * runs always inherit the parent provider instance verbatim.
230
+ */
231
+ readonly model?: string;
232
+ /** Optional per-decision budget caps applied to the child run. */
233
+ readonly budget?: BudgetCaps;
234
+ /**
235
+ * Optional per-decision child concurrency ceiling. This can only lower the
236
+ * engine/run effective max for the current coordinator fan-out turn (D-05).
237
+ */
238
+ readonly maxConcurrentChildren?: number;
239
+ }
240
+ /**
241
+ * Discriminated union of structured agent decisions parsed from model output.
242
+ *
243
+ * - `participate`: paper-style turn contribution; carries the four labeled
244
+ * fields (`selectedRole`, `participation`, `rationale`, `contribution`).
245
+ * - `delegate`: coordinator-only delegation to a child sub-run. The runtime
246
+ * dispatches a sub-mission when this branch is returned.
247
+ *
248
+ * Consumers MUST narrow on `decision.type === "participate"` before reading
249
+ * paper-style fields.
250
+ */
251
+ export type AgentDecision = ParticipateAgentDecision | DelegateAgentDecision;
200
252
  /**
201
253
  * Agent participation state for a paper-style turn decision.
202
254
  */
@@ -230,6 +282,8 @@ export interface TurnEvent {
230
282
  readonly type: "agent-turn";
231
283
  /** Stable run id shared by all events in one workflow. */
232
284
  readonly runId: string;
285
+ /** Root-first ancestry chain when bubbled through a parent stream. */
286
+ readonly parentRunIds?: readonly string[];
233
287
  /** ISO-8601 event timestamp. */
234
288
  readonly at: string;
235
289
  /** Agent that produced this turn. */
@@ -241,7 +295,7 @@ export interface TurnEvent {
241
295
  /** Model output produced by the agent. */
242
296
  readonly output: string;
243
297
  /** Optional structured role/participation decision parsed from model output. */
244
- readonly decision?: AgentDecision;
298
+ readonly decision?: AgentDecision | readonly DelegateAgentDecision[];
245
299
  /** Cumulative cost after this turn. */
246
300
  readonly cost: CostSummary;
247
301
  }
@@ -269,7 +323,7 @@ export interface BroadcastContribution {
269
323
  /** Independent model output produced for the shared mission. */
270
324
  readonly output: string;
271
325
  /** Optional structured role/participation decision parsed from model output. */
272
- readonly decision?: AgentDecision;
326
+ readonly decision?: AgentDecision | readonly DelegateAgentDecision[];
273
327
  }
274
328
  /**
275
329
  * Event emitted after agents broadcast independent contributions for a round.
@@ -295,6 +349,8 @@ export interface BroadcastEvent {
295
349
  readonly type: "broadcast";
296
350
  /** Stable run id shared by all events in one workflow. */
297
351
  readonly runId: string;
352
+ /** Root-first ancestry chain when bubbled through a parent stream. */
353
+ readonly parentRunIds?: readonly string[];
298
354
  /** ISO-8601 event timestamp. */
299
355
  readonly at: string;
300
356
  /** One-based broadcast round number. */
@@ -317,6 +373,8 @@ export interface BudgetStopEvent {
317
373
  readonly type: "budget-stop";
318
374
  /** Stable run id shared by all events in one workflow. */
319
375
  readonly runId: string;
376
+ /** Root-first ancestry chain when bubbled through a parent stream. */
377
+ readonly parentRunIds?: readonly string[];
320
378
  /** ISO-8601 event timestamp. */
321
379
  readonly at: string;
322
380
  /** Normalized machine-readable budget stop reason. */
@@ -386,6 +444,252 @@ export interface FinalEvent {
386
444
  /** Termination condition that stopped the run, when the run ended by policy. */
387
445
  readonly termination?: TerminationStopRecord;
388
446
  }
447
+ /**
448
+ * Event emitted when the coordinator dispatches a delegated sub-run.
449
+ *
450
+ * @remarks
451
+ * Recorded immediately before the child run starts executing. Carries the
452
+ * child's run id, the parent decision id that triggered the dispatch, and the
453
+ * resolved protocol/intent/depth. The `recursive` flag marks the diagnostic
454
+ * case where a coordinator delegates to another coordinator (D-16).
455
+ *
456
+ * The event's `runId` is the PARENT run id, matching the existing trace
457
+ * convention; `parentRunId` duplicates it for explicit cross-reference.
458
+ */
459
+ export interface SubRunStartedEvent {
460
+ /** Discriminant for event rendering and exhaustive switches. */
461
+ readonly type: "sub-run-started";
462
+ /** Parent run id; matches the surrounding trace runId. */
463
+ readonly runId: string;
464
+ /** Root-first ancestry chain when bubbled through a parent stream. */
465
+ readonly parentRunIds?: readonly string[];
466
+ /** ISO-8601 event timestamp. */
467
+ readonly at: string;
468
+ /** Child run id assigned to the dispatched sub-run. */
469
+ readonly childRunId: string;
470
+ /** Parent run id (duplicates `runId` for explicit cross-reference). */
471
+ readonly parentRunId: string;
472
+ /** Replay decision id of the parent decision that triggered this sub-run. */
473
+ readonly parentDecisionId: string;
474
+ /**
475
+ * 0-indexed position of this delegate within the fan-out array of its
476
+ * originating coordinator plan-turn (Phase 3 D-10). Single-delegate turns
477
+ * use `0` for backward compatibility. Together with `parentDecisionId`, this
478
+ * uniquely identifies the delegate within a fan-out.
479
+ */
480
+ readonly parentDecisionArrayIndex: number;
481
+ /** Coordination protocol the child run will execute. */
482
+ readonly protocol: ProtocolName;
483
+ /** Mission intent passed to the child run. */
484
+ readonly intent: string;
485
+ /** Recursion depth of the child run (1 for first-level sub-run). */
486
+ readonly depth: number;
487
+ /**
488
+ * Diagnostic flag set when a coordinator delegates to another coordinator
489
+ * (parent protocol === "coordinator" and child protocol === "coordinator").
490
+ */
491
+ readonly recursive?: boolean;
492
+ }
493
+ /**
494
+ * Event emitted when a delegated sub-run completes successfully.
495
+ *
496
+ * @remarks
497
+ * Carries the full {@link RunResult} as `subResult`, including the embedded
498
+ * child {@link Trace}. Replay walks the parent event sequence and recurses on
499
+ * `subResult.trace` to rehydrate sub-run accounting without re-invoking the
500
+ * provider (D-08).
501
+ */
502
+ export interface SubRunCompletedEvent {
503
+ /** Discriminant for event rendering and exhaustive switches. */
504
+ readonly type: "sub-run-completed";
505
+ /** Parent run id; matches the surrounding trace runId. */
506
+ readonly runId: string;
507
+ /** Root-first ancestry chain when bubbled through a parent stream. */
508
+ readonly parentRunIds?: readonly string[];
509
+ /** ISO-8601 event timestamp. */
510
+ readonly at: string;
511
+ /** Child run id that produced this result. */
512
+ readonly childRunId: string;
513
+ /** Parent run id (duplicates `runId` for explicit cross-reference). */
514
+ readonly parentRunId: string;
515
+ /** Replay decision id of the parent decision that triggered the sub-run. */
516
+ readonly parentDecisionId: string;
517
+ /**
518
+ * 0-indexed position of this delegate within the fan-out array of its
519
+ * originating coordinator plan-turn (Phase 3 D-10). Single-delegate turns
520
+ * use `0` for backward compatibility. Together with `parentDecisionId`, this
521
+ * uniquely identifies the delegate within a fan-out.
522
+ */
523
+ readonly parentDecisionArrayIndex: number;
524
+ /** Full child {@link RunResult}, including the embedded child {@link Trace}. */
525
+ readonly subResult: RunResult;
526
+ }
527
+ /**
528
+ * Event emitted when a delegated sub-run fails before completion.
529
+ *
530
+ * @remarks
531
+ * Captures a structured `error` plus the partial {@link Trace} accumulated
532
+ * before failure. The same `Trace` shape used by completed runs is preserved
533
+ * — consumers can replay or inspect the partial child events without bespoke
534
+ * deserialization logic.
535
+ */
536
+ export interface SubRunFailedEvent {
537
+ /** Discriminant for event rendering and exhaustive switches. */
538
+ readonly type: "sub-run-failed";
539
+ /** Parent run id; matches the surrounding trace runId. */
540
+ readonly runId: string;
541
+ /** Root-first ancestry chain when bubbled through a parent stream. */
542
+ readonly parentRunIds?: readonly string[];
543
+ /** ISO-8601 event timestamp. */
544
+ readonly at: string;
545
+ /** Child run id that failed. */
546
+ readonly childRunId: string;
547
+ /** Parent run id (duplicates `runId` for explicit cross-reference). */
548
+ readonly parentRunId: string;
549
+ /** Replay decision id of the parent decision that triggered the sub-run. */
550
+ readonly parentDecisionId: string;
551
+ /**
552
+ * 0-indexed position of this delegate within the fan-out array of its
553
+ * originating coordinator plan-turn (Phase 3 D-10). Single-delegate turns
554
+ * use `0` for backward compatibility. Together with `parentDecisionId`, this
555
+ * uniquely identifies the delegate within a fan-out.
556
+ */
557
+ readonly parentDecisionArrayIndex: number;
558
+ /** Structured failure description. */
559
+ readonly error: {
560
+ /** Stable error code (matches DogpileError code shape). */
561
+ readonly code: string;
562
+ /** Human-readable failure description. */
563
+ readonly message: string;
564
+ /** Provider id when the failure originated in a model call. */
565
+ readonly providerId?: string;
566
+ /** Optional structured detail (e.g., the failed delegate decision payload). */
567
+ readonly detail?: JsonObject;
568
+ };
569
+ /** Partial child {@link Trace} accumulated up to the failure point. */
570
+ readonly partialTrace: Trace;
571
+ /**
572
+ * Cost from provider calls completed before the child threw (BUDGET-03 / D-02).
573
+ *
574
+ * Equals `lastCostBearingEventCost(partialTrace.events) ?? emptyCost()`. The
575
+ * parent rolls this into its own `accounting.cost` so failed children
576
+ * contribute their real wallet spend.
577
+ */
578
+ readonly partialCost: CostSummary;
579
+ }
580
+ /**
581
+ * Event emitted when the parent's `signal` aborts AFTER a sub-run has already
582
+ * completed successfully but BEFORE the parent advances to its next coordinator
583
+ * turn (BUDGET-01 / D-10).
584
+ *
585
+ * @remarks
586
+ * Provides replay/streaming provenance for "parent gave up after a successful
587
+ * child finished." The marker is observable on `Dogpile.stream()` subscribers
588
+ * before the run errors with `code: "aborted"`. Non-streaming `run()` rejects
589
+ * with the abort error and does NOT expose the marker — `engine.ts` does not
590
+ * attach the parent events array to the rejected error (verified at
591
+ * `engine.ts:230-239`). Streaming-subscriber observability is the contract.
592
+ */
593
+ export interface SubRunParentAbortedEvent {
594
+ /** Discriminant for event rendering and exhaustive switches. */
595
+ readonly type: "sub-run-parent-aborted";
596
+ /** Parent run id; matches the surrounding trace runId. */
597
+ readonly runId: string;
598
+ /** Root-first ancestry chain when bubbled through a parent stream. */
599
+ readonly parentRunIds?: readonly string[];
600
+ /** ISO-8601 event timestamp. */
601
+ readonly at: string;
602
+ /** Most-recent completed child run id whose completion preceded the abort. */
603
+ readonly childRunId: string;
604
+ /** Parent run id (duplicates `runId` for explicit cross-reference). */
605
+ readonly parentRunId: string;
606
+ /** Discriminator (currently always "parent-aborted"; reserved for future variants). */
607
+ readonly reason: "parent-aborted";
608
+ }
609
+ /**
610
+ * Event emitted when a delegated sub-run's requested `budget.timeoutMs`
611
+ * exceeds the parent's remaining deadline and is therefore clamped to the
612
+ * parent's remaining time (BUDGET-02 / D-12).
613
+ *
614
+ * @remarks
615
+ * Emitted on the parent trace BEFORE `sub-run-started`. When the requested
616
+ * decision-level timeout fits within the parent's remaining deadline, the
617
+ * event is NOT emitted (zero-overhead happy path). The parent's deadline is
618
+ * a hard ceiling for the whole tree, so any decision-level override that
619
+ * exceeds it is silently clamped rather than throwing — recording the
620
+ * requested-vs-clamped pair on the trace preserves provenance for replay.
621
+ */
622
+ export interface SubRunBudgetClampedEvent {
623
+ /** Discriminant for event rendering and exhaustive switches. */
624
+ readonly type: "sub-run-budget-clamped";
625
+ /** Parent run id; matches the surrounding trace runId. */
626
+ readonly runId: string;
627
+ /** Root-first ancestry chain when bubbled through a parent stream. */
628
+ readonly parentRunIds?: readonly string[];
629
+ /** ISO-8601 event timestamp. */
630
+ readonly at: string;
631
+ /** Child run id whose budget was clamped. */
632
+ readonly childRunId: string;
633
+ /** Parent run id (duplicates `runId` for explicit cross-reference). */
634
+ readonly parentRunId: string;
635
+ /** Replay decision id of the parent decision that triggered the sub-run. */
636
+ readonly parentDecisionId: string;
637
+ /** The decision's originally requested `budget.timeoutMs` value (milliseconds). */
638
+ readonly requestedTimeoutMs: number;
639
+ /** The clamped child timeout actually applied (parent's remaining deadline, in milliseconds). */
640
+ readonly clampedTimeoutMs: number;
641
+ /** Discriminator for the clamp cause (currently always "exceeded-parent-remaining"). */
642
+ readonly reason: "exceeded-parent-remaining";
643
+ }
644
+ /**
645
+ * Event emitted when a delegated sub-run is enqueued because the
646
+ * coordinator's effective `maxConcurrentChildren` budget is fully in flight
647
+ * (Phase 3 D-07). Emitted ONLY when the slot is not immediately free —
648
+ * no-pressure runs do NOT emit this event.
649
+ *
650
+ * Three-event timeline under pressure: sub-run-queued → sub-run-started →
651
+ * sub-run-completed (or sub-run-failed). Without pressure: sub-run-started
652
+ * → completion (no queued event).
653
+ */
654
+ export interface SubRunQueuedEvent {
655
+ readonly type: "sub-run-queued";
656
+ readonly runId: string;
657
+ readonly parentRunIds?: readonly string[];
658
+ readonly at: string;
659
+ readonly childRunId: string;
660
+ readonly parentRunId: string;
661
+ readonly parentDecisionId: string;
662
+ readonly parentDecisionArrayIndex: number;
663
+ readonly protocol: ProtocolName;
664
+ readonly intent: string;
665
+ readonly depth: number;
666
+ readonly queuePosition: number;
667
+ }
668
+ /**
669
+ * Event emitted ONCE per run when the runtime detects a `"local"` provider
670
+ * in the coordinator's active tree and clamps `maxConcurrentChildren` to 1
671
+ * (Phase 3 CONCURRENCY-02 / D-12). Emitted at the FIRST delegate dispatch
672
+ * where the local-provider check trips. Subsequent dispatches in the same
673
+ * run do NOT re-emit. Runs with no delegates, or runs with delegates but
674
+ * no local provider, never emit this event.
675
+ *
676
+ * The clamp is silent (no throw, no console output) per D-13 — this event
677
+ * IS the warning surface; subscribers can react via the engine's `emit`
678
+ * callback.
679
+ */
680
+ export interface SubRunConcurrencyClampedEvent {
681
+ readonly type: "sub-run-concurrency-clamped";
682
+ readonly runId: string;
683
+ readonly parentRunIds?: readonly string[];
684
+ readonly at: string;
685
+ /** The pre-clamp effective max that would have applied (engine/run/decision min). */
686
+ readonly requestedMax: number;
687
+ /** Always 1 — locality-clamp is a fixed cap. */
688
+ readonly effectiveMax: 1;
689
+ readonly reason: "local-provider-detected";
690
+ /** Stable id of the FIRST local provider found during the active-tree walk. */
691
+ readonly providerId: string;
692
+ }
389
693
  /**
390
694
  * Successful coordination event emitted by Dogpile and persisted in traces.
391
695
  *
@@ -402,6 +706,11 @@ export interface FinalEvent {
402
706
  * - `tool-result`: one runtime tool invocation completed.
403
707
  * - `agent-turn`: one agent completed a prompt/response turn.
404
708
  * - `broadcast`: a broadcast round gathered independent contributions.
709
+ * - `sub-run-started`: a delegated sub-run was dispatched.
710
+ * - `sub-run-completed`: a delegated sub-run completed and embedded its full result.
711
+ * - `sub-run-failed`: a delegated sub-run failed before completion.
712
+ * - `sub-run-queued`: a delegated sub-run waited for a concurrency slot.
713
+ * - `sub-run-concurrency-clamped`: a local provider forced child concurrency to 1.
405
714
  * - `budget-stop`: a configured budget cap halted further model turns.
406
715
  * - `final`: the run completed and produced the final output.
407
716
  *
@@ -423,7 +732,7 @@ export interface FinalEvent {
423
732
  * }
424
733
  * ```
425
734
  */
426
- export type RunEvent = RoleAssignmentEvent | ModelRequestEvent | ModelResponseEvent | ModelOutputChunkEvent | ToolCallEvent | ToolResultEvent | TurnEvent | BroadcastEvent | BudgetStopEvent | FinalEvent;
735
+ export type RunEvent = RoleAssignmentEvent | ModelRequestEvent | ModelResponseEvent | ModelOutputChunkEvent | ToolCallEvent | ToolResultEvent | TurnEvent | BroadcastEvent | SubRunStartedEvent | SubRunCompletedEvent | SubRunFailedEvent | SubRunParentAbortedEvent | SubRunBudgetClampedEvent | SubRunQueuedEvent | SubRunConcurrencyClampedEvent | BudgetStopEvent | FinalEvent;
427
736
  /**
428
737
  * Model activity events yielded by `stream()` and persisted in traces when a
429
738
  * protocol exposes provider-call boundaries.
@@ -438,10 +747,22 @@ export type ToolActivityEvent = ToolCallEvent | ToolResultEvent;
438
747
  * Lifecycle event yielded by `stream()`.
439
748
  *
440
749
  * These events describe workflow coordination state rather than model text.
441
- * Role assignment establishes the participant roster, while `budget-stop`
442
- * records a lifecycle halt before the terminal completion event.
750
+ * Role assignment establishes the participant roster, `budget-stop` records a
751
+ * lifecycle halt before the terminal completion event, and the `sub-run-*`
752
+ * variants surface delegated child-run dispatch boundaries.
753
+ */
754
+ export type StreamLifecycleEvent = RoleAssignmentEvent | BudgetStopEvent | SubRunStartedEvent | SubRunCompletedEvent | SubRunFailedEvent | SubRunParentAbortedEvent | SubRunBudgetClampedEvent | SubRunQueuedEvent | SubRunConcurrencyClampedEvent | AbortedEvent;
755
+ /**
756
+ * Lifecycle event yielded by `stream()` when a run is aborted.
443
757
  */
444
- export type StreamLifecycleEvent = RoleAssignmentEvent | BudgetStopEvent;
758
+ export interface AbortedEvent {
759
+ readonly type: "aborted";
760
+ readonly runId: string;
761
+ readonly at: string;
762
+ readonly reason: "parent-aborted" | "timeout";
763
+ readonly detail?: JsonObject;
764
+ readonly parentRunIds?: readonly string[];
765
+ }
445
766
  /**
446
767
  * Output event yielded by `stream()`.
447
768
  *
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/types/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,WAAW,EACX,UAAU,EAIV,YAAY,EACZ,aAAa,EACb,sBAAsB,EAEtB,aAAa,EACb,mBAAmB,EAEnB,iBAAiB,EACjB,qBAAqB,EACtB,MAAM,aAAa,CAAC;AAGrB;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IACjC,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,2CAA2C;IAC3C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,gEAAgE;IAChE,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;IAC/B,0DAA0D;IAC1D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,8CAA8C;IAC9C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,0D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AAC;IACvB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,MAAM,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;IAC7B,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3C;AAED;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,SAAS,GAAG,cAAc,CAAC;AAEpG;;;;;;;;GAQG;AACH,MAAM,WAAW,gBAAgB;IAC/B,8CAA8C;IAC9C,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB,qFAAqF;IACrF,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iCAAiC;IACjC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,QAAQ,CAAC,MAAM,CAAC,EAAE,UAAU,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC;AAE/C;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,WAAW,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,gBAAgB,GAAG,qBAAqB,CAAC"}
@@ -80,7 +80,7 @@ export interface ReplayTraceBudgetStateChange {
80
80
  /**
81
81
  * Provider-neutral protocol decision kinds recorded for replay.
82
82
  */
83
- export type ReplayTraceProtocolDecisionType = "assign-role" | "select-agent-turn" | "start-model-call" | "complete-model-call" | "observe-model-output" | "start-tool-call" | "complete-tool-call" | "collect-broadcast-round" | "stop-for-budget" | "finalize-output";
83
+ export type ReplayTraceProtocolDecisionType = "assign-role" | "select-agent-turn" | "start-model-call" | "complete-model-call" | "observe-model-output" | "start-tool-call" | "complete-tool-call" | "collect-broadcast-round" | "stop-for-budget" | "finalize-output" | "start-sub-run" | "complete-sub-run" | "fail-sub-run" | "mark-sub-run-parent-aborted" | "mark-sub-run-budget-clamped" | "queue-sub-run" | "mark-sub-run-concurrency-clamped";
84
84
  /**
85
85
  * Protocol-level decision appended during execution.
86
86
  */
@@ -105,6 +105,10 @@ export interface ReplayTraceProtocolDecision {
105
105
  readonly callId?: string;
106
106
  /** Provider involved in the decision, when model-scoped. */
107
107
  readonly providerId?: string;
108
+ /** Child run involved in a delegated sub-run decision. */
109
+ readonly childRunId?: string;
110
+ /** FIFO queue position for sub-run queue decisions. */
111
+ readonly queuePosition?: number;
108
112
  /** Tool call involved in the decision, when tool-scoped. */
109
113
  readonly toolCallId?: string;
110
114
  /** Tool identity involved in the decision, when tool-scoped. */
@@ -1 +1 @@
1
- {"version":3,"file":"replay.d.ts","sourceRoot":"","sources":["../../src/types/replay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,oBAAoB,EACpB,IAAI,EACJ,cAAc,EACf,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,KAAK,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,kCAAkC;IAClC,QAAQ,CAAC,IAAI,EAAE,mBAAmB,CAAC;IACnC,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,CAAC;IACnC,uEAAuE;IACvE,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,uCAAuC;IACvC,QAAQ,CAAC,IAAI,EAAE,yBAAyB,CAAC;IACzC,gDAAgD;IAChD,QAAQ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