@tangle-network/agent-runtime 3.0.18 → 3.0.20
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.
- package/dist/{activation-BDfK0qUP.js → activation-BZk0Bz_s.js} +2 -2
- package/dist/{activation-BDfK0qUP.js.map → activation-BZk0Bz_s.js.map} +1 -1
- package/dist/{activation-BInDGC5t.d.ts → activation-nIJyep92.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +3 -3
- package/dist/{coordination-manager-BRJ-3FYo.js → coordination-manager-BEk8adhl.js} +4 -4
- package/dist/{coordination-manager-BRJ-3FYo.js.map → coordination-manager-BEk8adhl.js.map} +1 -1
- package/dist/{delegate-B5a4wCau.js → delegate-Bupjhk_3.js} +2 -2
- package/dist/{delegate-B5a4wCau.js.map → delegate-Bupjhk_3.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +6 -6
- package/dist/{graph-HaMcqUWX.js → graph-hKkudsp6.js} +5 -5
- package/dist/{graph-HaMcqUWX.js.map → graph-hKkudsp6.js.map} +1 -1
- package/dist/{improve-B4LkHUCx.js → improve-DTqGewOl.js} +6 -6
- package/dist/{improve-B4LkHUCx.js.map → improve-DTqGewOl.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +8 -8
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +4 -4
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +11 -11
- package/dist/{loop-runner-Df3gLvJm.js → loop-runner-08qKJIeM.js} +2 -2
- package/dist/{loop-runner-Df3gLvJm.js.map → loop-runner-08qKJIeM.js.map} +1 -1
- package/dist/{loop-runner-m1GCPOEC.d.ts → loop-runner-CX0ZrhbR.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +5 -5
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-CI7KnQU5.js → provision-supervisor-44PsyM4H.js} +4 -4
- package/dist/{provision-supervisor-CI7KnQU5.js.map → provision-supervisor-44PsyM4H.js.map} +1 -1
- package/dist/{run-cancellation-pmPWcMy0.js → run-cancellation-BgxkVAMB.js} +2 -2
- package/dist/{run-cancellation-pmPWcMy0.js.map → run-cancellation-BgxkVAMB.js.map} +1 -1
- package/dist/{runtime-DuCYicSd.js → runtime-C1a1owkE.js} +11 -11
- package/dist/{runtime-DuCYicSd.js.map → runtime-C1a1owkE.js.map} +1 -1
- package/dist/{scope-BKJ_SdfW.js → scope-B7AKskjP.js} +20 -21
- package/dist/scope-B7AKskjP.js.map +1 -0
- package/dist/{search-executor-CQIV9K8q.js → search-executor-DXwfkQuk.js} +3 -3
- package/dist/{search-executor-CQIV9K8q.js.map → search-executor-DXwfkQuk.js.map} +1 -1
- package/dist/{server-BP7d8yGG.js → server-BJPBEn6j.js} +3 -3
- package/dist/{server-BP7d8yGG.js.map → server-BJPBEn6j.js.map} +1 -1
- package/dist/{structural-rollout-BGbw3v4h.js → structural-rollout-Ko9o5nLr.js} +3 -3
- package/dist/{structural-rollout-BGbw3v4h.js.map → structural-rollout-Ko9o5nLr.js.map} +1 -1
- package/dist/{supervise-BHxxCvbk.js → supervise-DDtGux2I.js} +17 -5
- package/dist/supervise-DDtGux2I.js.map +1 -0
- package/dist/{supervision-discovery-D3RjhxX4.js → supervision-discovery-CavnyD8r.js} +2 -2
- package/dist/{supervision-discovery-D3RjhxX4.js.map → supervision-discovery-CavnyD8r.js.map} +1 -1
- package/dist/{supervisor-BFoJnigz.js → supervisor-BZgJRcFI.js} +9 -24
- package/dist/supervisor-BZgJRcFI.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/{top-web-BYx8LLQ7.js → top-web-DkSIy74b.js} +4 -4
- package/dist/{top-web-BYx8LLQ7.js.map → top-web-DkSIy74b.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +2 -2
- package/dist/{types-BN0Twv-5.d.ts → types-JZG7seO5.d.ts} +4 -4
- package/package.json +1 -1
- package/dist/scope-BKJ_SdfW.js.map +0 -1
- package/dist/supervise-BHxxCvbk.js.map +0 -1
- package/dist/supervisor-BFoJnigz.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $n as persistHarnessTranscript, Ai as spendFromUsageTotals, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Br as runtimeOwnedExecutorMaterialization, Di as meterUsageEvent, Dt as prepareScopeRetainedOwnerTask, Et as consumeScopeRetainedOwnerResult, Ft as scopeRetainedOwnerRestorePoint, G as scopeOwnerExecutorNodeContext, H as noteScopeOwnerPlannedExecution, Hr as runtimeOwnedPendingExecutorMaterialization, Ht as scopeRetainedOwnerJournalRoot, It as noteScopeRetainedOwnerCoordination, J as providerVisibleProfile, Jr as isRuntimeFlowBrain, K as coordinationMcpAlias, Mr as providerAttemptEvidence, Mt as scopeRetainedOwnerTurnEnded, Nr as recordRuntimeOwnedDriveHarnessProviderEvidence, Nt as assertRetainedOwnerCoordinationRekey, O as parseWorkerToolTraceArtifact, Oi as newUsageTotals, Or as inheritRuntimeOwnedExecutorAttestation, Ot as scopeRetainedOwnerPriorSpend, Pt as reconcileScopeRetainedOwnerEnvironment, Q as assertRecursiveReservationPolicy, Rr as runtimeOwnedDriveHarnessProviderEvidence, Rt as bindScopeRetainedOwnerEnvironmentId, Si as executorFailure, St as scopeRetainedOwnerResourceReader, Tr as authoredAgentIdentity, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as runtimeOwnedScopeOwnerRuntime, Vn as generateSpanId, Vr as runtimeOwnedExecutorProviderEvidence, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Xr as runtimeFlowBrain, Y as runtimeGraphMetadataKey, Yr as runtimeFlowAgent, a as readRootStream, bi as contentAddress, bt as prepareScopeRetainedOwnerSeatSwitch, ct as recordScopeOwnerBarrenPause, dr as SeatChain, ea as recordValue, er as readHarnessTranscript, fi as cappedDoublingMs, fr as SeatChainExhaustedError, gr as RunCancellationReason, hi as unavailableResumeAt, ii as RetainedExecutionPendingError, ji as assertValidBudget, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as retainedExecutorSeamKey, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mi as unavailablePauseMs, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pi as jitteredMs, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, si as registerRetainedExecutorPreparation, st as meterRuntimeOwnedProviderAttempt, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, vr as linkAbort, wr as attestRuntimeOwnedScopeOwner, xt as releaseScopeRetainedOwnerForSeatPause, yr as runAbortable, zn as createOtelExporter, zr as runtimeOwnedExecutorExecutionBinding, zt as bindScopeRetainedOwnerProvider } from "./scope-
|
|
1
|
+
import { $n as persistHarnessTranscript, Ai as spendFromUsageTotals, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Br as runtimeOwnedExecutorMaterialization, Di as meterUsageEvent, Dt as prepareScopeRetainedOwnerTask, Et as consumeScopeRetainedOwnerResult, Ft as scopeRetainedOwnerRestorePoint, G as scopeOwnerExecutorNodeContext, H as noteScopeOwnerPlannedExecution, Hr as runtimeOwnedPendingExecutorMaterialization, Ht as scopeRetainedOwnerJournalRoot, It as noteScopeRetainedOwnerCoordination, J as providerVisibleProfile, Jr as isRuntimeFlowBrain, K as coordinationMcpAlias, Mr as providerAttemptEvidence, Mt as scopeRetainedOwnerTurnEnded, Nr as recordRuntimeOwnedDriveHarnessProviderEvidence, Nt as assertRetainedOwnerCoordinationRekey, O as parseWorkerToolTraceArtifact, Oi as newUsageTotals, Or as inheritRuntimeOwnedExecutorAttestation, Ot as scopeRetainedOwnerPriorSpend, Pt as reconcileScopeRetainedOwnerEnvironment, Q as assertRecursiveReservationPolicy, Rr as runtimeOwnedDriveHarnessProviderEvidence, Rt as bindScopeRetainedOwnerEnvironmentId, Si as executorFailure, St as scopeRetainedOwnerResourceReader, Tr as authoredAgentIdentity, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as runtimeOwnedScopeOwnerRuntime, Vn as generateSpanId, Vr as runtimeOwnedExecutorProviderEvidence, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Xr as runtimeFlowBrain, Y as runtimeGraphMetadataKey, Yr as runtimeFlowAgent, a as readRootStream, bi as contentAddress, bt as prepareScopeRetainedOwnerSeatSwitch, ct as recordScopeOwnerBarrenPause, dr as SeatChain, ea as recordValue, er as readHarnessTranscript, fi as cappedDoublingMs, fr as SeatChainExhaustedError, gr as RunCancellationReason, hi as unavailableResumeAt, ii as RetainedExecutionPendingError, ji as assertValidBudget, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as retainedExecutorSeamKey, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mi as unavailablePauseMs, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pi as jitteredMs, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, si as registerRetainedExecutorPreparation, st as meterRuntimeOwnedProviderAttempt, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, vr as linkAbort, wr as attestRuntimeOwnedScopeOwner, xt as releaseScopeRetainedOwnerForSeatPause, yr as runAbortable, zn as createOtelExporter, zr as runtimeOwnedExecutorExecutionBinding, zt as bindScopeRetainedOwnerProvider } from "./scope-B7AKskjP.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 { B as createRouterTranscript, C as createExecutor, Ct as
|
|
5
|
+
import { $t as renderUnsupported, B as createRouterTranscript, C as createExecutor, Ct as bestComposite, F as codeModeArguments, Gt as assertProfileMaterialization, I as codeModeModelOutput, Jt as defineProfileMaterializationContract, L as createCodeModeTools, Lt as bridgeRuntimeAttachmentsKey, Ot as bridgeAdmissionRefusal, Qt as promptModelProfileMaterialization, Rt as bridgeStopSignalKey, S as captureReusableExecutorConfig, St as admitContinuationPolicy, Tt as createContinuationKeeper, U as resolveAgentEnvironmentProvider, V as routerBrain, X as createInbox, Xt as profileMaterializationAxes$1, Y as INBOX_RECEIPT_KEY, Yt as fullProfileMaterialization, Zt as promptControlProfileMaterialization, _t as gateFactoryOnDeliverable, a as assertRunParking, c as sleepScopeWait, ct as HarnessTurnFailedError, d as runFinalizer, dt as classifyDriverFailure, et as PEER_MAIL_WIRE_KEY, f as runTree, ft as isContentFilterRefusal, g as isDriverSpec, gt as CheckUnavailableError, h as driverExecutorFactory, ht as upstreamUnavailableSignal, i as RunParkedError, kt as bridgeModelRouteRefusal, l as withRunParking, lt as abandonablePending, m as driverChild, mt as undispatchedCredentialExit, n as createSupervisor, nn as unsupportedProfileDimensions, o as bindScopeParkingDrain, p as createRootHandle, pt as summarizeDriverAttempts, qt as controlProfileMaterialization, rn as worktreeCliProfileMaterialization, rt as isPeerMailEnvelope, st as DriverAttemptsExhaustedError, tn as sandboxProfileMaterialization, u as bestDelivered, ut as causedByPartialFailure, w as snapshotExecutorConfig, wt as checkVerdictOf, x as bindReusableExecutorExecutionId, xt as CONTINUATIONS_DIR, z as toolResultText } from "./supervisor-BZgJRcFI.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 { t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
8
|
-
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-
|
|
9
|
-
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-
|
|
8
|
+
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-BgxkVAMB.js";
|
|
9
|
+
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-BEk8adhl.js";
|
|
10
10
|
import { o as safeJsonText } from "./coordination-map-routing-BllzcZov.js";
|
|
11
11
|
import { n as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-CZWd_Opp.js";
|
|
12
12
|
import { a as graphRegistry, c as loadGraph } from "./graph-registry-D6y6zffC.js";
|
|
@@ -4960,6 +4960,13 @@ function barrenPauseMs(streak, maxBarren) {
|
|
|
4960
4960
|
const INSTANT_FAILURE_MS = 3e4;
|
|
4961
4961
|
const REPEATED_FAILURE_LIMIT = 10;
|
|
4962
4962
|
const REPEATED_FAILURE_WINDOW_MS = 3e5;
|
|
4963
|
+
/**
|
|
4964
|
+
* Content-filter refusals in a row (any other outcome resets) that stop an agent with
|
|
4965
|
+
* `repeated-failure`; an opted-in root pauses and re-enters. One prompt is not refused every time:
|
|
4966
|
+
* on Discovery run magnetar-rust-sandbox-20261031f agents passed after up to 6 in a row (`:s0:s1`
|
|
4967
|
+
* on its 7th identical send), and the loops that never passed ran 9 and 10.
|
|
4968
|
+
*/
|
|
4969
|
+
const CONTENT_FILTER_REFUSAL_LIMIT = 8;
|
|
4963
4970
|
/** Consecutive identical reconciliation failures of one pending invocation that resolve it. */
|
|
4964
4971
|
const SAME_PENDING_LIMIT = 2;
|
|
4965
4972
|
/**
|
|
@@ -5040,6 +5047,7 @@ var DriverRetryLoop = class {
|
|
|
5040
5047
|
samePending;
|
|
5041
5048
|
sameFailure;
|
|
5042
5049
|
sameIdle;
|
|
5050
|
+
refusals = 0;
|
|
5043
5051
|
abandonments = 0;
|
|
5044
5052
|
stopPauses = 0;
|
|
5045
5053
|
pauses = 0;
|
|
@@ -5150,6 +5158,7 @@ var DriverRetryLoop = class {
|
|
|
5150
5158
|
this.consecutiveBarren = 0;
|
|
5151
5159
|
this.sameFailure = void 0;
|
|
5152
5160
|
this.sameIdle = void 0;
|
|
5161
|
+
this.refusals = 0;
|
|
5153
5162
|
this.samePending = void 0;
|
|
5154
5163
|
this.abandonments = 0;
|
|
5155
5164
|
this.outageSince = void 0;
|
|
@@ -5179,6 +5188,7 @@ var DriverRetryLoop = class {
|
|
|
5179
5188
|
async afterFailure(error, attempt, before, startedAt) {
|
|
5180
5189
|
const durationMs = this.limits.now() - startedAt;
|
|
5181
5190
|
const classification = classifyDriverFailure(error, this.run.signal, this.run.stopSignal);
|
|
5191
|
+
this.refusals = isContentFilterRefusal(error) ? this.refusals + 1 : 0;
|
|
5182
5192
|
const after = this.run.progress();
|
|
5183
5193
|
const progressed = madeProgress(before, after);
|
|
5184
5194
|
if (progressed) {
|
|
@@ -5315,6 +5325,7 @@ var DriverRetryLoop = class {
|
|
|
5315
5325
|
if (!limits.retryEnabled) return "retry-disabled";
|
|
5316
5326
|
const byBudget = budgetStop(run.budget(), failedAt);
|
|
5317
5327
|
if (byBudget) return byBudget;
|
|
5328
|
+
if (this.refusals >= CONTENT_FILTER_REFUSAL_LIMIT) return "repeated-failure";
|
|
5318
5329
|
if (sameIdle !== void 0 && (causedByPartialFailure(error) ? sameIdle.count >= SAME_PARTIAL_FAILURE_LIMIT : run.nested === true && sameIdle.count >= REPEATED_FAILURE_LIMIT && failedAt - sameIdle.since >= REPEATED_FAILURE_WINDOW_MS)) return "repeated-failure";
|
|
5319
5330
|
if (inOutage) return void 0;
|
|
5320
5331
|
if (this.chargedFailures >= limits.maxAttempts) return "max-attempts";
|
|
@@ -5406,6 +5417,7 @@ var DriverRetryLoop = class {
|
|
|
5406
5417
|
this.samePending = void 0;
|
|
5407
5418
|
this.sameFailure = void 0;
|
|
5408
5419
|
this.sameIdle = void 0;
|
|
5420
|
+
this.refusals = 0;
|
|
5409
5421
|
this.abandonments = 0;
|
|
5410
5422
|
const durationMs = this.limits.now() - startedAt;
|
|
5411
5423
|
const after = run.progress();
|
|
@@ -9489,4 +9501,4 @@ function superviseWithContext(profile, task, opts, brain) {
|
|
|
9489
9501
|
}
|
|
9490
9502
|
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 };
|
|
9491
9503
|
|
|
9492
|
-
//# sourceMappingURL=supervise-
|
|
9504
|
+
//# sourceMappingURL=supervise-DDtGux2I.js.map
|