@tangle-network/agent-runtime 0.333.1 → 0.335.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 (67) hide show
  1. package/dist/{activation-BiJHZQ7_.js → activation-BT3VoIpg.js} +3 -3
  2. package/dist/{activation-BiJHZQ7_.js.map → activation-BT3VoIpg.js.map} +1 -1
  3. package/dist/{activation-BGZ0rVuv.d.ts → activation-DZbEj4oG.d.ts} +2 -2
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/{bundle-DqvlwhKP.js → bundle-CMGJKcl6.js} +2 -2
  7. package/dist/{bundle-DqvlwhKP.js.map → bundle-CMGJKcl6.js.map} +1 -1
  8. package/dist/candidate-execution/index.js +5 -5
  9. package/dist/{coordination-driver-NpDEfkvT.js → coordination-driver-rNoFHYmZ.js} +36 -15
  10. package/dist/coordination-driver-rNoFHYmZ.js.map +1 -0
  11. package/dist/{delegate-D8fWCoxb.js → delegate-BdwThtY9.js} +2 -2
  12. package/dist/{delegate-D8fWCoxb.js.map → delegate-BdwThtY9.js.map} +1 -1
  13. package/dist/durable.d.ts +1 -1
  14. package/dist/durable.js +5 -5
  15. package/dist/{graph-BWg5yNC7.js → graph-Bph_DX-z.js} +5 -4
  16. package/dist/graph-Bph_DX-z.js.map +1 -0
  17. package/dist/{improvement-cycle-CL2GGCQq.js → improvement-cycle-Coj69usO.js} +6 -6
  18. package/dist/{improvement-cycle-CL2GGCQq.js.map → improvement-cycle-Coj69usO.js.map} +1 -1
  19. package/dist/index.d.ts +4 -4
  20. package/dist/index.js +9 -9
  21. package/dist/intelligence.d.ts +2 -2
  22. package/dist/intelligence.js +7 -7
  23. package/dist/kernel.d.ts +2 -2
  24. package/dist/kernel.js +10 -10
  25. package/dist/{loop-runner-bin-Cx6nXmMP.js → loop-runner-bin-9MtarSBu.js} +3 -3
  26. package/dist/{loop-runner-bin-Cx6nXmMP.js.map → loop-runner-bin-9MtarSBu.js.map} +1 -1
  27. package/dist/{loop-runner-bin-CaH_49Ts.d.ts → loop-runner-bin-BTC2czoj.d.ts} +2 -2
  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 +26 -7
  31. package/dist/mcp/bin.js.map +1 -1
  32. package/dist/mcp/index.d.ts +2 -2
  33. package/dist/mcp/index.js +5 -5
  34. package/dist/{openai-tools-BhO6-5ff.d.ts → openai-tools-DWuf9K9X.d.ts} +2 -2
  35. package/dist/{prepare-0kTqt9qn.js → prepare-Ci9Wrle5.js} +3 -3
  36. package/dist/{prepare-0kTqt9qn.js.map → prepare-Ci9Wrle5.js.map} +1 -1
  37. package/dist/{profile-DhZvQngF.js → profile-BAwFYsOE.js} +2 -2
  38. package/dist/{profile-DhZvQngF.js.map → profile-BAwFYsOE.js.map} +1 -1
  39. package/dist/profiles.d.ts +1 -1
  40. package/dist/{protected-model-port-CFQj32Lt.js → protected-model-port-DZUkB0cr.js} +4 -4
  41. package/dist/{protected-model-port-CFQj32Lt.js.map → protected-model-port-DZUkB0cr.js.map} +1 -1
  42. package/dist/{provision-supervisor-Csm4ZzSd.js → provision-supervisor-Ced9EeHy.js} +4 -4
  43. package/dist/{provision-supervisor-Csm4ZzSd.js.map → provision-supervisor-Ced9EeHy.js.map} +1 -1
  44. package/dist/{runtime-BeuNt-n3.js → runtime-DMVBv34m.js} +67 -17
  45. package/dist/runtime-DMVBv34m.js.map +1 -0
  46. package/dist/{sandbox-profile-compat-CVgQWb7T.js → sandbox-profile-compat-D_ZOL80S.js} +3 -2
  47. package/dist/sandbox-profile-compat-D_ZOL80S.js.map +1 -0
  48. package/dist/{search-executor-wqvqoJZS.js → search-executor-BNTeMygV.js} +3 -3
  49. package/dist/{search-executor-wqvqoJZS.js.map → search-executor-BNTeMygV.js.map} +1 -1
  50. package/dist/{server-DheSbIyd.js → server-z7xI_ItY.js} +4 -4
  51. package/dist/{server-DheSbIyd.js.map → server-z7xI_ItY.js.map} +1 -1
  52. package/dist/{supervise-C8oeQwrk.js → supervise-ISaRiWVe.js} +56 -9
  53. package/dist/supervise-ISaRiWVe.js.map +1 -0
  54. package/dist/{supervisor-B4sM2Xu2.js → supervisor-B-bkXttM.js} +325 -41
  55. package/dist/supervisor-B-bkXttM.js.map +1 -0
  56. package/dist/testing.d.ts +1 -1
  57. package/dist/testing.js +14 -14
  58. package/dist/tui/index.d.ts +1 -1
  59. package/dist/tui/index.js +1 -1
  60. package/dist/{types-CsDKtdE3.d.ts → types-BO8kh52C.d.ts} +89 -6
  61. package/package.json +3 -3
  62. package/dist/coordination-driver-NpDEfkvT.js.map +0 -1
  63. package/dist/graph-BWg5yNC7.js.map +0 -1
  64. package/dist/runtime-BeuNt-n3.js.map +0 -1
  65. package/dist/sandbox-profile-compat-CVgQWb7T.js.map +0 -1
  66. package/dist/supervise-C8oeQwrk.js.map +0 -1
  67. package/dist/supervisor-B4sM2Xu2.js.map +0 -1
