effect-agent 0.1.0-beta.96 → 0.1.0-beta.98

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 (142) hide show
  1. package/dist/{AgentRuntime-B64362Id.d.mts → AgentRuntime-BMzrJos6.d.mts} +2 -2
  2. package/dist/{AgentRuntime-Cdvqw7l_.mjs → AgentRuntime-BWOnNc0d.mjs} +78 -42
  3. package/dist/AgentRuntime-BWOnNc0d.mjs.map +1 -0
  4. package/dist/{DurableAgentRuntime-BGwGUIT-.mjs → DurableAgentRuntime-gF4YiEj2.mjs} +485 -262
  5. package/dist/DurableAgentRuntime-gF4YiEj2.mjs.map +1 -0
  6. package/dist/{DurableFailpoint-DQJet828.d.mts → DurableFailpoint-mx3-nsxU.d.mts} +3 -3
  7. package/dist/{EventSource-tCO_dAff.d.mts → EventSource-BZ73J0s5.d.mts} +3 -3
  8. package/dist/{PreparedInputAdmission-CFSddiT8.d.mts → PreparedInputAdmission-BkeI-Xvr.d.mts} +4 -4
  9. package/dist/{Records-CMByd1eD.d.mts → Records-BIiRLqlz.d.mts} +93 -101
  10. package/dist/{Records-BEz5IFUu.mjs → Records-DR1xtbXY.mjs} +36 -7
  11. package/dist/Records-DR1xtbXY.mjs.map +1 -0
  12. package/dist/{RunJournal-B_fxe57c.mjs → RunJournal-DNs3PM4K.mjs} +80 -23
  13. package/dist/RunJournal-DNs3PM4K.mjs.map +1 -0
  14. package/dist/{RunOptions-Clj8cLsp.d.mts → RunOptions-Bruk54SE.d.mts} +13 -4
  15. package/dist/{Schedule-BxCfnYr0.d.mts → Schedule-BNFlluAl.d.mts} +2 -2
  16. package/dist/{Scheduling-BW6BD_TP.mjs → Scheduling-HFH0pST1.mjs} +2 -2
  17. package/dist/{Scheduling-BW6BD_TP.mjs.map → Scheduling-HFH0pST1.mjs.map} +1 -1
  18. package/dist/{Subagent-Cbfzylz1.mjs → Subagent-C2s8PFrd.mjs} +2 -2
  19. package/dist/{Subagent-Cbfzylz1.mjs.map → Subagent-C2s8PFrd.mjs.map} +1 -1
  20. package/dist/{Subagent-Bm1dRecN.d.mts → Subagent-m7ywTCe4.d.mts} +3 -3
  21. package/dist/{Subscription-CrTIQKZR.d.mts → Subscription-BCQ3L9Zp.d.mts} +3 -3
  22. package/dist/{SubscriptionInput-BVOeFF1L.d.mts → SubscriptionInput-Cqu4_RW3.d.mts} +3 -3
  23. package/dist/{ToolReconciler-DQVaJfpE.d.mts → ToolReconciler-BmVRAHKs.d.mts} +8 -4
  24. package/dist/{agent-registration-BTa5vmQF.mjs → agent-registration-cXpB8cBU.mjs} +40 -95
  25. package/dist/agent-registration-cXpB8cBU.mjs.map +1 -0
  26. package/dist/capabilities/Commands.d.mts +1 -1
  27. package/dist/capabilities/RunHooks.d.mts +1 -1
  28. package/dist/capabilities/Subagent.d.mts +1 -1
  29. package/dist/capabilities/Subagent.mjs +1 -1
  30. package/dist/durable/ActivityStore.d.mts +1 -1
  31. package/dist/durable/ActivityStore.mjs +1 -1
  32. package/dist/durable/Admin.d.mts +1 -1
  33. package/dist/durable/Admin.mjs +12 -10
  34. package/dist/durable/Admin.mjs.map +1 -1
  35. package/dist/durable/AgentRegistration.d.mts +2 -2
  36. package/dist/durable/AgentRegistration.mjs +4 -7
  37. package/dist/durable/AgentRegistration.mjs.map +1 -1
  38. package/dist/durable/Certification.d.mts +2 -2
  39. package/dist/durable/CommittedActivity.d.mts +1 -1
  40. package/dist/durable/CommittedActivity.mjs +1 -1
  41. package/dist/durable/Digest.d.mts +1 -1
  42. package/dist/durable/Digest.mjs +1 -1
  43. package/dist/durable/DurableAgentRuntime.d.mts +1 -1
  44. package/dist/durable/DurableAgentRuntime.mjs +1 -1
  45. package/dist/durable/DurableFailpoint.d.mts +1 -1
  46. package/dist/durable/DurableFailpoint.mjs +2 -0
  47. package/dist/durable/DurableFailpoint.mjs.map +1 -1
  48. package/dist/durable/DurableFailpointTestControl.d.mts +1 -1
  49. package/dist/durable/EventSource.d.mts +1 -1
  50. package/dist/durable/EventSource.mjs +1 -1
  51. package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
  52. package/dist/durable/GitHubWorkflowSource.mjs +1 -1
  53. package/dist/durable/MessageDelivery.d.mts +3 -3
  54. package/dist/durable/MessageDelivery.mjs +1 -1
  55. package/dist/durable/MessageDeliveryStoreConformance.d.mts +39 -39
  56. package/dist/durable/MessageDeliveryStoreConformance.mjs +1 -1
  57. package/dist/durable/PersistentHistory.d.mts +1 -1
  58. package/dist/durable/PersistentHistory.mjs +2 -2
  59. package/dist/durable/PreparedInputAdmission.d.mts +1 -1
  60. package/dist/durable/Records.d.mts +2 -2
  61. package/dist/durable/Records.mjs +2 -2
  62. package/dist/durable/Recovery.d.mts +1 -1
  63. package/dist/durable/Recovery.mjs +9 -9
  64. package/dist/durable/Recovery.mjs.map +1 -1
  65. package/dist/durable/RunJournal.d.mts +2 -2
  66. package/dist/durable/RunJournal.mjs +2 -2
  67. package/dist/durable/Schedule.d.mts +1 -1
  68. package/dist/durable/Schedule.mjs +1 -1
  69. package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
  70. package/dist/durable/ScheduleStoreConformance.mjs +1 -1
  71. package/dist/durable/ScheduleTransition.d.mts +1 -1
  72. package/dist/durable/ScheduleTransition.mjs +1 -1
  73. package/dist/durable/Scheduling.d.mts +2 -2
  74. package/dist/durable/Scheduling.mjs +1 -1
  75. package/dist/durable/SqlStorageV2Upgrade.d.mts +2 -2
  76. package/dist/durable/SqlStorageV2Upgrade.mjs +1 -1
  77. package/dist/durable/SqlSubscriptionStore.d.mts +2 -2
  78. package/dist/durable/SqlSubscriptionStore.mjs +1 -1
  79. package/dist/durable/SubmissionLedger.d.mts +1 -1
  80. package/dist/durable/SubmissionLedger.mjs +14 -13
  81. package/dist/durable/SubmissionLedger.mjs.map +1 -1
  82. package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
  83. package/dist/durable/SubmissionLedgerConformance.mjs +9 -2
  84. package/dist/durable/SubmissionLedgerConformance.mjs.map +1 -1
  85. package/dist/durable/SubmissionStatus.d.mts +1 -1
  86. package/dist/durable/Subscription.d.mts +1 -1
  87. package/dist/durable/Subscription.mjs +1 -1
  88. package/dist/durable/SubscriptionInput.d.mts +1 -1
  89. package/dist/durable/SubscriptionInput.mjs +2 -2
  90. package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
  91. package/dist/durable/SubscriptionStoreConformance.mjs +1 -1
  92. package/dist/durable/SubscriptionTools.d.mts +3 -3
  93. package/dist/durable/SubscriptionTransition.d.mts +1 -1
  94. package/dist/durable/SubscriptionTransition.mjs +1 -1
  95. package/dist/durable/Subscriptions.d.mts +5 -5
  96. package/dist/durable/Subscriptions.mjs +1 -1
  97. package/dist/durable/ThreadContextHistory.d.mts +1 -1
  98. package/dist/durable/ThreadContextHistory.mjs +1 -1
  99. package/dist/durable/ThreadContextHistoryProjection.d.mts +1 -1
  100. package/dist/durable/ThreadContextHistoryProjection.mjs +1 -1
  101. package/dist/durable/ThreadInvariants.d.mts +4 -2
  102. package/dist/durable/ThreadInvariants.mjs +49 -3
  103. package/dist/durable/ThreadInvariants.mjs.map +1 -1
  104. package/dist/durable/ThreadProjection.d.mts +1 -1
  105. package/dist/durable/ThreadProjection.mjs +1 -1
  106. package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
  107. package/dist/durable/ThreadStore.d.mts +1 -1
  108. package/dist/durable/ThreadStore.mjs +1 -1
  109. package/dist/durable/ThreadStoreConformance.d.mts +1 -1
  110. package/dist/durable/ThreadStoreConformance.mjs +1 -1
  111. package/dist/durable/ToolReconciler.d.mts +1 -1
  112. package/dist/durable/ToolReconciler.mjs +9 -5
  113. package/dist/durable/ToolReconciler.mjs.map +1 -1
  114. package/dist/durable/WorkerHost.d.mts +1 -1
  115. package/dist/engine/AgentRuntime.d.mts +1 -1
  116. package/dist/engine/AgentRuntime.mjs +1 -1
  117. package/dist/engine/RunOptions.d.mts +1 -1
  118. package/dist/engine/RunOptions.mjs.map +1 -1
  119. package/dist/index.d.mts +11 -11
  120. package/dist/index.mjs +6 -6
  121. package/package.json +1 -1
  122. package/src/durable/Admin.ts +20 -11
  123. package/src/durable/AgentRegistration.ts +1 -4
  124. package/src/durable/DurableAgentRuntime.ts +936 -462
  125. package/src/durable/DurableFailpoint.ts +2 -0
  126. package/src/durable/Records.ts +31 -4
  127. package/src/durable/Recovery.ts +8 -8
  128. package/src/durable/RunJournal.ts +128 -51
  129. package/src/durable/SubmissionLedger.ts +13 -12
  130. package/src/durable/SubmissionLedgerConformance.ts +13 -2
  131. package/src/durable/ThreadInvariants.ts +70 -5
  132. package/src/durable/ToolReconciler.ts +7 -3
  133. package/src/durable/internal/agent-registration.ts +77 -188
  134. package/src/durable/internal/messaging-host.ts +1 -6
  135. package/src/durable/internal/worker-host.ts +88 -116
  136. package/src/engine/RunOptions.ts +13 -3
  137. package/src/engine/internal/agent-runtime.ts +160 -106
  138. package/dist/AgentRuntime-Cdvqw7l_.mjs.map +0 -1
  139. package/dist/DurableAgentRuntime-BGwGUIT-.mjs.map +0 -1
  140. package/dist/Records-BEz5IFUu.mjs.map +0 -1
  141. package/dist/RunJournal-B_fxe57c.mjs.map +0 -1
  142. package/dist/agent-registration-BTa5vmQF.mjs.map +0 -1
