@tangle-network/agent-runtime 0.297.2 → 0.297.4

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 (36) hide show
  1. package/dist/{activation-Bsa9KIms.js → activation-HxjytyHI.js} +2 -2
  2. package/dist/{activation-Bsa9KIms.js.map → activation-HxjytyHI.js.map} +1 -1
  3. package/dist/agent.js +2 -2
  4. package/dist/{coordination-driver-C3ox4-8J.js → coordination-driver-DuMIPopZ.js} +2 -2
  5. package/dist/{coordination-driver-C3ox4-8J.js.map → coordination-driver-DuMIPopZ.js.map} +1 -1
  6. package/dist/{delegate-C4OXzzuI.js → delegate-D2oKDHrJ.js} +2 -2
  7. package/dist/{delegate-C4OXzzuI.js.map → delegate-D2oKDHrJ.js.map} +1 -1
  8. package/dist/durable.js +2 -2
  9. package/dist/{graph-Nr_j33Ko.js → graph-BySMCWSa.js} +4 -4
  10. package/dist/{graph-Nr_j33Ko.js.map → graph-BySMCWSa.js.map} +1 -1
  11. package/dist/{improvement-cycle-7rd18eW9.js → improvement-cycle-DK6-UnQF.js} +3 -3
  12. package/dist/{improvement-cycle-7rd18eW9.js.map → improvement-cycle-DK6-UnQF.js.map} +1 -1
  13. package/dist/index.js +7 -7
  14. package/dist/intelligence.js +4 -4
  15. package/dist/kernel.js +8 -8
  16. package/dist/{loop-runner-bin-Dt5Tm0LL.js → loop-runner-bin-DbPAxmqF.js} +3 -3
  17. package/dist/{loop-runner-bin-Dt5Tm0LL.js.map → loop-runner-bin-DbPAxmqF.js.map} +1 -1
  18. package/dist/loop-runner-bin.js +1 -1
  19. package/dist/mcp/bin.js +3 -3
  20. package/dist/mcp/index.js +4 -4
  21. package/dist/{provision-supervisor-DVjTqpF1.js → provision-supervisor-CN7v1RhU.js} +3 -3
  22. package/dist/{provision-supervisor-DVjTqpF1.js.map → provision-supervisor-CN7v1RhU.js.map} +1 -1
  23. package/dist/{runtime-C-jN8ONc.js → runtime-DS_TeDgv.js} +8 -8
  24. package/dist/{runtime-C-jN8ONc.js.map → runtime-DS_TeDgv.js.map} +1 -1
  25. package/dist/{search-method-CLfmCMeT.js → search-method-oiYB83Zf.js} +2 -2
  26. package/dist/{search-method-CLfmCMeT.js.map → search-method-oiYB83Zf.js.map} +1 -1
  27. package/dist/{server-Di-qMU3Q.js → server-9rW1eSij.js} +3 -3
  28. package/dist/{server-Di-qMU3Q.js.map → server-9rW1eSij.js.map} +1 -1
  29. package/dist/{supervise-Bnqm88tQ.js → supervise-BrSEFEG5.js} +3 -3
  30. package/dist/{supervise-Bnqm88tQ.js.map → supervise-BrSEFEG5.js.map} +1 -1
  31. package/dist/{supervisor-Rov7xW0j.js → supervisor-tuUW4dMo.js} +207 -43
  32. package/dist/supervisor-tuUW4dMo.js.map +1 -0
  33. package/dist/testing.js +12 -12
  34. package/dist/tui/index.js +1 -1
  35. package/package.json +1 -1
  36. package/dist/supervisor-Rov7xW0j.js.map +0 -1
@@ -8449,46 +8449,6 @@ function assertRetainedCapabilityRequirements(providerName, capabilities) {
8449
8449
  if (retained?.exactRunIdentity !== true || retained.resultIdentity !== true || retained.eventIdentity !== true || retained.cancellationIdempotency !== true || !capabilities.streaming.detach || !capabilities.streaming.replay || !capabilities.streaming.turnIdempotency) throw new Error(`provider "${providerName}" cannot control a retry-safe retained run`);
8450
8450
  }
8451
8451
  //#endregion
