@tangle-network/agent-runtime 0.320.1 → 0.321.0

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-BSwcsNSQ.d.ts → activation-BxOOvwjo.d.ts} +2 -2
  2. package/dist/{activation-BKglRwjB.js → activation-CXFl5YVE.js} +2 -2
  3. package/dist/{activation-BKglRwjB.js.map → activation-CXFl5YVE.js.map} +1 -1
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +2 -2
  6. package/dist/candidate-execution/index.js +3 -3
  7. package/dist/{coordination-driver-D85RWATT.js → coordination-driver-Bpn05N-Y.js} +4 -3
  8. package/dist/coordination-driver-Bpn05N-Y.js.map +1 -0
  9. package/dist/{delegate-BHRR-4hh.js → delegate-BHlcTOdK.js} +2 -2
  10. package/dist/{delegate-BHRR-4hh.js.map → delegate-BHlcTOdK.js.map} +1 -1
  11. package/dist/durable.d.ts +1 -1
  12. package/dist/durable.js +3 -3
  13. package/dist/{graph-BGMcJJP1.js → graph-DE2dLhDI.js} +4 -4
  14. package/dist/{graph-BGMcJJP1.js.map → graph-DE2dLhDI.js.map} +1 -1
  15. package/dist/{improvement-cycle-0cnwWPFY.js → improvement-cycle-CyChbojL.js} +5 -5
  16. package/dist/{improvement-cycle-0cnwWPFY.js.map → improvement-cycle-CyChbojL.js.map} +1 -1
  17. package/dist/{index-t672ISFX.d.ts → index-BxiHetnG.d.ts} +241 -3
  18. package/dist/index.d.ts +4 -4
  19. package/dist/index.js +7 -7
  20. package/dist/intelligence.d.ts +2 -2
  21. package/dist/intelligence.js +6 -6
  22. package/dist/kernel.d.ts +2 -2
  23. package/dist/kernel.js +9 -9
  24. package/dist/{loop-runner-bin-CFudOt5T.js → loop-runner-bin-CT02Vzco.js} +3 -3
  25. package/dist/{loop-runner-bin-CFudOt5T.js.map → loop-runner-bin-CT02Vzco.js.map} +1 -1
  26. package/dist/{loop-runner-bin-Fgmf_PQU.d.ts → loop-runner-bin-DInJZNgs.d.ts} +2 -2
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +2 -2
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/{openai-tools-DCfdg0UD.d.ts → openai-tools-DLTw576v.d.ts} +2 -2
  33. package/dist/{prepare-DjCLEN-q.js → prepare-CFQLx9e3.js} +2 -2
  34. package/dist/{prepare-DjCLEN-q.js.map → prepare-CFQLx9e3.js.map} +1 -1
  35. package/dist/{profile-DmVM4Gxb.js → profile-BTbpdL9h.js} +40 -4
  36. package/dist/profile-BTbpdL9h.js.map +1 -0
  37. package/dist/profiles.d.ts +1 -1
  38. package/dist/{protected-model-port-D1fcnYdj.js → protected-model-port-f1N2f0Uq.js} +3 -3
  39. package/dist/{protected-model-port-D1fcnYdj.js.map → protected-model-port-f1N2f0Uq.js.map} +1 -1
  40. package/dist/{provision-supervisor-BUMhF1yb.js → provision-supervisor-DvgBNtoJ.js} +3 -3
  41. package/dist/{provision-supervisor-BUMhF1yb.js.map → provision-supervisor-DvgBNtoJ.js.map} +1 -1
  42. package/dist/{runtime-B47V5Omi.js → runtime-wLgjMOaj.js} +398 -10
  43. package/dist/runtime-wLgjMOaj.js.map +1 -0
  44. package/dist/{search-executor-DjKdQluM.js → search-executor-TEKWC579.js} +2 -2
  45. package/dist/{search-executor-DjKdQluM.js.map → search-executor-TEKWC579.js.map} +1 -1
  46. package/dist/{server-Gpgr0WP-.js → server-qYhzITTm.js} +3 -3
  47. package/dist/{server-Gpgr0WP-.js.map → server-qYhzITTm.js.map} +1 -1
  48. package/dist/{supervise-C2ThvLgZ.js → supervise-C4bLIU7J.js} +37 -14
  49. package/dist/supervise-C4bLIU7J.js.map +1 -0
  50. package/dist/{supervisor-CCtmmmOz.js → supervisor-bkq2b8k-.js} +383 -43
  51. package/dist/supervisor-bkq2b8k-.js.map +1 -0
  52. package/dist/testing.d.ts +1 -1
  53. package/dist/testing.js +13 -13
  54. package/dist/tui/index.d.ts +1 -1
  55. package/dist/tui/index.js +1 -1
  56. package/package.json +4 -4
  57. package/dist/coordination-driver-D85RWATT.js.map +0 -1
  58. package/dist/profile-DmVM4Gxb.js.map +0 -1
  59. package/dist/runtime-B47V5Omi.js.map +0 -1
  60. package/dist/supervise-C2ThvLgZ.js.map +0 -1
  61. package/dist/supervisor-CCtmmmOz.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { $i as runtimeOwnedScopeOwnerRuntime, $n as parseWorkerToolTraceArtifact, A as scopeOwnerExecutorNodeContext, An as resolveAgentEnvironmentProvider, At as captureReusableExecutorConfig, B as consumeScopeRetainedOwnerResult, C as deriveNodeExecutionIdentity, Ct as createContinuationKeeper, D as recordScopeOwnerMaterialization, Di as profileMaterializationAxes$1, E as recordScopeOwnerDriverAttempt, Ei as fullProfileMaterialization, F as seatExecutionProfile, Fi as unsupportedProfileDimensions, Fn as retainedExecutorSeamKey, Ft as snapshotExecutorConfig, G as scopeRetainedOwnerContext, H as prepareScopeRetainedOwnerSeatSwitch, Hi as inheritRuntimeOwnedExecutorAttestation, I as abandonScopeRetainedOwnerInvocation, J as scopeRetainedOwnerResourceReader, Ji as runtimeOwnedDriveHarnessProviderEvidence, Jn as readCommittedJsonLines, Jt as createActivityLog, K as scopeRetainedOwnerJournalRoot, Ki as providerAttemptEvidence, Kn as isNoEntError, L as beginScopeRetainedOwnerDrive, Li as worktreeCliProfileMaterialization, M as SeatChain, Mr as contentAddress, N as SeatChainExhaustedError, Ni as renderUnsupported, Nt as createExecutor, O as recordScopeOwnerPause, Oi as promptControlProfileMaterialization, Or as persistHarnessTranscript, P as authoredSeatStages, Pn as registerRetainedExecutorPreparation, Qi as runtimeOwnedPendingExecutorMaterialization, Qr as generateSpanId, R as bindScopeRetainedOwnerEnvironmentId, Si as assertProfileMaterialization, Sr as RunCancellationReason, St as checkVerdictOf, T as meterRuntimeOwnedProviderAttempt, Ti as defineProfileMaterializationContract, Tr as runAbortable, U as prepareScopeRetainedOwnerTask, V as noteScopeRetainedOwnerCoordination, Vt as WORKER_TRACE_PROPAGATION, W as reconcileScopeRetainedOwnerEnvironment, X as scopeRetainedOwnerResult, Xi as runtimeOwnedExecutorMaterialization, Xr as createOtelExporter, Xt as createInbox, Y as scopeRetainedOwnerRestorePoint, Yi as runtimeOwnedExecutorExecutionBinding, Z as scopeRetainedOwnerTurnEnded, Zi as runtimeOwnedExecutorProviderEvidence, _ as isDriverSpec, aa as detachedSnapshot, an as isLiveNodeStatus, b as assertRecursiveReservationPolicy, c as runTree, cn as bridgeModelRouteRefusal, dr as bridgeStopSignalKey, f as runDriverWithRetry, fr as errMessage, g as driverExecutorFactory, gt as CONTINUATIONS_DIR, h as driverChild, i as bestDelivered, ir as assertValidBudget, it as providerVisibleProfile, k as restoreScopeOwnerAcceptedExecution, ki as promptModelProfileMaterialization, kr as readHarnessTranscript, kt as bindReusableExecutorExecutionId, lr as spendFromUsageTotals, mt as gateOnDeliverable, n as createRootHandle, ni as toOtelAttributes, nt as coordinationMcpAlias, or as meterUsageEvent, p as summarizeDriverAttempts, q as scopeRetainedOwnerPriorSpend, qi as recordRuntimeOwnedDriveHarnessProviderEvidence, qn as prepareJsonlAppend, r as createSupervisor, rt as coordinationProfileToolPrefix, s as runFinalizer, sn as bridgeAdmissionRefusal, sr as newUsageTotals, tr as executorFailure, u as HarnessTurnFailedError, ur as bridgeRuntimeAttachmentsKey, vt as CheckUnavailableError, w as meterRuntimeOwnedAccounting, wi as controlProfileMaterialization, wn as routerBrain, wr as linkAbort, x as beginScopeOwnerAttempt, xt as bestComposite, yt as admitContinuationPolicy, z as bindScopeRetainedOwnerProvider, zi as attestRuntimeOwnedScopeOwner, zt as createRouterTranscript } from "./supervisor-CCtmmmOz.js";
