@tangle-network/agent-runtime 0.208.1 → 0.210.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 (52) hide show
  1. package/README.md +4 -0
  2. package/dist/{activation-Dan50rKs.d.ts → activation-4oMAHaQz.d.ts} +2 -2
  3. package/dist/{activation-B86jXbpE.js → activation-Bwyehqhg.js} +2 -2
  4. package/dist/{activation-B86jXbpE.js.map → activation-Bwyehqhg.js.map} +1 -1
  5. package/dist/agent.d.ts +1 -1
  6. package/dist/agent.js +2 -2
  7. package/dist/{coordination-driver-D9dbnSA0.js → coordination-driver-Bp9a4LdC.js} +33 -6
  8. package/dist/coordination-driver-Bp9a4LdC.js.map +1 -0
  9. package/dist/{delegate-DP3QsLAy.js → delegate-Dmm9ITBZ.js} +2 -2
  10. package/dist/{delegate-DP3QsLAy.js.map → delegate-Dmm9ITBZ.js.map} +1 -1
  11. package/dist/durable.d.ts +2 -2
  12. package/dist/durable.js +2 -2
  13. package/dist/{graph-BXa0AN64.js → graph-D1QQu6lY.js} +3 -3
  14. package/dist/{graph-BXa0AN64.js.map → graph-D1QQu6lY.js.map} +1 -1
  15. package/dist/{improvement-cycle-BFg94oh7.js → improvement-cycle-BlvbrKLq.js} +3 -3
  16. package/dist/{improvement-cycle-BFg94oh7.js.map → improvement-cycle-BlvbrKLq.js.map} +1 -1
  17. package/dist/{index-CHkf3b2C.d.ts → index-lXtwqnQA.d.ts} +7 -124
  18. package/dist/index.d.ts +4 -4
  19. package/dist/index.js +7 -7
  20. package/dist/intelligence.d.ts +2 -2
  21. package/dist/intelligence.js +3 -3
  22. package/dist/kernel.d.ts +3 -3
  23. package/dist/kernel.js +8 -8
  24. package/dist/{loop-runner-bin-BUVcdgNU.d.ts → loop-runner-bin-CpJtH4zl.d.ts} +3 -3
  25. package/dist/{loop-runner-bin-Cv-sYY_b.js → loop-runner-bin-QKH_nf8M.js} +3 -3
  26. package/dist/{loop-runner-bin-Cv-sYY_b.js.map → loop-runner-bin-QKH_nf8M.js.map} +1 -1
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +2 -2
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/{provision-supervisor-DARqIVIZ.js → provision-supervisor-Dq81wDhU.js} +3 -3
  33. package/dist/{provision-supervisor-DARqIVIZ.js.map → provision-supervisor-Dq81wDhU.js.map} +1 -1
  34. package/dist/{redact-DXxGazcg.js → redact-CE6Hfkrp.js} +7244 -7014
  35. package/dist/redact-CE6Hfkrp.js.map +1 -0
  36. package/dist/{runtime-DXz65UHu.js → runtime-BgOCbw6N.js} +12 -8
  37. package/dist/{runtime-DXz65UHu.js.map → runtime-BgOCbw6N.js.map} +1 -1
  38. package/dist/{server-DLxegwGE.js → server-xYvBM-Te.js} +3 -3
  39. package/dist/{server-DLxegwGE.js.map → server-xYvBM-Te.js.map} +1 -1
  40. package/dist/{stream-agent-turn-B3NfR48z.d.ts → stream-agent-turn-BXZMQQ0K.d.ts} +500 -353
  41. package/dist/{structural-rollout-D3Su8Dla.js → structural-rollout-CcO70n6X.js} +2 -2
  42. package/dist/{structural-rollout-D3Su8Dla.js.map → structural-rollout-CcO70n6X.js.map} +1 -1
  43. package/dist/{supervise-B5kRyFJj.js → supervise-DNh1_cHO.js} +58 -16
  44. package/dist/supervise-DNh1_cHO.js.map +1 -0
  45. package/dist/testing.d.ts +2 -2
  46. package/dist/testing.js +12 -12
  47. package/dist/tui/index.d.ts +1 -1
  48. package/dist/tui/index.js +1 -1
  49. package/package.json +4 -4
  50. package/dist/coordination-driver-D9dbnSA0.js.map +0 -1
  51. package/dist/redact-DXxGazcg.js.map +0 -1
  52. package/dist/supervise-B5kRyFJj.js.map +0 -1
