@tangle-network/agent-runtime 0.261.0 → 0.262.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 (54) hide show
  1. package/dist/{activation-BwrMmguq.js → activation-C0AoYRgS.js} +2 -2
  2. package/dist/{activation-BwrMmguq.js.map → activation-C0AoYRgS.js.map} +1 -1
  3. package/dist/{activation-BpJ2CmXx.d.ts → activation-CozZXBTg.d.ts} +2 -2
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-LmDxHvAO.js → coordination-driver-COGC8FK2.js} +302 -23
  7. package/dist/coordination-driver-COGC8FK2.js.map +1 -0
  8. package/dist/{delegate-rkhJf5w7.js → delegate-BC7Au73v.js} +2 -2
  9. package/dist/{delegate-rkhJf5w7.js.map → delegate-BC7Au73v.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +2 -2
  12. package/dist/{graph-Bn3wSH8-.js → graph-DgODOGWN.js} +3 -3
  13. package/dist/{graph-Bn3wSH8-.js.map → graph-DgODOGWN.js.map} +1 -1
  14. package/dist/{improvement-cycle-DYiwfjWY.js → improvement-cycle-DirqO-fX.js} +3 -3
  15. package/dist/{improvement-cycle-DYiwfjWY.js.map → improvement-cycle-DirqO-fX.js.map} +1 -1
  16. package/dist/{index-tubViIQJ.d.ts → index-B8tXCisZ.d.ts} +136 -288
  17. package/dist/index.d.ts +6 -6
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence.d.ts +3 -3
  20. package/dist/intelligence.js +3 -3
  21. package/dist/kernel.d.ts +4 -4
  22. package/dist/kernel.js +9 -9
  23. package/dist/{loop-runner-bin-CL4W2pu1.d.ts → loop-runner-bin-BaZd1XIm.d.ts} +3 -3
  24. package/dist/{loop-runner-bin-Dxqxf91b.js → loop-runner-bin-C9P1ELVv.js} +3 -3
  25. package/dist/{loop-runner-bin-Dxqxf91b.js.map → loop-runner-bin-C9P1ELVv.js.map} +1 -1
  26. package/dist/loop-runner-bin.d.ts +1 -1
  27. package/dist/loop-runner-bin.js +1 -1
  28. package/dist/mcp/bin.js +3 -3
  29. package/dist/mcp/index.d.ts +6 -6
  30. package/dist/mcp/index.js +4 -4
  31. package/dist/{openai-tools-BlZHd0Nz.d.ts → openai-tools-CHwN_S24.d.ts} +2 -2
  32. package/dist/profiles.d.ts +2 -2
  33. package/dist/{provision-supervisor-By5oGk3t.js → provision-supervisor-9FMwo-Es.js} +3 -3
  34. package/dist/{provision-supervisor-By5oGk3t.js.map → provision-supervisor-9FMwo-Es.js.map} +1 -1
  35. package/dist/{runtime-BbQmK7qe.js → runtime-BXWVW51r.js} +8 -8
  36. package/dist/{runtime-BbQmK7qe.js.map → runtime-BXWVW51r.js.map} +1 -1
  37. package/dist/{server-CHlpLE22.js → server-6g6KFwUC.js} +3 -3
  38. package/dist/{server-CHlpLE22.js.map → server-6g6KFwUC.js.map} +1 -1
  39. package/dist/{stream-agent-turn-DTgxWXbR.d.ts → stream-agent-turn-u28hoxuR.d.ts} +2 -2
  40. package/dist/{structural-rollout-Dby60zHe.js → structural-rollout-WEfWpjub.js} +2 -2
  41. package/dist/{structural-rollout-Dby60zHe.js.map → structural-rollout-WEfWpjub.js.map} +1 -1
  42. package/dist/{substrate-CxwdhZri.d.ts → substrate-BeQiXkpa.d.ts} +2 -2
  43. package/dist/{supervise-1QzYAyS2.js → supervise-BeAI8-On.js} +221 -48
  44. package/dist/supervise-BeAI8-On.js.map +1 -0
  45. package/dist/{supervisor-yavsoQQo.js → supervisor-BGGvnXvV.js} +161 -17
  46. package/dist/{supervisor-yavsoQQo.js.map → supervisor-BGGvnXvV.js.map} +1 -1
  47. package/dist/testing.d.ts +2 -2
  48. package/dist/testing.js +12 -12
  49. package/dist/tui/index.d.ts +1 -1
  50. package/dist/tui/index.js +1 -1
  51. package/dist/{types-DNCNRu0E.d.ts → types-CP3iQ8Ji.d.ts} +354 -4
  52. package/package.json +2 -2
  53. package/dist/coordination-driver-LmDxHvAO.js.map +0 -1
  54. package/dist/supervise-1QzYAyS2.js.map +0 -1
package/dist/testing.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { $a as SuperviseTestOptions, $t as runGraphWithTestBrain, Ao as supervisorAgentWithTestBrain, Tn as driverAgent, Yt as RunGraphTestOptions, to as superviseWithTestBrain, wn as DriverAgentOptions, xo as SupervisorAgentTestDeps } from "./index-tubViIQJ.js";
2
- import { On as ToolLoopCallContext, kn as ToolLoopChat } from "./stream-agent-turn-DTgxWXbR.js";
1
+ import { $a as SuperviseTestOptions, $t as runGraphWithTestBrain, Ao as supervisorAgentWithTestBrain, Tn as driverAgent, Yt as RunGraphTestOptions, to as superviseWithTestBrain, wn as DriverAgentOptions, xo as SupervisorAgentTestDeps } from "./index-B8tXCisZ.js";
2
+ import { On as ToolLoopCallContext, kn as ToolLoopChat } from "./stream-agent-turn-u28hoxuR.js";
3
3
  import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
4
4
  //#region src/testing/index.d.ts
5
5
  /** A proposal produced by Runtime's opaque profile-improvement path. */
package/dist/testing.js CHANGED
@@ -1,14 +1,14 @@
1
1
  import { C as canonicalCandidateDigest$1, D as immutableCandidateValue } from "./workspace-archive-C9lgf77y.js";
2
- import { f as verifyAgentImprovementProposal } from "./improvement-cycle-DYiwfjWY.js";
2
+ import { f as verifyAgentImprovementProposal } from "./improvement-cycle-DirqO-fX.js";
3
3
  import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-D3eXNBQV.js";
4
- import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-1QzYAyS2.js";
5
- import { r as driverAgent } from "./coordination-driver-LmDxHvAO.js";
6
- import { i as runGraphWithTestBrain } from "./graph-Bn3wSH8-.js";
4
+ import { a as superviseWithTestBrain, h as supervisorAgentWithTestBrain } from "./supervise-BeAI8-On.js";
5
+ import { r as driverAgent } from "./coordination-driver-COGC8FK2.js";
6
+ import { i as runGraphWithTestBrain } from "./graph-DgODOGWN.js";
7
7
  import { SANDBOX_SIZE_PRESET_NAMES } from "@tangle-network/agent-interface";
8
8
  //#region src/testing/fixtures/agent-improvement-proposal.json
9
9
  var agent_improvement_proposal_default = {
10
10
  changedSurfaces: ["prompt"],
11
- digest: "sha256:1b4cf56071011f049b6df89286d5e015034e41c02abaf43a83633161766708b9",
11
+ digest: "sha256:e1d74ab82b724262b4e7bc20293545067a835552bbbd63dd5bf7273b91029883",
12
12
  evaluation: {
13
13
  "decision": {
14
14
  "contributingChecks": [
@@ -4579,7 +4579,7 @@ var agent_improvement_proposal_default = {
4579
4579
  ],
4580
4580
  "metadata": {
4581
4581
  "fixture": "agent-improvement-proposal",
4582
- "runtimeVersion": "0.261.0"
4582
+ "runtimeVersion": "0.262.0"
4583
4583
  },
4584
4584
  "objectives": [
4585
4585
  {
@@ -4690,8 +4690,8 @@ var agent_improvement_proposal_default = {
4690
4690
  "baselineContentHash": "sha256:5c21ee53e513fc604cb09754e21c392b24a424da0ef37dbf8f1ee4a8a0b08f09",
4691
4691
  "candidateContentHash": "sha256:60fcbb1c728194bd51d7d19cb732d1c3f1881dce7e0a6266b41c8b98cfd65693",
4692
4692
  "kind": "agent-eval-loop",
4693
- "recordDigest": "sha256:add9ca9df7fce58f88035e24078c2e572228fb7c02c29800d93f8378a27ee6a0",
4694
- "runId": "agent-runtime-0.261.0-proposal-fixture",
4693
+ "recordDigest": "sha256:1b01b8fbb4ae05234153c592b541ca0ab769de016b88b74e6f0036ab3dadd2a5",
4694
+ "runId": "agent-runtime-0.262.0-proposal-fixture",
4695
4695
  "schema": "agent-candidate-experiment"
4696
4696
  }
4697
4697
  },
@@ -4714,13 +4714,13 @@ var agent_improvement_proposal_default = {
4714
4714
  }],
4715
4715
  kind: "agent-improvement-proposal",
4716
4716
  proposedAt: "2026-07-10T01:00:00.000Z",
4717
- runId: "agent-runtime-0.261.0-proposal-fixture"
4717
+ runId: "agent-runtime-0.262.0-proposal-fixture"
4718
4718
  };
4719
4719
  //#endregion
4720
4720
  //#region src/testing/fixtures/agent-profile-improvement-proposal.json
4721
4721
  var agent_profile_improvement_proposal_default = {
4722
4722
  changedSurfaces: ["prompt", "skills"],
4723
- digest: "sha256:1e43961498ecc94991d3a36d1ab84ffcef3d4504cb864ae52c7302635d450c74",
4723
+ digest: "sha256:5a3be63c1592806ae888e56078f3544a079b0179e9d90c1a207b1f699aeed2c0",
4724
4724
  evaluation: {
4725
4725
  "decision": {
4726
4726
  "contributingChecks": [
@@ -6354,7 +6354,7 @@ var agent_profile_improvement_proposal_default = {
6354
6354
  ],
6355
6355
  "metadata": {
6356
6356
  "fixture": "agent-profile-improvement-proposal",
6357
- "runtimeVersion": "0.261.0"
6357
+ "runtimeVersion": "0.262.0"
6358
6358
  },
6359
6359
  "objectives": [
6360
6360
  {
@@ -6465,7 +6465,7 @@ var agent_profile_improvement_proposal_default = {
6465
6465
  "baselineContentHash": "sha256:21c495a37c418c10bde64fbaa188beddeed31f1f051ea60a6a6582a9ee0db704",
6466
6466
  "candidateContentHash": "sha256:103f77bc8481601eef1ad5fe6ba84a40dffabc3a44f421f8c8559121edab84e9",
6467
6467
  "kind": "agent-eval-loop",
6468
- "recordDigest": "sha256:bb909764b0de8f8d4f1cc03368426ab1bd1fff4ba787c6d7ffbe88c52b59471c",
6468
+ "recordDigest": "sha256:3bbd4a17775981fdcd3ca6eb47d2d926a9c4ab9d743ce95f4dd049cf91eb12ca",
6469
6469
  "runId": "profile-improvement-1",
6470
6470
  "schema": "agent-profile-improvement-experiment"
6471
6471
  }
@@ -1,4 +1,4 @@
1
- import { Ct as ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-tubViIQJ.js";
1
+ import { Ct as ProvisionedSupervisor, St as ProvisionSupervisorRequest, Tt as provisionSupervisor, wt as SupervisorCleanupReceipt, xt as ProvisionSupervisorConnection } from "../index-B8tXCisZ.js";
2
2
  //#region src/tui/top-app.d.ts
3
3
  /**
4
4
  * The interactive side of the supervisor-run TUI: a keypress/mouse loop over the frames
package/dist/tui/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { t as provisionSupervisor } from "../provision-supervisor-By5oGk3t.js";
1
+ import { t as provisionSupervisor } from "../provision-supervisor-9FMwo-Es.js";
2
2
  import { a as renderTopFrameWithLayout, i as renderTopFrame, n as runTopApp, r as loadTopSnapshot, t as renderTopOnce } from "../top-app-VAOrBskv.js";
3
3
  export { loadTopSnapshot, provisionSupervisor, renderTopFrame, renderTopFrameWithLayout, renderTopOnce, runTopApp };
@@ -1,6 +1,6 @@
1
1
  import { l as RuntimeHooks } from "./runtime-hooks-Bj6wJHlH.js";
2
- import { AgentExactRunControlRef, AgentInteractiveSession, AgentInteractiveSessionPromptAcknowledgement, AgentInteractiveSessionPromptCommand, AgentInteractiveSessionRef, AgentInteractiveSessionStart, 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 { ControlBudget, ControlDecision, ControlEvalResult, ControlRunResult, ControlStep, DataAcquisitionPlan, DefaultVerdict, DefaultVerdict as DefaultVerdict$1, KnowledgeReadinessReport, KnowledgeRequirement, RunRecord, ToolSpan, TraceStore, UserQuestion } 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 } 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";
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";
@@ -1770,6 +1770,344 @@ type RecoverRetainedRunResult = {
1770
1770
  readonly environment: AgentEnvironment;
1771
1771
  };
1772
1772
  //#endregion
1773
+ //#region src/errors.d.ts
1774
+ /**
1775
+ *
1776
+ * A backend transport call (HTTP, gRPC, sidecar IPC) failed with a non-success
1777
+ * status. Distinct from `JudgeError` (which is structural / unrecoverable)
1778
+ * because backend failures are sometimes retryable and consumers may want to
1779
+ * branch on the upstream status code.
1780
+ *
1781
+ * @stable
1782
+ */
1783
+ declare class BackendTransportError extends AgentEvalError {
1784
+ readonly backend: string;
1785
+ readonly status?: number;
1786
+ /**
1787
+ * Router-owned proof that a rejected request never reached a provider.
1788
+ *
1789
+ * This is intentionally one-sided. An absent value, or any value this
1790
+ * package does not understand, remains unknown to Runtime.
1791
+ */
1792
+ readonly providerDispatch?: 'not_started';
1793
+ /**
1794
+ * The upstream's own error class when it names one (the bridge's `parse_error`,
1795
+ * `not_configured`, a provider's `invalid_request_error`). A class the upstream never
1796
+ * retries is a decision about the request, so a retry policy may read it where no
1797
+ * status arrived.
1798
+ */
1799
+ readonly upstreamCode?: string;
1800
+ /**
1801
+ * Truncated upstream response body (≤2 KiB) when available. Diagnostic
1802
+ * only — surfaces in `backend_error.error.body` and `final.error.body`
1803
+ * so operators can see "free_tier_limit", "invalid_api_key", etc. without
1804
+ * cracking the log line open.
1805
+ */
1806
+ readonly body?: string;
1807
+ constructor(backend: string, message: string, options?: {
1808
+ cause?: unknown;
1809
+ status?: number;
1810
+ upstreamCode?: string;
1811
+ body?: string;
1812
+ providerDispatch?: 'not_started';
1813
+ });
1814
+ }
1815
+ /**
1816
+ *
1817
+ * A runtime-run lifecycle method was called in an order the state machine does
1818
+ * not allow: `persist()` before `complete()`, `complete()` twice, etc.
1819
+ *
1820
+ * @stable
1821
+ */
1822
+ declare class RuntimeRunStateError extends AgentEvalError {
1823
+ constructor(message: string, options?: {
1824
+ cause?: unknown;
1825
+ });
1826
+ }
1827
+ /**
1828
+ *
1829
+ * The dynamic-loop planner returned an unusable topology move — the LLM emitted
1830
+ * no parseable envelope, an unknown `kind`, or a structurally-invalid move
1831
+ * (e.g. a fanout with zero tasks). This is a structural failure of the
1832
+ * agent-authored topology, not a config mistake: the planner ran but its output
1833
+ * cannot drive the kernel. Carries `validation` so cross-package handlers can
1834
+ * pattern-match without importing the runtime. Fail loud — never substitute a
1835
+ * default move, or the loop silently runs a topology nobody chose.
1836
+ *
1837
+ * @stable
1838
+ */
1839
+ declare class PlannerError extends AgentEvalError {
1840
+ constructor(message: string, options?: {
1841
+ cause?: unknown;
1842
+ });
1843
+ }
1844
+ /**
1845
+ *
1846
+ * The caller's `onAdmission` durability hook rejected, so a retained run's
1847
+ * admission record is not durable. For a pre-create intent, no provider work
1848
+ * has started. For a later record, provider state may already be live and the
1849
+ * environment remains available for recovery. Carries `capture_integrity`
1850
+ * because the required recovery record was not written.
1851
+ *
1852
+ * @stable
1853
+ */
1854
+ declare abstract class RetainedAdmissionError<TAdmission extends RetainedRunAdmission | RetainedInteractiveAdmission> extends AgentEvalError {
1855
+ readonly phase: TAdmission['phase'];
1856
+ /** The exact record the hook failed to persist, for direct recovery. */
1857
+ readonly admission: TAdmission;
1858
+ constructor(admission: TAdmission, options?: {
1859
+ cause?: unknown;
1860
+ });
1861
+ }
1862
+ /** The caller could not persist one detached-run recovery record. @stable */
1863
+ declare class RetainedRunAdmissionError extends RetainedAdmissionError<RetainedRunAdmission> {}
1864
+ /** The caller could not persist one exact interactive-process recovery record. @stable */
1865
+ declare class RetainedInteractiveAdmissionError extends RetainedAdmissionError<RetainedInteractiveAdmission> {}
1866
+ /**
1867
+ * A provider returned a valid interactive reference that does not bind to the
1868
+ * exact start request, or returned data that could not be parsed as one.
1869
+ *
1870
+ * The requested start and any valid provider reference are detached snapshots.
1871
+ * Malformed provider data is never copied into the error, so the error remains
1872
+ * safe to persist while the environment remains available for orphan cleanup.
1873
+ *
1874
+ * @stable
1875
+ */
1876
+ declare class RetainedInteractiveBindingError extends AgentEvalError {
1877
+ /** The exact native-process start request sent to the provider. */
1878
+ readonly requested: AgentInteractiveSessionStart;
1879
+ /** The valid provider data, when the provider returned a parseable value. */
1880
+ readonly returned: {
1881
+ readonly ref?: AgentInteractiveSessionRef;
1882
+ readonly status?: AgentInteractiveSessionStatus;
1883
+ };
1884
+ constructor(requested: AgentInteractiveSessionStart, returned: RetainedInteractiveBindingError['returned'], options?: {
1885
+ cause?: unknown;
1886
+ });
1887
+ }
1888
+ /**
1889
+ *
1890
+ * A retained dispatch answered with coordinates that do not bind to the
1891
+ * identity the runtime requested, or failed exact verification. The
1892
+ * environment-phase admission is already durable at this point, so its
1893
+ * coordinates plus the provider reference carried here are the manual
1894
+ * recovery path. The environment is intentionally kept. Carries
1895
+ * `backend_integrity` because the provider violated its dispatch contract.
1896
+ *
1897
+ * @stable
1898
+ */
1899
+ declare class RetainedRunDispatchBindingError extends AgentEvalError {
1900
+ /** The coordinates the runtime sent with the dispatch. */
1901
+ readonly requested: {
1902
+ readonly provider: string;
1903
+ readonly environmentId: string;
1904
+ readonly sessionId: string;
1905
+ readonly executionId: string;
1906
+ };
1907
+ /** The loose reference the provider actually returned, for triage. */
1908
+ readonly returned: {
1909
+ readonly id?: string;
1910
+ readonly provider?: string;
1911
+ readonly controlRef?: unknown;
1912
+ };
1913
+ constructor(requested: RetainedRunDispatchBindingError['requested'], returned: RetainedRunDispatchBindingError['returned'], options?: {
1914
+ cause?: unknown;
1915
+ });
1916
+ }
1917
+ //#endregion
1918
+ //#region src/runtime/supervise/driver-retry.d.ts
1919
+ /** The scope's live conserved-pool readout — the retry's real bound. Indexed off `Scope` so this
1920
+ * module tracks the pool's shape rather than restating it. */
1921
+ type DriverBudgetReadout = Scope<unknown>['budget'];
1922
+ /** Whether the run's declared completion check has passed. `'none'` means the caller declared no
1923
+ * check at all — the retry then reads spend and settlements exactly as it always has. */
1924
+ type DriverContractState = 'met' | 'unmet' | 'none';
1925
+ /** How hard the root driver is retried after a transient failure. The defaults retry; a caller
1926
+ * that wants the pre-#741 behavior sets `enabled: false` and owns the consequence. */
1927
+ interface DriverRetryPolicy {
1928
+ /** `false` restores the historical behavior: the first driver failure ends the run. */
1929
+ readonly enabled?: boolean;
1930
+ /** Consecutive failures that changed NOTHING (no metered spend, no settlement, no submission)
1931
+ * before the run gives up. Default 3. A failure that made progress resets the count. */
1932
+ readonly maxConsecutiveFailures?: number;
1933
+ /** Ceiling on failed invocations across this driver run, regardless of progress. Default 8,
1934
+ * minimum 1. Successful continuations do not consume this allowance or reset it.
1935
+ * This bounds repeated crashes that each make enough progress to reset the barren streak. */
1936
+ readonly maxAttempts?: number;
1937
+ /** Backoff before the first retry, doubling per consecutive failure. Default 2000ms. */
1938
+ readonly initialBackoffMs?: number;
1939
+ /** Ceiling on the doubling. Default 30000ms. */
1940
+ readonly maxBackoffMs?: number;
1941
+ }
1942
+ /** Why the retry loop stopped. `completed` is the only non-failure. */
1943
+ type DriverAttemptStop = 'completed' | 'terminal-error' | 'retry-disabled' | 'aborted' | 'budget-exhausted' | 'deadline' | 'no-progress' | 'max-attempts';
1944
+ /** One attempt's record — the legible failure the issue's third ask names. Emitted per attempt so
1945
+ * an operator sees `driver failed after N attempts` instead of one opaque `pi exit unknown`. */
1946
+ interface DriverAttemptRecord {
1947
+ /** 1-based. */
1948
+ readonly attempt: number;
1949
+ readonly durationMs: number;
1950
+ /** Absent when the attempt completed. */
1951
+ readonly error?: string;
1952
+ readonly classification?: 'transient' | 'terminal';
1953
+ /** Did anything change since the previous attempt (spend, settlement, submission)? */
1954
+ readonly madeProgress: boolean;
1955
+ /** Set when this attempt ended the loop. */
1956
+ readonly stop?: DriverAttemptStop;
1957
+ /** Set when another attempt follows. */
1958
+ readonly retryInMs?: number;
1959
+ /** How this attempt was entered. Absent on the first attempt. */
1960
+ readonly reentry?: DriverReentry['reason'];
1961
+ /** The completion check's verdict after this attempt. Absent when the caller declares none. */
1962
+ readonly contract?: DriverContractState;
1963
+ /** True when this COMPLETED attempt's unmet contract sent the loop back into the live session. */
1964
+ readonly reprompted?: boolean;
1965
+ /** Why an unmet contract did NOT re-enter the session. Absent when the contract was met, when
1966
+ * the caller configured no re-prompt, or when the re-prompt was issued. */
1967
+ readonly repromptRefusedBy?: DriverRepromptRefusal;
1968
+ }
1969
+ /** Why a completed drive with an unmet contract was not re-entered. `no-progress` means
1970
+ * `reprompt.maxBarren` consecutive re-entered drives completed without a delivery. */
1971
+ type DriverRepromptRefusal = 'reprompts-exhausted' | 'caller-stop' | Extract<DriverAttemptStop, 'aborted' | 'budget-exhausted' | 'deadline' | 'max-attempts' | 'no-progress'>;
1972
+ /** The comparable mark used to decide whether an attempt moved the run TOWARD ITS DELIVERABLE.
1973
+ * While a declared check is unmet, spend and settlements are not progress on their own; see this
1974
+ * file's header for the measurement that made that the rule. */
1975
+ interface DriverProgressMark {
1976
+ /** Monotone total of POOL spend since the first reading, in tokens — the driver's own metered
1977
+ * turns AND any child settlement, because the conserved pool is shared. Deliberately not
1978
+ * driver-only: a child that settled during the attempt is progress by any reading, and the
1979
+ * coarser signal can only bias toward rescuing a run, never toward abandoning one. */
1980
+ readonly poolTokensSpent: number;
1981
+ /** Monotone count of settled children. */
1982
+ readonly settledCount: number;
1983
+ /** Whether an accepted deliverable exists — a submission that PASSED the completion check. */
1984
+ readonly submitted: boolean;
1985
+ /** The completion check's verdict right now. Omit (or `'none'`) when the caller declares no
1986
+ * check: the retry then reads spend and settlements exactly as it did before this field
1987
+ * existed, so a caller with no contract is unaffected. */
1988
+ readonly contract?: DriverContractState;
1989
+ /** Monotone count of settled children that PASSED the completion check. A child that ran and
1990
+ * settled without delivering does not count here, which is the whole point. */
1991
+ readonly deliveredCount?: number;
1992
+ }
1993
+ /** Why the loop is entering the driver again. Absent on the first attempt only.
1994
+ *
1995
+ * An `unmet-contract` re-entry carries the unmet items. A `driver-failure` re-entry carries no
1996
+ * instruction of its own: the drive that failed may never have read the last one, so the caller
1997
+ * re-enters with the ORIGINAL task and the run's state, never with the unmet-items text alone. */
1998
+ type DriverReentry = {
1999
+ readonly reason: 'unmet-contract';
2000
+ /** The unmet items. Whether they are the whole turn depends on where the drive runs: only a
2001
+ * backend that proves the same harness session may be re-entered with this text alone. */
2002
+ readonly steer: string;
2003
+ /** 1-based: which re-prompt this is. */
2004
+ readonly reprompt: number;
2005
+ } | {
2006
+ readonly reason: 'driver-failure';
2007
+ /** The failure that ended the previous drive, as recorded. */
2008
+ readonly failure: string;
2009
+ /** 1-based: which failure retry this is. */
2010
+ readonly retry: number;
2011
+ };
2012
+ /** What the caller sees when a drive returns with its completion check unmet. */
2013
+ interface DriverUnmetContractContext {
2014
+ /** The attempt that just completed, 1-based. */
2015
+ readonly attempt: number;
2016
+ /** How many re-prompts this run has already issued. */
2017
+ readonly reprompts: number;
2018
+ readonly maxReprompts: DriverRepromptPolicy['maxReprompts'];
2019
+ /** The mark read AFTER the completed drive. */
2020
+ readonly progress: DriverProgressMark;
2021
+ readonly budget: DriverBudgetReadout;
2022
+ /** What the run was supposed to produce, from the caller's completion check. */
2023
+ readonly describe?: string;
2024
+ /** Consecutive re-entered drives, this one included, that completed without a delivery. */
2025
+ readonly barrenReentries: number;
2026
+ }
2027
+ /** The caller's answer: re-enter the session with `steer`, or end the run here. */
2028
+ type DriverUnmetContractDecision = {
2029
+ readonly steer: string;
2030
+ } | 'stop';
2031
+ /** Compose the re-entry instruction for a completed drive that delivered nothing, or refuse. */
2032
+ type OnUnmetContract = (context: DriverUnmetContractContext) => DriverUnmetContractDecision | Promise<DriverUnmetContractDecision>;
2033
+ /** How a completed-but-undelivered drive is re-entered. Absent = the historical behavior, where
2034
+ * such a drive ends the run and only the completion gate's label records what happened. */
2035
+ interface DriverRepromptPolicy {
2036
+ /** How many times one run may re-enter its driver with the unmet items. `0` = never.
2037
+ * `'until-complete'` removes the count cap and requires a finite positive scope deadline.
2038
+ * Budget, cancellation, explicit stop, the barren bound, and failure retry limits still apply. */
2039
+ readonly maxReprompts: number | 'until-complete';
2040
+ /** Consecutive re-entered drives that may complete without a delivery before re-prompting stops
2041
+ * (`repromptRefusedBy: 'no-progress'`). Default {@link DEFAULT_MAX_BARREN_REPROMPTS}; minimum 1.
2042
+ * A delivery — an accepted submission, a child that passed its check, the contract turning
2043
+ * met — resets the count. */
2044
+ readonly maxBarren?: number;
2045
+ /** Compose the instruction, or return `'stop'`. Omit = {@link defaultUnmetContractSteer}. */
2046
+ readonly onUnmetContract?: OnUnmetContract;
2047
+ /** What the run owes, surfaced in the default instruction. */
2048
+ readonly describe?: string;
2049
+ }
2050
+ /**
2051
+ * The instruction a completed-but-undelivered drive is re-entered with when the caller supplies no
2052
+ * `onUnmetContract`. It states the verdict, names what is owed, reports the ledger, and gives the
2053
+ * three steps — the same shape `depthStrategy` re-prompts a resumed session with, said in the
2054
+ * driver's own terms.
2055
+ */
2056
+ declare function defaultUnmetContractSteer(context: DriverUnmetContractContext): string;
2057
+ /** Two re-prompted drives in a row that deliver nothing end the re-prompts. */
2058
+ declare const DEFAULT_MAX_BARREN_REPROMPTS = 2;
2059
+ /**
2060
+ * Classify one driver failure. Runtime's own typed refusals are decisions and stay terminal;
2061
+ * anything foreign is an accident and is retryable. A `BackendTransportError` is split by status
2062
+ * because the taxonomy already promises consumers may branch on it: a 5xx/429/408 is the upstream
2063
+ * having a bad moment, while a 401/404/422 is a request that will fail identically forever. The
2064
+ * bridge's own never-retry classes are terminal whether or not a status rides with them.
2065
+ */
2066
+ declare function classifyDriverFailure(error: unknown, signal?: AbortSignal): 'transient' | 'terminal';
2067
+ /** The error a give-up throws: the original cause, re-described with the attempt history so
2068
+ * `driver-failed` carries a diagnosable message instead of one backend's last words. */
2069
+ declare class DriverAttemptsExhaustedError extends RuntimeRunStateError {
2070
+ readonly attempts: readonly DriverAttemptRecord[];
2071
+ readonly stop: DriverAttemptStop;
2072
+ constructor(cause: unknown, attempts: readonly DriverAttemptRecord[], stop: DriverAttemptStop);
2073
+ }
2074
+ /**
2075
+ * What one driver loop did, counted from its attempt records: the numbers a run's settle record
2076
+ * carries so a reader can tell genuine continuations from failure retries without the journal.
2077
+ *
2078
+ * Measured motive: the most genuine continuations in any recorded lab run was 11
2079
+ * (evidence-compiler-j, which won), while the two larger counts, 32 and 12, were re-entries after
2080
+ * failed turns. One `attempts` number hid which was which.
2081
+ */
2082
+ interface DriverLoopRecord {
2083
+ /** Driver invocations started. */
2084
+ readonly attempts: number;
2085
+ /** Genuine continuations: completed drives with the contract unmet that were re-entered. */
2086
+ readonly reprompts: number;
2087
+ /** Re-entries after a failed drive. */
2088
+ readonly failureRetries: number;
2089
+ /** Re-entered drives, in a row at the end, that completed without a delivery. */
2090
+ readonly barrenReentries: number;
2091
+ /** Why the loop ended: its last record's stop, or `unrecorded` when it ended without one (an
2092
+ * admission refusal before the first attempt, or a throw from outside the loop). */
2093
+ readonly ended: DriverAttemptStop | 'unrecorded';
2094
+ /** Why a completed-but-unmet drive was not re-entered, when that ended the loop. */
2095
+ readonly repromptRefusedBy?: DriverRepromptRefusal;
2096
+ }
2097
+ /** A manager's driver loop as its run's settle record carries it (`SupervisedResult.continuation`). */
2098
+ interface DriverContinuationRecord extends DriverLoopRecord {
2099
+ /** Re-entries that ran in a new environment because the provider no longer held the old one. */
2100
+ readonly environmentReplacements: number;
2101
+ /** How the run was closed, when something closed it: an accepted `submit_result`, the
2102
+ * manager's own `stop`, a `report_blocked` whose probe failed, or the caller's progress
2103
+ * `stopRule`. Absent when the loop ended on a bound or a failure. */
2104
+ readonly closedBy?: 'result-accepted' | 'stop' | 'blocked' | 'stop-rule';
2105
+ /** The reason the manager gave, or the failed probe, verbatim. */
2106
+ readonly stopReason?: string;
2107
+ }
2108
+ /** Count a loop's attempt records into its {@link DriverLoopRecord}. */
2109
+ declare function summarizeDriverAttempts(records: ReadonlyArray<DriverAttemptRecord>): DriverLoopRecord;
2110
+ //#endregion
1773
2111
  //#region src/runtime/harness-transcript.d.ts
1774
2112
  declare const HARNESS_TRANSCRIPT_SCHEMA_VERSION: 1;
1775
2113
  interface HarnessTranscriptFile {
@@ -4665,6 +5003,10 @@ type SupervisedResult<Out> = {
4665
5003
  readonly rootProviderModel?: RootProviderModelEvidence;
4666
5004
  /** The root manager's retained provider stream, when the run directory holds one. */
4667
5005
  readonly rootStream?: RootStreamReceipt;
5006
+ /** What the root's external driver loop did: genuine continuations, failure retries,
5007
+ * environment replacements, why the loop ended, and how the root closed the run. Absent for
5008
+ * a router-brained root, which runs no driver loop. */
5009
+ readonly continuation?: DriverContinuationRecord;
4668
5010
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4669
5011
  readonly providerModel?: ProviderModelExecutionEvidence;
4670
5012
  /** Settled children whose teardown stayed unconfirmed after the settlement retry window
@@ -4708,6 +5050,10 @@ type SupervisedResult<Out> = {
4708
5050
  readonly rootProviderModel?: RootProviderModelEvidence;
4709
5051
  /** The root manager's retained provider stream, when the run directory holds one. */
4710
5052
  readonly rootStream?: RootStreamReceipt;
5053
+ /** What the root's external driver loop did: genuine continuations, failure retries,
5054
+ * environment replacements, why the loop ended, and how the root closed the run. Absent for
5055
+ * a router-brained root, which runs no driver loop. */
5056
+ readonly continuation?: DriverContinuationRecord;
4711
5057
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4712
5058
  readonly providerModel?: ProviderModelExecutionEvidence;
4713
5059
  /** Settled children whose teardown stayed unconfirmed after the settlement retry window
@@ -4774,6 +5120,10 @@ type SupervisedResult<Out> = {
4774
5120
  readonly rootProviderModel?: RootProviderModelEvidence;
4775
5121
  /** The root manager's retained provider stream, when the run directory holds one. */
4776
5122
  readonly rootStream?: RootStreamReceipt;
5123
+ /** What the root's external driver loop did: genuine continuations, failure retries,
5124
+ * environment replacements, why the loop ended, and how the root closed the run. Absent for
5125
+ * a router-brained root, which runs no driver loop. */
5126
+ readonly continuation?: DriverContinuationRecord;
4777
5127
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4778
5128
  readonly providerModel?: ProviderModelExecutionEvidence;
4779
5129
  /** Settled children whose teardown stayed unconfirmed after the settlement retry window
@@ -4842,5 +5192,5 @@ interface WidenGate<Out> {
4842
5192
  readonly judgeExempt?: boolean;
4843
5193
  }
4844
5194
  //#endregion
4845
- export { SpawnJournal as $, HarnessTranscriptUnavailableReason as $n, LoopLineageOptions as $r, toOtelAttributes as $t, NodeExecutionIdentity as A, AgentKnowledgeProvider as Ai, sandboxSessionTraceSource as An, StartRetainedRunOptions as Ar, readTraceContextFromEnv as At, ResultBlobStore as B, OpenAIChatTool as Bi, readWorkerProgress as Bn, ReservationTicket as Br, OtelExporter as Bt, ExecutorToolCall as C, RuntimeRunRow as Ci, waitUntil as Cn, RetainedRunHandle as Cr, readWorkerTraceContext as Ct, MaterializedExecutionIdentity as D, AgentBackendContext as Di, TraceSource as Dn, RetainedRunStartMaterial as Dr, TraceContext as Dt, HeldEnvironment as E, AgentAdapter as Ei, ToolStepInput as En, RetainedRunSnapshot as Er, workerTraceSeamKey as Et, ProviderModelAttemptEvidence as F, AgentTaskSpec as Fi, DEFAULT_STALL_AFTER_MS as Fn, LeakedReservation as Fr, EvalRunsExportResult as Ft, RootMaterialization as G, RuntimeSession as Gi, RetainedInteractiveRunHandle as Gn, Driver as Gr, buildRuntimeEventOtelSpans as Gt, ResumedWork as H, RunAgentTaskOptions as Hi, RecoverRetainedInteractiveRunOptions as Hn, spendFromUsageEvents as Hr, RuntimeEventOtelOptions as Ht, ProviderModelExecutionEvidence as I, AgentTaskStatus as Ii, ExecutorProgress as In, ReservationHolder as Ir, INTELLIGENCE_WIRE_VERSION as It, RootStreamReceipt as J, HarnessTranscriptArtifact as Jn, LoopDecisionPayload as Jr, exportEvalRuns as Jt, RootProviderModelEvidence as K, RuntimeSessionStore as Ki, RetainedInteractiveStartMaterial as Kn, ExecCtx as Kr, createOpenInferenceFileExporter as Kt, RecursiveReservationPolicy as L, BackendErrorDetail as Li, ScopeProgressInput as Ln, ReservationRejection as Lr, LoopSpanNode as Lt, NodeSnapshot as M, AgentRuntimeEventSink as Mi, RetainedPendingCause as Mn, BudgetPoolRestore as Mr, EvalRunEvent as Mt, NodeStatus as N, AgentTaskContext as Ni, ActivityLog as Nn, BudgetReadout as Nr, EvalRunGeneration as Nt, MaterializedModelIdentity as O, AgentBackendInput as Oi, createPushTraceSource as On, RetainedRunTurnInput as Or, createPropagatingTraceEmitter as Ot, ProfileMaterializationReceipt as P, AgentTaskRunResult as Pi, ActivityNote as Pn, BudgetReconcileFault as Pr, EvalRunsExportConfig as Pt, SpawnEvent as Q, HarnessTranscriptUnavailable as Qn, LoopIterationStartedPayload as Qr, padTraceId as Qt, ResourceLimit as R, KnowledgeReadinessDecision as Ri, WorkerProgress as Rn, ReservationShortfall as Rr, OtelAttribute as Rt, ExecutorTeardownWarning as S, RuntimeRunPersistenceAdapter as Si, validateWaitSpec as Sn, RetainedRunEventOptions as Sr, WorkerTraceSeamCarrier as St, Handle as T, startRuntimeRun as Ti, SessionTraceBox as Tn, RetainedRunReplayPoint as Tr, workerTraceHeaders as Tt, RetainedExecutionState as U, RunAgentTaskStreamOptions as Ui, RetainedInteractiveAdmissionHook as Un, AgentRunSpec as Ur, buildLoopOtelSpans as Ut, ResumedKeyState as V, OpenAIChatToolChoice as Vi, ReconnectRetainedInteractiveRunOptions as Vn, createBudgetPool as Vr, OtelSpan as Vt, RootHandle as W, RuntimeCanonicalStreamEvent as Wi, RetainedInteractiveEnvironmentInput as Wn, DefaultVerdict$1 as Wr, buildLoopSpanNodes as Wt, Scope as X, HarnessTranscriptEvidence as Xn, LoopIterationDispatchPayload as Xr, loopEventToOtelSpan as Xt, Runtime as Y, HarnessTranscriptCapture as Yn, LoopEndedPayload as Yr, generateSpanId as Yt, Settled as Z, HarnessTranscriptFile as Zn, LoopIterationEndedPayload as Zr, padSpanId as Zt, ExecutorMaterialization as _, Validator as _i, WaitSpec as _n, RetainedRunCancelOptions as _r, WorkerInteractiveSession as _t, BudgetOverspend as a, LoopTeardownFailedPayload as ai, SanitizedKnowledgeReadinessReport as an, NativeContextContinuationHandle as ar, SpendGap as at, ExecutorRegistry as b, RuntimeRunHandle as bi, pollFor as bn, RetainedRunEffect as br, WorkerTraceUnavailableReason as bt, EnvironmentTeardownReceipt as c, LoopTraceEvent as ci, createRuntimeStreamEventCollector as cn, RecoverRetainedRunIntentOptions as cr, Supervisor as ct, ExecutorAccounting as d, MountRecorder as di, sanitizeRuntimeStreamEvent as dn, RetainedInteractiveAdmission as dr, TreeView as dt, LoopPlanDescription as ei, RuntimeEventCollector as en, ReadableEnvironment as er, SpawnOpts as et, ExecutorCancellation as f, OutputAdapter as fi, PendingWait as fn, RetainedInteractiveEnvironmentAdmission as fr, UnconfirmedTeardown as ft, ExecutorFactory as g, ValidationCtx as gi, WaitRejection as gn, RetainedRunAdmissionHook as gr, WidenGate as gt, ExecutorExecutionBinding as h, SelectionReceipt as hi, WaitProbeRegistry as hn, RetainedRunAdmission as hr, WaitOpts as ht, Budget as i, LoopStartedPayload as ii, RuntimeTelemetryOptions as in, NativeContextContinuationExecution as ir, SpendChannel as it, NodeId as j, AgentRuntimeEvent as ji, RetainedChildRecovery as jn, BudgetPool as jr, traceContextToEnv as jt, NoWinnerError as k, AgentExecutionBackend as ki, decodeToolPart as kn, StartRetainedRunInEnvironmentOptions as kr, mergeTraceEnv as kt, ExecutionBindingReceipt as l, LoopWinner as li, sanitizeAgentRuntimeEvent as ln, RecoverRetainedRunOptions as lr, SupervisorOpts as lt, ExecutorContext as m, SandboxClient as mi, WaitProbe as mn, RetainedInteractiveStartedAdmission as mr, UsageEvent as mt, AgentExecutionRef as n, LoopResult as ni, RuntimeStreamEventSink as nn, harnessTranscriptArtifact as nr, SpawnRejection as nt, BudgetViolation as o, LoopTokenUsage as oi, SanitizedKnowledgeRequirement as on, NativeContextContinuationInput as or, SteerableRootHandle as ot, ExecutorCancellationRequest as p, RunProvenance as pi, WaitOutcome as pn, RetainedInteractiveIntentAdmission as pr, UnknownMaterializationReason as pt, RootSignal as q, RuntimeStreamEvent as qi, StartRetainedInteractiveRunOptions as qn, Iteration as qr, createOtelExporter as qt, AgentSpec as r, LoopSandboxPlacement as ri, RuntimeStreamEventSummary as rn, persistHarnessTranscript as rr, Spend as rt, DefaultVerdict as s, LoopTraceEmitter as si, createRuntimeEventCollector as sn, ReconnectRetainedRunOptions as sr, SupervisedResult as st, Agent as t, LoopPlanPayload as ti, RuntimeStreamEventCollector as tn, captureHarnessTranscript as tr, SpawnPrior as tt, Executor as u, MountManifestEntry as ui, sanitizeKnowledgeReadinessReport as un, RecoverRetainedRunResult as ur, TokenUsageProvenance as ut, ExecutorNodeContext as v, RuntimeRunCompleteInput as vi, createWaitProbes as vn, RetainedRunCancellation as vr, WorkerInteractiveUnavailableReason as vt, FleetYield as w, RuntimeRunStatus as wi, SessionMessageLike as wn, RetainedRunIntentAdmission as wr, workerTraceEnv as wt, ExecutorResult as x, RuntimeRunOptions as xi, timerAt as xn, RetainedRunEnvironmentAdmission as xr, WorkerTraceResolver as xt, ExecutorProgressEvent as y, RuntimeRunCost as yi, isWaitOutcome as yn, RetainedRunDispatchedAdmission as yr, WorkerTraceEvidence as yt, ResourceSpend as z, OpenAIChatResponseFormat as zi, createActivityLog as zn, ReservationStage as zr, OtelExportConfig as zt };
4846
- //# sourceMappingURL=types-DNCNRu0E.d.ts.map
5195
+ export { SpawnJournal as $, RuntimeRunOptions as $i, HarnessTranscriptUnavailableReason as $n, RetainedRunEnvironmentAdmission as $r, toOtelAttributes as $t, NodeExecutionIdentity as A, LoopIterationStartedPayload as Ai, sandboxSessionTraceSource as An, RetainedInteractiveAdmissionError as Ar, readTraceContextFromEnv as At, ResultBlobStore as B, LoopTraceEvent as Bi, readWorkerProgress as Bn, RecoverRetainedRunIntentOptions as Br, OtelExporter as Bt, ExecutorToolCall as C, RuntimeSession as Ca, Driver as Ci, waitUntil as Cn, AgentEvalError$1 as Cr, readWorkerTraceContext as Ct, MaterializedExecutionIdentity as D, LoopEndedPayload as Di, TraceSource as Dn, JudgeError as Dr, TraceContext as Dt, HeldEnvironment as E, LoopDecisionPayload as Ei, ToolStepInput as En, ConfigError as Er, workerTraceSeamKey as Et, ProviderModelAttemptEvidence as F, LoopSandboxPlacement as Fi, DEFAULT_STALL_AFTER_MS as Fn, ValidationError as Fr, EvalRunsExportResult as Ft, RootMaterialization as G, RunProvenance as Gi, RetainedInteractiveRunHandle as Gn, RetainedInteractiveIntentAdmission as Gr, buildRuntimeEventOtelSpans as Gt, ResumedWork as H, MountManifestEntry as Hi, RecoverRetainedInteractiveRunOptions as Hn, RecoverRetainedRunResult as Hr, RuntimeEventOtelOptions as Ht, ProviderModelExecutionEvidence as I, LoopStartedPayload as Ii, ExecutorProgress as In, NativeContextContinuationExecution as Ir, INTELLIGENCE_WIRE_VERSION as It, RootStreamReceipt as J, ValidationCtx as Ji, HarnessTranscriptArtifact as Jn, RetainedRunAdmissionHook as Jr, exportEvalRuns as Jt, RootProviderModelEvidence as K, SandboxClient as Ki, RetainedInteractiveStartMaterial as Kn, RetainedInteractiveStartedAdmission as Kr, createOpenInferenceFileExporter as Kt, RecursiveReservationPolicy as L, LoopTeardownFailedPayload as Li, ScopeProgressInput as Ln, NativeContextContinuationHandle as Lr, LoopSpanNode as Lt, NodeSnapshot as M, LoopPlanDescription as Mi, RetainedPendingCause as Mn, RetainedRunAdmissionError as Mr, EvalRunEvent as Mt, NodeStatus as N, LoopPlanPayload as Ni, ActivityLog as Nn, RetainedRunDispatchBindingError as Nr, EvalRunGeneration as Nt, MaterializedModelIdentity as O, LoopIterationDispatchPayload as Oi, createPushTraceSource as On, NotFoundError as Or, createPropagatingTraceEmitter as Ot, ProfileMaterializationReceipt as P, LoopResult as Pi, ActivityNote as Pn, RuntimeRunStateError as Pr, EvalRunsExportConfig as Pt, SpawnEvent as Q, RuntimeRunHandle as Qi, HarnessTranscriptUnavailable as Qn, RetainedRunEffect as Qr, padTraceId as Qt, ResourceLimit as R, LoopTokenUsage as Ri, WorkerProgress as Rn, NativeContextContinuationInput as Rr, OtelAttribute as Rt, ExecutorTeardownWarning as S, RuntimeCanonicalStreamEvent as Sa, DefaultVerdict$1 as Si, validateWaitSpec as Sn, summarizeDriverAttempts as Sr, WorkerTraceSeamCarrier as St, Handle as T, RuntimeStreamEvent as Ta, Iteration as Ti, SessionTraceBox as Tn, BackendTransportError as Tr, workerTraceHeaders as Tt, RetainedExecutionState as U, MountRecorder as Ui, RetainedInteractiveAdmissionHook as Un, RetainedInteractiveAdmission as Ur, buildLoopOtelSpans as Ut, ResumedKeyState as V, LoopWinner as Vi, ReconnectRetainedInteractiveRunOptions as Vn, RecoverRetainedRunOptions as Vr, OtelSpan as Vt, RootHandle as W, OutputAdapter as Wi, RetainedInteractiveEnvironmentInput as Wn, RetainedInteractiveEnvironmentAdmission as Wr, buildLoopSpanNodes as Wt, Scope as X, RuntimeRunCompleteInput as Xi, HarnessTranscriptEvidence as Xn, RetainedRunCancellation as Xr, loopEventToOtelSpan as Xt, Runtime as Y, Validator as Yi, HarnessTranscriptCapture as Yn, RetainedRunCancelOptions as Yr, generateSpanId as Yt, Settled as Z, RuntimeRunCost as Zi, HarnessTranscriptFile as Zn, RetainedRunDispatchedAdmission as Zr, padSpanId as Zt, ExecutorMaterialization as _, OpenAIChatResponseFormat as _a, ReservationStage as _i, WaitSpec as _n, DriverUnmetContractContext as _r, WorkerInteractiveSession as _t, BudgetOverspend as a, AgentBackendContext as aa, RetainedRunStartMaterial as ai, SanitizedKnowledgeReadinessReport as an, DriverAttemptRecord as ar, SpendGap as at, ExecutorRegistry as b, RunAgentTaskOptions as ba, spendFromUsageEvents as bi, pollFor as bn, classifyDriverFailure as br, WorkerTraceUnavailableReason as bt, EnvironmentTeardownReceipt as c, AgentKnowledgeProvider as ca, StartRetainedRunOptions as ci, createRuntimeStreamEventCollector as cn, DriverBudgetReadout as cr, Supervisor as ct, ExecutorAccounting as d, AgentTaskContext as da, BudgetReadout as di, sanitizeRuntimeStreamEvent as dn, DriverLoopRecord as dr, TreeView as dt, RuntimeRunPersistenceAdapter as ea, RetainedRunEventOptions as ei, RuntimeEventCollector as en, ReadableEnvironment as er, SpawnOpts as et, ExecutorCancellation as f, AgentTaskRunResult as fa, BudgetReconcileFault as fi, PendingWait as fn, DriverProgressMark as fr, UnconfirmedTeardown as ft, ExecutorFactory as g, KnowledgeReadinessDecision as ga, ReservationShortfall as gi, WaitRejection as gn, DriverRetryPolicy as gr, WidenGate as gt, ExecutorExecutionBinding as h, BackendErrorDetail as ha, ReservationRejection as hi, WaitProbeRegistry as hn, DriverRepromptRefusal as hr, WaitOpts as ht, Budget as i, AgentAdapter as ia, RetainedRunSnapshot as ii, RuntimeTelemetryOptions as in, DEFAULT_MAX_BARREN_REPROMPTS as ir, SpendChannel as it, NodeId as j, LoopLineageOptions as ji, RetainedChildRecovery as jn, RetainedInteractiveBindingError as jr, traceContextToEnv as jt, NoWinnerError as k, LoopIterationEndedPayload as ki, decodeToolPart as kn, PlannerError as kr, mergeTraceEnv as kt, ExecutionBindingReceipt as l, AgentRuntimeEvent as la, BudgetPool as li, sanitizeAgentRuntimeEvent as ln, DriverContinuationRecord as lr, SupervisorOpts as lt, ExecutorContext as m, AgentTaskStatus as ma, ReservationHolder as mi, WaitProbe as mn, DriverRepromptPolicy as mr, UsageEvent as mt, AgentExecutionRef as n, RuntimeRunStatus as na, RetainedRunIntentAdmission as ni, RuntimeStreamEventSink as nn, harnessTranscriptArtifact as nr, SpawnRejection as nt, BudgetViolation as o, AgentBackendInput as oa, RetainedRunTurnInput as oi, SanitizedKnowledgeRequirement as on, DriverAttemptStop as or, SteerableRootHandle as ot, ExecutorCancellationRequest as p, AgentTaskSpec as pa, LeakedReservation as pi, WaitOutcome as pn, DriverReentry as pr, UnknownMaterializationReason as pt, RootSignal as q, SelectionReceipt as qi, StartRetainedInteractiveRunOptions as qn, RetainedRunAdmission as qr, createOtelExporter as qt, AgentSpec as r, startRuntimeRun as ra, RetainedRunReplayPoint as ri, RuntimeStreamEventSummary as rn, persistHarnessTranscript as rr, Spend as rt, DefaultVerdict as s, AgentExecutionBackend as sa, StartRetainedRunInEnvironmentOptions as si, createRuntimeEventCollector as sn, DriverAttemptsExhaustedError as sr, SupervisedResult as st, Agent as t, RuntimeRunRow as ta, RetainedRunHandle as ti, RuntimeStreamEventCollector as tn, captureHarnessTranscript as tr, SpawnPrior as tt, Executor as u, AgentRuntimeEventSink as ua, BudgetPoolRestore as ui, sanitizeKnowledgeReadinessReport as un, DriverContractState as ur, TokenUsageProvenance as ut, ExecutorNodeContext as v, OpenAIChatTool as va, ReservationTicket as vi, createWaitProbes as vn, DriverUnmetContractDecision as vr, WorkerInteractiveUnavailableReason as vt, FleetYield as w, RuntimeSessionStore as wa, ExecCtx as wi, SessionMessageLike as wn, AgentEvalErrorCode as wr, workerTraceEnv as wt, ExecutorResult as x, RunAgentTaskStreamOptions as xa, AgentRunSpec as xi, timerAt as xn, defaultUnmetContractSteer as xr, WorkerTraceResolver as xt, ExecutorProgressEvent as y, OpenAIChatToolChoice as ya, createBudgetPool as yi, isWaitOutcome as yn, OnUnmetContract as yr, WorkerTraceEvidence as yt, ResourceSpend as z, LoopTraceEmitter as zi, createActivityLog as zn, ReconnectRetainedRunOptions as zr, OtelExportConfig as zt };
5196
+ //# sourceMappingURL=types-CP3iQ8Ji.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-runtime",
3
- "version": "0.261.0",
3
+ "version": "0.262.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": {
@@ -123,7 +123,7 @@
123
123
  "peerDependencies": {
124
124
  "@tangle-network/agent-eval": ">=0.185.0 <0.188.0",
125
125
  "@tangle-network/agent-interface": "^2.11.0",
126
- "@tangle-network/sandbox": ">=0.36.4 <0.48.0 || ^0.49.0-0"
126
+ "@tangle-network/sandbox": ">=0.36.4 <0.48.0 || ^0.49.0-0 || ^0.50.0"
127
127
  },
128
128
  "dependencies": {
129
129
  "@tangle-network/agent-core": ">=0.9.6 <0.10.0",