@@ -16,10 +16,10 @@ declare namespace DurableFailpoint_d_exports {
16
16
  * suspension, child abort propagation, the atomic join batch, and both reservation-release
17
17
  * transitions.
18
18
  */
19
- declare const DurableRuntimeFailpointLocation: Schema.Literals<readonly ["submit:after-admit", "submit:after-materialize", "claim:after-claim", "input:after-canonical-append", "run:before-start-append", "run:after-start-append", "run:before-duration-append", "run:after-duration-append", "turn:after-canonical-append", "turn:after-response-append", "turn:after-results-append", "compaction:before-canonical-append", "compaction:after-canonical-append", "checkpoint:before-save", "checkpoint:after-save", "tools:after-prepared-append", "tools:before-prepared-append", "policy:before-reservation-append", "policy:after-reservation-append", "step:after-step-append", "approval:after-request-append", "approval:after-suspend", "join:after-claim", "join:after-canonical-append", "resolve:after-intent", "terminalize:after-reserve", "terminalize:after-canonical-append", "abort:after-intent", "subagent:after-reserve", "subagent:after-request-append", "subagent:after-admit", "subagent:after-child-ready", "subagent:after-start-append", "subagent:after-sibling-settle", "subagent:after-suspend", "subagent:after-child-abort-intent", "subagent:before-join-append", "subagent:after-join-append", "subagent:after-release-pending", "subagent:after-release", "worker:before-source-append", "worker:after-source-append", "worker:before-origin-append", "worker:after-origin-append", "worker:before-completion-append", "worker:after-completion-append", "worker:before-subtree-append", "worker:after-subtree-append", "worker:before-report-append", "worker:after-report-append", "worker:before-report-delivery", "worker:after-report-delivery", "update:before-canonical-append", "update:after-canonical-append", "update:before-delivery-insert", "update:after-delivery-insert"]>;
19
+ declare const DurableRuntimeFailpointLocation: Schema.Literals<readonly ["submit:after-admit", "submit:after-materialize", "claim:after-claim", "input:after-canonical-append", "run:before-start-append", "run:after-start-append", "run:before-duration-append", "run:after-duration-append", "turn:after-canonical-append", "turn:after-response-append", "turn:after-results-append", "compaction:before-canonical-append", "compaction:after-canonical-append", "checkpoint:before-save", "checkpoint:after-save", "tools:after-prepared-append", "tools:before-prepared-append", "tools:before-unavailable-append", "tools:after-unavailable-append", "policy:before-reservation-append", "policy:after-reservation-append", "step:after-step-append", "approval:after-request-append", "approval:after-suspend", "join:after-claim", "join:after-canonical-append", "resolve:after-intent", "terminalize:after-reserve", "terminalize:after-canonical-append", "abort:after-intent", "subagent:after-reserve", "subagent:after-request-append", "subagent:after-admit", "subagent:after-child-ready", "subagent:after-start-append", "subagent:after-sibling-settle", "subagent:after-suspend", "subagent:after-child-abort-intent", "subagent:before-join-append", "subagent:after-join-append", "subagent:after-release-pending", "subagent:after-release", "worker:before-source-append", "worker:after-source-append", "worker:before-origin-append", "worker:after-origin-append", "worker:before-completion-append", "worker:after-completion-append", "worker:before-subtree-append", "worker:after-subtree-append", "worker:before-report-append", "worker:after-report-append", "worker:before-report-delivery", "worker:after-report-delivery", "update:before-canonical-append", "update:after-canonical-append", "update:before-delivery-insert", "update:after-delivery-insert"]>;
20
20
  type DurableRuntimeFailpointLocation = typeof DurableRuntimeFailpointLocation.Type;
21
21
  declare const DurableRuntimeFailpointError_base: Schema.Class<DurableRuntimeFailpointError, Schema.TaggedStruct<"DurableRuntimeFailpointError", {
22
- readonly location: Schema.Literals<readonly ["submit:after-admit", "submit:after-materialize", "claim:after-claim", "input:after-canonical-append", "run:before-start-append", "run:after-start-append", "run:before-duration-append", "run:after-duration-append", "turn:after-canonical-append", "turn:after-response-append", "turn:after-results-append", "compaction:before-canonical-append", "compaction:after-canonical-append", "checkpoint:before-save", "checkpoint:after-save", "tools:after-prepared-append", "tools:before-prepared-append", "policy:before-reservation-append", "policy:after-reservation-append", "step:after-step-append", "approval:after-request-append", "approval:after-suspend", "join:after-claim", "join:after-canonical-append", "resolve:after-intent", "terminalize:after-reserve", "terminalize:after-canonical-append", "abort:after-intent", "subagent:after-reserve", "subagent:after-request-append", "subagent:after-admit", "subagent:after-child-ready", "subagent:after-start-append", "subagent:after-sibling-settle", "subagent:after-suspend", "subagent:after-child-abort-intent", "subagent:before-join-append", "subagent:after-join-append", "subagent:after-release-pending", "subagent:after-release", "worker:before-source-append", "worker:after-source-append", "worker:before-origin-append", "worker:after-origin-append", "worker:before-completion-append", "worker:after-completion-append", "worker:before-subtree-append", "worker:after-subtree-append", "worker:before-report-append", "worker:after-report-append", "worker:before-report-delivery", "worker:after-report-delivery", "update:before-canonical-append", "update:after-canonical-append", "update:before-delivery-insert", "update:after-delivery-insert"]>;
22
+ readonly location: Schema.Literals<readonly ["submit:after-admit", "submit:after-materialize", "claim:after-claim", "input:after-canonical-append", "run:before-start-append", "run:after-start-append", "run:before-duration-append", "run:after-duration-append", "turn:after-canonical-append", "turn:after-response-append", "turn:after-results-append", "compaction:before-canonical-append", "compaction:after-canonical-append", "checkpoint:before-save", "checkpoint:after-save", "tools:after-prepared-append", "tools:before-prepared-append", "tools:before-unavailable-append", "tools:after-unavailable-append", "policy:before-reservation-append", "policy:after-reservation-append", "step:after-step-append", "approval:after-request-append", "approval:after-suspend", "join:after-claim", "join:after-canonical-append", "resolve:after-intent", "terminalize:after-reserve", "terminalize:after-canonical-append", "abort:after-intent", "subagent:after-reserve", "subagent:after-request-append", "subagent:after-admit", "subagent:after-child-ready", "subagent:after-start-append", "subagent:after-sibling-settle", "subagent:after-suspend", "subagent:after-child-abort-intent", "subagent:before-join-append", "subagent:after-join-append", "subagent:after-release-pending", "subagent:after-release", "worker:before-source-append", "worker:after-source-append", "worker:before-origin-append", "worker:after-origin-append", "worker:before-completion-append", "worker:after-completion-append", "worker:before-subtree-append", "worker:after-subtree-append", "worker:before-report-append", "worker:after-report-append", "worker:before-report-delivery", "worker:after-report-delivery", "update:before-canonical-append", "update:after-canonical-append", "update:before-delivery-insert", "update:after-delivery-insert"]>;
23
23
  }>, import("effect/Cause").YieldableError>;
24
24
  /** Injected coordinator fault. Reaching the caller means the preceding durable step committed. */
25
25
  declare class DurableRuntimeFailpointError extends DurableRuntimeFailpointError_base {}
@@ -38,4 +38,4 @@ declare class DurableRuntimeFailpoint extends DurableRuntimeFailpoint_base {
38
38
  }
39
39
  //#endregion
40
40
  export { DurableRuntimeFailpointLocation as a, DurableRuntimeFailpointHandler as i, DurableRuntimeFailpoint as n, DurableRuntimeFailpointError as r, DurableFailpoint_d_exports as t };
41
- //# sourceMappingURL=DurableFailpoint-DQJet828.d.mts.map
41
+ //# sourceMappingURL=DurableFailpoint-mx3-nsxU.d.mts.map
@@ -1,5 +1,5 @@
1
- import { O as PersistedJson } from "./Records-CMByd1eD.mjs";
2
- import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-CrTIQKZR.mjs";
1
+ import { O as PersistedJson } from "./Records-BIiRLqlz.mjs";
2
+ import { E as SubscriptionSourceError, b as SubscriptionRecord, i as EventSourceVersion, t as AcceptedEvent } from "./Subscription-BCQ3L9Zp.mjs";
3
3
  import { Context, Effect, Schema, Scope } from "effect";
4
4
  declare namespace EventSource_d_exports {
5
5
  export { EventSource, EventSources, NormalizedEvent, makeEventSource };
@@ -48,4 +48,4 @@ declare const makeEventSource: <Event extends Schema.Top, Parameters extends Sch
48
48
  }) => Effect.Effect<EventSource, never, Exclude<R, Scope.Scope> | Exclude<Event["DecodingServices"], Scope.Scope> | Exclude<Event["EncodingServices"], Scope.Scope> | Exclude<Parameters["DecodingServices"], Scope.Scope> | Exclude<Parameters["EncodingServices"], Scope.Scope>>;
49
49
  //#endregion
50
50
  export { makeEventSource as a, NormalizedEvent as i, EventSource_d_exports as n, EventSources as r, EventSource as t };
51
- //# sourceMappingURL=EventSource-tCO_dAff.d.mts.map
51
+ //# sourceMappingURL=EventSource-BZ73J0s5.d.mts.map
@@ -1,7 +1,7 @@
1
1
  import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
2
- import { fn as SubmissionStatus } from "./Records-CMByd1eD.mjs";
3
- import { H as ScheduledInputRefused, V as ScheduledInputFailure, j as ScheduleStorageError } from "./Schedule-BxCfnYr0.mjs";
4
- import { a as PreparedInput } from "./Subscription-CrTIQKZR.mjs";
2
+ import { mn as SubmissionStatus } from "./Records-BIiRLqlz.mjs";
3
+ import { H as ScheduledInputRefused, V as ScheduledInputFailure, j as ScheduleStorageError } from "./Schedule-BNFlluAl.mjs";
4
+ import { a as PreparedInput } from "./Subscription-BCQ3L9Zp.mjs";
5
5
  import { Context, Effect } from "effect";