8452
- //#region src/runtime/supervise/cost-estimate.ts
8453
- /**
8454
- * Pricing for work that arrived without a provider receipt.
8455
- *
8456
- * A turn whose provider reported no billed dollars used to reach the dollar channel as a
8457
- * known `$0`, so a run that certainly spent money reported a dollar total of zero. A catalog
8458
- * price is not a receipt, so what this module produces is always marked, never promoted.
8459
- */
8460
- /**
8461
- * Price one unit of work that no provider receipt covered.
8462
- *
8463
- * The event always carries `usdKnown: false`: a catalog price approximates what a provider
8464
- * WOULD bill, never measures what it did. The priced amount is repeated in `usdEstimated` so
8465
- * a consumer can subtract it from `usd` and recover the dollars a provider actually billed.
8466
- *
8467
- * A model with no catalog entry yields `usd: 0` with `usdKnown: false` and no `usdEstimated`.
8468
- * The turn then reads as unknown dollars, which is true, rather than as a free turn.
8469
- */
8470
- function priceUnreceiptedWork(work) {
8471
- const unknown = {
8472
- kind: "cost",
8473
- usd: 0,
8474
- usdKnown: false,
8475
- provenance: "uncaptured"
8476
- };
8477
- const { inputTokens, outputTokens, model } = work;
8478
- if (model === void 0 || !isModelPriced(model)) return unknown;
8479
- if (!Number.isFinite(inputTokens) || !Number.isFinite(outputTokens)) return unknown;
8480
- if (inputTokens < 0 || outputTokens < 0) return unknown;
8481
- const usd = estimateCost(inputTokens, outputTokens, model);
8482
- if (!Number.isFinite(usd) || usd <= 0) return unknown;
8483
- return {
8484
- kind: "cost",
8485
- usd,
8486
- usdKnown: false,
8487
- usdEstimated: usd,
8488
- provenance: "catalog-estimate"
8489
- };
8490
- }
8491
- //#endregion
8492
8452
  //#region src/runtime/supervise/error-message.ts
8493
8453
  const maxCauseDepth = 4;
8494
8454
  const maxMessageLength = 32768;
@@ -8550,6 +8510,121 @@ function errMessage(error) {
8550
8510
  return parts.join(": caused by ").slice(0, maxMessageLength);
8551
8511
  }
8552
8512
  //#endregion