@@ -1,11 +1,11 @@
1
1
  import { n as assertNoSymlinkDescendant } from "./durable-file-B_eJr6Mb.js";
2
- import { $n as persistHarnessTranscript, $t as admitContinuationPolicy, A as bindScopeRetainedOwnerProvider, B as scopeRetainedOwnerRestorePoint, C as recordScopeOwnerPause, Ca as spendFromUsageTotals, Cr as toOtelAttributes, D as abandonScopeRetainedOwnerInvocation, Dt as createActivityLog, En as routerBrain, F as reconcileScopeRetainedOwnerEnvironment, Ft as isPeerMailEnvelope, Gr as controlProfileMaterialization, H as scopeRetainedOwnerTurnEnded, I as scopeRetainedOwnerContext, In as bridgeRuntimeAttachmentsKey, J as coordinationProfileToolPrefix, Jr as profileMaterializationAxes$1, Jt as authoredSeatStages, Kr as defineProfileMaterializationContract, Kt as SeatChain, L as scopeRetainedOwnerJournalRoot, Ln as bridgeStopSignalKey, M as noteScopeRetainedOwnerCoordination, Mn as resolveAgentEnvironmentProvider, Mt as PEER_MAIL_WIRE_KEY, N as prepareScopeRetainedOwnerSeatSwitch, Ni as registerRetainedExecutorPreparation, O as beginScopeRetainedOwnerDrive, P as prepareScopeRetainedOwnerTask, Pi as retainedExecutorSeamKey, Qt as CheckUnavailableError, R as scopeRetainedOwnerPriorSpend, Rt as isLiveNodeStatus, S as recordScopeOwnerMaterialization, Si as runtimeOwnedScopeOwnerRuntime, T as scopeOwnerExecutorNodeContext, Ur as assertProfileMaterialization, Ut as runDriverWithRetry, V as scopeRetainedOwnerResult, Vt as HarnessTurnFailedError, Wt as summarizeDriverAttempts, X as runtimeGraphMetadataKey, Xn as runAbortable, Xr as promptModelProfileMaterialization, Xt as CONTINUATIONS_DIR, Y as providerVisibleProfile, Yn as linkAbort, Yr as promptControlProfileMaterialization, Yt as seatExecutionProfile, _ as deriveNodeExecutionIdentity, _i as runtimeOwnedDriveHarnessProviderEvidence, _r as createOtelExporter, ai as worktreeCliProfileMaterialization, b as noteScopeOwnerPlannedExecution, ba as meterUsageEvent, bi as runtimeOwnedExecutorProviderEvidence, bt as WORKER_TRACE_PROPAGATION, c as runTree, ci as authoredAgentIdentity, ct as bindReusableExecutorExecutionId, d as isDriverSpec, da as contentAddress, di as inheritRuntimeOwnedExecutorAttestation, ei as renderUnsupported, er as readHarnessTranscript, ft as createExecutor, gi as recordRuntimeOwnedDriveHarnessProviderEvidence, h as beginScopeOwnerAttempt, ha as errMessage, hi as providerAttemptEvidence, i as bestDelivered, j as consumeScopeRetainedOwnerResult, k as bindScopeRetainedOwnerEnvironmentId, kt as createInbox, l as driverChild, la as parseWorkerToolTraceArtifact, ln as bridgeAdmissionRefusal, lt as captureReusableExecutorConfig, m as assertRecursiveReservationPolicy, ma as executorFailure, mt as snapshotExecutorConfig, n as createRootHandle, ni as sandboxProfileMaterialization, nn as checkVerdictOf, ot as gateOnDeliverable, pa as detachedSnapshot, q as coordinationMcpAlias, qn as RunCancellationReason, qr as fullProfileMaterialization, qt as SeatChainExhaustedError, r as createSupervisor, ri as unsupportedProfileDimensions, rn as createContinuationKeeper, s as runFinalizer, si as attestRuntimeOwnedScopeOwner, tn as bestComposite, u as driverExecutorFactory, un as bridgeModelRouteRefusal, v as meterRuntimeOwnedAccounting, va as assertValidBudget, vi as runtimeOwnedExecutorExecutionBinding, vt as createRouterTranscript, w as restoreScopeOwnerAcceptedExecution, x as recordScopeOwnerDriverAttempt, xa as newUsageTotals, xi as runtimeOwnedPendingExecutorMaterialization, y as meterRuntimeOwnedProviderAttempt, yi as runtimeOwnedExecutorMaterialization, yr as generateSpanId, z as scopeRetainedOwnerResourceReader } from "./supervisor-B4sM2Xu2.js";
2
+ import { A as bindScopeRetainedOwnerEnvironmentId, At as createInbox, B as scopeRetainedOwnerResourceReader, C as recordScopeOwnerMaterialization, Ca as newUsageTotals, Ci as runtimeOwnedPendingExecutorMaterialization, E as scopeOwnerExecutorNodeContext, F as prepareScopeRetainedOwnerTask, Fi as registerRetainedExecutorPreparation, Gr as assertProfileMaterialization, Gt as summarizeDriverAttempts, H as scopeRetainedOwnerResult, Ht as HarnessTurnFailedError, I as reconcileScopeRetainedOwnerEnvironment, Ii as retainedExecutorSeamKey, It as isPeerMailEnvelope, J as coordinationMcpAlias, Jr as defineProfileMaterializationContract, Jt as SeatChainExhaustedError, L as scopeRetainedOwnerContext, M as consumeScopeRetainedOwnerResult, N as noteScopeRetainedOwnerCoordination, Nt as PEER_MAIL_WIRE_KEY, O as abandonScopeRetainedOwnerInvocation, On as routerBrain, Ot as createActivityLog, P as prepareScopeRetainedOwnerSeatSwitch, Pn as resolveAgentEnvironmentProvider, Qn as runAbortable, Qr as promptModelProfileMaterialization, Qt as CONTINUATIONS_DIR, R as scopeRetainedOwnerJournalRoot, Rn as bridgeRuntimeAttachmentsKey, S as recordScopeOwnerDriverAttempt, Sa as meterUsageEvent, Si as runtimeOwnedExecutorProviderEvidence, T as restoreScopeOwnerAcceptedExecution, Ta as spendFromUsageTotals, Tr as toOtelAttributes, U as scopeRetainedOwnerTurnEnded, V as scopeRetainedOwnerRestorePoint, Wt as runDriverWithRetry, X as providerVisibleProfile, Xr as profileMaterializationAxes$1, Xt as seatExecutionProfile, Y as coordinationProfileToolPrefix, Yn as RunCancellationReason, Yr as fullProfileMaterialization, Yt as authoredSeatStages, Z as runtimeGraphMetadataKey, Zn as linkAbort, Zr as promptControlProfileMaterialization, _a as errMessage, _i as providerAttemptEvidence, ai as unsupportedProfileDimensions, an as createContinuationKeeper, b as meterRuntimeOwnedProviderAttempt, ba as assertValidBudget, bi as runtimeOwnedExecutorExecutionBinding, c as runTree, d as isDriverSpec, da as parseWorkerToolTraceArtifact, dn as bridgeAdmissionRefusal, en as CheckUnavailableError, fn as bridgeModelRouteRefusal, g as beginScopeOwnerAttempt, ga as executorFailure, h as assertRecursiveReservationPolicy, ha as detachedSnapshot, ht as snapshotExecutorConfig, i as bestDelivered, ii as sandboxProfileMaterialization, in as checkVerdictOf, j as bindScopeRetainedOwnerProvider, k as beginScopeRetainedOwnerDrive, l as driverChild, li as attestRuntimeOwnedScopeOwner, lt as bindReusableExecutorExecutionId, n as createRootHandle, ni as renderUnsupported, nr as readHarnessTranscript, pa as contentAddress, pi as inheritRuntimeOwnedExecutorAttestation, pt as createExecutor, qr as controlProfileMaterialization, qt as SeatChain, r as createSupervisor, rn as bestComposite, s as runFinalizer, si as worktreeCliProfileMaterialization, st as gateOnDeliverable, tn as admitContinuationPolicy, tr as persistHarnessTranscript, u as driverExecutorFactory, ui as authoredAgentIdentity, ut as captureReusableExecutorConfig, v as deriveNodeExecutionIdentity, vi as recordRuntimeOwnedDriveHarnessProviderEvidence, w as recordScopeOwnerPause, wi as runtimeOwnedScopeOwnerRuntime, x as noteScopeOwnerPlannedExecution, xi as runtimeOwnedExecutorMaterialization, xr as generateSpanId, xt as WORKER_TRACE_PROPAGATION, y as meterRuntimeOwnedAccounting, yi as runtimeOwnedDriveHarnessProviderEvidence, yr as createOtelExporter, yt as createRouterTranscript, z as scopeRetainedOwnerPriorSpend, zn as bridgeStopSignalKey, zt as isLiveNodeStatus } from "./supervisor-B-bkXttM.js";
3
3
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
4
- import { $ as isAsyncIterable$1, Ot as teardownExecutor, U as addSpend, Y as errorMessage, at as sleep, dt as zeroSpend, gt as withBudgetResources, ht as resourceTelemetry, kt as teardownSurfaces, lt as unmeteredSpend, pt as addResourceSpend, ut as withTimeout, xt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS } from "./sandbox-profile-compat-CVgQWb7T.js";
4
+ import { $ as isAsyncIterable$1, Ot as teardownExecutor, U as addSpend, Y as errorMessage, at as sleep, dt as zeroSpend, gt as withBudgetResources, ht as resourceTelemetry, kt as teardownSurfaces, lt as unmeteredSpend, pt as addResourceSpend, ut as withTimeout, xt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS } from "./sandbox-profile-compat-D_ZOL80S.js";
5
5
  import { a as readCommittedJsonLines, n as isNoEntError, r as prepareJsonlAppend } from "./jsonl-file-DBv31uPi.js";