1
+ import { $i as runtimeOwnedExecutorProviderEvidence, A as scopeOwnerExecutorNodeContext, Ai as promptControlProfileMaterialization, An as resolveAgentEnvironmentProvider, Ar as persistHarnessTranscript, At as captureReusableExecutorConfig, B as consumeScopeRetainedOwnerResult, C as deriveNodeExecutionIdentity, Ct as createContinuationKeeper, D as recordScopeOwnerMaterialization, Di as defineProfileMaterializationContract, Dr as runAbortable, E as recordScopeOwnerDriverAttempt, Ei as controlProfileMaterialization, Er as linkAbort, F as seatExecutionProfile, Fi as renderUnsupported, Fn as retainedExecutorSeamKey, Ft as snapshotExecutorConfig, G as scopeRetainedOwnerContext, H as prepareScopeRetainedOwnerSeatSwitch, I as abandonScopeRetainedOwnerInvocation, J as scopeRetainedOwnerResourceReader, Ji as providerAttemptEvidence, Jn as isNoEntError, Jt as createActivityLog, K as scopeRetainedOwnerJournalRoot, L as beginScopeRetainedOwnerDrive, Li as unsupportedProfileDimensions, M as SeatChain, N as SeatChainExhaustedError, Nt as createExecutor, O as recordScopeOwnerPause, Oi as fullProfileMaterialization, P as authoredSeatStages, Pn as registerRetainedExecutorPreparation, Pr as contentAddress, Qi as runtimeOwnedExecutorMaterialization, Qr as createOtelExporter, R as bindScopeRetainedOwnerEnvironmentId, St as checkVerdictOf, T as meterRuntimeOwnedProviderAttempt, U as prepareScopeRetainedOwnerTask, V as noteScopeRetainedOwnerCoordination, Vi as attestRuntimeOwnedScopeOwner, Vt as WORKER_TRACE_PROPAGATION, W as reconcileScopeRetainedOwnerEnvironment, Wi as inheritRuntimeOwnedExecutorAttestation, X as scopeRetainedOwnerResult, Xi as runtimeOwnedDriveHarnessProviderEvidence, Xn as readCommittedJsonLines, Xt as createInbox, Y as scopeRetainedOwnerRestorePoint, Yi as recordRuntimeOwnedDriveHarnessProviderEvidence, Yn as prepareJsonlAppend, Z as scopeRetainedOwnerTurnEnded, Zi as runtimeOwnedExecutorExecutionBinding, _ as isDriverSpec, an as isLiveNodeStatus, b as assertRecursiveReservationPolicy, c as runTree, cn as bridgeModelRouteRefusal, cr as meterUsageEvent, dr as spendFromUsageTotals, ea as runtimeOwnedPendingExecutorMaterialization, ei as generateSpanId, f as runDriverWithRetry, fr as bridgeRuntimeAttachmentsKey, g as driverExecutorFactory, gt as CONTINUATIONS_DIR, h as driverChild, i as bestDelivered, ii as toOtelAttributes, it as providerVisibleProfile, ji as promptModelProfileMaterialization, jr as readHarnessTranscript, k as restoreScopeOwnerAcceptedExecution, ki as profileMaterializationAxes$1, kt as bindReusableExecutorExecutionId, lr as newUsageTotals, mr as errMessage, mt as gateOnDeliverable, n as createRootHandle, nt as coordinationMcpAlias, or as assertValidBudget, p as summarizeDriverAttempts, pr as bridgeStopSignalKey, q as scopeRetainedOwnerPriorSpend, r as createSupervisor, rr as executorFailure, rt as coordinationProfileToolPrefix, s as runFinalizer, sa as detachedSnapshot, sn as bridgeAdmissionRefusal, ta as runtimeOwnedScopeOwnerRuntime, tr as parseWorkerToolTraceArtifact, u as HarnessTurnFailedError, vt as CheckUnavailableError, w as meterRuntimeOwnedAccounting, wi as assertProfileMaterialization, wn as routerBrain, wr as RunCancellationReason, x as beginScopeOwnerAttempt, xt as bestComposite, yt as admitContinuationPolicy, z as bindScopeRetainedOwnerProvider, zi as worktreeCliProfileMaterialization, zt as createRouterTranscript } from "./supervisor-bkq2b8k-.js";
2
2
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
3
3
  import { Dt as teardownSurfaces, Et as teardownExecutor, V as addSpend, Z as isAsyncIterable$1, ct as withTimeout, dt as addResourceSpend, lt as zeroSpend, mt as withBudgetResources, pt as resourceTelemetry, q as errorMessage, rt as sleep, st as unmeteredSpend, yt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS } from "./workspace-streams-DFAhW7hF.js";
