@tangle-network/agent-runtime 0.301.0 → 0.306.1

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 (85) hide show
  1. package/dist/{activation-V6aaOlZV.js → activation-C5wesfzd.js} +3 -3
  2. package/dist/{activation-V6aaOlZV.js.map → activation-C5wesfzd.js.map} +1 -1
  3. package/dist/{activation-CRgEJutr.d.ts → activation-wZ-8vOjV.d.ts} +88 -13
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{bundle-C9v5TH_H.js → bundle-C8EO05u3.js} +2 -2
  7. package/dist/{bundle-C9v5TH_H.js.map → bundle-C8EO05u3.js.map} +1 -1
  8. package/dist/candidate-execution/index.d.ts +3 -26
  9. package/dist/candidate-execution/index.js +6 -6
  10. package/dist/{coordination-driver-vNrdQBSH.js → coordination-driver-yj9HPXef.js} +9 -16
  11. package/dist/coordination-driver-yj9HPXef.js.map +1 -0
  12. package/dist/{delegate-B-jFJcbW.js → delegate-KtrL9HWq.js} +2 -2
  13. package/dist/{delegate-B-jFJcbW.js.map → delegate-KtrL9HWq.js.map} +1 -1
  14. package/dist/durable.d.ts +3 -15
  15. package/dist/durable.js +158 -124
  16. package/dist/durable.js.map +1 -1
  17. package/dist/{graph-Dwv_hQB_.js → graph-DcdyHbgf.js} +4 -5
  18. package/dist/graph-DcdyHbgf.js.map +1 -0
  19. package/dist/{improvement-cycle-Cf37Kexd.js → improvement-cycle-DsN-TVXR.js} +1129 -10
  20. package/dist/improvement-cycle-DsN-TVXR.js.map +1 -0
  21. package/dist/{index-CxBVmgqL.d.ts → index-DflDZq_I.d.ts} +50 -688
  22. package/dist/index.d.ts +378 -12
  23. package/dist/index.js +223 -320
  24. package/dist/index.js.map +1 -1
  25. package/dist/intelligence.d.ts +5 -5
  26. package/dist/intelligence.js +7 -8
  27. package/dist/intelligence.js.map +1 -1
  28. package/dist/kernel.d.ts +4 -4
  29. package/dist/kernel.js +9 -9
  30. package/dist/{loop-runner-bin-DiTNiJNs.d.ts → loop-runner-bin-DZfRUVWy.d.ts} +3 -3
  31. package/dist/{loop-runner-bin-C8MI8N1A.js → loop-runner-bin-rVrSX5l1.js} +3 -3
  32. package/dist/{loop-runner-bin-C8MI8N1A.js.map → loop-runner-bin-rVrSX5l1.js.map} +1 -1
  33. package/dist/loop-runner-bin.d.ts +1 -1
  34. package/dist/loop-runner-bin.js +1 -1
  35. package/dist/mcp/bin.js +3 -3
  36. package/dist/mcp/index.d.ts +6 -35
  37. package/dist/mcp/index.js +311 -364
  38. package/dist/mcp/index.js.map +1 -1
  39. package/dist/model-policy-DydyWTQg.js.map +1 -1
  40. package/dist/{openai-tools-BeogJ6V8.d.ts → openai-tools-YO30D2s3.d.ts} +2 -2
  41. package/dist/{prepare-CGVNMb1o.js → prepare--nWcazPr.js} +7 -13
  42. package/dist/prepare--nWcazPr.js.map +1 -0
  43. package/dist/{profile-BetOB4_Q.js → profile-h04LDjV6.js} +2 -2
  44. package/dist/{profile-BetOB4_Q.js.map → profile-h04LDjV6.js.map} +1 -1
  45. package/dist/profiles.d.ts +2 -94
  46. package/dist/profiles.js +2 -451
  47. package/dist/profiles.js.map +1 -1
  48. package/dist/{protected-model-port-CAa0t1MT.d.ts → protected-model-port-C9QtEf3y.d.ts} +2 -2
  49. package/dist/{protected-model-port-CuVHkhti.js → protected-model-port-wwalbyXM.js} +4 -4
  50. package/dist/{protected-model-port-CuVHkhti.js.map → protected-model-port-wwalbyXM.js.map} +1 -1
  51. package/dist/{provision-supervisor-CS0fBIhp.js → provision-supervisor-WxFEFQeJ.js} +4 -3
  52. package/dist/{provision-supervisor-CS0fBIhp.js.map → provision-supervisor-WxFEFQeJ.js.map} +1 -1
  53. package/dist/{runtime-6VPSJVeg.js → runtime-B9eBIyws.js} +67 -469
  54. package/dist/runtime-B9eBIyws.js.map +1 -0
  55. package/dist/{search-method-wTTS7mGG.js → search-executor-2tWr38Qw.js} +239 -1132
  56. package/dist/search-executor-2tWr38Qw.js.map +1 -0
  57. package/dist/{server-BfHD5iLD.js → server-CpKcrOPj.js} +5 -12
  58. package/dist/server-CpKcrOPj.js.map +1 -0
  59. package/dist/{stream-agent-turn-B1ipFtOc.d.ts → stream-agent-turn-B1giFgOg.d.ts} +2 -2
  60. package/dist/{substrate-DKBMd0Dl.d.ts → substrate-L_sC7jCD.d.ts} +2 -2
  61. package/dist/{supervise-BJrEC2Mh.js → supervise-DllOHM4M.js} +14 -24
  62. package/dist/supervise-DllOHM4M.js.map +1 -0
  63. package/dist/{supervisor-DA_nvF-h.js → supervisor-gCfG6K1-.js} +488 -1407
  64. package/dist/supervisor-gCfG6K1-.js.map +1 -0
  65. package/dist/testing.d.ts +2 -2
  66. package/dist/testing.js +14 -14
  67. package/dist/tui/index.d.ts +1 -1
  68. package/dist/tui/index.js +1 -1
  69. package/dist/{types-jD9mNnJM.d.ts → types-DeuEkBhI.d.ts} +114 -258
  70. package/dist/{workspace-archive-pz8YJ1fr.d.ts → workspace-streams-CpSmt3zx.d.ts} +67 -3
  71. package/dist/{workspace-streams-D5gHJdTb.js → workspace-streams-ILw0eWZ0.js} +694 -2
  72. package/dist/workspace-streams-ILw0eWZ0.js.map +1 -0
  73. package/package.json +8 -8
  74. package/skills/generate-eval/SKILL.md +1 -1
  75. package/skills/profile-authoring/SKILL.md +2 -2
  76. package/dist/coordination-driver-vNrdQBSH.js.map +0 -1
  77. package/dist/graph-Dwv_hQB_.js.map +0 -1
  78. package/dist/improvement-cycle-Cf37Kexd.js.map +0 -1
  79. package/dist/prepare-CGVNMb1o.js.map +0 -1
  80. package/dist/runtime-6VPSJVeg.js.map +0 -1
  81. package/dist/search-method-wTTS7mGG.js.map +0 -1
  82. package/dist/server-BfHD5iLD.js.map +0 -1
  83. package/dist/supervise-BJrEC2Mh.js.map +0 -1
  84. package/dist/supervisor-DA_nvF-h.js.map +0 -1
  85. package/dist/workspace-streams-D5gHJdTb.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  import { l as RuntimeHooks } from "./runtime-hooks-Bj6wJHlH.js";