@@ -1,9 +1,9 @@
1
- import { $ as bridgeAdmissionRefusal, $t as spendFromUsageEvents, A as consumeScopeRetainedOwnerResult, Ar as fullProfileMaterialization, Ct as createInbox, Dr as assertProfileMaterialization, Fn as RunCancellationReason, Lr as renderUnsupported, M as scopeRetainedOwnerContext, Mn as zeroSpend, Mr as promptControlProfileMaterialization, N as scopeRetainedOwnerPriorSpend, Nn as registerRetainedExecutorPreparation, Nr as promptModelProfileMaterialization, Or as controlProfileMaterialization, P as scopeRetainedOwnerResult, Pn as retainedExecutorSeamKey, Q as bindReusableExecutorExecutionId, S as scopeOwnerExecutorNodeContext, Vr as worktreeCliProfileMaterialization, X as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Xr as inheritRuntimeOwnedExecutorAttestation, Xt as contentAddress, Z as teardownExecutor, Zt as assertValidBudget, _ as deriveNodeExecutionIdentity, _n as resolveAgentEnvironmentProvider, a as createSupervisor, ai as runtimeOwnedExecutorProviderEvidence, ar as generateSpanId, b as recordScopeOwnerMaterialization, ct as snapshotExecutorConfig, d as driverChild, ei as providerAttemptEvidence, et as bridgeModelRouteRefusal, f as driverExecutorFactory, h as beginScopeOwnerAttempt, i as createRootHandle, ii as runtimeOwnedExecutorMaterialization, j as prepareScopeRetainedOwnerTask, jn as unmeteredSpend, jr as profileMaterializationAxes$1, kr as defineProfileMaterializationContract, l as runFinalizer, lr as toOtelAttributes, ni as runtimeOwnedDriveHarnessProviderEvidence, nr as createOtelExporter, nt as bridgeStopSignalKey, o as bestDelivered, oi as runtimeOwnedPendingExecutorMaterialization, ot as createExecutor, p as isDriverSpec, pi as detachedSnapshot, qr as attestRuntimeOwnedScopeOwner, ri as runtimeOwnedExecutorExecutionBinding, rt as captureReusableExecutorConfig, si as runtimeOwnedScopeOwnerRuntime, ti as recordRuntimeOwnedDriveHarnessProviderEvidence, tt as bridgeRuntimeAttachmentsKey, u as runTree, un as routerBrain, ut as WORKER_TRACE_PROPAGATION, v as meterRuntimeOwnedAccounting, x as restoreScopeOwnerAcceptedExecution, y as meterRuntimeOwnedProviderAttempt, yn as addSpend, zr as unsupportedProfileDimensions } from "./redact-DXxGazcg.js";
1
+ import { $ as captureReusableExecutorConfig, $r as inheritRuntimeOwnedExecutorAttestation, $t as bridgeRuntimeAttachmentsKey, A as consumeScopeRetainedOwnerResult, Ar as assertProfileMaterialization, Bn as registerRetainedExecutorPreparation, Br as renderUnsupported, Ct as contentAddress, Dt as WORKER_TRACE_PROPAGATION, Et as spendFromUsageEvents, Fn as resourceTelemetry, Fr as promptControlProfileMaterialization, Hn as RunCancellationReason, Hr as unsupportedProfileDimensions, In as withBudgetResources, Ir as promptModelProfileMaterialization, It as createInbox, Jt as bridgeModelRouteRefusal, M as scopeRetainedOwnerContext, Mn as unmeteredSpend, Mr as defineProfileMaterializationContract, N as scopeRetainedOwnerPriorSpend, Nn as zeroSpend, Nr as fullProfileMaterialization, P as scopeRetainedOwnerResult, Pn as addResourceSpend, Pr as profileMaterializationAxes$1, Q as bindReusableExecutorExecutionId, S as scopeOwnerExecutorNodeContext, Vn as retainedExecutorSeamKey, Wr as worktreeCliProfileMaterialization, X as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Xr as attestRuntimeOwnedScopeOwner, Z as teardownExecutor, _ as deriveNodeExecutionIdentity, a as createSupervisor, ai as runtimeOwnedDriveHarnessProviderEvidence, ar as createOtelExporter, b as recordScopeOwnerMaterialization, bn as addSpend, ci as runtimeOwnedExecutorProviderEvidence, cr as generateSpanId, d as driverChild, dn as routerBrain, en as bridgeStopSignalKey, f as driverExecutorFactory, fr as toOtelAttributes, gi as detachedSnapshot, h as beginScopeOwnerAttempt, i as createRootHandle, ii as recordRuntimeOwnedDriveHarnessProviderEvidence, it as snapshotExecutorConfig, j as prepareScopeRetainedOwnerTask, jr as controlProfileMaterialization, l as runFinalizer, li as runtimeOwnedPendingExecutorMaterialization, nt as createExecutor, o as bestDelivered, oi as runtimeOwnedExecutorExecutionBinding, p as isDriverSpec, qt as bridgeAdmissionRefusal, ri as providerAttemptEvidence, si as runtimeOwnedExecutorMaterialization, u as runTree, ui as runtimeOwnedScopeOwnerRuntime, v as meterRuntimeOwnedAccounting, vn as resolveAgentEnvironmentProvider, wt as assertValidBudget, x as restoreScopeOwnerAcceptedExecution, y as meterRuntimeOwnedProviderAttempt } from "./redact-CE6Hfkrp.js";
2
2
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError, r as BackendTransportError, t as AgentEvalError } from "./errors-DodWX-cb.js";
3
3
  import { a as concreteProfileModel, c as profileModelExecutionSettings, d as agentHarness, f as harnessRunsAgent, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-DKDyr-fc.js";
4
4
  import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
5
5
  import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-hZREkcfu.js";
6
- import { C as createCoordinationTools, F as watchRunCancellation, M as createInMemoryRunContext, P as applyRunCancellation, S as coordinationVerbNames, c as createProgressTracker, d as progressStop, j as createFileRunContext, r as driverAgent } from "./coordination-driver-D9dbnSA0.js";
6
+ import { C as createCoordinationTools, F as watchRunCancellation, M as createInMemoryRunContext, P as applyRunCancellation, S as coordinationVerbNames, c as createProgressTracker, d as progressStop, j as createFileRunContext, r as driverAgent } from "./coordination-driver-Bp9a4LdC.js";
7
7
  import { t as createStdioToolServer } from "./tool-server-BJbCPhoW.js";
8
8
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
9
9
  import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
@@ -1068,6 +1068,7 @@ function budgetStop(budget, atMs) {
1068
1068
  if (budget.tokensLeft <= 0 || budget.iterationsLeft <= 0) return "budget-exhausted";
1069
1069
  if (budget.usdCapped && budget.usdLeft <= 0) return "budget-exhausted";
1070
1070
  if (budget.usdCapped && budget.usdKnown === false) return "budget-exhausted";
1071
+ if (Object.values(budget.resources ?? {}).some((resource) => !resource.known || resource.remaining <= 0)) return "budget-exhausted";
1071
1072
  }
1072
1073
  function contractOf(mark) {
1073
1074
  return mark.contract ?? "none";
@@ -1540,6 +1541,8 @@ function buildSupervisorAgent(profile, deps, testBrain) {
1540
1541
  ...deliver ? { deliver(message) {
1541
1542
  return deliver(message);
1542
1543
  } } : {},
1544
+ traceSource: () => driveHarness.traceSource?.(),
1545
+ progress: () => driveHarness.progress?.(),
1543
1546
  async act(task, scope) {
1544
1547
  const context = nodeContextSeed ? supervisorNodeContext(nodeContextSeed, stableProfile, task, scope) : void 0;
1545
1548
  const priorCoordination = deps.loadPriorCoordination ? await deps.loadPriorCoordination() : deps.priorCoordination;
@@ -2393,7 +2396,7 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2393
2396
  return;
2394
2397
  }
2395
2398
  const initialBudget = scope.budget;
2396
- if (!(scope.view.inFlight > 0 || scope.view.waiting > 0) && (initialBudget.tokensLeft <= 0 || initialBudget.iterationsLeft <= 0 || initialBudget.usdCapped && initialBudget.usdLeft <= 0 || initialBudget.deadlineMs > 0 && now() >= initialBudget.deadlineMs)) throw new ValidationError("driveHarnessFromBackend: supervisor budget exhausted");
2399
+ if (!(scope.view.inFlight > 0 || scope.view.waiting > 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");
2397
2400
  const canonicalDriverProfile = agentProfileSchema.parse(authoredProfile);
2398
2401
  assertNoReservedCoordinationMcpAlias(canonicalDriverProfile, "driveHarnessFromBackend");
2399
2402
  const stableCoordinationTools = detachedSnapshot(coordinationTools, "driveHarnessFromBackend coordination tools");
@@ -2462,6 +2465,15 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2462
2465
  let observedOwnerSpend = zeroSpend();
2463
2466
  let committedOwnerSpend = retainedOwner ? await scopeRetainedOwnerPriorSpend(scope) : zeroSpend();
2464
2467
  const ownerDelta = (total) => ({
2468
+ ...addResourceSpend(total.resources === void 0 ? void 0 : Object.fromEntries(Object.entries(total.resources).map(([name, value]) => {
2469
+ const prior = committedOwnerSpend.resources?.[name];
2470
+ if (prior && prior.unit !== value.unit) throw new ValidationError(`resource ${name}: unit mismatch`);
2471
+ return [name, {
2472
+ ...value,
2473
+ amount: Math.max(0, value.amount - (prior?.amount ?? 0)),
2474
+ known: value.known && (prior?.known ?? true)
2475
+ }];
2476
+ }))),
2465
2477
  iterations: Math.max(0, total.iterations - committedOwnerSpend.iterations),
2466
2478
  tokens: {
2467
2479
  input: Math.max(0, total.tokens.input - committedOwnerSpend.tokens.input),
@@ -2526,7 +2538,7 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2526
2538
  });
2527
2539
  if (retainedOwner) committedOwnerSpend = addSpend(committedOwnerSpend, charge);
2528
2540
  const budget = scope.budget;
2529
- if (budget.tokensLeft <= 0 || budget.usdCapped && budget.usdLeft <= 0 || budget.deadlineMs > 0 && now() >= budget.deadlineMs) throw new ValidationError("driveHarnessFromBackend: supervisor budget exhausted");
2541
+ 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");
2530
2542
  };
2531
2543
  const pending = runtimeOwnedPendingExecutorMaterialization(executor);
2532
2544
  let failed = false;
@@ -2567,10 +2579,11 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2567
2579
  ownerMaterializationPublished = true;
2568
2580
  }
2569
2581
  await meterPending();
2570
- const total = {
2582
+ const total = withBudgetResources({
2571
2583
  ...result.spent,
2584
+ ...resourceTelemetry(observedOwnerSpend, result.spent),
2572
2585
  iterations: 0
2573
- };
2586
+ }, scope.budget);
2574
2587
  const delta = ownerDelta(total);
2575
2588
  await meterRuntimeOwnedAccounting(scope, delta, {
2576
2589
  role: "driver",
@@ -2604,8 +2617,16 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2604
2617
  } else if (event.kind !== "progress") pendingUsage.push(event);
2605
2618
  await meterPending();
2606
2619
  const artifact = executor.resultArtifact();
2607
- terminalAccountingCaptured = true;
2608
- if (!retainedOwner && (artifact.spent.tokensKnown === false || artifact.spent.usdKnown === false)) await meterRuntimeOwnedAccounting(scope, {
2620
+ const terminalResources = withBudgetResources({
2621
+ ...artifact.spent,
2622
+ ...resourceTelemetry(observedOwnerSpend, artifact.spent)
2623
+ }, scope.budget).resources;
2624
+ const resourceCorrection = addResourceSpend(terminalResources === void 0 ? void 0 : Object.fromEntries(Object.entries(terminalResources).map(([name, value]) => [name, {
2625
+ ...value,
2626
+ amount: Math.max(0, value.amount - (observedOwnerSpend.resources?.[name]?.amount ?? 0))
2627
+ }])));
2628
+ if (!retainedOwner && (artifact.spent.tokensKnown === false || artifact.spent.usdKnown === false || resourceCorrection.resources !== void 0)) await meterRuntimeOwnedAccounting(scope, {
2629
+ ...resourceCorrection,
2609
2630
  iterations: 0,
2610
2631
  tokens: {
2611
2632
  input: 0,
@@ -2620,16 +2641,16 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2620
2641
  runtime: executor.runtime,
2621
2642
  telemetry: "unknown"
2622
2643
  });
2623
- } else {
2624
- const artifact = await run;
2625
2644
  terminalAccountingCaptured = true;
2626
- await meterRuntimeOwnedProviderAttempt(scope, {
2627
- ...artifact.spent,
2645
+ } else {
2646
+ await meterRuntimeOwnedProviderAttempt(scope, withBudgetResources({
2647
+ ...(await run).spent,
2628
2648
  iterations: 0
2629
- }, providerEvidenceForNextMeter(), {
2649
+ }, scope.budget), providerEvidenceForNextMeter(), {
2630
2650
  role: "driver",
2631
2651
  runtime: executor.runtime
2632
2652
  });
2653
+ terminalAccountingCaptured = true;
2633
2654
  }
2634
2655
  if (pending !== void 0 && !ownerMaterializationPublished) {
2635
2656
  const acknowledged = runtimeOwnedExecutorMaterialization(executor);
@@ -2670,13 +2691,20 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2670
2691
  const evidence = runtimeOwnedExecutorProviderEvidence(executor);
2671
2692
  if ((evidence?.attempts.length ?? 0) <= meteredProviderAttempts) break;
2672
2693
  const providerDispatchDidNotStart = evidence?.attempts[meteredProviderAttempts]?.providerDispatch === "not_started";
2673
- await meterRuntimeOwnedProviderAttempt(scope, providerDispatchDidNotStart ? zeroSpend() : unmeteredSpend(0), providerEvidenceForNextMeter(), {
2694
+ await meterRuntimeOwnedProviderAttempt(scope, withBudgetResources(providerDispatchDidNotStart ? zeroSpend() : unmeteredSpend(0), scope.budget, providerDispatchDidNotStart), providerEvidenceForNextMeter(), {
2674
2695
  role: "driver",
2675
2696
  runtime: executor.runtime,
2676
2697
  telemetry: providerDispatchDidNotStart ? "known-zero-before-dispatch" : "unknown-after-failure"
2677
2698
  });
2678
2699
  }
2679
- if (meteredProviderAttempts === 0) await meterRuntimeOwnedProviderAttempt(scope, unmeteredSpend(0), providerEvidenceForNextMeter(), {
2700
+ if (meteredProviderAttempts === 0) await meterRuntimeOwnedProviderAttempt(scope, withBudgetResources(unmeteredSpend(0), scope.budget), providerEvidenceForNextMeter(), {
2701
+ role: "driver",
2702
+ runtime: executor.runtime,
2703
+ telemetry: "unknown-after-failure"
2704
+ });
2705
+ const attempts = runtimeOwnedExecutorProviderEvidence(executor)?.attempts;
2706
+ const provenNotStarted = attempts !== void 0 && attempts.length > 0 && attempts.every((attempt) => attempt.providerDispatch === "not_started");
2707
+ if (scope.budget.resources !== void 0 && !provenNotStarted) await meterRuntimeOwnedAccounting(scope, withBudgetResources(zeroSpend(), scope.budget), {
2680
2708
  role: "driver",
2681
2709
  runtime: executor.runtime,
2682
2710
  telemetry: "unknown-after-failure"
@@ -2702,6 +2730,8 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns)
2702
2730
  if (!deliver) return false;
2703
2731
  return deliver.call(activeExecutor, message) !== false;
2704
2732
  };
2733
+ drive.traceSource = () => activeExecutor?.traceSource?.();
2734
+ drive.progress = () => activeExecutor?.progress?.();
2705
2735
  return attestRuntimeOwnedScopeOwner(drive, boundBackend.backend === "provider" ? boundBackend.runtime ?? resolveAgentEnvironmentProvider(boundBackend.provider, boundBackend.registry).name : "cli");
2706
2736
  }
2707
2737
  function isAsyncIterable(value) {
@@ -2983,6 +3013,14 @@ function recordRunCancellationOutcome(runDir, result, now) {
2983
3013
  /** A per-child budget may not exceed the conserved pool it is reserved from. */
2984
3014
  function assertPerWorkerWithinPool(perWorker, pool) {
2985
3015
  const over = (child, total, field) => child > total ? `supervise perWorker.${field} (${child}) exceeds budget.${field} (${total})` : null;
3016
+ for (const [name, resource] of Object.entries(pool.resources ?? {})) {
3017
+ const child = perWorker.resources?.[name];
3018
+ if (!child) throw new ValidationError(`supervise perWorker resource ${name}: child must declare its limit`);
3019
+ if (child.unit !== resource.unit) throw new ValidationError(`supervise perWorker resource ${name}: unit mismatch`);
3020
+ const problem = over(child.limit, resource.limit, `resources.${name}.limit`);
3021
+ if (problem) throw new ValidationError(problem);
3022
+ }
3023
+ for (const name of Object.keys(perWorker.resources ?? {})) if (!Object.hasOwn(pool.resources ?? {}, name)) throw new ValidationError(`supervise perWorker resource ${name}: root must declare its limit`);
2986
3024
  const problems = [
2987
3025
  over(perWorker.maxTokens, pool.maxTokens, "maxTokens"),
2988
3026
  over(perWorker.maxIterations, pool.maxIterations, "maxIterations"),
@@ -2992,6 +3030,10 @@ function assertPerWorkerWithinPool(perWorker, pool) {
2992
3030
  }
2993
3031
  function defaultPerWorker(budget) {
2994
3032
  return {
3033
+ ...budget.resources === void 0 ? {} : { resources: Object.fromEntries(Object.entries(budget.resources).map(([name, value]) => [name, {
3034
+ unit: value.unit,
3035
+ limit: Math.floor(value.limit / 4)
3036
+ }])) },
2995
3037
  maxIterations: Math.max(1, Math.floor(budget.maxIterations / 4)),
2996
3038
  maxTokens: Math.max(1, Math.floor(budget.maxTokens / 4)),
2997
3039
  ...budget.maxUsd !== void 0 ? { maxUsd: budget.maxUsd / 4 } : {}
@@ -3497,4 +3539,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
3497
3539
  //#endregion
3498
3540
  export { serveCoordinationMcp as _, isPreSpawnExecutorFailure as a, mapExecutorResult as b, withWorkerSpawnRetry as c, resolveSupervisorProfile as d, supervisorAgent as f, defaultUnmetContractSteer as g, classifyDriverFailure as h, workerFromBackend as i, assertCoordinationBinding as l, DriverAttemptsExhaustedError as m, supervise as n, resolveWorkerSpawnRetry as o, supervisorAgentWithTestBrain as p, superviseWithTestBrain as r, retryPreSpawnRefusals as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, coordinationProfileToolPrefix as u, createSupervisorSpanRecorder as v, gateOnDeliverable as y };
3499
3541
 
3500
- //# sourceMappingURL=supervise-B5kRyFJj.js.map
3542
+ //# sourceMappingURL=supervise-DNh1_cHO.js.map