8513
+ //#region src/runtime/retained-native-stop.ts
8514
+ /** One request per run: every caller that stops the same execution replays one provider operation,
8515
+ * so the operation id and its reason never disagree across a teardown and a release. */
8516
+ const NATIVE_STOP_REASON = "Runtime stopped the native harness: its execution is no longer observed";
8517
+ /** How often a stop the provider accepted asynchronously reads the run's status. */
8518
+ const STOP_STATUS_POLL_MS = 1e3;
8519
+ /**
8520
+ * Stop the native harness process of a retained execution that Runtime no longer observes.
8521
+ *
8522
+ * A retained execution outlives its local stream by design, so an aborted observer can reconnect.
8523
+ * Keeping its environment preserves the files; it must not keep the harness running. Measured on
8524
+ * Discovery: after `disco cancel` on 2026-10-04 the kept root box ran `claude --print` for two
8525
+ * more minutes, untraced and charged to the subscription, until an operator stopped the box; on
8526
+ * 2026-10-03 a cancelled run kept 18 boxes whose `claude` processes ran until an operator stopped
8527
+ * them. The provider's exact cancellation stops the process; the box and its files stay.
8528
+ *
8529
+ * The operation id is derived from the run reference, so a repeated stop replays the first one.
8530
+ * Never rejects: the answer is evidence for the teardown receipt.
8531
+ */
8532
+ async function stopRetainedNativeExecution(options) {
8533
+ const now = options.now ?? Date.now;
8534
+ const executionId = options.controlRef.executionId;
8535
+ const operationId = `runtime-native-stop-${canonicalCandidateDigest({
8536
+ kind: "runtime-native-stop.v1",
8537
+ run: options.controlRef
8538
+ }).slice(7)}`;
8539
+ let effect = "unknown";
8540
+ const stop = async () => {
8541
+ const handle = options.handle ?? await reconnectRetainedRun({
8542
+ provider: options.provider,
8543
+ controlRef: options.controlRef
8544
+ });
8545
+ if (handle === null) return "not_live";
8546
+ const cancellation = await handle.cancel({
8547
+ operationId,
8548
+ reason: NATIVE_STOP_REASON,
8549
+ signal: options.signal
8550
+ });
8551
+ effect = cancellation.status === "conflict" ? "unknown" : cancellation.effect;
8552
+ while (effect === "cancel_requested") {
8553
+ await sleep(STOP_STATUS_POLL_MS, options.signal);
8554
+ const current = await handle.status({ signal: options.signal });
8555
+ if (current.effect === "cancelled" || current.effect === "not_live") effect = current.effect;
8556
+ }
8557
+ return effect;
8558
+ };
8559
+ try {
8560
+ effect = await awaitAbortable$1(stop(), options.signal);
8561
+ return {
8562
+ executionId,
8563
+ effect,
8564
+ at: new Date(now()).toISOString()
8565
+ };
8566
+ } catch (error) {
8567
+ return {
8568
+ executionId,
8569
+ effect: effect === "cancel_requested" ? effect : "unknown",
8570
+ at: new Date(now()).toISOString(),
8571
+ error: errorText(error instanceof Error ? error.message : error).slice(0, 512)
8572
+ };
8573
+ }
8574
+ }
8575
+ /**
8576
+ * The teardown-receipt text for stopped executions. A killed harness never reports the usage of
8577
+ * its last turn, so the receipt says so instead of letting a reader take the settled spend as
8578
+ * complete.
8579
+ */
8580
+ function describeRetainedNativeStops(stops) {
8581
+ return stops.map((stop) => {
8582
+ if (stop.effect === "cancelled") return `native execution ${stop.executionId} stopped at ${stop.at}; usage unknown: killed at ${stop.at}`;
8583
+ if (stop.effect === "not_live") return `native execution ${stop.executionId} was not live at ${stop.at}`;
8584
+ return `native execution ${stop.executionId} stop unconfirmed at ${stop.at} (effect ${stop.effect}${stop.error === void 0 ? "" : `: ${stop.error}`}); it may still be running`;
8585
+ }).join("; ");
8586
+ }
8587
+ //#endregion
8588
+ //#region src/runtime/supervise/cost-estimate.ts
8589
+ /**
8590
+ * Pricing for work that arrived without a provider receipt.
8591
+ *
8592
+ * A turn whose provider reported no billed dollars used to reach the dollar channel as a
8593
+ * known `$0`, so a run that certainly spent money reported a dollar total of zero. A catalog
8594
+ * price is not a receipt, so what this module produces is always marked, never promoted.
8595
+ */
8596
+ /**
8597
+ * Price one unit of work that no provider receipt covered.
8598
+ *
8599
+ * The event always carries `usdKnown: false`: a catalog price approximates what a provider
8600
+ * WOULD bill, never measures what it did. The priced amount is repeated in `usdEstimated` so
8601
+ * a consumer can subtract it from `usd` and recover the dollars a provider actually billed.
8602
+ *
8603
+ * A model with no catalog entry yields `usd: 0` with `usdKnown: false` and no `usdEstimated`.
8604
+ * The turn then reads as unknown dollars, which is true, rather than as a free turn.
8605
+ */
8606
+ function priceUnreceiptedWork(work) {
8607
+ const unknown = {
8608
+ kind: "cost",
8609
+ usd: 0,
8610
+ usdKnown: false,
8611
+ provenance: "uncaptured"
8612
+ };
8613
+ const { inputTokens, outputTokens, model } = work;
8614
+ if (model === void 0 || !isModelPriced(model)) return unknown;
8615
+ if (!Number.isFinite(inputTokens) || !Number.isFinite(outputTokens)) return unknown;
8616
+ if (inputTokens < 0 || outputTokens < 0) return unknown;
8617
+ const usd = estimateCost(inputTokens, outputTokens, model);
8618
+ if (!Number.isFinite(usd) || usd <= 0) return unknown;
8619
+ return {
8620
+ kind: "cost",
8621
+ usd,
8622
+ usdKnown: false,
8623
+ usdEstimated: usd,
8624
+ provenance: "catalog-estimate"
8625
+ };
8626
+ }
8627
+ //#endregion
8553
8628
  //#region src/runtime/supervise/budget.ts
