@tangle-network/agent-runtime 0.259.1 → 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 (73) hide show
  1. package/dist/{activation-Btw2npV2.js → activation-C0AoYRgS.js} +3 -3
  2. package/dist/{activation-Btw2npV2.js.map → activation-C0AoYRgS.js.map} +1 -1
  3. package/dist/{activation-Cus2oZaT.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/{bundle-DXrBPEFw.js → bundle-CvLGRVO-.js} +2 -2
  7. package/dist/{bundle-DXrBPEFw.js.map → bundle-CvLGRVO-.js.map} +1 -1
  8. package/dist/candidate-execution/index.js +5 -4
  9. package/dist/candidate-execution/index.js.map +1 -1
  10. package/dist/{coordination-driver-BmtrkNPu.js → coordination-driver-COGC8FK2.js} +377 -32
  11. package/dist/coordination-driver-COGC8FK2.js.map +1 -0
  12. package/dist/{delegate-DJgmZZKH.js → delegate-BC7Au73v.js} +2 -2
  13. package/dist/{delegate-DJgmZZKH.js.map → delegate-BC7Au73v.js.map} +1 -1
  14. package/dist/durable.d.ts +285 -57
  15. package/dist/durable.js +637 -108
  16. package/dist/durable.js.map +1 -1
  17. package/dist/{graph-BKRvWzHx.js → graph-DgODOGWN.js} +4 -3
  18. package/dist/graph-DgODOGWN.js.map +1 -0
  19. package/dist/{improvement-cycle-D0Os0Hg_.js → improvement-cycle-DirqO-fX.js} +8 -7
  20. package/dist/improvement-cycle-DirqO-fX.js.map +1 -0
  21. package/dist/{index-sGOO254Q.d.ts → index-B8tXCisZ.d.ts} +251 -293
  22. package/dist/index.d.ts +6 -6
  23. package/dist/index.js +9 -9
  24. package/dist/intelligence.d.ts +3 -3
  25. package/dist/intelligence.js +7 -6
  26. package/dist/intelligence.js.map +1 -1
  27. package/dist/kernel.d.ts +4 -4
  28. package/dist/kernel.js +9 -9
  29. package/dist/{loop-runner-bin-DAU4rNIL.d.ts → loop-runner-bin-BaZd1XIm.d.ts} +3 -3
  30. package/dist/{loop-runner-bin-pRlDgm1i.js → loop-runner-bin-C9P1ELVv.js} +3 -3
  31. package/dist/{loop-runner-bin-pRlDgm1i.js.map → loop-runner-bin-C9P1ELVv.js.map} +1 -1
  32. package/dist/loop-runner-bin.d.ts +1 -1
  33. package/dist/loop-runner-bin.js +1 -1
  34. package/dist/mcp/bin.js +3 -3
  35. package/dist/mcp/index.d.ts +6 -6
  36. package/dist/mcp/index.js +4 -4
  37. package/dist/{openai-tools-BsqD1_Zr.d.ts → openai-tools-CHwN_S24.d.ts} +2 -2
  38. package/dist/{prepare-RuaAclli.js → prepare-oHUQdC5-.js} +22 -452
  39. package/dist/prepare-oHUQdC5-.js.map +1 -0
  40. package/dist/profile-D3eXNBQV.js +438 -0
  41. package/dist/profile-D3eXNBQV.js.map +1 -0
  42. package/dist/profiles.d.ts +2 -2
  43. package/dist/{protected-model-port-BFhSgMAy.js → protected-model-port-DqF0qDU6.js} +4 -3
  44. package/dist/{protected-model-port-BFhSgMAy.js.map → protected-model-port-DqF0qDU6.js.map} +1 -1
  45. package/dist/{provision-supervisor-B9tf4soF.js → provision-supervisor-9FMwo-Es.js} +3 -3
  46. package/dist/{provision-supervisor-B9tf4soF.js.map → provision-supervisor-9FMwo-Es.js.map} +1 -1
  47. package/dist/{runtime-DKiucqGX.js → runtime-BXWVW51r.js} +218 -20
  48. package/dist/runtime-BXWVW51r.js.map +1 -0
  49. package/dist/{server-DIsiQ6mu.js → server-6g6KFwUC.js} +3 -3
  50. package/dist/{server-DIsiQ6mu.js.map → server-6g6KFwUC.js.map} +1 -1
  51. package/dist/{stream-agent-turn-DRTFLphI.d.ts → stream-agent-turn-u28hoxuR.d.ts} +2 -2
  52. package/dist/{structural-rollout-BIBxgW64.js → structural-rollout-WEfWpjub.js} +2 -2
  53. package/dist/{structural-rollout-BIBxgW64.js.map → structural-rollout-WEfWpjub.js.map} +1 -1
  54. package/dist/{substrate-BToFBpfh.d.ts → substrate-BeQiXkpa.d.ts} +2 -2
  55. package/dist/{supervise-DsQjhLN-.js → supervise-BeAI8-On.js} +295 -51
  56. package/dist/supervise-BeAI8-On.js.map +1 -0
  57. package/dist/{supervisor-CJyzUjc7.js → supervisor-BGGvnXvV.js} +243 -24
  58. package/dist/{supervisor-CJyzUjc7.js.map → supervisor-BGGvnXvV.js.map} +1 -1
  59. package/dist/testing.d.ts +2 -2
  60. package/dist/testing.js +14 -14
  61. package/dist/tui/index.d.ts +1 -1
  62. package/dist/tui/index.js +1 -1
  63. package/dist/{types-ChewVlpE.d.ts → types-CP3iQ8Ji.d.ts} +376 -4
  64. package/dist/{workspace-archive-DQGFwvM6.js → workspace-archive-C9lgf77y.js} +11 -11
  65. package/dist/workspace-archive-C9lgf77y.js.map +1 -0
  66. package/package.json +5 -5
  67. package/dist/coordination-driver-BmtrkNPu.js.map +0 -1
  68. package/dist/graph-BKRvWzHx.js.map +0 -1
  69. package/dist/improvement-cycle-D0Os0Hg_.js.map +0 -1
  70. package/dist/prepare-RuaAclli.js.map +0 -1
  71. package/dist/runtime-DKiucqGX.js.map +0 -1
  72. package/dist/supervise-DsQjhLN-.js.map +0 -1
  73. package/dist/workspace-archive-DQGFwvM6.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-sGOO254Q.js";
2
- import { On as ToolLoopCallContext, kn as ToolLoopChat } from "./stream-agent-turn-DRTFLphI.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
- import { E as immutableCandidateValue, S as canonicalCandidateDigest$1 } from "./workspace-archive-DQGFwvM6.js";
2
- import { f as verifyAgentImprovementProposal } from "./improvement-cycle-D0Os0Hg_.js";
3
- import { C as applyExactAgentProfileDiff, j as parseExactAgentProfile } from "./prepare-RuaAclli.js";
4
- import { i as superviseWithTestBrain, m as supervisorAgentWithTestBrain } from "./supervise-DsQjhLN-.js";
5
- import { r as driverAgent } from "./coordination-driver-BmtrkNPu.js";
6
- import { i as runGraphWithTestBrain } from "./graph-BKRvWzHx.js";
1
+ import { C as canonicalCandidateDigest$1, D as immutableCandidateValue } from "./workspace-archive-C9lgf77y.js";
2
+ import { f as verifyAgentImprovementProposal } from "./improvement-cycle-DirqO-fX.js";
3
+ import { i as applyExactAgentProfileDiff, p as parseExactAgentProfile } from "./profile-D3eXNBQV.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:19457805693ea7ddd45aa6c1e3a9ae0bb360827141cf6d991b1f82d185496389",
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.259.1"
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:4505cf8191efaec81ddaf725576407f06dfee1ed2f87888853e0696ed37eff7a",
4694
- "runId": "agent-runtime-0.259.1-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.259.1-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:3ed48a3ac943729eb507b7d105bbf7b5c898a30da911761347a00f30e194cb74",
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.259.1"
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:7f24dbb41ae9f4a3ca2c8998a7a0f7f3fcab2295f06436d36b986225b2ac70cf",
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-sGOO254Q.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-B9tf4soF.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 {
@@ -3521,6 +3859,10 @@ interface SpawnOpts {
3521
3859
  * (`'duplicate-key'`). Unkeyed spawns (the default) are position-identified and always run.
3522
3860
  */
3523
3861
  readonly key?: string;
3862
+ /** The settled sibling node this spawn replaces, so a run's record names which worker took over
3863
+ * whose work. The caller asserts the relation; the coordination `spawn_worker` tool admits only
3864
+ * a settled worker of the same manager. Journaled on `spawned` and on the `agent.spawn` hook. */
3865
+ readonly successorOf?: NodeId;
3524
3866
  }
3525
3867
  /** Fail-closed spawn rejections: an exhausted pool, a dollar request against a root that budgets
3526
3868
  * no dollars, an exceeded recursion ceiling, a full tree-wide worker allocation, a `key` that is
@@ -3939,8 +4281,17 @@ type SpawnEvent = {
3939
4281
  key?: string;
3940
4282
  /** Manager-scoped assignment identity used to join unkeyed and keyed work alike. */
3941
4283
  assignmentId?: string;
4284
+ /** The settled sibling node this spawn replaces (`SpawnOpts.successorOf`). */
4285
+ successorOf?: NodeId;
3942
4286
  budget: Budget;
3943
4287
  runtime: Runtime;
4288
+ /** Root-only opt-in admission contract. A resumed run must use the same policy and fleet
4289
+ * limits; absent on historical and default-off records. */
4290
+ recursiveAdmission?: {
4291
+ policy: RecursiveReservationPolicy;
4292
+ maxDepth: number;
4293
+ maxLiveWorkers: number;
4294
+ };
3944
4295
  /** Exact nested journal tree this node owns. Runtime writes this only after privately
3945
4296
  * attesting the executor as a recursive scope owner. Its absence means no tree is followed,
3946
4297
  * including records written before this field existed and caller leaves named `driver`. */
@@ -4357,6 +4708,12 @@ interface Supervisor<Task, Out> {
4357
4708
  run(root: Agent<Task, Out>, task: Task, opts: SupervisorOpts): Promise<SupervisedResult<Out>>;
4358
4709
  attach(h: RootHandle<Out>): void;
4359
4710
  }
4711
+ /** Optional recursive admission policy. `ownerShare` is the fraction of every manager's budget
4712
+ * kept free for its own inference while children hold their full declared ceilings. The same
4713
+ * policy reserves one live worker slot per remaining depth, up to `maxDepth`. */
4714
+ interface RecursiveReservationPolicy {
4715
+ readonly ownerShare: number;
4716
+ }
4360
4717
  interface SupervisorOpts {
4361
4718
  /** The root conserved-pool ceiling (tokens + usd + iterations + deadline). */
4362
4719
  readonly budget: Budget;
@@ -4384,6 +4741,9 @@ interface SupervisorOpts {
4384
4741
  /** Hard tree-wide cap on simultaneously executing spawned workers. The root is excluded; every
4385
4742
  * nested driver and leaf shares this one allocation. Omit/`<= 0` leaves worker count uncapped. */
4386
4743
  readonly maxLiveWorkers?: number;
4744
+ /** Opt in to reserving each manager's inference share and enough tree-wide worker slots for a
4745
+ * descendant path to `maxDepth`. Omit to retain full-ceiling admission behavior. */
4746
+ readonly reservationPolicy?: RecursiveReservationPolicy;
4387
4747
  /**
4388
4748
  * OTP intensity breaker: more than `maxRestarts` child restarts within `withinMs`
4389
4749
  * trips the supervisor to `no-winner` rather than restarting forever.
@@ -4643,6 +5003,10 @@ type SupervisedResult<Out> = {
4643
5003
  readonly rootProviderModel?: RootProviderModelEvidence;
4644
5004
  /** The root manager's retained provider stream, when the run directory holds one. */
4645
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;
4646
5010
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4647
5011
  readonly providerModel?: ProviderModelExecutionEvidence;
4648
5012
  /** Settled children whose teardown stayed unconfirmed after the settlement retry window
@@ -4686,6 +5050,10 @@ type SupervisedResult<Out> = {
4686
5050
  readonly rootProviderModel?: RootProviderModelEvidence;
4687
5051
  /** The root manager's retained provider stream, when the run directory holds one. */
4688
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;
4689
5057
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4690
5058
  readonly providerModel?: ProviderModelExecutionEvidence;
4691
5059
  /** Settled children whose teardown stayed unconfirmed after the settlement retry window
@@ -4752,6 +5120,10 @@ type SupervisedResult<Out> = {
4752
5120
  readonly rootProviderModel?: RootProviderModelEvidence;
4753
5121
  /** The root manager's retained provider stream, when the run directory holds one. */
4754
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;
4755
5127
  /** Runtime-owned provider evidence reduced across the complete journal forest. */
4756
5128
  readonly providerModel?: ProviderModelExecutionEvidence;
4757
5129
  /** Settled children whose teardown stayed unconfirmed after the settlement retry window
@@ -4820,5 +5192,5 @@ interface WidenGate<Out> {
4820
5192
  readonly judgeExempt?: boolean;
4821
5193
  }
4822
5194
  //#endregion
4823
- export { SpawnOpts as $, ReadableEnvironment as $n, LoopPlanDescription as $r, RuntimeEventCollector as $t, NodeExecutionIdentity as A, AgentRuntimeEvent as Ai, RetainedChildRecovery as An, BudgetPool as Ar, traceContextToEnv as At, ResumedKeyState as B, OpenAIChatToolChoice as Bi, ReconnectRetainedInteractiveRunOptions as Bn, createBudgetPool as Br, OtelSpan as Bt, ExecutorToolCall as C, RuntimeRunStatus as Ci, SessionMessageLike as Cn, RetainedRunIntentAdmission as Cr, workerTraceEnv as Ct, MaterializedExecutionIdentity as D, AgentBackendInput as Di, createPushTraceSource as Dn, RetainedRunTurnInput as Dr, createPropagatingTraceEmitter as Dt, HeldEnvironment as E, AgentBackendContext as Ei, TraceSource as En, RetainedRunStartMaterial as Er, TraceContext as Et, ProviderModelAttemptEvidence as F, AgentTaskStatus as Fi, ExecutorProgress as Fn, ReservationHolder as Fr, INTELLIGENCE_WIRE_VERSION as Ft, RootProviderModelEvidence as G, RuntimeSessionStore as Gi, RetainedInteractiveStartMaterial as Gn, ExecCtx as Gr, createOpenInferenceFileExporter as Gt, RetainedExecutionState as H, RunAgentTaskStreamOptions as Hi, RetainedInteractiveAdmissionHook as Hn, AgentRunSpec as Hr, buildLoopOtelSpans as Ht, ProviderModelExecutionEvidence as I, BackendErrorDetail as Ii, ScopeProgressInput as In, ReservationRejection as Ir, LoopSpanNode as It, Runtime as J, HarnessTranscriptCapture as Jn, LoopEndedPayload as Jr, generateSpanId as Jt, RootSignal as K, RuntimeStreamEvent as Ki, StartRetainedInteractiveRunOptions as Kn, Iteration as Kr, createOtelExporter as Kt, ResourceLimit as L, KnowledgeReadinessDecision as Li, WorkerProgress as Ln, ReservationShortfall as Lr, OtelAttribute as Lt, NodeSnapshot as M, AgentTaskContext as Mi, ActivityLog as Mn, BudgetReadout as Mr, EvalRunGeneration as Mt, NodeStatus as N, AgentTaskRunResult as Ni, ActivityNote as Nn, BudgetReconcileFault as Nr, EvalRunsExportConfig as Nt, MaterializedModelIdentity as O, AgentExecutionBackend as Oi, decodeToolPart as On, StartRetainedRunInEnvironmentOptions as Or, mergeTraceEnv as Ot, ProfileMaterializationReceipt as P, AgentTaskSpec as Pi, DEFAULT_STALL_AFTER_MS as Pn, LeakedReservation as Pr, EvalRunsExportResult as Pt, SpawnJournal as Q, HarnessTranscriptUnavailableReason as Qn, LoopLineageOptions as Qr, toOtelAttributes as Qt, ResourceSpend as R, OpenAIChatResponseFormat as Ri, createActivityLog as Rn, ReservationStage as Rr, OtelExportConfig as Rt, ExecutorTeardownWarning as S, RuntimeRunRow as Si, waitUntil as Sn, RetainedRunHandle as Sr, readWorkerTraceContext as St, Handle as T, AgentAdapter as Ti, ToolStepInput as Tn, RetainedRunSnapshot as Tr, workerTraceSeamKey as Tt, RootHandle as U, RuntimeCanonicalStreamEvent as Ui, RetainedInteractiveEnvironmentInput as Un, DefaultVerdict$1 as Ur, buildLoopSpanNodes as Ut, ResumedWork as V, RunAgentTaskOptions as Vi, RecoverRetainedInteractiveRunOptions as Vn, spendFromUsageEvents as Vr, RuntimeEventOtelOptions as Vt, RootMaterialization as W, RuntimeSession as Wi, RetainedInteractiveRunHandle as Wn, Driver as Wr, buildRuntimeEventOtelSpans as Wt, Settled as X, HarnessTranscriptFile as Xn, LoopIterationEndedPayload as Xr, padSpanId as Xt, Scope as Y, HarnessTranscriptEvidence as Yn, LoopIterationDispatchPayload as Yr, loopEventToOtelSpan as Yt, SpawnEvent as Z, HarnessTranscriptUnavailable as Zn, LoopIterationStartedPayload as Zr, padTraceId as Zt, ExecutorMaterialization as _, RuntimeRunCompleteInput as _i, createWaitProbes as _n, RetainedRunCancellation as _r, WorkerInteractiveUnavailableReason as _t, BudgetOverspend as a, LoopTokenUsage as ai, SanitizedKnowledgeRequirement as an, NativeContextContinuationInput as ar, SteerableRootHandle as at, ExecutorRegistry as b, RuntimeRunOptions as bi, timerAt as bn, RetainedRunEnvironmentAdmission as br, WorkerTraceResolver as bt, EnvironmentTeardownReceipt as c, LoopWinner as ci, sanitizeAgentRuntimeEvent as cn, RecoverRetainedRunOptions as cr, SupervisorOpts as ct, ExecutorAccounting as d, OutputAdapter as di, PendingWait as dn, RetainedInteractiveEnvironmentAdmission as dr, UnconfirmedTeardown as dt, LoopPlanPayload as ei, RuntimeStreamEventCollector as en, captureHarnessTranscript as er, SpawnPrior as et, ExecutorCancellation as f, RunProvenance as fi, WaitOutcome as fn, RetainedInteractiveIntentAdmission as fr, UnknownMaterializationReason as ft, ExecutorFactory as g, Validator as gi, WaitSpec as gn, RetainedRunCancelOptions as gr, WorkerInteractiveSession as gt, ExecutorExecutionBinding as h, ValidationCtx as hi, WaitRejection as hn, RetainedRunAdmissionHook as hr, WidenGate as ht, Budget as i, LoopTeardownFailedPayload as ii, SanitizedKnowledgeReadinessReport as in, NativeContextContinuationHandle as ir, SpendGap as it, NodeId as j, AgentRuntimeEventSink as ji, RetainedPendingCause as jn, BudgetPoolRestore as jr, EvalRunEvent as jt, NoWinnerError as k, AgentKnowledgeProvider as ki, sandboxSessionTraceSource as kn, StartRetainedRunOptions as kr, readTraceContextFromEnv as kt, ExecutionBindingReceipt as l, MountManifestEntry as li, sanitizeKnowledgeReadinessReport as ln, RecoverRetainedRunResult as lr, TokenUsageProvenance as lt, ExecutorContext as m, SelectionReceipt as mi, WaitProbeRegistry as mn, RetainedRunAdmission as mr, WaitOpts as mt, AgentExecutionRef as n, LoopSandboxPlacement as ni, RuntimeStreamEventSummary as nn, persistHarnessTranscript as nr, Spend as nt, BudgetViolation as o, LoopTraceEmitter as oi, createRuntimeEventCollector as on, ReconnectRetainedRunOptions as or, SupervisedResult as ot, ExecutorCancellationRequest as p, SandboxClient as pi, WaitProbe as pn, RetainedInteractiveStartedAdmission as pr, UsageEvent as pt, RootStreamReceipt as q, HarnessTranscriptArtifact as qn, LoopDecisionPayload as qr, exportEvalRuns as qt, AgentSpec as r, LoopStartedPayload as ri, RuntimeTelemetryOptions as rn, NativeContextContinuationExecution as rr, SpendChannel as rt, DefaultVerdict as s, LoopTraceEvent as si, createRuntimeStreamEventCollector as sn, RecoverRetainedRunIntentOptions as sr, Supervisor as st, Agent as t, LoopResult as ti, RuntimeStreamEventSink as tn, harnessTranscriptArtifact as tr, SpawnRejection as tt, Executor as u, MountRecorder as ui, sanitizeRuntimeStreamEvent as un, RetainedInteractiveAdmission as ur, TreeView as ut, ExecutorNodeContext as v, RuntimeRunCost as vi, isWaitOutcome as vn, RetainedRunDispatchedAdmission as vr, WorkerTraceEvidence as vt, FleetYield as w, startRuntimeRun as wi, SessionTraceBox as wn, RetainedRunReplayPoint as wr, workerTraceHeaders as wt, ExecutorResult as x, RuntimeRunPersistenceAdapter as xi, validateWaitSpec as xn, RetainedRunEventOptions as xr, WorkerTraceSeamCarrier as xt, ExecutorProgressEvent as y, RuntimeRunHandle as yi, pollFor as yn, RetainedRunEffect as yr, WorkerTraceUnavailableReason as yt, ResultBlobStore as z, OpenAIChatTool as zi, readWorkerProgress as zn, ReservationTicket as zr, OtelExporter as zt };
4824
- //# sourceMappingURL=types-ChewVlpE.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