@tangle-network/agent-runtime 10.0.19 → 10.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/{activation-DLnZJab0.js → activation-5TrUzeFd.js} +2 -2
  3. package/dist/{activation-DLnZJab0.js.map → activation-5TrUzeFd.js.map} +1 -1
  4. package/dist/{activation-BudDVuT6.d.ts → activation-B0arteLE.d.ts} +2 -2
  5. package/dist/agent.d.ts +1 -1
  6. package/dist/agent.js +4 -4
  7. package/dist/{delegate-9b8qGlXp.js → delegate-DnW85VY0.js} +2 -2
  8. package/dist/{delegate-9b8qGlXp.js.map → delegate-DnW85VY0.js.map} +1 -1
  9. package/dist/{driver-control-acknowledgers-b5MsXxR5.js → driver-control-acknowledgers-vgmZqgZ-.js} +8 -8
  10. package/dist/{driver-control-acknowledgers-b5MsXxR5.js.map → driver-control-acknowledgers-vgmZqgZ-.js.map} +1 -1
  11. package/dist/durable-writer-thread.js +4 -4
  12. package/dist/durable.d.ts +1 -1
  13. package/dist/durable.js +13 -14
  14. package/dist/durable.js.map +1 -1
  15. package/dist/{graph--n31XKWJ.js → graph-DHNPE7kw.js} +8 -8
  16. package/dist/{graph--n31XKWJ.js.map → graph-DHNPE7kw.js.map} +1 -1
  17. package/dist/{graph-registry-aMRd94PD.js → graph-registry-DI8o9iCB.js} +1 -1
  18. package/dist/{graph-registry-SgsCxCTZ.js → graph-registry-qyaNDATw.js} +2 -3
  19. package/dist/{graph-registry-SgsCxCTZ.js.map → graph-registry-qyaNDATw.js.map} +1 -1
  20. package/dist/{improve-sIZhpXqE.js → improve-BLFqeD3X.js} +6 -6
  21. package/dist/{improve-sIZhpXqE.js.map → improve-BLFqeD3X.js.map} +1 -1
  22. package/dist/index.d.ts +3 -3
  23. package/dist/index.js +10 -10
  24. package/dist/intelligence.d.ts +2 -2
  25. package/dist/intelligence.js +4 -4
  26. package/dist/{continuation-CDdjAkpk.js → jsonl-file-B2ESMrTh.js} +396 -4
  27. package/dist/jsonl-file-B2ESMrTh.js.map +1 -0
  28. package/dist/kernel.d.ts +1 -1
  29. package/dist/kernel.js +17 -18
  30. package/dist/{loop-runner-Bn7lFuQZ.d.ts → loop-runner-BFC781pC.d.ts} +2 -2
  31. package/dist/{loop-runner-Dt7I2oMa.js → loop-runner-CITvo-q1.js} +2 -2
  32. package/dist/{loop-runner-Dt7I2oMa.js.map → loop-runner-CITvo-q1.js.map} +1 -1
  33. package/dist/loop-runner-bin.d.ts +1 -1
  34. package/dist/loop-runner-bin.js +1 -1
  35. package/dist/mcp/bin.js +3 -3
  36. package/dist/mcp/index.d.ts +1 -1
  37. package/dist/mcp/index.js +6 -6
  38. package/dist/mcp/memory-bin.js +1 -1
  39. package/dist/profiles.d.ts +1 -1
  40. package/dist/{provision-supervisor-DfDAdtqb.js → provision-supervisor-CyUbiMz8.js} +6 -6
  41. package/dist/{provision-supervisor-DfDAdtqb.js.map → provision-supervisor-CyUbiMz8.js.map} +1 -1
  42. package/dist/{result-blob-store-Dke805sV.js → result-blob-store-CJjp44Mz.js} +3 -3
  43. package/dist/{result-blob-store-Dke805sV.js.map → result-blob-store-CJjp44Mz.js.map} +1 -1
  44. package/dist/{run-cancellation-B0SgcidY.js → run-cancellation-BNBmsY3a.js} +2 -2
  45. package/dist/{run-cancellation-B0SgcidY.js.map → run-cancellation-BNBmsY3a.js.map} +1 -1
  46. package/dist/{run-lock-BOg7BaXF.js → run-lock-Dcr79Wql.js} +2 -2
  47. package/dist/{run-lock-BOg7BaXF.js.map → run-lock-Dcr79Wql.js.map} +1 -1
  48. package/dist/{run-reopen-B7TN2aQQ.js → run-reopen-Cr2SHmYa.js} +6 -6
  49. package/dist/{run-reopen-B7TN2aQQ.js.map → run-reopen-Cr2SHmYa.js.map} +1 -1
  50. package/dist/{run-state-BNBUy2uK.js → run-state-AYXAe_lX.js} +7 -7
  51. package/dist/{run-state-BNBUy2uK.js.map → run-state-AYXAe_lX.js.map} +1 -1
  52. package/dist/{runtime-DXeWY00j.js → runtime-D-FpUoQg.js} +19 -20
  53. package/dist/{runtime-DXeWY00j.js.map → runtime-D-FpUoQg.js.map} +1 -1
  54. package/dist/{search-executor-BoQHI2Tz.js → search-executor-BHfb4p6C.js} +4 -4
  55. package/dist/{search-executor-BoQHI2Tz.js.map → search-executor-BHfb4p6C.js.map} +1 -1
  56. package/dist/{server-Xkgobp5y.js → server-CAXzZHVz.js} +4 -4
  57. package/dist/{server-Xkgobp5y.js.map → server-CAXzZHVz.js.map} +1 -1
  58. package/dist/{settle-record-B5OpVDnC.js → settle-record-BlIw2MU1.js} +3 -3
  59. package/dist/{settle-record-B5OpVDnC.js.map → settle-record-BlIw2MU1.js.map} +1 -1
  60. package/dist/{structural-rollout-BSF5tzUm.js → structural-rollout-BVuf5hFl.js} +4 -4
  61. package/dist/{structural-rollout-BSF5tzUm.js.map → structural-rollout-BVuf5hFl.js.map} +1 -1
  62. package/dist/{supervise-Drc1Pj1d.js → supervise-Ci8wiyla.js} +13 -13
  63. package/dist/supervise-Ci8wiyla.js.map +1 -0
  64. package/dist/{supervise-identity-Cz-Hzg9s.js → supervise-identity-CtxWEk1I.js} +3 -3
  65. package/dist/{supervise-identity-Cz-Hzg9s.js.map → supervise-identity-CtxWEk1I.js.map} +1 -1
  66. package/dist/{supervision-discovery-DdRd1lsz.js → supervision-discovery-DKxqbnHf.js} +4 -4
  67. package/dist/{supervision-discovery-DdRd1lsz.js.map → supervision-discovery-DKxqbnHf.js.map} +1 -1
  68. package/dist/{supervisor-CwUD7dsm.js → supervisor-KcnH2hC4.js} +10 -592
  69. package/dist/supervisor-KcnH2hC4.js.map +1 -0
  70. package/dist/{supervisor-accounting-CPDPG8mH.js → supervisor-accounting-DlDUl58C.js} +600 -8
  71. package/dist/supervisor-accounting-DlDUl58C.js.map +1 -0
  72. package/dist/{supervisor-root-contract-Uw2q3nvG.js → supervisor-root-contract-BCbu1A4n.js} +3 -3
  73. package/dist/{supervisor-root-contract-Uw2q3nvG.js.map → supervisor-root-contract-BCbu1A4n.js.map} +1 -1
  74. package/dist/testing.d.ts +1 -1
  75. package/dist/testing.js +11 -11
  76. package/dist/{failure-cause-C96rzF-d.js → tool-server-n4XYpCok.js} +181 -2
  77. package/dist/tool-server-n4XYpCok.js.map +1 -0
  78. package/dist/{top-web-5ThvdyD0.js → top-web-B-sHmI3g.js} +8 -8
  79. package/dist/{top-web-5ThvdyD0.js.map → top-web-B-sHmI3g.js.map} +1 -1
  80. package/dist/tui/bin.js +3 -3
  81. package/dist/tui/index.d.ts +1 -1
  82. package/dist/tui/index.js +2 -2
  83. package/dist/{types-BLhsL4qy.d.ts → types-YXZL7Wxi.d.ts} +5 -3
  84. package/package.json +1 -1
  85. package/dist/continuation-CDdjAkpk.js.map +0 -1
  86. package/dist/failure-cause-C96rzF-d.js.map +0 -1
  87. package/dist/jsonl-file-B8xfYz9M.js +0 -397
  88. package/dist/jsonl-file-B8xfYz9M.js.map +0 -1
  89. package/dist/supervise-Drc1Pj1d.js.map +0 -1
  90. package/dist/supervisor-CwUD7dsm.js.map +0 -1
  91. package/dist/supervisor-accounting-CPDPG8mH.js.map +0 -1
  92. package/dist/tool-server-BhsyVDj2.js +0 -174
  93. package/dist/tool-server-BhsyVDj2.js.map +0 -1
package/dist/tui/bin.js CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
- import { r as cancelRun } from "../run-cancellation-B0SgcidY.js";
3
- import { E as supervisorRunsRoot, M as writeWorkerSteer, h as cancelWorker } from "../supervisor-accounting-CPDPG8mH.js";
4
- import { c as numberValue, f as totalSpend, i as aggregateSnapshot, l as parseSpend, n as runTopWeb, s as loadTopSnapshot, u as parseTime } from "../top-web-5ThvdyD0.js";
2
+ import { r as cancelRun } from "../run-cancellation-BNBmsY3a.js";
3
+ import { E as supervisorRunsRoot, M as writeWorkerSteer, h as cancelWorker } from "../supervisor-accounting-DlDUl58C.js";
4
+ import { c as numberValue, f as totalSpend, i as aggregateSnapshot, l as parseSpend, n as runTopWeb, s as loadTopSnapshot, u as parseTime } from "../top-web-B-sHmI3g.js";
5
5
  import { randomUUID } from "node:crypto";
6
6
  import { resolve } from "node:path";
7
7
  import { hostname, userInfo } from "node:os";
@@ -1,4 +1,4 @@
1
- import { $d as PursuitProjection, E as Budget, Ga as NodeExecutionIdentity, Ka as ProfileMaterializationReceipt, Ra as ExecutionBindingReceipt, Sb as RouteFlowEvent, Xd as PursuitNodeProjection, aa as ResultBlobStore, dC as HarnessTranscriptArtifact, ef as PursuitRunProjection, j as Spend, mC as HarnessTranscriptEvidence, wa as SupervisedResult, zr as provisionSupervisor } from "../types-BLhsL4qy.js";
1
+ import { $d as PursuitProjection, E as Budget, Ga as NodeExecutionIdentity, Ka as ProfileMaterializationReceipt, Ra as ExecutionBindingReceipt, Sb as RouteFlowEvent, Xd as PursuitNodeProjection, aa as ResultBlobStore, dC as HarnessTranscriptArtifact, ef as PursuitRunProjection, j as Spend, mC as HarnessTranscriptEvidence, wa as SupervisedResult, zr as provisionSupervisor } from "../types-YXZL7Wxi.js";
2
2
  import { c as AgentCandidateArtifactPort } from "../workspace-archive-DS9E9tUr.js";
3
3
  type BaselineAuthority = {
4
4
  readonly kind: 'retained-workspace' | 'git-object' | 'git-diff';
package/dist/tui/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as provisionSupervisor } from "../provision-supervisor-DfDAdtqb.js";
2
- import { _ as topAgentMetadata, a as buildSupervisorView, d as topSnapshot, g as readTopAgentInspection, h as readTopAgentHistory, m as harnessSessionRows, o as isSpawnEvent, p as createTopAgentStream, r as serveTopWeb, s as loadTopSnapshot, t as TOP_SNAPSHOT_RECONCILE_MS, v as topAgentWorker } from "../top-web-5ThvdyD0.js";
1
+ import { t as provisionSupervisor } from "../provision-supervisor-CyUbiMz8.js";
2
+ import { _ as topAgentMetadata, a as buildSupervisorView, d as topSnapshot, g as readTopAgentInspection, h as readTopAgentHistory, m as harnessSessionRows, o as isSpawnEvent, p as createTopAgentStream, r as serveTopWeb, s as loadTopSnapshot, t as TOP_SNAPSHOT_RECONCILE_MS, v as topAgentWorker } from "../top-web-B-sHmI3g.js";
3
3
  export { TOP_SNAPSHOT_RECONCILE_MS, createTopAgentStream, harnessSessionRows, isSpawnEvent as isTopJournalEvent, loadTopSnapshot, topSnapshot as projectTopSnapshot, buildSupervisorView as projectTopSupervisor, provisionSupervisor, readTopAgentHistory, readTopAgentInspection, serveTopWeb, topAgentMetadata, topAgentWorker };
