@tangle-network/agent-runtime 0.237.0 → 0.238.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 (57) hide show
  1. package/dist/{activation-B1Ioaoxu.js → activation-Br1FRlyB.js} +2 -2
  2. package/dist/{activation-B1Ioaoxu.js.map → activation-Br1FRlyB.js.map} +1 -1
  3. package/dist/{activation-CJqtz9SS.d.ts → activation-CRDZUoUE.d.ts} +2 -2
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-DD8ffHLE.js → coordination-driver-DbiCH5be.js} +3 -24
  7. package/dist/{coordination-driver-DD8ffHLE.js.map → coordination-driver-DbiCH5be.js.map} +1 -1
  8. package/dist/{delegate-C0G0SOif.js → delegate-C4rLxuv8.js} +2 -2
  9. package/dist/{delegate-C0G0SOif.js.map → delegate-C4rLxuv8.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +26 -37
  12. package/dist/durable.js.map +1 -1
  13. package/dist/{graph-DBemtsCf.js → graph-BHU73FnA.js} +3 -3
  14. package/dist/{graph-DBemtsCf.js.map → graph-BHU73FnA.js.map} +1 -1
  15. package/dist/{improvement-cycle-Ac5z5H7M.js → improvement-cycle-DkzbEzS5.js} +3 -3
  16. package/dist/{improvement-cycle-Ac5z5H7M.js.map → improvement-cycle-DkzbEzS5.js.map} +1 -1
  17. package/dist/{index-BfUDevdx.d.ts → index-B8Fmz26p.d.ts} +4 -4
  18. package/dist/index.d.ts +6 -6
  19. package/dist/index.js +8 -16
  20. package/dist/index.js.map +1 -1
  21. package/dist/intelligence.d.ts +3 -3
  22. package/dist/intelligence.js +3 -3
  23. package/dist/kernel.d.ts +3 -3
  24. package/dist/kernel.js +8 -8
  25. package/dist/{loop-runner-bin-B3NW0VPt.js → loop-runner-bin-BaQIyvh-.js} +3 -3
  26. package/dist/{loop-runner-bin-B3NW0VPt.js.map → loop-runner-bin-BaQIyvh-.js.map} +1 -1
  27. package/dist/{loop-runner-bin-DNVhcUz2.d.ts → loop-runner-bin-vGFnPXLM.d.ts} +3 -3
  28. package/dist/loop-runner-bin.d.ts +1 -1
  29. package/dist/loop-runner-bin.js +1 -1
  30. package/dist/mcp/bin.js +3 -3
  31. package/dist/mcp/index.d.ts +5 -5
  32. package/dist/mcp/index.js +4 -4
  33. package/dist/{openai-tools-C5SS8ngZ.d.ts → openai-tools-BPPAXxP2.d.ts} +2 -2
  34. package/dist/profiles.d.ts +2 -2
  35. package/dist/{provision-supervisor-Ch-vCAbq.js → provision-supervisor-Briw5tX4.js} +3 -3
  36. package/dist/{provision-supervisor-Ch-vCAbq.js.map → provision-supervisor-Briw5tX4.js.map} +1 -1
  37. package/dist/{runtime-BDwTXkDM.js → runtime-BzGKUqqY.js} +11 -20
  38. package/dist/runtime-BzGKUqqY.js.map +1 -0
  39. package/dist/{server-D4Ypvef9.js → server-CDn-i_GJ.js} +3 -3
  40. package/dist/{server-D4Ypvef9.js.map → server-CDn-i_GJ.js.map} +1 -1
  41. package/dist/{stream-agent-turn-DkiyfYi8.d.ts → stream-agent-turn-xgmm-M55.d.ts} +2 -2
  42. package/dist/{structural-rollout-D-Ougv7r.js → structural-rollout-B-EAO8C5.js} +2 -2
  43. package/dist/{structural-rollout-D-Ougv7r.js.map → structural-rollout-B-EAO8C5.js.map} +1 -1
  44. package/dist/{substrate-CfzWdBcq.d.ts → substrate-B_9stFWH.d.ts} +2 -2
  45. package/dist/{supervise-gSGndJJo.js → supervise-Dc2DjlZS.js} +30 -15
  46. package/dist/supervise-Dc2DjlZS.js.map +1 -0
  47. package/dist/{supervisor-B5wyKVRd.js → supervisor-BN3oMv_v.js} +135 -45
  48. package/dist/supervisor-BN3oMv_v.js.map +1 -0
  49. package/dist/testing.d.ts +2 -2
  50. package/dist/testing.js +12 -12
  51. package/dist/tui/index.d.ts +1 -1
  52. package/dist/tui/index.js +1 -1
  53. package/dist/{types-palY_bT_.d.ts → types-CE7ES_TD.d.ts} +10 -4
  54. package/package.json +1 -1
  55. package/dist/runtime-BDwTXkDM.js.map +0 -1
  56. package/dist/supervise-gSGndJJo.js.map +0 -1
  57. package/dist/supervisor-B5wyKVRd.js.map +0 -1
@@ -2365,22 +2365,66 @@ function providerAttemptEvidence(model) {
2365
2365
  }
2366
2366
  //#endregion
2367
2367
  //#region src/durable/jsonl-file.ts
2368
- /** Parse an append-only JSONL file without treating a torn final write as committed data.
2369
- * A malformed newline-terminated or non-final record is corruption and fails loud. */
2370
- function parseCommittedJsonLines(text, source) {
2371
- const lines = text.split("\n");
2372
- const finalIndex = lines.length - 1;
2373
- const records = [];
2374
- for (const [index, line] of lines.entries()) {
2375
- if (line.length === 0) continue;
2368
+ /** Read a fixed file prefix one record at a time, never allocating the whole journal as a string.
2369
+ * A reader cannot chase concurrent appends forever. Missing files are empty only when requested;
2370
+ * corruption, short reads, and other I/O errors remain failures. Closing the iterator closes the fd. */
2371
+ async function* readCommittedJsonLines(path, options = {}) {
2372
+ const fs = await import("node:fs/promises");
2373
+ let handle;
2374
+ try {
2375
+ handle = await fs.open(path, "r");
2376
+ } catch (error) {
2377
+ if (options.allowMissing && isNoEntError(error)) return;
2378
+ throw error;
2379
+ }
2380
+ try {
2381
+ const { size } = await handle.stat();
2382
+ if (size === 0) return;
2383
+ const { StringDecoder } = await import("node:string_decoder");
2384
+ const decoder = new StringDecoder("utf8");
2385
+ const stream = handle.createReadStream({
2386
+ autoClose: false,
2387
+ end: size - 1
2388
+ });
2389
+ const fragments = [];
2390
+ let lineNumber = 1;
2376
2391
  try {
2377
- records.push(JSON.parse(line));
2378
- } catch (cause) {
2379
- if (index === finalIndex && !text.endsWith("\n")) break;
2380
- throw new Error(`${source}: malformed JSONL record at line ${index + 1}`, { cause });
2392
+ for await (const chunk of stream) {
2393
+ options.onBytes?.(chunk);
2394
+ const text = decoder.write(chunk);
2395
+ let start = 0;
2396
+ let end = text.indexOf("\n", start);
2397
+ while (end !== -1) {
2398
+ fragments.push(text.slice(start, end));
2399
+ const record = parseRecord(fragments.join(""), path, lineNumber++, true);
2400
+ fragments.length = 0;
2401
+ if (record !== void 0) yield record.value;
2402
+ start = end + 1;
2403
+ end = text.indexOf("\n", start);
2404
+ }
2405
+ if (start < text.length) fragments.push(text.slice(start));
2406
+ }
2407
+ if (stream.bytesRead !== size) throw new Error(`${path}: journal changed while reading its committed prefix`);
2408
+ fragments.push(decoder.end());
2409
+ const record = parseRecord(fragments.join(""), path, lineNumber, false);
2410
+ if (record !== void 0) yield record.value;
2411
+ } finally {
2412
+ stream.destroy();
2381
2413
  }
2414
+ } finally {
2415
+ await handle.close();
2416
+ }
2417
+ }
2418
+ /** An invalid unterminated tail may be a torn write; other parse failures are not evidence of one. */
2419
+ function parseRecord(line, source, lineNumber, terminated) {
2420
+ if (line.length === 0) return void 0;
2421
+ try {
2422
+ return { value: JSON.parse(line) };
2423
+ } catch (cause) {
2424
+ if (!(cause instanceof SyntaxError)) throw cause;
2425
+ if (!terminated) return void 0;
2426
+ throw new Error(`${source}: malformed JSONL record at line ${lineNumber}`, { cause });
2382
2427
  }
2383
- return records;
2384
2428
  }
2385
2429
  /** FileHandle.write may legally make a short write. Loop until every byte is appended. */
2386
2430
  async function writeAllBytes(handle, value) {
@@ -8083,7 +8127,8 @@ async function* streamProviderExecutor(args) {
8083
8127
  settled = {
8084
8128
  ...result.outcome?.status === "failed" ? { outcome: {
8085
8129
  success: false,
8086
- ...result.outcome.error ? { error: result.outcome.error } : {}
8130
+ ...result.outcome.error ? { error: result.outcome.error } : {},
8131
+ ...result.outcome.errorCode ? { errorCode: result.outcome.errorCode } : {}
8087
8132
  } } : {},
8088
8133
  outRef: contentRef$1(`provider:${args.provider.name}`, result),
8089
8134
  out: result,
@@ -13292,12 +13337,20 @@ function priceUnreceiptedWork(work) {
13292
13337
  const outcomeSchema = AgentTurnResultSchema.pick({
13293
13338
  success: true,
13294
13339
  error: true
13295
- }).strict();
13340
+ }).extend({ errorCode: AgentTurnResultSchema.shape.error }).strict();
13296
13341
  /** Read only the executor envelope; application output and grades are not execution status. */
13297
- function executorFailureReason(result) {
13342
+ function executorFailure(result) {
13298
13343
  if (result.outcome === void 0) return void 0;
13299
13344
  const outcome = outcomeSchema.parse(result.outcome);
13300
- return outcome.success ? void 0 : outcome.error ?? "Agent execution failed";
13345
+ if (outcome.success) return void 0;
13346
+ return {
13347
+ error: outcome.error ?? "Agent execution failed",
13348
+ ...outcome.errorCode === void 0 ? {} : { errorCode: outcome.errorCode }
13349
+ };
13350
+ }
13351
+ /** The failure text alone, for callers that record a settlement reason. */
13352
+ function executorFailureReason(result) {
13353
+ return executorFailure(result)?.error;
13301
13354
  }
13302
13355
  /** Preserve deterministic result pointers across built-in executors and replay.
13303
13356
  * FNV-1a is an identity convention here, not a cryptographic integrity check. */
@@ -15572,18 +15625,10 @@ var FileSpawnJournal = class {
15572
15625
  this.path = path;
15573
15626
  }
15574
15627
  async loadTree(root) {
15575
- const fs = await import("node:fs/promises");
15576
- let text;
15577
- try {
15578
- text = await fs.readFile(this.path, "utf8");
15579
- } catch (err) {
15580
- if (isNoEntError(err)) return void 0;
15581
- throw err;
15582
- }
15583
15628
  let begun = false;
15584
15629
  const events = [];
15585
15630
  const index = new SpawnEventIndex(root);
15586
- for (const record of parseCommittedJsonLines(text, this.path)) {
15631
+ for await (const record of readCommittedJsonLines(this.path, { allowMissing: true })) {
15587
15632
  if (record.root !== root) continue;
15588
15633
  if (record.kind === "begin") begun = true;
15589
15634
  else {
@@ -15630,26 +15675,22 @@ var FileSpawnJournal = class {
15630
15675
  });
15631
15676
  }
15632
15677
  async validationIndex() {
15633
- const fs = await import("node:fs/promises");
15634
15678
  const stamp = await this.fileStamp();
15635
15679
  if (this.appendIndex && this.appendIndex.stamp === stamp) return this.appendIndex;
15636
15680
  this.appendIndex = void 0;
15637
15681
  const trees = /* @__PURE__ */ new Map();
15638
- if (stamp !== void 0) {
15639
- const text = await fs.readFile(this.path, "utf8");
15640
- if (await this.fileStamp() !== stamp) throw new Error("spawn journal changed while rebuilding its append index");
15641
- for (const record of parseCommittedJsonLines(text, this.path)) if (record.kind === "begin") {
15642
- if (!trees.has(record.root)) trees.set(record.root, {
15643
- begunAt: record.at,
15644
- index: new SpawnEventIndex(record.root)
15645
- });
15646
- } else {
15647
- const tree = trees.get(record.root);
15648
- if (!tree) throw new Error(`spawn journal corrupted: event for tree '${record.root}' precedes its begin record`);
15649
- tree.index.assert(record.event);
15650
- tree.index.add(record.event);
15651
- }
15682
+ if (stamp !== void 0) for await (const record of readCommittedJsonLines(this.path)) if (record.kind === "begin") {
15683
+ if (!trees.has(record.root)) trees.set(record.root, {
15684
+ begunAt: record.at,
15685
+ index: new SpawnEventIndex(record.root)
15686
+ });
15687
+ } else {
15688
+ const tree = trees.get(record.root);
15689
+ if (!tree) throw new Error(`spawn journal corrupted: event for tree '${record.root}' precedes its begin record`);
15690
+ tree.index.assert(record.event);
15691
+ tree.index.add(record.event);
15652
15692
  }
15693
+ if (await this.fileStamp() !== stamp) throw new Error("spawn journal changed while rebuilding its append index");
15653
15694
  this.appendIndex = {
15654
15695
  stamp,
15655
15696
  trees
@@ -19058,6 +19099,9 @@ function errorProperty(error, field) {
19058
19099
  return `[unreadable error ${field}]`;
19059
19100
  }
19060
19101
  }
19102
+ /** An HTTP status carried on a thrown error, read without trusting its getter. Provider SDKs put
19103
+ * one on their own error classes, so this is how a refusal is recognised outside the transport
19104
+ * taxonomy — for the persisted message here, and for the driver's retry verdict. */
19061
19105
  function errorHttpStatus(error) {
19062
19106
  try {
19063
19107
  const status = Reflect.get(error, "status");
@@ -23369,7 +23413,9 @@ function unreportedSpend(total, prior) {
23369
23413
  * so retrying re-runs a decision rather than recovering from an accident. They fail immediately.
23370
23414
  * - TRANSIENT failures are everything foreign: a harness process that exited without a reason, a
23371
23415
  * stream that cut mid-turn, a 5xx, a socket reset. Those are accidents, and they are exactly
23372
- * what a retry exists for.
23416
+ * what a retry exists for. A harness turn that RETURNED a failed outcome is the same accident
23417
+ * reported as a value rather than thrown, so the drive raises {@link HarnessTurnFailedError}
23418
+ * and it is classified here like any other failure.
23373
23419
  *
23374
23420
  * The one loop the budget alone cannot bound is a driver that dies INSTANTLY and repeatedly — a
23375
23421
  * dead-on-arrival credential, a harness that refuses to start. Spending nothing, it would retry
@@ -23431,6 +23477,28 @@ const DETERMINISTIC_BRIDGE_CODES = /* @__PURE__ */ new Set([
23431
23477
  "capability_denied"
23432
23478
  ]);
23433
23479
  /**
23480
+ * A driver's harness turn ran to its terminal result, and that result reported failure.
23481
+ *
23482
+ * A provider executor reports a failed turn as a returned outcome, not a thrown error, so without
23483
+ * this error a failed turn reads as a completed drive and never reaches the retry decision.
23484
+ * Measured 2026-09-17 on a Discovery director placed on tangle-sandbox with the opencode harness:
23485
+ * a 53-minute turn ended `status code 524`, and another ended `Invalid API key` after a platform
23486
+ * key expired mid-turn. A new turn succeeds in both cases.
23487
+ *
23488
+ * `errorCode` is the provider's machine code when it reported one. The classifier reads the code
23489
+ * and never the text, because the text is written for people and changes without notice.
23490
+ */
23491
+ var HarnessTurnFailedError = class extends Error {
23492
+ runtime;
23493
+ errorCode;
23494
+ constructor(runtime, failure) {
23495
+ super(`${runtime} harness turn ended with a failed outcome` + (failure.errorCode === void 0 ? "" : ` (${failure.errorCode})`) + `: ${failure.error}`);
23496
+ this.name = "HarnessTurnFailedError";
23497
+ this.runtime = runtime;
23498
+ if (failure.errorCode !== void 0) this.errorCode = failure.errorCode;
23499
+ }
23500
+ };
23501
+ /**
23434
23502
  * Classify one driver failure. Runtime's own typed refusals are decisions and stay terminal;
23435
23503
  * anything foreign is an accident and is retryable. A `BackendTransportError` is split by status
23436
23504
  * because the taxonomy already promises consumers may branch on it: a 5xx/429/408 is the upstream
@@ -23440,6 +23508,7 @@ const DETERMINISTIC_BRIDGE_CODES = /* @__PURE__ */ new Set([
23440
23508
  function classifyDriverFailure(error, signal) {
23441
23509
  if (signal?.aborted) return "terminal";
23442
23510
  if (error instanceof Error && errorProperty(error, "name") === "AbortError") return "terminal";
23511
+ if (error instanceof HarnessTurnFailedError) return error.errorCode !== void 0 && DETERMINISTIC_BRIDGE_CODES.has(error.errorCode) ? "terminal" : "transient";
23443
23512
  if (error instanceof BackendTransportError) {
23444
23513
  if (error.upstreamCode !== void 0 && DETERMINISTIC_BRIDGE_CODES.has(error.upstreamCode)) return "terminal";
23445
23514
  const status = error.status;
@@ -23449,7 +23518,28 @@ function classifyDriverFailure(error, signal) {
23449
23518
  }
23450
23519
  if (error instanceof ValidationError$1 || error instanceof ConfigError || error instanceof RuntimeRunStateError) return "terminal";
23451
23520
  if (error instanceof AgentEvalError$1) return "terminal";
23452
- return "transient";
23521
+ return foreignHttpStatusVerdict(error) ?? "transient";
23522
+ }
23523
+ /**
23524
+ * A foreign error that still carries an HTTP status is a refusal we can read.
23525
+ *
23526
+ * A provider SDK throws its own error classes, so an environment `create` that the platform
23527
+ * refused arrives here as neither a `BackendTransportError` nor an `AgentEvalError`, and the
23528
+ * default sends it to `transient`. Measured 2026-09-16: a Tangle Sandbox create refused
23529
+ * `HTTP 400 {"code":"CONFIG_ERROR"}` for a key whose budget was fully reserved retried 14-22
23530
+ * times per node while the run showed a durable intent and no other event, so eleven of twelve
23531
+ * roots sat for 25 minutes with nothing to diagnose. The status was on the error the whole time.
23532
+ *
23533
+ * Reading it applies the same rule the transport branch already promises consumers: 408, 429 and
23534
+ * 5xx are the upstream having a bad moment, and any other 4xx is a request that will fail
23535
+ * identically forever. Anything without a plain numeric status keeps the historical default.
23536
+ */
23537
+ function foreignHttpStatusVerdict(error) {
23538
+ if (!(error instanceof Error)) return void 0;
23539
+ const status = errorHttpStatus(error);
23540
+ if (status === void 0 || status < 400) return void 0;
23541
+ if (status === 408 || status === 429 || status >= 500) return "transient";
23542
+ return "terminal";
23453
23543
  }
23454
23544
  /** The budget's own verdict on whether another attempt may run at all. */
23455
23545
  function budgetStop(budget, atMs) {
@@ -24570,6 +24660,6 @@ function isNonEmptySpend(s) {
24570
24660
  return s.iterations > 0 || s.tokens.input > 0 || s.tokens.output > 0 || s.usd > 0 || s.ms > 0 || s.tokensKnown === false || s.usdKnown === false || Object.values(s.resources ?? {}).some((resource) => resource.amount > 0 || !resource.known);
24571
24661
  }
24572
24662
  //#endregion
24573
- export { bindReusableExecutorExecutionId as $, providerMessageText as $i, buildRuntimeEventOtelSpans as $n, providerAttemptEvidence as $r, addHarnessUsage as $t, waitUntil as A, deleteBoxSafe as Ai, RunCancellationReason as An, profileMaterializationAxes$1 as Ar, spendFromUsageTotals as At, attachWorker as B, withTimeout as Bi, defaultRedactorIdentityMaterial as Bn, worktreeCliProfileMaterialization as Br, createInbox as Bt, scopeOwnerExecutorNodeContext as C, notifySandboxEventObserver as Ci, resolveAgentEnvironmentProvider as Cn, parseCodexTokenUsage as Cr, workerTraceAnalysisStore as Ct, pollFor as D, addSpend as Di, sandboxSessionTraceSource as Dn, controlProfileMaterialization as Dr, meterUsageEvent as Dt, isWaitOutcome as E, sumSandboxUsage as Ei, decodeToolPart as En, assertProfileMaterialization as Er, createBudgetPool as Et, scopeRetainedOwnerPriorSpend as F, sleep as Fi, recoverRetainedRun as Fn, renderProfileMaterializationIssues as Fr, workerTraceSeamKey as Ft, recoverRetainedInteractiveRun as G, decodeHarnessUsage as Gi, contentAddress as Gn, attestRuntimeOwnedPendingExecutor as Gr, createPeerMailbox as Gt, workerInteractiveBindingFile as H, addResourceSpend as Hi, captureHarnessTranscript as Hn, parseCommittedJsonLines as Hr, DEFAULT_PEER_MAIL_LIMITS as Ht, scopeRetainedOwnerResult as I, stringifySafe as Ii, startRetainedRun as In, renderUnsupported as Ir, taskToPrompt as It, errMessage as J, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Ji, readTraceContextFromEnv as Jn, finalizeRuntimeOwnedPendingExecutor as Jr, peerMailVerbNames as Jt, startRetainedInteractiveRun as K, abortError$2 as Ki, createPropagatingTraceEmitter as Kn, attestRuntimeOwnedScopeOwner as Kr, isPeerMailEnvelope as Kt, interactiveAdmissionSeamKey as L, throwAbort as Li, startRetainedRunInEnvironment as Ln, sandboxActProfileMaterialization as Lr, DEFAULT_STALL_AFTER_MS as Lt, consumeScopeRetainedOwnerResult as M, isAbortError$2 as Mi, linkAbort as Mn, promptModelProfileMaterialization as Mr, readWorkerTraceContext as Mt, prepareScopeRetainedOwnerTask as N, promptCacheTokenClasses as Ni, runAbortable as Nn, promptOnlyProfileMaterialization as Nr, workerTraceEnv as Nt, timerAt as O, chargedTokens as Oi, registerRetainedExecutorPreparation as On, defineProfileMaterializationContract as Or, newUsageTotals as Ot, scopeRetainedOwnerContext as P, randomSuffix as Pi, reconnectRetainedRun as Pn, promptResourceProfileMaterialization as Pr, workerTraceHeaders as Pt, rollingDispatch as Q, promptOptionsFromAgentTurnInput as Qi, buildLoopSpanNodes as Qn, newExecutionAttemptId as Qr, bridgeModelRouteRefusal as Qt, readWorkerInteractiveAdmissions as R, throwIfAborted as Ri, retainedCreateMaterial as Rn, unsupportedProfileDimensions as Rr, createActivityLog as Rt, restoreScopeOwnerAcceptedExecution as S, mapSandboxToolEvent as Si, providerAsSandboxClient as Sn, localHarnessExecutable as Sr, parseWorkerToolTraceArtifact as St, createWaitProbes as T, sandboxProgressEvents as Ti, createPushTraceSource as Tn, AGENT_PROFILE_MATERIALIZATION_AXES as Tr, assertValidBudget as Tt, workerInteractiveBindingsDir as U, resourceTelemetry as Ui, harnessTranscriptArtifact as Un, prepareJsonlAppend as Ur, PEER_MAIL_WIRE_KEY as Ut, readWorkerInteractiveBinding as V, zeroSpend as Vi, resolveRedactor as Vn, isNoEntError as Vr, AUTHORITY_MARKERS as Vt, reconnectRetainedInteractiveRun as W, withBudgetResources as Wi, persistHarnessTranscript as Wn, writeAllBytes as Wr, claimsAuthority as Wt, freeSlots as X, teardownExecutor as Xi, INTELLIGENCE_WIRE_VERSION as Xn, knownExecutionBindingReceipt as Xr, isTerminalNodeStatus as Xt, effectiveConcurrency as Y, armDeadlineTimer as Yi, traceContextToEnv as Yn, inheritRuntimeOwnedExecutorAttestation as Yr, isLiveNodeStatus as Yt, queueOf as Z, promptFromAgentTurnInput as Zi, buildLoopOtelSpans as Zn, knownMaterializationReceipt as Zr, bridgeAdmissionRefusal as Zt, createScope as _, createSandboxToolPartState as _i, canonicalObservedModelParts as _n, createWorktree as _r, pendingWaits as _t, pickBestDelivered as a, runtimeOwnedPendingExecutorMaterialization as ai, TERMINAL_DECISIONS as an, loopEventToOtelSpan as ar, snapshotExecutorConfig as at, meterRuntimeOwnedProviderAttempt as b, isSandboxTerminalEvent as bi, createAgentEnvironmentProviderRegistry as bn, LOCAL_HARNESSES as br, captureWorkerTraceEvidence as bt, DriverAttemptsExhaustedError as c, unknownMaterializationReceipt as ci, isTerminalDecision as cn, toOtelAttributes as cr, createSteerableSandboxSession as ct, runDriverWithRetry as d, detachedFrozen as di, probeSandboxCapabilities as dn, sanitizeAgentRuntimeEvent as dr, FileSpawnJournal as dt, recordRuntimeOwnedDriveHarnessProviderEvidence as ei, createCodexRolloutStoreReader as en, createOpenInferenceFileExporter as er, captureReusableExecutorConfig as et, driverChild as f, detachedSnapshot as fi, acquireSandbox as fn, sanitizeKnowledgeReadinessReport as fr, InMemoryResultBlobStore as ft, beginScopeOwnerAttempt as g, canonicalStreamEventFromSandboxEvent as gi, runBrainLoop as gn, captureWorktreeDiff as gr, materializeTreeView as gt, withDriverExecutor as h, assertSandboxServedModel as hi, routerBrain as hn, runWorktreeHarness as hr, loadSpawnForest as ht, collectDelivered as i, runtimeOwnedExecutorProviderEvidence as ii, bridgeStopSignalKey as in, generateSpanId as ir, createExecutorRegistry as it, bindScopeRetainedOwnerProvider as j, hasCompleteCacheBreakdown as ji, abortError as jn, promptControlProfileMaterialization as jr, WORKER_TRACE_PROPAGATION as jt, validateWaitSpec as k, cloneSpend as ki, retainedExecutorSeamKey as kn, fullProfileMaterialization as kr, spendFromUsageEvents as kt, classifyDriverFailure as l, executableAgentProfileSnapshot as li, runAgentRounds as ln, createRuntimeEventCollector as lr, createInPlaceCliExecutor as lt, isDriverSpec as m, readSandboxOutcome as mi, readPromptOptions as mn, runSettledCommand as mr, insideCursorNamespace as mt, createSupervisor as n, runtimeOwnedExecutorExecutionBinding as ni, readCodexRolloutSession as nn, exportEvalRuns as nr, cliWorktreeExecutor as nt, runFinalizer as o, runtimeOwnedScopeOwnerRuntime as oi, createSandboxForSpec as on, padSpanId as or, createWorktreeCliExecutor as ot, driverExecutorFactory as p, projectSandboxOutcome as pi, assertBoxlessPromptOptions as pn, sanitizeRuntimeStreamEvent as pr, InMemorySpawnJournal as pt, destroyInteractiveEnvironment as q, awaitAbortable$1 as qi, mergeTraceEnv as qn, authoredProfileDigest as qr, peerMailTools as qt, bestDelivered as r, runtimeOwnedExecutorMaterialization as ri, bridgeRuntimeAttachmentsKey as rn, flatOtelSpan as rr, createExecutor as rt, runTree as s, unknownExecutionBindingReceipt as si, defaultSelectWinner as sn, padTraceId as sr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as st, createRootHandle as t, runtimeOwnedDriveHarnessProviderEvidence as ti, harnessUsageIsEmpty as tn, createOtelExporter as tr, cliInPlaceExecutor as tt, defaultUnmetContractSteer as u, executableAgentSpecSnapshot as ui, createSandboxLineage as un, createRuntimeStreamEventCollector as ur, FileResultBlobStore as ut, deriveNodeExecutionIdentity as v, createSandboxUsageLedger as vi, observedModelMatchesDeclared as vn, removeWorktree as vr, replaySpawnTree as vt, settledToIteration as w, sandboxEventServedBackend as wi, sandboxClientAsProvider as wn, CodexExecutionDiagnosticError as wr, BudgetReconcileFault as wt, recordScopeOwnerMaterialization as x, mapSandboxEvent as xi, providerAsExecutor as xn, harnessSupportsReasoningEffort as xr, isTraceAnalysisStore as xt, meterRuntimeOwnedAccounting as y, extractLlmCallEvent as yi, DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS as yn, DEFAULT_LOCAL_HARNESS as yr, WORKER_TOOL_TRACE_SCHEMA_VERSION as yt, workerInteractiveAdmissionFile as z, unmeteredSpend as zi, defaultRedactor as zn, validateProfileMaterialization as zr, readWorkerProgress as zt };
24663
+ export { rollingDispatch as $, promptFromAgentTurnInput as $i, buildLoopOtelSpans as $n, knownMaterializationReceipt as $r, bridgeAdmissionRefusal as $t, validateWaitSpec as A, chargedTokens as Ai, registerRetainedExecutorPreparation as An, defineProfileMaterializationContract as Ar, spendFromUsageEvents as At, workerInteractiveAdmissionFile as B, throwIfAborted as Bi, retainedCreateMaterial as Bn, unsupportedProfileDimensions as Br, readWorkerProgress as Bt, restoreScopeOwnerAcceptedExecution as C, mapSandboxEvent as Ci, providerAsExecutor as Cn, harnessSupportsReasoningEffort as Cr, parseWorkerToolTraceArtifact as Ct, isWaitOutcome as D, sandboxProgressEvents as Di, createPushTraceSource as Dn, AGENT_PROFILE_MATERIALIZATION_AXES as Dr, createBudgetPool as Dt, createWaitProbes as E, sandboxEventServedBackend as Ei, sandboxClientAsProvider as En, CodexExecutionDiagnosticError as Er, assertValidBudget as Et, scopeRetainedOwnerContext as F, promptCacheTokenClasses as Fi, runAbortable as Fn, promptOnlyProfileMaterialization as Fr, workerTraceHeaders as Ft, reconnectRetainedInteractiveRun as G, resourceTelemetry as Gi, harnessTranscriptArtifact as Gn, readCommittedJsonLines as Gr, claimsAuthority as Gt, readWorkerInteractiveBinding as H, withTimeout as Hi, defaultRedactorIdentityMaterial as Hn, worktreeCliProfileMaterialization as Hr, AUTHORITY_MARKERS as Ht, scopeRetainedOwnerPriorSpend as I, randomSuffix as Ii, reconnectRetainedRun as In, promptResourceProfileMaterialization as Ir, workerTraceSeamKey as It, destroyInteractiveEnvironment as J, abortError$2 as Ji, createPropagatingTraceEmitter as Jn, attestRuntimeOwnedScopeOwner as Jr, peerMailTools as Jt, recoverRetainedInteractiveRun as K, withBudgetResources as Ki, persistHarnessTranscript as Kn, writeAllBytes as Kr, createPeerMailbox as Kt, scopeRetainedOwnerResult as L, sleep as Li, recoverRetainedRun as Ln, renderProfileMaterializationIssues as Lr, taskToPrompt as Lt, bindScopeRetainedOwnerProvider as M, deleteBoxSafe as Mi, RunCancellationReason as Mn, profileMaterializationAxes$1 as Mr, WORKER_TRACE_PROPAGATION as Mt, consumeScopeRetainedOwnerResult as N, hasCompleteCacheBreakdown as Ni, abortError as Nn, promptControlProfileMaterialization as Nr, readWorkerTraceContext as Nt, pollFor as O, sumSandboxUsage as Oi, decodeToolPart as On, assertProfileMaterialization as Or, meterUsageEvent as Ot, prepareScopeRetainedOwnerTask as P, isAbortError$2 as Pi, linkAbort as Pn, promptModelProfileMaterialization as Pr, workerTraceEnv as Pt, queueOf as Q, teardownExecutor as Qi, INTELLIGENCE_WIRE_VERSION as Qn, knownExecutionBindingReceipt as Qr, executorFailure as Qt, interactiveAdmissionSeamKey as R, stringifySafe as Ri, startRetainedRun as Rn, renderUnsupported as Rr, DEFAULT_STALL_AFTER_MS as Rt, recordScopeOwnerMaterialization as S, isSandboxTerminalEvent as Si, createAgentEnvironmentProviderRegistry as Sn, LOCAL_HARNESSES as Sr, isTraceAnalysisStore as St, settledToIteration as T, notifySandboxEventObserver as Ti, resolveAgentEnvironmentProvider as Tn, parseCodexTokenUsage as Tr, BudgetReconcileFault as Tt, workerInteractiveBindingFile as U, zeroSpend as Ui, resolveRedactor as Un, isNoEntError as Ur, DEFAULT_PEER_MAIL_LIMITS as Ut, attachWorker as V, unmeteredSpend as Vi, defaultRedactor as Vn, validateProfileMaterialization as Vr, createInbox as Vt, workerInteractiveBindingsDir as W, addResourceSpend as Wi, captureHarnessTranscript as Wn, prepareJsonlAppend as Wr, PEER_MAIL_WIRE_KEY as Wt, effectiveConcurrency as X, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Xi, readTraceContextFromEnv as Xn, finalizeRuntimeOwnedPendingExecutor as Xr, isLiveNodeStatus as Xt, errMessage as Y, awaitAbortable$1 as Yi, mergeTraceEnv as Yn, authoredProfileDigest as Yr, peerMailVerbNames as Yt, freeSlots as Z, armDeadlineTimer as Zi, traceContextToEnv as Zn, inheritRuntimeOwnedExecutorAttestation as Zr, isTerminalNodeStatus as Zt, beginScopeOwnerAttempt as _, assertSandboxServedModel as _i, routerBrain as _n, runWorktreeHarness as _r, materializeTreeView as _t, pickBestDelivered as a, runtimeOwnedExecutorMaterialization as ai, bridgeRuntimeAttachmentsKey as an, flatOtelSpan as ar, createExecutorRegistry as at, meterRuntimeOwnedAccounting as b, createSandboxUsageLedger as bi, observedModelMatchesDeclared as bn, removeWorktree as br, WORKER_TOOL_TRACE_SCHEMA_VERSION as bt, DriverAttemptsExhaustedError as c, runtimeOwnedScopeOwnerRuntime as ci, createSandboxForSpec as cn, padSpanId as cr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as ct, defaultUnmetContractSteer as d, executableAgentProfileSnapshot as di, runAgentRounds as dn, createRuntimeEventCollector as dr, FileResultBlobStore as dt, promptOptionsFromAgentTurnInput as ea, newExecutionAttemptId as ei, bridgeModelRouteRefusal as en, buildLoopSpanNodes as er, bindReusableExecutorExecutionId as et, runDriverWithRetry as f, executableAgentSpecSnapshot as fi, createSandboxLineage as fn, createRuntimeStreamEventCollector as fr, FileSpawnJournal as ft, withDriverExecutor as g, readSandboxOutcome as gi, readPromptOptions as gn, runSettledCommand as gr, loadSpawnForest as gt, isDriverSpec as h, projectSandboxOutcome as hi, assertBoxlessPromptOptions as hn, sanitizeRuntimeStreamEvent as hr, insideCursorNamespace as ht, collectDelivered as i, runtimeOwnedExecutorExecutionBinding as ii, readCodexRolloutSession as in, exportEvalRuns as ir, createExecutor as it, waitUntil as j, cloneSpend as ji, retainedExecutorSeamKey as jn, fullProfileMaterialization as jr, spendFromUsageTotals as jt, timerAt as k, addSpend as ki, sandboxSessionTraceSource as kn, controlProfileMaterialization as kr, newUsageTotals as kt, HarnessTurnFailedError as l, unknownExecutionBindingReceipt as li, defaultSelectWinner as ln, padTraceId as lr, createSteerableSandboxSession as lt, driverExecutorFactory as m, detachedSnapshot as mi, acquireSandbox as mn, sanitizeKnowledgeReadinessReport as mr, InMemorySpawnJournal as mt, createSupervisor as n, recordRuntimeOwnedDriveHarnessProviderEvidence as ni, createCodexRolloutStoreReader as nn, createOpenInferenceFileExporter as nr, cliInPlaceExecutor as nt, runFinalizer as o, runtimeOwnedExecutorProviderEvidence as oi, bridgeStopSignalKey as on, generateSpanId as or, snapshotExecutorConfig as ot, driverChild as p, detachedFrozen as pi, probeSandboxCapabilities as pn, sanitizeAgentRuntimeEvent as pr, InMemoryResultBlobStore as pt, startRetainedInteractiveRun as q, decodeHarnessUsage as qi, contentAddress as qn, attestRuntimeOwnedPendingExecutor as qr, isPeerMailEnvelope as qt, bestDelivered as r, runtimeOwnedDriveHarnessProviderEvidence as ri, harnessUsageIsEmpty as rn, createOtelExporter as rr, cliWorktreeExecutor as rt, runTree as s, runtimeOwnedPendingExecutorMaterialization as si, TERMINAL_DECISIONS as sn, loopEventToOtelSpan as sr, createWorktreeCliExecutor as st, createRootHandle as t, providerMessageText as ta, providerAttemptEvidence as ti, addHarnessUsage as tn, buildRuntimeEventOtelSpans as tr, captureReusableExecutorConfig as tt, classifyDriverFailure as u, unknownMaterializationReceipt as ui, isTerminalDecision as un, toOtelAttributes as ur, createInPlaceCliExecutor as ut, createScope as v, canonicalStreamEventFromSandboxEvent as vi, runBrainLoop as vn, captureWorktreeDiff as vr, pendingWaits as vt, scopeOwnerExecutorNodeContext as w, mapSandboxToolEvent as wi, providerAsSandboxClient as wn, localHarnessExecutable as wr, workerTraceAnalysisStore as wt, meterRuntimeOwnedProviderAttempt as x, extractLlmCallEvent as xi, DEFAULT_SANDBOX_IDLE_TIMEOUT_SECONDS as xn, DEFAULT_LOCAL_HARNESS as xr, captureWorkerTraceEvidence as xt, deriveNodeExecutionIdentity as y, createSandboxToolPartState as yi, canonicalObservedModelParts as yn, createWorktree as yr, replaySpawnTree as yt, readWorkerInteractiveAdmissions as z, throwAbort as zi, startRetainedRunInEnvironment as zn, sandboxActProfileMaterialization as zr, createActivityLog as zt };
24574
24664
 
24575
- //# sourceMappingURL=supervisor-B5wyKVRd.js.map
24665
+ //# sourceMappingURL=supervisor-BN3oMv_v.js.map