effect-agent 0.1.0-beta.15 → 0.1.0-beta.151

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 (542) hide show
  1. package/dist/Admin-CKIdJoP8.d.mts +4236 -0
  2. package/dist/Agent-1DMSO_Fl.mjs +86 -0
  3. package/dist/Agent-1DMSO_Fl.mjs.map +1 -0
  4. package/dist/Agent-Cjd_ZveM.d.mts +259 -0
  5. package/dist/AgentError-Bn1ytXRD.d.mts +117 -0
  6. package/dist/AgentPolicy-BqDoSXO6.d.mts +96 -0
  7. package/dist/AgentRuntime-D8U9gl9Q.mjs +4745 -0
  8. package/dist/AgentRuntime-D8U9gl9Q.mjs.map +1 -0
  9. package/dist/AgentRuntime-sXpKcyxu.d.mts +346 -0
  10. package/dist/AgentUpdates-DMJ-_xow.d.mts +53 -0
  11. package/dist/ContextCompactor-WwSIG_Z2.d.mts +161 -0
  12. package/dist/ContextWindow-DRQ5Mbm2.d.mts +58 -0
  13. package/dist/Digest-U69rDHuO.d.mts +22 -0
  14. package/dist/DurableAgentRuntime-R2LUYnRl.mjs +7207 -0
  15. package/dist/DurableAgentRuntime-R2LUYnRl.mjs.map +1 -0
  16. package/dist/DurableFailpoint-Cnr3wx1L.d.mts +41 -0
  17. package/dist/DurableStep-Cry_iol4.d.mts +103 -0
  18. package/dist/EventSource-CMbXXmwe.d.mts +51 -0
  19. package/dist/FailureDiagnostic-BElLOoED.mjs +274 -0
  20. package/dist/FailureDiagnostic-BElLOoED.mjs.map +1 -0
  21. package/dist/FailureDiagnostic-CaAkzGHL.d.mts +223 -0
  22. package/dist/Identifiers-CN2s30fF.d.mts +40 -0
  23. package/dist/InMemory.d.mts +24 -0
  24. package/dist/InMemory.mjs +24 -0
  25. package/dist/InMemory.mjs.map +1 -0
  26. package/dist/MemoryNamespace-BbRW5p71.d.mts +36 -0
  27. package/dist/MemoryReference-B8Q3UJoJ.d.mts +79 -0
  28. package/dist/Messaging-Dkg87ebg.d.mts +221 -0
  29. package/dist/Messaging-ccQURKCf.d.mts +1067 -0
  30. package/dist/MessagingHost-D04wE-7W.d.mts +74 -0
  31. package/dist/MessagingHost-DfsbMPvq.mjs +110 -0
  32. package/dist/MessagingHost-DfsbMPvq.mjs.map +1 -0
  33. package/dist/OperationAuthorizer-TzcQtpX5.d.mts +61 -0
  34. package/dist/Output-CFD1CPfU.d.mts +25 -0
  35. package/dist/PageCapture-Df8Xwskw.d.mts +583 -0
  36. package/dist/PreparedInputAdmission-Bt6rgtVu.d.mts +42 -0
  37. package/dist/Receipt-BAHyigAF.d.mts +33 -0
  38. package/dist/Records-B5GFWCpn.d.mts +1104 -0
  39. package/dist/RunEvent-DIrzkjLr.d.mts +460 -0
  40. package/dist/RunEventSink-D5aVhISG.d.mts +108 -0
  41. package/dist/RunJournal-Gd83HYqG.mjs +954 -0
  42. package/dist/RunJournal-Gd83HYqG.mjs.map +1 -0
  43. package/dist/RunOptions-Bv9NpkPZ.d.mts +943 -0
  44. package/dist/RunPolicyUsage-ClZxyR46.d.mts +21 -0
  45. package/dist/Sandbox-CEsDWBLq.d.mts +173 -0
  46. package/dist/Schedule-CtYREFnz.d.mts +847 -0
  47. package/dist/Scheduling-DPb2QyAK.mjs +691 -0
  48. package/dist/Scheduling-DPb2QyAK.mjs.map +1 -0
  49. package/dist/Subagent-VHrANXFy.d.mts +1652 -0
  50. package/dist/Subagent-hG9lJ7tJ.mjs +1502 -0
  51. package/dist/Subagent-hG9lJ7tJ.mjs.map +1 -0
  52. package/dist/SubagentContract-DdT7Cqe6.d.mts +116 -0
  53. package/dist/SubagentHost-C-4A7tA2.d.mts +172 -0
  54. package/dist/Subscription-BJAzYNw1.d.mts +979 -0
  55. package/dist/SubscriptionInput-CkBJt0AS.d.mts +41 -0
  56. package/dist/Thread-DOBQ0QUY.d.mts +96 -0
  57. package/dist/ThreadHistory-tS1KwxHR.d.mts +60 -0
  58. package/dist/ToolBroker-DWs4tZra.d.mts +133 -0
  59. package/dist/ToolExposure-9uF_Yo0T.mjs +10 -0
  60. package/dist/ToolExposure-9uF_Yo0T.mjs.map +1 -0
  61. package/dist/ToolExposure-C93U1sPu.mjs +30 -0
  62. package/dist/ToolExposure-C93U1sPu.mjs.map +1 -0
  63. package/dist/ToolExposure-UCN12eCd.d.mts +39 -0
  64. package/dist/ToolExposure-r2eOWk4F.d.mts +46 -0
  65. package/dist/ToolExposure.d.mts +8 -0
  66. package/dist/ToolExposure.mjs +21 -0
  67. package/dist/ToolExposure.mjs.map +1 -0
  68. package/dist/ToolReconciler-BmVRAHKs.d.mts +80 -0
  69. package/dist/ToolResult-BKdqWRff.d.mts +78 -0
  70. package/dist/Usage-Dx0aknfk.d.mts +121 -0
  71. package/dist/WakeScheduler-EjUF-GhC.d.mts +56 -0
  72. package/dist/Worker-CfwzMZEK.mjs +271 -0
  73. package/dist/Worker-CfwzMZEK.mjs.map +1 -0
  74. package/dist/Worker-fwWkBg12.d.mts +472 -0
  75. package/dist/WorkerAdmission-CJ_oWRuS.mjs +171 -0
  76. package/dist/WorkerAdmission-CJ_oWRuS.mjs.map +1 -0
  77. package/dist/agent-registration-CKNsrpwo.mjs +201 -0
  78. package/dist/agent-registration-CKNsrpwo.mjs.map +1 -0
  79. package/dist/capabilities/Approval.d.mts +114 -0
  80. package/dist/capabilities/Approval.mjs +226 -0
  81. package/dist/capabilities/Approval.mjs.map +1 -0
  82. package/dist/capabilities/Budget.d.mts +112 -0
  83. package/dist/capabilities/Budget.mjs +346 -0
  84. package/dist/capabilities/Budget.mjs.map +1 -0
  85. package/dist/capabilities/CodeMode.d.mts +157 -0
  86. package/dist/capabilities/CodeMode.mjs +523 -0
  87. package/dist/capabilities/CodeMode.mjs.map +1 -0
  88. package/dist/capabilities/Commands.d.mts +55 -0
  89. package/dist/capabilities/Commands.mjs +57 -0
  90. package/dist/capabilities/Commands.mjs.map +1 -0
  91. package/dist/capabilities/ContextTools.d.mts +321 -0
  92. package/dist/capabilities/ContextTools.mjs +126 -0
  93. package/dist/capabilities/ContextTools.mjs.map +1 -0
  94. package/dist/capabilities/Mcp.d.mts +108 -0
  95. package/dist/capabilities/Mcp.mjs +259 -0
  96. package/dist/capabilities/Mcp.mjs.map +1 -0
  97. package/dist/capabilities/McpClient.d.mts +115 -0
  98. package/dist/capabilities/McpClient.mjs +519 -0
  99. package/dist/capabilities/McpClient.mjs.map +1 -0
  100. package/dist/capabilities/MemoryNotes.d.mts +424 -0
  101. package/dist/capabilities/MemoryNotes.mjs +128 -0
  102. package/dist/capabilities/MemoryNotes.mjs.map +1 -0
  103. package/dist/capabilities/Messaging.d.mts +3 -0
  104. package/dist/capabilities/Messaging.mjs +152 -0
  105. package/dist/capabilities/Messaging.mjs.map +1 -0
  106. package/dist/capabilities/ModelContext.d.mts +89 -0
  107. package/dist/capabilities/ModelContext.mjs +168 -0
  108. package/dist/capabilities/ModelContext.mjs.map +1 -0
  109. package/dist/capabilities/Redaction.d.mts +37 -0
  110. package/dist/capabilities/Redaction.mjs +104 -0
  111. package/dist/capabilities/Redaction.mjs.map +1 -0
  112. package/dist/capabilities/Remembering.d.mts +434 -0
  113. package/dist/capabilities/Remembering.mjs +290 -0
  114. package/dist/capabilities/Remembering.mjs.map +1 -0
  115. package/dist/capabilities/RunHooks.d.mts +82 -0
  116. package/dist/capabilities/RunHooks.mjs +144 -0
  117. package/dist/capabilities/RunHooks.mjs.map +1 -0
  118. package/dist/capabilities/SemanticMemory.d.mts +431 -0
  119. package/dist/capabilities/SemanticMemory.mjs +315 -0
  120. package/dist/capabilities/SemanticMemory.mjs.map +1 -0
  121. package/dist/capabilities/Subagent.d.mts +4 -0
  122. package/dist/capabilities/Subagent.mjs +5 -0
  123. package/dist/capabilities/SubagentReservations.d.mts +186 -0
  124. package/dist/capabilities/SubagentReservations.mjs +479 -0
  125. package/dist/capabilities/SubagentReservations.mjs.map +1 -0
  126. package/dist/capabilities/ToolDiscovery.d.mts +124 -0
  127. package/dist/capabilities/ToolDiscovery.mjs +230 -0
  128. package/dist/capabilities/ToolDiscovery.mjs.map +1 -0
  129. package/dist/capabilities/WebCapture.d.mts +163 -0
  130. package/dist/capabilities/WebCapture.mjs +335 -0
  131. package/dist/capabilities/WebCapture.mjs.map +1 -0
  132. package/dist/capabilities/WebSearch.d.mts +71 -0
  133. package/dist/capabilities/WebSearch.mjs +115 -0
  134. package/dist/capabilities/WebSearch.mjs.map +1 -0
  135. package/dist/compaction-C2OTceKw.mjs +505 -0
  136. package/dist/compaction-C2OTceKw.mjs.map +1 -0
  137. package/dist/core/Agent.d.mts +2 -0
  138. package/dist/core/Agent.mjs +2 -0
  139. package/dist/core/AgentError.d.mts +2 -0
  140. package/dist/core/AgentError.mjs +134 -0
  141. package/dist/core/AgentError.mjs.map +1 -0
  142. package/dist/core/AgentPolicy.d.mts +2 -0
  143. package/dist/core/AgentPolicy.mjs +94 -0
  144. package/dist/core/AgentPolicy.mjs.map +1 -0
  145. package/dist/core/AgentUpdates.d.mts +2 -0
  146. package/dist/core/AgentUpdates.mjs +63 -0
  147. package/dist/core/AgentUpdates.mjs.map +1 -0
  148. package/dist/core/FailureDiagnostic.d.mts +2 -0
  149. package/dist/core/FailureDiagnostic.mjs +2 -0
  150. package/dist/core/IdGenerator.d.mts +26 -0
  151. package/dist/core/IdGenerator.mjs +27 -0
  152. package/dist/core/IdGenerator.mjs.map +1 -0
  153. package/dist/core/Identifiers.d.mts +2 -0
  154. package/dist/core/Identifiers.mjs +43 -0
  155. package/dist/core/Identifiers.mjs.map +1 -0
  156. package/dist/core/Memory.d.mts +57 -0
  157. package/dist/core/Memory.mjs +203 -0
  158. package/dist/core/Memory.mjs.map +1 -0
  159. package/dist/core/MemoryNamespace.d.mts +2 -0
  160. package/dist/core/MemoryNamespace.mjs +116 -0
  161. package/dist/core/MemoryNamespace.mjs.map +1 -0
  162. package/dist/core/MemoryReference.d.mts +2 -0
  163. package/dist/core/MemoryReference.mjs +109 -0
  164. package/dist/core/MemoryReference.mjs.map +1 -0
  165. package/dist/core/MemoryRevalidation.d.mts +65 -0
  166. package/dist/core/MemoryRevalidation.mjs +126 -0
  167. package/dist/core/MemoryRevalidation.mjs.map +1 -0
  168. package/dist/core/MemoryStore.d.mts +186 -0
  169. package/dist/core/MemoryStore.mjs +243 -0
  170. package/dist/core/MemoryStore.mjs.map +1 -0
  171. package/dist/core/Receipt.d.mts +2 -0
  172. package/dist/core/Receipt.mjs +36 -0
  173. package/dist/core/Receipt.mjs.map +1 -0
  174. package/dist/core/RememberingStore.d.mts +1562 -0
  175. package/dist/core/RememberingStore.mjs +190 -0
  176. package/dist/core/RememberingStore.mjs.map +1 -0
  177. package/dist/core/RunEvent.d.mts +2 -0
  178. package/dist/core/RunEvent.mjs +337 -0
  179. package/dist/core/RunEvent.mjs.map +1 -0
  180. package/dist/core/RunPolicyUsage.d.mts +2 -0
  181. package/dist/core/RunPolicyUsage.mjs +21 -0
  182. package/dist/core/RunPolicyUsage.mjs.map +1 -0
  183. package/dist/core/SemanticMemoryIndex.d.mts +826 -0
  184. package/dist/core/SemanticMemoryIndex.mjs +185 -0
  185. package/dist/core/SemanticMemoryIndex.mjs.map +1 -0
  186. package/dist/core/SemanticMemoryRevalidation.d.mts +45 -0
  187. package/dist/core/SemanticMemoryRevalidation.mjs +191 -0
  188. package/dist/core/SemanticMemoryRevalidation.mjs.map +1 -0
  189. package/dist/core/SubagentContract.d.mts +2 -0
  190. package/dist/core/SubagentContract.mjs +148 -0
  191. package/dist/core/SubagentContract.mjs.map +1 -0
  192. package/dist/core/Thread.d.mts +2 -0
  193. package/dist/core/Thread.mjs +250 -0
  194. package/dist/core/Thread.mjs.map +1 -0
  195. package/dist/core/ToolResult.d.mts +2 -0
  196. package/dist/core/ToolResult.mjs +156 -0
  197. package/dist/core/ToolResult.mjs.map +1 -0
  198. package/dist/core/Usage.d.mts +2 -0
  199. package/dist/core/Usage.mjs +319 -0
  200. package/dist/core/Usage.mjs.map +1 -0
  201. package/dist/core/Worker.d.mts +3 -0
  202. package/dist/core/Worker.mjs +3 -0
  203. package/dist/durable/ActivityStore.d.mts +116 -0
  204. package/dist/durable/ActivityStore.mjs +131 -0
  205. package/dist/durable/ActivityStore.mjs.map +1 -0
  206. package/dist/durable/Admin.d.mts +2 -0
  207. package/dist/durable/Admin.mjs +330 -0
  208. package/dist/durable/Admin.mjs.map +1 -0
  209. package/dist/durable/AgentRegistration.d.mts +2 -0
  210. package/dist/durable/AgentRegistration.mjs +14 -0
  211. package/dist/durable/AgentRegistration.mjs.map +1 -0
  212. package/dist/durable/Certification.d.mts +110 -0
  213. package/dist/durable/Certification.mjs +159 -0
  214. package/dist/durable/Certification.mjs.map +1 -0
  215. package/dist/durable/CommittedActivity.d.mts +64 -0
  216. package/dist/durable/CommittedActivity.mjs +159 -0
  217. package/dist/durable/CommittedActivity.mjs.map +1 -0
  218. package/dist/durable/Digest.d.mts +2 -0
  219. package/dist/durable/Digest.mjs +50 -0
  220. package/dist/durable/Digest.mjs.map +1 -0
  221. package/dist/durable/DurableAgentRuntime.d.mts +3 -0
  222. package/dist/durable/DurableAgentRuntime.mjs +4 -0
  223. package/dist/durable/DurableFailpoint.d.mts +2 -0
  224. package/dist/durable/DurableFailpoint.mjs +102 -0
  225. package/dist/durable/DurableFailpoint.mjs.map +1 -0
  226. package/dist/durable/DurableFailpointTestControl.d.mts +14 -0
  227. package/dist/durable/DurableFailpointTestControl.mjs +19 -0
  228. package/dist/durable/DurableFailpointTestControl.mjs.map +1 -0
  229. package/dist/durable/EventSource.d.mts +2 -0
  230. package/dist/durable/EventSource.mjs +65 -0
  231. package/dist/durable/EventSource.mjs.map +1 -0
  232. package/dist/durable/GitHubWorkflowSource.d.mts +185 -0
  233. package/dist/durable/GitHubWorkflowSource.mjs +209 -0
  234. package/dist/durable/GitHubWorkflowSource.mjs.map +1 -0
  235. package/dist/durable/LifecyclePublication.d.mts +2 -0
  236. package/dist/durable/LifecyclePublication.mjs +189 -0
  237. package/dist/durable/LifecyclePublication.mjs.map +1 -0
  238. package/dist/durable/MessageDelivery.d.mts +935 -0
  239. package/dist/durable/MessageDelivery.mjs +557 -0
  240. package/dist/durable/MessageDelivery.mjs.map +1 -0
  241. package/dist/durable/MessageDeliveryStoreConformance.d.mts +400 -0
  242. package/dist/durable/MessageDeliveryStoreConformance.mjs +270 -0
  243. package/dist/durable/MessageDeliveryStoreConformance.mjs.map +1 -0
  244. package/dist/durable/OperationAuthorizer.d.mts +2 -0
  245. package/dist/durable/OperationAuthorizer.mjs +70 -0
  246. package/dist/durable/OperationAuthorizer.mjs.map +1 -0
  247. package/dist/durable/PersistentHistory.d.mts +16 -0
  248. package/dist/durable/PersistentHistory.mjs +125 -0
  249. package/dist/durable/PersistentHistory.mjs.map +1 -0
  250. package/dist/durable/PreparedInputAdmission.d.mts +2 -0
  251. package/dist/durable/PreparedInputAdmission.mjs +38 -0
  252. package/dist/durable/PreparedInputAdmission.mjs.map +1 -0
  253. package/dist/durable/Records.d.mts +2 -0
  254. package/dist/durable/Records.mjs +858 -0
  255. package/dist/durable/Records.mjs.map +1 -0
  256. package/dist/durable/Recovery.d.mts +2 -0
  257. package/dist/durable/Recovery.mjs +739 -0
  258. package/dist/durable/Recovery.mjs.map +1 -0
  259. package/dist/durable/RunJournal.d.mts +2 -0
  260. package/dist/durable/RunJournal.mjs +2 -0
  261. package/dist/durable/Schedule.d.mts +2 -0
  262. package/dist/durable/Schedule.mjs +391 -0
  263. package/dist/durable/Schedule.mjs.map +1 -0
  264. package/dist/durable/ScheduleStoreConformance.d.mts +17 -0
  265. package/dist/durable/ScheduleStoreConformance.mjs +420 -0
  266. package/dist/durable/ScheduleStoreConformance.mjs.map +1 -0
  267. package/dist/durable/ScheduleTransition.d.mts +24 -0
  268. package/dist/durable/ScheduleTransition.mjs +180 -0
  269. package/dist/durable/ScheduleTransition.mjs.map +1 -0
  270. package/dist/durable/Scheduling.d.mts +55 -0
  271. package/dist/durable/Scheduling.mjs +2 -0
  272. package/dist/durable/SqlMemoryStore.d.mts +29 -0
  273. package/dist/durable/SqlMemoryStore.mjs +436 -0
  274. package/dist/durable/SqlMemoryStore.mjs.map +1 -0
  275. package/dist/durable/SubmissionLedger.d.mts +3 -0
  276. package/dist/durable/SubmissionLedger.mjs +986 -0
  277. package/dist/durable/SubmissionLedger.mjs.map +1 -0
  278. package/dist/durable/SubmissionLedgerConformance.d.mts +30 -0
  279. package/dist/durable/SubmissionLedgerConformance.mjs +2254 -0
  280. package/dist/durable/SubmissionLedgerConformance.mjs.map +1 -0
  281. package/dist/durable/SubmissionStatus.d.mts +2 -0
  282. package/dist/durable/SubmissionStatus.mjs +18 -0
  283. package/dist/durable/SubmissionStatus.mjs.map +1 -0
  284. package/dist/durable/Subscription.d.mts +2 -0
  285. package/dist/durable/Subscription.mjs +360 -0
  286. package/dist/durable/Subscription.mjs.map +1 -0
  287. package/dist/durable/SubscriptionInput.d.mts +2 -0
  288. package/dist/durable/SubscriptionInput.mjs +52 -0
  289. package/dist/durable/SubscriptionInput.mjs.map +1 -0
  290. package/dist/durable/SubscriptionStoreConformance.d.mts +16 -0
  291. package/dist/durable/SubscriptionStoreConformance.mjs +625 -0
  292. package/dist/durable/SubscriptionStoreConformance.mjs.map +1 -0
  293. package/dist/durable/SubscriptionTools.d.mts +274 -0
  294. package/dist/durable/SubscriptionTools.mjs +190 -0
  295. package/dist/durable/SubscriptionTools.mjs.map +1 -0
  296. package/dist/durable/SubscriptionTransition.d.mts +21 -0
  297. package/dist/durable/SubscriptionTransition.mjs +148 -0
  298. package/dist/durable/SubscriptionTransition.mjs.map +1 -0
  299. package/dist/durable/Subscriptions.d.mts +74 -0
  300. package/dist/durable/Subscriptions.mjs +627 -0
  301. package/dist/durable/Subscriptions.mjs.map +1 -0
  302. package/dist/durable/ThreadContextHistory.d.mts +32 -0
  303. package/dist/durable/ThreadContextHistory.mjs +152 -0
  304. package/dist/durable/ThreadContextHistory.mjs.map +1 -0
  305. package/dist/durable/ThreadContextHistoryProjection.d.mts +60 -0
  306. package/dist/durable/ThreadContextHistoryProjection.mjs +149 -0
  307. package/dist/durable/ThreadContextHistoryProjection.mjs.map +1 -0
  308. package/dist/durable/ThreadInvariants.d.mts +77 -0
  309. package/dist/durable/ThreadInvariants.mjs +246 -0
  310. package/dist/durable/ThreadInvariants.mjs.map +1 -0
  311. package/dist/durable/ThreadProjection.d.mts +78 -0
  312. package/dist/durable/ThreadProjection.mjs +158 -0
  313. package/dist/durable/ThreadProjection.mjs.map +1 -0
  314. package/dist/durable/ThreadProjectionMaintenance.d.mts +49 -0
  315. package/dist/durable/ThreadProjectionMaintenance.mjs +33 -0
  316. package/dist/durable/ThreadProjectionMaintenance.mjs.map +1 -0
  317. package/dist/durable/ThreadStore.d.mts +2 -0
  318. package/dist/durable/ThreadStore.mjs +383 -0
  319. package/dist/durable/ThreadStore.mjs.map +1 -0
  320. package/dist/durable/ThreadStoreConformance.d.mts +28 -0
  321. package/dist/durable/ThreadStoreConformance.mjs +543 -0
  322. package/dist/durable/ThreadStoreConformance.mjs.map +1 -0
  323. package/dist/durable/ToolReconciler.d.mts +2 -0
  324. package/dist/durable/ToolReconciler.mjs +85 -0
  325. package/dist/durable/ToolReconciler.mjs.map +1 -0
  326. package/dist/durable/WakeScheduler.d.mts +2 -0
  327. package/dist/durable/WakeScheduler.mjs +85 -0
  328. package/dist/durable/WakeScheduler.mjs.map +1 -0
  329. package/dist/durable/WorkerAdmission.d.mts +172 -0
  330. package/dist/durable/WorkerAdmission.mjs +2 -0
  331. package/dist/durable/WorkerHost.d.mts +156 -0
  332. package/dist/durable/WorkerHost.mjs +77 -0
  333. package/dist/durable/WorkerHost.mjs.map +1 -0
  334. package/dist/engine/AgentRuntime.d.mts +2 -0
  335. package/dist/engine/AgentRuntime.mjs +2 -0
  336. package/dist/engine/Compaction.d.mts +7 -0
  337. package/dist/engine/Compaction.mjs +16 -0
  338. package/dist/engine/Compaction.mjs.map +1 -0
  339. package/dist/engine/ContextCompactor.d.mts +2 -0
  340. package/dist/engine/ContextCompactor.mjs +119 -0
  341. package/dist/engine/ContextCompactor.mjs.map +1 -0
  342. package/dist/engine/ContextHistory.d.mts +65 -0
  343. package/dist/engine/ContextHistory.mjs +76 -0
  344. package/dist/engine/ContextHistory.mjs.map +1 -0
  345. package/dist/engine/ContextWindow.d.mts +2 -0
  346. package/dist/engine/ContextWindow.mjs +59 -0
  347. package/dist/engine/ContextWindow.mjs.map +1 -0
  348. package/dist/engine/DurableStep.d.mts +2 -0
  349. package/dist/engine/DurableStep.mjs +62 -0
  350. package/dist/engine/DurableStep.mjs.map +1 -0
  351. package/dist/engine/MessagingHost.d.mts +2 -0
  352. package/dist/engine/MessagingHost.mjs +2 -0
  353. package/dist/engine/Output.d.mts +2 -0
  354. package/dist/engine/Output.mjs +8 -0
  355. package/dist/engine/Output.mjs.map +1 -0
  356. package/dist/engine/RunEventSink.d.mts +2 -0
  357. package/dist/engine/RunEventSink.mjs +22 -0
  358. package/dist/engine/RunEventSink.mjs.map +1 -0
  359. package/dist/engine/RunOptions.d.mts +2 -0
  360. package/dist/engine/RunOptions.mjs +124 -0
  361. package/dist/engine/RunOptions.mjs.map +1 -0
  362. package/dist/engine/SubagentHost.d.mts +2 -0
  363. package/dist/engine/SubagentHost.mjs +76 -0
  364. package/dist/engine/SubagentHost.mjs.map +1 -0
  365. package/dist/engine/ThreadHistory.d.mts +2 -0
  366. package/dist/engine/ThreadHistory.mjs +67 -0
  367. package/dist/engine/ThreadHistory.mjs.map +1 -0
  368. package/dist/engine/ToolBroker.d.mts +2 -0
  369. package/dist/engine/ToolBroker.mjs +42 -0
  370. package/dist/engine/ToolBroker.mjs.map +1 -0
  371. package/dist/foreign-diagnostic-DBQ1XHKh.mjs +37 -0
  372. package/dist/foreign-diagnostic-DBQ1XHKh.mjs.map +1 -0
  373. package/dist/index.d.mts +92 -6
  374. package/dist/index.mjs +100 -6
  375. package/dist/output-contract-DS-S8mTv.mjs +135 -0
  376. package/dist/output-contract-DS-S8mTv.mjs.map +1 -0
  377. package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
  378. package/dist/sandbox/CodeExecutor.d.mts +194 -0
  379. package/dist/sandbox/CodeExecutor.mjs +278 -0
  380. package/dist/sandbox/CodeExecutor.mjs.map +1 -0
  381. package/dist/sandbox/InteractiveBrowser.d.mts +257 -0
  382. package/dist/sandbox/InteractiveBrowser.mjs +236 -0
  383. package/dist/sandbox/InteractiveBrowser.mjs.map +1 -0
  384. package/dist/sandbox/PageCapture.d.mts +2 -0
  385. package/dist/sandbox/PageCapture.mjs +450 -0
  386. package/dist/sandbox/PageCapture.mjs.map +1 -0
  387. package/dist/sandbox/PageCrawl.d.mts +88 -0
  388. package/dist/sandbox/PageCrawl.mjs +124 -0
  389. package/dist/sandbox/PageCrawl.mjs.map +1 -0
  390. package/dist/sandbox/PageScreenshot.d.mts +48 -0
  391. package/dist/sandbox/PageScreenshot.mjs +53 -0
  392. package/dist/sandbox/PageScreenshot.mjs.map +1 -0
  393. package/dist/sandbox/Sandbox.d.mts +2 -0
  394. package/dist/sandbox/Sandbox.mjs +208 -0
  395. package/dist/sandbox/Sandbox.mjs.map +1 -0
  396. package/dist/utf8-BYfhEkcj.mjs +11 -0
  397. package/dist/utf8-BYfhEkcj.mjs.map +1 -0
  398. package/dist/utf8-DchGZRBd.mjs +23 -0
  399. package/dist/utf8-DchGZRBd.mjs.map +1 -0
  400. package/package.json +1 -40
  401. package/src/InMemory.ts +19 -0
  402. package/src/ToolExposure.ts +2 -0
  403. package/src/capabilities/Approval.ts +352 -0
  404. package/src/capabilities/Budget.ts +536 -0
  405. package/src/capabilities/CodeMode.ts +1099 -0
  406. package/src/capabilities/Commands.ts +86 -0
  407. package/src/capabilities/ContextTools.ts +184 -0
  408. package/src/capabilities/Mcp.ts +426 -0
  409. package/src/capabilities/McpClient.ts +983 -0
  410. package/src/capabilities/MemoryNotes.ts +174 -0
  411. package/src/capabilities/Messaging.ts +261 -0
  412. package/src/capabilities/ModelContext.ts +354 -0
  413. package/src/capabilities/Redaction.ts +157 -0
  414. package/src/capabilities/Remembering.ts +550 -0
  415. package/src/capabilities/RunHooks.ts +280 -0
  416. package/src/capabilities/SemanticMemory.ts +447 -0
  417. package/src/capabilities/Subagent.ts +2489 -0
  418. package/src/capabilities/SubagentReservations.ts +850 -0
  419. package/src/capabilities/ToolDiscovery.ts +369 -0
  420. package/src/capabilities/WebCapture.ts +722 -0
  421. package/src/capabilities/WebSearch.ts +190 -0
  422. package/src/capabilities/internal/subagent-background.ts +1307 -0
  423. package/src/capabilities/internal/subagent-contract.ts +146 -0
  424. package/src/capabilities/internal/subagent-policy.ts +235 -0
  425. package/src/capabilities/internal/subagent-reporting.ts +136 -0
  426. package/src/capabilities/internal/utf8.ts +10 -0
  427. package/src/core/Agent.ts +609 -0
  428. package/src/core/AgentError.ts +172 -0
  429. package/src/core/AgentPolicy.ts +153 -0
  430. package/src/core/AgentUpdates.ts +100 -0
  431. package/src/core/FailureDiagnostic.ts +343 -0
  432. package/src/core/IdGenerator.ts +39 -0
  433. package/src/core/Identifiers.ts +48 -0
  434. package/src/core/Memory.ts +290 -0
  435. package/src/core/MemoryNamespace.ts +196 -0
  436. package/src/core/MemoryReference.ts +121 -0
  437. package/src/core/MemoryRevalidation.ts +185 -0
  438. package/src/core/MemoryStore.ts +368 -0
  439. package/src/core/Messaging.ts +72 -0
  440. package/src/core/Receipt.ts +42 -0
  441. package/src/core/RememberingStore.ts +300 -0
  442. package/src/core/RunEvent.ts +366 -0
  443. package/src/core/RunPolicyUsage.ts +17 -0
  444. package/src/core/SemanticMemoryIndex.ts +250 -0
  445. package/src/core/SemanticMemoryRevalidation.ts +254 -0
  446. package/src/core/SubagentContract.ts +196 -0
  447. package/src/core/Thread.ts +371 -0
  448. package/src/core/ToolExposure.ts +74 -0
  449. package/src/core/ToolResult.ts +190 -0
  450. package/src/core/Usage.ts +529 -0
  451. package/src/core/Worker.ts +240 -0
  452. package/src/core/internal/agent-updates.ts +34 -0
  453. package/src/core/internal/message-status.ts +60 -0
  454. package/src/core/internal/strict-schema.ts +14 -0
  455. package/src/core/internal/utf8.ts +23 -0
  456. package/src/durable/ActivityStore.ts +160 -0
  457. package/src/durable/Admin.ts +505 -0
  458. package/src/durable/AgentRegistration.ts +14 -0
  459. package/src/durable/Certification.ts +210 -0
  460. package/src/durable/CommittedActivity.ts +296 -0
  461. package/src/durable/Digest.ts +87 -0
  462. package/src/durable/DurableAgentRuntime.ts +11367 -0
  463. package/src/durable/DurableFailpoint.ts +111 -0
  464. package/src/durable/DurableFailpointTestControl.ts +39 -0
  465. package/src/durable/EventSource.ts +172 -0
  466. package/src/durable/GitHubWorkflowSource.ts +447 -0
  467. package/src/durable/LifecyclePublication.ts +298 -0
  468. package/src/durable/MessageDelivery.ts +834 -0
  469. package/src/durable/MessageDeliveryStoreConformance.ts +410 -0
  470. package/src/durable/OperationAuthorizer.ts +85 -0
  471. package/src/durable/PersistentHistory.ts +260 -0
  472. package/src/durable/PreparedInputAdmission.ts +57 -0
  473. package/src/durable/Records.ts +1087 -0
  474. package/src/durable/Recovery.ts +1018 -0
  475. package/src/durable/RunJournal.ts +1695 -0
  476. package/src/durable/Schedule.ts +513 -0
  477. package/src/durable/ScheduleStoreConformance.ts +638 -0
  478. package/src/durable/ScheduleTransition.ts +265 -0
  479. package/src/durable/Scheduling.ts +1077 -0
  480. package/src/durable/SqlMemoryStore.ts +778 -0
  481. package/src/durable/SubmissionLedger.ts +1297 -0
  482. package/src/durable/SubmissionLedgerConformance.ts +4940 -0
  483. package/src/durable/SubmissionStatus.ts +14 -0
  484. package/src/durable/Subscription.ts +544 -0
  485. package/src/durable/SubscriptionInput.ts +144 -0
  486. package/src/durable/SubscriptionStoreConformance.ts +945 -0
  487. package/src/durable/SubscriptionTools.ts +327 -0
  488. package/src/durable/SubscriptionTransition.ts +302 -0
  489. package/src/durable/Subscriptions.ts +1210 -0
  490. package/src/durable/ThreadContextHistory.ts +227 -0
  491. package/src/durable/ThreadContextHistoryProjection.ts +216 -0
  492. package/src/durable/ThreadInvariants.ts +507 -0
  493. package/src/durable/ThreadProjection.ts +269 -0
  494. package/src/durable/ThreadProjectionMaintenance.ts +67 -0
  495. package/src/durable/ThreadStore.ts +637 -0
  496. package/src/durable/ThreadStoreConformance.ts +1296 -0
  497. package/src/durable/ToolReconciler.ts +109 -0
  498. package/src/durable/WakeScheduler.ts +134 -0
  499. package/src/durable/WorkerAdmission.ts +104 -0
  500. package/src/durable/WorkerHost.ts +205 -0
  501. package/src/durable/internal/agent-registration.ts +587 -0
  502. package/src/durable/internal/agent-updates.ts +306 -0
  503. package/src/durable/internal/foreign-diagnostic.ts +47 -0
  504. package/src/durable/internal/journal-checkpoint.ts +104 -0
  505. package/src/durable/internal/journal-metadata.ts +124 -0
  506. package/src/durable/internal/message-status.ts +20 -0
  507. package/src/durable/internal/messaging-host.ts +637 -0
  508. package/src/durable/internal/schedule-time.ts +303 -0
  509. package/src/durable/internal/thread-initialization.ts +195 -0
  510. package/src/durable/internal/worker-host.ts +3309 -0
  511. package/src/durable/internal/worker-runtime.ts +9 -0
  512. package/src/engine/AgentRuntime.ts +37 -0
  513. package/src/engine/Compaction.ts +11 -0
  514. package/src/engine/ContextCompactor.ts +277 -0
  515. package/src/engine/ContextHistory.ts +73 -0
  516. package/src/engine/ContextWindow.ts +72 -0
  517. package/src/engine/DurableStep.ts +132 -0
  518. package/src/engine/MessagingHost.ts +110 -0
  519. package/src/engine/Output.ts +2 -0
  520. package/src/engine/RunEventSink.ts +132 -0
  521. package/src/engine/RunOptions.ts +1109 -0
  522. package/src/engine/SubagentHost.ts +239 -0
  523. package/src/engine/ThreadHistory.ts +120 -0
  524. package/src/engine/ToolBroker.ts +157 -0
  525. package/src/engine/ToolExposure.ts +48 -0
  526. package/src/engine/internal/agent-runtime.ts +10596 -0
  527. package/src/engine/internal/bounded-value.ts +315 -0
  528. package/src/engine/internal/compaction.ts +678 -0
  529. package/src/engine/internal/error-diagnostic.ts +39 -0
  530. package/src/engine/internal/output-contract.ts +250 -0
  531. package/src/engine/internal/primitive-delta.ts +80 -0
  532. package/src/engine/internal/provider-result-staging.ts +211 -0
  533. package/src/engine/internal/tool-derivative.ts +106 -0
  534. package/src/engine/internal/tool-exposure.ts +224 -0
  535. package/src/engine/internal/tool-telemetry.ts +484 -0
  536. package/src/index.ts +99 -22
  537. package/src/sandbox/CodeExecutor.ts +352 -0
  538. package/src/sandbox/InteractiveBrowser.ts +339 -0
  539. package/src/sandbox/PageCapture.ts +691 -0
  540. package/src/sandbox/PageCrawl.ts +148 -0
  541. package/src/sandbox/PageScreenshot.ts +81 -0
  542. package/src/sandbox/Sandbox.ts +241 -0