8554
8629
  /**
8555
8630
  *
@@ -11150,6 +11225,9 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
11150
11225
  let workspaceRunActive = false;
11151
11226
  let providerSessionId = null;
11152
11227
  let workspaceControlRef;
11228
+ let nativeStop;
11229
+ let runSignal;
11230
+ const cancelledExplicitly = () => ctx.signal?.reason instanceof RunCancellationReason || runSignal?.reason instanceof RunCancellationReason;
11153
11231
  const runtime = options.runtime ?? provider.name;
11154
11232
  const createProfile = options.profileForCreate?.(profile) ?? profile;
11155
11233
  if (placement && canonicalAgentProfileDigest(createProfile) !== canonicalAgentProfileDigest(profile)) throw new ValidationError("provider placement: profileForCreate cannot change the selected profile");
@@ -11312,6 +11390,51 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
11312
11390
  workspaceCleanupPromise = cleanupReference;
11313
11391
  return await cleanupReference;
11314
11392
  };
11393
+ /**
11394
+ * Stop the native harness of this executor's retained execution. Local observation ending does
11395
+ * not stop a retained execution, so an environment kept after it keeps its harness spending
11396
+ * unless the provider is asked to stop it. Undefined when nothing was dispatched.
11397
+ */
11398
+ const stopNativeExecution = () => {
11399
+ if (nativeStop !== void 0) return nativeStop;
11400
+ const controlRef = retained?.controlRef ?? admittedControlRef(retention);
11401
+ if (controlRef === void 0) return Promise.resolve(void 0);
11402
+ const stopping = stopRetainedNativeExecution({
11403
+ provider,
11404
+ controlRef,
11405
+ ...retained === void 0 ? {} : { handle: retained },
11406
+ signal: AbortSignal.timeout(NATIVE_STOP_TIMEOUT_MS)
11407
+ }).then((stop) => {
11408
+ if (stop.effect !== "cancelled" && stop.effect !== "not_live" && nativeStop === stopping) nativeStop = void 0;
11409
+ return stop;
11410
+ });
11411
+ nativeStop = stopping;
11412
+ return stopping;
11413
+ };
11414
+ /**
11415
+ * A release that keeps an environment keeps its files, never its running harness. The root has
11416
+ * settled and no process will reconcile this execution, so its native process stops before the
11417
+ * release records what it kept.
11418
+ */
11419
+ const withoutRunningHarness = (release) => async (signal) => {
11420
+ const receipts = await release(signal);
11421
+ if (receipts.every((receipt) => receipt.destroyed)) return receipts;
11422
+ const stop = await awaitAbortable$1(stopNativeExecution(), signal).catch((error) => {
11423
+ const controlRef = retained?.controlRef ?? admittedControlRef(retention);
11424
+ return controlRef === void 0 ? void 0 : {
11425
+ executionId: controlRef.executionId,
11426
+ effect: "unknown",
11427
+ at: (/* @__PURE__ */ new Date()).toISOString(),
11428
+ error: errorText(error instanceof Error ? error.message : error)
11429
+ };
11430
+ });
11431
+ if (stop === void 0) return receipts;
11432
+ const stopped = describeRetainedNativeStops([stop]);
11433
+ return receipts.map((receipt) => receipt.destroyed ? receipt : {
11434
+ ...receipt,
11435
+ detail: receipt.detail ? `${receipt.detail}; ${stopped}` : stopped
11436
+ });
11437
+ };
11315
11438
  const attemptId = node?.attemptId ?? newExecutionAttemptId(executionId);
11316
11439
  const trace = createPushTraceSource({ runId: executionId });
11317
11440
  const providerModel = concreteProfileModel(createProfile);
