@tangle-network/agent-runtime 3.0.41 → 3.0.43

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 (62) hide show
  1. package/dist/{activation-CiM6hSrn.js → activation-1YUy4GWu.js} +2 -2
  2. package/dist/{activation-CiM6hSrn.js.map → activation-1YUy4GWu.js.map} +1 -1
  3. package/dist/{activation-C1_GUwX8.d.ts → activation-CiUbW1QE.d.ts} +2 -2
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +3 -3
  6. package/dist/{coordination-manager-_PcKOR-S.js → coordination-manager-DXOwLu9T.js} +4 -4
  7. package/dist/{coordination-manager-_PcKOR-S.js.map → coordination-manager-DXOwLu9T.js.map} +1 -1
  8. package/dist/{delegate-VmOpqr4q.js → delegate-CAvTMCk0.js} +2 -2
  9. package/dist/{delegate-VmOpqr4q.js.map → delegate-CAvTMCk0.js.map} +1 -1
  10. package/dist/durable.d.ts +1 -1
  11. package/dist/durable.js +6 -6
  12. package/dist/{graph-C3K0vEg-.js → graph-C7Xthj-4.js} +5 -5
  13. package/dist/{graph-C3K0vEg-.js.map → graph-C7Xthj-4.js.map} +1 -1
  14. package/dist/{improve-DhTBR1p-.js → improve-BZpoezFh.js} +6 -6
  15. package/dist/{improve-DhTBR1p-.js.map → improve-BZpoezFh.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-BCNdBh8P.js → loop-runner-BchibTTn.js} +2 -2
  23. package/dist/{loop-runner-BCNdBh8P.js.map → loop-runner-BchibTTn.js.map} +1 -1
  24. package/dist/{loop-runner-DMBWRkx0.d.ts → loop-runner-Dmjf2IY6.d.ts} +2 -2
  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 +3 -3
  28. package/dist/mcp/index.d.ts +1 -1
  29. package/dist/mcp/index.js +5 -5
  30. package/dist/profiles.d.ts +1 -1
  31. package/dist/{provision-supervisor-wJp8ECNK.js → provision-supervisor-BtDnk11d.js} +4 -4
  32. package/dist/{provision-supervisor-wJp8ECNK.js.map → provision-supervisor-BtDnk11d.js.map} +1 -1
  33. package/dist/{run-cancellation-Xh0hv_aO.js → run-cancellation-DEW04dun.js} +2 -2
  34. package/dist/{run-cancellation-Xh0hv_aO.js.map → run-cancellation-DEW04dun.js.map} +1 -1
  35. package/dist/{runtime-C_bXuIBi.js → runtime-CKoChP6L.js} +11 -11
  36. package/dist/{runtime-C_bXuIBi.js.map → runtime-CKoChP6L.js.map} +1 -1
  37. package/dist/{scope-D04GkJ6P.js → scope-Bg1uCsPR.js} +9 -4
  38. package/dist/scope-Bg1uCsPR.js.map +1 -0
  39. package/dist/{search-executor-Dzhi0WRa.js → search-executor-CJ5y2-b8.js} +3 -3
  40. package/dist/{search-executor-Dzhi0WRa.js.map → search-executor-CJ5y2-b8.js.map} +1 -1
  41. package/dist/{server-BQhawXPP.js → server-zdmmyP7r.js} +3 -3
  42. package/dist/{server-BQhawXPP.js.map → server-zdmmyP7r.js.map} +1 -1
  43. package/dist/{structural-rollout-xXWwKM4G.js → structural-rollout-CH9b7K9B.js} +3 -3
  44. package/dist/{structural-rollout-xXWwKM4G.js.map → structural-rollout-CH9b7K9B.js.map} +1 -1
  45. package/dist/{supervise-Dh8Mp3v8.js → supervise-472pyfgQ.js} +43 -37
  46. package/dist/supervise-472pyfgQ.js.map +1 -0
  47. package/dist/{supervision-discovery-CcTLSYff.js → supervision-discovery-CD350Iar.js} +2 -2
  48. package/dist/{supervision-discovery-CcTLSYff.js.map → supervision-discovery-CD350Iar.js.map} +1 -1
  49. package/dist/{supervisor-BQz8lkcd.js → supervisor-BDOWzyCC.js} +45 -15
  50. package/dist/supervisor-BDOWzyCC.js.map +1 -0
  51. package/dist/testing.d.ts +1 -1
  52. package/dist/testing.js +11 -11
  53. package/dist/{top-web-D-QEIh-x.js → top-web-CNTJBqFy.js} +4 -4
  54. package/dist/{top-web-D-QEIh-x.js.map → top-web-CNTJBqFy.js.map} +1 -1
  55. package/dist/tui/bin.js +3 -3
  56. package/dist/tui/index.d.ts +1 -1
  57. package/dist/tui/index.js +2 -2
  58. package/dist/{types-CRCOBzGj.d.ts → types-tG_tps7N.d.ts} +4 -1
  59. package/package.json +1 -1
  60. package/dist/scope-D04GkJ6P.js.map +0 -1
  61. package/dist/supervise-Dh8Mp3v8.js.map +0 -1
  62. package/dist/supervisor-BQz8lkcd.js.map +0 -1