4
4
  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-CNe257pB.js";
5
5
  import { n as assertNoSymlinkDescendant } from "./durable-file-DWQA4ooo.js";
6
6
  import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
7
- 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-D85RWATT.js";
7
+ 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-Bpn05N-Y.js";
8
8
  import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
9
9
  import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-DSCWdbX2.js";
10
10
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
@@ -2209,6 +2209,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
2209
2209
  let environmentReplacements = 0;
2210
2210
  let workspaceRestores = 0;
2211
2211
  const describe = deps.deliverable?.describe;
2212
+ const session = deps.continuation?.session;
2212
2213
  const settleLoop = () => {
2213
2214
  const stopReason = controls.stopReason() ?? progressStopReason;
2214
2215
  const closedBy = mcp.submittedResult() ? "result-accepted" : mcp.isStopped() ? "stop" : progressStopReason !== void 0 ? "stop-rule" : void 0;
@@ -2258,7 +2259,10 @@ function buildSupervisorAgent(profile, deps, testBrain) {
2258
2259
  tools: runtimeToolNames,
2259
2260
  ...describe === void 0 ? {} : { contract: describe },
2260
2261
  reentry: current,
2261
- continuity,
2262
+ continuity: session === "fresh" ? {
2263
+ ...continuity,
2264
+ session: "new"
2265
+ } : continuity,
2262
2266
  state: controls.reentryState(),
2263
2267
  attempt
2264
2268
  });