@@ -11362,6 +11485,7 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
11362
11485
  const run = async function* (task, signal, recovering = false) {
11363
11486
  beginWorkspaceExecution();
11364
11487
  const linked = linkAbort(ctx.signal, signal, controller.signal);
11488
+ runSignal = linked.signal;
11365
11489
  try {
11366
11490
  const executionStartedAt = Date.now() - (retention?.priorSpent?.ms ?? 0);
11367
11491
  let invocation = {
@@ -11507,6 +11631,7 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
11507
11631
  },
11508
11632
  async teardown(_grace) {
11509
11633
  controller.abort();
11634
+ if (pending && cancelledExplicitly()) stopNativeExecution();
11510
11635
  if (options.workspaceRetention !== void 0 && workspaceRunActive) return {
11511
11636
  destroyed: false,
11512
11637
  detail: "provider workspace retention: source preserved while the execution is still active"
@@ -11529,7 +11654,7 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
11529
11654
  ...preserved ? { keptFor: "evidence" } : {}
11530
11655
  }];
11531
11656
  },
11532
- async releaseRetained(signal) {
11657
+ releaseRetained: withoutRunningHarness(async (signal) => {
11533
11658
  controller.abort();
11534
11659
  if (!pending) return [];
11535
11660
  const environmentId = retained?.controlRef.environmentId ?? environment?.id ?? admittedEnvironmentId(retention);
@@ -11577,7 +11702,7 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
11577
11702
  });
11578
11703
  retainedReleasePromise = releaseReference;
11579
11704
  return await releaseReference;
11580
- },
11705
+ }),
11581
11706
  resultArtifact() {
11582
11707
  if (!artifact) throw new ValidationError(`providerAsExecutor(${provider.name}): resultArtifact() read before stream drained`);
11583
11708
  return artifact;
@@ -11587,6 +11712,12 @@ function createProviderExecutor(provider, profile, ctx, options, placement) {
11587
11712
  };
11588
11713
  return attestRuntimeOwnedPendingExecutor(executor, runtime, plannedDeclaration, plannedBinding);
11589
11714
  }
11715
+ /** The exact run the latest durable dispatch names, when dispatch got that far. */
11716
+ function admittedControlRef(retention) {
11717
+ for (const admission of [...retention?.admissions ?? []].reverse()) if (admission.phase === "dispatched") return admission.controlRef;
11718
+ }
11719
+ /** Bounds one provider stop: a reconnect, the exact cancellation and its status read. */
11720
+ const NATIVE_STOP_TIMEOUT_MS = 3e4;
11590
11721
  /** The environment id the latest durable admission names, when creation got that far. */