6
6
  import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, l as profileProviderModel, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-CyCUwHed.js";
7
7
  import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
8
- import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver-NpDEfkvT.js";
8
+ import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver-rNoFHYmZ.js";
9
9
  import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
10
10
  import { c as loadGraph, i as graphRegistry } from "./graph-registry-DAI6KNXB.js";
11
11
  import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-Cu8H7aeh.js";
@@ -3912,6 +3912,20 @@ const routerSupervisorProfileMaterialization = defineProfileMaterializationContr
3912
3912
  ]
3913
3913
  });
3914
3914
  /**
3915
+ * Which of a driver's budget channels are spent, with their numbers, or `undefined` while none is.
3916
+ * The bare 'supervisor budget exhausted' named no channel: on queens21-h22-capture-root-2-20261019c
3917
+ * workers capped at 42,000 tokens metered 7,324,356 to 13,190,478 in one turn, and nothing said so.
3918
+ */
3919
+ function exhaustedBudgetChannels(budget, nowMs) {
3920
+ const spent = [];
3921
+ if (budget.tokensLeft <= 0) spent.push(`tokens: ${-budget.tokensLeft} over the cap`);
3922
+ if (budget.usdCapped && budget.usdLeft <= 0) spent.push(`usd: ${(-budget.usdLeft).toFixed(4)} over the cap`);
3923
+ for (const [name, resource] of Object.entries(budget.resources ?? {})) if (!resource.known) spent.push(`resource ${name}: unmetered`);
3924
+ else if (resource.remaining <= 0) spent.push(`resource ${name}: ${-resource.remaining} ${resource.unit} over the cap`);
3925
+ if (budget.deadlineMs > 0 && nowMs >= budget.deadlineMs) spent.push(`deadline: passed ${Math.round((nowMs - budget.deadlineMs) / 1e3)} s ago`);
3926
+ return spent.length === 0 ? void 0 : spent.join("; ");
3927
+ }
3928
+ /**
3915
3929
  * The pre-flight `supervise` installs for a bridge backend. No new knob: the backend already says
3916
3930
  * where the bridge is, and these are the questions only the bridge can answer.
3917
3931
  *
@@ -3944,6 +3958,28 @@ function bridgeSpawnPreflight(seam) {
3944
3958
  };
3945
3959
  };
3946
3960
  }
3961
+ /**
3962
+ * The pre-flight for a provider backend: the provider's own `validateProfile`, before any box
3963
+ * exists. A profile the provider could never provision is refused here, and the refusal reaches
3964
+ * the manager's `spawn_worker` call naming each error's code and path, so the manager fixes the
3965
+ * profile instead of losing the worker. On Discovery run queens21-h22-capture-root-1-20261019c the
3966
+ * root wrote child profiles that mounted `/work/queens21_count.c` on a read-only root filesystem,
3967
+ * and 154 attempts across 4 workers each provisioned a box that could not take the mount.
3968
+ */
3969
+ function providerSpawnPreflight(provider) {
3970
+ const validate = provider.validateProfile?.bind(provider);
3971
+ if (validate === void 0) return void 0;
3972
+ return async (profile) => {
3973
+ const result = await validate(profile);
3974
+ const errors = result.issues.filter((issue) => issue.level === "error");
3975
+ if (result.ok && errors.length === 0) return void 0;
3976
+ const named = errors.map((issue) => `${issue.code}${issue.path === void 0 ? "" : ` at ${issue.path}`}: ${issue.message}`);
3977
+ return {
3978
+ cause: "unprovisionable-profile",
3979
+ detail: `provider ${provider.name} cannot provision this profile: ${named.length > 0 ? named.join("; ") : "validation failed without a named error"}`
3980
+ };
3981
+ };
3982
+ }
3947
3983
  /** Refuse a Runtime-managed child whose declared tools cannot exist on its execution path. */