2
- import { c as AgentCandidateArtifactPort, t as AgentCandidateWorkspaceArchiveLimits } from "./workspace-archive-pz8YJ1fr.js";
2
+ import { g as AgentCandidateArtifactPort, l as AgentCandidateWorkspaceArchiveLimits, n as AgentCandidateWorkspaceTree } from "./workspace-streams-CpSmt3zx.js";
3
3
  import { AgentCandidateArtifactRef, AgentCandidateWorkspaceSnapshotEvidence, AgentExactRunControlRef, AgentInteractiveSession, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStatus, AgentNativeContextContinuationOptions, AgentNativeContextContinuationResult, AgentProfile, AgentSessionStatus, AgentTurnResult, ChildTaskEvent, ContextTransferRequest, HarnessType, InputPart, InteractionAcknowledgement, InteractionRequest, InteractionResponseCommand, NativeContextBoundaryProof, NativeContextContinuationRequest, NativeContextContinuationTurn, RequestedInteractions, RuntimeEventEnvelope, Sha256Digest, StreamEvent, WorkspaceCheckpointRef, WorkspaceCheckpointRequest } from "@tangle-network/agent-interface";
4
4
  import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, DefaultVerdict, DefaultVerdict as DefaultVerdict$1, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, NotFoundError, RunRecord, ToolSpan, TraceAnalysisStore, TraceStore, UserQuestion, ValidationError } from "@tangle-network/agent-eval";
5
5
  import { AgentRunOutcome } from "@tangle-network/sandbox/runtime";
