@tangle-network/agent-runtime 3.0.25 → 3.0.27

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 (47) hide show
  1. package/dist/{activation-BGb32PiH.js → activation-CqrX_rjw.js} +2 -2
  2. package/dist/{activation-BGb32PiH.js.map → activation-CqrX_rjw.js.map} +1 -1
  3. package/dist/agent.js +3 -3
  4. package/dist/{coordination-manager-DjfXXHvG.js → coordination-manager-D141UBzE.js} +4 -4
  5. package/dist/{coordination-manager-DjfXXHvG.js.map → coordination-manager-D141UBzE.js.map} +1 -1
  6. package/dist/{delegate-CkvYXR2m.js → delegate-DGPuRCKg.js} +2 -2
  7. package/dist/{delegate-CkvYXR2m.js.map → delegate-DGPuRCKg.js.map} +1 -1
  8. package/dist/durable.js +6 -6
  9. package/dist/{graph-BThFomZ3.js → graph-D-LohH0j.js} +5 -5
  10. package/dist/{graph-BThFomZ3.js.map → graph-D-LohH0j.js.map} +1 -1
  11. package/dist/{improve-DDLSgIAy.js → improve-D_3wjXiP.js} +6 -6
  12. package/dist/{improve-DDLSgIAy.js.map → improve-D_3wjXiP.js.map} +1 -1
  13. package/dist/index.js +8 -8
  14. package/dist/intelligence.js +4 -4
  15. package/dist/kernel.js +11 -11
  16. package/dist/{loop-runner-BFDFst3d.js → loop-runner-CE_S4Gun.js} +2 -2
  17. package/dist/{loop-runner-BFDFst3d.js.map → loop-runner-CE_S4Gun.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 +5 -5
  21. package/dist/{provision-supervisor-kVbZwZdr.js → provision-supervisor-BT5Xcej8.js} +4 -4
  22. package/dist/{provision-supervisor-kVbZwZdr.js.map → provision-supervisor-BT5Xcej8.js.map} +1 -1
  23. package/dist/{run-cancellation-CZdg-wlk.js → run-cancellation-cK_pnwLY.js} +2 -2
  24. package/dist/{run-cancellation-CZdg-wlk.js.map → run-cancellation-cK_pnwLY.js.map} +1 -1
  25. package/dist/{runtime-CyZN9kR-.js → runtime-S74rNVKC.js} +11 -11
  26. package/dist/{runtime-CyZN9kR-.js.map → runtime-S74rNVKC.js.map} +1 -1
  27. package/dist/{scope-zYzxBt1q.js → scope-DrU_M6r3.js} +6 -2
  28. package/dist/scope-DrU_M6r3.js.map +1 -0
  29. package/dist/{search-executor-Btb-gz4q.js → search-executor-C7u2UZP-.js} +3 -3
  30. package/dist/{search-executor-Btb-gz4q.js.map → search-executor-C7u2UZP-.js.map} +1 -1
  31. package/dist/{server-BD7YoVmE.js → server-Br_imyE9.js} +3 -3
  32. package/dist/{server-BD7YoVmE.js.map → server-Br_imyE9.js.map} +1 -1
  33. package/dist/{structural-rollout-CGkZUyaO.js → structural-rollout-Bn9MAIMS.js} +3 -3
  34. package/dist/{structural-rollout-CGkZUyaO.js.map → structural-rollout-Bn9MAIMS.js.map} +1 -1
  35. package/dist/{supervise-BKfejmq_.js → supervise-Tc0zimhk.js} +5 -5
  36. package/dist/{supervise-BKfejmq_.js.map → supervise-Tc0zimhk.js.map} +1 -1
  37. package/dist/{supervision-discovery-DzDhlOOp.js → supervision-discovery-D6AOCESM.js} +2 -2
  38. package/dist/{supervision-discovery-DzDhlOOp.js.map → supervision-discovery-D6AOCESM.js.map} +1 -1
  39. package/dist/{supervisor-DfBrIdFp.js → supervisor-B5VVDFGE.js} +2 -2
  40. package/dist/{supervisor-DfBrIdFp.js.map → supervisor-B5VVDFGE.js.map} +1 -1
  41. package/dist/testing.js +11 -11
  42. package/dist/{top-web-BaGIwYiL.js → top-web-Dp8lrmPw.js} +4 -4
  43. package/dist/{top-web-BaGIwYiL.js.map → top-web-Dp8lrmPw.js.map} +1 -1
  44. package/dist/tui/bin.js +3 -3
  45. package/dist/tui/index.js +2 -2
  46. package/package.json +4 -4
  47. package/dist/scope-zYzxBt1q.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,17 +1,17 @@
1
- import { Fn as buildLoopOtelSpans, Gn as sanitizeKnowledgeReadinessReport, Hn as loopEventToOtelSpan, Kn as sanitizeRuntimeStreamEvent, Un as createRuntimeEventCollector, Vr as executableAgentProfileSnapshot, Wn as createRuntimeStreamEventCollector, la as providerMessageText, qr as runtimeFailureCause, zn as createOtelExporter } from "./scope-zYzxBt1q.js";
1
+ import { Fn as buildLoopOtelSpans, Gn as sanitizeKnowledgeReadinessReport, Hn as loopEventToOtelSpan, Kn as sanitizeRuntimeStreamEvent, Un as createRuntimeEventCollector, Vr as executableAgentProfileSnapshot, Wn as createRuntimeStreamEventCollector, la as providerMessageText, qr as runtimeFailureCause, zn as createOtelExporter } from "./scope-DrU_M6r3.js";
2
2
  import { a as JudgeError, f as RuntimeRunStateError, i as ConfigError, m as ValidationError, o as NotFoundError, r as BackendTransportError, t as AgentEvalError } from "./errors-AzSuGI23.js";
3
- import { B as InMemoryRuntimeSessionStore, C as optimizerMethod, H as nowIso, I as streamAgentTurn, L as createIterableBackend, R as createSandboxPromptBackend, U as startOrResumeRuntimeSession, V as newRuntimeSession, W as touchSession, z as normalizeBackendStreamEvent } from "./structural-rollout-CGkZUyaO.js";
3
+ import { B as InMemoryRuntimeSessionStore, C as optimizerMethod, H as nowIso, I as streamAgentTurn, L as createIterableBackend, R as createSandboxPromptBackend, U as startOrResumeRuntimeSession, V as newRuntimeSession, W as touchSession, z as normalizeBackendStreamEvent } from "./structural-rollout-Bn9MAIMS.js";
4
4
  import { I as embeddedCandidateArtifact, L as immutableCandidateValue, M as canonicalCandidateBytes$1, N as canonicalCandidateDigest$1, R as omitTopLevelDigest, _ as persistCandidateOutputArtifact, at as sleep, s as captureAgentCandidateWorkspace } from "./workspace-streams-8ALHaZzx.js";
5
5
  import { b as resolveRedactor, y as defaultRedactorIdentityMaterial } from "./jsonl-file-BBP9Dz9w.js";
6
- import { Mt as ROUTER_PRICE_SOURCE, jt as priceTokens } from "./supervisor-DfBrIdFp.js";
6
+ import { Mt as ROUTER_PRICE_SOURCE, jt as priceTokens } from "./supervisor-B5VVDFGE.js";
7
7
  import { t as assertExecutableAgentProfile } from "./model-policy-C-RGAUW4.js";
8
- import { c as withMethodRuntimeControls, d as commandVerifier, f as addRuntimeUsage, i as assertCandidateValidator, m as isUsageAmount, n as createCommandProfileTrainer, o as parseExecutionRef, p as createRuntimeUsageTotals, r as searchMethod, s as privateValuePaths, t as improve, u as agenticGenerator } from "./improve-DDLSgIAy.js";
8
+ import { c as withMethodRuntimeControls, d as commandVerifier, f as addRuntimeUsage, i as assertCandidateValidator, m as isUsageAmount, n as createCommandProfileTrainer, o as parseExecutionRef, p as createRuntimeUsageTotals, r as searchMethod, s as privateValuePaths, t as improve, u as agenticGenerator } from "./improve-D_3wjXiP.js";
9
9
  import { n as defineRuntimeHooks, t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
10
- import { n as createAgentImprovementActivationResult } from "./activation-BGb32PiH.js";
11
- import { l as sharedBoxLane, o as routerLane, r as dedicatedLane, t as SearchEnvironmentFault, u as subscriptionLane, y as decideSearchImprovement } from "./search-executor-Btb-gz4q.js";
10
+ import { n as createAgentImprovementActivationResult } from "./activation-CqrX_rjw.js";
11
+ import { l as sharedBoxLane, o as routerLane, r as dedicatedLane, t as SearchEnvironmentFault, u as subscriptionLane, y as decideSearchImprovement } from "./search-executor-C7u2UZP-.js";
12
12
  import { t as sealAgentCandidateBundle } from "./bundle-CV4Ts0cS.js";
13
- import { t as supervise } from "./supervise-BKfejmq_.js";
14
- import { n as auditLoopRunner } from "./loop-runner-BFDFst3d.js";
13
+ import { t as supervise } from "./supervise-Tc0zimhk.js";
14
+ import { n as auditLoopRunner } from "./loop-runner-CE_S4Gun.js";
15
15
  import { toW3CSpanId as padSpanId, toW3CTraceId as padTraceId } from "@tangle-network/agent-trace-contract";
16
16
  import { agentCandidateKnowledgeSchema, agentCandidateWorkspaceManifestMaterialSchema, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, sha256DigestSchema } from "@tangle-network/agent-interface";
17
17
  import { FAILURE_CLASSES, acquisitionPlansForKnowledgeGaps, blockingKnowledgeEval, canonicalJson, runAgentControlLoop, scoreKnowledgeReadiness, userQuestionsForKnowledgeGaps } from "@tangle-network/agent-eval";
@@ -1,9 +1,9 @@
1
- import { Bn as flatOtelSpan, Fn as buildLoopOtelSpans, Ln as buildRuntimeEventOtelSpans, br as authoredAgentIdentity, zn as createOtelExporter } from "./scope-zYzxBt1q.js";
1
+ import { Bn as flatOtelSpan, Fn as buildLoopOtelSpans, Ln as buildRuntimeEventOtelSpans, br as authoredAgentIdentity, zn as createOtelExporter } from "./scope-DrU_M6r3.js";
2
2
  import { B as verifyCanonicalCandidateDocument, L as immutableCandidateValue, M as canonicalCandidateBytes$1, N as canonicalCandidateDigest$1, P as canonicalCandidateDocument, R as omitTopLevelDigest } from "./workspace-streams-8ALHaZzx.js";
3
3
  import { b as resolveRedactor, v as defaultRedactor } from "./jsonl-file-BBP9Dz9w.js";
4
- import { U as resolveAgentEnvironmentProvider } from "./supervisor-DfBrIdFp.js";
5
- import { a as assertProfileTrainingIsHeldOut, f as addRuntimeUsage, l as rethrowAfterCleanup, m as isUsageAmount, p as createRuntimeUsageTotals, t as improve } from "./improve-DDLSgIAy.js";
6
- import { _ as agentImprovementTargetProfileDiffs, a as reviewAgentImprovementProposal, b as isAgentProfileMeasuredSurface, c as verifyAgentImprovementProposal, d as attachOptimizationActivationReceipt, f as createOptimizationActivationReceipt, g as agentImprovementProfileSurfaceInput, h as agentImprovementProfileSurfaceDigest, i as executeAgentImprovementActivation, l as verifyAgentImprovementReview, m as agentImprovementProfileDiffs, n as createAgentImprovementActivationResult, o as verifyAgentImprovementActivation, p as optimizationActivationReceiptFromMetadata, r as createAgentImprovementProposal, s as verifyAgentImprovementActivationResult, t as createAgentImprovementActivation, u as assertNoCallerOptimizationReceipt, v as assertProfileImprovementTargetsShareIdentity, y as isAgentImprovementProfileSurface } from "./activation-BGb32PiH.js";
4
+ import { U as resolveAgentEnvironmentProvider } from "./supervisor-B5VVDFGE.js";
5
+ import { a as assertProfileTrainingIsHeldOut, f as addRuntimeUsage, l as rethrowAfterCleanup, m as isUsageAmount, p as createRuntimeUsageTotals, t as improve } from "./improve-D_3wjXiP.js";
6
+ import { _ as agentImprovementTargetProfileDiffs, a as reviewAgentImprovementProposal, b as isAgentProfileMeasuredSurface, c as verifyAgentImprovementProposal, d as attachOptimizationActivationReceipt, f as createOptimizationActivationReceipt, g as agentImprovementProfileSurfaceInput, h as agentImprovementProfileSurfaceDigest, i as executeAgentImprovementActivation, l as verifyAgentImprovementReview, m as agentImprovementProfileDiffs, n as createAgentImprovementActivationResult, o as verifyAgentImprovementActivation, p as optimizationActivationReceiptFromMetadata, r as createAgentImprovementProposal, s as verifyAgentImprovementActivationResult, t as createAgentImprovementActivation, u as assertNoCallerOptimizationReceipt, v as assertProfileImprovementTargetsShareIdentity, y as isAgentImprovementProfileSurface } from "./activation-CqrX_rjw.js";
7
7
  import { _ as parseAgentCandidateProfileActivation, a as applyExactAgentProfileDiff, d as createAgentCandidateProfileActivation, g as omitUndefinedObjectFields, m as materializeAgentCandidateProfilePlan, o as assertCandidateProfileBinding, v as parseExactAgentProfile } from "./profile-ClvuI8aY.js";
8
8
  import { t as runAnalystLoop } from "./analyst-loop-BZvXCDKy.js";
9
9
  import { C as verifiedResourceTextByDigest, S as AGENT_CANDIDATE_EXECUTION_SUPPORT, n as executePreparedAgentCandidate, t as prepareAgentCandidateExecution, w as verifyAgentCandidateBundle, x as exactProcessProviderAsCandidateExecutor, y as createProtectedAgentCandidateModelPort } from "./prepare-DutbxpWr.js";
package/dist/kernel.js CHANGED
@@ -1,14 +1,14 @@
1
- import { $n as persistHarnessTranscript, Bi as extractLlmCallEvent, Di as createSandboxToolPartState, E as replaySpawnTree, En as createWorkerSlots, F as recoverRetainedInteractiveRun, Gt as materializeTreeView, I as startRetainedInteractiveRun, Jn as captureBoundHarnessTranscript, Ki as sumSandboxUsage, L as FileSpawnJournal, M as attachWorker, N as readWorkerInteractiveBinding, O as parseWorkerToolTraceArtifact, Oi as mapSandboxEvent, P as reconnectRetainedInteractiveRun, S as writeWorkerSteer, Ut as loadSpawnForest, Xn as harnessTranscriptArtifact, Yn as captureHarnessTranscript, Yt as FileResultBlobStore, Z as settledToIteration, _ as supervisorRunDir, an as reconnectRetainedRun, ar as DEFAULT_STALL_AFTER_MS, b as workerInboxFileFromEventDir, c as cancelWorker, cn as startRetainedRunInEnvironment, cr as readWorkerProgress, et as freeSlots, g as safeWorkerFile, h as readWorkerSteerRequests, hi as contentAddress, hr as subscriptionUsageLimitSignal, ir as retainHarnessTranscript, ki as mapSandboxToolEvent, m as readWorkerSteerAcknowledgement, mi as TRACE_SUMMARY_SCHEMA, na as RunCancellationReason, nr as readBoundHarnessSessions, nt as rollingDispatch, on as recoverRetainedRun, or as createActivityLog, p as readWorkerCancellation, pi as TRACE_ROOT_SCHEMA, qi as decodeHarnessUsage, qn as HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, rr as resolveHarnessTranscriptCapture, sn as startRetainedRun, t as createScope, tr as HARNESS_TRANSCRIPT_READ_LIMITS, tt as queueOf, u as legacySupervisorRunDir, v as supervisorRunsRoot, wi as spendFromUsageEvents, xi as createBudgetPool, zn as createOtelExporter } from "./scope-zYzxBt1q.js";
2
- import { A as defaultAnalystInstruction, D as runAgentic, E as refine, F as collectAgentTurn, I as streamAgentTurn, M as renderReport, N as profileChatClient, O as sample, P as profileOptimizerModelCall, S as strategyAuthorSystemPrompt, T as depthStrategy, _ as defineStrategy, a as defaultStructuralRolloutPolicy, b as sampleThenRefine, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as authorStrategy, h as assertStrategyContract, i as defaultExtractCandidate, j as observe, k as ObservationError, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, w as breadthStrategy, x as strategyAuthorContract } from "./structural-rollout-CGkZUyaO.js";
1
+ import { $n as persistHarnessTranscript, Bi as extractLlmCallEvent, Di as createSandboxToolPartState, E as replaySpawnTree, En as createWorkerSlots, F as recoverRetainedInteractiveRun, Gt as materializeTreeView, I as startRetainedInteractiveRun, Jn as captureBoundHarnessTranscript, Ki as sumSandboxUsage, L as FileSpawnJournal, M as attachWorker, N as readWorkerInteractiveBinding, O as parseWorkerToolTraceArtifact, Oi as mapSandboxEvent, P as reconnectRetainedInteractiveRun, S as writeWorkerSteer, Ut as loadSpawnForest, Xn as harnessTranscriptArtifact, Yn as captureHarnessTranscript, Yt as FileResultBlobStore, Z as settledToIteration, _ as supervisorRunDir, an as reconnectRetainedRun, ar as DEFAULT_STALL_AFTER_MS, b as workerInboxFileFromEventDir, c as cancelWorker, cn as startRetainedRunInEnvironment, cr as readWorkerProgress, et as freeSlots, g as safeWorkerFile, h as readWorkerSteerRequests, hi as contentAddress, hr as subscriptionUsageLimitSignal, ir as retainHarnessTranscript, ki as mapSandboxToolEvent, m as readWorkerSteerAcknowledgement, mi as TRACE_SUMMARY_SCHEMA, na as RunCancellationReason, nr as readBoundHarnessSessions, nt as rollingDispatch, on as recoverRetainedRun, or as createActivityLog, p as readWorkerCancellation, pi as TRACE_ROOT_SCHEMA, qi as decodeHarnessUsage, qn as HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, rr as resolveHarnessTranscriptCapture, sn as startRetainedRun, t as createScope, tr as HARNESS_TRANSCRIPT_READ_LIMITS, tt as queueOf, u as legacySupervisorRunDir, v as supervisorRunsRoot, wi as spendFromUsageEvents, xi as createBudgetPool, zn as createOtelExporter } from "./scope-DrU_M6r3.js";
2
+ import { A as defaultAnalystInstruction, D as runAgentic, E as refine, F as collectAgentTurn, I as streamAgentTurn, M as renderReport, N as profileChatClient, O as sample, P as profileOptimizerModelCall, S as strategyAuthorSystemPrompt, T as depthStrategy, _ as defineStrategy, a as defaultStructuralRolloutPolicy, b as sampleThenRefine, c as officialChecksFromMeta, d as selectBestIndex, f as structuralRollout, g as authorStrategy, h as assertStrategyContract, i as defaultExtractCandidate, j as observe, k as ObservationError, l as resolveEntrySymbol, m as adaptiveRefine, n as compareCheckOutcomes, o as filterAuthoredAsserts, p as visibleCheckScore, r as composeCheckSources, s as modelAuthoredChecks, t as canDisplace, u as sandboxCheckRunner, w as breadthStrategy, x as strategyAuthorContract } from "./structural-rollout-Bn9MAIMS.js";
3
3
  import { t as runTaskQueue } from "./task-queue-DbpZAp6C.js";
4
- import { $ as DEFAULT_PEER_MAIL_LIMITS, C as createExecutor, Ct as admitContinuationPolicy, D as runAgentRounds, E as createSteerableSandboxSession, Ft as harnessUsageIsEmpty, H as createAgentEnvironmentProviderRegistry, It as readCodexRolloutSession, J as createInPlaceCliExecutor, K as providerAsSandboxClient, L as createCodeModeTools, Lt as createPushTraceSource, M as acquireSandbox, N as TERMINAL_DECISIONS, Nt as addHarnessUsage, P as defaultSelectWinner, Pt as createCodexRolloutStoreReader, Q as AUTHORITY_MARKERS, R as runCodeMode, T as DEFAULT_SANDBOX_STEERING_MAX_TURNS, U as resolveAgentEnvironmentProvider, W as providerAsExecutor, _t as CheckUnavailableError, at as peerMailVerbNames, b as createExecutorRegistry, bt as mapExecutorResult, et as PEER_MAIL_WIRE_KEY, i as RunParkedError, it as peerMailTools, j as createSandboxLineage, n as createSupervisor, nt as createPeerMailbox, p as createRootHandle, q as createWorktreeCliExecutor, qt as assertProfileMaterializes, rt as isPeerMailEnvelope, s as readRunParking, t as DEFAULT_MAX_DEPTH, tt as claimsAuthority, u as bestDelivered, v as InMemoryResultBlobStore, xt as verdictFromJudgeScore, y as InMemorySpawnJournal, yt as gateOnDeliverable } from "./supervisor-DfBrIdFp.js";
5
- import { _ as sharedWorkerClientName, f as DEFAULT_SHARED_BOX_RESOURCES, g as sharedBoxRefusal, h as ROUTER_CLIENT_HEADER, m as sharedBoxPlacement, p as DEFAULT_SHARED_BOX_WORKERS } from "./search-executor-Btb-gz4q.js";
6
- import { i as readRunCancellation, n as cancelRun, r as readRunCancelRequest, v as FileCoordinationLog } from "./run-cancellation-CZdg-wlk.js";
7
- import { f as createFileRunContext, i as watchTrace, m as withRunContext, o as createEventBus, p as createInMemoryRunContext, r as defaultToolDetectors } from "./coordination-manager-DjfXXHvG.js";
8
- import { A as analyzesFindingsReportPrompt, B as anyOf, D as defaultEdgeTraversalCap, F as formatPromptHandle, G as bestSoFar, H as plateau, I as kernelPromptRegistry, J as createSupervisorSpanRecorder, K as plateauLength, L as naiveContinuationPrompt, M as delegatesWorkerBriefPrompt, N as dumbContinuationFailPrompt, P as dumbContinuationPassPrompt, R as promptHandle, U as anytimeReport, V as noProgressFor, W as areaUnderCurve, c as retryPreSpawnRefusals, d as supervisorAgent, g as serveCoordinationMcp, h as composeReentryTask, j as createPromptRegistry, l as withWorkerSpawnRetry, m as UNPROVEN_CONTINUITY, n as superviseFleetCapabilities, o as isPreSpawnExecutorFailure, p as runToolSpans, q as renderAnytimeTable, s as resolveWorkerSpawnRetry, t as supervise, u as workerFromBackend, x as GraphRouteError, z as allWorkersStalled } from "./supervise-BKfejmq_.js";
4
+ import { $ as DEFAULT_PEER_MAIL_LIMITS, C as createExecutor, Ct as admitContinuationPolicy, D as runAgentRounds, E as createSteerableSandboxSession, Ft as harnessUsageIsEmpty, H as createAgentEnvironmentProviderRegistry, It as readCodexRolloutSession, J as createInPlaceCliExecutor, K as providerAsSandboxClient, L as createCodeModeTools, Lt as createPushTraceSource, M as acquireSandbox, N as TERMINAL_DECISIONS, Nt as addHarnessUsage, P as defaultSelectWinner, Pt as createCodexRolloutStoreReader, Q as AUTHORITY_MARKERS, R as runCodeMode, T as DEFAULT_SANDBOX_STEERING_MAX_TURNS, U as resolveAgentEnvironmentProvider, W as providerAsExecutor, _t as CheckUnavailableError, at as peerMailVerbNames, b as createExecutorRegistry, bt as mapExecutorResult, et as PEER_MAIL_WIRE_KEY, i as RunParkedError, it as peerMailTools, j as createSandboxLineage, n as createSupervisor, nt as createPeerMailbox, p as createRootHandle, q as createWorktreeCliExecutor, qt as assertProfileMaterializes, rt as isPeerMailEnvelope, s as readRunParking, t as DEFAULT_MAX_DEPTH, tt as claimsAuthority, u as bestDelivered, v as InMemoryResultBlobStore, xt as verdictFromJudgeScore, y as InMemorySpawnJournal, yt as gateOnDeliverable } from "./supervisor-B5VVDFGE.js";
5
+ import { _ as sharedWorkerClientName, f as DEFAULT_SHARED_BOX_RESOURCES, g as sharedBoxRefusal, h as ROUTER_CLIENT_HEADER, m as sharedBoxPlacement, p as DEFAULT_SHARED_BOX_WORKERS } from "./search-executor-C7u2UZP-.js";
6
+ import { i as readRunCancellation, n as cancelRun, r as readRunCancelRequest, v as FileCoordinationLog } from "./run-cancellation-cK_pnwLY.js";
7
+ import { f as createFileRunContext, i as watchTrace, m as withRunContext, o as createEventBus, p as createInMemoryRunContext, r as defaultToolDetectors } from "./coordination-manager-D141UBzE.js";
8
+ import { A as analyzesFindingsReportPrompt, B as anyOf, D as defaultEdgeTraversalCap, F as formatPromptHandle, G as bestSoFar, H as plateau, I as kernelPromptRegistry, J as createSupervisorSpanRecorder, K as plateauLength, L as naiveContinuationPrompt, M as delegatesWorkerBriefPrompt, N as dumbContinuationFailPrompt, P as dumbContinuationPassPrompt, R as promptHandle, U as anytimeReport, V as noProgressFor, W as areaUnderCurve, c as retryPreSpawnRefusals, d as supervisorAgent, g as serveCoordinationMcp, h as composeReentryTask, j as createPromptRegistry, l as withWorkerSpawnRetry, m as UNPROVEN_CONTINUITY, n as superviseFleetCapabilities, o as isPreSpawnExecutorFailure, p as runToolSpans, q as renderAnytimeTable, s as resolveWorkerSpawnRetry, t as supervise, u as workerFromBackend, x as GraphRouteError, z as allWorkersStalled } from "./supervise-Tc0zimhk.js";
9
9
  import { a as graphRegistry, b as graphRouteWhenSchema, c as loadGraph, d as recordGraphRun, f as recordStoredGraphRun, i as graphFromStored, l as lookupGraph, m as taskShapeDigest, n as graphCorpusSummary, o as graphRunsFor, p as storedGraphDigests, r as graphDigest, s as listGraphRuns, t as digestOfGraph, u as pickBestGraph, y as graphFileSchema } from "./graph-registry-D6y6zffC.js";
10
- import { $ as runBenchmark, $t as renderLeaderboardHtml, A as searchPresets, At as sanitizeMcpToolSchema, B as graphFromSessionFacts, Bt as assertDeclaredCheck, C as withUntrackedArtifacts, Ct as harvestCorpus, D as SEARCH_SPEC_CORRELATION_KEY, Dt as connectStdioMcp, E as createFencedSqlRunContext, Et as McpSpawnFault, F as loadProfile, Ft as secretEnvOfMcpServer, G as chatWorkerSeam, Gt as readDeclaredCheck, H as loadGraphFile, Ht as declaredCheckDeliverable, I as pickBestProfile, It as inlineSandboxClient, J as strategyTournament, Jt as deterministicCompletion, K as createChatSessionStore, Kt as runIsolatedCheck, L as profileRegistry, Lt as loopCampaignDispatch, M as connectRemoteSupervisor, Mt as mcpSecretEnvMetadataKey, N as connectRemoteSupervisorControl, Nt as resolveMcpServerLaunch, O as assertSearchSpec, Ot as materializeLocalMcp, P as bestProfileFor, Pt as resolveSecretEnv, Q as printBenchmarkReport, Qt as pairwiseSignificance, R as profileRunsForName, Rt as loopDispatch, S as copyUntrackedIntoClone, St as HarvestError, T as validateStoredGraph, Tt as resolveSandboxClient, U as graphDesignerExtraTools, Ut as declaredCheckDigest, V as GraphFileResolutionError, Vt as checkProgramDigest, W as chatTransportExecutor, Wt as declaredCheckJudge, X as openSandboxRun, Xt as stopSentinel, Y as SandboxRunAbortError, Yt as sentinelCompletion, Z as createS3PrivateCasStore, Zt as leaderboard, _ as NOTE_MAX_CHARS, _t as buildSteerContext, a as localShell, at as FileCorpus, b as composeWorkerEvidence, bt as observationFromRegistry, c as createVerifierEnvironment, ct as fanout, d as harvestSurfaceDiffs, dt as panel, en as renderLeaderboardMarkdown, et as createPrivateCasArtifactPort, f as analystsFromRegistry, ft as pipeline, g as EVIDENCE_MAX_CHARS, gt as assertTraceDerivedFindings, ht as widen, i as jjWorkspace, in as openSqlRunStore, it as runPersonified, j as searchSpecDigest, jt as envKeyProvider, k as compileSearchSpec, kt as createMcpEnvironment, l as boxSurfaceReader, lt as flatWidenGate, m as worktreeFanout, mt as verify, n as makeFinding, nn as renderPairwiseMarkdown, nt as trajectoryReport, o as runInWorkspace, ot as InMemoryCorpus, p as failuresAnalyst, pt as selectValidWinner, q as runStrategyEvolution, qt as completionAuthorizes, r as gitWorkspace, rn as SqlRunOwnershipError, rt as definePersona, s as createWaterfallCollector, st as renderCorpusToInstructions, t as computeFindingId, tn as renderLeaderboardSvg, tt as equalKOnCost, u as fsSurfaceReader, ut as loopUntil, v as VERIFY_TAIL_CHARS, vt as createScopeAnalyst, w as analyzeTrace, wt as defineLeaderboard, x as settledWorkerOut, xt as inProcessSandboxClient, y as closingWorkerNote, yt as registryScopeAnalyst, z as recordProfileRun, zt as superviseDispatch } from "./runtime-CyZN9kR-.js";
11
- import { n as workerFromInteractiveProvider, r as claimRetainedInteractiveControl, t as provisionSupervisor } from "./provision-supervisor-kVbZwZdr.js";
12
- import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-CkvYXR2m.js";
13
- import { n as runGraph, t as GraphEdgeCapError } from "./graph-BThFomZ3.js";
10
+ import { $ as runBenchmark, $t as renderLeaderboardHtml, A as searchPresets, At as sanitizeMcpToolSchema, B as graphFromSessionFacts, Bt as assertDeclaredCheck, C as withUntrackedArtifacts, Ct as harvestCorpus, D as SEARCH_SPEC_CORRELATION_KEY, Dt as connectStdioMcp, E as createFencedSqlRunContext, Et as McpSpawnFault, F as loadProfile, Ft as secretEnvOfMcpServer, G as chatWorkerSeam, Gt as readDeclaredCheck, H as loadGraphFile, Ht as declaredCheckDeliverable, I as pickBestProfile, It as inlineSandboxClient, J as strategyTournament, Jt as deterministicCompletion, K as createChatSessionStore, Kt as runIsolatedCheck, L as profileRegistry, Lt as loopCampaignDispatch, M as connectRemoteSupervisor, Mt as mcpSecretEnvMetadataKey, N as connectRemoteSupervisorControl, Nt as resolveMcpServerLaunch, O as assertSearchSpec, Ot as materializeLocalMcp, P as bestProfileFor, Pt as resolveSecretEnv, Q as printBenchmarkReport, Qt as pairwiseSignificance, R as profileRunsForName, Rt as loopDispatch, S as copyUntrackedIntoClone, St as HarvestError, T as validateStoredGraph, Tt as resolveSandboxClient, U as graphDesignerExtraTools, Ut as declaredCheckDigest, V as GraphFileResolutionError, Vt as checkProgramDigest, W as chatTransportExecutor, Wt as declaredCheckJudge, X as openSandboxRun, Xt as stopSentinel, Y as SandboxRunAbortError, Yt as sentinelCompletion, Z as createS3PrivateCasStore, Zt as leaderboard, _ as NOTE_MAX_CHARS, _t as buildSteerContext, a as localShell, at as FileCorpus, b as composeWorkerEvidence, bt as observationFromRegistry, c as createVerifierEnvironment, ct as fanout, d as harvestSurfaceDiffs, dt as panel, en as renderLeaderboardMarkdown, et as createPrivateCasArtifactPort, f as analystsFromRegistry, ft as pipeline, g as EVIDENCE_MAX_CHARS, gt as assertTraceDerivedFindings, ht as widen, i as jjWorkspace, in as openSqlRunStore, it as runPersonified, j as searchSpecDigest, jt as envKeyProvider, k as compileSearchSpec, kt as createMcpEnvironment, l as boxSurfaceReader, lt as flatWidenGate, m as worktreeFanout, mt as verify, n as makeFinding, nn as renderPairwiseMarkdown, nt as trajectoryReport, o as runInWorkspace, ot as InMemoryCorpus, p as failuresAnalyst, pt as selectValidWinner, q as runStrategyEvolution, qt as completionAuthorizes, r as gitWorkspace, rn as SqlRunOwnershipError, rt as definePersona, s as createWaterfallCollector, st as renderCorpusToInstructions, t as computeFindingId, tn as renderLeaderboardSvg, tt as equalKOnCost, u as fsSurfaceReader, ut as loopUntil, v as VERIFY_TAIL_CHARS, vt as createScopeAnalyst, w as analyzeTrace, wt as defineLeaderboard, x as settledWorkerOut, xt as inProcessSandboxClient, y as closingWorkerNote, yt as registryScopeAnalyst, z as recordProfileRun, zt as superviseDispatch } from "./runtime-S74rNVKC.js";
11
+ import { n as workerFromInteractiveProvider, r as claimRetainedInteractiveControl, t as provisionSupervisor } from "./provision-supervisor-BT5Xcej8.js";
12
+ import { a as defaultProfileRichnessThresholds, i as assessAuthoredProfile, n as delegate, o as profileRichnessFinding, r as asAuthoredProfile, s as supervisorInstructions, t as defaultDelegateBudget } from "./delegate-DGPuRCKg.js";
13
+ import { n as runGraph, t as GraphEdgeCapError } from "./graph-D-LohH0j.js";
14
14
  export { AUTHORITY_MARKERS, CheckUnavailableError, DEFAULT_MAX_DEPTH, DEFAULT_PEER_MAIL_LIMITS, DEFAULT_SANDBOX_STEERING_MAX_TURNS, DEFAULT_SHARED_BOX_RESOURCES, DEFAULT_SHARED_BOX_WORKERS, DEFAULT_STALL_AFTER_MS, EVIDENCE_MAX_CHARS, FileCoordinationLog, FileCorpus, FileResultBlobStore, FileSpawnJournal, GraphEdgeCapError, GraphFileResolutionError, GraphRouteError, HARNESS_TRANSCRIPT_READ_LIMITS, HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS, HarvestError, InMemoryCorpus, InMemoryResultBlobStore, InMemorySpawnJournal, McpSpawnFault, NOTE_MAX_CHARS, ObservationError, PEER_MAIL_WIRE_KEY, ROUTER_CLIENT_HEADER, RunCancellationReason, RunParkedError, SEARCH_SPEC_CORRELATION_KEY, SandboxRunAbortError, SqlRunOwnershipError, TERMINAL_DECISIONS, TRACE_ROOT_SCHEMA, TRACE_SUMMARY_SCHEMA, UNPROVEN_CONTINUITY, VERIFY_TAIL_CHARS, acquireSandbox, adaptiveRefine, addHarnessUsage, admitContinuationPolicy, allWorkersStalled, analystsFromRegistry, analyzeTrace, analyzesFindingsReportPrompt, anyOf, anytimeReport, areaUnderCurve, asAuthoredProfile, assertDeclaredCheck, assertProfileMaterializes, assertSearchSpec, assertStrategyContract, assertTraceDerivedFindings, assessAuthoredProfile, attachWorker, authorStrategy, bestDelivered, bestProfileFor, bestSoFar, boxSurfaceReader, breadthStrategy, buildSteerContext, canDisplace, cancelRun, cancelWorker, captureBoundHarnessTranscript, captureHarnessTranscript, chatTransportExecutor, chatWorkerSeam, checkProgramDigest, claimRetainedInteractiveControl, claimsAuthority, closingWorkerNote, collectAgentTurn, compareCheckOutcomes, compileSearchSpec, completionAuthorizes, composeCheckSources, composeReentryTask, composeWorkerEvidence, computeFindingId, connectRemoteSupervisor, connectRemoteSupervisorControl, connectStdioMcp, contentAddress, copyUntrackedIntoClone, createActivityLog, createAgentEnvironmentProviderRegistry, createBudgetPool, createChatSessionStore, createCodeModeTools, createCodexRolloutStoreReader, createEventBus, createExecutor, createExecutorRegistry, createFencedSqlRunContext, createFileRunContext, createInMemoryRunContext, createInPlaceCliExecutor, createMcpEnvironment, createOtelExporter, createPeerMailbox, createPrivateCasArtifactPort, createPromptRegistry, createPushTraceSource, createRootHandle, createS3PrivateCasStore, createSandboxLineage, createSandboxToolPartState, createScope, createScopeAnalyst, createSteerableSandboxSession, createSupervisor, createSupervisorSpanRecorder, createVerifierEnvironment, createWaterfallCollector, createWorkerSlots, createWorktreeCliExecutor, declaredCheckDeliverable, declaredCheckDigest, declaredCheckJudge, decodeHarnessUsage, defaultAnalystInstruction, defaultDelegateBudget, defaultEdgeTraversalCap, defaultExtractCandidate, defaultProfileRichnessThresholds, defaultSelectWinner, defaultStructuralRolloutPolicy, defaultToolDetectors, defineLeaderboard, definePersona, defineStrategy, delegate, delegatesWorkerBriefPrompt, depthStrategy, deterministicCompletion, digestOfGraph, dumbContinuationFailPrompt, dumbContinuationPassPrompt, envKeyProvider, equalKOnCost, extractLlmCallEvent, failuresAnalyst, fanout, filterAuthoredAsserts, flatWidenGate, formatPromptHandle, freeSlots, fsSurfaceReader, gateOnDeliverable, gitWorkspace, graphCorpusSummary, graphDesignerExtraTools, graphDigest, graphFileSchema, graphFromSessionFacts, graphFromStored, graphRegistry, graphRouteWhenSchema, graphRunsFor, harnessTranscriptArtifact, harnessUsageIsEmpty, harvestCorpus, harvestSurfaceDiffs, inProcessSandboxClient, inlineSandboxClient, isPeerMailEnvelope, isPreSpawnExecutorFailure, jjWorkspace, kernelPromptRegistry, leaderboard, legacySupervisorRunDir, listGraphRuns, loadGraph, loadGraphFile, loadProfile, loadSpawnForest, localShell, lookupGraph, loopCampaignDispatch, loopDispatch, loopUntil, makeFinding, mapExecutorResult, mapSandboxEvent, mapSandboxToolEvent, materializeLocalMcp, materializeTreeView, mcpSecretEnvMetadataKey, modelAuthoredChecks, naiveContinuationPrompt, noProgressFor, observationFromRegistry, observe, officialChecksFromMeta, openSandboxRun, openSqlRunStore, pairwiseSignificance, panel, parseWorkerToolTraceArtifact, peerMailTools, peerMailVerbNames, persistHarnessTranscript, pickBestGraph, pickBestProfile, pipeline, plateau, plateauLength, printBenchmarkReport, profileChatClient, profileOptimizerModelCall, profileRegistry, profileRichnessFinding, profileRunsForName, promptHandle, providerAsExecutor, providerAsSandboxClient, provisionSupervisor, queueOf, readBoundHarnessSessions, readCodexRolloutSession, readDeclaredCheck, readRunCancelRequest, readRunCancellation, readRunParking, readWorkerCancellation, readWorkerInteractiveBinding, readWorkerProgress, readWorkerSteerAcknowledgement, readWorkerSteerRequests, reconnectRetainedInteractiveRun, reconnectRetainedRun, recordGraphRun, recordProfileRun, recordStoredGraphRun, recoverRetainedInteractiveRun, recoverRetainedRun, refine, registryScopeAnalyst, renderAnytimeTable, renderCorpusToInstructions, renderLeaderboardHtml, renderLeaderboardMarkdown, renderLeaderboardSvg, renderPairwiseMarkdown, renderReport, replaySpawnTree, resolveAgentEnvironmentProvider, resolveEntrySymbol, resolveHarnessTranscriptCapture, resolveMcpServerLaunch, resolveSandboxClient, resolveSecretEnv, resolveWorkerSpawnRetry, retainHarnessTranscript, retryPreSpawnRefusals, rollingDispatch, runAgentRounds, runAgentic, runBenchmark, runCodeMode, runGraph, runInWorkspace, runIsolatedCheck, runPersonified, runStrategyEvolution, runTaskQueue, runToolSpans, safeWorkerFile, sample, sampleThenRefine, sandboxCheckRunner, sanitizeMcpToolSchema, searchPresets, searchSpecDigest, secretEnvOfMcpServer, selectBestIndex, selectValidWinner, sentinelCompletion, serveCoordinationMcp, settledToIteration, settledWorkerOut, sharedBoxPlacement, sharedBoxRefusal, sharedWorkerClientName, spendFromUsageEvents, startRetainedInteractiveRun, startRetainedRun, startRetainedRunInEnvironment, stopSentinel, storedGraphDigests, strategyAuthorContract, strategyAuthorSystemPrompt, strategyTournament, streamAgentTurn, structuralRollout, subscriptionUsageLimitSignal, sumSandboxUsage, supervise, superviseDispatch, superviseFleetCapabilities, supervisorAgent, supervisorInstructions, supervisorRunDir, supervisorRunsRoot, taskShapeDigest, trajectoryReport, validateStoredGraph, verdictFromJudgeScore, verify, visibleCheckScore, watchTrace, widen, withRunContext, withUntrackedArtifacts, withWorkerSpawnRetry, workerFromBackend, workerFromInteractiveProvider, workerInboxFileFromEventDir, worktreeFanout, writeWorkerSteer };
@@ -1,6 +1,6 @@
1
1
  import { i as ConfigError } from "./errors-AzSuGI23.js";
2
2
  import { t as runAnalystLoop } from "./analyst-loop-BZvXCDKy.js";
3
- import "./runtime-CyZN9kR-.js";
3
+ import "./runtime-S74rNVKC.js";
4
4
  // src/loop-runner.ts
5
5
  /** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */
6
6
  const DELEGATED_LOOP_MODES = [
@@ -55,4 +55,4 @@ function auditLoopRunner(options) {
55
55
  }
56
56
  export { runDelegatedLoop as i, auditLoopRunner as n, isDelegatedLoopMode as r, DELEGATED_LOOP_MODES as t };
57
57
 
58
- //# sourceMappingURL=loop-runner-BFDFst3d.js.map
58
+ //# sourceMappingURL=loop-runner-CE_S4Gun.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loop-runner-BFDFst3d.js","names":[],"sources":["../src/loop-runner.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a `DelegatedLoopResult`. */\nexport type DelegatedLoopRunner<T = unknown> = (signal: AbortSignal) => Promise<T>\n\n/** @experimental Mode → configured runner. Partial: only register the modes a\n * given product/routine actually uses. */\nexport type DelegatedLoopRegistry = Partial<Record<DelegatedLoopMode, DelegatedLoopRunner>>\n\n/** @experimental Uniform result — never throws from a registered runner; a\n * thrown engine becomes `{ ok: false, error }` so a routine can record + move on. */\nexport interface DelegatedLoopResult<T = unknown> {\n mode: DelegatedLoopMode\n ok: boolean\n output?: T\n error?: string\n durationMs: number\n}\n\n/** @experimental */\ninterface RunDelegatedLoopOptions {\n signal?: AbortSignal\n /** Clock override for deterministic tests. */\n now?: () => number\n}\n\n/**\n *\n * Dispatch a configured loop by mode. Fails loud (throws `ConfigError`) when no\n * runner is registered for the mode — a routine pointed at an unwired mode is a\n * config bug, not a silent no-op. A runner that throws is captured as\n * `{ ok: false }` so unattended runs record the failure rather than crash.\n *\n * @experimental\n */\nexport async function runDelegatedLoop<T = unknown>(\n mode: DelegatedLoopMode,\n registry: DelegatedLoopRegistry,\n options: RunDelegatedLoopOptions = {},\n): Promise<DelegatedLoopResult<T>> {\n const runner = registry[mode] as DelegatedLoopRunner<T> | undefined\n if (!runner) {\n throw new ConfigError(\n `runDelegatedLoop: no runner registered for mode '${mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n )\n }\n const now = options.now ?? Date.now\n const signal = options.signal ?? new AbortController().signal\n const start = now()\n try {\n const output = await runner(signal)\n return { mode, ok: true, output, durationMs: now() - start }\n } catch (err) {\n return {\n mode,\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n durationMs: now() - start,\n }\n }\n}\n\n/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */\ninterface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\ninterface ResearchLoopResult {\n /** Facts that passed the fail-closed gate — safe to write to the KB. */\n accepted: FactCandidate[]\n /** Facts the gate vetoed in the final round — escalate, do not silently drop. */\n vetoed: VetoedFact[]\n /** Research rounds actually run. */\n rounds: number\n}\n\n/** @experimental Options for the default `research` runner. */\ninterface ResearchLoopRunnerOptions {\n /**\n * The research engine (the consumer's web/doc searcher + extractor). Called\n * each round with the prior round's vetoes so it can re-research the gaps.\n * Returns fact candidates carrying their grounding (`verbatimPassage` +\n * `sourceText`).\n */\n research: (round: number, vetoed: VetoedFact[]) => Promise<FactCandidate[]>\n /** Gate config (extra judges, self-artifact kinds, …). The floor is always on. */\n gate?: CreateKbGateOptions\n /** Max research rounds (correct-on-veto remediation). Default 1. */\n maxRounds?: number\n}\n\n/**\n * `research` mode — research-in-a-loop with valid-only KB growth.\n *\n * Each round: research → gate every candidate (fail-closed; passage MUST be in\n * the source) → accept the clean ones → re-research the vetoed ones next round,\n * up to `maxRounds`. Vetoed facts in the final round are RETURNED (escalate,\n * never silently dropped) so the caller audits vs retries.\n *\n * @experimental\n */\nexport function researchLoopRunner(\n o: ResearchLoopRunnerOptions,\n): DelegatedLoopRunner<ResearchLoopResult> {\n const gate = createKbGate(o.gate)\n const maxRounds = Math.max(1, Math.trunc(o.maxRounds ?? 1))\n return async (signal) => {\n const accepted: FactCandidate[] = []\n let vetoed: VetoedFact[] = []\n let rounds = 0\n for (let round = 0; round < maxRounds; round += 1) {\n if (signal.aborted) break\n rounds += 1\n const candidates = await o.research(round, vetoed)\n if (candidates.length === 0) break\n vetoed = []\n for (const c of candidates) {\n const v = await gate(c)\n if (v.accepted) accepted.push(c)\n else vetoed.push({ candidate: c, vetoedBy: v.vetoedBy, reason: v.reason })\n }\n if (vetoed.length === 0) break\n }\n return { accepted, vetoed, rounds }\n }\n}\n\n/**\n * `audit` mode — analyst loop over captured trace/run data.\n *\n * @experimental\n */\nexport function auditLoopRunner<TProposal = unknown, TEdit = unknown>(\n options: RunAnalystLoopOpts,\n): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>> {\n return async () => runAnalystLoop<TProposal, TEdit>(options)\n}\n"],"mappings":";;;;;AAyCA,MAAa,uBAAuB;CAAC;CAAQ;CAAU;CAAY;CAAS;AAAc;;AAM1F,SAAgB,oBAAoB,OAA4C;CAC9E,OAAO,OAAO,UAAU,YAAa,qBAA2C,SAAS,KAAK;AAChG;;;;;;;;;;AAoCA,eAAsB,iBACpB,MACA,UACA,UAAmC,CAAC,GACH;CACjC,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,QACH,MAAM,IAAI,YACR,oDAAoD,KAAK,iBACvD,OAAO,KAAK,QAAQ,CAAC,CAAC,KAAK,IAAI,KAAK,OACrC,EACH;CAEF,MAAM,MAAM,QAAQ,OAAO,KAAK;CAChC,MAAM,SAAS,QAAQ,UAAU,IAAI,gBAAgB,CAAC,CAAC;CACvD,MAAM,QAAQ,IAAI;CAClB,IAAI;EAEF,OAAO;GAAE;GAAM,IAAI;GAAM,QAAA,MADJ,OAAO,MAAM;GACD,YAAY,IAAI,IAAI;EAAM;CAC7D,SAAS,KAAK;EACZ,OAAO;GACL;GACA,IAAI;GACJ,OAAO,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;GACtD,YAAY,IAAI,IAAI;EACtB;CACF;AACF;;;;;;AAoKA,SAAgB,gBACd,SAC6D;CAC7D,OAAO,YAAY,eAAiC,OAAO;AAC7D"}
1
+ {"version":3,"file":"loop-runner-CE_S4Gun.js","names":[],"sources":["../src/loop-runner.ts"],"sourcesContent":["/**\n *\n * `runDelegatedLoop` — the configured delegated loop-runner.\n *\n * One typed entrypoint a worker agent (or a scheduled routine) calls to run a\n * disciplined loop in a chosen MODE, over agent-runtime's hardened engines:\n *\n * code → build-in-a-loop on the GENERIC recursive path (worktreeLoopRunner: author one\n * `AgentProfile` per harness → worktree-CLI leaves → `patchDelivered` gate)\n * review → caller-registered runner — a `code` runner with an approval gate over candidates\n * research → research-in-a-loop with valid-only KB growth (createKbGate)\n * audit → analyze trace/run data → findings (runAnalystLoop, caller-wired)\n * self-improve → caller-registered `improve(profile, options)` run\n *\n * It is intentionally a thin façade: the value is that EVERY product reuses the\n * one hardened engine instead of forking delegation logic. The dispatcher owns\n * mode routing, timing, fail-loud on an unregistered mode, and a uniform result\n * shape; each mode's engine is a pre-configured runner in the registry (build it\n * with the factories below, or inject your own / a stub).\n *\n * @experimental\n */\n\nimport type { AgentProfile } from '@tangle-network/agent-interface'\nimport { runAnalystLoop } from './analyst-loop'\nimport type { RunAnalystLoopOpts, RunAnalystLoopResult } from './analyst-loop/types'\nimport { ConfigError } from './errors'\nimport { type CreateKbGateOptions, createKbGate, type FactCandidate } from './mcp/kb-gate'\nimport {\n type AuthoredHarness,\n type Budget,\n createExecutorRegistry,\n definePersona,\n runPersonified,\n type WinnerStrategy,\n type WorktreeFanoutOptions,\n type WorktreePatchArtifact,\n worktreeFanout,\n} from './runtime'\n\n/** All valid delegated-loop mode names — used for validation and CLI surfaces. @experimental */\nexport const DELEGATED_LOOP_MODES = ['code', 'review', 'research', 'audit', 'self-improve'] as const\n\n/** @experimental */\nexport type DelegatedLoopMode = (typeof DELEGATED_LOOP_MODES)[number]\n\n/** Type guard — returns true when `value` is a valid `DelegatedLoopMode` string. @experimental */\nexport function isDelegatedLoopMode(value: unknown): value is DelegatedLoopMode {\n return typeof value === 'string' && (DELEGATED_LOOP_MODES as readonly string[]).includes(value)\n}\n\n/** @experimental A pre-configured loop for one mode. Returns the mode's raw\n * output; the dispatcher wraps it in a `DelegatedLoopResult`. */\nexport type DelegatedLoopRunner<T = unknown> = (signal: AbortSignal) => Promise<T>\n\n/** @experimental Mode → configured runner. Partial: only register the modes a\n * given product/routine actually uses. */\nexport type DelegatedLoopRegistry = Partial<Record<DelegatedLoopMode, DelegatedLoopRunner>>\n\n/** @experimental Uniform result — never throws from a registered runner; a\n * thrown engine becomes `{ ok: false, error }` so a routine can record + move on. */\nexport interface DelegatedLoopResult<T = unknown> {\n mode: DelegatedLoopMode\n ok: boolean\n output?: T\n error?: string\n durationMs: number\n}\n\n/** @experimental */\ninterface RunDelegatedLoopOptions {\n signal?: AbortSignal\n /** Clock override for deterministic tests. */\n now?: () => number\n}\n\n/**\n *\n * Dispatch a configured loop by mode. Fails loud (throws `ConfigError`) when no\n * runner is registered for the mode — a routine pointed at an unwired mode is a\n * config bug, not a silent no-op. A runner that throws is captured as\n * `{ ok: false }` so unattended runs record the failure rather than crash.\n *\n * @experimental\n */\nexport async function runDelegatedLoop<T = unknown>(\n mode: DelegatedLoopMode,\n registry: DelegatedLoopRegistry,\n options: RunDelegatedLoopOptions = {},\n): Promise<DelegatedLoopResult<T>> {\n const runner = registry[mode] as DelegatedLoopRunner<T> | undefined\n if (!runner) {\n throw new ConfigError(\n `runDelegatedLoop: no runner registered for mode '${mode}' (registered: ${\n Object.keys(registry).join(', ') || 'none'\n })`,\n )\n }\n const now = options.now ?? Date.now\n const signal = options.signal ?? new AbortController().signal\n const start = now()\n try {\n const output = await runner(signal)\n return { mode, ok: true, output, durationMs: now() - start }\n } catch (err) {\n return {\n mode,\n ok: false,\n error: err instanceof Error ? err.message : String(err),\n durationMs: now() - start,\n }\n }\n}\n\n/** @experimental Options for the local-repo `code` runner over the GENERIC recursive path. */\ninterface WorktreeLoopRunnerOptions {\n /** Exact profile carried by the personified root that owns this fanout. */\n rootProfile: AgentProfile\n /** Absolute path to the local git checkout each worktree is cut from. */\n repoRoot: string\n /** The instruction handed to every authored harness (composed under each profile's systemPrompt). */\n taskPrompt: string\n /** The supervisor-authored harness profiles — one fanout item (one worktree-CLI leaf) each. */\n harnesses: ReadonlyArray<AuthoredHarness>\n /** Conserved budget pool bounding the fanout (equal-k holds by construction). */\n budget: Budget\n /** Shell command run in each worktree to derive the tests-PASS signal. */\n testCmd?: string\n /** Shell command run in each worktree to derive the typecheck-PASS signal. */\n typecheckCmd?: string\n /** Which verification signals the deliverable REQUIRES present-and-passing (default none). */\n require?: ReadonlyArray<'tests' | 'typecheck'>\n /** Diff-size cap (lines). */\n maxDiffLines?: number\n /** Literal path prefixes the patch must not touch (the secret-floor is always on regardless). */\n forbiddenPaths?: string[]\n /** Winner-selection strategy among gated candidates. Default `highest-score`. */\n winnerStrategy?: WinnerStrategy\n /** Test seams forwarded to the worktree-CLI leaves so the runner drives offline. */\n runGit?: WorktreeFanoutOptions['runGit']\n runHarness?: WorktreeFanoutOptions['runHarness']\n runCommand?: WorktreeFanoutOptions['runCommand']\n}\n\n/**\n *\n * `code` mode on the GENERIC recursive path: author one `AgentProfile` per harness, run them as a\n * `worktreeFanout` (N `createWorktreeCliExecutor` leaves, each `gateOnDeliverable`) through\n * `runPersonified` on the keystone Supervisor. The sandbox-session counterpart that drives the in-box\n * harness over a `SandboxClient` is `detachedSessionDelegate` (`./mcp/delegates`); here there is no\n * `runAgentRounds` driver, no role-coupled delegate — the harness list is the fanout, the gate is\n * `patchDelivered`,\n * the winner is the shared valid-only selector (NOT `defaultSelectWinner`, whose non-valid fallback\n * would surface an ungated patch). Equal-k holds by the conserved budget pool. Returns the winning\n * patch artifact, or throws when no candidate is delivered (fail loud, never a vacuous done).\n *\n * @experimental\n */\nexport function worktreeLoopRunner(\n options: WorktreeLoopRunnerOptions,\n): DelegatedLoopRunner<WorktreePatchArtifact> {\n const shape = worktreeFanout<string>({\n repoRoot: options.repoRoot,\n taskPrompt: options.taskPrompt,\n harnesses: options.harnesses,\n ...(options.testCmd !== undefined ? { testCmd: options.testCmd } : {}),\n ...(options.typecheckCmd !== undefined ? { typecheckCmd: options.typecheckCmd } : {}),\n ...(options.require !== undefined ? { require: options.require } : {}),\n ...(options.maxDiffLines !== undefined ? { maxDiffLines: options.maxDiffLines } : {}),\n ...(options.forbiddenPaths !== undefined ? { forbiddenPaths: options.forbiddenPaths } : {}),\n ...(options.winnerStrategy !== undefined ? { winnerStrategy: options.winnerStrategy } : {}),\n ...(options.runGit ? { runGit: options.runGit } : {}),\n ...(options.runHarness ? { runHarness: options.runHarness } : {}),\n ...(options.runCommand ? { runCommand: options.runCommand } : {}),\n })\n // The persona's only role here is to carry the fanout shape onto the Supervisor; each item's\n // executor is BYO (the gated worktree-CLI leaf), so the registry only needs to pass BYO through.\n const persona = definePersona<WorktreePatchArtifact>({\n name: 'worktree-coder',\n root: { profile: options.rootProfile, harness: null },\n directive: 'deliver a minimal validated patch on a fresh worktree',\n context: { role: 'coder' },\n executors: { registry: createExecutorRegistry() },\n })\n return async (signal) => {\n const result = await runPersonified<string, WorktreePatchArtifact>({\n persona,\n shape,\n task: options.taskPrompt,\n budget: options.budget,\n signal,\n })\n if (result.kind !== 'winner' || result.out.kind !== 'done') {\n const blockers =\n result.kind === 'winner' && result.out.kind === 'blocked'\n ? result.out.blockers.join('; ')\n : `supervisor settled ${result.kind}`\n throw new Error(`worktreeLoopRunner: no delivered patch (${blockers})`)\n }\n return result.out.deliverable\n }\n}\n\n/** @experimental A fact rejected at the KB gate — surfaced, never dropped. */\nexport interface VetoedFact {\n candidate: FactCandidate\n vetoedBy?: string\n reason?: string\n}\n\n/** @experimental */\ninterface ResearchLoopResult {\n /** Facts that passed the fail-closed gate — safe to write to the KB. */\n accepted: FactCandidate[]\n /** Facts the gate vetoed in the final round — escalate, do not silently drop. */\n vetoed: VetoedFact[]\n /** Research rounds actually run. */\n rounds: number\n}\n\n/** @experimental Options for the default `research` runner. */\ninterface ResearchLoopRunnerOptions {\n /**\n * The research engine (the consumer's web/doc searcher + extractor). Called\n * each round with the prior round's vetoes so it can re-research the gaps.\n * Returns fact candidates carrying their grounding (`verbatimPassage` +\n * `sourceText`).\n */\n research: (round: number, vetoed: VetoedFact[]) => Promise<FactCandidate[]>\n /** Gate config (extra judges, self-artifact kinds, …). The floor is always on. */\n gate?: CreateKbGateOptions\n /** Max research rounds (correct-on-veto remediation). Default 1. */\n maxRounds?: number\n}\n\n/**\n * `research` mode — research-in-a-loop with valid-only KB growth.\n *\n * Each round: research → gate every candidate (fail-closed; passage MUST be in\n * the source) → accept the clean ones → re-research the vetoed ones next round,\n * up to `maxRounds`. Vetoed facts in the final round are RETURNED (escalate,\n * never silently dropped) so the caller audits vs retries.\n *\n * @experimental\n */\nexport function researchLoopRunner(\n o: ResearchLoopRunnerOptions,\n): DelegatedLoopRunner<ResearchLoopResult> {\n const gate = createKbGate(o.gate)\n const maxRounds = Math.max(1, Math.trunc(o.maxRounds ?? 1))\n return async (signal) => {\n const accepted: FactCandidate[] = []\n let vetoed: VetoedFact[] = []\n let rounds = 0\n for (let round = 0; round < maxRounds; round += 1) {\n if (signal.aborted) break\n rounds += 1\n const candidates = await o.research(round, vetoed)\n if (candidates.length === 0) break\n vetoed = []\n for (const c of candidates) {\n const v = await gate(c)\n if (v.accepted) accepted.push(c)\n else vetoed.push({ candidate: c, vetoedBy: v.vetoedBy, reason: v.reason })\n }\n if (vetoed.length === 0) break\n }\n return { accepted, vetoed, rounds }\n }\n}\n\n/**\n * `audit` mode — analyst loop over captured trace/run data.\n *\n * @experimental\n */\nexport function auditLoopRunner<TProposal = unknown, TEdit = unknown>(\n options: RunAnalystLoopOpts,\n): DelegatedLoopRunner<RunAnalystLoopResult<TProposal, TEdit>> {\n return async () => runAnalystLoop<TProposal, TEdit>(options)\n}\n"],"mappings":";;;;;AAyCA,MAAa,uBAAuB;CAAC;CAAQ;CAAU;CAAY;CAAS;AAAc;;AAM1F,SAAgB,oBAAoB,OAA4C;CAC9E,OAAO,OAAO,UAAU,YAAa,qBAA2C,SAAS,KAAK;AAChG;;;;;;;;;;AAoCA,eAAsB,iBACpB,MACA,UACA,UAAmC,CAAC,GACH;CACjC,MAAM,SAAS,SAAS;CACxB,IAAI,CAAC,QACH,MAAM,IAAI,YACR,oDAAoD,KAAK,iBACvD,OAAO,KAAK,QAAQ,CAAC,CAAC,KAAK,IAAI,KAAK,OACrC,EACH;CAEF,MAAM,MAAM,QAAQ,OAAO,KAAK;CAChC,MAAM,SAAS,QAAQ,UAAU,IAAI,gBAAgB,CAAC,CAAC;CACvD,MAAM,QAAQ,IAAI;CAClB,IAAI;EAEF,OAAO;GAAE;GAAM,IAAI;GAAM,QAAA,MADJ,OAAO,MAAM;GACD,YAAY,IAAI,IAAI;EAAM;CAC7D,SAAS,KAAK;EACZ,OAAO;GACL;GACA,IAAI;GACJ,OAAO,eAAe,QAAQ,IAAI,UAAU,OAAO,GAAG;GACtD,YAAY,IAAI,IAAI;EACtB;CACF;AACF;;;;;;AAoKA,SAAgB,gBACd,SAC6D;CAC7D,OAAO,YAAY,eAAiC,OAAO;AAC7D"}
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as runDelegatedLoop, r as isDelegatedLoopMode, t as DELEGATED_LOOP_MODES } from "./loop-runner-BFDFst3d.js";
2
+ import { i as runDelegatedLoop, r as isDelegatedLoopMode, t as DELEGATED_LOOP_MODES } from "./loop-runner-CE_S4Gun.js";
3
3
  // src/loop-runner-bin.ts
4
4
  /**
5
5
  *
package/dist/mcp/bin.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { Pn as readTraceContextFromEnv, q as coordinationProfileToolPrefix } from "../scope-zYzxBt1q.js";
2
+ import { Pn as readTraceContextFromEnv, q as coordinationProfileToolPrefix } from "../scope-DrU_M6r3.js";
3
3
  import { i as ConfigError } from "../errors-AzSuGI23.js";
4
- import { s as supervisorInstructions } from "../delegate-CkvYXR2m.js";
5
- import { i as FileDelegationStore, r as DelegationTaskQueue, t as createMcpServer } from "../server-BD7YoVmE.js";
4
+ import { s as supervisorInstructions } from "../delegate-DGPuRCKg.js";
5
+ import { i as FileDelegationStore, r as DelegationTaskQueue, t as createMcpServer } from "../server-Br_imyE9.js";
6
6
  // src/mcp/delegate-supervisor-provisioning.ts
7
7
  function trimmed(value) {
8
8
  const v = value?.trim();
package/dist/mcp/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { Ct as environmentReader, Mn as createPropagatingTraceEmitter, Pn as readTraceContextFromEnv, wt as resolveSpawnResourcePaths } from "../scope-zYzxBt1q.js";
1
+ import { Ct as environmentReader, Mn as createPropagatingTraceEmitter, Pn as readTraceContextFromEnv, wt as resolveSpawnResourcePaths } from "../scope-DrU_M6r3.js";
2
2
  import { i as ConfigError, m as ValidationError } from "../errors-AzSuGI23.js";
3
3
  import { J as deleteBoxSafe, at as sleep, ct as throwIfAborted } from "../workspace-streams-8ALHaZzx.js";
4
- import { A as createSandboxForSpec, D as runAgentRounds, Ht as runWorktreeHarness, O as assertBoxlessPromptOptions, Ut as LOCAL_HARNESSES } from "../supervisor-DfBrIdFp.js";
4
+ import { A as createSandboxForSpec, D as runAgentRounds, Ht as runWorktreeHarness, O as assertBoxlessPromptOptions, Ut as LOCAL_HARNESSES } from "../supervisor-B5VVDFGE.js";
5
5
  import { t as assertExecutableAgentProfile } from "../model-policy-C-RGAUW4.js";
6
6
  import { n as createStdioToolServer } from "../tool-server-CZWd_Opp.js";
7
- import { t as createCoordinationTools } from "../coordination-manager-DjfXXHvG.js";
8
- import { h as runCoderChecks, pt as selectValidWinner } from "../runtime-CyZN9kR-.js";
9
- import { a as composeLoopTraceEmitters, i as FileDelegationStore, n as createDelegateHandler, r as DelegationTaskQueue, t as createMcpServer } from "../server-BD7YoVmE.js";
7
+ import { t as createCoordinationTools } from "../coordination-manager-D141UBzE.js";
8
+ import { h as runCoderChecks, pt as selectValidWinner } from "../runtime-S74rNVKC.js";
9
+ import { a as composeLoopTraceEmitters, i as FileDelegationStore, n as createDelegateHandler, r as DelegationTaskQueue, t as createMcpServer } from "../server-Br_imyE9.js";
10
10
  import { agentProfileSchema } from "@tangle-network/agent-interface";
11
11
  import { isRecord } from "@tangle-network/agent-core";
12
12
  import { randomUUID } from "node:crypto";
@@ -1,10 +1,10 @@
1
- import { Er as newExecutionAttemptId, I as startRetainedInteractiveRun, N as readWorkerInteractiveBinding, Sr as finalizeRuntimeOwnedPendingExecutor, Vr as executableAgentProfileSnapshot, _ as supervisorRunDir, _n as destroyInteractiveEnvironment, dn as offerInteractiveControl, fn as prepareInteractiveDelegation, hi as contentAddress, ia as linkAbort, j as interactiveAdmissionSeamKey, ln as retainedCreateMaterial, oa as signalAbortError, un as acceptedInteractiveControl, vn as environmentGone, vr as attestRuntimeOwnedPendingExecutor } from "./scope-zYzxBt1q.js";
1
+ import { Er as newExecutionAttemptId, I as startRetainedInteractiveRun, N as readWorkerInteractiveBinding, Sr as finalizeRuntimeOwnedPendingExecutor, Vr as executableAgentProfileSnapshot, _ as supervisorRunDir, _n as destroyInteractiveEnvironment, dn as offerInteractiveControl, fn as prepareInteractiveDelegation, hi as contentAddress, ia as linkAbort, j as interactiveAdmissionSeamKey, ln as retainedCreateMaterial, oa as signalAbortError, un as acceptedInteractiveControl, vn as environmentGone, vr as attestRuntimeOwnedPendingExecutor } from "./scope-DrU_M6r3.js";
2
2
  import { H as abortError, St as armDeadlineTimer, at as sleep } from "./workspace-streams-8ALHaZzx.js";
3
3
  import { d as detachedSnapshot } from "./jsonl-file-BBP9Dz9w.js";
4
- import { X as createInbox, Z as failPendingAfter, n as createSupervisor, ot as taskToPrompt, p as createRootHandle } from "./supervisor-DfBrIdFp.js";
4
+ import { X as createInbox, Z as failPendingAfter, n as createSupervisor, ot as taskToPrompt, p as createRootHandle } from "./supervisor-B5VVDFGE.js";
5
5
  import { a as concreteProfileModel } from "./model-policy-C-RGAUW4.js";
6
6
  import { a as writeAtomicDurableFile } from "./durable-file-DstVeHcj.js";
7
- import { c as createSteerAcknowledger, f as createFileRunContext, s as createCancelAcknowledger, t as createCoordinationTools } from "./coordination-manager-DjfXXHvG.js";
7
+ import { c as createSteerAcknowledger, f as createFileRunContext, s as createCancelAcknowledger, t as createCoordinationTools } from "./coordination-manager-D141UBzE.js";
8
8
  import { agentInteractiveSessionControlClaimRequestDigest, agentInteractiveSessionPromptRequestDigest, agentInteractiveSessionStopRequestDigest, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest } from "@tangle-network/agent-interface";
9
9
  import { randomUUID } from "node:crypto";
10
10
  import { mkdirSync } from "node:fs";
@@ -1032,4 +1032,4 @@ function writeState(path, state) {
1032
1032
  }
1033
1033
  export { workerFromInteractiveProvider as n, claimRetainedInteractiveControl as r, provisionSupervisor as t };
1034
1034
 
1035
- //# sourceMappingURL=provision-supervisor-kVbZwZdr.js.map
1035
+ //# sourceMappingURL=provision-supervisor-BT5Xcej8.js.map