3948
3984
  function profileToolSpawnPreflight(runtimeOwnsManager, canResolveProductTools) {
3949
3985
  return async (profile) => {
@@ -4203,7 +4239,10 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
4203
4239
  return;
4204
4240
  }
4205
4241
  const initialBudget = scope.budget;
4206
- if (!(scope.view.inFlight > 0) && (initialBudget.tokensLeft <= 0 || initialBudget.iterationsLeft <= 0 || initialBudget.usdCapped && initialBudget.usdLeft <= 0 || Object.values(initialBudget.resources ?? {}).some((resource) => !resource.known || resource.remaining <= 0) || initialBudget.deadlineMs > 0 && now() >= initialBudget.deadlineMs)) throw new ValidationError("driveHarnessFromBackend: supervisor budget exhausted");
4242
+ if (!(scope.view.inFlight > 0)) {
4243
+ const spent = [exhaustedBudgetChannels(initialBudget, now()), initialBudget.iterationsLeft <= 0 ? "iterations: none left" : void 0].filter((channel) => channel !== void 0).join("; ");
4244
+ if (spent !== "") throw new ValidationError(`driveHarnessFromBackend: supervisor budget exhausted (${spent})`);
4245
+ }
4207
4246
  const canonicalDriverProfile = agentProfileSchema.parse(authoredProfile);
4208
4247
  assertNoReservedCoordinationMcpAlias(canonicalDriverProfile, "driveHarnessFromBackend");
4209
4248
  const stableCoordinationTools = detachedSnapshot(coordinationTools, "driveHarnessFromBackend coordination tools");
@@ -4220,7 +4259,12 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
4220
4259
  harness: boundBackend.backend === "sandbox" ? providerDriverProfile.harness : null
4221
4260
  };