@@ -991,21 +991,6 @@ interface LoopResult<Task, Output, Decision> {
991
991
  interface SandboxClient {
992
992
  create(options?: CreateSandboxOptions, requestOptions?: CreateRequestOptions): Promise<SandboxInstance>;
993
993
  describePlacement?(box: SandboxInstance): LoopSandboxPlacement;
994
- /**
995
- * Optional legacy CRIU capability probe. When present and it resolves
996
- * `{ available: true }`, the loop's `lineage.fork` seam may checkpoint and fork
997
- * a parent box when live `branch(count)` is unavailable. Current Sandbox boxes
998
- * expose live branching directly. The kernel reads this ONLY through the
999
- * capability probe — it never branches on backend kind.
1000
- * The raw `Sandbox` SDK class satisfies it; the loop's test fakes omit it
1001
- * (⇒ `canFork = false`).
1002
- * @experimental
1003
- */
1004
- criuStatus?(): Promise<{
1005
- available: boolean;
1006
- criuVersion?: string;
1007
- reason?: string;
1008
- }>;
1009
994
  }
1010
995
  /**
1011
996
  * Opt-in box-lineage controls for `runAgentRounds`. Default OFF — with both flags
@@ -1791,20 +1776,24 @@ interface RecoverRetainedRunOptions {
1791
1776
  readonly now?: () => number;
1792
1777
  }
1793
1778
  /**
1794
- * Outcome of one recovery attempt from pre-dispatch admission coordinates.
1779
+ * Outcome of one recovery attempt.
1795
1780
  *
1796
- * `not_found`: the provider no longer holds the environment; nothing remains
1797
- * to destroy. `recovered`: the provider self-identified the session with a
1798
- * strict exact reference matching the recorded coordinates. `unverifiable`:
1799
- * the environment exists but the provider cannot self-identify the session;
1800
- * never destroy on this outcome — keep the environment, retry
1801
- * `reconnectRetainedRun` with a dispatched admission record, or inspect it
1802
- * with provider-native tools.
1781
+ * `recovered` with `via: 'reattached'`: the provider self-identified the
1782
+ * original session with a strict exact reference matching the recorded
1783
+ * environment coordinates. `recovered` with `via: 'resumed'`: a pre-create
1784
+ * intent was replayed through the exact, idempotent create and dispatch; the
1785
+ * handle controls the admitted run, whether this call or the crashed one
1786
+ * dispatched it. `not_found`: the provider no longer holds the environment;
1787
+ * nothing remains to destroy. `unverifiable`: the environment exists but the
1788
+ * provider cannot self-identify the session. Never destroy on this outcome:
1789
+ * keep the environment, retry `reconnectRetainedRun` with a dispatched
1790
+ * admission record, or inspect it with provider-native tools.
1803
1791
  *
1804
1792
  * @stable
1805
1793
  */
1806
1794
  type RecoverRetainedRunResult = {
1807
1795
  readonly outcome: 'recovered';
1796
+ readonly via: 'reattached' | 'resumed';
1808
1797
  readonly handle: RetainedRunHandle;
1809
1798
  } | {
1810
1799
  readonly outcome: 'not_found';
@@ -2273,11 +2262,6 @@ interface ContinuationNoteInput {
2273
2262
  /** Whether the check's score comes from cases the director cannot see. */
2274
2263
  readonly sealed?: boolean;
2275
2264
  }
2276
- /**
2277
- * Write one continuation note, sections 1 to 8 of docs/38. Section 9, the run's state, is
2278
- * `composeReentryTask`, which wraps this text. Pure: the same input writes the same note.
2279
- */
2280
- declare function composeContinuationNote(input: ContinuationNoteInput): string;
2281
2265
  /** One continuation as the settle record carries it (`DriverContinuationRecord.continuations`). */
2282
2266
  interface ContinuationEntry {
2283
2267
  /** 1-based. */
@@ -2314,9 +2298,6 @@ interface VerdictSummary {
2314
2298
  readonly failed?: number;
2315
2299
  readonly total?: number;
2316
2300
  }
2317
- /** A run directory's continuation files: the root's at `<runDir>/continuations/<n>/`, a nested
2318
- * manager's at `<runDir>/continuations/managers/<owner>/<n>/`. */
2319
- declare const CONTINUATIONS_DIR = "continuations";
2320
2301
  /** The readout a continuation is composed from. */
2321
2302
  interface ContinuationContext {
2322
2303
  /** The attempt that just completed, 1-based. */
@@ -2602,6 +2583,23 @@ interface ProviderWorkspaceRetentionPort {
2602
2583
  * Its captures use their own queue and bound, so they never wait behind workspace captures.
2603
2584
  */
2604
2585
  captureNative?(context: ProviderWorkspaceRetentionContext): Promise<ProviderWorkspaceCaptureResult>;
2586
+ /**
2587
+ * Store one workspace checkpoint's files in the run's content-addressed store, before Runtime
2588
+ * deletes the checkpoint. Return what `captureAgentCandidateWorkspaceTreeToArtifacts` returns
2589
+ * for the files the environment holds, written to {@link artifacts}.
2590
+ *
2591
+ * A checkpoint is a provider snapshot that Runtime takes while a director works and deletes
2592
+ * once two newer ones exist. Its files are read from a fork Runtime creates from the snapshot
2593
+ * for this call alone: the fork holds exactly the checkpoint's workspace and runs no harness,
2594
+ * so the capture has no session to copy. Runtime verifies the tree against the store and the
2595
+ * checkpoint's marker file, journals its digest, and destroys the fork. Without this method, or
2596
+ * when a capture fails, Runtime keeps the checkpoint: on Discovery Lab run
2597
+ * terraform-dc-tokens-20261006d, 76 of the first 101 checkpoint deletions removed the only copy
2598
+ * of a director's workspace at that moment.
2599
+ *
2600
+ * Captures run on their own queue of {@link maxConcurrentCaptures} slots, under {@link timeoutMs}.
2601
+ */
2602
+ captureCheckpoint?(context: ProviderCheckpointCaptureContext): Promise<AgentCandidateWorkspaceTree>;
2605
2603
  /** Milliseconds between native captures of a running turn. Default 120,000. */
2606
2604
  readonly nativeIntervalMs?: number;
2607
2605
  /** Bound on one native capture, including its queue wait. Default 120,000. */
@@ -2749,6 +2747,20 @@ interface ProviderWorkspaceRetentionContext {
2749
2747
  /** A fresh signal bounded by {@link ProviderWorkspaceRetentionPort.timeoutMs}. */
2750
2748
  readonly signal: AbortSignal;
2751
2749
  }
2750
+ /** What {@link ProviderWorkspaceRetentionPort.captureCheckpoint} receives. */
2751
+ interface ProviderCheckpointCaptureContext {
2752
+ /** A fork of the checkpoint, created for this capture alone. It holds the checkpoint's
2753
+ * workspace and runs no harness. */
2754
+ readonly environment: AgentEnvironment;
2755
+ /** The checkpoint the fork was created from. */
2756
+ readonly checkpoint: WorkspaceCheckpointRef;
2757
+ /** Runtime artifact identity of this capture: `<node>:checkpoint:<checkpoint id>`. */
2758
+ readonly executionId: string;
2759
+ /** The owner's profile; its harness names what the fork's source ran. */
2760
+ readonly profile: AgentProfile;
2761
+ /** A fresh signal bounded by {@link ProviderWorkspaceRetentionPort.timeoutMs}. */
2762
+ readonly signal: AbortSignal;
2763
+ }
2752
2764
  /** Durable join from one provider box to the verified bytes retained before cleanup. */
2753
2765
  interface ProviderWorkspaceCaptureReceipt {
2754
2766
  readonly executionId: string;
@@ -3295,148 +3307,6 @@ declare function sandboxSessionTraceSource(box: SessionTraceBox, sessionId: stri
3295
3307
  now?: () => number;
3296
3308
  }): TraceSource;
3297
3309
  //#endregion
3298
- //#region src/runtime/supervise/wait.d.ts
3299
- /**
3300
- *
3301
- * WAIT-STATES — a supervision-tree node that waits on wall-clock time or an external condition
3302
- * without holding a worker, an executor, a sandbox, or a single LLM turn.
3303
- *
3304
- * A long-horizon run spends most of its wall-clock NOT computing: waiting for CI to finish,
3305
- * for a nightly job to land, for a human to reply, for a rate-limit window to reopen. Before
3306
- * this, the only way to express that was to keep something alive and re-ask — which spends
3307
- * driver tokens per re-ask and pins a process to the wait.
3308
- *
3309
- * Two node kinds, both first-class:
3310
- * - `timer` — wake at an ABSOLUTE wall-clock instant (`untilMs`).
3311
- * - `poll` — re-run a named predicate every `intervalMs` until it returns true, or until an
3312
- * absolute `timeoutAtMs` passes (CI status, file existence, an HTTP probe, an
3313
- * inbox message).
3314
- *
3315
- * ── How this differs from a manager's wake (`./wake`) ──
3316
- *
3317
- * They look similar and are not the same mechanism. A wake is an IN-RUN RENDEZVOUS: a manager
3318
- * that ends its turn with work open is resumed when the coordination bus delivers its next event.
3319
- * It costs no model turn, but it lives in a process that must stay up, and nothing about that
3320
- * wait is recorded: kill the process and the wait is simply gone.
3321
- *
3322
- * A wait-state is a NODE, not a call. It has a node id in the tree, a journal record carrying its
3323
- * ABSOLUTE deadline, and it settles through the same `Scope.next()` cursor as any worker. Nobody
3324
- * is blocked on it — the driver can stop reasoning entirely, and the process can die. Cost while
3325
- * waiting: zero LLM calls, zero executor, zero sandbox, zero conserved budget (a wait reserves
3326
- * nothing from the pool). The only in-process residue is one timer entry.
3327
- *
3328
- * ── Why probes are NAMED, not passed as closures ────────────────────────────────────────────
3329
- *
3330
- * A wait must survive a process restart with its original deadline intact, and a closure cannot
3331
- * be journaled. So a `poll` names its predicate (`probe: 'ci-green'`) and the run resolves it
3332
- * through a `WaitProbeRegistry`. A brand-new process re-resolves the SAME name against its own
3333
- * registry and re-arms the wait — which is what makes "kill the box, the wait keeps waiting"
3334
- * true rather than aspirational.
3335
- *
3336
- * Absolute instants for the same reason: `untilMs` / `timeoutAtMs` are epoch ms, not durations,
3337
- * so a resumed wait counts down from the original arm, not from the restart. `timerAt`/`pollFor`
3338
- * build them from a duration when that is what the caller has.
3339
- *
3340
- * @experimental
3341
- */
3342
- /** What a wait node is waiting for. Both variants carry ABSOLUTE epoch-ms instants so a wait
3343
- * re-armed by a later process keeps the deadline the first process set. */
3344
- type WaitSpec = {
3345
- readonly kind: 'timer';
3346
- /** Absolute epoch ms to wake at. A past instant fires immediately. */
3347
- readonly untilMs: number;
3348
- } | {
3349
- /** A graph-engine suspension: the host holds the content-addressed token and wakes it via
3350
- * `resume`/`expire`; the engine owns the transition table (agent-runtime#976). */
3351
- readonly kind: 'token';
3352
- readonly token: string;
3353
- /** Absent ⇒ `onExpire: 'wait'` (never expires). */
3354
- readonly expiresAtMs?: number;
3355
- readonly onExpire: 'wait' | 'fail' | 'default';
3356
- /** `onExpire: 'default'`: the pre-admitted payload the expiry resolves with. */
3357
- readonly defaultRef?: string;
3358
- } | {
3359
- readonly kind: 'poll';
3360
- /** Name of the predicate in the run's `WaitProbeRegistry`. Named (not a closure) so a
3361
- * resumed process can re-resolve it — see the module header. */
3362
- readonly probe: string;
3363
- /** How often to re-run the predicate, in ms. Must be > 0. */
3364
- readonly intervalMs: number;
3365
- /** Absolute epoch ms after which an unfired poll settles `timeout`. Omit = no timeout
3366
- * (then the run's own deadline is the only bound, and a run WITH a deadline refuses an
3367
- * unbounded poll — see `assertWaitWithinDeadline`). */
3368
- readonly timeoutAtMs?: number;
3369
- /** Opaque JSON handed to the probe on every check. Journaled with the spec, so a resumed
3370
- * probe gets the same arguments. */
3371
- readonly args?: Record<string, unknown>;
3372
- };
3373
- /** Build a `timer` spec from a DURATION. The instant is resolved once, at arm time — a resumed
3374
- * wait re-uses the journaled instant, never a fresh `now + ms`. */
3375
- declare function timerAt(ms: number, now: number): WaitSpec;
3376
- /** Build a bounded `poll` spec from a duration. */
3377
- declare function pollFor(probe: string, opts: {
3378
- readonly intervalMs: number;
3379
- readonly timeoutMs?: number;
3380
- readonly args?: Record<string, unknown>;
3381
- }, now: number): WaitSpec;
3382
- /**
3383
- * A named predicate a `poll` node re-checks. Returns true when the condition it watches has
3384
- * flipped. A throw is treated as "not yet" (an unreachable CI endpoint is not a settled answer),
3385
- * and is counted in the outcome's `probeErrors` so a probe that never works is visible rather
3386
- * than silently polling forever.
3387
- */
3388
- type WaitProbe = (args: Record<string, unknown> | undefined, signal: AbortSignal) => boolean | Promise<boolean>;
3389
- /** Resolves a `poll` spec's `probe` name to its predicate. Threaded through `SupervisorOpts` so
3390
- * the SAME registry a fresh run used is what a resumed run re-resolves against. */
3391
- interface WaitProbeRegistry {
3392
- resolve(name: string): WaitProbe | undefined;
3393
- }
3394
- /** Registry over a plain name→predicate record. */
3395
- declare function createWaitProbes(entries: Record<string, WaitProbe>): WaitProbeRegistry;
3396
- /** The `out` a settled wait node delivers through `Scope.next()`. `settled` is the outcome the
3397
- * caller branches on: `'fired'` = the timer reached its instant or the predicate flipped;
3398
- * `'timeout'` = a bounded poll gave up. A timeout is a first-class ANSWER, not a failure — a
3399
- * wait only settles `down` when it is cancelled or aborted. */
3400
- interface WaitOutcome {
3401
- /** Tag for `isWaitOutcome` — a wait outcome arrives on the same cursor as worker outputs. */
3402
- readonly waitOutcome: true;
3403
- readonly kind: WaitSpec['kind'];
3404
- readonly settled: 'fired' | 'timeout';
3405
- readonly label: string;
3406
- /** The absolute instant this wait was armed for (timer `untilMs` / poll `timeoutAtMs`); absent
3407
- * for an unbounded poll. */
3408
- readonly untilMs?: number;
3409
- /** Epoch ms the wait was FIRST armed — preserved across a resume, so `wokenAt - armedAt` is
3410
- * the true end-to-end wait even when it spanned several processes. */
3411
- readonly armedAt: number;
3412
- readonly wokenAt: number;
3413
- /** Predicate checks performed in the process that settled it (a resume restarts this count). */
3414
- readonly polls: number;
3415
- /** Probe checks that threw (counted, not fatal). */
3416
- readonly probeErrors: number;
3417
- /** True when a later process re-armed this wait from the journal instead of creating it. */
3418
- readonly resumed: boolean;
3419
- }
3420
- /** Narrow a settlement's `out` to a wait outcome — a wait settles on the SAME cursor as workers,
3421
- * so a driver that mixes them tags them apart with this. */
3422
- declare function isWaitOutcome(value: unknown): value is WaitOutcome;
3423
- /** A wait recorded in the journal that never woke — what a resumed run re-arms. */
3424
- interface PendingWait {
3425
- readonly id: string;
3426
- readonly label: string;
3427
- readonly spec: WaitSpec;
3428
- /** The ORIGINAL arm instant. A re-armed wait keeps it, so its deadline never slides. */
3429
- readonly armedAt: number;
3430
- /** The wait ordinal in its parent scope, so a resumed scope continues past it. */
3431
- readonly ordinal: number;
3432
- }
3433
- /** Reject reasons for `Scope.wait`, mirroring `Scope.spawn`'s fail-closed admission shape. */
3434
- type WaitRejection = 'invalid-spec' | 'unknown-probe' | 'deadline-exceeded';
3435
- /** The absolute instant a spec is bounded by, or `undefined` for an unbounded wait. */
3436
- declare function waitUntil(spec: WaitSpec): number | undefined;
3437
- /** Structural validation, independent of the run. Returns null when the spec is usable. */
3438
- declare function validateWaitSpec(spec: WaitSpec): string | null;
3439
- //#endregion
3440
3310
  //#region src/sanitize.d.ts
3441
3311
  /** @stable */
3442
3312
  interface RuntimeTelemetryOptions {
@@ -3837,12 +3707,6 @@ declare function workerTraceEnv(ctx: WorkerTraceSeamCarrier): Record<string, str
3837
3707
  declare function workerTraceHeaders(ctx: WorkerTraceSeamCarrier): Record<string, string>;
3838
3708
  //#endregion
3839
3709
  //#region src/runtime/supervise/types.d.ts
3840
- /** Options for `Scope.wait`. `label` is the wait's identity within its parent scope — it is what
3841
- * a resumed run matches to re-adopt a journaled, still-unfired wait, so it must be stable across
3842
- * processes (a label derived from wall-clock would resume as a NEW wait). */
3843
- interface WaitOpts {
3844
- readonly label: string;
3845
- }
3846
3710
  /**
3847
3711
  * One self-similar atom. A leaf is an `Agent` that never calls `scope.spawn`; a driver
3848
3712
  * is an `Agent` whose `act` spawns children and reacts to them via `scope.next()`. An
@@ -4065,7 +3929,7 @@ interface Executor<Out> {
4065
3929
  resultAccepted?(): boolean;
4066
3930
  }
4067
3931
  /** Why Runtime cannot provide structured tool-call evidence for one settled execution. */
4068
- type WorkerTraceUnavailableReason = 'execution-did-not-start' | 'executor-did-not-expose-trace-source' | 'trace-source-unavailable' | 'no-tool-spans-captured' | 'invalid-tool-spans' | 'trace-collection-failed' | 'trace-persistence-failed' | 'legacy-settlement-without-trace-evidence' | 'not-an-executor';
3932
+ type WorkerTraceUnavailableReason = 'execution-did-not-start' | 'executor-did-not-expose-trace-source' | 'trace-source-unavailable' | 'no-tool-spans-captured' | 'invalid-tool-spans' | 'trace-collection-failed' | 'trace-persistence-failed' | 'legacy-settlement-without-trace-evidence';
4069
3933
  /** Durable proof of a worker's structured tool trace, or the exact reason it is unavailable. */
4070
3934
  type WorkerTraceEvidence = {
4071
3935
  readonly status: 'available';
@@ -4080,7 +3944,7 @@ type WorkerTraceEvidence = {
4080
3944
  type WorkerInteractiveUnavailableReason =
4081
3945
  /** No child of this scope carries that node id. */
4082
3946
  'unknown-node' |
4083
- /** The child settled, was cancelled, or is a wait-state node: there is no process to attach to. */
3947
+ /** The child settled or was cancelled: there is no process to attach to. */
4084
3948
  'not-live' |
4085
3949
  /** The worker runs headless. Its executor exposes no interactive session, so there is no
4086
3950
  * terminal — a headless execution is never converted into an attachment. */
@@ -4642,11 +4506,8 @@ interface Spend {
4642
4506
  /** `'queued'` is an admitted child that holds its budget slice and waits for a worker slot
4643
4507
  * (`workerSlots`); it runs nothing until the allocator grants one. `'acquiring'` is first-class
4644
4508
  * (M1): a node spends real time + reaps an orphan box during sandbox acquire BEFORE it is
4645
- * `running`, so abort must be defined over it.
4646
- * `'waiting'` is first-class for the opposite reason: a wait-state node holds NO executor, NO
4647
- * box, and no conserved budget — it is neither in flight nor settled, so neither `inFlight` nor
4648
- * a terminal status describes it (see `Scope.wait`). */
4649
- type NodeStatus = 'pending' | 'queued' | 'acquiring' | 'running' | 'waiting' | 'done' | 'failed' | 'cancelled';
4509
+ * `running`, so abort must be defined over it. */
4510
+ type NodeStatus = 'pending' | 'queued' | 'acquiring' | 'running' | 'done' | 'failed' | 'cancelled';
4650
4511
  /** Deterministic node id — `${parent}:s${seq}` from the cursor order, never wall-clock. */
4651
4512
  type NodeId = string;
4652
4513
  interface SpawnOpts {
@@ -4887,31 +4748,6 @@ interface Scope<Out> {
4887
4748
  * is a direct call; the sandbox/Agent-Bus transports surface the SAME verb as an MCP tool.
4888
4749
  */
4889
4750
  send(nodeId: NodeId, msg: unknown): boolean;
4890
- /**
4891
- * Arm a WAIT-STATE node: a first-class tree node that waits on wall-clock time (`timer`) or on
4892
- * a named external predicate (`poll`) and settles through THIS scope's `next()` cursor like any
4893
- * other child — but holds no executor, no sandbox, and no conserved budget. Waiting costs zero
4894
- * tokens and zero dollars by construction.
4895
- *
4896
- * It is journaled (`waiting` → `woken`) with its ABSOLUTE deadline, so a run that dies mid-wait
4897
- * resumes still waiting: the supervisor surfaces the un-woken waits on `Scope.resume.waits`, and
4898
- * re-arming the same `label` adopts the recorded node id and original instant instead of
4899
- * restarting the countdown.
4900
- *
4901
- * Fail-closed admission, mirroring `spawn`: `invalid-spec`, `unknown-probe` (a `poll` naming a
4902
- * predicate this run's registry cannot resolve), or `deadline-exceeded` (the wait would outlive
4903
- * the pool's hard wall-clock ceiling — a wait never extends a budget guard).
4904
- *
4905
- * NOT a manager's wake: that is an in-run rendezvous on the coordination bus in a process that
4906
- * must stay up, and nothing about it survives a restart. See `supervise/wait.ts`.
4907
- */
4908
- wait(spec: WaitSpec, opts: WaitOpts): {
4909
- ok: true;
4910
- handle: Handle<WaitOutcome>;
4911
- } | {
4912
- ok: false;
4913
- reason: WaitRejection;
4914
- };
4915
4751
  /**
4916
4752
  * The LIVE read-model of one child, valid WHILE it runs: last-activity timestamp, idle time,
4917
4753
  * a derived `stalled` flag, tokens/turns spent so far, whether a steer can even reach it
@@ -5023,13 +4859,6 @@ interface UnconfirmedTeardown {
5023
4859
  interface ResumedWork<Out> {
5024
4860
  readonly settled: ReadonlyArray<Settled<Out>>;
5025
4861
  readonly view: TreeView;
5026
- /**
5027
- * Wait-state nodes the journal shows as ARMED but never woken — the run died mid-wait. Each
5028
- * carries the ORIGINAL arm instant and absolute deadline, so re-arming the same `label` through
5029
- * `Scope.wait` resumes the countdown instead of restarting it. Empty on a fresh run and on a
5030
- * resumed run that was not waiting.
5031
- */
5032
- readonly waits: ReadonlyArray<PendingWait>;
5033
4862
  /**
5034
4863
  * Keyed assignments from the prior journal: `SpawnOpts.key` → what the journal proves about it.
5035
4864
  * `completed`/`down` carry the rehydrated settlement; `in-doubt` means the spawn was journaled
@@ -5122,10 +4951,6 @@ interface TreeView {
5122
4951
  readonly nodes: ReadonlyArray<NodeSnapshot>;
5123
4952
  /** Count of nodes in `queued`, `acquiring`, or `running` — the "what's in flow?" answer. */
5124
4953
  readonly inFlight: number;
5125
- /** Count of nodes in `waiting` — armed wait-states. Deliberately NOT folded into `inFlight`:
5126
- * a wait burns no executor and no budget, so counting it as flow would misreport both idle
5127
- * capacity and how much work is actually running. */
5128
- readonly waiting: number;
5129
4954
  }
5130
4955
  /** Journaled spawn-tree events (B1/B2). `seq` is the cursor order; `at` is an ISO
5131
4956
  * timestamp for human inspection only (NOT a replay input). */
@@ -5329,33 +5154,6 @@ type SpawnEvent = {
5329
5154
  instance: string;
5330
5155
  seq: number;
5331
5156
  at: string;
5332
- } | {
5333
- /** A wait-state node was ARMED. Lives in the SPAWN-ORDINAL namespace (`seq` is the wait
5334
- * ordinal within its parent scope), exactly like `spawned` — it creates a node, it does not
5335
- * settle one. It carries the whole `spec` and the original `armedAt` so a brand-new process
5336
- * re-arms the identical wait with the identical ABSOLUTE deadline. */
5337
- kind: 'waiting';
5338
- id: NodeId;
5339
- parent?: NodeId;
5340
- label: string;
5341
- spec: WaitSpec;
5342
- armedAt: number;
5343
- seq: number;
5344
- at: string;
5345
- } | {
5346
- /** A wait-state node SETTLED — the cursor-namespace twin of `settled`, kept distinct so a
5347
- * reader can tell zero-cost waiting apart from paid work without inspecting payloads. A
5348
- * wait carries no `spent` (it is free by construction, not by measurement); `outRef`
5349
- * rehydrates its `WaitOutcome`, absent when the wait was cancelled. */
5350
- kind: 'woken';
5351
- id: NodeId;
5352
- /** `expired`: a graph suspension whose `onExpire: 'fail'` deadline passed — distinct from
5353
- * `timeout` (a poll wait's own deadline), so a consumer can tell "the human never
5354
- * answered" from "the probe never fired". */
5355
- by: 'fired' | 'timeout' | 'cancelled' | 'expired';
5356
- outRef?: string;
5357
- seq: number;
5358
- at: string;
5359
5157
  } | {
5360
5158
  /** A driver's OWN inference spend, journaled separately from spawned-child work — the journal
5361
5159
  * TWIN of `BudgetPool.observe`, exactly as `settled` is the twin of `reconcile`. So every
@@ -5540,15 +5338,77 @@ type SpawnEvent = {
5540
5338
  marker?: WorkspaceCheckpointMarker;
5541
5339
  seq: number;
5542
5340
  at: string;
5341
+ } | {
5342
+ /** Runtime is about to ask the provider for a fork of a checkpoint, to read its files. The
5343
+ * record comes first, so a fork that a crash left alive is found by this key and destroyed
5344
+ * at the owner's release. Informational, like `workspace-checkpoint`. */
5345
+ kind: 'workspace-checkpoint-fork-requested';
5346
+ id: NodeId;
5347
+ provider: string;
5348
+ /** The environment the checkpoint was taken from. */
5349
+ environmentId: string;
5350
+ checkpointId: string;
5351
+ idempotencyKey: string;
5352
+ requestDigest: Sha256Digest;
5353
+ seq: number;
5354
+ at: string;
5355
+ } | {
5356
+ /** Whether the provider confirmed destroying a checkpoint capture's fork. A fork without a
5357
+ * `destroyed` record is asked for again at the owner's release. Informational, like
5358
+ * `workspace-checkpoint`. */
5359
+ kind: 'workspace-checkpoint-fork-teardown';
5360
+ id: NodeId;
5361
+ provider: string;
5362
+ /** The environment the checkpoint was taken from. */
5363
+ environmentId: string;
5364
+ checkpointId: string;
5365
+ fork: {
5366
+ idempotencyKey: string;
5367
+ environmentId: string;
5368
+ };
5369
+ destroyed: boolean;
5370
+ seq: number;
5371
+ at: string;
5372
+ } | {
5373
+ /** A checkpoint's files, read from a fork of it, stored in the run's content-addressed
5374
+ * store as a tree before the checkpoint may be deleted. `tree.digest` names the manifest;
5375
+ * every file it lists is an object of the same store. Informational, like
5376
+ * `workspace-checkpoint`. */
5377
+ kind: 'workspace-checkpoint-capture';
5378
+ id: NodeId;
5379
+ provider: string;
5380
+ /** The environment the checkpoint was taken from. */
5381
+ environmentId: string;
5382
+ checkpointId: string;
5383
+ /** The fork the capture read, by its request key and environment; destroyed once this
5384
+ * record is written. */
5385
+ fork: {
5386
+ idempotencyKey: string;
5387
+ environmentId: string;
5388
+ };
5389
+ tree: {
5390
+ digest: Sha256Digest;
5391
+ manifest: AgentCandidateArtifactRef;
5392
+ files: number;
5393
+ bytes: number;
5394
+ storedBytes: number;
5395
+ };
5396
+ seq: number;
5397
+ at: string;
5543
5398
  } | {
5544
5399
  /** Exact checkpoint cleanup outcome; unconfirmed resources remain pending across resume.
5545
- * Informational, like `workspace-checkpoint`. */
5400
+ * `capturedDigest` is the tree of the checkpoint's files that a `workspace-checkpoint-capture`
5401
+ * stored before the delete was asked for. `refused` says why the checkpoint was kept
5402
+ * without a delete: its files are in no capture, so deleting it would lose them.
5403
+ * Informational, like `workspace-checkpoint`. */
5546
5404
  kind: 'workspace-checkpoint-cleanup';
5547
5405
  id: NodeId;
5548
5406
  provider: string;
5549
5407
  environmentId: string;
5550
5408
  checkpointId: string;
5551
5409
  confirmed: boolean;
5410
+ capturedDigest?: Sha256Digest;
5411
+ refused?: string;
5552
5412
  seq: number;
5553
5413
  at: string;
5554
5414
  } | {
@@ -5672,7 +5532,7 @@ type SpawnEvent = {
5672
5532
  at: string;
5673
5533
  };
5674
5534
  /**
5675
- * The spawn-tree event source (mirrors `ConversationJournal`'s begin/append/load shape).
5535
+ * The spawn-tree event source (begin/append/load).
5676
5536
  * `loadTree` returns events for inspection and completed-settlement replay, not live process
5677
5537
  * recovery; `appendEvent` runs only AFTER the event is observed-committed (never speculative).
5678
5538
  */
@@ -5724,10 +5584,6 @@ interface SupervisorOpts {
5724
5584
  readonly executors: ExecutorRegistry;
5725
5585
  /** Reconstruct configured executors for interrupted children before resuming the driver. */
5726
5586
  readonly recoverExecutor?: ExecutorFactory<unknown>;
5727
- /** Predicate resolution for `poll` wait-states (`Scope.wait`). A `poll` names its predicate so
5728
- * the wait can be journaled and re-armed by a later process; this is what the name resolves
5729
- * against. Unset ⇒ `poll` waits are refused (`unknown-probe`); `timer` waits are unaffected. */
5730
- readonly probes?: WaitProbeRegistry;
5731
5587
  /** Recursion ceiling (root = 0). The conserved pool bounds depth; this only stops a runaway
5732
5588
  * recursion. Omit = `DEFAULT_MAX_DEPTH` (16). */
5733
5589
  readonly maxDepth?: number;
@@ -6217,5 +6073,5 @@ interface WidenGate<Out> {
6217
6073
  readonly judgeExempt?: boolean;
6218
6074
  }
6219
6075
  //#endregion
6220
- export { SpawnJournal as $, AgentRuntimeEventSink as $a, LeakedReservation as $i, ReadableEnvironment as $n, checkVerdictOf as $r, RuntimeStreamEventCollector as $t, NodeExecutionIdentity as A, LoopWinner as Aa, RetainedInteractiveEnvironmentAdmission as Ai, RetainedPendingCause as An, classifyDriverFailure as Ar, TraceContext as At, ResultBlobStore as B, RuntimeRunCost as Ba, RetainedRunEventOptions as Bi, ReconnectRetainedInteractiveRunOptions as Bn, ContinuationAppend as Br, OtelSpan as Bt, ExecutorToolCall as C, LoopResult as Ca, NativeContextContinuationHandle as Ci, SessionTraceBox as Cn, DriverContractState as Cr, WorkspaceCheckpointMarker as Ct, MaterializedExecutionIdentity as D, LoopTokenUsage as Da, RecoverRetainedRunOptions as Di, decodeToolPart as Dn, DriverReentry as Dr, workerTraceEnv as Dt, HeldEnvironment as E, LoopTeardownFailedPayload as Ea, RecoverRetainedRunIntentOptions as Ei, createPushTraceSource as En, DriverProgressMark as Er, readWorkerTraceContext as Et, ProviderModelAttemptEvidence as F, SandboxClient as Fa, RetainedRunCancelOptions as Fi, ScopeProgressInput as Fn, CONTINUATIONS_DIR as Fr, LoopSpanNode as Ft, RootMaterialization as G, RuntimeRunStatus as Ga, RetainedRunStartMaterial as Gi, RetainedInteractiveStartMaterial as Gn, ContinuationPanelInput as Gr, createOpenInferenceFileExporter as Gt, ResumedWork as H, RuntimeRunOptions as Ha, RetainedRunIntentAdmission as Hi, RetainedInteractiveAdmissionHook as Hn, ContinuationEntry as Hr, buildLoopOtelSpans as Ht, ProviderModelExecutionEvidence as I, SelectionReceipt as Ia, RetainedRunCancellation as Ii, TeamProgress as In, CONTINUATION_FACTS as Ir, OtelAttribute as It, RootStreamReceipt as J, AgentBackendContext as Ja, StartRetainedRunOptions as Ji, HarnessTranscriptCapture as Jn, ContinuationProfile as Jr, loopEventToOtelSpan as Jt, RootProviderModelEvidence as K, startRuntimeRun as Ka, RetainedRunTurnInput as Ki, StartRetainedInteractiveRunOptions as Kn, ContinuationPanelResult as Kr, createOtelExporter as Kt, RecursiveReservationPolicy as L, ValidationCtx as La, RetainedRunDispatchedAdmission as Li, WorkerProgress as Ln, CheckRead as Lr, OtelExportConfig as Lt, NodeSnapshot as M, MountRecorder as Ma, RetainedInteractiveStartedAdmission as Mi, ActivityNote as Mn, upstreamUnavailableSignal as Mr, mergeTraceEnv as Mt, NodeStatus as N, OutputAdapter as Na, RetainedRunAdmission as Ni, DEFAULT_STALL_AFTER_MS as Nn, UnavailablePausePolicy as Nr, readTraceContextFromEnv as Nt, MaterializedModelIdentity as O, LoopTraceEmitter as Oa, RecoverRetainedRunResult as Oi, sandboxSessionTraceSource as On, DriverRepromptRefusal as Or, workerTraceHeaders as Ot, ProfileMaterializationReceipt as P, RunProvenance as Pa, RetainedRunAdmissionHook as Pi, ExecutorProgress as Pn, AdmittedFinding as Pr, traceContextToEnv as Pt, SpawnEvent as Q, AgentRuntimeEvent as Qa, BudgetReconcileFault as Qi, HarnessTranscriptUnavailableReason as Qn, admitFinding as Qr, RuntimeEventCollector as Qt, ResourceLimit as R, Validator as Ra, RetainedRunEffect as Ri, createActivityLog as Rn, CheckUnavailableError as Rr, OtelExportStats as Rt, ExecutorTeardownWarning as S, LoopPlanPayload as Sa, NativeContextContinuationExecution as Si, SessionMessageLike as Sn, DriverContinuationRecord as Sr, WorkerTraceUnavailableReason as St, Handle as T, LoopStartedPayload as Ta, ReconnectRetainedRunOptions as Ti, TraceSource as Tn, DriverLoopRecord as Tr, WorkerTraceSeamCarrier as Tt, RetainedExecutionState as U, RuntimeRunPersistenceAdapter as Ua, RetainedRunReplayPoint as Ui, RetainedInteractiveEnvironmentInput as Un, ContinuationNoteInput as Ur, buildLoopSpanNodes as Ut, ResumedKeyState as V, RuntimeRunHandle as Va, RetainedRunHandle as Vi, RecoverRetainedInteractiveRunOptions as Vn, ContinuationContext as Vr, RuntimeEventOtelOptions as Vt, RootHandle as W, RuntimeRunRow as Wa, RetainedRunSnapshot as Wi, RetainedInteractiveRunHandle as Wn, ContinuationPanel as Wr, buildRuntimeEventOtelSpans as Wt, Scope as X, AgentExecutionBackend as Xa, BudgetPoolRestore as Xi, HarnessTranscriptFile as Xn, VerdictSummary as Xr, padTraceId as Xt, Runtime as Y, AgentBackendInput as Ya, BudgetPool as Yi, HarnessTranscriptEvidence as Yn, PanelFinding as Yr, padSpanId as Yt, Settled as Z, AgentKnowledgeProvider as Za, BudgetReadout as Zi, HarnessTranscriptUnavailable as Zn, admitContinuationPolicy as Zr, toOtelAttributes as Zt, ExecutorMaterialization as _, LoopIterationDispatchPayload as _a, RuntimeRunStateError as _i, isWaitOutcome as _n, ProviderWorkspaceRetentionPort as _r, WaitOpts as _t, BudgetOverspend as a, ReservationTicket as aa, verdictFromJudgeScore as ai, createRuntimeEventCollector as an, KnowledgeReadinessDecision as ao, HarnessTranscriptReadOptions as ar, SpendGap as at, ExecutorRegistry as b, LoopLineageOptions as ba, WorkerSlots as bi, validateWaitSpec as bn, DriverAttemptsExhaustedError as br, WorkerInteractiveUnavailableReason as bt, EnvironmentTeardownReceipt as c, createBudgetPool as ca, BackendTransportError as ci, sanitizeKnowledgeReadinessReport as cn, OpenAIChatToolChoice as co, resolveHarnessTranscriptCapture as cr, SubtreeSummary as ct, ExecutorAccounting as d, DefaultVerdict$1 as da, NotFoundError as di, WaitOutcome as dn, RuntimeCanonicalStreamEvent as do, ProviderWorkspaceAttemptProvenance as dr, SupervisorOpts as dt, ReservationFloor as ea, composeContinuationNote as ei, RuntimeStreamEventSink as en, AgentTaskContext as eo, captureHarnessTranscript as er, SpawnOpts as et, ExecutorCancellation as f, Driver as fa, PlannerError as fi, WaitProbe as fn, RuntimeSession as fo, ProviderWorkspaceCaptureProvenance as fr, TokenUsageProvenance as ft, ExecutorFactory as g, LoopEndedPayload as ga, RetainedRunDispatchBindingError as gi, createWaitProbes as gn, ProviderWorkspaceRetentionContext as gr, UsageEvent as gt, ExecutorExecutionBinding as h, LoopDecisionPayload as ha, RetainedRunAdmissionError as hi, WaitSpec as hn, ProviderWorkspaceEntryMetadata as hr, UnknownMaterializationReason as ht, Budget as i, ReservationStage as ia, passedItems as ii, SanitizedKnowledgeRequirement as in, BackendErrorDetail as io, HarnessTranscriptReadLimits as ir, SpendChannel as it, NodeId as j, MountManifestEntry as ja, RetainedInteractiveIntentAdmission as ji, ActivityLog as jn, summarizeDriverAttempts as jr, createPropagatingTraceEmitter as jt, NoWinnerError as k, LoopTraceEvent as ka, RetainedInteractiveAdmission as ki, RetainedChildRecovery as kn, DriverRetryPolicy as kr, workerTraceSeamKey as kt, ExecutionBindingReceipt as l, spendFromUsageEvents as la, ConfigError as li, sanitizeRuntimeStreamEvent as ln, RunAgentTaskOptions as lo, retainHarnessTranscript as lr, SupervisedResult as lt, ExecutorContext as m, Iteration as ma, RetainedInteractiveBindingError as mi, WaitRejection as mn, RuntimeStreamEvent as mo, ProviderWorkspaceCaptureResult as mr, UnconfirmedTeardown as mt, AgentExecutionRef as n, ReservationRejection as na, expandQuestions as ni, RuntimeTelemetryOptions as nn, AgentTaskSpec as no, persistHarnessTranscript as nr, SpawnRejection as nt, BudgetViolation as o, ReservationWaitRefused as oa, AgentEvalError$1 as oi, createRuntimeStreamEventCollector as on, OpenAIChatResponseFormat as oo, RetainedHarnessTranscriptCapture as or, SteerableRootHandle as ot, ExecutorCancellationRequest as p, ExecCtx as pa, RetainedInteractiveAdmissionError as pi, WaitProbeRegistry as pn, RuntimeSessionStore as po, ProviderWorkspaceCaptureReceipt as pr, TreeView as pt, RootSignal as q, AgentAdapter as qa, StartRetainedRunInEnvironmentOptions as qi, HarnessTranscriptArtifact as qn, ContinuationPolicy as qr, generateSpanId as qt, AgentSpec as r, ReservationShortfall as ra, failedItems as ri, SanitizedKnowledgeReadinessReport as rn, AgentTaskStatus as ro, HarnessTranscriptMetadata as rr, Spend as rt, DefaultVerdict as s, ReserveOptions as sa, AgentEvalErrorCode as si, sanitizeAgentRuntimeEvent as sn, OpenAIChatTool as so, RetainedHarnessTranscriptDescriptor as sr, SubtreeResult as st, Agent as t, ReservationHolder as ta, distillFindings as ti, RuntimeStreamEventSummary as tn, AgentTaskRunResult as to, harnessTranscriptArtifact as tr, SpawnPrior as tt, Executor as u, AgentRunSpec as ua, JudgeError as ui, PendingWait as un, RunAgentTaskStreamOptions as uo, ProviderNativeCapturePhase as ur, Supervisor as ut, ExecutorNodeContext as v, LoopIterationEndedPayload as va, ValidationError as vi, pollFor as vn, DriverAttemptRecord as vr, WidenGate as vt, FleetYield as w, LoopSandboxPlacement as wa, NativeContextContinuationInput as wi, ToolStepInput as wn, DriverFailureClass as wr, WorkerTraceResolver as wt, ExecutorResult as x, LoopPlanDescription as xa, createWorkerSlots as xi, waitUntil as xn, DriverBudgetReadout as xr, WorkerTraceEvidence as xt, ExecutorProgressEvent as y, LoopIterationStartedPayload as ya, SlotPermit as yi, timerAt as yn, DriverAttemptStop as yr, WorkerInteractiveSession as yt, ResourceSpend as z, RuntimeRunCompleteInput as za, RetainedRunEnvironmentAdmission as zi, readWorkerProgress as zn, CheckVerdict as zr, OtelExporter as zt };
6221
- //# sourceMappingURL=types-jD9mNnJM.d.ts.map
6076
+ export { SpawnJournal as $, RuntimeSessionStore as $a, ExecCtx as $i, ProviderWorkspaceAttemptProvenance as $n, RetainedInteractiveAdmissionError as $r, RuntimeStreamEventSink as $t, NodeExecutionIdentity as A, RuntimeRunRow as Aa, RetainedRunSnapshot as Ai, RetainedInteractiveEnvironmentInput as An, ContinuationNoteInput as Ar, createPropagatingTraceEmitter as At, ResultBlobStore as B, AgentTaskContext as Ba, ReservationFloor as Bi, ReadableEnvironment as Bn, checkVerdictOf as Br, RuntimeEventOtelOptions as Bt, ExecutorToolCall as C, ValidationCtx as Ca, RetainedRunDispatchedAdmission as Ci, TeamProgress as Cn, CONTINUATION_FACTS as Cr, WorkerTraceResolver as Ct, MaterializedExecutionIdentity as D, RuntimeRunHandle as Da, RetainedRunHandle as Di, ReconnectRetainedInteractiveRunOptions as Dn, ContinuationAppend as Dr, workerTraceHeaders as Dt, HeldEnvironment as E, RuntimeRunCost as Ea, RetainedRunEventOptions as Ei, readWorkerProgress as En, CheckVerdict as Er, workerTraceEnv as Et, ProviderModelAttemptEvidence as F, AgentBackendInput as Fa, BudgetPool as Fi, HarnessTranscriptCapture as Fn, ContinuationProfile as Fr, OtelAttribute as Ft, RootMaterialization as G, KnowledgeReadinessDecision as Ga, ReservationTicket as Gi, HarnessTranscriptReadLimits as Gn, verdictFromJudgeScore as Gr, createOtelExporter as Gt, ResumedWork as H, AgentTaskSpec as Ha, ReservationRejection as Hi, harnessTranscriptArtifact as Hn, expandQuestions as Hr, buildLoopSpanNodes as Ht, ProviderModelExecutionEvidence as I, AgentExecutionBackend as Ia, BudgetPoolRestore as Ii, HarnessTranscriptEvidence as In, PanelFinding as Ir, OtelExportConfig as It, RootStreamReceipt as J, OpenAIChatToolChoice as Ja, createBudgetPool as Ji, RetainedHarnessTranscriptDescriptor as Jn, BackendTransportError as Jr, padSpanId as Jt, RootProviderModelEvidence as K, OpenAIChatResponseFormat as Ka, ReservationWaitRefused as Ki, HarnessTranscriptReadOptions as Kn, AgentEvalError$1 as Kr, generateSpanId as Kt, RecursiveReservationPolicy as L, AgentKnowledgeProvider as La, BudgetReadout as Li, HarnessTranscriptFile as Ln, VerdictSummary as Lr, OtelExportStats as Lt, NodeSnapshot as M, startRuntimeRun as Ma, RetainedRunTurnInput as Mi, RetainedInteractiveStartMaterial as Mn, ContinuationPanelInput as Mr, readTraceContextFromEnv as Mt, NodeStatus as N, AgentAdapter as Na, StartRetainedRunInEnvironmentOptions as Ni, StartRetainedInteractiveRunOptions as Nn, ContinuationPanelResult as Nr, traceContextToEnv as Nt, MaterializedModelIdentity as O, RuntimeRunOptions as Oa, RetainedRunIntentAdmission as Oi, RecoverRetainedInteractiveRunOptions as On, ContinuationContext as Or, workerTraceSeamKey as Ot, ProfileMaterializationReceipt as P, AgentBackendContext as Pa, StartRetainedRunOptions as Pi, HarnessTranscriptArtifact as Pn, ContinuationPolicy as Pr, LoopSpanNode as Pt, SpawnEvent as Q, RuntimeSession as Qa, Driver as Qi, ProviderNativeCapturePhase as Qn, PlannerError as Qr, RuntimeStreamEventCollector as Qt, ResourceLimit as R, AgentRuntimeEvent as Ra, BudgetReconcileFault as Ri, HarnessTranscriptUnavailable as Rn, admitContinuationPolicy as Rr, OtelExporter as Rt, ExecutorTeardownWarning as S, SelectionReceipt as Sa, RetainedRunCancellation as Si, ScopeProgressInput as Sn, AdmittedFinding as Sr, WorkspaceCheckpointMarker as St, Handle as T, RuntimeRunCompleteInput as Ta, RetainedRunEnvironmentAdmission as Ti, createActivityLog as Tn, CheckUnavailableError as Tr, readWorkerTraceContext as Tt, RetainedExecutionState as U, AgentTaskStatus as Ua, ReservationShortfall as Ui, persistHarnessTranscript as Un, failedItems as Ur, buildRuntimeEventOtelSpans as Ut, ResumedKeyState as V, AgentTaskRunResult as Va, ReservationHolder as Vi, captureHarnessTranscript as Vn, distillFindings as Vr, buildLoopOtelSpans as Vt, RootHandle as W, BackendErrorDetail as Wa, ReservationStage as Wi, HarnessTranscriptMetadata as Wn, passedItems as Wr, createOpenInferenceFileExporter as Wt, Scope as X, RunAgentTaskStreamOptions as Xa, AgentRunSpec as Xi, retainHarnessTranscript as Xn, JudgeError as Xr, toOtelAttributes as Xt, Runtime as Y, RunAgentTaskOptions as Ya, spendFromUsageEvents as Yi, resolveHarnessTranscriptCapture as Yn, ConfigError as Yr, padTraceId as Yt, Settled as Z, RuntimeCanonicalStreamEvent as Za, DefaultVerdict$1 as Zi, ProviderCheckpointCaptureContext as Zn, NotFoundError as Zr, RuntimeEventCollector as Zt, ExecutorMaterialization as _, MountManifestEntry as _a, RetainedInteractiveIntentAdmission as _i, RetainedPendingCause as _n, DriverRetryPolicy as _r, WidenGate as _t, BudgetOverspend as a, LoopIterationStartedPayload as aa, SlotPermit as ai, createRuntimeStreamEventCollector as an, ProviderWorkspaceRetentionPort as ar, SpendGap as at, ExecutorRegistry as b, RunProvenance as ba, RetainedRunAdmissionHook as bi, DEFAULT_STALL_AFTER_MS as bn, upstreamUnavailableSignal as br, WorkerTraceEvidence as bt, EnvironmentTeardownReceipt as c, LoopPlanPayload as ca, NativeContextContinuationExecution as ci, sanitizeRuntimeStreamEvent as cn, DriverAttemptsExhaustedError as cr, SubtreeSummary as ct, ExecutorAccounting as d, LoopStartedPayload as da, ReconnectRetainedRunOptions as di, ToolStepInput as dn, DriverContractState as dr, SupervisorOpts as dt, Iteration as ea, RetainedInteractiveBindingError as ei, RuntimeStreamEventSummary as en, RuntimeStreamEvent as eo, ProviderWorkspaceCaptureProvenance as er, SpawnOpts as et, ExecutorCancellation as f, LoopTeardownFailedPayload as fa, RecoverRetainedRunIntentOptions as fi, TraceSource as fn, DriverFailureClass as fr, TokenUsageProvenance as ft, ExecutorFactory as g, LoopWinner as ga, RetainedInteractiveEnvironmentAdmission as gi, RetainedChildRecovery as gn, DriverRepromptRefusal as gr, UsageEvent as gt, ExecutorExecutionBinding as h, LoopTraceEvent as ha, RetainedInteractiveAdmission as hi, sandboxSessionTraceSource as hn, DriverReentry as hr, UnknownMaterializationReason as ht, Budget as i, LoopIterationEndedPayload as ia, ValidationError as ii, createRuntimeEventCollector as in, ProviderWorkspaceRetentionContext as ir, SpendChannel as it, NodeId as j, RuntimeRunStatus as ja, RetainedRunStartMaterial as ji, RetainedInteractiveRunHandle as jn, ContinuationPanel as jr, mergeTraceEnv as jt, NoWinnerError as k, RuntimeRunPersistenceAdapter as ka, RetainedRunReplayPoint as ki, RetainedInteractiveAdmissionHook as kn, ContinuationEntry as kr, TraceContext as kt, ExecutionBindingReceipt as l, LoopResult as la, NativeContextContinuationHandle as li, SessionMessageLike as ln, DriverBudgetReadout as lr, SupervisedResult as lt, ExecutorContext as m, LoopTraceEmitter as ma, RecoverRetainedRunResult as mi, decodeToolPart as mn, DriverProgressMark as mr, UnconfirmedTeardown as mt, AgentExecutionRef as n, LoopEndedPayload as na, RetainedRunDispatchBindingError as ni, SanitizedKnowledgeReadinessReport as nn, ProviderWorkspaceCaptureResult as nr, SpawnRejection as nt, BudgetViolation as o, LoopLineageOptions as oa, WorkerSlots as oi, sanitizeAgentRuntimeEvent as on, DriverAttemptRecord as or, SteerableRootHandle as ot, ExecutorCancellationRequest as p, LoopTokenUsage as pa, RecoverRetainedRunOptions as pi, createPushTraceSource as pn, DriverLoopRecord as pr, TreeView as pt, RootSignal as q, OpenAIChatTool as qa, ReserveOptions as qi, RetainedHarnessTranscriptCapture as qn, AgentEvalErrorCode as qr, loopEventToOtelSpan as qt, AgentSpec as r, LoopIterationDispatchPayload as ra, RuntimeRunStateError as ri, SanitizedKnowledgeRequirement as rn, ProviderWorkspaceEntryMetadata as rr, Spend as rt, DefaultVerdict as s, LoopPlanDescription as sa, createWorkerSlots as si, sanitizeKnowledgeReadinessReport as sn, DriverAttemptStop as sr, SubtreeResult as st, Agent as t, LoopDecisionPayload as ta, RetainedRunAdmissionError as ti, RuntimeTelemetryOptions as tn, ProviderWorkspaceCaptureReceipt as tr, SpawnPrior as tt, Executor as u, LoopSandboxPlacement as ua, NativeContextContinuationInput as ui, SessionTraceBox as un, DriverContinuationRecord as ur, Supervisor as ut, ExecutorNodeContext as v, MountRecorder as va, RetainedInteractiveStartedAdmission as vi, ActivityLog as vn, classifyDriverFailure as vr, WorkerInteractiveSession as vt, FleetYield as w, Validator as wa, RetainedRunEffect as wi, WorkerProgress as wn, CheckRead as wr, WorkerTraceSeamCarrier as wt, ExecutorResult as x, SandboxClient as xa, RetainedRunCancelOptions as xi, ExecutorProgress as xn, UnavailablePausePolicy as xr, WorkerTraceUnavailableReason as xt, ExecutorProgressEvent as y, OutputAdapter as ya, RetainedRunAdmission as yi, ActivityNote as yn, summarizeDriverAttempts as yr, WorkerInteractiveUnavailableReason as yt, ResourceSpend as z, AgentRuntimeEventSink as za, LeakedReservation as zi, HarnessTranscriptUnavailableReason as zn, admitFinding as zr, OtelSpan as zt };
6077
+ //# sourceMappingURL=types-DeuEkBhI.d.ts.map