6
6
  declare namespace PreparedInputAdmission_d_exports {
7
7
  export { PreparedInputAdmission, admitPreparedInput };
@@ -35,4 +35,4 @@ declare const admitPreparedInput: <R>(submit: Effect.Effect<Receipt, ScheduledIn
35
35
  }, ScheduleStorageError, R>;
36
36
  //#endregion
37
37
  export { PreparedInputAdmission_d_exports as n, admitPreparedInput as r, PreparedInputAdmission as t };
38
- //# sourceMappingURL=PreparedInputAdmission-CFSddiT8.d.mts.map
38
+ //# sourceMappingURL=PreparedInputAdmission-BkeI-Xvr.d.mts.map
@@ -12,14 +12,14 @@ import { t as AgentPolicy } from "./AgentPolicy-BqDoSXO6.mjs";
12
12
  import { T as RunDispositionDeclaration, _ as InstructionSource, c as Definition, m as InputPromptSource, n as Any, r as AnyDefinition, v as ModelServices } from "./Agent-CM6JubNX.mjs";
13
13
  import { t as RunPolicyUsage } from "./RunPolicyUsage-ClZxyR46.mjs";
14
14
  import { a as WorkerError } from "./Worker--j87JI__.mjs";
15
- import { G as RunToolAuthorization, O as RunCostEstimator, h as RunApprovalHook, x as RunContextPreparation } from "./RunOptions-Clj8cLsp.mjs";
15
+ import { G as RunToolAuthorization, O as RunCostEstimator, h as RunApprovalHook, x as RunContextPreparation } from "./RunOptions-Bruk54SE.mjs";
16
16
  import { _ as MessagingError, f as InputMessage, t as MessagingHost } from "./MessagingHost-gAxs5gme.mjs";
17
17
  import "./Messaging-QMYhp297.mjs";
18
18
  import { c as WorkerReportPreparationFailure, i as SubagentHost, l as WorkerReporting } from "./SubagentHost-DaFMZnVR.mjs";
19
- import { p as RuntimeBinding, r as AgentCompletionProjectionRequirements, s as AgentRuntimeRequirements } from "./AgentRuntime-B64362Id.mjs";
20
- import { n as DurableRuntimeFailpoint, r as DurableRuntimeFailpointError } from "./DurableFailpoint-DQJet828.mjs";
19
+ import { p as RuntimeBinding, r as AgentCompletionProjectionRequirements, s as AgentRuntimeRequirements } from "./AgentRuntime-BMzrJos6.mjs";
20
+ import { n as DurableRuntimeFailpoint, r as DurableRuntimeFailpointError } from "./DurableFailpoint-mx3-nsxU.mjs";
21
21
  import { o as OperationDenied } from "./OperationAuthorizer-TzcQtpX5.mjs";
22
- import { s as ToolReconciler } from "./ToolReconciler-DQVaJfpE.mjs";
22
+ import { s as ToolReconciler } from "./ToolReconciler-BmVRAHKs.mjs";
23
23
  import { t as WakeScheduler } from "./WakeScheduler-EjUF-GhC.mjs";
24
24
  import { Prompt, Tool } from "effect/unstable/ai";
25
25
  import { Context, Crypto, DateTime, Duration, Effect, Layer, Option, Schema, Scope, Stream } from "effect";
@@ -44,12 +44,12 @@ type OwnershipToken = typeof OwnershipToken.Type;
44
44
  * host Run's outcome.
45
45
  * - `suspended` — durably waiting for explicit approval decisions; the ownership period has
46
46
  * ended and the lane consumes no worker permit while the obligation stays owed.
47
- * - `unknown` — at least one ordinary Tool Call has a durable Unknown Outcome; the lane is
48
- * blocked until an authorized resolution covers every open call or a durable abort intent
49
- * authorizes cleanup and aborted settlement without Tool replay (DUR-012/DUR-017).
47
+ * - `unknown` — at least one Tool Call has a durable Unknown Outcome; this Submission is
48
+ * parked until an authorized resolution covers every open call or a durable abort intent
49
+ * authorizes cleanup without Tool replay. Later eligible input may run (DUR-012/DUR-017).
50
50
  *
51
- * `claim` never grants a `joining`, `joined`, or `suspended` head. An `unknown` head is
52
- * claimable only with a durable abort intent, under the ordinary lease and fencing rules.
51
+ * `claim` never grants or bypasses a `joining`, `joined`, or `suspended` head. It skips unknown
52
+ * work without an abort intent. Any live ownership in the Thread prevents another claim.
53
53
  */
54
54
  declare const SubmissionState: Schema.Literals<readonly ["admitted", "ready", "joining", "joined", "running", "input-applied", "suspended", "unknown", "terminalizing", "settled"]>;
55
55
  type SubmissionState = typeof SubmissionState.Type;
@@ -773,7 +773,7 @@ declare const MarkUnknownRequest_base: Schema.Class<MarkUnknownRequest, Schema.S
773
773
  }>, {}>;
774
774
  /**
775
775
  * Durable Unknown marking for one Submission's open ordinary Tool Calls (DUR-009): state →
776
- * `unknown`, the lane blocks, ownership-free (recovery may mark without a claim). Idempotent.
776
+ * `unknown`, parking that Submission without changing ownership or the Thread epoch. Idempotent.
777
777
  */
778
778
  declare class MarkUnknownRequest extends MarkUnknownRequest_base {}
779
779
  declare const ResolutionCompletedWithResult_base: Schema.Class<ResolutionCompletedWithResult, Schema.TaggedStruct<"CompletedWithResult", {
@@ -1020,10 +1020,10 @@ declare const SubmissionLedger_base: Context.ServiceClass<SubmissionLedger, "@ef
1020
1020
  * Marking an already-ready (or later-state) Submission is a no-op.
1021
1021
  * - `lookup` — read one Submission by identity or scoped idempotency key; strongly consistent
1022
1022
  * with prior ledger writes.
1023
- * - `claim` — FIFO-head claim rule: claims ONLY the lowest unsettled `queueSequence` of the
1024
- * requested Thread lane (DUR-004/DUR-005), regardless of that head's nonterminal state,
1025
- * and returns `Option.none` when the lane has no unsettled work or the head's lease is still
1026
- * live under another owner. A successful claim atomically bumps the Thread's producer
1023
+ * - `claim` — claims the lowest unsettled `queueSequence` after skipping only unknown rows
1024
+ * without abort intent. Approval, joining and child-wait barriers remain ordered. Returns
1025
+ * `Option.none` when no eligible work exists or ANY lease in the Thread is live, including
1026
+ * a lease belonging to the same producer. A successful claim atomically bumps the Thread's producer
1027
1027
  * epoch — fencing every stale Attempt out of canonical appends (DUR-006) — mints a fresh
1028
1028
  * `attemptId` and `ownershipToken`, and starts the ownership lease (D5: adapters default to
1029
1029
  * `DEFAULT_OWNERSHIP_LEASE_DURATION`, configurable). An expired lease makes the head
@@ -1106,8 +1106,9 @@ declare const SubmissionLedger_base: Context.ServiceClass<SubmissionLedger, "@ef
1106
1106
  * with `ChildReservationConflict`. "A crash before release leaves budget unavailable until
1107
1107
  * repair, never available twice" (spec §12).
1108
1108
  * - `markUnknown` — idempotent, ownership-free (canonical evidence authorizes it): state →
1109
- * `unknown`, the lane blocks and stops consuming worker permits while the accepted settlement
1110
- * obligation stays visible (DUR-009/DUR-017). Fails with `SettlementConflict` once settled.
1109
+ * `unknown`, parking the Submission while its accepted settlement obligation stays visible.
1110
+ * Existing ownership must release or expire before another claim (DUR-009/DUR-017).
1111
+ * Fails with `SettlementConflict` once settled.
1111
1112
  * - `recordUnknownResolution` — durable, idempotent per `(submissionId, toolCallId)`; a
1112
1113
  * divergent re-resolution fails with `UnknownResolutionConflict`. Transitions
1113
1114
  * `unknown → input-applied` once no open call remains, waking the lane. Fails with
@@ -1167,8 +1168,8 @@ declare const DeclaredPendingBatchEvidence_base: Schema.Class<DeclaredPendingBat
1167
1168
  }>, {}>;
1168
1169
  /**
1169
1170
  * A committed tool-declaring response with ZERO prepared and ZERO settled records for its Turn:
1170
- * the provably-safe durability §15 window — no prepared records means no handler ran, so the
1171
- * declared batch resumes without model re-invocation and without Unknown.
1171
+ * the durability §15 batch-resume window. Mutation preparation has not committed; readonly
1172
+ * handlers may already have run. The worker checks each unfinished operation before execution.
1172
1173
  */
1173
1174
  declare class DeclaredPendingBatchEvidence extends DeclaredPendingBatchEvidence_base {}
1174
1175
  declare const PendingApprovalEvidence_base: Schema.Class<PendingApprovalEvidence, Schema.Struct<{
@@ -1337,7 +1338,7 @@ declare const ResumePendingToolBatch_base: Schema.Class<ResumePendingToolBatch,
1337
1338
  readonly turn: Schema.Int;
1338
1339
  }>, {}>;
1339
1340
  /** A committed tool-declaring response has zero prepared and zero settled records: a worker
1340
- * resumes the declared batch — no model re-invocation, no Unknown (durability §15). S2 also
1341
+ * checks unfinished contracts and resumes the declared batch without model re-invocation. S2 also
1341
1342
  * routes an open delegation call WITHOUT establishment evidence here (spec §13 row 1): the
1342
1343
  * declared batch re-executes and the idempotent establishment converges on one child. */
1343
1344
  declare class ResumePendingToolBatch extends ResumePendingToolBatch_base {}
@@ -1356,14 +1357,14 @@ declare class ResumeSuspended extends ResumeSuspended_base {}
1356
1357
  declare const AwaitUnknownResolution_base: Schema.Class<AwaitUnknownResolution, Schema.TaggedStruct<"AwaitUnknownResolution", {
1357
1358
  readonly submissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
1358
1359
  }>, {}>;
1359
- /** Unknown Outcomes lack covering resolutions: the lane stays blocked awaiting the authorized
1360
+ /** Unknown Outcomes lack covering resolutions: this Submission stays parked awaiting the authorized
1360
1361
  * DUR-017 resolution path; the obligation stays visible, nothing replays. */
1361
1362
  declare class AwaitUnknownResolution extends AwaitUnknownResolution_base {}
1362
1363
  declare const ApplyUnknownResolutions_base: Schema.Class<ApplyUnknownResolutions, Schema.TaggedStruct<"ApplyUnknownResolutions", {
1363
1364
  readonly submissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
1364
1365
  }>, {}>;
1365
- /** Durable resolution intents cover every open call: apply them canonically
1366
- * (`ToolCallResolved` + `ToolCallSettled` for recovered results) and reopen the lane. */
1366
+ /** Durable resolution intents cover every open call: wake the original Submission when its
1367
+ * required retry contract is supported. Canonical outcomes are applied by the next claim. */
1367
1368
  declare class ApplyUnknownResolutions extends ApplyUnknownResolutions_base {}
1368
1369
  declare const RevertJoining_base: Schema.Class<RevertJoining, Schema.TaggedStruct<"RevertJoining", {
1369
1370
  readonly submissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
@@ -1540,8 +1541,8 @@ type RecoveryDecision = typeof RecoveryDecision.Type;
1540
1541
  * ApplyJoinAccounting → CompleteChildAdmission → RepairSubagentStartLink →
1541
1542
  * AwaitChildAdmissionResolution → ResumePendingToolBatch (idempotent handler re-entry) →
1542
1543
  * EnsureWaitingForChild → ResumeWaitingParent → ReleaseOrphanChildReservation.
1543
- * 10. declared-but-unprepared tool batch → ResumePendingToolBatch — no handler ran (no prepared
1544
- * records), so the batch resumes with no model re-invocation and no Unknown (§15).
1544
+ * 10. declared-but-unprepared tool batch → ResumePendingToolBatch — the worker checks original
1545
+ * operation contracts; missing preparation proves no mutation dispatch, not readonly nonexecution (§15).
1545
1546
  * 11. `admitted` → a parent-linked Submission whose Thread lacks the canonical lineage
1546
1547
  * record defers (AwaitParentEstablishment: the parent's idempotent establishment
1547
1548
  * completes it); otherwise
@@ -1580,49 +1581,17 @@ declare const BindingUnavailable_base: Schema.Class<BindingUnavailable, Schema.T
1580
1581
  readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
1581
1582
  readonly message: Schema.String;
1582
1583
  }>, import("effect/Cause").YieldableError>;