@@ -2270,6 +2274,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
2270
2274
  authoredProfile: stableProfile,
2271
2275
  ...registeredProfile === stableProfile ? {} : { registeredProfile },
2272
2276
  ...profilePrompt !== void 0 ? { systemPrompt: profilePrompt } : {},
2277
+ ...session === void 0 ? {} : { session },
2273
2278
  task: compose === void 0 ? task : compose(UNPROVEN_CONTINUITY),
2274
2279
  ...compose === void 0 ? {} : { reentry: {
2275
2280
  reason: reentry,
@@ -3194,6 +3199,10 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
3194
3199
  }
3195
3200
  };
3196
3201
  let managerTranscript;
3202
+ let lastExecutor;
3203
+ const keepTranscript = (capture) => {
3204
+ if (capture !== void 0 && (capture.status !== "unavailable" || managerTranscript?.status === "unavailable" || managerTranscript === void 0)) managerTranscript = capture;
3205
+ };
3197
3206
  let managerArtifact;
3198
3207
  const committedTranscriptDigest = (artifact) => {
3199
3208
  if (artifact === void 0) return "Prior committed transcript: no bounded turn content was captured.";
@@ -3216,7 +3225,7 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
3216
3225
  let seatChain;
3217
3226
  let activeSeat;
3218
3227
  let switchedProviderCheckpointAt;
3219
- const drive = async ({ profile, authoredProfile, registeredProfile, task, scope, coordinationMcpUrl, coordinationMcpHeaders, stopSignal, coordinationTools, reentry }) => {
3228
+ const drive = async ({ profile, authoredProfile, registeredProfile, task, scope, coordinationMcpUrl, coordinationMcpHeaders, stopSignal, coordinationTools, reentry, session }) => {
3220
3229
  const priorCommittedArtifact = managerArtifact;
3221
3230
  managerArtifact = void 0;
3222
3231
  switchedProviderCheckpointAt = void 0;
@@ -3283,13 +3292,17 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
3283
3292
  }
3284
3293
  let driveTask = task;
3285
3294
  if (reentry !== void 0) {
3286
- const continuity = switchedProviderCheckpointAt === void 0 ? await reentryContinuity(boundBackend, scope, retainedOwner !== void 0) : {
3295
+ const proven = switchedProviderCheckpointAt === void 0 ? await reentryContinuity(boundBackend, scope, retainedOwner !== void 0) : {
3287
3296
  session: "new",
3288
3297
  environment: "replaced",
3289
3298
  workspace: "restored",
3290
3299
  checkpointAt: switchedProviderCheckpointAt
3291
3300
  };
3292
- if (activeSeat?.previous && activeSeat.previous.seat !== activeSeat.seat && activeSeat.previous.provider === activeSeat.stage.provider && activeSeat.previous.harness === activeSeat.stage.harness && (continuity.session !== "continued" || continuity.environment !== "same")) throw new ValidationError("same-provider seat continuation lost its native environment");
3301
+ if (activeSeat?.previous && activeSeat.previous.seat !== activeSeat.seat && activeSeat.previous.provider === activeSeat.stage.provider && activeSeat.previous.harness === activeSeat.stage.harness && (proven.session !== "continued" || proven.environment !== "same")) throw new ValidationError("same-provider seat continuation lost its native environment");
3302
+ const continuity = session === "fresh" && proven.session === "continued" ? {
3303
+ ...proven,
3304
+ session: "new"
3305
+ } : proven;
3293
3306
  reentry.onContinuity?.(continuity);
3294
3307
  await reentry.refresh?.();
3295
3308
  driveTask = reentry.compose(continuity);
@@ -3305,7 +3318,7 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
3305
3318
  committedTranscriptDigest(priorCommittedArtifact)
3306
3319
  ].join("\n");
3307
3320
  }
3308
- const originalTask = retainedOwner ? await prepareScopeRetainedOwnerTask(scope, driveTask) : driveTask;
3321
+ const originalTask = retainedOwner ? await prepareScopeRetainedOwnerTask(scope, driveTask, session ?? "native") : driveTask;
3309
3322
  const acceptedOwner = retainedOwner ? await scopeRetainedOwnerResult(scope) : void 0;
3310
3323
  if (acceptedOwner) {
3311
3324
  await restoreScopeOwnerAcceptedExecution(scope);
@@ -3340,7 +3353,10 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
3340
3353
  ...coordinationMcpHeaders ? { headers: coordinationMcpHeaders } : {},
3341
3354
  metadata: { toolTimeoutMs: COORDINATION_CLIENT_TOOL_TIMEOUT_MS }
3342
3355
  };
3343
- let factory = baseFactory;
3356
+ let factory = session === "fresh" && reentry !== void 0 && boundBackend.backend === "bridge" ? createExecutor(bindReusableExecutorExecutionId(boundBackend, externalExecutionId("supervised-manager-session", {
3357
+ sessionId: boundBackend.sessionId ?? executionId,
3358
+ attemptId: scopeOwnerExecutorNodeContext(scope).attemptId
3359
+ }))) : baseFactory;
3344
3360
  if (boundBackend.backend === "provider") {
3345
3361
  const credentialName = "AGENT_RUNTIME_COORDINATION_TOKEN";
3346
3362
  const authorization = coordinationMcpHeaders?.Authorization;
@@ -3385,7 +3401,9 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
3385
3401
  [bridgeRuntimeAttachmentsKey]: { [coordinationMcpAlias]: attachment }
3386
3402
  }
3387
3403
  });