@@ -0,0 +1,1104 @@
1
+ import { d as SubagentReservationAmounts, l as SubagentGrant, o as SubagentDelegationCaps, s as SubagentExecutionFailure, u as SubagentParentLink } from "./SubagentContract-DdT7Cqe6.mjs";
2
+ import { a as Receipt } from "./Receipt-BAHyigAF.mjs";
3
+ import { r as Update } from "./AgentUpdates-DMJ-_xow.mjs";
4
+ import { c as Selection, l as Snapshot } from "./ToolExposure-r2eOWk4F.mjs";
5
+ import { l as RunUsageSummary, r as ModelCallUsage, s as RunTotals } from "./Usage-Dx0aknfk.mjs";
6
+ import { a as FailureDiagnostic_d_exports, r as Diagnostic } from "./FailureDiagnostic-CaAkzGHL.mjs";
7
+ import { t as AgentPolicy } from "./AgentPolicy-BqDoSXO6.mjs";
8
+ import { Schema } from "effect";
9
+ declare namespace Records_d_exports {
10
+ 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, WorkerContinuation, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent, WorkerStopRequested };
11
+ }
12
+ /** Stable identity of one canonical record. */
13
+ declare const RecordId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/RecordId">;
14
+ type RecordId = typeof RecordId.Type;
15
+ /** Stable idempotency identity of one atomic append. */
16
+ declare const BatchId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/BatchId">;
17
+ type BatchId = typeof BatchId.Type;
18
+ /** Identity of the deployment that produced a record. */
19
+ declare const DeploymentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/DeploymentId">;
20
+ type DeploymentId = typeof DeploymentId.Type;
21
+ /** Identity of a fenced canonical-log producer. */
22
+ declare const ProducerId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ProducerId">;
23
+ type ProducerId = typeof ProducerId.Type;
24
+ /** SHA-256 digest encoded as lowercase hexadecimal text. */
25
+ declare const Digest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
26
+ type Digest = typeof Digest.Type;
27
+ /** Adapter-owned resume cursor. Callers must not parse or synthesize it. */
28
+ declare const ObservationOffset: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ObservationOffset">;
29
+ type ObservationOffset = typeof ObservationOffset.Type;
30
+ /** Gap-free position in one Thread's canonical sequence. */
31
+ declare const CanonicalSequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
32
+ type CanonicalSequence = typeof CanonicalSequence.Type;
33
+ /** Monotonic fencing epoch for a Thread producer. */
34
+ declare const ProducerEpoch: Schema.brand<Schema.Natural, "@effect-agent/thread/ProducerEpoch">;
35
+ type ProducerEpoch = typeof ProducerEpoch.Type;
36
+ /**
37
+ * Private failed-Settlement evidence. The summary remains the safe public projection; diagnostic
38
+ * and context preserve structured causal evidence for authorized operators, never model context.
39
+ * Optional fields allow reading supported Settlements written before causal capture was available.
40
+ */
41
+ declare const SettlementFailureDiagnostic: Schema.declareConstructor<{
42
+ readonly errorTag: string;
43
+ readonly message: string;
44
+ readonly diagnostic?: Diagnostic | undefined;
45
+ readonly context?: {
46
+ readonly agentId?: string | undefined;
47
+ readonly threadId?: string | undefined;
48
+ readonly runId?: string | undefined;
49
+ readonly submissionId?: string | undefined;
50
+ readonly attemptId?: string | undefined;
51
+ readonly turnId?: string | undefined;
52
+ readonly toolCallId?: string | undefined;
53
+ readonly toolName?: string | undefined;
54
+ readonly callId?: string | undefined;
55
+ readonly check?: string | undefined;
56
+ readonly operation?: string | undefined;
57
+ } | undefined;
58
+ }, {
59
+ readonly errorTag: string;
60
+ readonly message: string;
61
+ readonly diagnostic?: Diagnostic | undefined;
62
+ readonly context?: {
63
+ readonly agentId?: string | undefined;
64
+ readonly threadId?: string | undefined;
65
+ readonly runId?: string | undefined;
66
+ readonly submissionId?: string | undefined;
67
+ readonly attemptId?: string | undefined;
68
+ readonly turnId?: string | undefined;
69
+ readonly toolCallId?: string | undefined;
70
+ readonly toolName?: string | undefined;
71
+ readonly callId?: string | undefined;
72
+ readonly check?: string | undefined;
73
+ readonly operation?: string | undefined;
74
+ } | undefined;
75
+ }, readonly [Schema.Struct<{
76
+ readonly errorTag: Schema.NonEmptyString;
77
+ readonly message: Schema.String;
78
+ readonly diagnostic: Schema.optionalKey<Schema.Codec<Diagnostic, Diagnostic, never, never>>;
79
+ readonly context: Schema.optionalKey<Schema.declareConstructor<{
80
+ readonly agentId?: string | undefined;
81
+ readonly threadId?: string | undefined;
82
+ readonly runId?: string | undefined;
83
+ readonly submissionId?: string | undefined;
84
+ readonly attemptId?: string | undefined;
85
+ readonly turnId?: string | undefined;
86
+ readonly toolCallId?: string | undefined;
87
+ readonly toolName?: string | undefined;
88
+ readonly callId?: string | undefined;
89
+ readonly check?: string | undefined;
90
+ readonly operation?: string | undefined;
91
+ }, {
92
+ readonly agentId?: string | undefined;
93
+ readonly threadId?: string | undefined;
94
+ readonly runId?: string | undefined;
95
+ readonly submissionId?: string | undefined;
96
+ readonly attemptId?: string | undefined;
97
+ readonly turnId?: string | undefined;
98
+ readonly toolCallId?: string | undefined;
99
+ readonly toolName?: string | undefined;
100
+ readonly callId?: string | undefined;
101
+ readonly check?: string | undefined;
102
+ readonly operation?: string | undefined;
103
+ }, readonly [Schema.Struct<{
104
+ readonly agentId: Schema.optionalKey<Schema.String>;
105
+ readonly threadId: Schema.optionalKey<Schema.String>;
106
+ readonly runId: Schema.optionalKey<Schema.String>;
107
+ readonly submissionId: Schema.optionalKey<Schema.String>;
108
+ readonly attemptId: Schema.optionalKey<Schema.String>;
109
+ readonly turnId: Schema.optionalKey<Schema.String>;
110
+ readonly toolCallId: Schema.optionalKey<Schema.String>;
111
+ readonly toolName: Schema.optionalKey<Schema.String>;
112
+ readonly callId: Schema.optionalKey<Schema.String>;
113
+ readonly check: Schema.optionalKey<Schema.String>;
114
+ readonly operation: Schema.optionalKey<Schema.String>;
115
+ }>], {
116
+ readonly agentId?: string | undefined;
117
+ readonly threadId?: string | undefined;
118
+ readonly runId?: string | undefined;
119
+ readonly submissionId?: string | undefined;
120
+ readonly attemptId?: string | undefined;
121
+ readonly turnId?: string | undefined;
122
+ readonly toolCallId?: string | undefined;
123
+ readonly toolName?: string | undefined;
124
+ readonly callId?: string | undefined;
125
+ readonly check?: string | undefined;
126
+ readonly operation?: string | undefined;
127
+ }>>;
128
+ }>], {
129
+ readonly errorTag: string;
130
+ readonly message: string;
131
+ readonly diagnostic?: Diagnostic | undefined;
132
+ readonly context?: {
133
+ readonly agentId?: string | undefined;
134
+ readonly threadId?: string | undefined;
135
+ readonly runId?: string | undefined;
136
+ readonly submissionId?: string | undefined;
137
+ readonly attemptId?: string | undefined;
138
+ readonly turnId?: string | undefined;
139
+ readonly toolCallId?: string | undefined;
140
+ readonly toolName?: string | undefined;
141
+ readonly callId?: string | undefined;
142
+ readonly check?: string | undefined;
143
+ readonly operation?: string | undefined;
144
+ } | undefined;
145
+ }>;
146
+ type SettlementFailureDiagnostic = typeof SettlementFailureDiagnostic.Type;
147
+ declare const MAX_PERSISTED_JSON_DEPTH = 64;
148
+ declare const MAX_PERSISTED_JSON_COLLECTION_LENGTH = 4096;
149
+ declare const MAX_PERSISTED_JSON_NODES = 65536;
150
+ declare const MAX_PERSISTED_JSON_BYTES: number;
151
+ /** Canonical JSON admitted to persisted records and checkpoints under explicit resource limits. */
152
+ declare const PersistedJson: Schema.declare<Schema.Json, Schema.Json>;
153
+ type PersistedJson = typeof PersistedJson.Type;
154
+ declare const DefinitionDigestInput_base: Schema.Class<DefinitionDigestInput, Schema.Struct<{
155
+ readonly agent: Schema.declare<Schema.Json, Schema.Json>;
156
+ readonly model: Schema.declare<Schema.Json, Schema.Json>;
157
+ readonly tools: Schema.declare<Schema.Json, Schema.Json>;
158
+ }>, {}>;
159
+ /** Schema-owned replay inputs whose individual definitions are incorporated into digests. */
160
+ declare class DefinitionDigestInput extends DefinitionDigestInput_base {}
161
+ declare const ReplayContract_base: Schema.Class<ReplayContract, Schema.Struct<{
162
+ readonly agent: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
163
+ /** Retained for reading earlier admissions; never selects executable code. */
164
+ readonly agentBehavior: Schema.optionalKey<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
165
+ readonly tools: Schema.$Record<Schema.String, Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
166
+ }>, {}>;
167
+ /** Admission-time operation fingerprints. Agent fingerprints remain immutable evidence only. */
168
+ declare class ReplayContract extends ReplayContract_base {}
169
+ declare const DefinitionDigests_base: Schema.Class<DefinitionDigests, Schema.Struct<{
170
+ readonly agent: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
171
+ readonly model: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
172
+ readonly tools: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
173
+ readonly replay: Schema.optionalKey<typeof ReplayContract>;
174
+ }>, {}>;
175
+ /** Digests identify admission exactly; only an unfinished operation needs replay compatibility. */
176
+ declare class DefinitionDigests extends DefinitionDigests_base {}
177
+ declare const ThreadCreated_base: Schema.Class<ThreadCreated, Schema.TaggedStruct<"ThreadCreated", {
178
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
179
+ readonly definitions: typeof DefinitionDigests;
180
+ }>, {}>;
181
+ declare class ThreadCreated extends ThreadCreated_base {}
182
+ declare const UserInputRecorded_base: Schema.Class<UserInputRecorded, Schema.TaggedStruct<"UserInputRecorded", {
183
+ readonly submissionId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">>;
184
+ readonly kind: Schema.Literals<readonly ["user", "steering", "follow-up"]>;
185
+ readonly runId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">>;
186
+ readonly input: Schema.declare<Schema.Json, Schema.Json>;
187
+ readonly messageAdmission: Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
188
+ readonly schemaVersion: Schema.Literal<1>;
189
+ readonly message: Schema.Struct<{
190
+ readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
191
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
192
+ }>;
193
+ readonly peerName: Schema.NonEmptyString;
194
+ readonly sender: Schema.Struct<{
195
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
196
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
197
+ }>;
198
+ readonly returnAddress: Schema.Struct<{
199
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
200
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
201
+ }>;
202
+ readonly inReplyTo: Schema.optionalKey<Schema.Struct<{
203
+ readonly ownerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
204
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
205
+ }>>;
206
+ }>, Schema.Union<readonly [Schema.Struct<{
207
+ readonly _tag: Schema.Literal<"WorkerCompletion">;
208
+ readonly budgetExhausted: Schema.Boolean;
209
+ readonly schemaVersion: Schema.Literal<1>;
210
+ readonly report: Schema.Union<readonly [Schema.Struct<{
211
+ readonly _tag: Schema.Literal<"Settled">;
212
+ readonly worker: Schema.Struct<{
213
+ readonly schemaVersion: Schema.Literal<1>;
214
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
215
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
216
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
217
+ }>;
218
+ readonly receipt: typeof Receipt;
219
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
220
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
221
+ readonly outcome: Schema.Literal<"completed">;
222
+ readonly result: Schema.Union<readonly [Schema.Codec<Schema.Json, Schema.Json, never, never>]>;
223
+ }>, Schema.Struct<{
224
+ readonly _tag: Schema.Literal<"Settled">;
225
+ readonly worker: Schema.Struct<{
226
+ readonly schemaVersion: Schema.Literal<1>;
227
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
228
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
229
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
230
+ }>;
231
+ readonly receipt: typeof Receipt;
232
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
233
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
234
+ readonly outcome: Schema.Literals<readonly ["failed", "aborted"]>;
235
+ readonly failure: typeof SubagentExecutionFailure;
236
+ }>]>;
237
+ }>, Schema.Struct<{
238
+ readonly _tag: Schema.Literal<"WorkerUpdate">;
239
+ readonly schemaVersion: Schema.Literal<1>;
240
+ readonly worker: Schema.Struct<{
241
+ readonly schemaVersion: Schema.Literal<1>;
242
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
243
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
244
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
245
+ }>;
246
+ readonly update: typeof Update;
247
+ }>]>]>>;
248
+ }>, {}>;
249
+ /**
250
+ * One recorded Thread input. `submissionId` is present only for durably accepted work;
251
+ * retained history has no admission or settlement obligation. `kind` identifies the input seam.
252
+ */
253
+ declare class UserInputRecorded extends UserInputRecorded_base {}
254
+ declare const RunStartedRecord_base: Schema.Class<RunStartedRecord, Schema.TaggedStruct<"RunStarted", {
255
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
256
+ /** Older private histories cannot prove programmatic accounting and must be reset. */
257
+ readonly policyAccountingVersion: Schema.Literal<1>;
258
+ readonly maxDurationMillis: Schema.Finite;
259
+ }>, {}>;
260
+ /** Immutable Run start and per-Attempt duration allowance, before any agent execution. */
261
+ declare class RunStartedRecord extends RunStartedRecord_base {}
262
+ declare const RunDurationExhausted_base: Schema.Class<RunDurationExhausted, Schema.TaggedStruct<"RunDurationExhausted", {
263
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
264
+ }>, {}>;
265
+ /** An active Attempt exhausted its execution allowance; downtime alone never writes this. */
266
+ declare class RunDurationExhausted extends RunDurationExhausted_base {}
267
+ declare const ModelCompleted_base: Schema.Class<ModelCompleted, Schema.Struct<{
268
+ readonly _tag: Schema.tag<"ModelCompleted">;
269
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
270
+ readonly output: Schema.declare<Schema.Json, Schema.Json>;
271
+ readonly messages: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
272
+ }>, {}>;
273
+ /**
274
+ * Final model output. Immediate history may include the exact encoded Prompt suffix of the
275
+ * successful Run; durable execution instead journals individual ModelResponseRecorded Turns.
276
+ */
277
+ declare class ModelCompleted extends ModelCompleted_base {}
278
+ declare const ToolCallSettled_base: Schema.Class<ToolCallSettled, Schema.TaggedStruct<"ToolCallSettled", {
279
+ readonly toolSelection: Schema.optionalKey<typeof Selection>;
280
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
281
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
282
+ readonly toolName: Schema.NonEmptyString;
283
+ readonly result: Schema.declare<Schema.Json, Schema.Json>;
284
+ readonly isFailure: Schema.Boolean;
285
+ /** Explicit engine evidence, never inferred from Tool result data. */
286
+ readonly budgetRejected: Schema.optionalKey<Schema.Literal<true>>;
287
+ }>, {}>;
288
+ declare class ToolCallSettled extends ToolCallSettled_base {}
289
+ declare const ToolOperation_base: Schema.Class<ToolOperation, Schema.Struct<{
290
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
291
+ readonly toolName: Schema.NonEmptyString;
292
+ readonly executionClass: Schema.Literals<readonly ["readonly", "idempotent", "uncertain"]>;
293
+ readonly executionKind: Schema.Literals<readonly ["ordinary", "delegation", "orchestration"]>;
294
+ readonly replay: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
295
+ }>, {}>;
296
+ /** Compact execution evidence committed with a declaration, before any handler can start. */
297
+ declare class ToolOperation extends ToolOperation_base {}
298
+ declare const ToolUnavailable_base: Schema.Class<ToolUnavailable, Schema.TaggedStruct<"ToolUnavailable", {
299
+ readonly toolName: Schema.NonEmptyString;
300
+ readonly execution: Schema.Literals<readonly ["not-executed", "unavailable"]>;
301
+ readonly message: Schema.String;
302
+ }>, {}>;
303
+ /** A retired call's runtime result. Unavailable readonly work may already have been observed. */
304
+ declare class ToolUnavailable extends ToolUnavailable_base {}
305
+ declare const ModelResponseRecorded_base: Schema.Class<ModelResponseRecorded, Schema.Struct<{
306
+ readonly _tag: Schema.tag<"ModelResponseRecorded">;
307
+ readonly toolOperations: Schema.optionalKey<Schema.$Array<typeof ToolOperation>>;
308
+ readonly toolParameterRejections: Schema.optionalKey<Schema.$Array<Schema.Struct<{
309
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
310
+ readonly parameters: Schema.Codec<Schema.Json, Schema.Json, never, never>;
311
+ readonly error: Schema.toEncoded<Schema.Struct<{
312
+ readonly _tag: Schema.tag<"AiError">;
313
+ readonly module: Schema.String;
314
+ readonly method: Schema.String;
315
+ readonly reason: typeof import("effect/unstable/ai/AiError").ToolParameterValidationError;
316
+ }>>;
317
+ }>>>;
318
+ readonly toolExposure: Schema.optionalKey<typeof Snapshot>;
319
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
320
+ readonly turnId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/TurnId">;
321
+ readonly turn: Schema.Int;
322
+ readonly messages: Schema.declare<Schema.Json, Schema.Json>;
323
+ readonly messagesDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
324
+ readonly runScopedPrefixLength: Schema.optionalKey<Schema.Int>;
325
+ readonly modelUsage: Schema.optionalKey<Schema.$Array<typeof ModelCallUsage>>;
326
+ readonly unobservedModelCalls: Schema.optionalKey<Schema.Natural>;
327
+ readonly inputTokens: Schema.optionalKey<Schema.Natural>;
328
+ readonly outputTokens: Schema.optionalKey<Schema.Natural>;
329
+ readonly costMicrousd: Schema.optionalKey<Schema.Natural>;
330
+ }>, {}>;
331
+ declare class ModelResponseRecorded extends ModelResponseRecorded_base {}
332
+ declare const ToolCallPrepared_base: Schema.Class<ToolCallPrepared, Schema.TaggedStruct<"ToolCallPrepared", {
333
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
334
+ readonly turnId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/TurnId">;
335
+ readonly turn: Schema.Int;
336
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
337
+ readonly toolName: Schema.NonEmptyString;
338
+ readonly parameters: Schema.declare<Schema.Json, Schema.Json>;
339
+ readonly parametersDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
340
+ /** Absent legacy evidence grants no delegation replay authority. */
341
+ readonly executionKind: Schema.optionalKey<Schema.Literals<readonly ["ordinary", "delegation", "orchestration"]>>;
342
+ readonly executionClass: Schema.optionalKey<Schema.Literals<readonly ["readonly", "idempotent", "uncertain"]>>;
343
+ readonly replay: Schema.optionalKey<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
344
+ }>, {}>;
345
+ /**
346
+ * One approved uncertain/idempotent ordinary Tool Call made durable BEFORE any handler starts
347
+ * (durability §10). `parameters` is the Schema-encoded wire form of the declared call and
348
+ * `parametersDigest` pins it; recovery that sees this record without a matching `ToolCallSettled`
349
+ * (or `ToolCallUnknown` → `ToolCallResolved`) must reconcile or mark unknown, never silently
350
+ * replay (DUR-009). Ordinary `readonly`-class Tools never produce this record. Delegation
351
+ * classification is always prepared, including for a Tool annotated `readonly`.
352
+ */
353
+ declare class ToolCallPrepared extends ToolCallPrepared_base {}
354
+ declare const RunPolicyUsageReserved_base: Schema.Class<RunPolicyUsageReserved, Schema.TaggedStruct<"RunPolicyUsageReserved", {
355
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
356
+ readonly programmaticToolCalls: Schema.Natural;
357
+ readonly finalizationUsed: Schema.Boolean;
358
+ }>, {}>;
359
+ /** Monotonic reservations charged before programmatic execution or grace finalization. */
360
+ declare class RunPolicyUsageReserved extends RunPolicyUsageReserved_base {}
361
+ declare const ToolCallUnknown_base: Schema.Class<ToolCallUnknown, Schema.TaggedStruct<"ToolCallUnknown", {
362
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
363
+ readonly turn: Schema.Int;
364
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
365
+ readonly toolName: Schema.NonEmptyString;
366
+ readonly reason: Schema.String;
367
+ }>, {}>;
368
+ /**
369
+ * A durable Unknown Outcome: the external effect of one prepared ordinary Tool Call may have
370
+ * happened but was not confirmed canonically (DUR-009/DUR-017). It is neither success nor
371
+ * ordinary failure; automatic continuation stops until an authorized resolution arrives.
372
+ */
373
+ declare class ToolCallUnknown extends ToolCallUnknown_base {}
374
+ /** How one open/unknown Tool Call was authoritatively closed (DUR-017 resolution audit). */
375
+ declare const ToolCallResolution: Schema.Literals<readonly ["completed-with-result", "failed-with-error", "never-started", "safe-retry"]>;
376
+ type ToolCallResolution = typeof ToolCallResolution.Type;
377
+ declare const ToolCallResolved_base: Schema.Class<ToolCallResolved, Schema.TaggedStruct<"ToolCallResolved", {
378
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
379
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
380
+ readonly resolution: Schema.Literals<readonly ["completed-with-result", "failed-with-error", "never-started", "safe-retry"]>;
381
+ readonly author: Schema.NonEmptyString;
382
+ readonly reason: Schema.String;
383
+ }>, {}>;
384
+ /**
385
+ * The canonical audit record closing one open or unknown Tool Call: reconciler-recovered supplier
386
+ * truth or an authorized `resolveUnknown` command. `author`/`reason` make every resolution an
387
+ * attributable decision (DUR-017); a `completed-with-result` resolution is accompanied by the
388
+ * per-call `ToolCallSettled` record carrying the recovered result.
389
+ */
390
+ declare class ToolCallResolved extends ToolCallResolved_base {}
391
+ declare const ToolStepSettled_base: Schema.Class<ToolStepSettled, Schema.TaggedStruct<"ToolStepSettled", {
392
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
393
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
394
+ readonly stepName: Schema.NonEmptyString;
395
+ readonly output: Schema.declare<Schema.Json, Schema.Json>;
396
+ readonly outputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
397
+ }>, {}>;
398
+ /**
399
+ * One accepted Durable Step result (durability §11): exactly-once-recorded while the Step's
400
+ * external side effect stays honestly at-least-once-executed. Only success is recorded — a failing
401
+ * Step body fails into the handler's error channel and re-executes on re-entry. `output` is the
402
+ * Schema-encoded Step output; `outputDigest` pins it for replay-divergence detection.
403
+ */
404
+ declare class ToolStepSettled extends ToolStepSettled_base {}
405
+ declare const ToolApprovalRequested_base: Schema.Class<ToolApprovalRequested, Schema.TaggedStruct<"ToolApprovalRequested", {
406
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
407
+ readonly turnId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/TurnId">;
408
+ readonly turn: Schema.Int;
409
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
410
+ readonly toolName: Schema.NonEmptyString;
411
+ readonly parametersDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
412
+ }>, {}>;
413
+ /**
414
+ * A canonical approval request for one declared Tool Call (CAP-006, durability §8): with this
415
+ * record durable, "waiting for explicit approval" is a safe suspension boundary — the resumed
416
+ * Attempt replays the declared batch instead of re-invoking the model.
417
+ */
418
+ declare class ToolApprovalRequested extends ToolApprovalRequested_base {}
419
+ /** The two-valued approval decision family shared by canonical records and ledger intents. */
420
+ declare const ApprovalDecision: Schema.Literals<readonly ["approved", "denied"]>;
421
+ type ApprovalDecision = typeof ApprovalDecision.Type;
422
+ declare const ToolApprovalDecided_base: Schema.Class<ToolApprovalDecided, Schema.TaggedStruct<"ToolApprovalDecided", {
423
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
424
+ readonly turn: Schema.Int;
425
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
426
+ readonly decision: Schema.Literals<readonly ["approved", "denied"]>;
427
+ readonly resolver: Schema.NonEmptyString;
428
+ readonly reason: Schema.String;
429
+ }>, {}>;
430
+ /**
431
+ * The canonical decision for one requested approval. Appended by the deciding Attempt (policy
432
+ * auto-decisions) or by the resuming Attempt after a durable `resolveApproval` intent; it is the
433
+ * deterministic decision authority for every later Attempt of the same Run.
434
+ */
435
+ declare class ToolApprovalDecided extends ToolApprovalDecided_base {}
436
+ declare const ModelResponseInterrupted_base: Schema.Class<ModelResponseInterrupted, Schema.TaggedStruct<"ModelResponseInterrupted", {
437
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
438
+ readonly supersededEpoch: Schema.brand<Schema.Natural, "@effect-agent/thread/ProducerEpoch">;
439
+ readonly attemptId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AttemptId">;
440
+ readonly reason: Schema.String;
441
+ }>, {}>;
442
+ /**
443
+ * First-class interruption audit (durability §9): appended by a superseding Attempt before it
444
+ * re-invokes the model for a Turn whose prior owner died without a complete canonical response.
445
+ * Duplicate provider cost is thereby possible AND observable in canonical history.
446
+ */
447
+ declare class ModelResponseInterrupted extends ModelResponseInterrupted_base {}
448
+ declare const CompactionCreated_base: Schema.Class<CompactionCreated, Schema.TaggedStruct<"CompactionCreated", {
449
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
450
+ readonly turn: Schema.Int;
451
+ readonly kind: Schema.Literals<readonly ["clear-tool-results", "summarize", "rollover"]>;
452
+ readonly coversThrough: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
453
+ readonly summary: Schema.optionalKey<Schema.String>;
454
+ readonly handoff: Schema.optionalKey<Schema.NonEmptyString>;
455
+ }>, {}>;
456
+ /**
457
+ * One engine-native compaction committed before the pre-Turn view changes (RUN-026).
458
+ * `coversThrough` is a Thread record sequence: the projection
459
+ * renders records at or below it as a summary (`summarize`), a fresh window (`rollover`), or with
460
+ * cleared tool results (kind `clear-tool-results`), never erasing source
461
+ * history. The record carries no digest by decision: it is appended by the
462
+ * fenced owner into the very log it covers, and re-verifying a digest would
463
+ * re-read the covered range on every wake — the O(history) work compaction
464
+ * exists to remove. Host-supplied ContextCompactor decisions use this same commit path.
465
+ * Summaries exceeding BoundedText are rejected before append, never truncated.
466
+ * `summary` is present exactly for `summarize` records; the projection
467
+ * treats a summarize record without one as invalid and ignores it fail-safe.
468
+ */
469
+ declare class CompactionCreated extends CompactionCreated_base {}
470
+ declare const RunFailed_base: Schema.Class<RunFailed, Schema.TaggedStruct<"RunFailed", {
471
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
472
+ readonly failure: Schema.declare<Schema.Json, Schema.Json>;
473
+ }>, {}>;
474
+ declare class RunFailed extends RunFailed_base {}
475
+ declare const RunCompleted_base: Schema.Class<RunCompleted, Schema.Struct<{
476
+ readonly _tag: Schema.tag<"RunCompleted">;
477
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
478
+ readonly output: Schema.declare<Schema.Json, Schema.Json>;
479
+ readonly resultDigest: Schema.optionalKey<Schema.brand<Schema.String, "@effect-agent/thread/Digest">>;
480
+ readonly runDisposition: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
481
+ readonly finishReason: Schema.optionalKey<Schema.Literal<"budget-exhausted">>;
482
+ readonly exhausted: Schema.optionalKey<Schema.Literals<readonly ["tokens", "tool-calls", "turns"]>>;
483
+ }>, {}>;
484
+ declare class RunCompleted extends RunCompleted_base {}
485
+ declare const RepairAnnotated_base: Schema.Class<RepairAnnotated, Schema.TaggedStruct<"RepairAnnotated", {
486
+ readonly reason: Schema.String;
487
+ readonly details: Schema.declare<Schema.Json, Schema.Json>;
488
+ }>, {}>;
489
+ declare class RepairAnnotated extends RepairAnnotated_base {}
490
+ /** Terminal outcome family for one accepted Submission (DUR-002). */
491
+ declare const SettlementOutcome: Schema.Literals<readonly ["completed", "failed", "aborted"]>;
492
+ type SettlementOutcome = typeof SettlementOutcome.Type;
493
+ declare const AbortRequested_base: Schema.Class<AbortRequested, Schema.TaggedStruct<"AbortRequested", {
494
+ readonly submissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
495
+ readonly author: Schema.NonEmptyString;
496
+ readonly reason: Schema.String;
497
+ }>, {}>;
498
+ /**
499
+ * A durable abort command made canonical before the active worker is interrupted (DUR-012).
500
+ * Repeating the same abort command is idempotent; abort never rewrites a prior terminal outcome.
501
+ */
502
+ declare class AbortRequested extends AbortRequested_base {}
503
+ declare const SubmissionSettled_base: Schema.Class<SubmissionSettled, Schema.Struct<{
504
+ readonly _tag: Schema.tag<"SubmissionSettled">;
505
+ readonly submissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
506
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
507
+ readonly receiptId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ReceiptId">;
508
+ readonly outcome: Schema.Literals<readonly ["completed", "failed", "aborted"]>;
509
+ readonly runId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">>;
510
+ readonly result: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
511
+ readonly runDisposition: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
512
+ readonly finishReason: Schema.optionalKey<Schema.Literal<"budget-exhausted">>;
513
+ readonly exhausted: Schema.optionalKey<Schema.Literals<readonly ["tokens", "tool-calls", "turns"]>>;
514
+ readonly policyLimit: Schema.optionalKey<Schema.Literals<readonly ["turns", "tool-calls", "duration", "usage", "tokens", "cost", "repeated-failures"]>>;
515
+ readonly usageSummary: Schema.optionalKey<typeof RunUsageSummary>;
516
+ readonly uncommittedModelUsage: Schema.optionalKey<Schema.$Array<typeof ModelCallUsage>>;
517
+ }>, {}>;
518
+ declare class SubmissionSettled extends SubmissionSettled_base {}
519
+ /** Canonical completed settlement; joined completion may legitimately carry no independent result. */
520
+ type CompletedSubmissionSettled = SubmissionSettled & {
521
+ readonly outcome: "completed";
522
+ };
523
+ /** Canonical failed settlement; its bounded diagnostic is required and typed. */
524
+ type FailedSubmissionSettled = SubmissionSettled & {
525
+ readonly outcome: "failed";
526
+ readonly result: SettlementFailureDiagnostic;
527
+ };
528
+ /** Canonical aborted settlement; abort records intent rather than fabricating a terminal result. */
529
+ type AbortedSubmissionSettled = SubmissionSettled & {
530
+ readonly outcome: "aborted";
531
+ readonly result?: never;
532
+ };
533
+ type SubmissionSettledRecord = CompletedSubmissionSettled | FailedSubmissionSettled | AbortedSubmissionSettled;
534
+ /**
535
+ * Canonical-boundary view of `SubmissionSettled`: `finishReason` is valid
536
+ * only on a `completed` outcome, `exhausted` only alongside
537
+ * `finishReason: "budget-exhausted"`, every `failed` outcome requires the exact bounded
538
+ * `SettlementFailureDiagnostic`, aborted outcomes carry no result, and `policyLimit` only occurs
539
+ * on a `failed` outcome whose diagnostic carries the `AgentPolicyError` tag. `runDisposition`
540
+ * occurs only on an ordinary completed settlement with a Run —
541
+ * so a malformed persisted combination such as
542
+ * `{ outcome: "failed", finishReason: "budget-exhausted" }` or a
543
+ * `policyLimit` contradicting `result.errorTag` fails closed at decode
544
+ * instead of becoming trusted audit history (STORE-006, RUN-011).
545
+ */
546
+ declare const SubmissionSettledRecord: Schema.refine<SubmissionSettledRecord, typeof SubmissionSettled>;
547
+ declare const SubagentRequested_base: Schema.Class<SubagentRequested, Schema.TaggedStruct<"SubagentRequested", {
548
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
549
+ readonly turnId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/TurnId">;
550
+ readonly turn: Schema.Int;
551
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
552
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
553
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
554
+ readonly targetDigests: typeof DefinitionDigests;
555
+ readonly childInput: Schema.declare<Schema.Json, Schema.Json>;
556
+ readonly childInputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
557
+ readonly grantDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
558
+ readonly reservationId: Schema.NonEmptyString;
559
+ readonly reservationDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
560
+ readonly childThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
561
+ readonly childPrincipal: Schema.NonEmptyString;
562
+ readonly childIdempotencyKey: Schema.NonEmptyString;
563
+ /** Effective invocation bound, already clamped to the delegation and child Definition. */
564
+ readonly toolCallAllowance: Schema.optionalKey<Schema.Int>;
565
+ readonly policy: Schema.optionalKey<Schema.toCodecJson<typeof AgentPolicy>>;
566
+ readonly budget: Schema.optionalKey<Schema.Struct<{
567
+ readonly caps: typeof SubagentDelegationCaps;
568
+ readonly allocation: typeof SubagentReservationAmounts;
569
+ readonly descendantInvocations: Schema.optionalKey<Schema.Natural>;
570
+ }>>;
571
+ readonly grant: Schema.optionalKey<typeof SubagentGrant>;
572
+ readonly depth: Schema.optionalKey<Schema.Int>;
573
+ }>, {}>;
574
+ /**
575
+ * PARENT-log record of one durable child establishment request:
576
+ * the exact parent Tool Call, delegation and target identity, the digests that pin the child's
577
+ * Binding/input/grant, the fenced budget reservation, and the INTENDED child identity derived
578
+ * deterministically from the parent Run and Tool Call pair (D4). `childInput` carries the
579
+ * prepared child input in encoded form (D3) so recovery can complete child admission from this
580
+ * record alone — no live delegation handler is required. `childPrincipal`/`childIdempotencyKey`
581
+ * carry the ledger admission scope with the ledger's exact bounds; the layering keeps their
582
+ * branded Schemas in the ledger port.
583
+ */
584
+ declare class SubagentRequested extends SubagentRequested_base {}
585
+ declare const SubagentStarted_base: Schema.Class<SubagentStarted, Schema.TaggedStruct<"SubagentStarted", {
586
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
587
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
588
+ readonly childThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
589
+ readonly childSubmissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
590
+ readonly childReceiptId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ReceiptId">;
591
+ readonly childRunId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
592
+ }>, {}>;
593
+ /**
594
+ * PARENT-log record that the intended child exists as accepted work:
595
+ * the full established child identity. It is appended only after the child Receipt
596
+ * exists — SUB-017 holds by construction because `childReceiptId` is a required field.
597
+ */
598
+ declare class SubagentStarted extends SubagentStarted_base {}
599
+ declare const SubagentJoined_base: Schema.Class<SubagentJoined, Schema.TaggedStruct<"SubagentJoined", {
600
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
601
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
602
+ readonly childSubmissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
603
+ readonly childSettlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
604
+ readonly childOutcome: Schema.Literals<readonly ["completed", "failed", "aborted"]>;
605
+ readonly childResultDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
606
+ readonly projectedResultDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
607
+ readonly usageSummary: Schema.declare<Schema.Json, Schema.Json>;
608
+ readonly usage: Schema.optionalKey<typeof RunTotals>;
609
+ readonly delegatedUsage: Schema.optionalKey<typeof RunTotals>;
610
+ readonly reservationId: Schema.NonEmptyString;
611
+ readonly finalAccounting: Schema.declare<Schema.Json, Schema.Json>;
612
+ }>, {}>;
613
+ /**
614
+ * PARENT-log record of one verified child settlement join:
615
+ * the child's canonical Settlement identity and outcome, the digests pinning the verified child
616
+ * result and the bounded projected parent result, the child usage summary, and the FINAL
617
+ * consumed/released accounting decision for the reservation. It commits in ONE atomic batch with
618
+ * the parent `ToolCallSettled` record (SUB-019); `beginChildBudgetRelease` replays
619
+ * `finalAccounting` from this record, so canonical history authorizes the release (DUR-015).
620
+ */
621
+ declare class SubagentJoined extends SubagentJoined_base {}
622
+ declare const SubagentLineageRecorded_base: Schema.Class<SubagentLineageRecorded, Schema.TaggedStruct<"SubagentLineageRecorded", {
623
+ readonly parentLink: typeof SubagentParentLink;
624
+ readonly parentSubmissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
625
+ readonly childDefinitionDigests: typeof DefinitionDigests;
626
+ readonly childInputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
627
+ readonly grantDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
628
+ /** Copied from the canonical request before readiness; restored for every child Attempt. */
629
+ readonly toolCallAllowance: Schema.optionalKey<Schema.Int>;
630
+ readonly policy: Schema.optionalKey<Schema.toCodecJson<typeof AgentPolicy>>;
631
+ readonly budget: Schema.optionalKey<Schema.Struct<{
632
+ readonly caps: typeof SubagentDelegationCaps;
633
+ readonly allocation: typeof SubagentReservationAmounts;
634
+ readonly descendantInvocations: Schema.optionalKey<Schema.Natural>;
635
+ }>>;
636
+ readonly grant: Schema.optionalKey<typeof SubagentGrant>;
637
+ }>, {}>;
638
+ /**
639
+ * CHILD-log immutable lineage: the Parent Link plus the digests that pin
640
+ * the child's definition, input, and authority grant. It is the first record after the child's
641
+ * `ThreadCreated` (its own single-record batch, so the generic `thread-created:{cid}`
642
+ * batch identity is never contradicted) and the join path verifies it fail-closed — a fabricated
643
+ * child or parent identity fails Parent Link verification (SUB-004, D10).
644
+ */
645
+ declare class SubagentLineageRecorded extends SubagentLineageRecorded_base {}
646
+ declare const WorkerReportingIntent: Schema.Struct<{
647
+ /** Absent only in historical custom-report origins; these remain readable as evidence. */
648
+ readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
649
+ readonly sourceDigests: typeof DefinitionDigests;
650
+ /** Historical custom destination evidence. New worker origins never write this field. */
651
+ readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
652
+ /** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
653
+ readonly returnAddress: Schema.optionalKey<Schema.Struct<{
654
+ readonly input: Schema.declare<Schema.Json, Schema.Json>;
655
+ readonly principal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
656
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
657
+ readonly depth: Schema.Natural;
658
+ readonly grant: Schema.optionalKey<typeof SubagentGrant>;
659
+ /** Encoded to bound recursive worker origins at the admission boundary. */
660
+ readonly workerAdmission: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
661
+ }>>;
662
+ }>;
663
+ /** Exact successful predecessor evidence; a locator alone grants no authority. */
664
+ declare const WorkerContinuation: Schema.Struct<{
665
+ readonly worker: Schema.Struct<{
666
+ readonly schemaVersion: Schema.Literal<1>;
667
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
668
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
669
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
670
+ }>;
671
+ readonly receipt: typeof Receipt;
672
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
673
+ }>;
674
+ type WorkerContinuation = typeof WorkerContinuation.Type;
675
+ /** Immutable worker Thread origin. Each input has its own digest and parameters separately. */
676
+ declare const WorkerOrigin: Schema.Struct<{
677
+ readonly worker: Schema.Struct<{
678
+ readonly schemaVersion: Schema.Literal<1>;
679
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
680
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
681
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
682
+ }>;
683
+ readonly source: Schema.Union<readonly [Schema.Struct<{
684
+ readonly _tag: Schema.Literal<"tool">;
685
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
686
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
687
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
688
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
689
+ }>, Schema.Struct<{
690
+ readonly _tag: Schema.Literal<"programmatic">;
691
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
692
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
693
+ }>]>;
694
+ /** A new assignment may continue this completed, immutable predecessor. */
695
+ readonly continuationOf: Schema.optionalKey<Schema.Struct<{
696
+ readonly worker: Schema.Struct<{
697
+ readonly schemaVersion: Schema.Literal<1>;
698
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
699
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
700
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
701
+ }>;
702
+ readonly receipt: typeof Receipt;
703
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
704
+ }>>;
705
+ /** Omitted retains source-subtree funding; worker-run renews only for a new native Run. */
706
+ readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
707
+ /** Frozen at worker creation; older origins remain reusable. */
708
+ readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
709
+ readonly targetDigests: typeof DefinitionDigests;
710
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
711
+ readonly budget: Schema.Struct<{
712
+ readonly caps: typeof SubagentDelegationCaps;
713
+ readonly allocation: typeof SubagentReservationAmounts;
714
+ readonly descendantInvocations: Schema.optionalKey<Schema.Natural>;
715
+ }>;
716
+ readonly grant: typeof SubagentGrant;
717
+ readonly depth: Schema.Int;
718
+ readonly toolCallAllowance: Schema.optionalKey<Schema.Int>;
719
+ readonly firstMessageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
720
+ readonly createdAtMillis: Schema.Natural;
721
+ readonly expiresAtMillis: Schema.Natural;
722
+ /** Exact source registration owns projection; absence means reporting was not declared. */
723
+ readonly reporting: Schema.optionalKey<Schema.Struct<{
724
+ /** Absent only in historical custom-report origins; these remain readable as evidence. */
725
+ readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
726
+ readonly sourceDigests: typeof DefinitionDigests;
727
+ /** Historical custom destination evidence. New worker origins never write this field. */
728
+ readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
729
+ /** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
730
+ readonly returnAddress: Schema.optionalKey<Schema.Struct<{
731
+ readonly input: Schema.declare<Schema.Json, Schema.Json>;
732
+ readonly principal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
733
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
734
+ readonly depth: Schema.Natural;
735
+ readonly grant: Schema.optionalKey<typeof SubagentGrant>;
736
+ /** Encoded to bound recursive worker origins at the admission boundary. */
737
+ readonly workerAdmission: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
738
+ }>>;
739
+ }>>;
740
+ }>;
741
+ type WorkerOrigin = typeof WorkerOrigin.Type;
742
+ /** Frozen per-input metadata; it grants no attached-child or parent-abort semantics. */
743
+ declare const WorkerAdmission: Schema.Struct<{
744
+ readonly origin: Schema.Struct<{
745
+ readonly worker: Schema.Struct<{
746
+ readonly schemaVersion: Schema.Literal<1>;
747
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
748
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
749
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
750
+ }>;
751
+ readonly source: Schema.Union<readonly [Schema.Struct<{
752
+ readonly _tag: Schema.Literal<"tool">;
753
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
754
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
755
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
756
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
757
+ }>, Schema.Struct<{
758
+ readonly _tag: Schema.Literal<"programmatic">;
759
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
760
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
761
+ }>]>;
762
+ /** A new assignment may continue this completed, immutable predecessor. */
763
+ readonly continuationOf: Schema.optionalKey<Schema.Struct<{
764
+ readonly worker: Schema.Struct<{
765
+ readonly schemaVersion: Schema.Literal<1>;
766
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
767
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
768
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
769
+ }>;
770
+ readonly receipt: typeof Receipt;
771
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
772
+ }>>;
773
+ /** Omitted retains source-subtree funding; worker-run renews only for a new native Run. */
774
+ readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
775
+ /** Frozen at worker creation; older origins remain reusable. */
776
+ readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
777
+ readonly targetDigests: typeof DefinitionDigests;
778
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
779
+ readonly budget: Schema.Struct<{
780
+ readonly caps: typeof SubagentDelegationCaps;
781
+ readonly allocation: typeof SubagentReservationAmounts;
782
+ readonly descendantInvocations: Schema.optionalKey<Schema.Natural>;
783
+ }>;
784
+ readonly grant: typeof SubagentGrant;
785
+ readonly depth: Schema.Int;
786
+ readonly toolCallAllowance: Schema.optionalKey<Schema.Int>;
787
+ readonly firstMessageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
788
+ readonly createdAtMillis: Schema.Natural;
789
+ readonly expiresAtMillis: Schema.Natural;
790
+ /** Exact source registration owns projection; absence means reporting was not declared. */
791
+ readonly reporting: Schema.optionalKey<Schema.Struct<{
792
+ /** Absent only in historical custom-report origins; these remain readable as evidence. */
793
+ readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
794
+ readonly sourceDigests: typeof DefinitionDigests;
795
+ /** Historical custom destination evidence. New worker origins never write this field. */
796
+ readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
797
+ /** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
798
+ readonly returnAddress: Schema.optionalKey<Schema.Struct<{
799
+ readonly input: Schema.declare<Schema.Json, Schema.Json>;
800
+ readonly principal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
801
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
802
+ readonly depth: Schema.Natural;
803
+ readonly grant: Schema.optionalKey<typeof SubagentGrant>;
804
+ /** Encoded to bound recursive worker origins at the admission boundary. */
805
+ readonly workerAdmission: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
806
+ }>>;
807
+ }>>;
808
+ }>;
809
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
810
+ readonly parameters: Schema.declare<Schema.Json, Schema.Json>;
811
+ readonly createdAtMillis: Schema.Natural;
812
+ /** Host-bound source input whose subtree funds this input; never chosen by a model. */
813
+ readonly sourceSubmissionId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">>;
814
+ /** Enables routed receipt lookup when the delivery is owned by a reporting child. */
815
+ readonly deliveryPrincipal: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">>;
816
+ /** Proven framework updates use a separate bounded input-capacity partition. */
817
+ readonly reportKind: Schema.optionalKey<Schema.Literal<"update">>;
818
+ }>;
819
+ type WorkerAdmission = typeof WorkerAdmission.Type;
820
+ declare const WorkerStopRequested_base: Schema.Class<WorkerStopRequested, Schema.TaggedStruct<"WorkerStopRequested", {
821
+ readonly command: Schema.Struct<{
822
+ readonly worker: Schema.Struct<{
823
+ readonly schemaVersion: Schema.Literal<1>;
824
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
825
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
826
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
827
+ }>;
828
+ readonly idempotencyKey: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
829
+ }>;
830
+ }>, {}>;
831
+ /** Owner command retained before the destination inbox is sealed. */
832
+ declare class WorkerStopRequested extends WorkerStopRequested_base {}
833
+ declare const WorkerInputRequested_base: Schema.Class<WorkerInputRequested, Schema.TaggedStruct<"WorkerInputRequested", {
834
+ readonly admission: Schema.Struct<{
835
+ readonly origin: Schema.Struct<{
836
+ readonly worker: Schema.Struct<{
837
+ readonly schemaVersion: Schema.Literal<1>;
838
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
839
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
840
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
841
+ }>;
842
+ readonly source: Schema.Union<readonly [Schema.Struct<{
843
+ readonly _tag: Schema.Literal<"tool">;
844
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
845
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
846
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
847
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
848
+ }>, Schema.Struct<{
849
+ readonly _tag: Schema.Literal<"programmatic">;
850
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
851
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
852
+ }>]>;
853
+ /** A new assignment may continue this completed, immutable predecessor. */
854
+ readonly continuationOf: Schema.optionalKey<Schema.Struct<{
855
+ readonly worker: Schema.Struct<{
856
+ readonly schemaVersion: Schema.Literal<1>;
857
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
858
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
859
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
860
+ }>;
861
+ readonly receipt: typeof Receipt;
862
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
863
+ }>>;
864
+ /** Omitted retains source-subtree funding; worker-run renews only for a new native Run. */
865
+ readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
866
+ /** Frozen at worker creation; older origins remain reusable. */
867
+ readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
868
+ readonly targetDigests: typeof DefinitionDigests;
869
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
870
+ readonly budget: Schema.Struct<{
871
+ readonly caps: typeof SubagentDelegationCaps;
872
+ readonly allocation: typeof SubagentReservationAmounts;
873
+ readonly descendantInvocations: Schema.optionalKey<Schema.Natural>;
874
+ }>;
875
+ readonly grant: typeof SubagentGrant;
876
+ readonly depth: Schema.Int;
877
+ readonly toolCallAllowance: Schema.optionalKey<Schema.Int>;
878
+ readonly firstMessageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
879
+ readonly createdAtMillis: Schema.Natural;
880
+ readonly expiresAtMillis: Schema.Natural;
881
+ /** Exact source registration owns projection; absence means reporting was not declared. */
882
+ readonly reporting: Schema.optionalKey<Schema.Struct<{
883
+ /** Absent only in historical custom-report origins; these remain readable as evidence. */
884
+ readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
885
+ readonly sourceDigests: typeof DefinitionDigests;
886
+ /** Historical custom destination evidence. New worker origins never write this field. */
887
+ readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
888
+ /** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
889
+ readonly returnAddress: Schema.optionalKey<Schema.Struct<{
890
+ readonly input: Schema.declare<Schema.Json, Schema.Json>;
891
+ readonly principal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
892
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
893
+ readonly depth: Schema.Natural;
894
+ readonly grant: Schema.optionalKey<typeof SubagentGrant>;
895
+ /** Encoded to bound recursive worker origins at the admission boundary. */
896
+ readonly workerAdmission: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
897
+ }>>;
898
+ }>>;
899
+ }>;
900
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
901
+ readonly parameters: Schema.declare<Schema.Json, Schema.Json>;
902
+ readonly createdAtMillis: Schema.Natural;
903
+ /** Host-bound source input whose subtree funds this input; never chosen by a model. */
904
+ readonly sourceSubmissionId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">>;
905
+ /** Enables routed receipt lookup when the delivery is owned by a reporting child. */
906
+ readonly deliveryPrincipal: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">>;
907
+ /** Proven framework updates use a separate bounded input-capacity partition. */
908
+ readonly reportKind: Schema.optionalKey<Schema.Literal<"update">>;
909
+ }>;
910
+ readonly inputDigest: Schema.brand<Schema.String, "@effect-agent/thread/Digest">;
911
+ }>, {}>;
912
+ /** Source-log capacity reservation, retained independently of the source Run's settlement. */
913
+ declare class WorkerInputRequested extends WorkerInputRequested_base {}
914
+ declare const WorkerOriginRecorded_base: Schema.Class<WorkerOriginRecorded, Schema.TaggedStruct<"WorkerOriginRecorded", {
915
+ readonly origin: Schema.Struct<{
916
+ readonly worker: Schema.Struct<{
917
+ readonly schemaVersion: Schema.Literal<1>;
918
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
919
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
920
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
921
+ }>;
922
+ readonly source: Schema.Union<readonly [Schema.Struct<{
923
+ readonly _tag: Schema.Literal<"tool">;
924
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
925
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
926
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
927
+ readonly toolCallId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ToolCallId">;
928
+ }>, Schema.Struct<{
929
+ readonly _tag: Schema.Literal<"programmatic">;
930
+ readonly agentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
931
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
932
+ }>]>;
933
+ /** A new assignment may continue this completed, immutable predecessor. */
934
+ readonly continuationOf: Schema.optionalKey<Schema.Struct<{
935
+ readonly worker: Schema.Struct<{
936
+ readonly schemaVersion: Schema.Literal<1>;
937
+ readonly delegationId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">;
938
+ readonly targetAgentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/AgentId">;
939
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
940
+ }>;
941
+ readonly receipt: typeof Receipt;
942
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
943
+ }>>;
944
+ /** Omitted retains source-subtree funding; worker-run renews only for a new native Run. */
945
+ readonly budgetScope: Schema.optionalKey<Schema.Literals<readonly ["source-subtree", "worker-run"]>>;
946
+ /** Frozen at worker creation; older origins remain reusable. */
947
+ readonly lifecycle: Schema.optionalKey<Schema.Literal<"assignment">>;
948
+ readonly targetDigests: typeof DefinitionDigests;
949
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
950
+ readonly budget: Schema.Struct<{
951
+ readonly caps: typeof SubagentDelegationCaps;
952
+ readonly allocation: typeof SubagentReservationAmounts;
953
+ readonly descendantInvocations: Schema.optionalKey<Schema.Natural>;
954
+ }>;
955
+ readonly grant: typeof SubagentGrant;
956
+ readonly depth: Schema.Int;
957
+ readonly toolCallAllowance: Schema.optionalKey<Schema.Int>;
958
+ readonly firstMessageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
959
+ readonly createdAtMillis: Schema.Natural;
960
+ readonly expiresAtMillis: Schema.Natural;
961
+ /** Exact source registration owns projection; absence means reporting was not declared. */
962
+ readonly reporting: Schema.optionalKey<Schema.Struct<{
963
+ /** Absent only in historical custom-report origins; these remain readable as evidence. */
964
+ readonly mode: Schema.optionalKey<Schema.Literal<"standard">>;
965
+ readonly sourceDigests: typeof DefinitionDigests;
966
+ /** Historical custom destination evidence. New worker origins never write this field. */
967
+ readonly destinationDelegationId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/DelegationId">>;
968
+ /** Frozen by the sender before acceptance. Standard emission never reads the source runtime. */
969
+ readonly returnAddress: Schema.optionalKey<Schema.Struct<{
970
+ readonly input: Schema.declare<Schema.Json, Schema.Json>;
971
+ readonly principal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
972
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
973
+ readonly depth: Schema.Natural;
974
+ readonly grant: Schema.optionalKey<typeof SubagentGrant>;
975
+ /** Encoded to bound recursive worker origins at the admission boundary. */
976
+ readonly workerAdmission: Schema.optionalKey<Schema.declare<Schema.Json, Schema.Json>>;
977
+ }>>;
978
+ }>>;
979
+ }>;
980
+ }>, {}>;
981
+ /** Child-log origin, reconstructed from a retained delivery before the child becomes ready. */
982
+ declare class WorkerOriginRecorded extends WorkerOriginRecorded_base {}
983
+ declare const WorkerInputCompleted_base: Schema.Class<WorkerInputCompleted, Schema.TaggedStruct<"WorkerInputCompleted", {
984
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
985
+ readonly workerThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
986
+ readonly submissionId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">;
987
+ readonly receiptId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ReceiptId">;
988
+ readonly settlementId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SettlementId">;
989
+ readonly completedAtMillis: Schema.Natural;
990
+ /** New acknowledgements prove that this input's external effects are resolved. */
991
+ readonly effectsResolved: Schema.optionalKey<Schema.Literal<true>>;
992
+ }>, {}>;
993
+ /** Canonical child completion acknowledgement releases only this input's active capacity. */
994
+ declare class WorkerInputCompleted extends WorkerInputCompleted_base {}
995
+ declare const WorkerReportPrepared_base: Schema.Class<WorkerReportPrepared, Schema.TaggedStruct<"WorkerReportPrepared", {
996
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
997
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
998
+ readonly envelope: Schema.declare<Schema.Json, Schema.Json>;
999
+ readonly createdAtMillis: Schema.Natural;
1000
+ readonly deadlineAtMillis: Schema.Natural;
1001
+ readonly predecessor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">>;
1002
+ }>, {}>;
1003
+ /**
1004
+ * Frozen report decision for one actual Run, shared by every joined Receipt. The envelope is
1005
+ * a Schema-encoded PreparedInput, validated before append and decoded again on recovery.
1006
+ * Keeping the encoded value here avoids a Records/PreparedInput schema dependency cycle.
1007
+ */
1008
+ declare class WorkerReportPrepared extends WorkerReportPrepared_base {}
1009
+ declare const AgentUpdateEmitted_base: Schema.Class<AgentUpdateEmitted, Schema.TaggedStruct<"AgentUpdateEmitted", {
1010
+ readonly update: typeof Update;
1011
+ readonly definitions: typeof DefinitionDigests;
1012
+ readonly delivery: Schema.optionalKey<Schema.Struct<{
1013
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
1014
+ readonly envelope: Schema.declare<Schema.Json, Schema.Json>;
1015
+ readonly createdAtMillis: Schema.Natural;
1016
+ readonly deadlineAtMillis: Schema.Natural;
1017
+ readonly predecessor: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">>;
1018
+ }>>;
1019
+ }>, {}>;
1020
+ /** Accepted update and its optional frozen parent delivery are one atomic canonical fact. */
1021
+ declare class AgentUpdateEmitted extends AgentUpdateEmitted_base {}
1022
+ declare const WorkerReportRefused_base: Schema.Class<WorkerReportRefused, Schema.TaggedStruct<"WorkerReportRefused", {
1023
+ readonly runId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/RunId">;
1024
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
1025
+ readonly reason: Schema.Literals<readonly ["filtered", "declaration-unavailable", "destination", "projection", "input", "preparation", "timeout", "defect", "expired", "denied", "capacity"]>;
1026
+ }>, {}>;
1027
+ /** Permanent bounded report refusal. Application errors and raw Run dispositions stay private. */
1028
+ declare class WorkerReportRefused extends WorkerReportRefused_base {}
1029
+ declare const PeerMessagePrepared_base: Schema.Class<PeerMessagePrepared, Schema.TaggedStruct<"PeerMessagePrepared", {
1030
+ readonly messageId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/IdempotencyKey">;
1031
+ readonly sourcePrincipal: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/Principal">;
1032
+ readonly operation: Schema.Literals<readonly ["send", "reply"]>;
1033
+ readonly deadlineAtMillis: Schema.Int;
1034
+ readonly encodedEnvelope: Schema.declare<Schema.Json, Schema.Json>;
1035
+ }>, {}>;
1036
+ /** Frozen source proof of peer provenance, readable through routed canonical storage. */
1037
+ declare class PeerMessagePrepared extends PeerMessagePrepared_base {}
1038
+ declare const SubtreeBudgetReserved_base: Schema.Class<SubtreeBudgetReserved, Schema.TaggedStruct<"SubtreeBudgetReserved", {
1039
+ readonly reservationId: Schema.NonEmptyString;
1040
+ readonly sourceSubmissionId: Schema.optionalKey<Schema.brand<Schema.NonEmptyString, "@effect-agent/core/SubmissionId">>;
1041
+ readonly childThreadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
1042
+ readonly lifetime: Schema.Literals<readonly ["attached", "background"]>;
1043
+ readonly depth: Schema.Int;
1044
+ readonly policy: Schema.toCodecJson<typeof AgentPolicy>;
1045
+ readonly grant: typeof SubagentGrant;
1046
+ readonly budget: Schema.Struct<{
1047
+ readonly caps: typeof SubagentDelegationCaps;
1048
+ readonly allocation: typeof SubagentReservationAmounts;
1049
+ readonly descendantInvocations: Schema.optionalKey<Schema.Natural>;
1050
+ }>;
1051
+ }>, {}>;
1052
+ /**
1053
+ * One disjoint subtree slice shared by attached and background children of a source input.
1054
+ * The source keeps its own execution ceiling; descendants spend only the remaining allocation.
1055
+ * Reservations include future descendant slots and never refund, including after interruption.
1056
+ * resultBytes reserves the terminal/projection result, not cumulative Tool output bytes.
1057
+ */
1058
+ declare class SubtreeBudgetReserved extends SubtreeBudgetReserved_base {}
1059
+ /**
1060
+ * Current private-development canonical payload family. Phase 5 adds the seven durable-Tool tags
1061
+ * (prepared/unknown/resolved/step/approval-request/approval-decision/interrupted) additively; S2
1062
+ * adds the four durable-Subagent tags (requested/started/joined/lineage) additively, so the
1063
+ * envelope keeps `schemaVersion: 1` (P4 precedent for additive payload tags).
1064
+ */
1065
+ declare const CanonicalRecordPayload: Schema.Union<readonly [typeof ThreadCreated, typeof UserInputRecorded, typeof RunStartedRecord, typeof RunDurationExhausted, typeof RunPolicyUsageReserved, typeof ModelCompleted, typeof ModelResponseRecorded, typeof ToolCallPrepared, typeof ToolCallSettled, typeof ToolCallUnknown, typeof ToolCallResolved, typeof ToolStepSettled, typeof ToolApprovalRequested, typeof ToolApprovalDecided, typeof ModelResponseInterrupted, typeof CompactionCreated, typeof RunFailed, typeof RunCompleted, typeof AbortRequested, Schema.refine<SubmissionSettledRecord, typeof SubmissionSettled>, typeof SubagentRequested, typeof SubagentStarted, typeof SubagentJoined, typeof SubagentLineageRecorded, typeof WorkerInputRequested, typeof WorkerStopRequested, typeof WorkerOriginRecorded, typeof WorkerInputCompleted, typeof WorkerReportPrepared, typeof AgentUpdateEmitted, typeof WorkerReportRefused, typeof PeerMessagePrepared, typeof SubtreeBudgetReserved, typeof RepairAnnotated]>;
1066
+ type CanonicalRecordPayload = typeof CanonicalRecordPayload.Type;
1067
+ declare const RecordEnvelope_base: Schema.Class<RecordEnvelope, Schema.Struct<{
1068
+ readonly recordId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/RecordId">;
1069
+ readonly family: Schema.Literal<"thread">;
1070
+ readonly schemaVersion: Schema.Literal<1>;
1071
+ readonly createdAt: Schema.DateTimeUtcFromString;
1072
+ readonly deploymentId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/DeploymentId">;
1073
+ readonly payload: Schema.Union<readonly [typeof ThreadCreated, typeof UserInputRecorded, typeof RunStartedRecord, typeof RunDurationExhausted, typeof RunPolicyUsageReserved, typeof ModelCompleted, typeof ModelResponseRecorded, typeof ToolCallPrepared, typeof ToolCallSettled, typeof ToolCallUnknown, typeof ToolCallResolved, typeof ToolStepSettled, typeof ToolApprovalRequested, typeof ToolApprovalDecided, typeof ModelResponseInterrupted, typeof CompactionCreated, typeof RunFailed, typeof RunCompleted, typeof AbortRequested, Schema.refine<SubmissionSettledRecord, typeof SubmissionSettled>, typeof SubagentRequested, typeof SubagentStarted, typeof SubagentJoined, typeof SubagentLineageRecorded, typeof WorkerInputRequested, typeof WorkerStopRequested, typeof WorkerOriginRecorded, typeof WorkerInputCompleted, typeof WorkerReportPrepared, typeof AgentUpdateEmitted, typeof WorkerReportRefused, typeof PeerMessagePrepared, typeof SubtreeBudgetReserved, typeof RepairAnnotated]>;
1074
+ }>, {}>;
1075
+ /**
1076
+ * Versioned record envelope stored in an atomic batch. Thread ordering is assigned only
1077
+ * when the batch is committed.
1078
+ */
1079
+ declare class RecordEnvelope extends RecordEnvelope_base {}
1080
+ /** Backward-compatible domain name for a canonical record. */
1081
+ declare const CanonicalRecord: typeof RecordEnvelope;
1082
+ type CanonicalRecord = RecordEnvelope;
1083
+ declare const CanonicalBatch_base: Schema.Class<CanonicalBatch, Schema.Struct<{
1084
+ readonly batchId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/BatchId">;
1085
+ readonly producerId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ProducerId">;
1086
+ readonly records: Schema.NonEmptyArray<typeof RecordEnvelope>;
1087
+ }>, {}>;
1088
+ /** One non-empty, bounded, idempotent atomic append unit. */
1089
+ declare class CanonicalBatch extends CanonicalBatch_base {}
1090
+ declare const CanonicalRecordEnvelope_base: Schema.Class<CanonicalRecordEnvelope, Schema.Struct<{
1091
+ readonly threadId: Schema.brand<Schema.NonEmptyString, "@effect-agent/core/ThreadId">;
1092
+ readonly batchId: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/BatchId">;
1093
+ readonly sequence: Schema.brand<Schema.Natural, "@effect-agent/thread/CanonicalSequence">;
1094
+ readonly offset: Schema.brand<Schema.NonEmptyString, "@effect-agent/thread/ObservationOffset">;
1095
+ readonly record: typeof RecordEnvelope;
1096
+ }>, {}>;
1097
+ /**
1098
+ * A committed record with its Thread ordering and opaque resumable observation cursor.
1099
+ */
1100
+ declare class CanonicalRecordEnvelope extends CanonicalRecordEnvelope_base {}
1101
+ declare const CURRENT_CANONICAL_SCHEMA_VERSION: 1;
1102
+ //#endregion
1103
+ export { ToolCallPrepared as $, ProducerId as A, RunStartedRecord as B, ModelCompleted as C, PeerMessagePrepared as D, ObservationOffset as E, ReplayContract as F, SubagentRequested as G, SettlementOutcome as H, RunCompleted as I, SubmissionSettledRecord as J, SubagentStarted as K, RunDurationExhausted as L, RecordId as M, Records_d_exports as N, PersistedJson as O, RepairAnnotated as P, ToolApprovalRequested as Q, RunFailed as R, MAX_PERSISTED_JSON_NODES as S, ModelResponseRecorded as T, SubagentJoined as U, SettlementFailureDiagnostic as V, SubagentLineageRecorded as W, ThreadCreated as X, SubtreeBudgetReserved as Y, ToolApprovalDecided as Z, Digest as _, WorkerStopRequested as _t, BatchId as a, ToolStepSettled as at, MAX_PERSISTED_JSON_COLLECTION_LENGTH as b, CanonicalRecord as c, WorkerAdmission as ct, CanonicalSequence as d, WorkerInputRequested as dt, ToolCallResolution as et, CompactionCreated as f, WorkerOrigin as ft, DeploymentId as g, WorkerReportingIntent as gt, DefinitionDigests as h, WorkerReportRefused as ht, ApprovalDecision as i, ToolOperation as it, RecordEnvelope as j, ProducerEpoch as k, CanonicalRecordEnvelope as l, WorkerContinuation as lt, DefinitionDigestInput as m, WorkerReportPrepared as mt, AbortedSubmissionSettled as n, ToolCallSettled as nt, CURRENT_CANONICAL_SCHEMA_VERSION as o, ToolUnavailable as ot, CompletedSubmissionSettled as p, WorkerOriginRecorded as pt, SubmissionSettled as q, AgentUpdateEmitted as r, ToolCallUnknown as rt, CanonicalBatch as s, UserInputRecorded as st, AbortRequested as t, ToolCallResolved as tt, CanonicalRecordPayload as u, WorkerInputCompleted as ut, FailedSubmissionSettled as v, ModelResponseInterrupted as w, MAX_PERSISTED_JSON_DEPTH as x, MAX_PERSISTED_JSON_BYTES as y, RunPolicyUsageReserved as z };
1104
+ //# sourceMappingURL=Records-B5GFWCpn.d.mts.map