@@ -15369,7 +15369,8 @@ type SpawnEvent = {
15369
15369
  /**
15370
15370
  * Runtime stopped reconciling this node's unfinished retained invocation: it failed
15371
15371
  * reconciliation with the same pending cause on consecutive drives, or once when that
15372
- * failure would otherwise have ended the run, so the next drive starts a new invocation
15372
+ * failure would otherwise have ended the run, or the provider refused its create key as
15373
+ * spent (no box exists for it, nor ever will), so the next drive starts a new invocation
15373
15374
  * instead of repeating the refusal. Written only for an invocation with no committed result. No admission or result of the abandoned
15374
15375
  * invocation is accepted afterwards, so an execution that does finish later can never be
15375
15376
  * accepted beside its replacement.
@@ -15386,7 +15387,8 @@ type SpawnEvent = {
15386
15387
  detail: string;
15387
15388
  /**
15388
15389
  * What the provider confirmed about the abandoned execution. `stopped`: the provider
15389
- * stopped it or reported it not live, so nothing of it still runs. `uncertain`: nothing
15390
+ * stopped it or reported it not live, or refused its undispatched create key as spent, so
15391
+ * nothing of it still runs. `uncertain`: nothing
15390
15392
  * could be confirmed; it may have run, may still be running, and its spend is unknown.
15391
15393
  */
15392
15394
  outcome: 'stopped' | 'uncertain';
@@ -19843,4 +19845,4 @@ interface KnowledgeReadinessDecision {
19843
19845
  nonBlockingGapIds: string[];
19844
19846
  }
19845
19847
  export { BlockedToolReport as $, LoopLineageOptions as $C, RetainedRunEffect as $S, FeedbackRating as $_, ExecutorCancellationRequest as $a, DEFAULT_PEER_MAIL_LIMITS as $b, LoopCampaignDispatchOptions as $c, PursuitProjection as $d, IsolatedCheckOutputEvidence as $f, RouterResponseReceipt as $g, Inbox as $h, DesignerToolsEnv as $i, strategyAuthorContract as $l, CoordinationRejectReason as $m, searchPresets as $n, structuralRollout as $o, ReservationRejection as $p, workerFromInteractiveProvider as $r, ResolveSandboxClientOptions as $s, AnalystAuthoring as $t, PersonaExecutors as $u, HarnessUsage as $v, SqlAdapter as $x, SanitizedKnowledgeRequirement as $y, ResourceSpend as A, RetainedHarnessTranscriptDescriptor as AC, AgentEvalError$1 as AS, DelegationResumeContext as A_, Agent as Aa, QuestionEscalationOutcome as Ab, PairedCommandInput as Ac, NextPursuitVersion as Ad, EdgeDeliveryOutcome as Af, WorkerProgress as Ag, McpEventRecord as Ah, graphFromStored as Ai, ArtifactHandle as Al, StopDecision as Am, gitWorkspace as An, CheckExecChannel as Ao, dumbContinuationPassPrompt as Ap, RemoteSupervisorSteerResult as Ar, acquireSandbox as As, CreateSandboxOptions$1 as At, PanelVerdict as Au, ExecutorResultMapping as Av, ToolStepInput as Ax, bestSoFar as Ay, SpawnOpts as B, ExecutorToolCall as BC, ReconnectRetainedRunOptions as BS, DelegateResearchArgs as B_, ExecutorMaterialization as Ba, AuthorizedDownMessage as Bb, McpEndpoint as Bc, SupervisePursuitError as Bd, runGraph as Bf, resolveMcpServerLaunch as Bg, CliSeam as Bh, taskShapeDigest as Bi, sample as Bl, DeliveredOutput as Bm, createRootHandle as Bn, StructuralRolloutResult as Bo, WorkerTraceResolver as Bp, ProfileRegistryDir as Br, startRetainedRunInEnvironment as Bs, makeFinding$1 as Bt, Verify as Bu, sentinelCompletion as Bv, AuthoredAnalystDefinition as Bx, OtelExportConfig as By, RuntimeFailureCause as C, BoundHarnessSession as CC, readRunCancelRequest as CS, createFleetWorkspaceExecutor as C_, RootStreamReceipt as Ca, RouteGate as Cb, CreateScopeAnalystOptions as Cc, assertDeclaredCheck as Cd, GraphCheckNode as Cf, ProviderPlacement as Cg, environmentReader as Ch, GraphRunRecord as Ci, connectStdioMcp as Cl, SupervisorToolInvocationContext as Cm, copyUntrackedIntoClone as Cn, ProfileRichnessThresholds as Co, PromptHandle as Cp, workerInboxFileFromEventDir as Cr, TurnResult as Cs, AgentSessionRef as Ct, FanoutSynthesis as Cu, FileDelegationStoreOptions as Cv, RuntimeRunRow as Cw, EventBus as Cx, renderLeaderboardSvg as Cy, BudgetOverspend as D, HarnessTranscriptReadLimits as DC, contentAddress as DS, runDetachedTurn as D_, ExecutorFactory as Da, EscalateQuestion as Db, createScopeAnalyst as Dc, declaredCheckJudge as Dd, GraphCommandCheck as Df, ExecutorProgress as Dg, createMcpServer as Dh, digestOfGraph as Di, AgenticSurface as Dl, NoProgressForOptions as Dm, Workspace as Dn, profileRichnessFinding as Do, createPromptRegistry as Dp, RemoteSupervisorCancelResult as Dr, createSandboxLineage as Ds, CheckpointRef as Dt, Panel as Du, CheckVerdict as Dv, defaultToolDetectors as Dx, AnytimeTaskCurve as Dy, Budget as E, HarnessTranscriptMetadata as EC, InMemorySpawnJournal as ES, RunDetachedTurnOptions as E_, ExecutorContext as Ea, ChildQuestionInbox as Eb, buildSteerContext as Ec, declaredCheckDigest as Ed, GraphCheckPlacement as Ef, DEFAULT_STALL_AFTER_MS as Eg, McpServerOptions as Eh, StoredGraphInput as Ei, AgenticRunResult as El, AllWorkersStalledOptions as Em, Shell as En, defaultProfileRichnessThresholds as Eo, analyzesFindingsReportPrompt as Ep, RemoteSupervisorAgent as Er, SandboxLineageHandle as Es, AnalystFinding$1 as Et, LoopUntilState as Eu, CheckUnavailableError as Ev, WatchTraceOptions as Ex, AnytimeStrategySummary as Ey, NodeId as F, ProviderWorkspaceCaptureProvenance as FC, NotFoundError as FS, DelegationTaskQueueOptions as F_, UnconfirmedTeardown as Fa, QuestionPolicy as Fb, CanonicalObservedModelParts as Fc, SettledPursuitVersion as Fd, GraphResult as Ff, BridgeSeam as Fg, createDelegateHandler as Fh, lookupGraph as Fi, SurfaceScore as Fl, plateau as Fm, analyzeTrace as Fn, CheckSourceCtx as Fo, SupervisorSpanAttributes as Fp, ProvisionSupervisorConnection as Fr, PrivateCasNamespaceObject as Fs, ResourceRequest$1 as Ft, ScopeWidenGate as Fu, CompletionEvidence as Fv, AnalystKind as Fx, WaterfallSpan as Fy, TreeView as G, Driver as GC, RetainedInteractiveEnvironmentAdmission as GS, DelegationError as G_, NodeExecutionIdentity as Ga, DownMessageDeliveryOutcome as Gb, BenchmarkConfig as Gc, RunReopen as Gd, portableContinuationPolicySchema as Gf, SandboxToolPartState as Gg, RouterToolsSeam as Gh, DispatchReport as Gi, StrategyArtifacts as Gl, CoordinationAuthentication as Gm, createFencedSqlRunContext as Gn, defaultExtractCandidate as Go, RunParkingRecord as Gp, profileRegistry as Gr, startRetainedInteractiveRun as Gs, SurfaceDiff as Gt, WidenSpec as Gu, CodexRolloutStoreReader as Gv, RunLocalHarnessOptions as Gx, createOtelExporter as Gy, SpawnRejection as H, UsageEvent as HC, RecoverRetainedRunOptions as HS, DelegateUiAuditArgs as H_, MaterializedExecutionIdentity as Ha, ContinuityMode as Hb, createMcpEnvironment as Hc, SupervisedPursuitResult as Hd, defaultEdgeTraversalCap as Hf, secretEnvOfMcpServer as Hg, CliWorktreeSeam as Hh, graphFileNeedSchema as Hi, AuthoredStrategy as Hl, FinalizerSettled as Hm, validateStoredGraph as Hn, canDisplace as Ho, ParkedRun as Hp, bestProfileFor as Hr, claimRetainedInteractiveControl as Hs, createVerifierEnvironment as Ht, Widen as Hu, CodexForkBoundary as Hv, DefinedAnalystRecord as Hx, OtelExporter as Hy, NodeSnapshot as I, ProviderWorkspaceCaptureReceipt as IC, ValidationError as IS, SubmitInput as I_, WidenGate as Ia, QuestionRecord as Ib, SnapshotKind as Ic, VersionJudge as Id, GraphTopology as If, KeyProvider as Ig, createExecutorRegistry as Ih, pickBestGraph as Ii, breadthStrategy as Il, ReentryContinuity as Im, WorkerToolTraceArtifact as In, RepairStop as Io, SupervisorSpanOptions as Ip, ProvisionSupervisorRequest as Ir, PrivateCasNamespaceRetirement as Is, SandboxEvent$1 as It, SteerContext as Iu, CompletionPolicy as Iv, AnalystLensOutput as Ix, createWaterfallCollector as Iy, DriverAttemptRecord as J, LoopDecisionPayload as JC, RetainedRunAdmission as JS, DelegationHistoryEntry as J_, UnknownMaterializationReason as Ja, MapItemFailurePolicy as Jb, BenchmarkStrategySummary as Jc, PursuitNodeCost as Jd, IsolatedCheckCommandEvidence as Jf, mapSandboxToolEvent as Jg, SandboxSteeringOptions as Jh, RollingDispatchOptions as Ji, adaptiveRefine as Jl, CoordinationPublicAddress as Jm, SearchSpec as Jn, modelAuthoredChecks as Jo, BudgetPoolRestore as Jp, profileBridgeWireModel as Jr, RetainedInteractiveAdmissionHook as Js, SurfaceReader as Jt, DefinePersonaInput as Ju, CodexStoreDelta as Jv, LocalHarness as Jx, RuntimeStreamEventCollector as Jy, EvidencePendingEvent as K, ExecCtx as KC, RetainedInteractiveIntentAdmission as KS, DelegationFeedbackSnapshot as K_, ProfileMaterializationReceipt as Ka, DownMessageEvent as Kb, BenchmarkLift as Kc, PursuitObserverDelivery as Kd, IsolatedCheckBox as Kf, createSandboxToolPartState as Kg, SandboxSeam as Kh, DispatchStopReason as Ki, StrategyCtx as Kl, CoordinationControlAccess as Km, CompiledSearchSpec as Kn, defaultStructuralRolloutPolicy as Ko, readRunParking as Kp, profileRunsForName as Kr, ReconnectRetainedInteractiveRunOptions as Ks, SurfaceReadBox as Kt, WinnerStrategy as Ku, CodexRolloutStoreRef as Kv, runLocalHarness as Kx, loopEventToOtelSpan as Ky, NodeStatus as L, ProviderWorkspaceCaptureResult as LC, NativeContextContinuationExecution as LS, SubmitOutput as L_, AgentExecutionRef as La, QuestionUrgency as Lb, canonicalObservedModelParts as Lc, VersionVerdict as Ld, RunGraphOptions as Lf, ResolvedMcpServerLaunch as Lg, ExecutorConfig as Lh, recordGraphRun as Li, depthStrategy as Ll, ReentryTaskInput as Lm, parseWorkerToolTraceArtifact as Ln, StructuralRolloutConfig as Lo, SupervisorSpanOutcome as Lp, ProvisionedSupervisor as Lr, reconnectRetainedRun as Ls, SandboxInstance$1 as Lt, TrajectoryNode as Lu, CompletionVerdict as Lv, AnalystRegistry$1 as Lx, RunAgentRoundsOptions as Ly, SpendChannel as M, resolveHarnessTranscriptCapture as MC, BackendTransportError as MS, DelegationResumeTick as M_, ResumedKeyState as Ma, QuestionEscalationTarget as Mb, PairedCommandOptions as Mc, PursuitVersionChain as Md, GraphEdge as Mf, readWorkerProgress as Mg, DelegateError as Mh, graphRunsFor as Mi, RunAgenticOptions as Ml, allWorkersStalled as Mm, localShell as Mn, CheckRunContext as Mo, kernelPromptRegistry as Mp, RemoteWorkerEvents as Mr, S3PrivateCasStoreOptions as Ms, ExecResult as Mt, RenderCorpusToInstructionsOptions as Mu, mapExecutorResult as Mv, createPushTraceSource as Mx, renderAnytimeTable as My, SpendGap as N, retainHarnessTranscript as NC, ConfigError as NS, DelegationRunContext as N_, ResumedWork as Na, QuestionLevel as Nb, measurePairedCommands as Nc, PursuitVersionStop as Nd, GraphEdgeCapError as Nf, BridgeHarnessStore as Ng, DelegateHandlerOptions as Nh, listGraphRuns as Ni, StrategyMessage as Nl, anyOf as Nm, runInWorkspace as Nn, CheckRunner as No, naiveContinuationPrompt as Np, connectRemoteSupervisor as Nr, createS3PrivateCasStore as Ns, ForkRequest as Nt, ScopeAnalyst as Nu, verdictFromJudgeScore as Nv, AnalystAssignmentRecord as Nx, WaterfallCollector as Ny, BudgetViolation as O, HarnessTranscriptReadOptions as OC, Redactor as OS, DelegationArgs as O_, ExecutorRegistry as Oa, Question as Ob, registryScopeAnalyst as Oc, readDeclaredCheck as Od, GraphFromStoredOptions as Of, ScopeProgressInput as Og, EventSubscription as Oh, graphCorpusSummary as Oi, AgenticTask as Ol, PlateauOptions as Om, WorkspaceCommit as On, supervisorInstructions as Oo, delegatesWorkerBriefPrompt as Op, RemoteSupervisorControl as Or, SandboxEvidenceReceipt as Os, CheckpointRequest as Ot, PanelJudge as Ou, CompletionCheckContext as Ov, watchTrace as Ox, anytimeReport as Oy, Handle as P, ProviderWorkspaceAttemptProvenance as PC, JudgeError as PS, DelegationTaskQueue as P_, Scope as Pa, QuestionOption as Pb, observationFromRegistry as Pc, PursuitVersions as Pd, GraphNode as Pf, BridgeModelCredential as Pg, DelegateResult as Ph, loadGraph as Pi, StrategyShotResult as Pl, noProgressFor as Pm, TrajectoryAnalysis as Pn, CheckSource as Po, promptHandle as Pp, connectRemoteSupervisorControl as Pr, PrivateCasNamespaceInventory as Ps, PlacementInfo as Pt, ScopeAnalyzeInput as Pu, CompletionAnalyst as Pv, AnalystFindingEvent as Px, WaterfallReport as Py, DriverRepromptRefusal as Q, LoopIterationStartedPayload as QC, RetainedRunDispatchedAdmission as QS, DelegationStatusResult as Q_, ExecutorCancellation as Qa, AUTHORITY_MARKERS as Qb, runBenchmark as Qc, PursuitNodeUsage as Qd, IsolatedCheckOutputDeclaration as Qf, sumSandboxUsage as Qg, AuthorityInboxMessage as Qh, DesignerRunGraphEnv as Qi, sampleThenRefine as Ql, CoordinationHttpAudit as Qm, compileSearchSpec as Qn, selectBestIndex as Qo, ReservationHolder as Qp, InteractiveWorkerResult as Qr, StartRetainedInteractiveRunOptions as Qs, harvestSurfaceDiffs as Qt, PersonaContext as Qu, readCodexRolloutSession as Qv, openSqlRunStore as Qx, SanitizedKnowledgeReadinessReport as Qy, RetainedExecutionState as R, ProviderWorkspaceEntryMetadata as RC, NativeContextContinuationHandle as RS, DelegateCodeArgs as R_, ExecutionBindingReceipt as Ra, questionEscalationTargets as Rb, observedModelHasSnapshot as Rc, assertPursuitVersions as Rd, RunGraphTestOptions as Rf, envKeyProvider as Rg, createExecutor as Rh, recordStoredGraphRun as Ri, refine as Rl, UNPROVEN_CONTINUITY as Rm, DEFAULT_MAX_DEPTH as Rn, StructuralRolloutMessage as Ro, SupervisorSpanRecorder as Rp, SupervisorCleanupReceipt as Rr, recoverRetainedRun as Rs, WorkspaceRequest as Rt, TrajectoryReport as Ru, completionAuthorizes as Rv, AnalystRunContext as Rx, runAgentRounds as Ry, RuntimeStreamEvent as S, persistHarnessTranscript as SC, cancelRunAsync as SS, SiblingSandboxExecutorOptions as S_, RootProviderModelEvidence as Sa, RouteFlowEvent as Sb, widen as Sc, DeclaredCheckStateCapture as Sd, SuperviseRegistryTable as Sf, UnavailablePausePolicy as Sg, SpawnResourceReader as Sh, GraphRunQuery as Si, StdioMcpServerSpec as Sl, SupervisorToolDescriptor as Sm, UntrackedCopyStats as Sn, ProfileRichness as So, withRunContext as Sp, supervisorRunsRoot as Sr, SandboxRunAbortError as Ss, AgentSession as St, FanoutOptions as Su, FileDelegationStore as Sv, RuntimeRunPersistenceAdapter as Sw, BusStats as Sx, renderLeaderboardMarkdown as Sy, RuntimeFailureOwner as T, HarnessFileBinding as TC, InMemoryResultBlobStore as TS, DetachedTurn as T_, AgentSpec as Ta, RouteWhen as Tb, assertTraceDerivedFindings as Tc, declaredCheckDeliverable as Td, GraphCheckOutput as Tf, ActivityNote as Tg, McpServer as Th, StoredGraph as Ti, AgenticOptions as Tl, SupervisorProfile as Tm, GitWorkspaceOptions as Tn, assessAuthoredProfile as To, RegisteredPrompt as Tp, writeWorkerSteerAsync as Tr, SandboxLineage as Ts, AgentTurnResult$2 as Tt, LoopUntilSpec as Tu, CoderTask as Tv, startRuntimeRun as Tw, createEventBus as Tx, AnytimeReport as Ty, SubtreeResult as U, AgentRunSpec as UC, RecoverRetainedRunResult as US, DelegateUiAuditConfig as U_, MaterializedModelIdentity as Ua, DownMessageAuthorizationInput as Ub, sanitizeMcpToolSchema as Uc, superviseGraphPursuit as Ud, GraphRouteError as Uf, SandboxLeafOut as Ug, ProviderSeam as Uh, graphFileSchema as Ui, ShotSpec as Ul, SupervisorFinalizer as Um, FencedSqlRunContext as Un, compareCheckOutcomes as Uo, RunParkedError as Up, loadProfile as Ur, reconnectRetainedInteractiveRun as Us, BoxSurfaceReaderOptions as Ut, WidenDecision as Uu, CodexRolloutIdentity as Uv, CodexExecutionEvidence as Ux, OtelSpan as Uy, SpawnPrior as V, TokenUsageProvenance as VC, RecoverRetainedRunIntentOptions as VS, DelegateResearchConfig as V_, ExecutorNodeContext as Va, ContinuationInstruction as Vb, McpEnvironmentOptions as Vc, SupervisePursuitOptions as Vd, runGraphWithTestBrain as Vf, resolveSecretEnv as Vg, CliWorktreeBridgeSeam as Vh, GraphTriggerBinding as Vi, AuthorStrategyOptions as Vl, FinalizeContext as Vm, ValidateStoredGraphOptions as Vn, VisibleCheck as Vo, DeadlineCheckIn as Vp, ProfileRunRecord as Vr, ClaimRetainedInteractiveControlOptions as Vs, VerifierEnvironmentOptions as Vt, VerifySpec as Vu, stopSentinel as Vv, AuthoredAnalystLimits as Vx, OtelExportStats as Vy, SubtreeSummary as W, DefaultVerdict$2 as WC, RetainedInteractiveAdmission as WS, DelegateUiAuditRoute as W_, MaterializedResources as Wa, DownMessageDeliveryAttempt as Wb, BenchmarkCell as Wc, supervisePursuit as Wd, PortableContinuationPolicy as Wf, SandboxOutputMarker as Wg, RouterSeam as Wh, graphRouteWhenSchema as Wi, Strategy as Wl, bestDelivered as Wm, SqlRunContextOptions as Wn, composeCheckSources as Wo, RunParkingPolicy as Wp, pickBestProfile as Wr, recoverRetainedInteractiveRun as Ws, HarvestSurfaceDiffsOptions as Wt, WidenLineage as Wu, CodexRolloutSession as Wv, LocalHarnessResult as Wx, buildLoopOtelSpans as Wy, DriverContinuationRecord as X, LoopIterationDispatchPayload as XC, RetainedRunCancelOptions as XS, DelegationResultPayload as X_, Executor as Xa, MapSpawnMarker as Xb, Environment as Xc, PursuitNodeProjection as Xd, IsolatedCheckResult as Xf, SandboxUsageLedger as Xg, SteerableSandboxSession as Xh, queueOf as Xi, authorStrategy as Xl, CoordinationTransportOptions as Xm, SearchSpecOwnedOption as Xn, resolveEntrySymbol as Xo, LeakedReservation as Xp, InteractiveWorkerKeyInput as Xr, RetainedInteractiveRunHandle as Xs, boxSurfaceReader as Xt, Outcome as Xu, createCodexRolloutStoreReader as Xv, CodexExecutionPolicy as Xx, RuntimeStreamEventSummary as Xy, DriverAttemptStop as Y, LoopEndedPayload as YC, RetainedRunAdmissionHook as YS, DelegationProgress as Y_, EnvironmentTeardownReceipt as Ya, MapOnSettleRoute as Yb, BenchmarkTaskRow as Yc, PursuitNodePlatform as Yd, IsolatedCheckOptions as Yf, SandboxServedBackend as Yg, SteerableSandboxArgs as Yh, freeSlots as Yi, assertStrategyContract as Yl, CoordinationReadAccess as Ym, SearchSpecInputs as Yn, officialChecksFromMeta as Yo, BudgetReadout as Yp, InteractiveWorkerEnvironment as Yr, RetainedInteractiveEnvironmentInput as Ys, WatchedSurface as Yt, LoopShape as Yu, addHarnessUsage as Yv, CodexTokenUsage as Yx, RuntimeStreamEventSink as Yy, DriverFailureClass as Z, LoopIterationEndedPayload as ZC, RetainedRunCancellation as ZS, DelegationStatus as Z_, ExecutorAccounting as Za, MapTraversalEvent as Zb, printBenchmarkReport as Zc, PursuitNodeTiming as Zd, runIsolatedCheck as Zf, extractLlmCallEvent as Zg, createSteerableSandboxSession as Zh, rollingDispatch as Zi, defineStrategy as Zl, serveCoordinationMcp as Zm, assertSearchSpec as Zn, sandboxCheckRunner as Zo, ReservationFloor as Zp, InteractiveWorkerOptions as Zr, RetainedInteractiveStartMaterial as Zs, fsSurfaceReader as Zt, Persona as Zu, harnessUsageIsEmpty as Zv, SqlRunOwnershipError as Zx, RuntimeTelemetryOptions as Zy, RunAgentTaskOptions as _, HarnessTranscriptUnavailableReason as _C, readRunState as _S, UiAuditorDelegate as __, SupervisorOpts as _a, DecideGate as _b, loopUntil as _c, LeaderboardScore as _d, SuperviseOptions as _f, resolveAgentEnvironmentProvider as _g, DriverRetryPolicy as _h, graphWorkspace as _i, LocalMcpMaterialization as _l, ResolveSupervisorTools as _m, closingWorkerNote as _n, ChatWorkerSeamOptions as _o, InMemoryRunContextOptions as _p, readWorkerCancellation as _r, Deliverable as _s, AgentEnvironmentProvider$1 as _t, CorpusFilter as _u, readTraceContextFromEnv as _v, Validator as _w, McpToolAnnotations as _x, ProfileKeyOf as _y, AgentKnowledgeProvider as a, RetainedRunSnapshot as aC, SpawnForestNode as aS, ToolLoopCompaction as a_, ResultBlobStore as aa, WorktreeCommandResult as ab, PrivateCasOffloadReport as ac, readHarnessTranscriptSessions as ad, ObserverJournal as af, SharedBoxCloseReceipt as ag, ContinuationAppend as ah, setGraphStrings as ai, loopDispatch as al, RootStreamRecord as am, WorktreeCliExecutorOptions as an, Runtime as ao, IsolatedCheckCpuIdentity as ap, TRACE_SUMMARY_SCHEMA as ar, StreamAgentTurnOptions as as, MakeWorkerAgent as at, harvestCorpus as au, UiFindingScreenshot as av, LoopTeardownFailedPayload as aw, PeerMailReadout as ax, CodeModeToolset as ay, RuntimeSession as b, captureHarnessTranscript as bC, RunCancellation as bS, FleetHandle as b_, ProviderModelAttemptEvidence as ba, JsonScalar as bb, selectValidWinner as bc, DeclaredCheck as bd, createWorkerSlots as bf, ProviderPromptOptions as bg, SpawnResourceBytes as bh, GraphCorpusSummary as bi, McpSpawnFault as bl, SupervisorNodeContext as bm, spendFromUsageEvents as bn, createChatSessionStore as bo, createFileRunContext as bp, safeWorkerFile as br, OpenSandboxRunPromptOptions as bs, AgentEnvironmentSummary as bt, EqualKOnCostOptions as bu, DelegationPersistenceError as bv, RuntimeRunHandle as bw, BusEvent as bx, pairwiseSignificance as by, AgentTaskContext as c, StartRetainedRunInEnvironmentOptions as cC, FileResultBlobStore as cS, ToolLoopToolCall as c_, TraceRootReceipt as ca, GitRunner as cb, equalKOnCost as cc, RetainedFileOutput as cd, observerRecordDigest as cf, SharedBoxStats as cg, ContinuationPanelInput as ch, GraphSessionObservationOptions as ci, TERMINAL_DECISIONS as cl, SettledUsage as cm, AttachWorkerOptions as cn, WorkerTraceEvidence as co, IsolatedCheckCpuSessionResult as cp, RunTraceSources as cr, EvolutionAuthor as cs, SpawnPreflight as ct, ObservationError as cu, KnowledgeItem as cv, LoopTraceEvent as cw, PeerMailbox as cx, runCodeMode as cy, AgentTaskStatus as d, HarnessTranscriptArtifact as dC, SpawnJournalReadOptions as dS, CoderDelegate as d_, RootHandle as da, EventAcknowledgement as db, runPersonified as dc, LeaderboardBenchTask as dd, supervise as df, ROUTER_CLIENT_HEADER as dg, ContinuationProfile as dh, graphFlowSpawnProfile as di, inlineSandboxClient as dl, CoordinationToolFace as dm, attachWorker as dn, WorkerEventEntry as do, SeatSelection as dp, WorkerSteerAcknowledgement as dr, StrategyEvolutionConfig as ds, SpawnRefusalCause as dt, defaultAnalystInstruction as du, ResearchSource as dv, MountRecorder as dw, createPeerMailbox as dx, Interval as dy, RetainedRunEnvironmentAdmission as eC, materializeTreeView as eS, RouterTransportConfig as e_, GraphDesignerExtraTools as ea, createRuntimeEventCollector as eb, resolveSandboxClient as ec, RunPersonified as ed, PursuitRunProjection as ef, InboxLease as eg, CoordinationDeliveryEvidence as eh, InPlaceCliExecutorOptions as ei, LoopDispatchOptions as el, ReservationShortfall as em, analystsFromRegistry as en, ExecutorResult as eo, IsolatedCheckOutputFailure as ep, searchSpecDigest as er, visibleCheckScore as es, CoordinationStats as et, strategyAuthorSystemPrompt as eu, FeedbackRefersTo as ev, LoopPlanDescription as ew, PEER_MAIL_WIRE_KEY as ex, decodeHarnessUsage as ey, BackendErrorDetail as f, HarnessTranscriptBinding as fC, SpawnJournalReadRecord as fS, CoderReview as f_, RootSegment as fa, LeadMessage as fb, FileCorpus as fc, LeaderboardBenchmarkAdapter as fd, superviseFleetCapabilities as ff, sharedBoxRefusal as fg, PanelFinding as fh, GraphFileNeed as fi, InProcessOnPrompt as fl, CoordinationVerbs as fm, readWorkerInteractiveBinding as fn, WorkerEventPage as fo, SeatSelectionInput as fp, WorkerSteerRequest as fr, StrategyTournament as fs, SuperviseProfileEntry as ft, observe as fu, ResearchTask as fv, OutputAdapter as fw, isPeerMailEnvelope as fx, Leaderboard as fy, OpenAIChatToolChoice as g, HarnessTranscriptUnavailable as gC, RunState as gS, DetachedWinnerSelection as g_, Supervisor as ga, WorkerWatchOptions as gb, flatWidenGate as gc, LeaderboardScenario as gd, AuthorizedSpawnContext as gf, createAgentEnvironmentProviderRegistry as gg, DriverReentry as gh, LoadedGraphFile as gi, HttpMcpServerSpec as gl, ResolveDriveHarness as gm, WorkerEvidenceInput as gn, ChatTransportTool as go, InMemoryRunContext as gp, legacySupervisorRunDir as gr, strategyTournament as gs, AgentEnvironmentEvent$1 as gt, Corpus as gu, createPropagatingTraceEmitter as gv, ValidationCtx as gw, JsonRpcResponse as gx, PairwiseVerdict as gy, OpenAIChatTool as h, HarnessTranscriptFile as hC, FileSpawnJournal as hS, DetachedSessionDelegateOptions as h_, SteerableRootHandle as ha, ToolOutcomeEvent as hb, fanout as hc, LeaderboardRunContext as hd, AuthorizedSpawn as hf, AgentEnvironmentProviderRegistry as hg, DriverContractState as hh, LoadGraphFileOptions as hi, inProcessSandboxClient as hl, ObserveSupervisorNodeEvent as hm, VERIFY_TAIL_CHARS as hn, ChatTransportExecutorOptions as ho, subscriptionUsageLimitSignal as hp, fileEscalateQuestion as hr, runStrategyEvolution as hs, AgentEnvironmentCapabilities$1 as ht, CombinatorShape as hu, TraceContext as hv, SelectionReceipt as hw, JsonRpcMessage as hx, PairwiseOptions as hy, AgentExecutionBackend as i, RetainedRunReplayPoint as iC, SpawnForestMissingTree as iS, ToolLoopChat as i_, delegate as ia, WorktreeCheckRunner as ib, PrivateCasDurableStore as ic, ShapeRegistry as id, FileObserverJournal as if, DEFAULT_SHARED_BOX_WORKERS as ig, CheckRead as ih, setGraphProfile as ii, loopCampaignDispatch as il, createBudgetPool as im, worktreeFanout as in, HeldRelease as io, IsolatedCheckCpuEvidence as ip, TRACE_ROOT_SCHEMA as ir, CollectedAgentTurn as is, GraphSubtasks as it, HarvestReport as iu, UiFinding as iv, LoopStartedPayload as iw, PeerMailOutcome as ix, CodeModeToolsOptions as iy, Spend as j, readBoundHarnessSessions$1 as jC, AgentEvalErrorCode as jS, DelegationResumeDriver as j_, ReenteredWorkers as ja, QuestionEscalationRecord as jb, PairedCommandMeasurement as jc, NextPursuitVersionInput as jd, EdgeTraversal as jf, createActivityLog as jg, McpEventSource as jh, graphRegistry as ji, CorpusReadbackOptions as jl, StopRule as jm, jjWorkspace as jn, CheckOutcome as jo, formatPromptHandle as jp, RemoteSupervisorTree as jr, S3PrivateCasStore as js, ExecRequest as jt, PipelineStage as ju, gateOnDeliverable as jv, TraceSource as jx, plateauLength as jy, ResourceLimit as k, RetainedHarnessTranscriptCapture as kC, defaultRedactor as kS, DelegationRecord as k_, SpawnModelSubstitution as ka, QuestionDecision as kb, PairedCommandCall as kc, JudgedPursuitVersion as kd, AgentGraph as kf, TeamProgress as kg, EventSubscriptionStore as kh, graphDigest as ki, AgenticTool as kl, ProgressView as km, WorkspaceRun as kn, RunCancellationReason as ko, dumbContinuationFailPrompt as kp, RemoteSupervisorReader as kr, AcquireOptions as ks, CreateAgentEnvironmentInput$1 as kt, PanelSpec as ku, DeliverableSpec as kv, SessionMessageLike as kx, areaUnderCurve as ky, AgentTaskRunResult as l, StartRetainedRunOptions as lC, replaySpawnTree as lS, FeedbackEvent as l_, WorkspaceCheckpointMarker as la, AwaitWakeInput as lb, trajectoryReport as lc, DefinedLeaderboard as ld, PursuitFork as lf, SharedWorkerIdentity as lg, ContinuationPanelResult as lh, ObservedSessionFacts as li, TerminalDecision as ll, supervisorAgent as lm, WorkerInteractiveBinding as ln, WorkerTraceUnavailableReason as lo, createIsolatedCheckCpuSession as lp, runToolSpans as lr, EvolutionReport as ls, SpawnPreflightContext as lt, ObserveInput as lu, KnowledgeUpdate as lv, LoopWinner as lw, PeerMailboxOptions as lx, AxisScoresOf as ly, OpenAIChatResponseFormat as m, HarnessTranscriptEvidence as mC, readSpawnJournal as mS, DelegateRunCtx as m_, RootSignal as ma, ManagerWake as mb, renderCorpusToInstructions as mc, LeaderboardIterationInfo as md, workerFromBackend as mf, AgentEnvironmentProviderRef as mg, admitContinuationPolicy as mh, GraphFileSeat as mi, InProcessSandboxClientOptions as ml, DriveHarnessOwnerContext as mm, NOTE_MAX_CHARS as mn, ChatSessionStore as mo, SelectSeat as mp, cancelWorker as mr, TournamentRow as ms, AgentEnvironment$1 as mt, AssertTraceDerivedFindings as mu, researcherProfile as mv, SandboxClient as mw, peerMailVerbNames as mx, LeaderboardRow as my, AgentBackendContext as n, RetainedRunHandle as nC, SpawnForestEvent as nS, ToolSpec as n_, DelegateOptions as na, sanitizeKnowledgeReadinessReport as nb, profileOptimizerModelCall as nc, ShapeBudget as nd, PursuitStatus as nf, PeerInboxMessage as ng, FileCoordinationLog as nh, readGraphProfile as ni, SuperviseDispatchOptions as nl, ReservationTicket as nm, AuthoredHarness as nn, HeldEnvironment as no, validateIsolatedCheckOutputs as np, createScope as nr, AgentTurnInput$1 as ns, CoordinationToolsOptions as nt, HarvestError as nu, UiAuditLensFilter as nv, LoopResult as nw, PeerMailEvent as nx, CodeModeTool as ny, AgentRuntimeEvent as o, RetainedRunStartMaterial as oC, SpawnForestTree as oS, ToolLoopCompactionOptions as o_, SpawnEvent as oa, WorktreeHarnessResult as ob, PrivateCasOptions as oc, ProviderAsSandboxClientOptions as od, ObserverRecord as of, SharedBoxPlacement as og, ContinuationEntry as oh, DeepReadonly as oi, superviseDispatch as ol, readRootStream as om, WorktreePatchArtifact as on, WorkerInteractiveSession as oo, IsolatedCheckCpuResources as op, TraceRootArtifact as or, collectAgentTurn as os, PeerAuditAccess as ot, Observation as ou, UiFindingSeverity as ov, LoopTokenUsage as ow, PeerMailRefusal as ox, RunCodeModeOptions as oy, KnowledgeReadinessDecision as p, HarnessTranscriptCapture as pC, SpawnJournalReadResult as pS, CoderReviewer as p_, RootSegmentEntry as pa, ManagerReentryState as pb, InMemoryCorpus as pc, LeaderboardFlagSpec as pd, superviseWithTestBrain as pf, sharedWorkerClientName as pg, VerdictSummary as ph, GraphFileResolutionError as pi, InProcessPromptCtx as pl, DriveHarness as pm, EVIDENCE_MAX_CHARS as pn, ChatCompletionsTransport as po, SeatStage as pp, WriteWorkerSteerOptions as pr, TournamentCell as ps, WorkerSpawnContext as pt, renderReport as pu, ResearcherProfileOptions as pv, RunProvenance as pw, peerMailTools as px, LeaderboardOptions as py, RetainedPendingCause as q, Iteration as qC, RetainedInteractiveStartedAdmission as qS, DelegationHistoryArgs as q_, RootMaterialization as qa, WorkerResumeContext as qb, BenchmarkReport as qc, PursuitCostProvenance as qd, IsolatedCheckBoxEvidence as qf, mapSandboxEvent as qg, DEFAULT_SANDBOX_STEERING_MAX_TURNS as qh, DispatchUnit as qi, StrategyResult as ql, CoordinationMcpHandle as qm, SEARCH_SPEC_CORRELATION_KEY as qn, filterAuthoredAsserts as qo, BudgetPool as qp, recordProfileRun as qr, RecoverRetainedInteractiveRunOptions as qs, SurfaceReadOutcome as qt, DefinePersona as qu, CodexRolloutTurn as qv, LOCAL_HARNESSES as qx, RuntimeEventCollector as qy, AgentBackendInput as r, RetainedRunIntentAdmission as rC, SpawnForestInDoubtNode as rS, ToolLoopCallContext as r_, defaultDelegateBudget as ra, InPlaceHarnessResult as rb, PrivateCasArtifactPort as rc, ShapeContext as rd, projectPursuit as rf, DEFAULT_SHARED_BOX_RESOURCES as rg, PriorCoordination as rh, readGraphStrings as ri, SuperviseOptionsForDispatch as rl, ReserveOptions as rm, WorktreeFanoutOptions as rn, HeldForContinuation as ro, IsolatedCheckCpuCounters as rp, ScopeArgs as rr, AgentTurnUsage as rs, GraphSubtaskPreparation as rt, HarvestFailure as ru, UiAuditorDelegationOutput as rv, LoopSandboxPlacement as rw, PeerMailLimits as rx, CodeModeToolContext as ry, AgentRuntimeEventSink as s, RetainedRunTurnInput as sC, loadSpawnForest as sS, ToolLoopMessageRecord as s_, SpawnJournal as sa, WorktreeProfileMaterializationReceipt as sb, createPrivateCasArtifactPort as sc, providerAsSandboxClient as sd, ObserverRecordKind as sf, SharedBoxPlacementOptions as sg, ContinuationPanel as sh, ReadonlyAgentProfile as si, LocalSandboxClientOptions as sl, readRootStreamReceipt as sm, createWorktreeCliExecutor as sn, WorkerInteractiveUnavailableReason as so, IsolatedCheckCpuSession as sp, TraceSummary as sr, streamAgentTurn as ss, SettledWorker as st, ObservationAnalysis as su, UiLens as sv, LoopTraceEmitter as sw, PeerMailSendInput as sx, createCodeModeTools as sy, AgentAdapter as t, RetainedRunEventOptions as tC, SpawnForest as tS, RouterRouting as t_, graphDesignerExtraTools as ta, createRuntimeStreamEventCollector as tb, profileChatClient as tc, RunPersonifiedOptions as td, PursuitRunTotals as tf, InboxMessage as tg, CoordinationLog as th, createInPlaceCliExecutor as ti, LoopOptionsForDispatch as tl, ReservationStage as tm, failuresAnalyst as tn, ExecutorTeardownWarning as to, IsolatedCheckOutputOptions as tp, settledToIteration as tr, AgentTurnBackend as ts, CoordinationTools as tt, HarvestCorpusOptions as tu, ResearchOutputShape as tv, LoopPlanPayload as tw, PeerMailEnvelope as tx, CodeModeStore as ty, AgentTaskSpec as u, HARNESS_TRANSCRIPT_SETTLE_TIMEOUT_MS as uC, SpawnJournalCursor as uS, FeedbackStore as u_, RecursiveReservationPolicy as ua, CoordinationEvent as ub, definePersona as uc, LeaderboardBenchScore as ud, RUN_FORK_CORRELATION_KEYS as uf, sharedBoxPlacement as ug, ContinuationPolicy as uh, graphFromSessionFacts as ui, defaultSelectWinner as ul, supervisorAgentWithTestBrain as um, WorkerInteractiveProviderSource as un, WorkerEventCursor as uo, SeatSegment as up, WorkerCancellation as ur, EvolutionStrategy as us, SpawnRefusal as ut, ObserveOptions as uu, ResearchOutput as uv, MountManifestEntry as uw, claimsAuthority as ux, GroupOf as uy, RunAgentTaskStreamOptions as v, ReadableEnvironment as vC, CancelRunOptions as vS, detachedSessionDelegate as v_, FleetYield as va, GateDecision as vb, panel as vc, LeaderboardSpec as vd, SuperviseTestOptions as vf, ProviderExecutorOptions as vg, ResolveSpawnResourcePathsResult as vh, loadGraphFile as vi, MaterializeLocalMcpOptions as vl, SupervisorAgentDeps as vm, composeWorkerEvidence as vn, chatTransportExecutor as vo, RunContext as vp, readWorkerSteerAcknowledgement as vr, OpenSandboxRunBeforeStartContext as vs, AgentEnvironmentQuery as vt, CorpusRecord as vu, DelegationTraceSpan as vv, RuntimeRunCompleteInput as vw, McpToolDescriptor as vx, ScoreOf as vy, RuntimeFailureCode as w, HARNESS_TRANSCRIPT_READ_LIMITS as wC, readRunCancellation as wS, createSiblingSandboxExecutor as w_, SupervisedResult as wa, RouteMatch as wb, RegistryAnalyzeProjection as wc, checkProgramDigest as wd, GraphCheckNodes as wf, ActivityLog as wg, resolveSpawnResourcePaths as wh, GraphSelection as wi, materializeLocalMcp as wl, ManagerWakePolicy as wm, withUntrackedArtifacts as wn, asAuthoredProfile as wo, PromptRegistry as wp, writeWorkerSteer as wr, openSandboxRun as ws, AgentSessionStatus$1 as wt, FanoutWinnerSelector as wu, CoderOutput as wv, RuntimeRunStatus as ww, PublishOptions as wx, renderPairwiseMarkdown as wy, RuntimeSessionStore as x, harnessTranscriptArtifact as xC, cancelRun as xS, FleetWorkspaceExecutorOptions as x_, ProviderModelExecutionEvidence as xa, RouteFlow as xb, verify as xc, DeclaredCheckPlacement as xd, SuperviseRegistry as xf, providerAsExecutor as xg, SpawnResourceRead as xh, GraphRegistryDir as xi, StdioMcpConnection as xl, SupervisorNodeContextSeed as xm, CopyOptions as xn, AuthoredProfile as xo, createInMemoryRunContext as xp, supervisorRunDir as xr, SandboxRun as xs, AgentProfile$2 as xt, EqualKVerdict as xu, DelegationStore as xv, RuntimeRunOptions as xw, BusRecord as xx, renderLeaderboardHtml as xy, RuntimeCanonicalStreamEvent as y, captureBoundHarnessTranscript as yC, RunCancelRequest as yS, DelegationExecutor as y_, NoWinnerError as ya, GateRequest as yb, pipeline as yc, defineLeaderboard as yd, WorkerSlots as yf, ProviderLeafOut as yg, ResolvedSpawnResourcePath as yh, GraphCorpusGroup as yi, McpListedTool as yl, SupervisorAgentTestDeps as ym, settledWorkerOut as yn, chatWorkerSeam as yo, RunContextLease as yp, readWorkerSteerRequests as yr, OpenSandboxRunOptions as ys, AgentEnvironmentStatus as yt, EqualKArm as yu, composeLoopTraceEmitters as yv, RuntimeRunCost as yw, McpTransport as yx, leaderboard as yy, Settled as z, ExecutorProgressEvent as zC, NativeContextContinuationInput as zS, DelegateCodeConfig as z_, ExecutorExecutionBinding as za, AuthorizeDownMessage as zb, observedModelMatchesDeclared as zc, SuperviseGraphPursuitOptions as zd, TraversalContinuity as zf, mcpSecretEnvMetadataKey as zg, CliInPlaceSeam as zh, storedGraphDigests as zi, runAgentic as zl, composeReentryTask as zm, createSupervisor as zn, StructuralRolloutPolicy as zo, createSupervisorSpanRecorder as zp, provisionSupervisor as zr, startRetainedRun as zs, computeFindingId$1 as zt, TrajectoryReportOptions as zu, deterministicCompletion as zv, AnalyzeOnSettleRoute as zx, OtelAttribute as zy };
19846
- //# sourceMappingURL=types-BLhsL4qy.d.ts.map
19848
+ //# sourceMappingURL=types-YXZL7Wxi.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "10.0.19",
3
+ "version": "10.0.20",
4
4
  "description": "Shared task-lifecycle skeleton for agents: a recursive loop kernel for chat turns, one-shot tasks, and multi-attempt loops, with trace capture and eval-gated self-improvement. Domain behavior lives in adapters; scoring and ship-gates in @tangle-network/agent-eval.",
5
5
  "homepage": "https://github.com/tangle-network/agent-runtime#readme",
6
6
  "repository": {
@@ -1 +0,0 @@
1
- {"version":3,"file":"continuation-CDdjAkpk.js","names":[],"sources":["../src/finite-number.ts","../src/runtime/supervise/continuation.ts"],"sourcesContent":["export function isFiniteNumber(value: unknown): value is number {\n return typeof value === 'number' && Number.isFinite(value)\n}\n","/**\n * One check ({@link CheckVerdict}; {@link CheckUnavailableError} pauses), one\n * {@link ContinuationPolicy} (`maxBarren`, an optional deadline, no re-prompt default), and one\n * note ({@link composeContinuationNote} owns the facts, {@link ContinuationProfile} owns the\n * words, a play may only append).\n */\n\nimport { mkdir } from 'node:fs/promises'\nimport { join } from 'node:path'\nimport type { TraceAnalysisStore } from '@tangle-network/agent-eval'\nimport { sha256 } from '../../content-digest'\nimport { ValidationError } from '../../errors'\nimport { isFiniteNumber } from '../../finite-number'\nimport type { CheckVerdict } from './completion-gate'\nimport type { DriverBudgetReadout, DriverProgressMark } from './driver-retry'\nimport { writeAtomicDurableFile } from './durable-file'\n\n/** Read a check function's return value into a verdict. Anything but `true` or a passing verdict\n * is a failure: a check fails closed. */\nexport function checkVerdictOf(outcome: unknown): CheckVerdict {\n if (outcome === true) return { pass: true }\n if (typeof outcome !== 'object' || outcome === null || Array.isArray(outcome)) {\n return { pass: false }\n }\n const raw = outcome as Record<string, unknown>\n const items =\n typeof raw.items === 'object' && raw.items !== null && !Array.isArray(raw.items)\n ? Object.fromEntries(\n Object.entries(raw.items as Record<string, unknown>).filter(\n (entry): entry is [string, number] =>\n typeof entry[1] === 'number' && Number.isFinite(entry[1]),\n ),\n )\n : undefined\n const failures = Array.isArray(raw.failures)\n ? raw.failures.filter((line): line is string => typeof line === 'string' && line.trim() !== '')\n : undefined\n return Object.freeze({\n pass: raw.pass === true,\n ...(items === undefined ? {} : { items: Object.freeze(items) }),\n ...(isFiniteNumber(raw.composite) ? { composite: raw.composite } : {}),\n ...(isFiniteNumber(raw.threshold) ? { threshold: raw.threshold } : {}),\n ...(failures === undefined ? {} : { failures: Object.freeze(failures) }),\n ...(typeof raw.review === 'string' && raw.review.trim() !== ''\n ? { review: raw.review.trim() }\n : {}),\n })\n}\n\n/** Items that fail in `verdict`: every item below 1, or the named items of its FAIL lines. */\nexport function failedItems(verdict: CheckVerdict): ReadonlyArray<string> {\n if (verdict.items !== undefined) {\n return Object.entries(verdict.items)\n .filter(([, value]) => value < 1)\n .map(([name]) => name)\n }\n return (verdict.failures ?? []).map((line) => line.slice('FAIL '.length).split(/[\\s:]/u)[0] ?? '')\n}\n\n/** Items that pass in `verdict`. */\nexport function passedItems(verdict: CheckVerdict): ReadonlyArray<string> {\n return Object.entries(verdict.items ?? {})\n .filter(([, value]) => value >= 1)\n .map(([name]) => name)\n}\n\n/** One time the check ran inside the run, whatever started it. */\nexport interface CheckRead {\n /** 1-based count of check reads in this manager, the unavailable ones included. */\n readonly read: number\n /** The driver attempt the read belongs to. */\n readonly attempt: number\n /** Epoch ms. */\n readonly at: number\n /** `submit`: a `submit_result` call. `turn-end`: the turn ended with no accepted result. */\n readonly source: 'submit' | 'turn-end'\n /** Absent when the check could not run. */\n readonly verdict?: CheckVerdict\n /** Why the check could not run. */\n readonly unavailable?: string\n}\n\n// ── The resend rule ──────────────────────────────────────────────────────────────────────────────\n\n/**\n * How a manager with a completion check is sent back when its turn ends unmet.\n *\n * Required for an external manager with a check: Runtime supplies no default, because a retry\n * default in source is a research decision the record must make. There is no re-prompt count.\n * The loop re-enters until the check passes or a bound ends it: cancellation, the budget, or\n * this deadline when one is set. After `maxBarren` turns in a row without progress, each further continuation\n * waits a barren pause first (5 minutes, doubling to 60) and is journaled `barren-pause`; a\n * barren streak never ends the run. A tool `report_blocked` shows\n * really failed is recorded and the loop goes on: a blocked tool is not a terminal condition.\n * Progress means the check's best composite rose, an accepted result, or a worker that delivered.\n */\nexport interface ContinuationPolicy {\n /** No re-entry starts at or after this instant: epoch ms, or an ISO 8601 time. Absent: no clock\n * ends the run; it ends when its check passes, on cancellation, or on a spent budget. */\n readonly deadline?: number | string\n /** Re-entered turns in a row that may end without progress before each further continuation\n * waits a barren pause. Minimum 1. The evidence for 2: repair loses most of its effect within\n * two or three attempts, and a fresh start at the same budget scored higher (Debugging Decay\n * Index). */\n readonly maxBarren: number\n /** Every instruction word of the note. */\n readonly profile: ContinuationProfile\n /** `verbatim` sends the check's FAIL lines, the protected items, and what changed. A check with\n * `feedback: 'pass-only'` overrides this to `off`. */\n readonly failures: 'verbatim' | 'off'\n /** `on` runs the question panel at each continuation and puts its admitted findings in the note.\n * Requires `runPanel`. */\n readonly panel: 'on' | 'off'\n /** `on` states the bar: every check item with its state, the best version's verdict and the\n * gap, the reference result, and the check's review. */\n readonly bar: 'on' | 'off'\n /** The play's registered reference result, for the bar. */\n readonly reference?: string\n /** The best version's verdict on the same check, for the bar. The version loop sets it. */\n readonly best?: { readonly label: string; readonly verdict: CheckVerdict }\n /** The panel's dollar caps. Required with `panel: 'on'`. */\n readonly panelUsd?: { readonly perContinuation: number; readonly perRun: number }\n /** The question panel. Required with `panel: 'on'`. */\n readonly runPanel?: ContinuationPanel\n /** A play's own section, appended after Runtime's sections. It cannot remove or rewrite one. */\n readonly append?: ContinuationAppend\n /**\n * What a re-entered manager's harness session is. `native` (the default) sends the next turn\n * into the same harness session wherever the backend proves it, with the unmet items and what\n * changed. `fresh` starts a new harness session on every re-entry (a continuation, a wake, a\n * failure retry, a pause) whose only input is the full re-entry task: the original task, the\n * check's description and the coordinator's run state. The environment and its files are kept\n * while the provider holds them; only the conversation is new, so whatever the next turn needs\n * must be in the journal, the workspace or Knowledge, never in an earlier turn.\n *\n * Runtime's own drive harnesses (bridge and provider) honor it; a caller's `driveHarness`\n * receives it as `session` and must start a new session on each drive that carries `reentry`.\n */\n readonly session?: 'native' | 'fresh'\n}\n\n/** Resolve and check a policy before any compute. Returns the deadline in epoch ms, or undefined\n * when the policy sets none. */\nexport function admitContinuationPolicy(\n policy: ContinuationPolicy,\n context: string,\n): number | undefined {\n if (typeof policy !== 'object' || policy === null) {\n throw new ValidationError(`${context}: continuation must be an object`)\n }\n const deadlineMs =\n typeof policy.deadline === 'string' ? Date.parse(policy.deadline) : policy.deadline\n if (\n deadlineMs !== undefined &&\n (typeof deadlineMs !== 'number' || !Number.isFinite(deadlineMs) || deadlineMs <= 0)\n ) {\n throw new ValidationError(\n `${context}: continuation.deadline, when set, must be a finite time (epoch ms or ISO 8601)`,\n )\n }\n if (!Number.isInteger(policy.maxBarren) || policy.maxBarren < 1) {\n throw new ValidationError(`${context}: continuation.maxBarren must be an integer >= 1`)\n }\n if (policy.failures !== 'verbatim' && policy.failures !== 'off') {\n throw new ValidationError(`${context}: continuation.failures must be 'verbatim' or 'off'`)\n }\n if (policy.panel !== 'on' && policy.panel !== 'off') {\n throw new ValidationError(`${context}: continuation.panel must be 'on' or 'off'`)\n }\n if (policy.bar !== 'on' && policy.bar !== 'off') {\n throw new ValidationError(`${context}: continuation.bar must be 'on' or 'off'`)\n }\n if (policy.panel === 'on') {\n if (typeof policy.runPanel !== 'function') {\n throw new ValidationError(`${context}: continuation.panel 'on' needs runPanel`)\n }\n const usd = policy.panelUsd\n if (\n usd === undefined ||\n !isFiniteNumber(usd.perContinuation) ||\n !isFiniteNumber(usd.perRun) ||\n usd.perContinuation <= 0 ||\n usd.perRun < usd.perContinuation\n ) {\n throw new ValidationError(\n `${context}: continuation.panel 'on' needs panelUsd with 0 < perContinuation <= perRun`,\n )\n }\n }\n if (policy.append !== undefined && typeof policy.append !== 'function') {\n throw new ValidationError(`${context}: continuation.append must be a function`)\n }\n if (policy.session !== undefined && policy.session !== 'native' && policy.session !== 'fresh') {\n throw new ValidationError(`${context}: continuation.session must be 'native' or 'fresh'`)\n }\n if (policy.reference !== undefined && typeof policy.reference !== 'string')\n throw new ValidationError(`${context}: continuation.reference must be a string`)\n admitContinuationProfile(policy.profile, context)\n return deadlineMs\n}\n\n// ── The profile ──────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Every instruction word of the note. Runtime supplies the facts and their order; this data\n * supplies the words, so the note can be improved (by a person, reflection, or GEPA) without a code\n * change. Templates may name the facts in `CONTINUATION_FACTS` as `{name}`.\n */\nexport interface ContinuationProfile {\n /** Recorded with every note, so each continuation names the words it carried. */\n readonly id: string\n /** Section 1, the verdict. The first line should state the failure as a fact. */\n readonly opening: string\n /** Section 7: what to do before the next submit. */\n readonly plan: string\n /** Section 8: what the harness enforces, and the honest exit. */\n readonly rules: string\n /** Section headings; an empty heading prints the section without one. */\n readonly headings: {\n readonly failures: string\n readonly protected: string\n readonly changed: string\n readonly findings: string\n readonly bar: string\n readonly plan: string\n readonly rules: string\n }\n /** The bar's standing instruction, printed under its heading. */\n readonly barRule?: string\n /** The panel's question templates. `{item}` expands over failed items and `{worker}` over\n * settled workers; a template with neither is asked once. */\n readonly questions?: ReadonlyArray<string>\n /** The panel's model, when the profile chooses one. */\n readonly panelModel?: string\n /** What a new version's director reads about the best version's review, for the version\n * chain's `'review-of-best'`. It may name `{version}`, `{path}` and `{score}`. */\n readonly review?: string\n}\n\n/** The facts a profile template may name. */\nexport const CONTINUATION_FACTS = [\n 'composite',\n 'threshold',\n 'failed',\n 'total',\n 'reads',\n 'owed',\n 'settled',\n 'delivered',\n 'continuation',\n] as const\n\ntype ContinuationFact = (typeof CONTINUATION_FACTS)[number]\n\nconst factNames: ReadonlySet<string> = new Set(CONTINUATION_FACTS)\nconst placeholder = /\\{([a-zA-Z]+)\\}/gu\n\nfunction admitContinuationProfile(profile: ContinuationProfile, context: string): void {\n if (typeof profile !== 'object' || profile === null) {\n throw new ValidationError(`${context}: continuation.profile must be an object`)\n }\n if (typeof profile.id !== 'string' || profile.id.trim() === '') {\n throw new ValidationError(`${context}: continuation.profile.id must be non-empty`)\n }\n const texts: Array<[string, unknown]> = [\n ['opening', profile.opening],\n ['plan', profile.plan],\n ['rules', profile.rules],\n ...Object.entries(profile.headings ?? {}).map(([key, value]): [string, unknown] => [\n `headings.${key}`,\n value,\n ]),\n ...(profile.barRule === undefined ? [] : [['barRule', profile.barRule] as [string, unknown]]),\n ]\n for (const key of ['failures', 'protected', 'changed', 'findings', 'bar', 'plan', 'rules']) {\n if (typeof (profile.headings as Record<string, unknown> | undefined)?.[key] !== 'string') {\n throw new ValidationError(`${context}: continuation.profile.headings.${key} must be a string`)\n }\n }\n for (const [key, text] of texts) {\n if (typeof text !== 'string') {\n throw new ValidationError(`${context}: continuation.profile.${key} must be a string`)\n }\n for (const match of text.matchAll(placeholder)) {\n if (!factNames.has(match[1] ?? '')) {\n throw new ValidationError(\n `${context}: continuation.profile.${key} names {${match[1]}}, which is not a fact Runtime supplies (${CONTINUATION_FACTS.join(', ')})`,\n )\n }\n }\n }\n if (profile.review !== undefined) {\n if (typeof profile.review !== 'string' || profile.review.trim() === '') {\n throw new ValidationError(`${context}: continuation.profile.review must be non-empty`)\n }\n for (const match of profile.review.matchAll(placeholder)) {\n if (!['version', 'path', 'score'].includes(match[1] ?? '')) {\n throw new ValidationError(\n `${context}: continuation.profile.review names {${match[1]}}; it may name {version}, {path} and {score}`,\n )\n }\n }\n }\n if (profile.opening.trim() === '') {\n throw new ValidationError(`${context}: continuation.profile.opening must be non-empty`)\n }\n if (profile.panelModel !== undefined && typeof profile.panelModel !== 'string')\n throw new ValidationError(`${context}: continuation.profile.panelModel must be a string`)\n if (profile.questions !== undefined && !Array.isArray(profile.questions))\n throw new ValidationError(`${context}: continuation.profile.questions must be an array`)\n for (const [index, question] of (profile.questions ?? []).entries()) {\n if (typeof question !== 'string' || question.trim() === '') {\n throw new ValidationError(\n `${context}: continuation.profile.questions[${index}] must be a non-empty string`,\n )\n }\n }\n}\n\n// ── The panel ────────────────────────────────────────────────────────────────────────────────────\n\n/** What the question panel reads for one continuation. */\nexport interface ContinuationPanelInput {\n /** 1-based continuation number. */\n readonly continuation: number\n readonly task: unknown\n /** The check's verdict this note reports; absent when no result reached the check. */\n readonly verdict?: CheckVerdict\n /** Every check read so far, oldest first. */\n readonly reads: ReadonlyArray<CheckRead>\n /** The expanded questions, one per atomic question. */\n readonly questions: ReadonlyArray<string>\n /**\n * The run's own traces, one per agent and named by its node id: the manager's root stream, when\n * it is the root, and each settled worker's tool trace (`src/runtime/supervise/run-traces.ts`). The panel runs only\n * when the run has recorded a span.\n */\n readonly traces: TraceAnalysisStore\n /** Settled workers; each one's trace in `traces` is named by its `id`. */\n readonly workers: ReadonlyArray<{ readonly id: string; readonly label: string }>\n readonly bar?: ContinuationPolicy['best']\n readonly reference?: string\n /** The dollars this panel call may spend. */\n readonly usdCap: number\n readonly signal: AbortSignal\n}\n\n/** One answer the panel proposes for the note. */\nexport interface PanelFinding {\n readonly question: string\n /** The finding, stated as a claim about the run. */\n readonly claim: string\n /** Every `trace://` citation in the answer, and whether the trace store holds it. */\n readonly citations: ReadonlyArray<{ readonly uri: string; readonly resolved: boolean }>\n /** Whether an independent verifier, shown only the cited spans, agreed with the claim. */\n readonly verified: boolean\n /** The failed check items the finding explains, when it names any. */\n readonly items?: ReadonlyArray<string>\n}\n\nexport interface ContinuationPanelResult {\n readonly findings: ReadonlyArray<PanelFinding>\n /** Dollars spent; `null` when the provider reported no cost. Unknown is never zero. */\n readonly usd: number | null\n /** Provider receipts, recorded verbatim in `panel.jsonl`. */\n readonly receipts?: unknown\n}\n\n/** Ask the panel's questions over the run's own traces. */\nexport type ContinuationPanel = (input: ContinuationPanelInput) => Promise<ContinuationPanelResult>\n\n/** A play's own section for one note. Return `undefined` to add nothing this time. */\nexport type ContinuationAppend = (context: {\n readonly continuation: number\n readonly verdict?: CheckVerdict\n readonly reads: ReadonlyArray<CheckRead>\n readonly signal: AbortSignal\n}) => Promise<{ readonly heading: string; readonly text: string } | undefined>\n\n/** A finding that reached the note, with the continuation that admitted it. */\nexport interface AdmittedFinding extends PanelFinding {\n readonly admittedAt: number\n /** Set once every item the finding named passes. */\n readonly resolvedAt?: number\n}\n\n/** Findings reach the note only when every citation resolves, at least two distinct spans are\n * cited, and the independent verifier agreed. The best method in Who&When found the failing step\n * 14.2% of the time, so an unverified finding is noise with a citation. */\nexport function admitFinding(finding: PanelFinding): boolean {\n if (!finding.verified) return false\n if (finding.citations.length === 0) return false\n if (!finding.citations.every((citation) => citation.resolved)) return false\n return new Set(finding.citations.map((citation) => citation.uri)).size >= 2\n}\n\n/** About 1,500 tokens of findings. */\nconst FINDINGS_CHAR_CAP = 6_000\n\n/**\n * Rank the admitted findings by how many failed items they explain, drop repeats, and keep them\n * within the note's cap. Earlier findings stay as they were written (ACE: itemized additions keep\n * detail that repeated rewrites lose); a finding whose items all pass now is marked resolved.\n */\nexport function distillFindings(\n prior: ReadonlyArray<AdmittedFinding>,\n proposed: ReadonlyArray<PanelFinding>,\n failing: ReadonlySet<string>,\n continuation: number,\n): ReadonlyArray<AdmittedFinding> {\n const key = (claim: string) => claim.toLowerCase().replace(/\\s+/gu, ' ').trim()\n const known = new Set(prior.map((finding) => key(finding.claim)))\n const carried = prior.map((finding) =>\n finding.resolvedAt === undefined &&\n (finding.items?.length ?? 0) > 0 &&\n (finding.items ?? []).every((item) => !failing.has(item))\n ? { ...finding, resolvedAt: continuation }\n : finding,\n )\n const fresh = proposed\n .filter(admitFinding)\n .filter((finding) => {\n const k = key(finding.claim)\n if (known.has(k)) return false\n known.add(k)\n return true\n })\n .map((finding) => ({\n finding,\n links: (finding.items ?? []).filter((item) => failing.has(item)).length,\n }))\n .sort((a, b) => b.links - a.links)\n const out: AdmittedFinding[] = [...carried]\n let used = carried\n .filter((finding) => finding.resolvedAt === undefined)\n .reduce((sum, finding) => sum + finding.claim.length, 0)\n for (const { finding } of fresh) {\n if (used + finding.claim.length > FINDINGS_CHAR_CAP) break\n used += finding.claim.length\n out.push({ ...finding, admittedAt: continuation })\n }\n return out\n}\n\n/** Expand the profile's question templates over the failed items and the settled workers. */\nexport function expandQuestions(\n templates: ReadonlyArray<string>,\n failing: ReadonlyArray<string>,\n workers: ReadonlyArray<{ readonly id: string; readonly label: string }>,\n): ReadonlyArray<string> {\n const out: string[] = []\n for (const template of templates) {\n const hasItem = template.includes('{item}')\n const hasWorker = template.includes('{worker}')\n if (!hasItem && !hasWorker) {\n out.push(template)\n continue\n }\n const items = hasItem ? failing : ['']\n const each = hasWorker ? workers.map((worker) => `${worker.id} (${worker.label})`) : ['']\n for (const item of items) {\n for (const worker of each) {\n out.push(template.replaceAll('{item}', item).replaceAll('{worker}', worker))\n }\n }\n }\n return out\n}\n\n// ── The note ─────────────────────────────────────────────────────────────────────────────────────\n\n/** The facts one note is written from. */\nexport interface ContinuationNoteInput {\n readonly profile: ContinuationProfile\n /** 1-based. */\n readonly continuation: number\n /** The verdict this turn ended on; absent when no result has reached the check. */\n readonly verdict?: CheckVerdict\n /** The verdict the previous note reported, for what changed. */\n readonly previous?: CheckVerdict\n /** Check reads so far, the unavailable ones included. */\n readonly reads: number\n /** `verbatim` only when the policy and the check both allow the FAIL lines. */\n readonly failures: 'verbatim' | 'off'\n readonly findings?: ReadonlyArray<AdmittedFinding>\n readonly bar?: {\n readonly best?: ContinuationPolicy['best']\n readonly reference?: string\n }\n readonly appended?: ReadonlyArray<{ readonly heading: string; readonly text: string }>\n /** What the run owes, from the check's description. */\n readonly owed?: string\n readonly progress: DriverProgressMark\n /** Whether `read_continuation` is served to this manager. */\n readonly canReadMore: boolean\n /** Whether submit_result is served to this manager. Absent means unavailable. */\n readonly canSubmitResult?: boolean\n /** Whether the check's score comes from cases the director cannot see. */\n readonly sealed?: boolean\n}\n\n/** At most this many FAIL lines in the note; the rest through `read_continuation`. */\nexport const NOTE_FAILURE_LINES = 40\n\n/**\n * Write one continuation note, sections 1 to 8 of docs/38. Section 9, the run's state, is\n * `composeReentryTask`, which wraps this text. Pure: the same input writes the same note.\n */\nexport function composeContinuationNote(input: ContinuationNoteInput): string {\n const { profile, verdict } = input\n const items = verdict?.items ?? {}\n const total = Object.keys(items).length\n const failing = verdict === undefined ? [] : failedItems(verdict)\n const facts: Record<ContinuationFact, string> = {\n composite: verdict?.composite === undefined ? 'unknown' : format(verdict.composite),\n threshold: verdict?.threshold === undefined ? 'unknown' : format(verdict.threshold),\n failed:\n verdict === undefined || (total === 0 && (verdict.failures?.length ?? 0) === 0)\n ? 'unknown'\n : String(failing.length),\n total: total === 0 ? 'unknown' : String(total),\n reads: String(input.reads),\n owed: input.owed?.trim() || 'not described',\n settled: String(input.progress.settledCount),\n delivered: String(input.progress.deliveredCount ?? 0),\n continuation: String(input.continuation),\n }\n const fill = (text: string) =>\n text.replace(placeholder, (_, name: string) => facts[name as ContinuationFact] ?? `{${name}}`)\n // The opening states a failed verdict. When there is no verdict, or the check passes on a state\n // no result was submitted for, the fact replaces it: the profile cannot state a verdict that\n // does not exist.\n const sections: string[] = [\n verdict === undefined\n ? 'No check verdict is available yet.' +\n (input.canSubmitResult === true\n ? ' Submit a result through submit_result to request the check.'\n : '')\n : verdict.pass\n ? 'The check passes on the current state, but no result has been accepted.' +\n (input.canSubmitResult === true ? ' Call submit_result to request acceptance.' : '')\n : fill(profile.opening).trim(),\n ]\n const section = (heading: string, body: ReadonlyArray<string>) => {\n if (body.length === 0) return\n sections.push([...(heading.trim() === '' ? [] : [`## ${fill(heading)}`]), ...body].join('\\n'))\n }\n if (input.failures === 'verbatim' && verdict !== undefined) {\n const lines = verdict.failures ?? []\n const shown = lines.slice(0, NOTE_FAILURE_LINES)\n const more = lines.length - shown.length\n section(profile.headings.failures, [\n ...shown,\n ...(more > 0\n ? [\n input.canReadMore\n ? `${more} more failure lines: call read_continuation with continuation ${input.continuation}.`\n : `${more} more failure lines are not shown.`,\n ]\n : []),\n ])\n const passing = passedItems(verdict)\n section(profile.headings.protected, passing.length === 0 ? [] : [passing.join(', ')])\n if (input.previous !== undefined) {\n const before = new Set(failedItems(input.previous))\n const now = new Set(failing)\n const fixed = [...before].filter((item) => !now.has(item))\n const broke = [...now].filter((item) => !before.has(item))\n section(profile.headings.changed, [\n ...(fixed.length === 0 ? [] : [`Now passing: ${fixed.join(', ')}.`]),\n ...(broke.length === 0 ? [] : [`Newly failing: ${broke.join(', ')}.`]),\n ...(fixed.length === 0 && broke.length === 0\n ? ['No item changed since the last note.']\n : []),\n ...(input.previous.composite !== undefined && verdict.composite !== undefined\n ? [`Composite: ${format(input.previous.composite)} then ${format(verdict.composite)}.`]\n : []),\n ])\n }\n }\n if (input.findings !== undefined) {\n const open = input.findings.filter((finding) => finding.resolvedAt === undefined)\n const resolved = input.findings.filter((finding) => finding.resolvedAt === input.continuation)\n section(profile.headings.findings, [\n ...open.map(\n (finding) =>\n `- [hypothesis] ${finding.claim}` +\n (finding.items?.length ? ` (items: ${finding.items.join(', ')})` : '') +\n ` Evidence: ${finding.citations.map((citation) => citation.uri).join(', ')}`,\n ),\n ...resolved.map((finding) => `- [resolved] ${finding.claim}`),\n ])\n }\n if (input.bar !== undefined && verdict !== undefined) {\n const body: string[] = []\n if (profile.barRule?.trim()) body.push(fill(profile.barRule).trim())\n for (const [item, value] of Object.entries(items)) {\n const best = input.bar.best?.verdict.items?.[item]\n body.push(\n `- ${item}: ${value >= 1 ? 'passes' : `fails (${format(value)})`}` +\n (best === undefined\n ? ''\n : ` / ${input.bar.best?.label}: ${best >= 1 ? 'passes' : `fails (${format(best)})`}`),\n )\n }\n if (input.bar.best?.verdict.composite !== undefined) {\n body.push(\n `Best version ${input.bar.best.label}: composite ${format(input.bar.best.verdict.composite)}.`,\n )\n }\n if (input.bar.reference?.trim()) body.push(`Reference result: ${input.bar.reference.trim()}`)\n if (verdict.review?.trim()) body.push(`The check's review: ${verdict.review.trim()}`)\n section(profile.headings.bar, body)\n }\n section(profile.headings.plan, profile.plan.trim() === '' ? [] : [fill(profile.plan).trim()])\n section(profile.headings.rules, [\n ...(profile.rules.trim() === '' ? [] : [fill(profile.rules).trim()]),\n ...(input.sealed ? ['The score comes from cases you cannot see.'] : []),\n ])\n for (const appended of input.appended ?? []) {\n section(appended.heading, appended.text.trim() === '' ? [] : [appended.text.trim()])\n }\n return sections.join('\\n\\n')\n}\n\n// ── The record ───────────────────────────────────────────────────────────────────────────────────\n\n/** One continuation as the settle record carries it (`DriverContinuationRecord.continuations`). */\nexport interface ContinuationEntry {\n /** 1-based. */\n readonly continuation: number\n /** The driver attempt whose end this note answered. */\n readonly attempt: number\n /** sha256 of the note's text. */\n readonly noteDigest: string\n readonly profile: string\n readonly switches: {\n readonly failures: 'verbatim' | 'off'\n readonly panel: 'on' | 'off'\n readonly bar: 'on' | 'off'\n }\n /** The verdict the note reported: `null` when no result had reached the check. */\n readonly before: VerdictSummary | null\n /** The verdict at the director's next turn end: `null` when the run ended first. */\n readonly after: VerdictSummary | null\n /** The panel's part: questions asked, findings admitted, dollars (`null` = unknown). */\n readonly panel?: {\n readonly asked: number\n readonly proposed: number\n readonly admitted: number\n readonly usd: number | null\n /** Why the panel asked nothing this time, when it could not run. */\n readonly unavailable?: string\n }\n /** Sections a play appended. */\n readonly appended: number\n}\n\nexport interface VerdictSummary {\n readonly pass: boolean\n readonly composite?: number\n readonly failed?: number\n readonly total?: number\n}\n\nfunction summarizeVerdict(verdict: CheckVerdict | undefined): VerdictSummary | null {\n if (verdict === undefined) return null\n const total = Object.keys(verdict.items ?? {}).length\n return {\n pass: verdict.pass,\n ...(verdict.composite === undefined ? {} : { composite: verdict.composite }),\n ...(total === 0 ? {} : { failed: failedItems(verdict).length, total }),\n }\n}\n\nfunction noteDigest(note: string): string {\n return `sha256:${sha256(note)}`\n}\n\n/** A run directory's continuation files: the root's at `<runDir>/continuations/<n>/`, a nested\n * manager's at `<runDir>/continuations/managers/<owner>/<n>/`. */\nexport const CONTINUATIONS_DIR = 'continuations'\n\n/**\n * Write one continuation's files under `<dir>/<n>/`: `note.md`, `verdict.json`, and\n * `panel.jsonl` when the panel ran. The director reads them through `read_continuation`, because\n * its box cannot read the driver's run directory.\n */\nasync function writeContinuationFiles(\n dir: string,\n continuation: number,\n files: {\n readonly note: string\n readonly verdict?: CheckVerdict\n readonly panel?: ReadonlyArray<unknown>\n },\n): Promise<void> {\n const at = join(dir, String(continuation))\n await mkdir(at, { recursive: true })\n writeAtomicDurableFile(join(at, 'note.md'), `${files.note}\\n`)\n writeAtomicDurableFile(\n join(at, 'verdict.json'),\n `${JSON.stringify(files.verdict ?? null, null, 2)}\\n`,\n )\n if (files.panel !== undefined) {\n writeAtomicDurableFile(\n join(at, 'panel.jsonl'),\n files.panel.map((line) => JSON.stringify(line)).join('\\n') + (files.panel.length ? '\\n' : ''),\n )\n }\n}\n\n// ── The progress reading ─────────────────────────────────────────────────────────────────────────\n\n/** The best composite across `reads`, or `undefined` when no read scored. */\nexport function bestComposite(reads: ReadonlyArray<CheckRead>): number | undefined {\n let best: number | undefined\n for (const read of reads) {\n const value = read.verdict?.composite\n if (value !== undefined && (best === undefined || value > best)) best = value\n }\n return best\n}\n\n/** The readout a continuation is composed from. */\nexport interface ContinuationContext {\n /** The attempt that just completed, 1-based. */\n readonly attempt: number\n /** Continuations this run has already sent. */\n readonly continuations: number\n /** The mark read after the completed drive. */\n readonly progress: DriverProgressMark\n readonly budget: DriverBudgetReadout\n /** Re-entered drives in a row, this one included, that ended without progress. */\n readonly barrenReentries: number\n readonly signal: AbortSignal\n}\n\nfunction format(value: number): string {\n return Number.isInteger(value) ? String(value) : value.toFixed(3).replace(/0+$/u, '')\n}\n\n// ── One manager's continuations ──────────────────────────────────────────────────────────────────\n\n/** What a manager's continuation keeper reads from its run. */\ninterface ContinuationKeeperInput {\n readonly policy: ContinuationPolicy\n readonly task: unknown\n /** What the run owes, from the check's description. */\n readonly owed?: string\n /** The check's feedback mode: `pass-only` keeps the FAIL lines out of every note. */\n readonly feedback?: 'verbatim' | 'pass-only'\n readonly sealed?: boolean\n /** Every check read so far, oldest first. */\n readonly reads: () => ReadonlyArray<CheckRead>\n /** Settled workers, for the panel's `{worker}` questions. */\n readonly workers: () => ReadonlyArray<{ readonly id: string; readonly label: string }>\n /** Where each continuation's files go (`<dir>/<n>/`). Omit to keep them in memory only. */\n readonly dir?: string\n /** The run's own traces for the panel, read at each continuation; `undefined` when none yet. */\n readonly traces?: () => Promise<TraceAnalysisStore | undefined>\n /** Whether `read_continuation` is served to this manager. */\n readonly canReadMore: boolean\n /** Whether submit_result is served to this manager. Absent means unavailable. */\n readonly canSubmitResult?: boolean\n}\n\n/** One manager's continuation state: the notes it was sent and the panel's running ledger. */\nexport interface ContinuationKeeper {\n /** Write the next note. The driver loop calls it only when the check is unmet. */\n compose(context: ContinuationContext): Promise<string>\n /** `read_continuation`: the full record of continuation `n`, or the latest. */\n read(continuation: number | undefined): unknown\n /** The settle record's `continuations`, with the last note's `after` read from the final check. */\n entries(): ReadonlyArray<ContinuationEntry>\n}\n\n/** Build the continuation state for one manager with a check. */\nexport function createContinuationKeeper(input: ContinuationKeeperInput): ContinuationKeeper {\n const { policy } = input\n const failures: 'verbatim' | 'off' = input.feedback === 'pass-only' ? 'off' : policy.failures\n const entries: ContinuationEntry[] = []\n const notes: Array<{\n readonly note: string\n readonly verdict?: CheckVerdict\n readonly panel?: ReadonlyArray<unknown>\n /** The check read the note answered, for the `after` reading. */\n readonly read: number\n }> = []\n let findings: ReadonlyArray<AdmittedFinding> = []\n let panelUsd = 0\n let panelUsdKnown = true\n\n const latestVerdict = (): { verdict?: CheckVerdict; read: number } => {\n const reads = input.reads()\n for (let i = reads.length - 1; i >= 0; i -= 1) {\n const read = reads[i]\n if (read?.verdict !== undefined) return { verdict: read.verdict, read: read.read }\n }\n return { read: 0 }\n }\n\n const closePrevious = (): void => {\n const last = entries.at(-1)\n const lastNote = notes.at(-1)\n if (last === undefined || lastNote === undefined) return\n const latest = latestVerdict()\n entries[entries.length - 1] = {\n ...last,\n after: latest.read > lastNote.read ? summarizeVerdict(latest.verdict) : null,\n }\n }\n\n return {\n async compose(context) {\n closePrevious()\n const continuation = entries.length + 1\n const { verdict, read } = latestVerdict()\n const failing = verdict === undefined ? [] : failedItems(verdict)\n let panelRecord: ContinuationEntry['panel'] | undefined\n let panelLines: unknown[] | undefined\n if (policy.panel === 'on' && policy.runPanel !== undefined && policy.panelUsd !== undefined) {\n const workers = input.workers()\n const questions = expandQuestions(policy.profile.questions ?? [], failing, workers)\n const left = policy.panelUsd.perRun - panelUsd\n const usdCap = Math.min(policy.panelUsd.perContinuation, left)\n // An unknown cost closes the panel for the rest of the run: its cap can no longer be\n // proven, and an unmeasured spend is never read as zero.\n const asking = questions.length > 0 && usdCap > 0 && panelUsdKnown\n let traces: TraceAnalysisStore | undefined\n let unavailable: string | undefined\n if (asking) {\n try {\n traces = await input.traces?.()\n if (traces === undefined) unavailable = 'the run has recorded no trace yet'\n } catch (error) {\n // A trace that cannot be read is the evidence's failure, not the director's: the note\n // goes out without findings, and the record says why.\n unavailable = `the run's traces could not be read: ${error instanceof Error ? error.message : String(error)}`\n }\n }\n if (asking && traces !== undefined) {\n const result = await policy.runPanel({\n continuation,\n task: input.task,\n ...(verdict === undefined ? {} : { verdict }),\n reads: input.reads(),\n questions,\n traces,\n workers,\n ...(policy.best === undefined ? {} : { bar: policy.best }),\n ...(policy.reference === undefined ? {} : { reference: policy.reference }),\n usdCap,\n signal: context.signal,\n })\n if (result.usd === null) panelUsdKnown = false\n else panelUsd += result.usd\n findings = distillFindings(findings, result.findings, new Set(failing), continuation)\n panelRecord = {\n asked: questions.length,\n proposed: result.findings.length,\n admitted: findings.filter((finding) => finding.admittedAt === continuation).length,\n usd: result.usd,\n }\n panelLines = [\n ...result.findings.map((finding) => ({\n kind: 'finding',\n admitted: admitFinding(finding),\n ...finding,\n })),\n ...(result.receipts === undefined\n ? []\n : [{ kind: 'receipts', receipts: result.receipts }]),\n ]\n } else {\n panelRecord = {\n asked: 0,\n proposed: 0,\n admitted: 0,\n usd: 0,\n ...(unavailable === undefined ? {} : { unavailable }),\n }\n }\n }\n const appended = policy.append\n ? await policy.append({\n continuation,\n ...(verdict === undefined ? {} : { verdict }),\n reads: input.reads(),\n signal: context.signal,\n })\n : undefined\n const note = composeContinuationNote({\n profile: policy.profile,\n continuation,\n ...(verdict === undefined ? {} : { verdict }),\n ...(notes.at(-1)?.verdict === undefined ? {} : { previous: notes.at(-1)?.verdict }),\n reads: input.reads().length,\n failures,\n ...(policy.panel === 'on' ? { findings } : {}),\n ...(policy.bar === 'on'\n ? {\n bar: {\n ...(policy.best === undefined ? {} : { best: policy.best }),\n ...(policy.reference === undefined ? {} : { reference: policy.reference }),\n },\n }\n : {}),\n ...(appended === undefined ? {} : { appended: [appended] }),\n ...(input.owed === undefined ? {} : { owed: input.owed }),\n progress: context.progress,\n canReadMore: input.canReadMore,\n canSubmitResult: input.canSubmitResult === true,\n ...(input.sealed === true ? { sealed: true } : {}),\n })\n notes.push({\n note,\n ...(verdict === undefined ? {} : { verdict }),\n ...(panelLines === undefined ? {} : { panel: panelLines }),\n read,\n })\n entries.push({\n continuation,\n attempt: context.attempt,\n noteDigest: noteDigest(note),\n profile: policy.profile.id,\n switches: { failures, panel: policy.panel, bar: policy.bar },\n before: summarizeVerdict(verdict),\n after: null,\n ...(panelRecord === undefined ? {} : { panel: panelRecord }),\n appended: appended === undefined ? 0 : 1,\n })\n if (input.dir !== undefined) {\n await writeContinuationFiles(input.dir, continuation, {\n note,\n ...(verdict === undefined ? {} : { verdict }),\n ...(panelLines === undefined ? {} : { panel: panelLines }),\n })\n }\n return note\n },\n read(continuation) {\n const index = continuation === undefined ? notes.length - 1 : continuation - 1\n const entry = notes[index]\n if (entry === undefined) {\n return {\n found: false,\n reason:\n notes.length === 0\n ? 'no continuation has been sent in this run'\n : `continuations run from 1 to ${notes.length}`,\n }\n }\n return {\n found: true,\n continuation: index + 1,\n note: entry.note,\n // Under `pass-only` the check's lines stay hidden here too.\n verdict:\n failures === 'off' && entry.verdict !== undefined\n ? { pass: entry.verdict.pass }\n : (entry.verdict ?? null),\n findings: findings.filter((finding) => finding.admittedAt <= index + 1),\n }\n },\n entries() {\n closePrevious()\n return entries.map((entry) => ({ ...entry }))\n },\n }\n}\n"],"mappings":";;;;;;AAAA,SAAgB,eAAe,OAAiC;CAC9D,OAAO,OAAO,UAAU,YAAY,OAAO,SAAS,KAAK;AAC3D;;;;;;;;;;ACiBA,SAAgB,eAAe,SAAgC;CAC7D,IAAI,YAAY,MAAM,OAAO,EAAE,MAAM,KAAK;CAC1C,IAAI,OAAO,YAAY,YAAY,YAAY,QAAQ,MAAM,QAAQ,OAAO,GAC1E,OAAO,EAAE,MAAM,MAAM;CAEvB,MAAM,MAAM;CACZ,MAAM,QACJ,OAAO,IAAI,UAAU,YAAY,IAAI,UAAU,QAAQ,CAAC,MAAM,QAAQ,IAAI,KAAK,IAC3E,OAAO,YACL,OAAO,QAAQ,IAAI,KAAgC,CAAC,CAAC,QAClD,UACC,OAAO,MAAM,OAAO,YAAY,OAAO,SAAS,MAAM,EAAE,CAC5D,CACF,IACA,KAAA;CACN,MAAM,WAAW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