1583
- /**
1584
- * No Agent Binding is registered for the requested stable identity. Recovery
1585
- * fails closed: it never substitutes the latest Binding or runs different
1586
- * code.
1587
- */
1584
+ /** No unique current executable is registered for the stable Agent identity. */
1588
1585
  declare class BindingUnavailable extends BindingUnavailable_base {}
1589
- declare const BindingDigestMismatch_base: Schema.Class<BindingDigestMismatch, Schema.TaggedStruct<"BindingDigestMismatch", {
1590
- readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
1591
- readonly message: Schema.String;
1592
- }>, import("effect/Cause").YieldableError>;
1593
- /**
1594
- * A Binding is registered for the identity but neither the exact admission fingerprints
1595
- * nor its declared replay contract support the retained pending operations. Refusal leaves
1596
- * the original Submission pending until compatible code is available.
1597
- */
1598
- declare class BindingDigestMismatch extends BindingDigestMismatch_base {}
1599
- /** The typed refusal family of durable Binding resolution (spec §11, SUB-032). */
1600
- type DurableBindingFailure = BindingUnavailable | BindingDigestMismatch;
1601
- /** Byte-for-byte equality of two stored definition digest triples (SUB-023). */
1586
+ type DurableBindingFailure = BindingUnavailable;
1587
+ /** Exact immutable admission, lineage and delivery evidence; never an executable-code gate. */
1602
1588
  declare const definitionDigestsEqual: (left: DefinitionDigests, right: DefinitionDigests) => boolean;
1603
- /**
1604
- * Host-owned semantic versions, independent of deployment and tool inventory. Change a version
1605
- * when the meaning of an operation, its durable Step names or external idempotency keys changes.
1606
- * Codecs and execution class are included automatically; JSON Schema alone cannot prove semantics.
1607
- */
1589
+ /** Change an operation version when its meaning, durable Steps or idempotency keys change. */
1608
1590
  interface ReplayVersions {
1609
- readonly agent: PersistedJson;
1610
1591
  readonly tools: Readonly<Record<string, PersistedJson>>;
1611
1592
  }