@@ -1,13 +1,13 @@
1
- import { $n as persistHarnessTranscript, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Ci as meterUsageEvent, Cr as inheritRuntimeOwnedExecutorAttestation, Di as assertValidBudget, Dr as providerAttemptEvidence, Dt as prepareScopeRetainedOwnerTask, Ei as spendFromUsageTotals, 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, St as scopeRetainedOwnerResourceReader, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as isRuntimeFlowBrain, Vn as generateSpanId, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Wr as runtimeFlowAgent, Xi as recordValue, Y as runtimeGraphMetadataKey, a as readRootStream, br as authoredAgentIdentity, bt as prepareScopeRetainedOwnerSeatSwitch, ct as recordScopeOwnerBarrenPause, di as unavailablePauseMs, dr as SeatChain, ei as RetainedExecutionPendingError, er as readHarnessTranscript, fi as unavailableResumeAt, fr as SeatChainExhaustedError, gi as contentAddress, ia as RunCancellationReason, ii as registerRetainedExecutorPreparation, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as cappedDoublingMs, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, oa as linkAbort, oi as retainedExecutorSeamKey, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, sa as runAbortable, st as meterRuntimeOwnedProviderAttempt, ui as jitteredMs, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, vi as executorFailure, wi as newUsageTotals, xt as releaseScopeRetainedOwnerForSeatPause, yr as attestRuntimeOwnedScopeOwner, zn as createOtelExporter, zt as bindScopeRetainedOwnerProvider } from "./scope-D04GkJ6P.js";
1
+ import { $n as persistHarnessTranscript, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Cr as inheritRuntimeOwnedExecutorAttestation, Di as spendFromUsageTotals, Dr as providerAttemptEvidence, Dt as prepareScopeRetainedOwnerTask, 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, Oi as assertValidBudget, Or as recordRuntimeOwnedDriveHarnessProviderEvidence, Ot as scopeRetainedOwnerPriorSpend, Pr as runtimeOwnedExecutorExecutionBinding, Pt as reconcileScopeRetainedOwnerEnvironment, Q as assertRecursiveReservationPolicy, Rr as runtimeOwnedScopeOwnerRuntime, Rt as bindScopeRetainedOwnerEnvironmentId, St as scopeRetainedOwnerResourceReader, Ti as newUsageTotals, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as isRuntimeFlowBrain, Vn as generateSpanId, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Wr as runtimeFlowAgent, Y as runtimeGraphMetadataKey, Zi as recordValue, _i as contentAddress, a as readRootStream, aa as RunCancellationReason, br as authoredAgentIdentity, bt as prepareScopeRetainedOwnerSeatSwitch, ca as runAbortable, ct as recordScopeOwnerBarrenPause, dr as SeatChain, ei as RetainedExecutionPendingError, er as readHarnessTranscript, fi as unavailablePauseMs, fr as SeatChainExhaustedError, ii as registerRetainedExecutorPreparation, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as cappedDoublingMs, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, oi as retainedExecutorSeamKey, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pi as unavailableResumeAt, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, sa as linkAbort, st as meterRuntimeOwnedProviderAttempt, ui as jitteredMs, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, wi as meterUsageEvent, xt as releaseScopeRetainedOwnerForSeatPause, yi as executorFailure, yr as attestRuntimeOwnedScopeOwner, zn as createOtelExporter, zt as bindScopeRetainedOwnerProvider } from "./scope-Bg1uCsPR.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
- import { d as detachedSnapshot, h as errorHttpStatus, m as errMessage } from "./jsonl-file-CbxMVnUj.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-BQz8lkcd.js";
4
+ import { d as detachedSnapshot, h as errorHttpStatus, m as errMessage, p as causeChain } from "./jsonl-file-CbxMVnUj.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 isContentFilterRefusal, en as renderUnsupported, et as PEER_MAIL_WIRE_KEY, f as runTree, ft as summarizeDriverAttempts, 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 transientFailureKind, rn as unsupportedProfileDimensions, rt as isPeerMailEnvelope, st as DriverAttemptsExhaustedError, u as bestDelivered, ut as classifyDriverFailure, vt as gateFactoryOnDeliverable, w as snapshotExecutorConfig, wt as bestComposite, x as bindReusableExecutorExecutionId, z as toolResultText, zt as bridgeStopSignalKey } from "./supervisor-BDOWzyCC.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-JOcg3NRs.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-Xh0hv_aO.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-_PcKOR-S.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-DEW04dun.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-DXOwLu9T.js";
11
11
  import { o as safeJsonText } from "./coordination-map-routing-2_hUlTnz.js";
