@tangle-network/agent-runtime 0.325.12 → 0.325.14

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 (37) hide show
  1. package/dist/{activation-DhiTYhFg.js → activation-BNnAkyXO.js} +2 -2
  2. package/dist/{activation-DhiTYhFg.js.map → activation-BNnAkyXO.js.map} +1 -1
  3. package/dist/agent.js +2 -2
  4. package/dist/{coordination-driver-BPL3mG-y.js → coordination-driver-D_UG7HW7.js} +2 -2
  5. package/dist/{coordination-driver-BPL3mG-y.js.map → coordination-driver-D_UG7HW7.js.map} +1 -1
  6. package/dist/{delegate-DnvWfKrF.js → delegate-Bb5hRSlF.js} +2 -2
  7. package/dist/{delegate-DnvWfKrF.js.map → delegate-Bb5hRSlF.js.map} +1 -1
  8. package/dist/durable.js +3 -3
  9. package/dist/{graph-67nySTlN.js → graph-BYmftijW.js} +4 -4
  10. package/dist/{graph-67nySTlN.js.map → graph-BYmftijW.js.map} +1 -1
  11. package/dist/{improvement-cycle-DxshmdsJ.js → improvement-cycle-Bs0G6yli.js} +3 -3
  12. package/dist/{improvement-cycle-DxshmdsJ.js.map → improvement-cycle-Bs0G6yli.js.map} +1 -1
  13. package/dist/index.js +7 -7
  14. package/dist/intelligence.js +3 -3
  15. package/dist/kernel.js +8 -8
  16. package/dist/{loop-runner-bin-DMHDyRA9.js → loop-runner-bin-BgY3PqT_.js} +3 -3
  17. package/dist/{loop-runner-bin-DMHDyRA9.js.map → loop-runner-bin-BgY3PqT_.js.map} +1 -1
  18. package/dist/loop-runner-bin.js +1 -1
  19. package/dist/mcp/bin.js +3 -3
  20. package/dist/mcp/index.js +4 -4
  21. package/dist/{provision-supervisor-ry78vyvq.js → provision-supervisor-CL73UsKI.js} +3 -3
  22. package/dist/{provision-supervisor-ry78vyvq.js.map → provision-supervisor-CL73UsKI.js.map} +1 -1
  23. package/dist/{runtime-C734fLgK.js → runtime-DRcmdNyb.js} +8 -8
  24. package/dist/{runtime-C734fLgK.js.map → runtime-DRcmdNyb.js.map} +1 -1
  25. package/dist/{search-executor-CbHDJu7t.js → search-executor-iVAc_gLL.js} +2 -2
  26. package/dist/{search-executor-CbHDJu7t.js.map → search-executor-iVAc_gLL.js.map} +1 -1
  27. package/dist/{server-B0bV3X0y.js → server-CliVZUyM.js} +3 -3
  28. package/dist/{server-B0bV3X0y.js.map → server-CliVZUyM.js.map} +1 -1
  29. package/dist/{supervise-DMV388Jk.js → supervise-CSPQuYEv.js} +17 -15
  30. package/dist/supervise-CSPQuYEv.js.map +1 -0
  31. package/dist/{supervisor-tbJOhcIf.js → supervisor-4640ezPp.js} +23 -2
  32. package/dist/supervisor-4640ezPp.js.map +1 -0
  33. package/dist/testing.js +12 -12
  34. package/dist/tui/index.js +1 -1
  35. package/package.json +1 -1
  36. package/dist/supervise-DMV388Jk.js.map +0 -1
  37. package/dist/supervisor-tbJOhcIf.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-tbJOhcIf.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-4640ezPp.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-BPL3mG-y.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-D_UG7HW7.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 node inside a `run_graph` subtask: its submission is accepted
2370
- * and settles it. Under the run's own check, a node's narrower result is refused for as long as
2371
- * the run's is: on 2026-10-17 every node of test-canary-graph-tools-20261017a was refused at
2372
- * submit_result and sent back to the run's commission until the run's deadline, so the graph never
2373
- * settled and its caller was never woken with it.
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 node back for. test-canary-graph-tools-20261018c and
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 graphNodeDeliverable = Object.freeze({
2380
- describe: "the result your task asks for; the graph hands it to the manager that ran the graph, and the run's own check judges that manager's result",
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 !== graphNodeDeliverable && 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");
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 graphNode = subtreeGraph !== void 0 && selectedDeliverable === void 0;
5394
- const managerDeliverable = graphNode ? graphNodeDeliverable : childDeliverable;
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 && !graphNode && !seatManagedLeaf && options.continuation && isExternalSupervisor(authorized) ? {
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-DMV388Jk.js.map
5759
+ //# sourceMappingURL=supervise-CSPQuYEv.js.map