4222
4261
  const turnStop = turnCap > 0 ? new AbortController() : void 0;
4223
- const effectiveStopSignal = turnStop === void 0 ? stopSignal : stopSignal === void 0 ? turnStop.signal : AbortSignal.any([stopSignal, turnStop.signal]);
4262
+ const budgetStop = new AbortController();
4263
+ const effectiveStopSignal = AbortSignal.any([
4264
+ stopSignal,
4265
+ turnStop?.signal,
4266
+ budgetStop.signal
4267
+ ].filter((signal) => signal !== void 0));
4224
4268
  const peerMailAttachment = peerMailRuntimeAttachment(authoredProfile, boundBackend, { peerMailUrl });
4225
4269
  const attachment = {
4226
4270
  transport: "http",
@@ -4372,8 +4416,9 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
4372
4416
  });
4373
4417
  if (retainedOwner) committedOwnerSpend = addSpend(committedOwnerSpend, charge);
4374
4418
  if (effectiveStopSignal?.aborted === true) return;
4375
- const budget = scope.budget;
4376
- if (budget.tokensLeft <= 0 || budget.usdCapped && budget.usdLeft <= 0 || Object.values(budget.resources ?? {}).some((resource) => !resource.known || resource.remaining <= 0) || budget.deadlineMs > 0 && now() >= budget.deadlineMs) throw new ValidationError("driveHarnessFromBackend: supervisor budget exhausted");
4419
+ const spent = exhaustedBudgetChannels(scope.budget, now());
4420
+ if (spent === void 0) return;
4421
+ budgetStop.abort(`supervise: budget exhausted (${spent})`);
4377
4422
  };