3404
+ keepTranscript(lastExecutor?.harnessTranscript?.());
3388
3405
  activeExecutor = executor;
3406
+ lastExecutor = executor;
3389
3407
  let completed = false;
3390
3408
  let started = false;
3391
3409
  let terminalAccountingCaptured = false;
@@ -3669,8 +3687,7 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
3669
3687
  failure = error;
3670
3688
  }
3671
3689
  }
3672
- const capture = executor.harnessTranscript?.();
3673
- if (capture !== void 0 && (capture.status !== "unavailable" || managerTranscript?.status === "unavailable" || managerTranscript === void 0)) managerTranscript = capture;
3690
+ keepTranscript(executor.harnessTranscript?.());
3674
3691
  if (activeExecutor === executor) activeExecutor = void 0;
3675
3692
  endDrive();
3676
3693
  }
@@ -3700,8 +3717,13 @@ function driveHarnessFromBackend(backend, executionId, now = Date.now, maxTurns,
3700
3717
  };
3701
3718
  };
3702
3719
  if (boundBackend.backend === "provider") {
3703
- drive.harnessTranscript = () => managerTranscript ?? activeExecutor?.harnessTranscript?.();
3704
- drive.harnessTranscriptSettled = () => activeExecutor?.harnessTranscriptSettled?.() ?? Promise.resolve();
3720
+ drive.harnessTranscript = () => {
3721
+ const latest = lastExecutor?.harnessTranscript?.();
3722
+ if (latest === void 0) return managerTranscript;
3723
+ if (latest.status !== "unavailable") return latest;
3724
+ return managerTranscript !== void 0 && managerTranscript.status !== "unavailable" ? managerTranscript : latest;
3725
+ };
3726
+ drive.harnessTranscriptSettled = () => lastExecutor?.harnessTranscriptSettled?.() ?? Promise.resolve();
3705
3727
  }
