@tangle-network/agent-runtime 3.0.31 → 3.0.34

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 (63) hide show
  1. package/dist/{activation-DQhy-ET-.d.ts → activation-CCttbkSj.d.ts} +2 -2
  2. package/dist/{activation-BspipHFs.js → activation-CWOj5iZe.js} +2 -2
  3. package/dist/{activation-BspipHFs.js.map → activation-CWOj5iZe.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +3 -3
  6. package/dist/{coordination-manager-B4ePZZDF.js → coordination-manager-s1hbIqXx.js} +4 -4
  7. package/dist/{coordination-manager-B4ePZZDF.js.map → coordination-manager-s1hbIqXx.js.map} +1 -1
  8. package/dist/{delegate-CYpe4KH1.js → delegate-D1urT1fO.js} +2 -2
  9. package/dist/{delegate-CYpe4KH1.js.map → delegate-D1urT1fO.js.map} +1 -1
  10. package/dist/durable.d.ts +1 -1
  11. package/dist/durable.js +6 -6
  12. package/dist/{graph-CJ7La4ZS.js → graph-D1lBBrG9.js} +5 -5
  13. package/dist/{graph-CJ7La4ZS.js.map → graph-D1lBBrG9.js.map} +1 -1
  14. package/dist/{improve-DVJMU8wm.js → improve-CXK2GKbS.js} +6 -6
  15. package/dist/{improve-DVJMU8wm.js.map → improve-CXK2GKbS.js.map} +1 -1
  16. package/dist/index.d.ts +3 -3
  17. package/dist/index.js +8 -8
  18. package/dist/intelligence.d.ts +2 -2
  19. package/dist/intelligence.js +4 -4
  20. package/dist/kernel.d.ts +1 -1
  21. package/dist/kernel.js +11 -11
  22. package/dist/{loop-runner-D1JVNvwC.d.ts → loop-runner-CRZ3pF7w.d.ts} +2 -2
  23. package/dist/{loop-runner-DgON7FnW.js → loop-runner-DweLgNhR.js} +2 -2
  24. package/dist/{loop-runner-DgON7FnW.js.map → loop-runner-DweLgNhR.js.map} +1 -1
  25. package/dist/loop-runner-bin.d.ts +1 -1
  26. package/dist/loop-runner-bin.js +1 -1
  27. package/dist/mcp/bin.js +76 -3
  28. package/dist/mcp/bin.js.map +1 -1
  29. package/dist/mcp/index.d.ts +2 -2
  30. package/dist/mcp/index.js +5 -5
  31. package/dist/profiles.d.ts +1 -1
  32. package/dist/{provision-supervisor-BrRWbxo9.js → provision-supervisor-B6-0_VQb.js} +4 -4
  33. package/dist/{provision-supervisor-BrRWbxo9.js.map → provision-supervisor-B6-0_VQb.js.map} +1 -1
  34. package/dist/{run-cancellation-s3uzwrd6.js → run-cancellation-BRIB385R.js} +2 -2
  35. package/dist/{run-cancellation-s3uzwrd6.js.map → run-cancellation-BRIB385R.js.map} +1 -1
  36. package/dist/{runtime-C7dIb3ui.js → runtime-DqTj9ahF.js} +11 -11
  37. package/dist/{runtime-C7dIb3ui.js.map → runtime-DqTj9ahF.js.map} +1 -1
  38. package/dist/{scope-D5T_q60y.js → scope-CCHfmCvY.js} +2 -2
  39. package/dist/{scope-D5T_q60y.js.map → scope-CCHfmCvY.js.map} +1 -1
  40. package/dist/{search-executor-9mTYFafI.js → search-executor-Cypg4sCQ.js} +3 -3
  41. package/dist/{search-executor-9mTYFafI.js.map → search-executor-Cypg4sCQ.js.map} +1 -1
  42. package/dist/{server-BXveLAfq.js → server-CAxz7X8H.js} +305 -4
  43. package/dist/server-CAxz7X8H.js.map +1 -0
  44. package/dist/{structural-rollout-DkMKSOOb.js → structural-rollout-BS3hVAq2.js} +3 -3
  45. package/dist/{structural-rollout-DkMKSOOb.js.map → structural-rollout-BS3hVAq2.js.map} +1 -1
  46. package/dist/{supervise-CKizKwTp.js → supervise-dOLWtwyj.js} +23 -47
  47. package/dist/supervise-dOLWtwyj.js.map +1 -0
  48. package/dist/{supervision-discovery-BS5k2s-A.js → supervision-discovery-DcQU64rK.js} +2 -2
  49. package/dist/{supervision-discovery-BS5k2s-A.js.map → supervision-discovery-DcQU64rK.js.map} +1 -1
  50. package/dist/{supervisor-CIsucL58.js → supervisor-C-mx3kR8.js} +55 -39
  51. package/dist/supervisor-C-mx3kR8.js.map +1 -0
  52. package/dist/testing.d.ts +1 -1
  53. package/dist/testing.js +11 -11
  54. package/dist/{top-web-B981CLsj.js → top-web-l3naxnjo.js} +4 -4
  55. package/dist/{top-web-B981CLsj.js.map → top-web-l3naxnjo.js.map} +1 -1
  56. package/dist/tui/bin.js +3 -3
  57. package/dist/tui/index.d.ts +1 -1
  58. package/dist/tui/index.js +2 -2
  59. package/dist/{types-ISwInoqb.d.ts → types-CQviVtZC.d.ts} +43 -2
  60. package/package.json +1 -1
  61. package/dist/server-BXveLAfq.js.map +0 -1
  62. package/dist/supervise-CKizKwTp.js.map +0 -1
  63. package/dist/supervisor-CIsucL58.js.map +0 -1
@@ -1,13 +1,13 @@
1
- import { $n as persistHarnessTranscript, $r as RetainedExecutionPendingError, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Ci as newUsageTotals, Cr as inheritRuntimeOwnedExecutorAttestation, Dr as providerAttemptEvidence, Dt as prepareScopeRetainedOwnerTask, Ei as assertValidBudget, Et as consumeScopeRetainedOwnerResult, Fr as runtimeOwnedExecutorMaterialization, Ft as scopeRetainedOwnerRestorePoint, G as scopeOwnerExecutorNodeContext, Gr as runtimeFlowBrain, H as noteScopeOwnerPlannedExecution, Ht as scopeRetainedOwnerJournalRoot, Ir as runtimeOwnedExecutorProviderEvidence, It as noteScopeRetainedOwnerCoordination, J as providerVisibleProfile, K as coordinationMcpAlias, Lr as runtimeOwnedPendingExecutorMaterialization, Mt as scopeRetainedOwnerTurnEnded, Nr as runtimeOwnedDriveHarnessProviderEvidence, Nt as assertRetainedOwnerCoordinationRekey, O as parseWorkerToolTraceArtifact, Or as recordRuntimeOwnedDriveHarnessProviderEvidence, Ot as scopeRetainedOwnerPriorSpend, Pr as runtimeOwnedExecutorExecutionBinding, Pt as reconcileScopeRetainedOwnerEnvironment, Q as assertRecursiveReservationPolicy, Rr as runtimeOwnedScopeOwnerRuntime, Rt as bindScopeRetainedOwnerEnvironmentId, Si as meterUsageEvent, St as scopeRetainedOwnerResourceReader, Ti as spendFromUsageTotals, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as isRuntimeFlowBrain, Vn as generateSpanId, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Wr as runtimeFlowAgent, Y as runtimeGraphMetadataKey, Yi as recordValue, _i as executorFailure, a as readRootStream, aa as runAbortable, ai as retainedExecutorSeamKey, br as authoredAgentIdentity, bt as prepareScopeRetainedOwnerSeatSwitch, ci as cappedDoublingMs, ct as recordScopeOwnerBarrenPause, di as unavailableResumeAt, dr as SeatChain, er as readHarnessTranscript, fr as SeatChainExhaustedError, hi as contentAddress, ia as linkAbort, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as jitteredMs, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, na as RunCancellationReason, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, ri as registerRetainedExecutorPreparation, st as meterRuntimeOwnedProviderAttempt, ui as unavailablePauseMs, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, xt as releaseScopeRetainedOwnerForSeatPause, yr as attestRuntimeOwnedScopeOwner, zn as createOtelExporter, zt as bindScopeRetainedOwnerProvider } from "./scope-D5T_q60y.js";
1
+ import { $n as persistHarnessTranscript, $r as RetainedExecutionPendingError, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Ci as newUsageTotals, Cr as inheritRuntimeOwnedExecutorAttestation, Dr as providerAttemptEvidence, Dt as prepareScopeRetainedOwnerTask, Ei as assertValidBudget, Et as consumeScopeRetainedOwnerResult, Fr as runtimeOwnedExecutorMaterialization, Ft as scopeRetainedOwnerRestorePoint, G as scopeOwnerExecutorNodeContext, Gr as runtimeFlowBrain, H as noteScopeOwnerPlannedExecution, Ht as scopeRetainedOwnerJournalRoot, Ir as runtimeOwnedExecutorProviderEvidence, It as noteScopeRetainedOwnerCoordination, J as providerVisibleProfile, K as coordinationMcpAlias, Lr as runtimeOwnedPendingExecutorMaterialization, Mt as scopeRetainedOwnerTurnEnded, Nr as runtimeOwnedDriveHarnessProviderEvidence, Nt as assertRetainedOwnerCoordinationRekey, O as parseWorkerToolTraceArtifact, Or as recordRuntimeOwnedDriveHarnessProviderEvidence, Ot as scopeRetainedOwnerPriorSpend, Pr as runtimeOwnedExecutorExecutionBinding, Pt as reconcileScopeRetainedOwnerEnvironment, Q as assertRecursiveReservationPolicy, Rr as runtimeOwnedScopeOwnerRuntime, Rt as bindScopeRetainedOwnerEnvironmentId, Si as meterUsageEvent, St as scopeRetainedOwnerResourceReader, Ti as spendFromUsageTotals, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as isRuntimeFlowBrain, Vn as generateSpanId, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Wr as runtimeFlowAgent, Y as runtimeGraphMetadataKey, Yi as recordValue, _i as executorFailure, a as readRootStream, aa as linkAbort, ai as retainedExecutorSeamKey, br as authoredAgentIdentity, bt as prepareScopeRetainedOwnerSeatSwitch, ci as cappedDoublingMs, ct as recordScopeOwnerBarrenPause, di as unavailableResumeAt, dr as SeatChain, er as readHarnessTranscript, fr as SeatChainExhaustedError, hi as contentAddress, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as jitteredMs, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, oa as runAbortable, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, ra as RunCancellationReason, ri as registerRetainedExecutorPreparation, st as meterRuntimeOwnedProviderAttempt, ui as unavailablePauseMs, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, xt as releaseScopeRetainedOwnerForSeatPause, yr as attestRuntimeOwnedScopeOwner, zn as createOtelExporter, zt as bindScopeRetainedOwnerProvider } from "./scope-CCHfmCvY.js";
2
2
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-AzSuGI23.js";
3
3
  import { $ as isAsyncIterable, Dt as teardownExecutor, G as chargedTokens, Ot as teardownSurfaces, St as armDeadlineTimer, Tt as isDeadlineAbortReason, U as addSpend, Y as errorMessage, at as sleep, bt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, dt as zeroSpend, gt as withBudgetResources, ht as resourceTelemetry, lt as unmeteredSpend, pt as addResourceSpend, tt as promptCacheTokenClasses, ut as withTimeout } from "./workspace-streams-8ALHaZzx.js";
4
4
  import { d as detachedSnapshot, h as errorHttpStatus, m as errMessage } from "./jsonl-file-BBP9Dz9w.js";
5
- import { $t as promptModelProfileMaterialization, At as bridgeModelRouteRefusal, B as createRouterTranscript, C as createExecutor, Ct as admitContinuationPolicy, Et as createContinuationKeeper, F as codeModeArguments, I as codeModeModelOutput, Jt as controlProfileMaterialization, Kt as assertProfileMaterialization, L as createCodeModeTools, Qt as promptControlProfileMaterialization, Rt as bridgeRuntimeAttachmentsKey, S as captureReusableExecutorConfig, St as CONTINUATIONS_DIR, Tt as checkVerdictOf, U as resolveAgentEnvironmentProvider, V as routerBrain, X as createInbox, Xt as fullProfileMaterialization, Y as INBOX_RECEIPT_KEY, Yt as defineProfileMaterializationContract, Zt as profileMaterializationAxes$1, _t as CheckUnavailableError, a as assertRunParking, c as sleepScopeWait, ct as HarnessTurnFailedError, d as runFinalizer, dt as classifyDriverFailure, en as renderUnsupported, et as PEER_MAIL_WIRE_KEY, f as runTree, ft as isContentFilterRefusal, g as isDriverSpec, gt as preflightPublicCoordination, h as driverExecutorFactory, ht as upstreamUnavailableSignal, i as RunParkedError, in as worktreeCliProfileMaterialization, kt as bridgeAdmissionRefusal, l as withRunParking, lt as abandonablePending, m as driverChild, mt as undispatchedCredentialExit, n as createSupervisor, nn as sandboxProfileMaterialization, o as bindScopeParkingDrain, p as createRootHandle, pt as summarizeDriverAttempts, rn as unsupportedProfileDimensions, rt as isPeerMailEnvelope, st as DriverAttemptsExhaustedError, u as bestDelivered, ut as causedByPartialFailure, vt as gateFactoryOnDeliverable, w as snapshotExecutorConfig, wt as bestComposite, x as bindReusableExecutorExecutionId, z as toolResultText, zt as bridgeStopSignalKey } from "./supervisor-CIsucL58.js";
5
+ import { $t as promptModelProfileMaterialization, At as bridgeModelRouteRefusal, B as createRouterTranscript, C as createExecutor, Ct as admitContinuationPolicy, Et as createContinuationKeeper, F as codeModeArguments, I as codeModeModelOutput, Jt as controlProfileMaterialization, Kt as assertProfileMaterialization, L as createCodeModeTools, Qt as promptControlProfileMaterialization, Rt as bridgeRuntimeAttachmentsKey, S as captureReusableExecutorConfig, St as CONTINUATIONS_DIR, Tt as checkVerdictOf, U as resolveAgentEnvironmentProvider, V as routerBrain, X as createInbox, Xt as fullProfileMaterialization, Y as INBOX_RECEIPT_KEY, Yt as defineProfileMaterializationContract, Zt as profileMaterializationAxes$1, _t as CheckUnavailableError, a as assertRunParking, c as sleepScopeWait, ct as HarnessTurnFailedError, d as runFinalizer, dt as classifyDriverFailure, en as renderUnsupported, et as PEER_MAIL_WIRE_KEY, f as runTree, ft as isContentFilterRefusal, g as isDriverSpec, gt as preflightPublicCoordination, h as driverExecutorFactory, ht as upstreamUnavailableSignal, i as RunParkedError, in as worktreeCliProfileMaterialization, kt as bridgeAdmissionRefusal, l as withRunParking, lt as abandonablePending, m as driverChild, mt as undispatchedCredentialExit, n as createSupervisor, nn as sandboxProfileMaterialization, o as bindScopeParkingDrain, p as createRootHandle, pt as summarizeDriverAttempts, rn as unsupportedProfileDimensions, rt as isPeerMailEnvelope, st as DriverAttemptsExhaustedError, u as bestDelivered, ut as causedByPartialFailure, vt as gateFactoryOnDeliverable, w as snapshotExecutorConfig, wt as bestComposite, x as bindReusableExecutorExecutionId, z as toolResultText, zt as bridgeStopSignalKey } from "./supervisor-C-mx3kR8.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-C-RGAUW4.js";
7
7
  import { n as createStdioToolServer } from "./tool-server-CZWd_Opp.js";
8
8
  import { t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
9
- import { _ as workerAssignmentNamespace, c as writeRunCancellation, d as coordinationEventId, f as externalExecutionId, g as supervisionRunNamespace, h as rootCoordinationOwner, i as readRunCancellation, l as canonicalExecution, m as freezeDetachedProfile, p as freezeDetached, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation, u as childCoordinationOwner } from "./run-cancellation-s3uzwrd6.js";
10
- import { c as createSteerAcknowledger, d as coordinationVerbNames, f as createFileRunContext, l as budgetOverspendText, m as withRunContext, n as createCoordinationToolsForManager, p as createInMemoryRunContext, s as createCancelAcknowledger, t as createCoordinationTools, u as normalizeAnalyzeOnSettle } from "./coordination-manager-B4ePZZDF.js";
9
+ import { _ as workerAssignmentNamespace, c as writeRunCancellation, d as coordinationEventId, f as externalExecutionId, g as supervisionRunNamespace, h as rootCoordinationOwner, i as readRunCancellation, l as canonicalExecution, m as freezeDetachedProfile, p as freezeDetached, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation, u as childCoordinationOwner } from "./run-cancellation-BRIB385R.js";
10
+ import { c as createSteerAcknowledger, d as coordinationVerbNames, f as createFileRunContext, l as budgetOverspendText, m as withRunContext, n as createCoordinationToolsForManager, p as createInMemoryRunContext, s as createCancelAcknowledger, t as createCoordinationTools, u as normalizeAnalyzeOnSettle } from "./coordination-manager-s1hbIqXx.js";
11
11
  import { o as safeJsonText } from "./coordination-map-routing-BllzcZov.js";
12
12
  import { a as graphRegistry, c as loadGraph } from "./graph-registry-D6y6zffC.js";
13
13
  import { ATTR, agentIdentityAttributes } from "@tangle-network/agent-trace-contract";
@@ -4878,22 +4878,15 @@ const PAUSED_STOPS = /* @__PURE__ */ new Set([
4878
4878
  "pending-unresolved",
4879
4879
  "budget-exhausted"
4880
4880
  ]);
4881
- /**
4882
- * The pause before a continuation once `streak` re-entered drives in a row have completed without
4883
- * progress: 5 minutes at `maxBarren`, doubling per further barren drive, 60 minutes at most.
4884
- * Derived from the streak alone, so a progress reading resets the backoff with the streak. Not
4885
- * jittered: a barren streak is one root's, not an outage that cut many drivers off together.
4886
- */
4881
+ /** The pause before a continuation after `streak` barren re-entries: 5 minutes at `maxBarren`,
4882
+ * doubling per further one, 60 at most. Unjittered: one root's streak, not a shared outage. */
4887
4883
  function barrenPauseMs(streak, maxBarren) {
4888
4884
  return cappedDoublingMs(streak - maxBarren + 1, BARREN_PAUSE_FIRST_MS, BARREN_PAUSE_MAX_MS);
4889
4885
  }
4890
4886
  /**
4891
- * The repeated-failure bound: {@link REPEATED_FAILURE_LIMIT} or more attempts in a row, each
4892
- * failing within {@link INSTANT_FAILURE_MS} with the same error over at least
4893
- * {@link REPEATED_FAILURE_WINDOW_MS}, stop the run with `repeated-failure`. The progress mark is
4894
- * run-wide, so a driver dying on arrival reads as progressing while other nodes spend: run
4895
- * magnetar-rust-20261017c failed 1,258 of 2,069 root attempts with 'connect ECONNREFUSED
4896
- * 127.0.0.1:32897'. The window keeps a seconds-long local restart from ending a run.
4887
+ * {@link REPEATED_FAILURE_LIMIT} attempts in a row failing alike within {@link INSTANT_FAILURE_MS}
4888
+ * over {@link REPEATED_FAILURE_WINDOW_MS} stop with `repeated-failure` though progress reads
4889
+ * run-wide (magnetar-rust-20261017c failed 1,258 of 2,069 root attempts on one ECONNREFUSED).
4897
4890
  */
4898
4891
  const INSTANT_FAILURE_MS = 3e4;
4899
4892
  const REPEATED_FAILURE_LIMIT = 10;
@@ -4908,20 +4901,13 @@ const CONTENT_FILTER_REFUSAL_LIMIT = 8;
4908
4901
  /** Consecutive identical reconciliation failures of one pending invocation that resolve it. */
4909
4902
  const SAME_PENDING_LIMIT = 2;
4910
4903
  /**
4911
- * Consecutive attempts ending in the same Sandbox `PartialFailureError` (a box created that then
4912
- * failed its setup) with nothing gained stop the loop: the retained execution is bound durably to
4913
- * the node, so each re-entry meets the same box and failure. Run queens21-h22-capture-root-1-
4914
- * 20261019c re-entered four such boxes 154 times in 37 minutes on `mkdir: cannot create directory
4915
- * '/work': Read-only file system`, inside the transient-outage window. A second identical attempt
4916
- * proves what a third repeats; a different failure, or any progress, restarts the count.
4904
+ * Attempts in a row failing on the same Sandbox `PartialFailureError` (a created box whose setup
4905
+ * failed) with nothing gained stop the loop: each re-entry meets the same durably bound box. Run
4906
+ * queens21-h22-capture-root-1-20261019c re-entered four such boxes 154 times in 37 minutes.
4917
4907
  */
4918
4908
  const SAME_PARTIAL_FAILURE_LIMIT = 2;
4919
- /**
4920
- * Why an aborted run stopped: `deadline` when the root's or the node's own deadline cut it, else
4921
- * `aborted`. Read before any failure classification, which calls every failure after an abort
4922
- * terminal: 61 of 62 runs that ended `terminal-error` were a deadline that cut
4923
- * a turn.
4924
- */
4909
+ /** `deadline` when a deadline cut the run, else `aborted`. Read before classification, which calls
4910
+ * every failure after an abort terminal: 61 of 62 `terminal-error` runs were a cut deadline. */
4925
4911
  function abortStop(signal) {
4926
4912
  return isDeadlineAbortReason(signal.reason) ? "deadline" : "aborted";
4927
4913
  }
@@ -4937,12 +4923,8 @@ function admissionError(stop) {
4937
4923
  function contractOf(mark) {
4938
4924
  return mark.contract ?? "none";
4939
4925
  }
4940
- /**
4941
- * Did this attempt move the run toward its DELIVERABLE? A delivery always counts (an accepted
4942
- * submission, a child that passed the check, the contract turning met, a rise in the best
4943
- * composite). Spend and settlements count only while no declared check is outstanding; with one
4944
- * unmet they are the burn-rate reading the header rejects.
4945
- */
4926
+ /** Did this attempt move the run toward its DELIVERABLE? A delivery always counts; spend and
4927
+ * settlements count only while no declared check is outstanding. */
4946
4928
  function madeProgress(before, after) {
4947
4929
  if (after.submitted && !before.submitted) return true;
4948
4930
  if ((after.deliveredCount ?? 0) > (before.deliveredCount ?? 0)) return true;
@@ -5237,7 +5219,7 @@ var DriverRetryLoop = class {
5237
5219
  else this.outageSince ??= failedAt;
5238
5220
  const inOutage = idle && failedAt - (this.outageSince ?? failedAt) < limits.transientOutage;
5239
5221
  if (!inOutage) this.chargedFailures += 1;
5240
- const message = errMessage(error);
5222
+ const message = error instanceof HarnessTurnFailedError && error.errorCode !== void 0 ? errMessage(error).replace(` (${error.errorCode})`, "") : errMessage(error);
5241
5223
  const sameFailure = failure.durationMs >= INSTANT_FAILURE_MS ? void 0 : this.sameFailure?.error === message ? {
5242
5224
  error: message,
5243
5225
  count: this.sameFailure.count + 1,
@@ -5257,7 +5239,7 @@ var DriverRetryLoop = class {
5257
5239
  count: 1,
5258
5240
  since: failedAt
5259
5241
  } : void 0;
5260
- this.sameIdle = sameIdle;
5242
+ if (failure.pending === void 0 || progressed) this.sameIdle = sameIdle;
5261
5243
  if (run.signal.aborted) return abortStop(run.signal);
5262
5244
  if (classification === "terminal") return "terminal-error";
5263
5245
  if (!limits.retryEnabled) return "retry-disabled";
@@ -5283,11 +5265,8 @@ var DriverRetryLoop = class {
5283
5265
  }
5284
5266
  return abandoned;
5285
5267
  }
5286
- /**
5287
- * Decide what a completed drive with its check unmet does next. Every bound the FAILURE path
5288
- * applies is applied here too (`budgetStop` once lived only in the catch arm), and read again
5289
- * after the note is composed, because composing may run the question panel.
5290
- */
5268
+ /** Decide what a completed drive with its check unmet does next, under every failure-path bound,
5269
+ * read again after the note is composed (composing may run the question panel). */
5291
5270
  async decideContinuation(policy, attempt, after) {
5292
5271
  const { run } = this;
5293
5272
  const now = this.limits.now;
@@ -5321,11 +5300,8 @@ var DriverRetryLoop = class {
5321
5300
  barren
5322
5301
  };
5323
5302
  }
5324
- /**
5325
- * A barren streak paces the run and never ends it: once it reaches `maxBarren`, journal the
5326
- * pause and sleep through it. The pause holds no longer than the earlier deadline; the caller
5327
- * reads the bounds again when it ends.
5328
- */
5303
+ /** A barren streak at `maxBarren` paces the run and never ends it: journal the pause and sleep
5304
+ * through it, never past the earlier deadline; the caller reads the bounds again after. */
5329
5305
  async barrenPause(policy, attempt) {
5330
5306
  if (this.barrenReentries < policy.maxBarren) return void 0;
5331
5307
  const { run } = this;
@@ -9447,4 +9423,4 @@ function superviseWithContext(profile, task, opts, brain) {
9447
9423
  }
9448
9424
  export { analyzesFindingsReportPrompt as A, anyOf as B, flowRootProfile as C, defaultEdgeTraversalCap as D, validateFlowGraph as E, formatPromptHandle as F, bestSoFar as G, plateau as H, kernelPromptRegistry as I, createSupervisorSpanRecorder as J, plateauLength as K, naiveContinuationPrompt as L, delegatesWorkerBriefPrompt as M, dumbContinuationFailPrompt as N, graphRootProfile as O, dumbContinuationPassPrompt as P, promptHandle as R, createFlowRun as S, routeFlowOf as T, anytimeReport as U, noProgressFor as V, areaUnderCurve as W, coordinationControlToolNames as _, superviseRootProfile as a, createGraphOverlay as b, retryPreSpawnRefusals as c, supervisorAgent as d, supervisorAgentWithTestBrain as f, serveCoordinationMcp as g, composeReentryTask as h, profileGuidanceComposer as i, createPromptRegistry as j, validateGraphTopology as k, withWorkerSpawnRetry as l, UNPROVEN_CONTINUITY as m, superviseFleetCapabilities as n, isPreSpawnExecutorFailure as o, runToolSpans as p, renderAnytimeTable as q, superviseWithTestBrain as r, resolveWorkerSpawnRetry as s, supervise as t, workerFromBackend as u, driverAgent as v, journaledGateDecider as w, GraphRouteError as x, runBrainLoop as y, allWorkersStalled as z };
9449
9425
 
9450
- //# sourceMappingURL=supervise-CKizKwTp.js.map
9426
+ //# sourceMappingURL=supervise-dOLWtwyj.js.map