12
12
  import { a as graphRegistry, c as loadGraph } from "./graph-registry-BoaUV5g8.js";
13
13
  import { ATTR, agentIdentityAttributes } from "@tangle-network/agent-trace-contract";
@@ -4901,11 +4901,12 @@ const CONTENT_FILTER_REFUSAL_LIMIT = 8;
4901
4901
  /** Consecutive identical reconciliation failures of one pending invocation that resolve it. */
4902
4902
  const SAME_PENDING_LIMIT = 2;
4903
4903
  /**
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.
4904
+ * Invocations in a row ending in one deterministic failure with nothing gained that stop the agent
4905
+ * with no window, so its parent acts at once: a second proves what a third repeats. Over the week
4906
+ * to 2026-11-04, us-legal-exploits-20261103b:s1 retried one harness refusal for 2 hours and
4907
+ * queens21-h22-capture-root-1-20261019c re-entered four failed boxes 154 times in 37 minutes.
4907
4908
  */
4908
- const SAME_PARTIAL_FAILURE_LIMIT = 2;
4909
+ const SAME_DETERMINISTIC_LIMIT = 2;
4909
4910
  /** `deadline` when a deadline cut the run, else `aborted`. Read before classification, which calls
4910
4911
  * every failure after an abort terminal: 61 of 62 `terminal-error` runs were a cut deadline. */
4911
4912
  function abortStop(signal) {
@@ -4953,6 +4954,25 @@ function driverRetryLimits(run) {
4953
4954
  transientOutage: Math.max(0, policy.transientOutageMs ?? DEFAULT_TRANSIENT_OUTAGE_MS)
4954
4955
  };
4955
4956
  }
4957
+ /** A failure compares by the first cause under any pending-reconciliation wrapper. The stream
4958
+ * codes a refusal and the exact result does not, so an absent code matches any. */
4959
+ function extend(streak, error, at) {
4960
+ const chain = causeChain(error);
4961
+ const root = chain.find((cause) => !(cause instanceof RetainedExecutionPendingError)) ?? error;
4962
+ const code = chain.find((cause) => cause instanceof HarnessTurnFailedError)?.errorCode;
4963
+ const text = (code ? errMessage(root).replace(` (${code})`, "") : errMessage(root)).replace(/\d{4}-\d\d-\d\dT[\d:.]+Z?/gu, "<time>").replace(/\b(?=[\da-f-]*\d)[\da-f]{8,}(?:-[\da-f]{4,})*\b/giu, "<id>").replace(/\d{6,}/gu, "<n>");
4964
+ if (streak?.error !== text || (streak.code ?? code) !== (code ?? streak.code)) return {
4965
+ error: text,
4966
+ code,
4967
+ count: 1,
4968
+ since: at
4969
+ };
4970
+ return {
4971
+ ...streak,
4972
+ code: code ?? streak.code,
4973
+ count: streak.count + 1
4974
+ };
4975
+ }
4956
4976
  /** True once a streak has run {@link REPEATED_FAILURE_LIMIT} alike over the window by `at`. */
4957
4977
  const repeatedBy = (streak, at) => streak !== void 0 && streak.count >= REPEATED_FAILURE_LIMIT && at - streak.since >= REPEATED_FAILURE_WINDOW_MS;
4958
4978
  /** The retry loop's streaks and counters, and the decision each drive's outcome makes with them. */
@@ -5098,6 +5118,7 @@ var DriverRetryLoop = class {
5098
5118
  durationMs: failure.durationMs,
5099
5119
  error: errMessage(failure.error),
5100
5120
  classification: failure.classification,
5121
+ ...failure.classification === "transient" ? { failureKind: transientFailureKind(failure.error) } : {},
5101
5122
  madeProgress: failure.progressed
5102
5123
  };
5103
5124
  }