3706
3728
  drive.closeSeatSegment = async (reason) => {
3707
3729
  await seatChain?.close(reason);
@@ -4817,7 +4839,8 @@ function superviseInternal(profile, task, opts, testBrain) {
4817
4839
  rootProviderModel,
4818
4840
  ...rootStream === void 0 ? {} : { rootStream },
4819
4841
  ...rootHarnessTranscript === void 0 ? {} : { rootHarnessTranscript },
4820
- ...rootContinuation === void 0 ? {} : { continuation: rootContinuation }
4842
+ ...rootContinuation === void 0 ? {} : { continuation: rootContinuation },
4843
+ ...rootExecution.ref === void 0 ? {} : { execution: rootExecution.ref }
4821
4844
  };
4822
4845
  };
4823
4846
  if (!recorder) return settle();
@@ -4866,4 +4889,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
4866
4889
  //#endregion
4867
4890
  export { readRootStreamReceipt as _, superviseWithTestBrain as a, createSupervisorSpanRecorder as b, resolveWorkerSpawnRetry as c, assertCoordinationBinding as d, resolveSupervisorProfile as f, readRootStream as g, ROOT_STREAM_FILE as h, superviseRootProfile as i, retryPreSpawnRefusals as l, supervisorAgentWithTestBrain as m, profileGuidanceComposer as n, workerFromBackend as o, supervisorAgent as p, supervise as r, isPreSpawnExecutorFailure as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, withWorkerSpawnRetry as u, UNPROVEN_CONTINUITY as v, serveCoordinationMcp as x, composeReentryTask as y };
4868
4891
 
4869
- //# sourceMappingURL=supervise-C2ThvLgZ.js.map
4892
+ //# sourceMappingURL=supervise-C4bLIU7J.js.map