@tangle-network/agent-runtime 3.0.42 → 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 (61) 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--q1zCR-1.js → delegate-CAvTMCk0.js} +2 -2
  9. package/dist/{delegate--q1zCR-1.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-oFhKT5Ad.js → graph-C7Xthj-4.js} +5 -5
  13. package/dist/{graph-oFhKT5Ad.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-BmtOiAiq.js → loop-runner-BchibTTn.js} +2 -2
  23. package/dist/{loop-runner-BmtOiAiq.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-BsXRlG8W.js → runtime-CKoChP6L.js} +11 -11
  36. package/dist/{runtime-BsXRlG8W.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-WKv4YNcI.js → server-zdmmyP7r.js} +3 -3
  42. package/dist/{server-WKv4YNcI.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-BO9acmsB.js → supervise-472pyfgQ.js} +22 -19
  46. package/dist/{supervise-BO9acmsB.js.map → supervise-472pyfgQ.js.map} +1 -1
  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/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
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 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";
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,14 +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
- /** A nested manager's harness turns that ended failed alike, gaining nothing, stop it here with
4910
- * no window, so its parent acts at once (us-legal-exploits-20261103b:s1 retried one 2 hours). */
4911
- const SAME_HARNESS_FAILURE_LIMIT = 3;
4909
+ const SAME_DETERMINISTIC_LIMIT = 2;
4912
4910
  /** `deadline` when a deadline cut the run, else `aborted`. Read before classification, which calls
4913
4911
  * every failure after an abort terminal: 61 of 62 `terminal-error` runs were a cut deadline. */
4914
4912
  function abortStop(signal) {
@@ -4956,11 +4954,13 @@ function driverRetryLimits(run) {
4956
4954
  transientOutage: Math.max(0, policy.transientOutageMs ?? DEFAULT_TRANSIENT_OUTAGE_MS)
4957
4955
  };
4958
4956
  }
4959
- const harnessFailure = (error) => causeChain(error).find((cause) => cause instanceof HarnessTurnFailedError);
4960
- /** The stream codes a refusal and the exact result does not, so an absent code matches any. */
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. */
4961
4959
  function extend(streak, error, at) {
4962
- const code = harnessFailure(error)?.errorCode;
4963
- const text = (code ? errMessage(error).replace(` (${code})`, "") : errMessage(error)).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>");
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
4964
  if (streak?.error !== text || (streak.code ?? code) !== (code ?? streak.code)) return {
4965
4965
  error: text,
4966
4966
  code,
@@ -5118,6 +5118,7 @@ var DriverRetryLoop = class {
5118
5118
  durationMs: failure.durationMs,
5119
5119
  error: errMessage(failure.error),
5120
5120
  classification: failure.classification,
5121
+ ...failure.classification === "transient" ? { failureKind: transientFailureKind(failure.error) } : {},
5121
5122
  madeProgress: failure.progressed
5122
5123
  };
5123
5124
  }
@@ -5255,15 +5256,17 @@ var DriverRetryLoop = class {
5255
5256
  if (!inOutage) this.chargedFailures += 1;
5256
5257
  const sameFailure = failure.durationMs >= INSTANT_FAILURE_MS ? void 0 : extend(this.sameFailure, error, failedAt);
5257
5258
  this.sameFailure = sameFailure;
5258
- const sameIdle = classification === "transient" && !progressed && failure.pending === void 0 ? extend(this.sameIdle, error, failedAt) : void 0;
5259
- 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;
5260
5263
  if (run.signal.aborted) return abortStop(run.signal);
5261
5264
  if (classification === "terminal") return "terminal-error";
5262
5265
  if (!limits.retryEnabled) return "retry-disabled";
5263
5266
  const byBudget = budgetStop(run.budget(), failedAt);
5264
5267
  if (byBudget) return byBudget;
5265
5268
  if (this.refusals >= CONTENT_FILTER_REFUSAL_LIMIT) return "repeated-failure";
5266
- if (sameIdle !== void 0 && (causedByPartialFailure(error) ? sameIdle.count >= SAME_PARTIAL_FAILURE_LIMIT : run.nested === true && (harnessFailure(error) !== void 0 ? sameIdle.count >= SAME_HARNESS_FAILURE_LIMIT : 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";
5267
5270
  if (inOutage) return void 0;
5268
5271
  if (this.chargedFailures >= limits.maxAttempts) return "max-attempts";
5269
5272
  if (progressed) return repeatedBy(sameFailure, failedAt) ? "repeated-failure" : void 0;
@@ -9439,4 +9442,4 @@ function superviseWithContext(profile, task, opts, brain) {
9439
9442
  }
9440
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 };
9441
9444
 
9442
- //# sourceMappingURL=supervise-BO9acmsB.js.map
9445
+ //# sourceMappingURL=supervise-472pyfgQ.js.map