@@ -5233,33 +5254,19 @@ var DriverRetryLoop = class {
5233
5254
  else this.outageSince ??= failedAt;
5234
5255
  const inOutage = idle && failedAt - (this.outageSince ?? failedAt) < limits.transientOutage;
5235
5256
  if (!inOutage) this.chargedFailures += 1;
5236
- const message = error instanceof HarnessTurnFailedError && error.errorCode !== void 0 ? errMessage(error).replace(` (${error.errorCode})`, "") : errMessage(error);
5237
- const sameFailure = failure.durationMs >= INSTANT_FAILURE_MS ? void 0 : this.sameFailure?.error === message ? {
5238
- error: message,
5239
- count: this.sameFailure.count + 1,
5240
- since: this.sameFailure.since
5241
- } : {
5242
- error: message,
5243
- count: 1,
5244
- since: failedAt
5245
- };
5257
+ const sameFailure = failure.durationMs >= INSTANT_FAILURE_MS ? void 0 : extend(this.sameFailure, error, failedAt);
5246
5258
  this.sameFailure = sameFailure;
5247
- const sameIdle = classification === "transient" && !progressed && failure.pending === void 0 ? this.sameIdle?.error === message ? {
5248
- ...this.sameIdle,
5249
- count: this.sameIdle.count + 1
5250
- } : {
5251
- error: message,
5252
- count: 1,
5253
- since: failedAt
5254
- } : void 0;
5255
- if (failure.pending === void 0 || progressed) this.sameIdle = sameIdle;
5259
+ const kind = classification === "transient" ? transientFailureKind(error) : void 0;
5260
+ if (progressed || kind === void 0 || isContentFilterRefusal(error)) this.sameIdle = void 0;
5261
+ else if (failure.pending === void 0) this.sameIdle = extend(this.sameIdle, error, failedAt);
5262
+ const sameIdle = this.sameIdle;
5256
5263
  if (run.signal.aborted) return abortStop(run.signal);
5257
5264
  if (classification === "terminal") return "terminal-error";
5258
5265
  if (!limits.retryEnabled) return "retry-disabled";
5259
5266
  const byBudget = budgetStop(run.budget(), failedAt);
5260
5267
  if (byBudget) return byBudget;
5261
5268
  if (this.refusals >= CONTENT_FILTER_REFUSAL_LIMIT) return "repeated-failure";
5262
- if (sameIdle !== void 0 && (causedByPartialFailure(error) ? sameIdle.count >= SAME_PARTIAL_FAILURE_LIMIT : run.nested === true && repeatedBy(sameIdle, failedAt))) return "repeated-failure";
5269
+ if (sameIdle !== void 0 && (kind === "deterministic" ? sameIdle.count >= SAME_DETERMINISTIC_LIMIT : run.nested === true && repeatedBy(sameIdle, failedAt))) return "repeated-failure";
5263
5270
  if (inOutage) return void 0;
5264
5271
  if (this.chargedFailures >= limits.maxAttempts) return "max-attempts";
5265
5272
  if (progressed) return repeatedBy(sameFailure, failedAt) ? "repeated-failure" : void 0;
@@ -5496,13 +5503,12 @@ var DriverRetryLoop = class {
5496
5503
  * no word of its three open workers, two barren continuations followed, and the barren bound of the
5497
5504
  * time settled the run `no-result-selected`.
5498
5505
  *
5499
- * A TRANSIENT failure that spent nothing, settled nothing and made no progress is an infrastructure
5500
- * outage until its streak has lasted `transientOutageMs`: within that window it consumes neither
5501
- * `maxAttempts` nor the barren streak, like a pause. After it the failure bounds apply, so a
5502
- * dead-on-arrival driver still stops in minutes rather than hours. The exceptions meet the same
5503
- * failure on every re-entry and stop with `repeated-failure`: a box created and then failed its
5504
- * setup (`PartialFailureError`) at a second identical attempt with no progress, and a `nested`
5505
- * manager at the repeated-failure count and window. A failure that spent tokens keeps the bounds.
5506
+ * A TRANSIENT failure that spent nothing, settled nothing and made no progress is an outage until
5507
+ * its streak has lasted `transientOutageMs`: it consumes neither `maxAttempts` nor the barren
5508
+ * streak, like a pause; after it the failure bounds apply. Failures met alike (ids and times
5509
+ * blanked) on every re-entry with no progress stop with `repeated-failure` inside the window: a
5510
+ * `PartialFailureError` box at the second, a `nested` manager's failed harness turn at the third,
5511
+ * and its other failures at the repeated-failure count and window.
5506
5512
  * A Platform restart answered
5507
5513
  * `HTTP 502 ... Platform key verification unavailable` from 03:04:34 to 03:09:41Z, and the
5508
5514
  * coordinator's twelve attempts ran out at 03:07:12Z with no token spent.
@@ -9436,4 +9442,4 @@ function superviseWithContext(profile, task, opts, brain) {
9436
9442
  }
9437
9443
  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 };
9438
9444
 
9439
- //# sourceMappingURL=supervise-Dh8Mp3v8.js.map
9445
+ //# sourceMappingURL=supervise-472pyfgQ.js.map