1612
- declare const BindingManifest_base: Schema.Class<BindingManifest, Schema.Struct<{
1613
- readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
1614
- readonly definitions: typeof DefinitionDigestInput;
1615
- readonly replay: typeof ReplayContract;
1616
- }>, {}>;
1617
- /**
1618
- * Data exported from a definition, never an old executable Binding. A host may supply an audited
1619
- * manifest from the original release for work admitted before replay contracts were retained.
1620
- * Its original declarations must hash to that admission; a bare old digest is not a manifest.
1621
- */
1622
- declare class BindingManifest extends BindingManifest_base {}
1623
- declare const makeBindingManifest: (definition: Definition<Schema.Top, Schema.Top, unknown, import("effect/unstable/ai/Toolkit").Any, RunDispositionDeclaration<never, Schema.Top> | undefined, unknown, Schema.Top | undefined>, definitions: DefinitionDigestInput, versions: ReplayVersions) => Effect.Effect<BindingManifest, DigestError, Crypto.Crypto>;
1624
- /** Resolve executable code only. Admission, delivery, lineage and receipt comparisons stay exact. */
1625
- declare const bindingSupports: (binding: Pick<ResolvedBinding, "digests" | "retainedManifests">, digests: DefinitionDigests, requiredTools?: ReadonlyArray<string>) => boolean;
1593
+ /** Compile current metadata without acquiring executable services. */
1594
+ declare const compileBindingContracts: (definition: Definition<Schema.Top, Schema.Top, unknown, import("effect/unstable/ai/Toolkit").Any, RunDispositionDeclaration<never, Schema.Top> | undefined, unknown, Schema.Top | undefined>, definitions: DefinitionDigestInput, versions?: ReplayVersions | undefined) => Effect.Effect<Pick<ResolvedBinding, "digests">, DigestError, Crypto.Crypto>;
1626
1595
  type ExecutableDefinition = AnyDefinition & {
1627
1596
  readonly instructions: InstructionSource<never, unknown, unknown>;
1628
1597
  readonly inputPrompt?: InputPromptSource<never, unknown, unknown> | undefined;
@@ -1653,11 +1622,6 @@ type ReportRequirements<Reports> = Reports extends ReadonlyArray<WorkerReporting
1653
1622
  /** One exact executable registration used by durable claim-time resolution. */
1654
1623
  interface ResolvedBinding extends CapturedBinding {
1655
1624
  readonly digests: DefinitionDigests;
1656
- readonly manifest?: BindingManifest;
1657
- readonly retainedManifests?: ReadonlyArray<{
1658
- readonly digests: DefinitionDigests;
1659
- readonly replay: ReplayContract;
1660
- }>;
1661
1625
  }
1662
1626
  /** Trusted claim identity for resolving per-Attempt application services. Not model input. */
1663
1627
  interface AgentAttemptContext {
@@ -1687,10 +1651,9 @@ type AgentRegistration<A extends ExecutableAgentBinding = ExecutableAgentBinding
1687
1651
  readonly model: A["model"];
1688
1652
  readonly definitions: DefinitionDigestInput;
1689
1653
  }) & {
1690
- /** Opt into contract-checked deployment continuity. Omit to require an exact registration. */
1654
+ /** Explicit operation versions let unchanged unfinished handlers survive toolbox changes. */
1691
1655
  readonly continuity?: {
1692
1656
  readonly versions: ReplayVersions;
1693
- readonly retainedManifests?: ReadonlyArray<BindingManifest>;
1694
1657
  };
1695
1658
  /**
1696
1659
  * Source-owned reports capture services outside attemptLayer and open a fresh Scope per
@@ -1721,7 +1684,7 @@ type RegistrationRequirements<Entries extends ReadonlyArray<AgentRegistration>>
1721
1684
  /** Compile heterogeneous Agent descriptors into exact, dependency-closed worker registrations. */
1722
1685
  declare const compileRegistrations: <const Entries extends ReadonlyArray<AgentRegistration>>(entries: Entries) => Effect.Effect<ReadonlyArray<ResolvedBinding>, DigestError, Crypto.Crypto | RegistrationRequirements<Entries>>;
1723
1686
  declare namespace AgentRegistration_d_exports {
1724
- export { AgentAttemptContext, AgentRegistration, BindingDigestMismatch, BindingManifest, BindingUnavailable, DurableBindingFailure, DurableWorkerBinding, ExecutableAgentBinding, ReplayVersions, ResolvedBinding, bindingSupports, compileRegistrations, definitionDigestsEqual, makeBindingManifest };
1687
+ export { AgentAttemptContext, AgentRegistration, BindingUnavailable, DurableBindingFailure, DurableWorkerBinding, ExecutableAgentBinding, ReplayVersions, ResolvedBinding, compileBindingContracts, compileRegistrations, definitionDigestsEqual };
1725
1688
  }
1726
1689
  declare namespace Admin_d_exports {
1727
1690
  export { ExplainedEvidence, ExplainedSubmission, ExplainedUnknownCall, IntegrityCheck, IntegrityCheckName, IntegrityCheckStatus, IntegrityReport, ObligationBlockedOn, ObligationEntry, ObligationReport, ObligationSeverity, ObligationThresholds, RECOVERY_DECISION_MEANINGS, RecoveryDisposition, RecoveryExplanation, RetryCommand, RetryRefusalReason, RetryRefused, obligationSeverityOf, predictRecoveryDisposition, recoveryDecisionMeaning, renderRecoveryExplanation };
@@ -1752,10 +1715,10 @@ declare const ExplainedUnknownCall_base: Schema.Class<ExplainedUnknownCall, Sche
1752
1715
  readonly toolName: Schema.NonEmptyString;
1753
1716
  readonly reason: Schema.String;
1754
1717
  readonly recordedAt: Schema.DateTimeUtcFromString;
1755
- /** A durable `resolveUnknown` intent covers this call. */
1718
+ /** A real canonical ToolCallSettled closes this call; an intent alone is not an outcome. */
1756
1719
  readonly resolved: Schema.Boolean;
1757
1720
  }>, {}>;
1758
- /** One durable Unknown Outcome and whether a covering resolution intent exists (DUR-017). */
1721
+ /** One durable Unknown Outcome and whether its result is canonical (DUR-017). */
1759
1722
  declare class ExplainedUnknownCall extends ExplainedUnknownCall_base {}
1760
1723
  declare const ExplainedEvidence_base: Schema.Class<ExplainedEvidence, Schema.Struct<{
1761
1724
  readonly threadMaterialized: Schema.Boolean;
@@ -1764,6 +1727,8 @@ declare const ExplainedEvidence_base: Schema.Class<ExplainedEvidence, Schema.Str
1764
1727
  readonly recordedSettlementOutcome: Schema.optionalKey<Schema.Literals<readonly ["completed", "failed", "aborted"]>>;
1765
1728
  /** Prepared ordinary Tool Calls without a canonical outcome (DUR-009). */
1766
1729
  readonly openToolCalls: Schema.$Array<typeof OpenToolCallEvidence>;
1730
+ /** Original prepared operation identities, arguments and recovery contracts; settled calls are excluded. */
1731
+ readonly pendingOperations: Schema.withConstructorDefault<Schema.$Array<typeof ToolCallPrepared>>;
1767
1732
  /** Delegation Tool Calls with an open parent-side obligation. */
1768
1733
  readonly openDelegationCalls: Schema.$Array<typeof OpenDelegationCallEvidence>;
1769
1734
  /** Canonically requested approvals without a canonical decision. */
@@ -1906,8 +1871,8 @@ declare const RetryCommand_base: Schema.Class<RetryCommand, Schema.Struct<{
1906
1871
  /**
1907
1872
  * The mandatory-audit retry command (SEC-011): `author`/`reason` carry the same bounds as the
1908
1873
  * canonical abort command so every mutating administrative operation stays attributable. The
1909
- * executed repair itself appends the deterministic `RepairAnnotated` audit record (DUR-013) —
1910
- * retry adds no new canonical record type.
1874
+ * operator and decision are logged. A repair with a claim also appends a best-effort
1875
+ * `RepairAnnotated` attempt using that claim's epoch; state-only repairs do not append audits.
1911
1876
  */
1912
1877
  declare class RetryCommand extends RetryCommand_base {}
1913
1878
  /** Why a retry was refused without executing anything. */
@@ -1920,7 +1885,7 @@ declare const RetryRefused_base: Schema.Class<RetryRefused, Schema.TaggedStruct<
1920
1885
  readonly message: Schema.String;
1921
1886
  }>, import("effect/Cause").YieldableError>;
1922
1887
  /**
1923
- * Typed refusal of `retry` (plan §3): lanes blocked on `AwaitUnknownResolution` or
1888
+ * Typed refusal of `retry` (plan §3): Submissions waiting on `AwaitUnknownResolution` or
1924
1889
  * `AwaitApprovalDecision` have their own authorized operations, and settled work is never
1925
1890
  * re-driven. The refusal names the classifier decision so the operator sees WHY.
1926
1891
  */
@@ -1980,7 +1945,7 @@ interface JournalMetadata {
1980
1945
  }>;
1981
1946
  }
1982
1947
  declare namespace RunJournal_d_exports {
1983
- export { JournalBoundary, RunJournalError, RunJournalProjection, RunJournalUsage, TurnCommitInput, approvalDecisionBatchId, childIdempotencyKeyFor, childThreadIdFor, compactionBatchId, compactionRecordId, markUnknownBatchId, modelResponseInterruptedBatchId, modelResponseInterruptedRecordId, modelResponseRecordId, projectRunJournal, projectRunJournalStream, promptFromCanonicalRecords, runCompletedRecordId, runDurationBatchId, runDurationRecordId, runIdForSubmission, runStartedBatchId, runStartedRecordId, subagentJoinBatchId, subagentJoinedRecordId, subagentLineageBatchId, subagentLineageRecordId, subagentRequestedBatchId, subagentRequestedRecordId, subagentStartedBatchId, subagentStartedRecordId, toolApprovalDecisionRecordId, toolApprovalRequestRecordId, toolCallPreparedRecordId, toolCallResolutionBatchId, toolCallResolvedRecordId, toolCallResultBatchId, toolCallSettledRecordId, toolCallUnknownRecordId, toolStepSettledBatchId, toolStepSettledRecordId, turnApprovalsBatchId, turnBatchId, turnCanonicalBatch, turnIdForRun, turnPreparedBatchId, turnResponseBatch, turnResponseBatchId, turnResultsBatch, turnResultsBatchId };
1948
+ export { JournalBoundary, RunJournalError, RunJournalProjection, RunJournalUsage, TurnCommitInput, approvalDecisionBatchId, childIdempotencyKeyFor, childThreadIdFor, compactionBatchId, compactionRecordId, markUnknownBatchId, modelResponseInterruptedBatchId, modelResponseInterruptedRecordId, modelResponseRecordId, projectRunJournal, projectRunJournalStream, promptFromCanonicalRecords, runCompletedRecordId, runCompletionDigest, runDurationBatchId, runDurationRecordId, runIdForSubmission, runStartedBatchId, runStartedRecordId, subagentJoinBatchId, subagentJoinedRecordId, subagentLineageBatchId, subagentLineageRecordId, subagentRequestedBatchId, subagentRequestedRecordId, subagentStartedBatchId, subagentStartedRecordId, toolApprovalDecisionRecordId, toolApprovalRequestRecordId, toolCallPreparedRecordId, toolCallResolutionBatchId, toolCallResolvedRecordId, toolCallResultBatchId, toolCallSettledRecordId, toolCallUnknownRecordId, toolStepSettledBatchId, toolStepSettledRecordId, turnApprovalsBatchId, turnBatchId, turnCanonicalBatch, turnIdForRun, turnPreparedBatchId, turnResponseBatch, turnResponseBatchId, turnResultsBatch, turnResultsBatchId };
1984
1949
  }
1985
1950
  declare const RunJournalError_base: Schema.Class<RunJournalError, Schema.TaggedStruct<"RunJournalError", {
1986
1951
  readonly message: Schema.String;
@@ -2157,7 +2122,7 @@ interface RunJournalProjection {
2157
2122
  readonly policyUsage: RunPolicyUsage;
2158
2123
  /** Canonical projection for the requested Run; may end at its resumable Tool declaration. */
2159
2124
  readonly prompt: Prompt.Prompt;
2160
- /** Valid prior-Run history excluding the projected Run's records and orphan Tool batches. */
2125
+ /** Prior-Run history with model-only unknown results closing incomplete application calls. */
2161
2126
  readonly historyBefore: Prompt.Prompt;
2162
2127
  /** Number of canonical Turns already committed for the projected Run. */
2163
2128
  readonly committedTurns: number;
@@ -2172,9 +2137,8 @@ interface RunJournalProjection {
2172
2137
  }
2173
2138
  /**
2174
2139
  * Pure projection: rebuild one Run's resume state from canonical records (DUR-015). Canonical
2175
- * order is authoritative; the fold projects each complete `ModelResponseRecorded` Turn and the
2176
- * owning Run's resumable incomplete Tool Turn, while excluding incomplete Tool batches from prior
2177
- * Runs. It flushes each contiguous group of valid `ToolCallSettled` records into one Tool message,
2140
+ * order is authoritative; the fold projects each `ModelResponseRecorded` Turn and the
2141
+ * owning Run's resumable incomplete Tool Turn. It flushes each contiguous group of valid `ToolCallSettled` records into one Tool message,
2178
2142
  * exactly mirroring the per-Turn commit shape produced by `turnCanonicalBatch` (no-tool Turns) and
2179
2143
  * by the
2180
2144
  * `turnResponseBatch`/`turnResultsBatch` split (tool-declaring Turns). The Phase 5 audit tags
@@ -2183,8 +2147,10 @@ interface RunJournalProjection {
2183
2147
  *
2184
2148
  * An incomplete application Tool turn remains visible while projecting its owning Run so active
2185
2149
  * recovery can resume the declared batch. It is not a valid model-visible Turn boundary for a
2186
- * later Run: the orphan assistant Tool declaration and any partial Tool results from that Turn
2187
- * are excluded, while preceding instruction/user messages in the response record remain history.
2150
+ * later Run until model-only unknown results close its missing calls. Those explanatory results
2151
+ * are never canonical settlements or evidence for compaction, recovery or accounting. Real
2152
+ * results replace them at the original declaration, including results appended after another Run.
2153
+ * Prior user intent and assistant text remain visible; prior system instructions do not.
2188
2154
  */
2189
2155
  /** @internal Lightweight canonical boundaries collected without retaining record payloads. */
2190
2156
  interface JournalBoundary {
@@ -2216,6 +2182,7 @@ declare const projectRunJournal: (records: readonly CanonicalRecordEnvelope[], r
2216
2182
  */
2217
2183
  declare const promptFromCanonicalRecords: (records: readonly CanonicalRecordEnvelope[]) => Effect.Effect<Prompt.Prompt, RunJournalError, never>;
2218
2184
  interface TurnCommitInput {
2185
+ readonly toolOperations?: ModelResponseRecorded["toolOperations"] | undefined;
2219
2186
  readonly toolParameterRejections?: ReadonlyArray<ToolParameterRejection> | undefined;
2220
2187
  readonly toolExposure?: Snapshot | undefined;
2221
2188
  readonly toolSelections?: ReadonlyMap<string, Selection> | undefined;
@@ -2252,6 +2219,8 @@ interface TurnCommitInput {
2252
2219
  readonly modelUsage?: ReadonlyArray<ModelCallUsage> | undefined;
2253
2220
  } | undefined;
2254
2221
  }
2222
+ /** Integrity of the original validated terminal values; never a current-code projection. */
2223
+ declare const runCompletionDigest: (completion: Pick<RunCompleted, "runId" | "output" | "runDisposition" | "finishReason" | "exhausted">) => Effect.Effect<string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">, DigestError, Crypto.Crypto>;
2255
2224
  /**
2256
2225
  * Pure per-Turn canonical batch builder (TurnCompleted seam fold, D6/D8): one
2257
2226
  * `ModelResponseRecorded` record plus one `ToolCallSettled` record per terminal Tool result, all
@@ -2281,7 +2250,7 @@ declare const turnResponseBatch: (input: TurnCommitInput) => Effect.Effect<Canon
2281
2250
  * model-visible atomically. Non-tool messages in `appended` are ignored; a Turn without any
2282
2251
  * terminal Tool result has no results batch and fails typed.
2283
2252
  */
2284
- declare const turnResultsBatch: (input: TurnCommitInput) => Effect.Effect<CanonicalBatch, RunJournalError, never>;
2253
+ declare const turnResultsBatch: (input: TurnCommitInput) => Effect.Effect<CanonicalBatch, DigestError | RunJournalError, Crypto.Crypto>;
2285
2254
  declare namespace SubmissionStatus_d_exports {
2286
2255
  export { PendingSubmission, SettledSubmission, SubmissionStatus };
2287
2256
  }
@@ -2495,7 +2464,7 @@ declare const RecoveryReport_base: Schema.Class<RecoveryReport, Schema.Struct<{
2495
2464
  readonly decision: Schema.Union<readonly [typeof CompleteMaterialization, typeof RepairReadiness, typeof ApplyInput, typeof RepairInputMarker, typeof ResumeFromTurnBoundary, typeof AppendReservedSettlement, typeof FinalizeLedgerFromHistory, typeof SettleAborted, typeof MarkUnknown, typeof ResumePendingToolBatch, typeof AwaitApprovalDecision, typeof ResumeSuspended, typeof AwaitUnknownResolution, typeof ApplyUnknownResolutions, typeof RevertJoining, typeof RepairJoinMarker, typeof SettleJoinedWithHost, typeof AwaitHostSettlement, typeof CompleteChildAdmission, typeof AwaitChildAdmissionResolution, typeof RepairSubagentStartLink, typeof EnsureWaitingForChild, typeof AwaitChildSettlement, typeof ResumeWaitingParent, typeof ApplyJoinAccounting, typeof PropagateChildAbort, typeof ReleaseOrphanChildReservation, typeof AwaitParentEstablishment, typeof NoAction]>;
2496
2465
  /**
2497
2466
  * `repaired` = executed; `deferred` = a claiming worker must finish it; `none` = settled;
2498
- * `unknown` = the lane is durably blocked on an Unknown Outcome awaiting the authorized
2467
+ * `unknown` = this Submission is parked on an Unknown Outcome awaiting the authorized
2499
2468
  * DUR-017 resolution path — the settlement obligation stays visible while no worker permit
2500
2469
  * is consumed (durability §16).
2501
2470
  */
@@ -2585,6 +2554,10 @@ declare const DurableApprovalResolver: Context.Reference<RunApprovalHook<never,
2585
2554
  */
2586
2555
  type DurableWorkerRequirements<AgentValue extends Any, InstructionRequirements = never> = Exclude<AgentRuntimeRequirements<AgentValue, never, InstructionRequirements>, ThreadHistory | RunContextPreparation> | AgentCompletionProjectionRequirements<AgentValue>;
2587
2556
  interface DurableRuntimeConfigOptions {
2557
+ /**
2558
+ * Deployment identity and the conservative operation version for direct execution without
2559
+ * a registered binding. Reuse asserts unchanged handler, Step, and idempotency semantics.
2560
+ */
2588
2561
  readonly deploymentId: DeploymentId;
2589
2562
  readonly producerId: ProducerId;
2590
2563
  /** `awaitSettlement` ledger re-check cadence when no wake arrives (default 500ms). */
@@ -2665,8 +2638,8 @@ declare const DurableAgentRuntime_base: Context.ServiceClass<DurableAgentRuntime
2665
2638
  readonly verify: (threadId: ThreadId) => Effect.Effect<IntegrityReport, DurableVerifyFailure>;
2666
2639
  /**
2667
2640
  * Safe re-drive of one Submission's recovery decision with mandatory author/reason audit
2668
- * (SEC-011): executes exactly the repair the classifier names and appends the
2669
- * deterministic `RepairAnnotated` record when it repairs (DUR-013). Typed `RetryRefused`
2641
+ * (SEC-011): executes exactly the repair the classifier names; owned repair attempts
2642
+ * append a best-effort `RepairAnnotated` with their actual claim epoch (DUR-013). Typed `RetryRefused`
2670
2643
  * for settled work and for lanes owned by the resolveUnknown/resolveApproval paths.
2671
2644
  */
2672
2645
  readonly retry: (command: RetryCommand) => Effect.Effect<RecoveryReport, DurableRetryFailure>;
@@ -2734,19 +2707,16 @@ declare const DurableAgentRuntime_base: Context.ServiceClass<DurableAgentRuntime
2734
2707
  * the next model request, reattaches through the prompt-coverage rule after a crash, and the
2735
2708
  * joined Submissions settle with the host outcome (DUR-002/DUR-016).
2736
2709
  * - `runWorker(agent)` — scan-seeded, wake-driven worker loop over every lane (WP4's host driver),
2737
- * reimplemented over a singleton identity-exact (digest-transparent) Binding resolution: a
2738
- * claimed head belonging to a different Agent never runs against this binding (SUB-023); a
2739
- * parent-linked head refused this way settles with the framework `ChildCompatibilityFailure`.
2710
+ * over a singleton current Binding: a claimed head belonging to a different Agent never
2711
+ * runs against this binding. Missing bindings leave accepted roots and children owed.
2740
2712
  * - `processThreadResolved(threadId)` / `runResolvedWorker` — the
2741
- * S2 multi-binding equivalents over registrations owned by the runtime Layer (spec §11, D7): every claimed
2742
- * head's stored `(agentId, agentDigests)` resolves to the exact registered Binding before any
2743
- * code runs; an unresolvable parent-linked child settles with the Schema-stable framework
2744
- * `ChildCompatibilityFailure` (no application code, the child never executes), and an
2745
- * unresolvable root surfaces the typed refusal after releasing the claim.
2713
+ * equivalents over registrations owned by the runtime Layer: each stable `agentId` selects
2714
+ * one current Binding. Unfinished operation contracts gate handler execution independently
2715
+ * of immutable admission evidence; missing bindings release the claim with a typed refusal.
2746
2716
  * - `runRecovery()` — classify every nonterminal Submission with the pure `classifyRecovery` and
2747
- * execute the repair decisions, appending a `RepairAnnotated` audit record per executed decision
2717
+ * execute repair decisions, annotating owned repair attempts with their granted epochs
2748
2718
  * (DUR-013). Untouched ready input and model-resuming work are reported `deferred` for a
2749
- * worker claim; lanes blocked on
2719
+ * worker claim; Submissions parked on
2750
2720
  * Unknown Outcomes are reported `unknown`. The S2 binding-free Subagent executors (admission
2751
2721
  * completion, start-link repair, waiting restoration, wake replay, canonical join accounting,
2752
2722
  * abort propagation, orphan reservation release) run here; the settlement join itself is
@@ -2797,7 +2767,7 @@ declare class DurableAgentRuntime extends DurableAgentRuntime_base {
2797
2767
  static readonly layer: Layer.Layer<DurableAgentRuntime, never, SubmissionLedger | ThreadStore | WakeScheduler | DurableRuntimeFailpoint | DurableRuntimeConfig | ToolReconciler | Crypto.Crypto>;
2798
2768
  }
2799
2769
  declare namespace Records_d_exports {
2800
- export { AbortRequested, AbortedSubmissionSettled, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, CompletedSubmissionSettled, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, FailedSubmissionSettled, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PeerMessagePrepared, PersistedJson, ProducerEpoch, ProducerId, RecordEnvelope, RecordId, RepairAnnotated, ReplayContract, RunCompleted, RunDurationExhausted, RunFailed, RunPolicyUsageReserved, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallPrepared, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolStepSettled, UserInputRecorded, WorkerAdmission, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent };
2770
+ export { AbortRequested, AbortedSubmissionSettled, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, CompletedSubmissionSettled, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, FailedSubmissionSettled, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PeerMessagePrepared, PersistedJson, ProducerEpoch, ProducerId, RecordEnvelope, RecordId, RepairAnnotated, ReplayContract, RunCompleted, RunDurationExhausted, RunFailed, RunPolicyUsageReserved, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallPrepared, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolOperation, ToolStepSettled, ToolUnavailable, UserInputRecorded, WorkerAdmission, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent };
2801
2771
  }
2802
2772
  /** Stable identity of one canonical record. */
2803
2773
  declare const RecordId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/RecordId">;
@@ -2858,9 +2828,11 @@ declare const DefinitionDigestInput_base: Schema.Class<DefinitionDigestInput, Sc
2858
2828
  declare class DefinitionDigestInput extends DefinitionDigestInput_base {}
2859
2829
  declare const ReplayContract_base: Schema.Class<ReplayContract, Schema.Struct<{
2860
2830
  readonly agent: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
2831
+ /** Retained for reading earlier admissions; never selects executable code. */
2832
+ readonly agentBehavior: Schema.optionalKey<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
2861
2833
  readonly tools: Schema.$Record<Schema.String, Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
2862
2834
  }>, {}>;
2863
- /** The contracts a retained Run may decode or execute, independent of its deployment. */
2835
+ /** Admission-time operation fingerprints. Agent fingerprints remain immutable evidence only. */
2864
2836
  declare class ReplayContract extends ReplayContract_base {}
2865
2837
  declare const DefinitionDigests_base: Schema.Class<DefinitionDigests, Schema.Struct<{
2866
2838
  readonly agent: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
@@ -2868,7 +2840,7 @@ declare const DefinitionDigests_base: Schema.Class<DefinitionDigests, Schema.Str
2868
2840
  readonly tools: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
2869
2841
  readonly replay: Schema.optionalKey<typeof ReplayContract>;
2870
2842
  }>, {}>;
2871
- /** Digests identify admission exactly; replay contracts separately authorize continuation. */
2843
+ /** Digests identify admission exactly; only an unfinished operation needs replay compatibility. */
2872
2844
  declare class DefinitionDigests extends DefinitionDigests_base {}
2873
2845
  declare const ThreadCreated_base: Schema.Class<ThreadCreated, Schema.TaggedStruct<"ThreadCreated", {
2874
2846
  readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
@@ -2982,8 +2954,25 @@ declare const ToolCallSettled_base: Schema.Class<ToolCallSettled, Schema.TaggedS
2982
2954
  readonly budgetRejected: Schema.optionalKey<Schema.Literal<true>>;
2983
2955
  }>, {}>;
2984
2956
  declare class ToolCallSettled extends ToolCallSettled_base {}
2957
+ declare const ToolOperation_base: Schema.Class<ToolOperation, Schema.Struct<{
2958
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
2959
+ readonly toolName: Schema.NonEmptyString;
2960
+ readonly executionClass: Schema.Literals<readonly ["readonly", "idempotent", "uncertain"]>;
2961
+ readonly executionKind: Schema.Literals<readonly ["ordinary", "delegation", "orchestration"]>;
2962
+ readonly replay: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
2963
+ }>, {}>;
2964
+ /** Compact execution evidence committed with a declaration, before any handler can start. */
2965
+ declare class ToolOperation extends ToolOperation_base {}
2966
+ declare const ToolUnavailable_base: Schema.Class<ToolUnavailable, Schema.TaggedStruct<"ToolUnavailable", {
2967
+ readonly toolName: Schema.NonEmptyString;
2968
+ readonly execution: Schema.Literals<readonly ["not-executed", "unavailable"]>;
2969
+ readonly message: Schema.String;
2970
+ }>, {}>;
2971
+ /** A retired call's runtime result. Unavailable readonly work may already have been observed. */
2972
+ declare class ToolUnavailable extends ToolUnavailable_base {}
2985
2973
  declare const ModelResponseRecorded_base: Schema.Class<ModelResponseRecorded, Schema.Struct<{
2986
2974
  readonly _tag: Schema.tag<"ModelResponseRecorded">;
2975
+ readonly toolOperations: Schema.optionalKey<Schema.$Array<typeof ToolOperation>>;
2987
2976
  readonly toolParameterRejections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
2988
2977
  readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
2989
2978
  readonly parameters: Schema.Codec<Schema.Json, Schema.Json, never, never>;
@@ -3018,6 +3007,8 @@ declare const ToolCallPrepared_base: Schema.Class<ToolCallPrepared, Schema.Tagge
3018
3007
  readonly parametersDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
3019
3008
  /** Absent legacy evidence grants no delegation replay authority. */
3020
3009
  readonly executionKind: Schema.optionalKey<Schema.Literals<readonly ["ordinary", "delegation", "orchestration"]>>;
3010
+ readonly executionClass: Schema.optionalKey<Schema.Literals<readonly ["readonly", "idempotent", "uncertain"]>>;
3011
+ readonly replay: Schema.optionalKey<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
3021
3012
  }>, {}>;
3022
3013
  /**
3023
3014
  * One approved uncertain/idempotent ordinary Tool Call made durable BEFORE any handler starts
@@ -3153,6 +3144,7 @@ declare const RunCompleted_base: Schema.Class<RunCompleted, Schema.Struct<{
3153
3144
  readonly _tag: Schema.tag<"RunCompleted">;
3154
3145
  readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
3155
3146
  readonly output: Schema.declare<Schema.Json, Schema.Json>;
3147
+ readonly resultDigest: Schema.optionalKey<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
3156
3148
  readonly runDisposition: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
3157
3149
  readonly finishReason: Schema.optionalKey<Schema.Literal<"budget-exhausted">>;
3158
3150
  readonly exhausted: Schema.optionalKey<Schema.Literals<readonly ["tokens", "tool-calls", "turns"]>>;
@@ -3642,5 +3634,5 @@ declare const CanonicalRecordEnvelope_base: Schema.Class<CanonicalRecordEnvelope
3642
3634
  declare class CanonicalRecordEnvelope extends CanonicalRecordEnvelope_base {}
3643
3635
  declare const CURRENT_CANONICAL_SCHEMA_VERSION: 1;
3644
3636
  //#endregion
3645
- export { ToolCallPrepared as $, SubmissionLookupById as $a, ApprovalConflict as $i, toolCallUnknownRecordId as $n, digestDefinition as $r, ThreadMaterialization as $t, ProducerId as A, ParentLinkage as Aa, RepairReadiness as Ai, projectRunJournalStream as An, obligationSeverityOf as Ar, DurableSubmitOptions as At, RunStartedRecord as B, ResolutionNeverHappened as Ba, AbortCommand as Bi, subagentLineageBatchId as Bn, DurableBindingFailure as Br, AppendConflict as Bt, ModelCompleted as C, MarkJoinedRequest as Ca, PropagateChildAbort as Ci, compactionBatchId as Cn, ObligationThresholds as Cr, DurableProgressFailure as Ct, PeerMessagePrepared as D, OwnershipRenewal as Da, ReleaseOrphanChildReservation as Di, modelResponseInterruptedRecordId as Dn, RetryCommand as Dr, DurableRuntimeConfigOptions as Dt, ObservationOffset as E, OwnershipLost as Ea, Recovery_d_exports as Ei, modelResponseInterruptedBatchId as En, RecoveryExplanation as Er, DurableRuntimeConfig as Et, ReplayContract as F, RenewOwnershipRequest as Fa, ResumeWaitingParent as Fi, runIdForSubmission as Fn, AgentAttemptContext as Fr, childReservationIdFor as Ft, SubagentRequested as G, SettlementFinalization as Ga, AdmissionFence as Gi, subagentStartedRecordId as Gn, bindingSupports as Gr, LoadCheckpointRequest as Gt, SettlementOutcome as H, RevertJoiningRequest as Ha, AbortIntentRequest as Hi, subagentRequestedBatchId as Hn, ExecutableAgentBinding as Hr, CheckpointRejected as Ht, RunCompleted as I, ReservedChildBudget as Ia, RevertJoining as Ii, runStartedBatchId as In, AgentRegistration as Ir, recoveryRepairBatchId as It, SubmissionSettledRecord as J, SubmissionAdmissionFence as Ja, AdmissionNotAdmitted as Ji, toolCallPreparedRecordId as Jn, makeBindingManifest as Jr, SaveRecoveryCheckpointRequest as Jt, SubagentStarted as K, SettlementReservation as Ka, AdmissionGroup as Ki, toolApprovalDecisionRecordId as Kn, compileRegistrations as Kr, MAX_THREAD_EXPORT_RECORDS as Kt, RunDurationExhausted as L, ReservedSettlement as La, SettleAborted as Li, runStartedRecordId as Ln, BindingDigestMismatch as Lr, recoveryRepairRecordId as Lt, RecordId as M, RecoverySnapshotRequest as Ma, ResumeFromTurnBoundary as Mi, runCompletedRecordId as Mn, recoveryDecisionMeaning as Mr, DurableWorkerFailure as Mt, Records_d_exports as N, ReleaseChildBudgetRequest as Na, ResumePendingToolBatch as Ni, runDurationBatchId as Nn, renderRecoveryExplanation as Nr, DurableWorkerRequirements as Nt, PersistedJson as O, OwnershipSnapshot as Oa, RepairInputMarker as Oi, modelResponseRecordId as On, RetryRefusalReason as Or, DurableSubmitAgent as Ot, RepairAnnotated as P, ReleaseOwnershipRequest as Pa, ResumeSuspended as Pi, runDurationRecordId as Pn, AgentRegistration_d_exports as Pr, RecoveryReport as Pt, ToolApprovalRequested as Q, SubmissionLookup as Qa, AdmissionResult as Qi, toolCallSettledRecordId as Qn, digestCanonicalBatch as Qr, ThreadExportRequest as Qt, RunFailed as R, ResolutionAbortSubmission as Ra, SettleJoinedWithHost as Ri, subagentJoinBatchId as Rn, BindingManifest as Rr, threadCreatedBatchId as Rt, MAX_PERSISTED_JSON_NODES as S, MarkInputAppliedRequest as Sa, PendingApprovalEvidence as Si, childThreadIdFor as Sn, ObligationSeverity as Sr, DurableObserveOptions as St, ModelResponseRecorded as T, MarkUnknownRequest as Ta, RecoveryEvidence as Ti, markUnknownBatchId as Tn, RecoveryDisposition as Tr, DurableRetryFailure as Tt, SubagentJoined as U, Settlement as Ua, AdmissionAdmitted as Ui, subagentRequestedRecordId as Un, ReplayVersions as Ur, FenceRejected as Ut, SettlementFailureDiagnostic as V, ResolutionSafeToRetry as Va, AbortIntent as Vi, subagentLineageRecordId as Vn, DurableWorkerBinding as Vr, AppendResult as Vt, SubagentLineageRecorded as W, SettlementConflict as Wa, AdmissionConflict as Wi, subagentStartedBatchId as Wn, ResolvedBinding as Wr, FencedAppendRequest as Wt, ThreadCreated as X, SubmissionLedgerFailure as Xa, AdmissionRequest as Xi, toolCallResolvedRecordId as Xn, Digest_d_exports as Xr, ThreadCheckpoints as Xt, SubtreeBudgetReserved as Y, SubmissionLedger as Ya, AdmissionPolicyError as Yi, toolCallResolutionBatchId as Yn, DigestError as Yr, ThreadCheckpoint as Yt, ToolApprovalDecided as Z, SubmissionLedger_d_exports as Za, AdmissionResolution as Zi, toolCallResultBatchId as Zn, EMPTY_TAIL_DIGEST as Zr, ThreadExport as Zt, Digest as _, InputAppliedMarker as _a, FinalizeLedgerFromHistory as _i, RunJournalUsage as _n, submissionInputRecordId as _o, IntegrityCheckStatus as _r, DurableApprovalFailure as _t, BatchId as a, ChildAttachmentSnapshot as aa, ApplyUnknownResolutions as ai, ThreadStoreError as an, SuspensionReason as ao, turnIdForRun as ar, UserInputRecorded as at, MAX_PERSISTED_JSON_COLLECTION_LENGTH as b, LedgerCapabilities as ba, OpenDelegationCallEvidence as bi, approvalDecisionBatchId as bn, submissionSettlementRecordId as bo, ObligationEntry as br, DurableExplainFailure as bt, CanonicalRecord as c, ChildReservationConflict as ca, AwaitChildSettlement as ci, ThreadTail as cn, UnknownResolutionCommand as co, turnResponseBatchId as cr, WorkerInputRequested as ct, CanonicalSequence as d, ChildSettledNotification as da, AwaitUnknownResolution as di, SettledSubmission as dn, WaitingChild as do, Admin_d_exports as dr, WorkerReportPrepared as dt, ApprovalDecisionCommand as ea, digestDefinitions as ei, ThreadNotMaterialized as en, SubmissionLookupByKey as eo, toolStepSettledBatchId as er, ToolCallResolution as et, CompactionCreated as f, ChildSettledOutcome as fa, CompleteChildAdmission as fi, SubmissionStatus as fn, WaitingForChildSuspension as fo, ExplainedEvidence as fr, WorkerReportRefused as ft, DeploymentId as g, DEFAULT_OWNERSHIP_LEASE_DURATION as ga, EnsureWaitingForChild as gi, RunJournalProjection as gn, submissionInputBatchId as go, IntegrityCheckName as gr, DurableAgentRuntime_d_exports as gt, DefinitionDigests as h, ClaimRequest as ha, DelegationAdmissionEvidence as hi, RunJournalError as hn, submissionAbortRecordId as ho, IntegrityCheck as hr, DurableAgentRuntime as ht, ApprovalDecision as i, BeginChildBudgetReleaseRequest as ia, ApplyJoinAccounting as ii, ThreadStore as in, SuspensionOutcome as io, turnCanonicalBatch as ir, ToolStepSettled as it, RecordEnvelope as j, RecoverySnapshot as ja, RepairSubagentStartLink as ji, promptFromCanonicalRecords as jn, predictRecoveryDisposition as jr, DurableVerifyFailure as jt, ProducerEpoch as k, OwnershipToken as ka, RepairJoinMarker as ki, projectRunJournal as kn, RetryRefused as kr, DurableSubmitFailure as kt, CanonicalRecordEnvelope as l, ChildReservationId as la, AwaitHostSettlement as li, ThreadTailRequest as ln, UnknownResolutionConflict as lo, turnResultsBatch as lr, WorkerOrigin as lt, DefinitionDigestInput as m, ClaimJoiningRequest as ma, DeclaredPendingBatchEvidence as mi, JournalBoundary as mn, submissionAbortBatchId as mo, ExplainedUnknownCall as mr, DurableAbortFailure as mt, AbortedSubmissionSettled as n, ApprovalPendingSuspension as na, AppendReservedSettlement as ni, ThreadRead as nn, SubmissionState as no, turnApprovalsBatchId as nr, ToolCallSettled as nt, CURRENT_CANONICAL_SCHEMA_VERSION as o, ChildBudgetReservationRequest as oa, AwaitApprovalDecision as oi, ThreadStoreFailure as on, SuspensionSnapshot as oo, turnPreparedBatchId as or, WorkerAdmission as ot, CompletedSubmissionSettled as p, Claim as pa, CompleteMaterialization as pi, SubmissionStatus_d_exports as pn, settlementFailureFromRecord as po, ExplainedSubmission as pr, WorkerReportingIntent as pt, SubmissionSettled as q, SettlementReservationSnapshot as qa, AdmissionIndeterminate as qi, toolApprovalRequestRecordId as qn, definitionDigestsEqual as qr, SaveCheckpointRequest as qt, AgentUpdateEmitted as r, AttachChildToReservationRequest as ra, ApplyInput as ri, ThreadRecoveryCheckpoints as rn, SuspendRequest as ro, turnBatchId as rr, ToolCallUnknown as rt, CanonicalBatch as s, ChildBudgetReservationSnapshot as sa, AwaitChildAdmissionResolution as si, ThreadStore_d_exports as sn, UnknownResolution as so, turnResponseBatch as sr, WorkerInputCompleted as st, AbortRequested as t, ApprovalDecisionIntent as ta, digestJson as ti, ThreadObservation as tn, SubmissionSnapshot as to, toolStepSettledRecordId as tr, ToolCallResolved as tt, CanonicalRecordPayload as u, ChildReservationStatus as ua, AwaitParentEstablishment as ui, PendingSubmission as un, UnknownResolutionIntent as uo, turnResultsBatchId as ur, WorkerOriginRecorded as ut, FailedSubmissionSettled as v, JoinSnapshot as va, MarkUnknown as vi, RunJournal_d_exports as vn, submissionSettlementBatchId as vo, IntegrityReport as vr, DurableApprovalResolver as vt, ModelResponseInterrupted as w, MarkReadyRequest as wa, RecoveryDecision as wi, compactionRecordId as wn, RECOVERY_DECISION_MEANINGS as wr, DurableResolveFailure as wt, MAX_PERSISTED_JSON_DEPTH as x, LedgerError as xa, OpenToolCallEvidence as xi, childIdempotencyKeyFor as xn, ObligationReport as xr, DurableObligationFailure as xt, MAX_PERSISTED_JSON_BYTES as y, JoiningClaim as ya, NoAction as yi, TurnCommitInput as yn, submissionSettlementId as yo, ObligationBlockedOn as yr, DurableAwaitFailure as yt, RunPolicyUsageReserved as z, ResolutionCompletedWithResult as za, classifyRecovery as zi, subagentJoinedRecordId as zn, BindingUnavailable as zr, threadCreatedRecordId as zt };
3646
- //# sourceMappingURL=Records-CMByd1eD.d.mts.map
3637
+ export { ToolCallPrepared as $, SubmissionLookupById as $a, ApprovalConflict as $i, toolCallResolvedRecordId as $n, digestDefinition as $r, ThreadExport as $t, ProducerId as A, ParentLinkage as Aa, RepairReadiness as Ai, modelResponseRecordId as An, RetryCommand as Ar, DurableSubmitAgent as At, RunStartedRecord as B, ResolutionNeverHappened as Ba, AbortCommand as Bi, runStartedRecordId as Bn, BindingUnavailable as Br, threadCreatedBatchId as Bt, ModelCompleted as C, MarkJoinedRequest as Ca, PropagateChildAbort as Ci, childIdempotencyKeyFor as Cn, ObligationEntry as Cr, DurableObligationFailure as Ct, PeerMessagePrepared as D, OwnershipRenewal as Da, ReleaseOrphanChildReservation as Di, markUnknownBatchId as Dn, RECOVERY_DECISION_MEANINGS as Dr, DurableRetryFailure as Dt, ObservationOffset as E, OwnershipLost as Ea, Recovery_d_exports as Ei, compactionRecordId as En, ObligationThresholds as Er, DurableResolveFailure as Et, ReplayContract as F, RenewOwnershipRequest as Fa, ResumeWaitingParent as Fi, runCompletionDigest as Fn, recoveryDecisionMeaning as Fr, DurableWorkerRequirements as Ft, SubagentRequested as G, SettlementFinalization as Ga, AdmissionFence as Gi, subagentRequestedBatchId as Gn, ResolvedBinding as Gr, FenceRejected as Gt, SettlementOutcome as H, RevertJoiningRequest as Ha, AbortIntentRequest as Hi, subagentJoinedRecordId as Hn, DurableWorkerBinding as Hr, AppendConflict as Ht, RunCompleted as I, ReservedChildBudget as Ia, RevertJoining as Ii, runDurationBatchId as In, renderRecoveryExplanation as Ir, RecoveryReport as It, SubmissionSettledRecord as J, SubmissionAdmissionFence as Ja, AdmissionNotAdmitted as Ji, subagentStartedRecordId as Jn, definitionDigestsEqual as Jr, MAX_THREAD_EXPORT_RECORDS as Jt, SubagentStarted as K, SettlementReservation as Ka, AdmissionGroup as Ki, subagentRequestedRecordId as Kn, compileBindingContracts as Kr, FencedAppendRequest as Kt, RunDurationExhausted as L, ReservedSettlement as La, SettleAborted as Li, runDurationRecordId as Ln, AgentRegistration_d_exports as Lr, childReservationIdFor as Lt, RecordId as M, RecoverySnapshotRequest as Ma, ResumeFromTurnBoundary as Mi, projectRunJournalStream as Mn, RetryRefused as Mr, DurableSubmitOptions as Mt, Records_d_exports as N, ReleaseChildBudgetRequest as Na, ResumePendingToolBatch as Ni, promptFromCanonicalRecords as Nn, obligationSeverityOf as Nr, DurableVerifyFailure as Nt, PersistedJson as O, OwnershipSnapshot as Oa, RepairInputMarker as Oi, modelResponseInterruptedBatchId as On, RecoveryDisposition as Or, DurableRuntimeConfig as Ot, RepairAnnotated as P, ReleaseOwnershipRequest as Pa, ResumeSuspended as Pi, runCompletedRecordId as Pn, predictRecoveryDisposition as Pr, DurableWorkerFailure as Pt, ToolApprovalRequested as Q, SubmissionLookup as Qa, AdmissionResult as Qi, toolCallResolutionBatchId as Qn, digestCanonicalBatch as Qr, ThreadCheckpoints as Qt, RunFailed as R, ResolutionAbortSubmission as Ra, SettleJoinedWithHost as Ri, runIdForSubmission as Rn, AgentAttemptContext as Rr, recoveryRepairBatchId as Rt, MAX_PERSISTED_JSON_NODES as S, MarkInputAppliedRequest as Sa, PendingApprovalEvidence as Si, approvalDecisionBatchId as Sn, ObligationBlockedOn as Sr, DurableExplainFailure as St, ModelResponseRecorded as T, MarkUnknownRequest as Ta, RecoveryEvidence as Ti, compactionBatchId as Tn, ObligationSeverity as Tr, DurableProgressFailure as Tt, SubagentJoined as U, Settlement as Ua, AdmissionAdmitted as Ui, subagentLineageBatchId as Un, ExecutableAgentBinding as Ur, AppendResult as Ut, SettlementFailureDiagnostic as V, ResolutionSafeToRetry as Va, AbortIntent as Vi, subagentJoinBatchId as Vn, DurableBindingFailure as Vr, threadCreatedRecordId as Vt, SubagentLineageRecorded as W, SettlementConflict as Wa, AdmissionConflict as Wi, subagentLineageRecordId as Wn, ReplayVersions as Wr, CheckpointRejected as Wt, ThreadCreated as X, SubmissionLedgerFailure as Xa, AdmissionRequest as Xi, toolApprovalRequestRecordId as Xn, Digest_d_exports as Xr, SaveRecoveryCheckpointRequest as Xt, SubtreeBudgetReserved as Y, SubmissionLedger as Ya, AdmissionPolicyError as Yi, toolApprovalDecisionRecordId as Yn, DigestError as Yr, SaveCheckpointRequest as Yt, ToolApprovalDecided as Z, SubmissionLedger_d_exports as Za, AdmissionResolution as Zi, toolCallPreparedRecordId as Zn, EMPTY_TAIL_DIGEST as Zr, ThreadCheckpoint as Zt, Digest as _, InputAppliedMarker as _a, FinalizeLedgerFromHistory as _i, RunJournalError as _n, submissionInputRecordId as _o, ExplainedUnknownCall as _r, DurableAgentRuntime as _t, BatchId as a, ChildAttachmentSnapshot as aa, ApplyUnknownResolutions as ai, ThreadRecoveryCheckpoints as an, SuspensionReason as ao, turnApprovalsBatchId as ar, ToolStepSettled as at, MAX_PERSISTED_JSON_COLLECTION_LENGTH as b, LedgerCapabilities as ba, OpenDelegationCallEvidence as bi, RunJournal_d_exports as bn, submissionSettlementRecordId as bo, IntegrityCheckStatus as br, DurableApprovalResolver as bt, CanonicalRecord as c, ChildReservationConflict as ca, AwaitChildSettlement as ci, ThreadStoreFailure as cn, UnknownResolutionCommand as co, turnIdForRun as cr, WorkerAdmission as ct, CanonicalSequence as d, ChildSettledNotification as da, AwaitUnknownResolution as di, ThreadTailRequest as dn, WaitingChild as do, turnResponseBatchId as dr, WorkerOrigin as dt, ApprovalDecisionCommand as ea, digestDefinitions as ei, ThreadExportRequest as en, SubmissionLookupByKey as eo, toolCallResultBatchId as er, ToolCallResolution as et, CompactionCreated as f, ChildSettledOutcome as fa, CompleteChildAdmission as fi, PendingSubmission as fn, WaitingForChildSuspension as fo, turnResultsBatch as fr, WorkerOriginRecorded as ft, DeploymentId as g, DEFAULT_OWNERSHIP_LEASE_DURATION as ga, EnsureWaitingForChild as gi, JournalBoundary as gn, submissionInputBatchId as go, ExplainedSubmission as gr, DurableAbortFailure as gt, DefinitionDigests as h, ClaimRequest as ha, DelegationAdmissionEvidence as hi, SubmissionStatus_d_exports as hn, submissionAbortRecordId as ho, ExplainedEvidence as hr, WorkerReportingIntent as ht, ApprovalDecision as i, BeginChildBudgetReleaseRequest as ia, ApplyJoinAccounting as ii, ThreadRead as in, SuspensionOutcome as io, toolStepSettledRecordId as ir, ToolOperation as it, RecordEnvelope as j, RecoverySnapshot as ja, RepairSubagentStartLink as ji, projectRunJournal as jn, RetryRefusalReason as jr, DurableSubmitFailure as jt, ProducerEpoch as k, OwnershipToken as ka, RepairJoinMarker as ki, modelResponseInterruptedRecordId as kn, RecoveryExplanation as kr, DurableRuntimeConfigOptions as kt, CanonicalRecordEnvelope as l, ChildReservationId as la, AwaitHostSettlement as li, ThreadStore_d_exports as ln, UnknownResolutionConflict as lo, turnPreparedBatchId as lr, WorkerInputCompleted as lt, DefinitionDigestInput as m, ClaimJoiningRequest as ma, DeclaredPendingBatchEvidence as mi, SubmissionStatus as mn, submissionAbortBatchId as mo, Admin_d_exports as mr, WorkerReportRefused as mt, AbortedSubmissionSettled as n, ApprovalPendingSuspension as na, AppendReservedSettlement as ni, ThreadNotMaterialized as nn, SubmissionState as no, toolCallUnknownRecordId as nr, ToolCallSettled as nt, CURRENT_CANONICAL_SCHEMA_VERSION as o, ChildBudgetReservationRequest as oa, AwaitApprovalDecision as oi, ThreadStore as on, SuspensionSnapshot as oo, turnBatchId as or, ToolUnavailable as ot, CompletedSubmissionSettled as p, Claim as pa, CompleteMaterialization as pi, SettledSubmission as pn, settlementFailureFromRecord as po, turnResultsBatchId as pr, WorkerReportPrepared as pt, SubmissionSettled as q, SettlementReservationSnapshot as qa, AdmissionIndeterminate as qi, subagentStartedBatchId as qn, compileRegistrations as qr, LoadCheckpointRequest as qt, AgentUpdateEmitted as r, AttachChildToReservationRequest as ra, ApplyInput as ri, ThreadObservation as rn, SuspendRequest as ro, toolStepSettledBatchId as rr, ToolCallUnknown as rt, CanonicalBatch as s, ChildBudgetReservationSnapshot as sa, AwaitChildAdmissionResolution as si, ThreadStoreError as sn, UnknownResolution as so, turnCanonicalBatch as sr, UserInputRecorded as st, AbortRequested as t, ApprovalDecisionIntent as ta, digestJson as ti, ThreadMaterialization as tn, SubmissionSnapshot as to, toolCallSettledRecordId as tr, ToolCallResolved as tt, CanonicalRecordPayload as u, ChildReservationStatus as ua, AwaitParentEstablishment as ui, ThreadTail as un, UnknownResolutionIntent as uo, turnResponseBatch as ur, WorkerInputRequested as ut, FailedSubmissionSettled as v, JoinSnapshot as va, MarkUnknown as vi, RunJournalProjection as vn, submissionSettlementBatchId as vo, IntegrityCheck as vr, DurableAgentRuntime_d_exports as vt, ModelResponseInterrupted as w, MarkReadyRequest as wa, RecoveryDecision as wi, childThreadIdFor as wn, ObligationReport as wr, DurableObserveOptions as wt, MAX_PERSISTED_JSON_DEPTH as x, LedgerError as xa, OpenToolCallEvidence as xi, TurnCommitInput as xn, IntegrityReport as xr, DurableAwaitFailure as xt, MAX_PERSISTED_JSON_BYTES as y, JoiningClaim as ya, NoAction as yi, RunJournalUsage as yn, submissionSettlementId as yo, IntegrityCheckName as yr, DurableApprovalFailure as yt, RunPolicyUsageReserved as z, ResolutionCompletedWithResult as za, classifyRecovery as zi, runStartedBatchId as zn, AgentRegistration as zr, recoveryRepairRecordId as zt };
3638
+ //# sourceMappingURL=Records-BIiRLqlz.d.mts.map