4378
4423
  const pending = runtimeOwnedPendingExecutorMaterialization(executor);
4379
4424
  let failed = false;
@@ -4768,6 +4813,7 @@ const superviseOptionKeySet = /* @__PURE__ */ new Set([
4768
4813
  "perWorker",
4769
4814
  "reservationPolicy",
4770
4815
  "deadlineCheckIn",
4816
+ "budgetStopHoldMs",
4771
4817
  "profileGuidance",
4772
4818
  "profileSecurity",
4773
4819
  "registry",
@@ -5388,7 +5434,7 @@ function superviseInternal(profile, task, opts, testBrain) {
5388
5434
  if (options.driveHarness && options.resolveDriveHarness) throw new ValidationError("supervise: provide driveHarness or resolveDriveHarness, not both");
5389
5435
  const hasCustomDriveHarness = Boolean(options.driveHarness || options.resolveDriveHarness);
5390
5436
  const spawnResourceRoot = hasCustomDriveHarness ? void 0 : rootSpawnResourceRoot(managerBackend);
5391
- const spawnPreflight = composeSpawnPreflights(profileToolSpawnPreflight(options.makeWorkerAgent === void 0, options.resolveSupervisorTools !== void 0), coordinationChannelSpawnPreflight(options.makeWorkerAgent === void 0, hasCustomDriveHarness, managerBackend, options.coordination), options.backend?.backend === "bridge" ? bridgeSpawnPreflight(options.backend) : void 0);
5437
+ const spawnPreflight = composeSpawnPreflights(profileToolSpawnPreflight(options.makeWorkerAgent === void 0, options.resolveSupervisorTools !== void 0), coordinationChannelSpawnPreflight(options.makeWorkerAgent === void 0, hasCustomDriveHarness, managerBackend, options.coordination), options.backend?.backend === "bridge" ? bridgeSpawnPreflight(options.backend) : void 0, options.backend?.backend === "provider" && typeof options.backend.provider === "object" ? providerSpawnPreflight(options.backend.provider) : void 0);
5392
5438
  const driverMaterialization = hasCustomDriveHarness ? options.driveHarnessMaterialization ?? fullProfileMaterialization : managerBackend && automaticDriverBackendSupported(managerBackend, options.coordination) ? backendProfileMaterialization(managerBackend) : void 0;
5393
5439
  if (isExternalSupervisor(canonicalProfile) && !options.driveHarness && !options.resolveDriveHarness && (!managerBackend || !automaticDriverBackendSupported(managerBackend, options.coordination))) throw new ValidationError(`supervise: external supervisor profile.harness=${JSON.stringify(canonicalProfile.harness)} requires a local bridge, a provider with authenticated coordination.publicUrl and runtime MCP attachments, or an explicit driveHarness with reachable coordination transport`);
5394
5440
  const externalManagersAvailable = hasCustomDriveHarness || managerBackend !== void 0 && automaticDriverBackendSupported(managerBackend, options.coordination);
@@ -5881,6 +5927,7 @@ function superviseInternal(profile, task, opts, testBrain) {
5881
5927
  ...options.workerSlots !== void 0 ? { workerSlots: options.workerSlots } : {},
5882
5928
  ...options.reservationPolicy ? { reservationPolicy: options.reservationPolicy } : {},
5883
5929
  ...options.deadlineCheckIn === void 0 ? {} : { deadlineCheckIn: options.deadlineCheckIn },
5930
+ ...options.budgetStopHoldMs === void 0 ? {} : { budgetStopHoldMs: options.budgetStopHoldMs },
5884
5931
  ...ctx.resume === true || options.runDir === void 0 && options.resume === true ? { resume: true } : {},
5885
5932
  ...options.now ? { now: options.now } : {},
5886
5933
  signal: options.signal ? AbortSignal.any([options.signal, durableCancellation.signal]) : durableCancellation.signal,
@@ -5988,4 +6035,4 @@ function withModelSubstitution(agent, substitution) {
5988
6035
  //#endregion
5989
6036
  export { dumbContinuationPassPrompt as A, defaultEdgeTraversalCap as C, createPromptRegistry as D, analyzesFindingsReportPrompt as E, serveCoordinationMcp as F, kernelPromptRegistry as M, naiveContinuationPrompt as N, delegatesWorkerBriefPrompt as O, promptHandle as P, createGraphOverlay as S, validateGraphTopology as T, readRootStream as _, superviseRootProfile as a, composeReentryTask as b, isPreSpawnExecutorFailure as c, withWorkerSpawnRetry as d, assertCoordinationBinding as f, ROOT_STREAM_FILE as g, supervisorAgentWithTestBrain as h, superviseFleetCapabilities as i, formatPromptHandle as j, dumbContinuationFailPrompt as k, resolveWorkerSpawnRetry as l, supervisorAgent as m, profileGuidanceComposer as n, superviseWithTestBrain as o, resolveSupervisorProfile as p, supervise as r, workerFromBackend as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, retryPreSpawnRefusals as u, readRootStreamReceipt as v, graphRootProfile as w, createSupervisorSpanRecorder as x, UNPROVEN_CONTINUITY as y };
5990
6037
 
5991
- //# sourceMappingURL=supervise-C8oeQwrk.js.map
6038
+ //# sourceMappingURL=supervise-ISaRiWVe.js.map