@tangle-network/agent-runtime 0.274.0 → 0.279.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/dist/{activation-DiW4KBY-.d.ts → activation-B5NExoOz.d.ts} +137 -105
  2. package/dist/{activation-t5vg1Zyu.js → activation-BkUdrvqh.js} +2 -2
  3. package/dist/{activation-t5vg1Zyu.js.map → activation-BkUdrvqh.js.map} +1 -1
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-B2GTcMvx.js → coordination-driver-BBL_OgRw.js} +95 -28
  7. package/dist/coordination-driver-BBL_OgRw.js.map +1 -0
  8. package/dist/{delegate-Bmt7uynp.js → delegate-CZc7B-Tl.js} +2 -2
  9. package/dist/{delegate-Bmt7uynp.js.map → delegate-CZc7B-Tl.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +2 -2
  12. package/dist/{graph-9khZscYU.js → graph-Ci8Ufs_f.js} +4 -4
  13. package/dist/{graph-9khZscYU.js.map → graph-Ci8Ufs_f.js.map} +1 -1
  14. package/dist/{improvement-cycle-oQFOTgLd.js → improvement-cycle-Bi43xCVa.js} +649 -213
  15. package/dist/improvement-cycle-Bi43xCVa.js.map +1 -0
  16. package/dist/{index-CjLtO4B3.d.ts → index-Dm8SHDGW.d.ts} +51 -17
  17. package/dist/index.d.ts +9 -9
  18. package/dist/index.js +55 -14
  19. package/dist/index.js.map +1 -1
  20. package/dist/intelligence.d.ts +3 -3
  21. package/dist/intelligence.js +3 -3
  22. package/dist/kernel.d.ts +4 -4
  23. package/dist/kernel.js +8 -8
  24. package/dist/{loop-runner-bin-C-rco77U.js → loop-runner-bin-C9FJshTP.js} +3 -3
  25. package/dist/{loop-runner-bin-C-rco77U.js.map → loop-runner-bin-C9FJshTP.js.map} +1 -1
  26. package/dist/{loop-runner-bin-Ceehl2oB.d.ts → loop-runner-bin-D6khQtoC.d.ts} +3 -3
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +5 -5
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/{openai-tools-D8ZYHReZ.d.ts → openai-tools-H8QPhTVE.d.ts} +2 -2
  33. package/dist/platform.d.ts +91 -1
  34. package/dist/platform.js +162 -6
  35. package/dist/platform.js.map +1 -1
  36. package/dist/profiles.d.ts +2 -2
  37. package/dist/{provision-supervisor-Ds43T8XY.js → provision-supervisor-BvnihiyB.js} +3 -3
  38. package/dist/{provision-supervisor-Ds43T8XY.js.map → provision-supervisor-BvnihiyB.js.map} +1 -1
  39. package/dist/{runtime-CtrgIqQm.js → runtime-DsAHXig2.js} +73 -26
  40. package/dist/runtime-DsAHXig2.js.map +1 -0
  41. package/dist/{server-DnSzxChA.js → server-Dyc1zvug.js} +3 -3
  42. package/dist/{server-DnSzxChA.js.map → server-Dyc1zvug.js.map} +1 -1
  43. package/dist/{stream-agent-turn-C2rtL6P2.d.ts → stream-agent-turn-Bk79CnTw.d.ts} +2 -2
  44. package/dist/{structural-rollout-DN8CVdpp.js → structural-rollout-D-0X6lsU.js} +2 -2
  45. package/dist/{structural-rollout-DN8CVdpp.js.map → structural-rollout-D-0X6lsU.js.map} +1 -1
  46. package/dist/{substrate-DPIUXsZ5.d.ts → substrate-CHQ5GYnU.d.ts} +2 -2
  47. package/dist/{supervise-CFyAWebz.js → supervise-DBQdrp7H.js} +171 -13
  48. package/dist/supervise-DBQdrp7H.js.map +1 -0
  49. package/dist/{supervisor-C50SI_Ww.js → supervisor-DtlPj9me.js} +372 -77
  50. package/dist/supervisor-DtlPj9me.js.map +1 -0
  51. package/dist/testing.d.ts +2 -2
  52. package/dist/testing.js +60 -60
  53. package/dist/tui/index.d.ts +1 -1
  54. package/dist/tui/index.js +1 -1
  55. package/dist/{types-r7Fzum3M.d.ts → types-D56jQad-.d.ts} +92 -66
  56. package/package.json +10 -7
  57. package/dist/coordination-driver-B2GTcMvx.js.map +0 -1
  58. package/dist/improvement-cycle-oQFOTgLd.js.map +0 -1
  59. package/dist/runtime-CtrgIqQm.js.map +0 -1
  60. package/dist/supervise-CFyAWebz.js.map +0 -1
  61. package/dist/supervisor-C50SI_Ww.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { l as RuntimeHooks } from "./runtime-hooks-Bj6wJHlH.js";
2
- import { AgentExactRunControlRef, AgentInteractiveSession, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStatus, AgentNativeContextContinuationOptions, AgentNativeContextContinuationResult, AgentProfile, AgentSessionStatus, AgentTurnResult, ChildTaskEvent, ContextTransferRequest, HarnessType, InputPart, InteractionAcknowledgement, InteractionRequest, InteractionResponseCommand, NativeContextBoundaryProof, NativeContextContinuationRequest, NativeContextContinuationTurn, RequestedInteractions, RuntimeEventEnvelope, Sha256Digest, StreamEvent } from "@tangle-network/agent-interface";
3
- import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, DefaultVerdict, DefaultVerdict as DefaultVerdict$1, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, NotFoundError, RunRecord, ToolSpan, TraceStore, UserQuestion, ValidationError } from "@tangle-network/agent-eval";
2
+ import { AgentExactRunControlRef, AgentInteractiveSession, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, AgentInteractiveSessionStatus, AgentNativeContextContinuationOptions, AgentNativeContextContinuationResult, AgentProfile, AgentSessionStatus, AgentTurnResult, ChildTaskEvent, ContextTransferRequest, HarnessType, InputPart, InteractionAcknowledgement, InteractionRequest, InteractionResponseCommand, NativeContextBoundaryProof, NativeContextContinuationRequest, NativeContextContinuationTurn, RequestedInteractions, RuntimeEventEnvelope, Sha256Digest, StreamEvent, WorkspaceCheckpointRef, WorkspaceCheckpointRequest } from "@tangle-network/agent-interface";
3
+ import { AgentEvalError, AgentEvalError as AgentEvalError$1, AgentEvalErrorCode, ConfigError, ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, DefaultVerdict, DefaultVerdict as DefaultVerdict$1, JudgeError, KnowledgeReadinessReport, KnowledgeRequirement, NotFoundError, RunRecord, ToolSpan, TraceAnalysisStore, TraceStore, UserQuestion, ValidationError } from "@tangle-network/agent-eval";
4
4
  import { AgentRunOutcome } from "@tangle-network/sandbox/runtime";