11591
11722
  function admittedEnvironmentId(retention) {
11592
11723
  for (const admission of [...retention?.admissions ?? []].reverse()) {
@@ -23303,6 +23434,19 @@ async function releaseScopeRetainedOwnerEnvironment(scope) {
23303
23434
  if (!permanent) retriable = true;
23304
23435
  }
23305
23436
  }
23437
+ if (!destroyed) {
23438
+ const runs = unsettledOwnerRuns(events, args.nodeId, environmentId);
23439
+ if (runs.length > 0) {
23440
+ const stops = await Promise.all(runs.map((controlRef) => stopRetainedNativeExecution({
23441
+ provider,
23442
+ controlRef,
23443
+ signal: AbortSignal.timeout(3e4),
23444
+ now: args.now
23445
+ })));
23446
+ detail = `${detail}; ${describeRetainedNativeStops(stops)}`;
23447
+ lastDetail = detail;
23448
+ }
23449
+ }
23306
23450
  await args.journal.appendEvent(args.rootId, {
23307
23451
  kind: "environment-teardown",
23308
23452
  id: args.nodeId,
@@ -23345,6 +23489,26 @@ async function releaseScopeRetainedOwnerEnvironment(scope) {
23345
23489
  ...lastDetail === void 0 ? {} : { detail: lastDetail }
23346
23490
  }, ...checkpointTeardowns] : checkpointTeardowns;
23347
23491
  }
23492
+ /**
23493
+ * The owner's dispatched executions in one environment whose turn committed no result. A turn
23494
+ * with a result has ended; one without may still be running even after a later turn started.
23495
+ */
23496
+ function unsettledOwnerRuns(events, nodeId, environmentId) {
23497
+ const runs = /* @__PURE__ */ new Map();
23498
+ let turn = [];
23499
+ const close = () => {
23500
+ for (const controlRef of turn) runs.set(contentAddress(controlRef), controlRef);
23501
+ turn = [];
23502
+ };
23503
+ for (const event of events) {
23504
+ if (!("id" in event) || event.id !== nodeId) continue;
23505
+ if (event.kind === "execution-input") close();
23506
+ else if (event.kind === "execution-result") turn = [];
23507
+ else if (event.kind === "execution-admitted" && event.admission.phase === "dispatched" && event.admission.controlRef.environmentId === environmentId) turn.push(event.admission.controlRef);
23508
+ }
23509
+ close();
23510
+ return [...runs.values()];
23511
+ }
23348
23512
  /** Group owner admissions by input and require a verified workspace receipt before deletion. */
23349
23513
  async function ownerWorkspaceRetentionFailures(events, nodeId, blobs) {
23350
23514
  const attempts = [];
@@ -28893,4 +29057,4 @@ function isNonEmptySpend(s) {
28893
29057
  //#endregion
28894
29058
  export { bindScopeRetainedOwnerProvider as $, detachedFrozen as $i, parseWorkerToolTraceArtifact as $n, sanitizeRuntimeStreamEvent as $r, isPeerMailEnvelope as $t, driverExecutorFactory as A, addResourceSpend as Aa, prepareJsonlAppend as Ai, resolveAgentEnvironmentProvider as An, contentAddress as Ar, createExecutor as At, recordScopeOwnerDriverAttempt as B, promptFromAgentTurnInput as Ba, newExecutionAttemptId as Bi, InMemoryResultBlobStore as Bn, buildRuntimeEventOtelSpans as Br, workerTraceEnv as Bt, createContinuationKeeper as C, sleep as Ca, renderProfileMaterializationIssues as Ci, readPromptOptions as Cn, runAbortable as Cr, freeSlots as Ct, passedItems as D, unmeteredSpend as Da, validateProfileMaterialization as Di, createAgentEnvironmentProviderRegistry as Dn, readHarnessTranscript as Dr, captureReusableExecutorConfig as Dt, failedItems as E, throwIfAborted as Ea, unsupportedProfileDimensions as Ei, LEAF_CONTINUATION_TASK as En, persistHarnessTranscript as Er, bindReusableExecutorExecutionId as Et, beginScopeOwnerAttempt as F, awaitAbortable$1 as Fa, authoredProfileDigest as Fi, sandboxSessionTraceSource as Fn, defaultRedactor as Fr, createSteerableSandboxSession as Ft, settledToIteration as G, runtimeOwnedExecutorMaterialization as Gi, insideCursorNamespace as Gn, loopEventToOtelSpan as Gr, createActivityLog as Gt, recordScopeOwnerPause as H, providerMessageText as Ha, recordRuntimeOwnedDriveHarnessProviderEvidence as Hi, SpawnEventIndex as Hn, createOtelExporter as Hr, workerTraceSeamKey as Ht, createScope as I, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Ia, finalizeRuntimeOwnedPendingExecutor as Ii, registerRetainedExecutorPreparation as In, defaultRedactorIdentityMaterial as Ir, createRouterTranscript as It, pollFor as J, runtimeOwnedScopeOwnerRuntime as Ji, pendingWaits as Jn, toOtelAttributes as Jr, AUTHORITY_MARKERS as Jt, createWaitProbes as K, runtimeOwnedExecutorProviderEvidence as Ki, loadSpawnForest as Kn, padSpanId as Kr, readWorkerProgress as Kt, deriveNodeExecutionIdentity as L, armDeadlineTimer as La, inheritRuntimeOwnedExecutorAttestation as Li, retainedExecutorSeamKey as Ln, resolveRedactor as Lr, createInPlaceCliExecutor as Lt, withDriverExecutor as M, withBudgetResources as Ma, writeAllBytes as Mi, unavailableSignalOfFailure as Mn, mergeTraceEnv as Mr, snapshotExecutorConfig as Mt, SUBTREE_RESULT_LIMIT as N, decodeHarnessUsage as Na, attestRuntimeOwnedPendingExecutor as Ni, createPushTraceSource as Nn, readTraceContextFromEnv as Nr, createWorktreeCliExecutor as Nt, verdictFromJudgeScore as O, withTimeout as Oa, worktreeCliProfileMaterialization as Oi, providerAsExecutor as On, resolveHarnessTranscriptCapture as Or, cliInPlaceExecutor as Ot, assertRecursiveReservationPolicy as P, abortError$2 as Pa, attestRuntimeOwnedScopeOwner as Pi, decodeToolPart as Pn, traceContextToEnv as Pr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Pt, bindScopeRetainedOwnerEnvironmentId as Q, executableAgentSpecSnapshot as Qi, isTraceAnalysisStore as Qn, sanitizeKnowledgeReadinessReport as Qr, createPeerMailbox as Qt, meterRuntimeOwnedAccounting as R, teardownExecutor as Ra, knownExecutionBindingReceipt as Ri, FileResultBlobStore as Rn, buildLoopOtelSpans as Rr, WORKER_TRACE_PROPAGATION as Rt, composeContinuationNote as S, randomSuffix as Sa, promptResourceProfileMaterialization as Si, assertBoxlessPromptOptions as Sn, linkAbort as Sr, startRetainedInteractiveRun as St, expandQuestions as T, throwAbort as Ta, sandboxActProfileMaterialization as Ti, runBrainLoop as Tn, harnessTranscriptArtifact as Tr, rollingDispatch as Tt, restoreScopeOwnerAcceptedExecution as U, runtimeOwnedDriveHarnessProviderEvidence as Ui, assertContentAddress as Un, flatOtelSpan as Ur, taskToPrompt as Ut, recordScopeOwnerMaterialization as V, promptOptionsFromAgentTurnInput as Va, providerAttemptEvidence as Vi, InMemorySpawnJournal as Vn, createOpenInferenceFileExporter as Vr, workerTraceHeaders as Vt, scopeOwnerExecutorNodeContext as W, runtimeOwnedExecutorExecutionBinding as Wi, encodeResultBlob as Wn, generateSpanId as Wr, DEFAULT_STALL_AFTER_MS as Wt, validateWaitSpec as X, unknownMaterializationReceipt as Xi, WORKER_TOOL_TRACE_SCHEMA_VERSION as Xn, createRuntimeStreamEventCollector as Xr, PEER_MAIL_WIRE_KEY as Xt, timerAt as Y, unknownExecutionBindingReceipt as Yi, replaySpawnTree as Yn, createRuntimeEventCollector as Yr, DEFAULT_PEER_MAIL_LIMITS as Yt, waitUntil as Z, executableAgentProfileSnapshot as Zi, captureWorkerTraceEvidence as Zn, sanitizeAgentRuntimeEvent as Zr, claimsAuthority as Zt, CheckUnavailableError as _, cloneSpend as _a, fullProfileMaterialization as _i, createSandboxLineage as _n, environmentGone as _r, readWorkerInteractiveBinding as _t, collectDelivered as a, createSandboxToolPartState as aa, DEFAULT_LOCAL_HARNESS as ai, bridgeModelRouteRefusal as an, createBudgetPool as ar, scopeRetainedOwnerPriorSpend as at, bestComposite as b, isAbortError$2 as ba, promptModelProfileMaterialization as bi, SandboxEvidenceRetentionError as bn, RunCancellationReason as br, reconnectRetainedInteractiveRun as bt, runTree as c, isSandboxTerminalEvent as ca, harnessSupportsReasoningEffort as ci, harnessUsageIsEmpty as cn, spendFromUsageEvents as cr, scopeRetainedOwnerResult as ct, classifyDriverFailure as d, notifySandboxEventObserver as da, CodexExecutionDiagnosticError as di, bridgeStopSignalKey as dn, reconnectRetainedRun as dr, hostDirectoryReader as dt, detachedSnapshot as ea, runSettledCommand as ei, peerMailTools as en, workerTraceAnalysisStore as er, consumeScopeRetainedOwnerResult as et, runDriverWithRetry as f, sandboxEventServedBackend as fa, terminateProcessTreeAndConfirm as fi, TERMINAL_DECISIONS as fn, recoverRetainedRun as fr, resolveSpawnResourcePaths as ft, CONTINUATION_FACTS as g, chargedTokens as ga, defineProfileMaterializationContract as gi, runAgentRounds as gn, destroyInteractiveEnvironment as gr, attachWorker as gt, CONTINUATIONS_DIR as h, addSpend as ha, controlProfileMaterialization as hi, isTerminalDecision as hn, retainedCreateMaterial as hr, workerInteractiveAdmissionFile as ht, bestDelivered as i, canonicalStreamEventFromSandboxEvent as ia, removeWorktree as ii, bridgeAdmissionRefusal as in, assertValidBudget as ir, scopeRetainedOwnerContext as it, isDriverSpec as j, resourceTelemetry as ja, readCommittedJsonLines as ji, unavailablePauseMs as jn, createPropagatingTraceEmitter as jr, createExecutorRegistry as jt, driverChild as k, zeroSpend as ka, isNoEntError as ki, providerAsSandboxClient as kn, retainHarnessTranscript as kr, cliWorktreeExecutor as kt, DriverAttemptsExhaustedError as l, mapSandboxEvent as la, localHarnessExecutable as li, readCodexRolloutSession as ln, spendFromUsageTotals as lr, SPAWN_RESOURCE_PATH_MAX_BYTES as lt, upstreamUnavailableSignal as m, sumSandboxUsage as ma, assertProfileMaterialization as mi, defaultSelectWinner as mn, startRetainedRunInEnvironment as mr, readWorkerInteractiveAdmissions as mt, createRootHandle as n, readSandboxOutcome as na, captureWorktreeDiff as ni, isLiveNodeStatus as nn, BudgetReconcileFault as nr, prepareScopeRetainedOwnerTask as nt, pickBestDelivered as o, createSandboxUsageLedger as oa, LOCAL_HARNESSES as oi, addHarnessUsage as on, meterUsageEvent as or, scopeRetainedOwnerResourceReader as ot, summarizeDriverAttempts as p, sandboxProgressEvents as pa, AGENT_PROFILE_MATERIALIZATION_AXES as pi, createSandboxForSpec as pn, startRetainedRun as pr, interactiveAdmissionSeamKey as pt, isWaitOutcome as q, runtimeOwnedPendingExecutorMaterialization as qi, materializeTreeView as qn, padTraceId as qr, createInbox as qt, createSupervisor as r, assertSandboxServedModel as ra, createWorktree as ri, isTerminalNodeStatus as rn, ReservationWaitRefused as rr, reconcileScopeRetainedOwnerEnvironment as rt, runFinalizer as s, extractLlmCallEvent as sa, harnessInvocation as si, createCodexRolloutStoreReader as sn, newUsageTotals as sr, scopeRetainedOwnerRestorePoint as st, DEFAULT_MAX_DEPTH as t, projectSandboxOutcome as ta, runWorktreeHarness as ti, peerMailVerbNames as tn, executorFailure as tr, noteScopeRetainedOwnerCoordination as tt, HarnessTurnFailedError as u, mapSandboxToolEvent as ua, parseCodexTokenUsage as ui, bridgeRuntimeAttachmentsKey as un, errMessage as ur, environmentReader as ut, admitContinuationPolicy as v, deleteBoxSafe as va, profileMaterializationAxes$1 as vi, probeSandboxCapabilities as vn, createWorkerSlots as vr, workerInteractiveBindingFile as vt, distillFindings as w, stringifySafe as wa, renderUnsupported as wi, routerBrain as wn, captureHarnessTranscript as wr, queueOf as wt, checkVerdictOf as x, promptCacheTokenClasses as xa, promptOnlyProfileMaterialization as xi, captureBeforeDestroy as xn, abortError as xr, recoverRetainedInteractiveRun as xt, admitFinding as y, hasCompleteCacheBreakdown as ya, promptControlProfileMaterialization as yi, acquireSandbox as yn, openSlotGroup as yr, workerInteractiveBindingsDir as yt, meterRuntimeOwnedProviderAttempt as z, teardownSurfaces as za, knownMaterializationReceipt as zi, FileSpawnJournal as zn, buildLoopSpanNodes as zr, readWorkerTraceContext as zt };
28895
29059
 
28896
- //# sourceMappingURL=supervisor-Rov7xW0j.js.map
29060
+ //# sourceMappingURL=supervisor-tuUW4dMo.js.map