@tangle-network/agent-runtime 0.325.13 → 0.325.15
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-BNnAkyXO.js → activation-iY9Y4jXA.js} +2 -2
- package/dist/{activation-BNnAkyXO.js.map → activation-iY9Y4jXA.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-D_UG7HW7.js → coordination-driver--ziIpb-L.js} +2 -2
- package/dist/{coordination-driver-D_UG7HW7.js.map → coordination-driver--ziIpb-L.js.map} +1 -1
- package/dist/{delegate-BB420qI8.js → delegate-kimZgMCA.js} +2 -2
- package/dist/{delegate-BB420qI8.js.map → delegate-kimZgMCA.js.map} +1 -1
- package/dist/durable.js +3 -3
- package/dist/{graph-B0kLjZvh.js → graph-2WpXlBwe.js} +4 -4
- package/dist/{graph-B0kLjZvh.js.map → graph-2WpXlBwe.js.map} +1 -1
- package/dist/{improvement-cycle-Bs0G6yli.js → improvement-cycle-CpObFDMU.js} +3 -3
- package/dist/{improvement-cycle-Bs0G6yli.js.map → improvement-cycle-CpObFDMU.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-8H01TElX.js → loop-runner-bin-JQHD3oC0.js} +3 -3
- package/dist/{loop-runner-bin-8H01TElX.js.map → loop-runner-bin-JQHD3oC0.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{provision-supervisor-CL73UsKI.js → provision-supervisor-WNnSjEEe.js} +3 -3
- package/dist/{provision-supervisor-CL73UsKI.js.map → provision-supervisor-WNnSjEEe.js.map} +1 -1
- package/dist/{runtime-Dib4DCh1.js → runtime-CekT14Tg.js} +8 -8
- package/dist/{runtime-Dib4DCh1.js.map → runtime-CekT14Tg.js.map} +1 -1
- package/dist/{search-executor-iVAc_gLL.js → search-executor-BIYpUqvP.js} +2 -2
- package/dist/{search-executor-iVAc_gLL.js.map → search-executor-BIYpUqvP.js.map} +1 -1
- package/dist/{server-DqeSIf80.js → server-DPNrNMRK.js} +3 -3
- package/dist/{server-DqeSIf80.js.map → server-DPNrNMRK.js.map} +1 -1
- package/dist/{supervise-Bt8G_V62.js → supervise-ByxF154k.js} +17 -15
- package/dist/supervise-ByxF154k.js.map +1 -0
- package/dist/{supervisor-4640ezPp.js → supervisor-BiWdGonz.js} +7 -2
- package/dist/{supervisor-4640ezPp.js.map → supervisor-BiWdGonz.js.map} +1 -1
- package/dist/testing.js +12 -12
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/supervise-Bt8G_V62.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as assertNoSymlinkDescendant } from "./durable-file-B_eJr6Mb.js";
|
|
2
|
-
import { $n as readHarnessTranscript, $r as renderUnsupported, A as scopeOwnerExecutorNodeContext, At as bindReusableExecutorExecutionId, B as consumeScopeRetainedOwnerResult, Bt as createRouterTranscript, C as deriveNodeExecutionIdentity, Ct as checkVerdictOf, D as recordScopeOwnerMaterialization, E as recordScopeOwnerDriverAttempt, F as seatExecutionProfile, Fn as bridgeRuntimeAttachmentsKey, G as scopeRetainedOwnerContext, Gr as defineProfileMaterializationContract, H as prepareScopeRetainedOwnerSeatSwitch, Hr as assertProfileMaterialization, Ht as WORKER_TRACE_PROPAGATION, I as abandonScopeRetainedOwnerInvocation, In as bridgeStopSignalKey, It as snapshotExecutorConfig, J as scopeRetainedOwnerResourceReader, Jn as linkAbort, Jr as promptControlProfileMaterialization, K as scopeRetainedOwnerJournalRoot, Kn as RunCancellationReason, Kr as fullProfileMaterialization, L as beginScopeRetainedOwnerDrive, M as SeatChain, Mi as registerRetainedExecutorPreparation, N as SeatChainExhaustedError, Ni as retainedExecutorSeamKey, O as recordScopeOwnerPause, P as authoredSeatStages, Pt as createExecutor, Qn as persistHarnessTranscript, R as bindScopeRetainedOwnerEnvironmentId, Sa as spendFromUsageTotals, Sr as toOtelAttributes, St as bestComposite, T as meterRuntimeOwnedProviderAttempt, Tn as routerBrain, U as prepareScopeRetainedOwnerTask, V as noteScopeRetainedOwnerCoordination, W as reconcileScopeRetainedOwnerEnvironment, Wr as controlProfileMaterialization, X as scopeRetainedOwnerResult, Y as scopeRetainedOwnerRestorePoint, Yn as runAbortable, Yr as promptModelProfileMaterialization, Yt as createActivityLog, Z as scopeRetainedOwnerTurnEnded, Zt as createInbox, _ as isDriverSpec, _a as assertValidBudget, _i as runtimeOwnedExecutorExecutionBinding, _t as CONTINUATIONS_DIR, at as runtimeGraphMetadataKey, b as assertRecursiveReservationPolicy, ba as newUsageTotals, bi as runtimeOwnedPendingExecutorMaterialization, bt as admitContinuationPolicy, c as runTree, ca as parseWorkerToolTraceArtifact, cn as bridgeAdmissionRefusal, en as PEER_MAIL_WIRE_KEY, f as runDriverWithRetry, fa as detachedSnapshot, g as driverExecutorFactory, gi as runtimeOwnedDriveHarnessProviderEvidence, gr as createOtelExporter, h as driverChild, hi as recordRuntimeOwnedDriveHarnessProviderEvidence, ht as gateOnDeliverable, i as bestDelivered, ii as worktreeCliProfileMaterialization, it as providerVisibleProfile, jn as resolveAgentEnvironmentProvider, jt as captureReusableExecutorConfig, k as restoreScopeOwnerAcceptedExecution, ln as bridgeModelRouteRefusal, ma as errMessage, mi as providerAttemptEvidence, n as createRootHandle, ni as unsupportedProfileDimensions, nt as coordinationMcpAlias, oi as attestRuntimeOwnedScopeOwner, on as isLiveNodeStatus, p as summarizeDriverAttempts, pa as executorFailure, q as scopeRetainedOwnerPriorSpend, qr as profileMaterializationAxes$1, r as createSupervisor, rn as isPeerMailEnvelope, rt as coordinationProfileToolPrefix, s as runFinalizer, si as authoredAgentIdentity, ti as sandboxProfileMaterialization, u as HarnessTurnFailedError, ua as contentAddress, ui as inheritRuntimeOwnedExecutorAttestation, vi as runtimeOwnedExecutorMaterialization, vr as generateSpanId, w as meterRuntimeOwnedAccounting, wt as createContinuationKeeper, x as beginScopeOwnerAttempt, xi as runtimeOwnedScopeOwnerRuntime, ya as meterUsageEvent, yi as runtimeOwnedExecutorProviderEvidence, yt as CheckUnavailableError, z as bindScopeRetainedOwnerProvider } from "./supervisor-
|
|
2
|
+
import { $n as readHarnessTranscript, $r as renderUnsupported, A as scopeOwnerExecutorNodeContext, At as bindReusableExecutorExecutionId, B as consumeScopeRetainedOwnerResult, Bt as createRouterTranscript, C as deriveNodeExecutionIdentity, Ct as checkVerdictOf, D as recordScopeOwnerMaterialization, E as recordScopeOwnerDriverAttempt, F as seatExecutionProfile, Fn as bridgeRuntimeAttachmentsKey, G as scopeRetainedOwnerContext, Gr as defineProfileMaterializationContract, H as prepareScopeRetainedOwnerSeatSwitch, Hr as assertProfileMaterialization, Ht as WORKER_TRACE_PROPAGATION, I as abandonScopeRetainedOwnerInvocation, In as bridgeStopSignalKey, It as snapshotExecutorConfig, J as scopeRetainedOwnerResourceReader, Jn as linkAbort, Jr as promptControlProfileMaterialization, K as scopeRetainedOwnerJournalRoot, Kn as RunCancellationReason, Kr as fullProfileMaterialization, L as beginScopeRetainedOwnerDrive, M as SeatChain, Mi as registerRetainedExecutorPreparation, N as SeatChainExhaustedError, Ni as retainedExecutorSeamKey, O as recordScopeOwnerPause, P as authoredSeatStages, Pt as createExecutor, Qn as persistHarnessTranscript, R as bindScopeRetainedOwnerEnvironmentId, Sa as spendFromUsageTotals, Sr as toOtelAttributes, St as bestComposite, T as meterRuntimeOwnedProviderAttempt, Tn as routerBrain, U as prepareScopeRetainedOwnerTask, V as noteScopeRetainedOwnerCoordination, W as reconcileScopeRetainedOwnerEnvironment, Wr as controlProfileMaterialization, X as scopeRetainedOwnerResult, Y as scopeRetainedOwnerRestorePoint, Yn as runAbortable, Yr as promptModelProfileMaterialization, Yt as createActivityLog, Z as scopeRetainedOwnerTurnEnded, Zt as createInbox, _ as isDriverSpec, _a as assertValidBudget, _i as runtimeOwnedExecutorExecutionBinding, _t as CONTINUATIONS_DIR, at as runtimeGraphMetadataKey, b as assertRecursiveReservationPolicy, ba as newUsageTotals, bi as runtimeOwnedPendingExecutorMaterialization, bt as admitContinuationPolicy, c as runTree, ca as parseWorkerToolTraceArtifact, cn as bridgeAdmissionRefusal, en as PEER_MAIL_WIRE_KEY, f as runDriverWithRetry, fa as detachedSnapshot, g as driverExecutorFactory, gi as runtimeOwnedDriveHarnessProviderEvidence, gr as createOtelExporter, h as driverChild, hi as recordRuntimeOwnedDriveHarnessProviderEvidence, ht as gateOnDeliverable, i as bestDelivered, ii as worktreeCliProfileMaterialization, it as providerVisibleProfile, jn as resolveAgentEnvironmentProvider, jt as captureReusableExecutorConfig, k as restoreScopeOwnerAcceptedExecution, ln as bridgeModelRouteRefusal, ma as errMessage, mi as providerAttemptEvidence, n as createRootHandle, ni as unsupportedProfileDimensions, nt as coordinationMcpAlias, oi as attestRuntimeOwnedScopeOwner, on as isLiveNodeStatus, p as summarizeDriverAttempts, pa as executorFailure, q as scopeRetainedOwnerPriorSpend, qr as profileMaterializationAxes$1, r as createSupervisor, rn as isPeerMailEnvelope, rt as coordinationProfileToolPrefix, s as runFinalizer, si as authoredAgentIdentity, ti as sandboxProfileMaterialization, u as HarnessTurnFailedError, ua as contentAddress, ui as inheritRuntimeOwnedExecutorAttestation, vi as runtimeOwnedExecutorMaterialization, vr as generateSpanId, w as meterRuntimeOwnedAccounting, wt as createContinuationKeeper, x as beginScopeOwnerAttempt, xi as runtimeOwnedScopeOwnerRuntime, ya as meterUsageEvent, yi as runtimeOwnedExecutorProviderEvidence, yt as CheckUnavailableError, z as bindScopeRetainedOwnerProvider } from "./supervisor-BiWdGonz.js";
|
|
3
3
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
|
|
4
4
|
import { $ as isAsyncIterable$1, Ot as teardownExecutor, U as addSpend, Y as errorMessage, at as sleep, dt as zeroSpend, gt as withBudgetResources, ht as resourceTelemetry, kt as teardownSurfaces, lt as unmeteredSpend, pt as addResourceSpend, ut as withTimeout, xt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS } from "./sandbox-profile-compat-CVgQWb7T.js";
|
|
5
5
|
import { a as readCommittedJsonLines, n as isNoEntError, r as prepareJsonlAppend } from "./jsonl-file-DBv31uPi.js";
|
|
6
6
|
import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-CyCUwHed.js";
|
|
7
7
|
import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
8
|
-
import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver-
|
|
8
|
+
import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver--ziIpb-L.js";
|
|
9
9
|
import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
|
|
10
10
|
import { c as loadGraph, i as graphRegistry } from "./graph-registry-DAI6KNXB.js";
|
|
11
11
|
import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-Cu8H7aeh.js";
|
|
@@ -2366,18 +2366,20 @@ function observeWorkerControls(options) {
|
|
|
2366
2366
|
* deliverable check to direct submissions. Raw driver prose is never quality-accepted.
|
|
2367
2367
|
*/
|
|
2368
2368
|
/**
|
|
2369
|
-
* The completion check of a managed
|
|
2370
|
-
*
|
|
2371
|
-
* the run's
|
|
2372
|
-
*
|
|
2373
|
-
*
|
|
2369
|
+
* The completion check of a managed child that no `resolveDeliverable` gave a check of its own, a
|
|
2370
|
+
* `run_graph` node included: its accepted submission settles it, and the result goes to the manager
|
|
2371
|
+
* that assigned the task. The run's own check judges the run's result, never a child's narrower
|
|
2372
|
+
* assignment. Held to the run's check, a child's submission is refused for as long as the run's
|
|
2373
|
+
* is: every node of test-canary-graph-tools-20261017a, and the `delay` child of
|
|
2374
|
+
* test-retained-root-wake-20261018b (2026-10-18: "Expected: the canary runs to its deadline"), was
|
|
2375
|
+
* refused at submit_result, never settled, and its manager was never woken with it.
|
|
2374
2376
|
*
|
|
2375
2377
|
* It is the one check a harness manager may hold without a continuation policy: it accepts every
|
|
2376
|
-
* submission, so there is nothing to send the
|
|
2378
|
+
* submission, so there is nothing to send the child back for. test-canary-graph-tools-20261018c and
|
|
2377
2379
|
* -d (2026-10-18) had every harness-run graph lead refused at spawn until this exemption.
|
|
2378
2380
|
*/
|
|
2379
|
-
const
|
|
2380
|
-
describe: "the result your task asks for;
|
|
2381
|
+
const ownSubmissionDeliverable = Object.freeze({
|
|
2382
|
+
describe: "the result your task asks for; it goes to the manager that assigned the task, and the run's own check judges that manager's result",
|
|
2381
2383
|
check: () => true
|
|
2382
2384
|
});
|
|
2383
2385
|
const coordinationVerbNameSet$1 = new Set(coordinationVerbNames);
|
|
@@ -2556,7 +2558,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
|
|
|
2556
2558
|
if (harness !== null && deps.compaction) throw new ValidationError("supervisorAgent: compaction is only supported for router-brained supervisors (profile.harness omitted or cli-base)");
|
|
2557
2559
|
if (harness === null && deps.continuation !== void 0) throw new ValidationError("supervisorAgent: continuation applies to an EXTERNAL-harness supervisor only (profile.harness set). A router-brained supervisor runs its own turn loop in process, so the policy would be silently ignored.");
|
|
2558
2560
|
if (deps.continuation !== void 0 && deps.deliverable === void 0) throw new ValidationError("supervisorAgent: continuation needs a `deliverable` completion check — with no check there is no contract that can be unmet");
|
|
2559
|
-
if (harness !== null && deps.deliverable !== void 0 && deps.deliverable !==
|
|
2561
|
+
if (harness !== null && deps.deliverable !== void 0 && deps.deliverable !== ownSubmissionDeliverable && deps.continuation === void 0) throw new ValidationError("supervisorAgent: a manager with a completion check needs a continuation policy (deadline, maxBarren, the note profile and switches). Runtime supplies no default: how long to send a director back, and what to tell it, is the record's decision");
|
|
2560
2562
|
if (deps.deliverable !== void 0 && runtimeToolNames.includes("stop")) throw new ValidationError(`supervisorAgent: the profile grants ${coordinationProfileToolPrefix}stop to a manager with a completion check. Such a manager ends only through submit_result (the check passes) or a bound (deadline, budget, cancellation, no progress); remove stop from its tools`);
|
|
2561
2563
|
const continuationDeadlineMs = deps.continuation === void 0 ? void 0 : admitContinuationPolicy(deps.continuation, "supervisorAgent");
|
|
2562
2564
|
if (harness === null) {
|
|
@@ -5390,8 +5392,8 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
5390
5392
|
if (subtask !== void 0 && graph !== void 0) throw new ValidationError("supervise: a node of a graph cannot start another graph; add the work as nodes");
|
|
5391
5393
|
const ownGraph = subtask === void 0 ? void 0 : graphOverlayFor(subtask);
|
|
5392
5394
|
const subtreeGraph = ownGraph ?? graph;
|
|
5393
|
-
const
|
|
5394
|
-
const managerDeliverable =
|
|
5395
|
+
const ownSubmission = selectedDeliverable === void 0 && (subtreeGraph !== void 0 || deliverable !== void 0);
|
|
5396
|
+
const managerDeliverable = ownSubmission ? ownSubmissionDeliverable : childDeliverable;
|
|
5395
5397
|
const nestedDriveHarness = isExternalSupervisor(authorized) ? driveHarnessForOwner(freezeDetached({
|
|
5396
5398
|
runId,
|
|
5397
5399
|
runNamespace,
|
|
@@ -5478,7 +5480,7 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
5478
5480
|
...managerDeliverable && !seatManagedLeaf ? { onAcceptedSubmission: () => {
|
|
5479
5481
|
acceptedSubmission = true;
|
|
5480
5482
|
} } : {},
|
|
5481
|
-
...managerDeliverable && !
|
|
5483
|
+
...managerDeliverable && !ownSubmission && !seatManagedLeaf && options.continuation && isExternalSupervisor(authorized) ? {
|
|
5482
5484
|
continuation: options.continuation,
|
|
5483
5485
|
...options.runDir === void 0 ? {} : { continuationDir: resolve(options.runDir, CONTINUATIONS_DIR, "managers", encodeURIComponent(ownerId)) }
|
|
5484
5486
|
} : {},
|
|
@@ -5754,4 +5756,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
5754
5756
|
//#endregion
|
|
5755
5757
|
export { dumbContinuationPassPrompt as A, defaultEdgeTraversalCap as C, createPromptRegistry as D, analyzesFindingsReportPrompt as E, serveCoordinationMcp as F, kernelPromptRegistry as M, naiveContinuationPrompt as N, delegatesWorkerBriefPrompt as O, promptHandle as P, createGraphOverlay as S, validateGraphTopology as T, readRootStream as _, superviseRootProfile as a, composeReentryTask as b, isPreSpawnExecutorFailure as c, withWorkerSpawnRetry as d, assertCoordinationBinding as f, ROOT_STREAM_FILE as g, supervisorAgentWithTestBrain as h, superviseFleetCapabilities as i, formatPromptHandle as j, dumbContinuationFailPrompt as k, resolveWorkerSpawnRetry as l, supervisorAgent as m, profileGuidanceComposer as n, superviseWithTestBrain as o, resolveSupervisorProfile as p, supervise as r, workerFromBackend as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, retryPreSpawnRefusals as u, readRootStreamReceipt as v, graphRootProfile as w, createSupervisorSpanRecorder as x, UNPROVEN_CONTINUITY as y };
|
|
5756
5758
|
|
|
5757
|
-
//# sourceMappingURL=supervise-
|
|
5759
|
+
//# sourceMappingURL=supervise-ByxF154k.js.map
|