5
5
  import { BackendType, CreateRequestOptions, CreateSandboxOptions, PromptOptions, SandboxEvent, SandboxInstance } from "@tangle-network/sandbox";
6
6
  import { AgentEnvironment, AgentEnvironmentCapabilities, AgentEnvironmentProvider, AgentTurnInput, AgentTurnResult as AgentTurnResult$1, CreateAgentEnvironmentInput } from "@tangle-network/agent-interface/environment-provider";
@@ -317,6 +317,14 @@ type RuntimeStreamEvent = RuntimeCanonicalStreamEvent | {
317
317
  task?: AgentTaskSpec;
318
318
  session?: RuntimeSession;
319
319
  model: string;
320
+ /** The tool names offered to the model this turn, when the caller knows its own offered
321
+ * set (e.g. the in-process tool loop's `ToolSpec[]`). Exported as the OTel GenAI
322
+ * `gen_ai.tool.definitions` attribute — a contract gate reads this to tell "the model was
323
+ * offered no tools" from "the offered set was never recorded", the same distinction
324
+ * Claude Code's own `init` record gives a stream-json capture. Absent when the producer
325
+ * does not know its own offered set (e.g. a sandboxed CLI harness, whose tool list is the
326
+ * harness's own and belongs to its own transcript reader instead). */
327
+ tools?: readonly string[];
320
328
  tokensIn?: number;
321
329
  tokensOut?: number;
322
330
  /** False when the numeric token subtotal is incomplete or absent. */
@@ -2160,9 +2168,13 @@ interface ContinuationPanelInput {
2160
2168
  readonly reads: ReadonlyArray<CheckRead>;
2161
2169
  /** The expanded questions, one per atomic question. */
2162
2170
  readonly questions: ReadonlyArray<string>;
2163
- /** `<runDir>/root-stream.jsonl`, the director's own trace, when the run has a directory. */
2164
- readonly rootStreamPath?: string;
2165
- /** Settled workers, with the evidence reference their trace is read from. */
2171
+ /**
2172
+ * The run's own traces, one per agent and named by its node id: the manager's root stream, when
2173
+ * it is the root, and each settled worker's tool trace (`./run-traces.ts`). The panel runs only
2174
+ * when the run has recorded a span.
2175
+ */
2176
+ readonly traces: TraceAnalysisStore;
2177
+ /** Settled workers; each one's trace in `traces` is named by its `id`. */
2166
2178
  readonly workers: ReadonlyArray<{
2167
2179
  readonly id: string;
2168
2180
  readonly label: string;
@@ -2287,6 +2299,8 @@ interface ContinuationEntry {
2287
2299
  readonly proposed: number;
2288
2300
  readonly admitted: number;
2289
2301
  readonly usd: number | null;
2302
+ /** Why the panel asked nothing this time, when it could not run. */
2303
+ readonly unavailable?: string;
2290
2304
  };
2291
2305
  /** Sections a play appended. */
2292
2306
  readonly appended: number;
@@ -2341,9 +2355,10 @@ interface DriverRetryPolicy extends UnavailablePausePolicy {
2341
2355
  /** Consecutive failures that changed NOTHING (no metered spend, no settlement, no submission)
2342
2356
  * before the run gives up. Default 3. A failure that made progress resets the count. */
2343
2357
  readonly maxConsecutiveFailures?: number;
2344
- /** Ceiling on failed invocations across this driver run, regardless of progress. Default 8,
2345
- * minimum 1. Successful continuations do not consume this allowance or reset it.
2346
- * This bounds repeated crashes that each make enough progress to reset the barren streak. */
2358
+ /** Ceiling on failed invocations across this driver run, regardless of progress. Default: no
2359
+ * ceiling, minimum 1. A failure that made no progress is bounded by `maxConsecutiveFailures`;
2360
+ * failures that each made progress are bounded by the budget and the deadline, like the work
2361
+ * they did. Successful continuations do not consume this allowance or reset it. */
2347
2362
  readonly maxAttempts?: number;
2348
2363
  /** Backoff before the first retry, doubling per consecutive failure. Default 2000ms. */
2349
2364
  readonly initialBackoffMs?: number;
@@ -2505,6 +2520,9 @@ interface DriverLoopRecord {
2505
2520
  interface DriverContinuationRecord extends DriverLoopRecord {
2506
2521
  /** Re-entries that ran in a new environment because the provider no longer held the old one. */
2507
2522
  readonly environmentReplacements: number;
2523
+ /** Of those, the ones whose new environment was created from the lost one's latest checkpoint.
2524
+ * The journal's `workspace-restored` receipts say whether each restore was verified. */
2525
+ readonly workspaceRestores: number;
2508
2526
  /** How the run was closed, when something closed it: an accepted `submit_result`, the
2509
2527
  * manager's own `stop` (served only to a manager with no check), a `report_blocked` whose
2510
2528
  * probe failed, or the caller's progress `stopRule`. Absent when the loop ended on a bound or a
@@ -3390,62 +3408,6 @@ declare function padTraceId(id: string): string;
3390
3408
  * BEFORE the span closes (a node opened at spawn and parented by its children) uses this one
3391
3409
  * generator instead of a second copy of it. */
3392
3410
  declare function generateSpanId(): string;
3393
- /** Wire version the eval-runs ingest enforces (X-Tangle-Wire-Version + body). */
3394
- declare const INTELLIGENCE_WIRE_VERSION = "2026-05-26.v1";
3395
- interface EvalRunGeneration {
3396
- /** 0-based ordinal of this generation within the run (required by ingest). */
3397
- index: number;
3398
- /** Identity of the proposed surface change (content-addressed hash). */
3399
- surfaceHash: string;
3400
- /** Arbitrary provenance for this generation (rationale, evidence, source). */
3401
- surface?: unknown;
3402
- /** Per-scenario results; empty until the generation is measured. */
3403
- cells?: unknown[];
3404
- /** Mean composite score (0 when unmeasured — pair with labels.measured). */
3405
- compositeMean: number;
3406
- costUsd: number;
3407
- durationMs: number;
3408
- }
3409
- interface EvalRunEvent {
3410
- runId: string;
3411
- runDir: string;
3412
- /** ISO timestamp. */
3413
- timestamp: string;
3414
- status: 'started' | 'baseline-complete' | 'generation-complete' | 'gate-decided' | 'finished' | 'errored';
3415
- labels?: Record<string, string>;
3416
- baseline?: EvalRunGeneration;
3417
- generations?: EvalRunGeneration[];
3418
- gateDecision?: 'ship' | 'hold' | 'need_more_work' | 'model_ceiling' | 'arch_ceiling';
3419
- holdoutLift?: number;
3420
- totalCostUsd: number;
3421
- totalDurationMs: number;
3422
- errorMessage?: string;
3423
- }
3424
- interface EvalRunsExportConfig {
3425
- /** Bearer key — tenant is resolved server-side from it. Reads TANGLE_API_KEY. */
3426
- apiKey?: string;
3427
- /** Intelligence base. Reads TANGLE_INTELLIGENCE_URL env, else prod. */
3428
- base?: string;
3429
- /** Idempotency-Key header (e.g. the runId) — safe retries + upsert. */
3430
- idempotencyKey?: string;
3431
- }
3432
- interface EvalRunsExportResult {
3433
- ok: boolean;
3434
- status: number;
3435
- accepted: number;
3436
- rejected: Array<{
3437
- index: number;
3438
- reason: string;
3439
- }>;
3440
- }
3441
- /**
3442
- * Ship self-improvement eval-run events to Tangle Intelligence. Unlike the
3443
- * best-effort span exporter, this RESOLVES with the ingest verdict (accepted /
3444
- * rejected per event) so a consumer's loop can assert its provenance landed.
3445
- * Success requires a complete, valid acknowledgement accepting every event.
3446
- * Throws on a missing key, network failure, or unreadable/inconsistent acknowledgement.
3447
- */
3448
- declare function exportEvalRuns(events: EvalRunEvent[], config?: EvalRunsExportConfig): Promise<EvalRunsExportResult>;
3449
3411
  //#endregion
3450
3412
  //#region src/mcp/trace-propagation.d.ts
3451
3413
  interface TraceContext {
@@ -4808,6 +4770,13 @@ interface TreeView {
4808
4770
  }
4809
4771
  /** Journaled spawn-tree events (B1/B2). `seq` is the cursor order; `at` is an ISO
4810
4772
  * timestamp for human inspection only (NOT a replay input). */
4773
+ /** The file Runtime writes into a retained owner's workspace immediately before a checkpoint, and
4774
+ * reads back from a restored environment to report whether the marker matches. */
4775
+ interface WorkspaceCheckpointMarker {
4776
+ /** Workspace-relative path. */
4777
+ readonly path: string;
4778
+ readonly content: string;
4779
+ }
4811
4780
  type SpawnEvent = {
4812
4781
  kind: 'spawned';
4813
4782
  id: NodeId;
@@ -5174,6 +5143,63 @@ type SpawnEvent = {
5174
5143
  detail?: string;
5175
5144
  seq: number;
5176
5145
  at: string;
5146
+ } | {
5147
+ /** Durable intent written before the provider creates a checkpoint. A missing result
5148
+ * is reconciled through exact operation lookup before its source can be released.
5149
+ * Informational, like `workspace-checkpoint`. */
5150
+ kind: 'workspace-checkpoint-requested';
5151
+ id: NodeId;
5152
+ provider: string;
5153
+ environmentId: string;
5154
+ request: WorkspaceCheckpointRequest;
5155
+ marker?: WorkspaceCheckpointMarker;
5156
+ seq: number;
5157
+ at: string;
5158
+ } | {
5159
+ /** A durable checkpoint of a retained owner's workspace, taken while its manager coordinated.
5160
+ * When the provider later loses the owner's environment, the next invocation is created from
5161
+ * the latest of these, so a re-entered director keeps the files it wrote. `marker` is the
5162
+ * file Runtime wrote into the workspace immediately before the checkpoint; a restored
5163
+ * environment reports whether it holds that file with that content. Informational:
5164
+ * replay, `materializeTreeView`, and cost readers skip it, and its `seq` is per node,
5165
+ * outside the cursor-uniqueness namespace. */
5166
+ kind: 'workspace-checkpoint';
5167
+ id: NodeId;
5168
+ provider: string;
5169
+ /** The environment the checkpoint was taken from. */
5170
+ environmentId: string;
5171
+ checkpoint: WorkspaceCheckpointRef;
5172
+ marker?: WorkspaceCheckpointMarker;
5173
+ seq: number;
5174
+ at: string;
5175
+ } | {
5176
+ /** Exact checkpoint cleanup outcome; unconfirmed resources remain pending across resume.
5177
+ * Informational, like `workspace-checkpoint`. */
5178
+ kind: 'workspace-checkpoint-cleanup';
5179
+ id: NodeId;
5180
+ provider: string;
5181
+ environmentId: string;
5182
+ checkpointId: string;
5183
+ confirmed: boolean;
5184
+ seq: number;
5185
+ at: string;
5186
+ } | {
5187
+ /** A new environment of a retained owner was created from a `workspace-checkpoint`, and
5188
+ * Runtime read the checkpoint's marker back from it. `verified` is true only when the file
5189
+ * held the exact content written before the checkpoint. Informational, like
5190
+ * `workspace-checkpoint`. */
5191
+ kind: 'workspace-restored';
5192
+ id: NodeId;
5193
+ provider: string;
5194
+ /** The new environment. */
5195
+ environmentId: string;
5196
+ checkpointId: string;
5197
+ /** The environment the checkpoint was taken from. */
5198
+ sourceEnvironmentId: string;
5199
+ verified: boolean;
5200
+ detail?: string;
5201
+ seq: number;
5202
+ at: string;
5177
5203
  } | {
5178
5204
  /** One GRAPH-EDGE traversal (`runGraph`): what the runtime actually DELIVERED across a
5179
5205
  * delegates/analyzes edge, with byte counts — the observability that makes an edge's
@@ -5791,5 +5817,5 @@ interface WidenGate<Out> {
5791
5817
  readonly judgeExempt?: boolean;
5792
5818
  }
5793
5819
  //#endregion
5794
- export { SpawnJournal as $, RunAgentTaskOptions as $a, spendFromUsageEvents as $i, HarnessTranscriptCapture as $n, ConfigError as $r, loopEventToOtelSpan as $t, NodeExecutionIdentity as A, RuntimeRunCost as Aa, RetainedRunEventOptions as Ai, TraceSource as An, ContinuationAppend as Ar, createPropagatingTraceEmitter as At, ResultBlobStore as B, AgentExecutionBackend as Ba, BudgetPoolRestore as Bi, ScopeProgressInput as Bn, VerdictSummary as Br, OtelAttribute as Bt, ExecutorToolCall as C, OutputAdapter as Ca, RetainedRunAdmission as Ci, pollFor as Cn, UnavailablePausePolicy as Cr, WorkerTraceResolver as Ct, MaterializedExecutionIdentity as D, ValidationCtx as Da, RetainedRunDispatchedAdmission as Di, SessionMessageLike as Dn, CheckRead as Dr, workerTraceHeaders as Dt, HeldEnvironment as E, SelectionReceipt as Ea, RetainedRunCancellation as Ei, waitUntil as En, CONTINUATION_FACTS as Er, workerTraceEnv as Et, ProviderModelAttemptEvidence as F, RuntimeRunStatus as Fa, RetainedRunStartMaterial as Fi, RetainedPendingCause as Fn, ContinuationPanelInput as Fr, EvalRunGeneration as Ft, RootMaterialization as G, AgentTaskRunResult as Ga, ReservationHolder as Gi, ReconnectRetainedInteractiveRunOptions as Gn, distillFindings as Gr, RuntimeEventOtelOptions as Gt, ResumedWork as H, AgentRuntimeEvent as Ha, BudgetReconcileFault as Hi, WorkerProgress as Hn, admitFinding as Hr, OtelExportStats as Ht, ProviderModelExecutionEvidence as I, startRuntimeRun as Ia, RetainedRunTurnInput as Ii, ActivityLog as In, ContinuationPanelResult as Ir, EvalRunsExportConfig as It, RootStreamReceipt as J, BackendErrorDetail as Ja, ReservationStage as Ji, RetainedInteractiveEnvironmentInput as Jn, passedItems as Jr, buildRuntimeEventOtelSpans as Jt, RootProviderModelEvidence as K, AgentTaskSpec as Ka, ReservationRejection as Ki, RecoverRetainedInteractiveRunOptions as Kn, expandQuestions as Kr, buildLoopOtelSpans as Kt, RecursiveReservationPolicy as L, AgentAdapter as La, StartRetainedRunInEnvironmentOptions as Li, ActivityNote as Ln, ContinuationPolicy as Lr, EvalRunsExportResult as Lt, NodeSnapshot as M, RuntimeRunOptions as Ma, RetainedRunIntentAdmission as Mi, decodeToolPart as Mn, ContinuationEntry as Mr, readTraceContextFromEnv as Mt, NodeStatus as N, RuntimeRunPersistenceAdapter as Na, RetainedRunReplayPoint as Ni, sandboxSessionTraceSource as Nn, ContinuationNoteInput as Nr, traceContextToEnv as Nt, MaterializedModelIdentity as O, Validator as Oa, RetainedRunEffect as Oi, SessionTraceBox as On, CheckUnavailableError as Or, workerTraceSeamKey as Ot, ProfileMaterializationReceipt as P, RuntimeRunRow as Pa, RetainedRunSnapshot as Pi, RetainedChildRecovery as Pn, ContinuationPanel as Pr, EvalRunEvent as Pt, SpawnEvent as Q, OpenAIChatToolChoice as Qa, createBudgetPool as Qi, HarnessTranscriptArtifact as Qn, BackendTransportError as Qr, generateSpanId as Qt, ResourceLimit as R, AgentBackendContext as Ra, StartRetainedRunOptions as Ri, DEFAULT_STALL_AFTER_MS as Rn, ContinuationProfile as Rr, INTELLIGENCE_WIRE_VERSION as Rt, ExecutorTeardownWarning as S, MountRecorder as Sa, RetainedInteractiveStartedAdmission as Si, isWaitOutcome as Sn, upstreamUnavailableSignal as Sr, WorkerTraceUnavailableReason as St, Handle as T, SandboxClient as Ta, RetainedRunCancelOptions as Ti, validateWaitSpec as Tn, CONTINUATIONS_DIR as Tr, readWorkerTraceContext as Tt, RetainedExecutionState as U, AgentRuntimeEventSink as Ua, LeakedReservation as Ui, createActivityLog as Un, checkVerdictOf as Ur, OtelExporter as Ut, ResumedKeyState as V, AgentKnowledgeProvider as Va, BudgetReadout as Vi, TeamProgress as Vn, admitContinuationPolicy as Vr, OtelExportConfig as Vt, RootHandle as W, AgentTaskContext as Wa, ReservationFloor as Wi, readWorkerProgress as Wn, composeContinuationNote as Wr, OtelSpan as Wt, Scope as X, OpenAIChatResponseFormat as Xa, ReservationWaitRefused as Xi, RetainedInteractiveStartMaterial as Xn, AgentEvalError$1 as Xr, createOtelExporter as Xt, Runtime as Y, KnowledgeReadinessDecision as Ya, ReservationTicket as Yi, RetainedInteractiveRunHandle as Yn, verdictFromJudgeScore as Yr, createOpenInferenceFileExporter as Yt, Settled as Z, OpenAIChatTool as Za, ReserveOptions as Zi, StartRetainedInteractiveRunOptions as Zn, AgentEvalErrorCode as Zr, exportEvalRuns as Zt, ExecutorMaterialization as _, LoopTokenUsage as _a, RecoverRetainedRunOptions as _i, WaitProbe as _n, DriverReentry as _r, WaitOpts as _t, BudgetOverspend as a, LoopDecisionPayload as aa, RetainedRunAdmissionError as ai, RuntimeStreamEventSink as an, captureHarnessTranscript as ar, SpendGap as at, ExecutorRegistry as b, LoopWinner as ba, RetainedInteractiveEnvironmentAdmission as bi, WaitSpec as bn, classifyDriverFailure as br, WorkerInteractiveUnavailableReason as bt, EnvironmentTeardownReceipt as c, LoopIterationEndedPayload as ca, ValidationError as ci, SanitizedKnowledgeReadinessReport as cn, DriverAttemptRecord as cr, SubtreeSummary as ct, ExecutorAccounting as d, LoopPlanDescription as da, createWorkerSlots as di, createRuntimeStreamEventCollector as dn, DriverBudgetReadout as dr, SupervisorOpts as dt, AgentRunSpec as ea, JudgeError as ei, padSpanId as en, RunAgentTaskStreamOptions as eo, HarnessTranscriptEvidence as er, SpawnOpts as et, ExecutorCancellation as f, LoopPlanPayload as fa, NativeContextContinuationExecution as fi, sanitizeAgentRuntimeEvent as fn, DriverContinuationRecord as fr, TokenUsageProvenance as ft, ExecutorFactory as g, LoopTeardownFailedPayload as ga, RecoverRetainedRunIntentOptions as gi, WaitOutcome as gn, DriverProgressMark as gr, UsageEvent as gt, ExecutorExecutionBinding as h, LoopStartedPayload as ha, ReconnectRetainedRunOptions as hi, PendingWait as hn, DriverLoopRecord as hr, UnknownMaterializationReason as ht, Budget as i, Iteration as ia, RetainedInteractiveBindingError as ii, RuntimeStreamEventCollector as in, RuntimeStreamEvent as io, ReadableEnvironment as ir, SpendChannel as it, NodeId as j, RuntimeRunHandle as ja, RetainedRunHandle as ji, createPushTraceSource as jn, ContinuationContext as jr, mergeTraceEnv as jt, NoWinnerError as k, RuntimeRunCompleteInput as ka, RetainedRunEnvironmentAdmission as ki, ToolStepInput as kn, CheckVerdict as kr, TraceContext as kt, ExecutionBindingReceipt as l, LoopIterationStartedPayload as la, SlotPermit as li, SanitizedKnowledgeRequirement as ln, DriverAttemptStop as lr, SupervisedResult as lt, ExecutorContext as m, LoopSandboxPlacement as ma, NativeContextContinuationInput as mi, sanitizeRuntimeStreamEvent as mn, DriverFailureClass as mr, UnconfirmedTeardown as mt, AgentExecutionRef as n, Driver as na, PlannerError as ni, toOtelAttributes as nn, RuntimeSession as no, HarnessTranscriptUnavailable as nr, SpawnRejection as nt, BudgetViolation as o, LoopEndedPayload as oa, RetainedRunDispatchBindingError as oi, RuntimeStreamEventSummary as on, harnessTranscriptArtifact as or, SteerableRootHandle as ot, ExecutorCancellationRequest as p, LoopResult as pa, NativeContextContinuationHandle as pi, sanitizeKnowledgeReadinessReport as pn, DriverContractState as pr, TreeView as pt, RootSignal as q, AgentTaskStatus as qa, ReservationShortfall as qi, RetainedInteractiveAdmissionHook as qn, failedItems as qr, buildLoopSpanNodes as qt, AgentSpec as r, ExecCtx as ra, RetainedInteractiveAdmissionError as ri, RuntimeEventCollector as rn, RuntimeSessionStore as ro, HarnessTranscriptUnavailableReason as rr, Spend as rt, DefaultVerdict as s, LoopIterationDispatchPayload as sa, RuntimeRunStateError as si, RuntimeTelemetryOptions as sn, persistHarnessTranscript as sr, SubtreeResult as st, Agent as t, DefaultVerdict$1 as ta, NotFoundError as ti, padTraceId as tn, RuntimeCanonicalStreamEvent as to, HarnessTranscriptFile as tr, SpawnPrior as tt, Executor as u, LoopLineageOptions as ua, WorkerSlots as ui, createRuntimeEventCollector as un, DriverAttemptsExhaustedError as ur, Supervisor as ut, ExecutorNodeContext as v, LoopTraceEmitter as va, RecoverRetainedRunResult as vi, WaitProbeRegistry as vn, DriverRepromptRefusal as vr, WidenGate as vt, FleetYield as w, RunProvenance as wa, RetainedRunAdmissionHook as wi, timerAt as wn, AdmittedFinding as wr, WorkerTraceSeamCarrier as wt, ExecutorResult as x, MountManifestEntry as xa, RetainedInteractiveIntentAdmission as xi, createWaitProbes as xn, summarizeDriverAttempts as xr, WorkerTraceEvidence as xt, ExecutorProgressEvent as y, LoopTraceEvent as ya, RetainedInteractiveAdmission as yi, WaitRejection as yn, DriverRetryPolicy as yr, WorkerInteractiveSession as yt, ResourceSpend as z, AgentBackendInput as za, BudgetPool as zi, ExecutorProgress as zn, PanelFinding as zr, LoopSpanNode as zt };
5795
- //# sourceMappingURL=types-r7Fzum3M.d.ts.map
5820
+ export { SpawnJournal as $, RuntimeStreamEvent as $a, Iteration as $i, ReadableEnvironment as $n, RetainedInteractiveBindingError as $r, RuntimeStreamEventCollector as $t, NodeExecutionIdentity as A, RuntimeRunStatus as Aa, RetainedRunStartMaterial as Ai, RetainedPendingCause as An, ContinuationPanelInput as Ar, TraceContext as At, ResultBlobStore as B, AgentTaskRunResult as Ba, ReservationHolder as Bi, ReconnectRetainedInteractiveRunOptions as Bn, distillFindings as Br, OtelSpan as Bt, ExecutorToolCall as C, Validator as Ca, RetainedRunEffect as Ci, SessionTraceBox as Cn, CheckUnavailableError as Cr, WorkspaceCheckpointMarker as Ct, MaterializedExecutionIdentity as D, RuntimeRunOptions as Da, RetainedRunIntentAdmission as Di, decodeToolPart as Dn, ContinuationEntry as Dr, workerTraceEnv as Dt, HeldEnvironment as E, RuntimeRunHandle as Ea, RetainedRunHandle as Ei, createPushTraceSource as En, ContinuationContext as Er, readWorkerTraceContext as Et, ProviderModelAttemptEvidence as F, AgentExecutionBackend as Fa, BudgetPoolRestore as Fi, ScopeProgressInput as Fn, VerdictSummary as Fr, LoopSpanNode as Ft, RootMaterialization as G, OpenAIChatResponseFormat as Ga, ReservationWaitRefused as Gi, RetainedInteractiveStartMaterial as Gn, AgentEvalError$1 as Gr, createOpenInferenceFileExporter as Gt, ResumedWork as H, AgentTaskStatus as Ha, ReservationShortfall as Hi, RetainedInteractiveAdmissionHook as Hn, failedItems as Hr, buildLoopOtelSpans as Ht, ProviderModelExecutionEvidence as I, AgentKnowledgeProvider as Ia, BudgetReadout as Ii, TeamProgress as In, admitContinuationPolicy as Ir, OtelAttribute as It, RootStreamReceipt as J, RunAgentTaskOptions as Ja, spendFromUsageEvents as Ji, HarnessTranscriptCapture as Jn, ConfigError as Jr, loopEventToOtelSpan as Jt, RootProviderModelEvidence as K, OpenAIChatTool as Ka, ReserveOptions as Ki, StartRetainedInteractiveRunOptions as Kn, AgentEvalErrorCode as Kr, createOtelExporter as Kt, RecursiveReservationPolicy as L, AgentRuntimeEvent as La, BudgetReconcileFault as Li, WorkerProgress as Ln, admitFinding as Lr, OtelExportConfig as Lt, NodeSnapshot as M, AgentAdapter as Ma, StartRetainedRunInEnvironmentOptions as Mi, ActivityNote as Mn, ContinuationPolicy as Mr, mergeTraceEnv as Mt, NodeStatus as N, AgentBackendContext as Na, StartRetainedRunOptions as Ni, DEFAULT_STALL_AFTER_MS as Nn, ContinuationProfile as Nr, readTraceContextFromEnv as Nt, MaterializedModelIdentity as O, RuntimeRunPersistenceAdapter as Oa, RetainedRunReplayPoint as Oi, sandboxSessionTraceSource as On, ContinuationNoteInput as Or, workerTraceHeaders as Ot, ProfileMaterializationReceipt as P, AgentBackendInput as Pa, BudgetPool as Pi, ExecutorProgress as Pn, PanelFinding as Pr, traceContextToEnv as Pt, SpawnEvent as Q, RuntimeSessionStore as Qa, ExecCtx as Qi, HarnessTranscriptUnavailableReason as Qn, RetainedInteractiveAdmissionError as Qr, RuntimeEventCollector as Qt, ResourceLimit as R, AgentRuntimeEventSink as Ra, LeakedReservation as Ri, createActivityLog as Rn, checkVerdictOf as Rr, OtelExportStats as Rt, ExecutorTeardownWarning as S, ValidationCtx as Sa, RetainedRunDispatchedAdmission as Si, SessionMessageLike as Sn, CheckRead as Sr, WorkerTraceUnavailableReason as St, Handle as T, RuntimeRunCost as Ta, RetainedRunEventOptions as Ti, TraceSource as Tn, ContinuationAppend as Tr, WorkerTraceSeamCarrier as Tt, RetainedExecutionState as U, BackendErrorDetail as Ua, ReservationStage as Ui, RetainedInteractiveEnvironmentInput as Un, passedItems as Ur, buildLoopSpanNodes as Ut, ResumedKeyState as V, AgentTaskSpec as Va, ReservationRejection as Vi, RecoverRetainedInteractiveRunOptions as Vn, expandQuestions as Vr, RuntimeEventOtelOptions as Vt, RootHandle as W, KnowledgeReadinessDecision as Wa, ReservationTicket as Wi, RetainedInteractiveRunHandle as Wn, verdictFromJudgeScore as Wr, buildRuntimeEventOtelSpans as Wt, Scope as X, RuntimeCanonicalStreamEvent as Xa, DefaultVerdict$1 as Xi, HarnessTranscriptFile as Xn, NotFoundError as Xr, padTraceId as Xt, Runtime as Y, RunAgentTaskStreamOptions as Ya, AgentRunSpec as Yi, HarnessTranscriptEvidence as Yn, JudgeError as Yr, padSpanId as Yt, Settled as Z, RuntimeSession as Za, Driver as Zi, HarnessTranscriptUnavailable as Zn, PlannerError as Zr, toOtelAttributes as Zt, ExecutorMaterialization as _, MountRecorder as _a, RetainedInteractiveStartedAdmission as _i, isWaitOutcome as _n, upstreamUnavailableSignal as _r, WaitOpts as _t, BudgetOverspend as a, LoopLineageOptions as aa, WorkerSlots as ai, createRuntimeEventCollector as an, DriverAttemptsExhaustedError as ar, SpendGap as at, ExecutorRegistry as b, SandboxClient as ba, RetainedRunCancelOptions as bi, validateWaitSpec as bn, CONTINUATIONS_DIR as br, WorkerInteractiveUnavailableReason as bt, EnvironmentTeardownReceipt as c, LoopResult as ca, NativeContextContinuationHandle as ci, sanitizeKnowledgeReadinessReport as cn, DriverContractState as cr, SubtreeSummary as ct, ExecutorAccounting as d, LoopTeardownFailedPayload as da, RecoverRetainedRunIntentOptions as di, WaitOutcome as dn, DriverProgressMark as dr, SupervisorOpts as dt, LoopDecisionPayload as ea, RetainedRunAdmissionError as ei, RuntimeStreamEventSink as en, captureHarnessTranscript as er, SpawnOpts as et, ExecutorCancellation as f, LoopTokenUsage as fa, RecoverRetainedRunOptions as fi, WaitProbe as fn, DriverReentry as fr, TokenUsageProvenance as ft, ExecutorFactory as g, MountManifestEntry as ga, RetainedInteractiveIntentAdmission as gi, createWaitProbes as gn, summarizeDriverAttempts as gr, UsageEvent as gt, ExecutorExecutionBinding as h, LoopWinner as ha, RetainedInteractiveEnvironmentAdmission as hi, WaitSpec as hn, classifyDriverFailure as hr, UnknownMaterializationReason as ht, Budget as i, LoopIterationStartedPayload as ia, SlotPermit as ii, SanitizedKnowledgeRequirement as in, DriverAttemptStop as ir, SpendChannel as it, NodeId as j, startRuntimeRun as ja, RetainedRunTurnInput as ji, ActivityLog as jn, ContinuationPanelResult as jr, createPropagatingTraceEmitter as jt, NoWinnerError as k, RuntimeRunRow as ka, RetainedRunSnapshot as ki, RetainedChildRecovery as kn, ContinuationPanel as kr, workerTraceSeamKey as kt, ExecutionBindingReceipt as l, LoopSandboxPlacement as la, NativeContextContinuationInput as li, sanitizeRuntimeStreamEvent as ln, DriverFailureClass as lr, SupervisedResult as lt, ExecutorContext as m, LoopTraceEvent as ma, RetainedInteractiveAdmission as mi, WaitRejection as mn, DriverRetryPolicy as mr, UnconfirmedTeardown as mt, AgentExecutionRef as n, LoopIterationDispatchPayload as na, RuntimeRunStateError as ni, RuntimeTelemetryOptions as nn, persistHarnessTranscript as nr, SpawnRejection as nt, BudgetViolation as o, LoopPlanDescription as oa, createWorkerSlots as oi, createRuntimeStreamEventCollector as on, DriverBudgetReadout as or, SteerableRootHandle as ot, ExecutorCancellationRequest as p, LoopTraceEmitter as pa, RecoverRetainedRunResult as pi, WaitProbeRegistry as pn, DriverRepromptRefusal as pr, TreeView as pt, RootSignal as q, OpenAIChatToolChoice as qa, createBudgetPool as qi, HarnessTranscriptArtifact as qn, BackendTransportError as qr, generateSpanId as qt, AgentSpec as r, LoopIterationEndedPayload as ra, ValidationError as ri, SanitizedKnowledgeReadinessReport as rn, DriverAttemptRecord as rr, Spend as rt, DefaultVerdict as s, LoopPlanPayload as sa, NativeContextContinuationExecution as si, sanitizeAgentRuntimeEvent as sn, DriverContinuationRecord as sr, SubtreeResult as st, Agent as t, LoopEndedPayload as ta, RetainedRunDispatchBindingError as ti, RuntimeStreamEventSummary as tn, harnessTranscriptArtifact as tr, SpawnPrior as tt, Executor as u, LoopStartedPayload as ua, ReconnectRetainedRunOptions as ui, PendingWait as un, DriverLoopRecord as ur, Supervisor as ut, ExecutorNodeContext as v, OutputAdapter as va, RetainedRunAdmission as vi, pollFor as vn, UnavailablePausePolicy as vr, WidenGate as vt, FleetYield as w, RuntimeRunCompleteInput as wa, RetainedRunEnvironmentAdmission as wi, ToolStepInput as wn, CheckVerdict as wr, WorkerTraceResolver as wt, ExecutorResult as x, SelectionReceipt as xa, RetainedRunCancellation as xi, waitUntil as xn, CONTINUATION_FACTS as xr, WorkerTraceEvidence as xt, ExecutorProgressEvent as y, RunProvenance as ya, RetainedRunAdmissionHook as yi, timerAt as yn, AdmittedFinding as yr, WorkerInteractiveSession as yt, ResourceSpend as z, AgentTaskContext as za, ReservationFloor as zi, readWorkerProgress as zn, composeContinuationNote as zr, OtelExporter as zt };
5821
+ //# sourceMappingURL=types-D56jQad-.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "0.274.0",
3
+ "version": "0.279.0",
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": {
@@ -98,8 +98,9 @@
98
98
  "@arethetypeswrong/cli": "0.18.5",
99
99
  "@biomejs/biome": "^2.5.11",
100
100
  "@modelcontextprotocol/sdk": "1.30.0",
101
- "@tangle-network/agent-eval": "0.190.1",
102
- "@tangle-network/agent-interface": "^2.11.0",
101
+ "@tangle-network/agent-eval": "0.197.0",
102
+ "@tangle-network/agent-interface": "^2.13.0",
103
+ "@tangle-network/agent-provider-tangle": "1.7.0",
103
104
  "@tangle-network/sandbox": ">=0.36.4 <0.48.0",
104
105
  "@types/node": "26.4.0",
105
106
  "@types/tar-stream": "3.1.4",
@@ -121,13 +122,13 @@
121
122
  },
122
123
  "license": "MIT",
123
124
  "peerDependencies": {
124
- "@tangle-network/agent-eval": ">=0.188.0 <0.191.0",
125
- "@tangle-network/agent-interface": "^2.11.0",
126
- "@tangle-network/sandbox": ">=0.36.4 <0.48.0 || ^0.49.0-0 || ^0.50.0 || ^0.51.0 || ^0.52.0 || ^0.53.0"
125
+ "@tangle-network/agent-eval": ">=0.197.0 <0.198.0",
126
+ "@tangle-network/agent-interface": "^2.13.0",
127
+ "@tangle-network/sandbox": ">=0.36.4 <0.48.0 || ^0.49.0-0 || ^0.50.0 || ^0.51.0 || ^0.52.0 || ^0.53.0 || ^0.54.0 || ^0.55.0"
127
128
  },
128
129
  "dependencies": {
129
130
  "@tangle-network/agent-core": ">=0.9.6 <0.10.0",
130
- "@tangle-network/agent-knowledge": "^17.1.5",
131
+ "@tangle-network/agent-knowledge": "^17.1.8",
131
132
  "@tangle-network/agent-profile-materialize": ">=0.20.1 <0.21.0",
132
133
  "@tangle-network/agent-trace-contract": "^1.2.0",
133
134
  "tar-stream": "3.2.1"
@@ -149,7 +150,9 @@
149
150
  "check:publish-workflow": "node scripts/check-publish-workflow.mjs",
150
151
  "check:upstream-evidence-workflow": "node scripts/check-upstream-evidence-workflow.mjs",
151
152
  "check:version-bump": "node scripts/check-version-bump.mjs",
153
+ "check:release-notes": "node scripts/release-notes.mjs",
152
154
  "check:api-surface": "node scripts/check-api-surface.mjs",
155
+ "check:api-surface-record": "node scripts/check-api-surface.mjs --record",
153
156
  "api:surface": "node scripts/check-api-surface.mjs --write",
154
157
  "release:prepare": "node scripts/prepare-release.mjs",
155
158
  "verify:static-imports": "node scripts/verify-static-imports.mjs",