@shivaedev/work-fleet 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (311) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -2
  3. package/dist/admit.d.ts +54 -0
  4. package/dist/admit.d.ts.map +1 -1
  5. package/dist/engine/abandonStalled.d.ts +9807 -0
  6. package/dist/engine/abandonStalled.d.ts.map +1 -0
  7. package/dist/engine/abandonStalled.js +55 -0
  8. package/dist/engine/abandonStalled.js.map +1 -0
  9. package/dist/engine/applyResolution.d.ts +108 -0
  10. package/dist/engine/applyResolution.d.ts.map +1 -1
  11. package/dist/engine/applyResolution.js +3 -0
  12. package/dist/engine/applyResolution.js.map +1 -1
  13. package/dist/engine/approveBrief.d.ts +164 -2
  14. package/dist/engine/approveBrief.d.ts.map +1 -1
  15. package/dist/engine/approveBrief.js +7 -5
  16. package/dist/engine/approveBrief.js.map +1 -1
  17. package/dist/engine/authorizeResolution.d.ts +942 -24
  18. package/dist/engine/authorizeResolution.d.ts.map +1 -1
  19. package/dist/engine/boardBrief.d.ts +162 -0
  20. package/dist/engine/boardBrief.d.ts.map +1 -1
  21. package/dist/engine/capacityRetry.d.ts +2883 -75
  22. package/dist/engine/capacityRetry.d.ts.map +1 -1
  23. package/dist/engine/closeDecisions.d.ts +108 -0
  24. package/dist/engine/closeDecisions.d.ts.map +1 -1
  25. package/dist/engine/completeBoardWork.d.ts +108 -0
  26. package/dist/engine/completeBoardWork.d.ts.map +1 -1
  27. package/dist/engine/completeReport.d.ts +108 -0
  28. package/dist/engine/completeReport.d.ts.map +1 -1
  29. package/dist/engine/continueCommand.d.ts +54 -0
  30. package/dist/engine/continueCommand.d.ts.map +1 -1
  31. package/dist/engine/continueWorker.d.ts +108 -0
  32. package/dist/engine/continueWorker.d.ts.map +1 -1
  33. package/dist/engine/deliverPendingAnswers.d.ts +1104 -24
  34. package/dist/engine/deliverPendingAnswers.d.ts.map +1 -1
  35. package/dist/engine/dispatchCommand.d.ts +54 -0
  36. package/dist/engine/dispatchCommand.d.ts.map +1 -1
  37. package/dist/engine/ensureDecisionOwner.d.ts +108 -0
  38. package/dist/engine/ensureDecisionOwner.d.ts.map +1 -1
  39. package/dist/engine/ensurePublication.d.ts +108 -0
  40. package/dist/engine/ensurePublication.d.ts.map +1 -1
  41. package/dist/engine/inspectRenewal.d.ts +108 -0
  42. package/dist/engine/inspectRenewal.d.ts.map +1 -1
  43. package/dist/engine/launchInput.d.ts +54 -0
  44. package/dist/engine/launchInput.d.ts.map +1 -1
  45. package/dist/engine/launchReceipt.d.ts +54 -0
  46. package/dist/engine/launchReceipt.d.ts.map +1 -1
  47. package/dist/engine/makeAdopt.d.ts +108 -0
  48. package/dist/engine/makeAdopt.d.ts.map +1 -1
  49. package/dist/engine/makeAdvance.d.ts +54 -0
  50. package/dist/engine/makeAdvance.d.ts.map +1 -1
  51. package/dist/engine/makeDeliver.d.ts +108 -0
  52. package/dist/engine/makeDeliver.d.ts.map +1 -1
  53. package/dist/engine/makeHuman.d.ts +108 -0
  54. package/dist/engine/makeHuman.d.ts.map +1 -1
  55. package/dist/engine/makeLaunch.d.ts +108 -0
  56. package/dist/engine/makeLaunch.d.ts.map +1 -1
  57. package/dist/engine/makeObserve.d.ts +108 -0
  58. package/dist/engine/makeObserve.d.ts.map +1 -1
  59. package/dist/engine/makeReview.d.ts +108 -0
  60. package/dist/engine/makeReview.d.ts.map +1 -1
  61. package/dist/engine/makeState.d.ts +888 -24
  62. package/dist/engine/makeState.d.ts.map +1 -1
  63. package/dist/engine/makeValidate.d.ts +108 -0
  64. package/dist/engine/makeValidate.d.ts.map +1 -1
  65. package/dist/engine/mergeReadiness.d.ts +1212 -24
  66. package/dist/engine/mergeReadiness.d.ts.map +1 -1
  67. package/dist/engine/observeDeliveryFailure.d.ts +996 -24
  68. package/dist/engine/observeDeliveryFailure.d.ts.map +1 -1
  69. package/dist/engine/observeRenewal.d.ts +189 -0
  70. package/dist/engine/observeRenewal.d.ts.map +1 -1
  71. package/dist/engine/observedAttempt.d.ts.map +1 -1
  72. package/dist/engine/observedAttempt.js +3 -0
  73. package/dist/engine/observedAttempt.js.map +1 -1
  74. package/dist/engine/obtainReview.d.ts +54 -0
  75. package/dist/engine/obtainReview.d.ts.map +1 -1
  76. package/dist/engine/operationRecord.d.ts +726 -24
  77. package/dist/engine/operationRecord.d.ts.map +1 -1
  78. package/dist/engine/persistTerminalReceipts.d.ts +108 -0
  79. package/dist/engine/persistTerminalReceipts.d.ts.map +1 -1
  80. package/dist/engine/prepareCommand.d.ts +54 -0
  81. package/dist/engine/prepareCommand.d.ts.map +1 -1
  82. package/dist/engine/prepareCommand.js +19 -0
  83. package/dist/engine/prepareCommand.js.map +1 -1
  84. package/dist/engine/queueAnswerCommand.d.ts +54 -0
  85. package/dist/engine/queueAnswerCommand.d.ts.map +1 -1
  86. package/dist/engine/readOrContinueReview.d.ts +54 -0
  87. package/dist/engine/readOrContinueReview.d.ts.map +1 -1
  88. package/dist/engine/readRetry.d.ts +1995 -51
  89. package/dist/engine/readRetry.d.ts.map +1 -1
  90. package/dist/engine/reassignCommand.d.ts +54 -0
  91. package/dist/engine/reassignCommand.d.ts.map +1 -1
  92. package/dist/engine/reconcileAttempt.d.ts +81 -0
  93. package/dist/engine/reconcileAttempt.d.ts.map +1 -1
  94. package/dist/engine/reconcileCommand.d.ts +54 -0
  95. package/dist/engine/reconcileCommand.d.ts.map +1 -1
  96. package/dist/engine/recoverStall.d.ts +1023 -24
  97. package/dist/engine/recoverStall.d.ts.map +1 -1
  98. package/dist/engine/recoverStall.js +5 -1
  99. package/dist/engine/recoverStall.js.map +1 -1
  100. package/dist/engine/recoverUnobservable.d.ts +1023 -24
  101. package/dist/engine/recoverUnobservable.d.ts.map +1 -1
  102. package/dist/engine/refreshBrief.d.ts +1997 -53
  103. package/dist/engine/refreshBrief.d.ts.map +1 -1
  104. package/dist/engine/refreshReviewResult.d.ts +108 -0
  105. package/dist/engine/refreshReviewResult.d.ts.map +1 -1
  106. package/dist/engine/releaseClosedPreparation.d.ts +996 -24
  107. package/dist/engine/releaseClosedPreparation.d.ts.map +1 -1
  108. package/dist/engine/releaseExecution.d.ts +996 -24
  109. package/dist/engine/releaseExecution.d.ts.map +1 -1
  110. package/dist/engine/releaseFinishedWork.d.ts +54 -0
  111. package/dist/engine/releaseFinishedWork.d.ts.map +1 -1
  112. package/dist/engine/repository.d.ts +672 -24
  113. package/dist/engine/repository.d.ts.map +1 -1
  114. package/dist/engine/repository.js +1 -0
  115. package/dist/engine/repository.js.map +1 -1
  116. package/dist/engine/requestConflictRepair.d.ts +996 -24
  117. package/dist/engine/requestConflictRepair.d.ts.map +1 -1
  118. package/dist/engine/requestRework.d.ts +108 -0
  119. package/dist/engine/requestRework.d.ts.map +1 -1
  120. package/dist/engine/resolveCommand.d.ts +54 -0
  121. package/dist/engine/resolveCommand.d.ts.map +1 -1
  122. package/dist/engine/resolveExecution.d.ts +996 -24
  123. package/dist/engine/resolveExecution.d.ts.map +1 -1
  124. package/dist/engine/resolveExecution.js +3 -1
  125. package/dist/engine/resolveExecution.js.map +1 -1
  126. package/dist/engine/resumeAttempt.d.ts +1023 -24
  127. package/dist/engine/resumeAttempt.d.ts.map +1 -1
  128. package/dist/engine/retireUnacknowledged.d.ts +108 -0
  129. package/dist/engine/retireUnacknowledged.d.ts.map +1 -1
  130. package/dist/engine/retryTerminal.d.ts +942 -24
  131. package/dist/engine/retryTerminal.d.ts.map +1 -1
  132. package/dist/engine/scheduler.d.ts +108 -0
  133. package/dist/engine/scheduler.d.ts.map +1 -1
  134. package/dist/engine/sessionCleanup.d.ts +108 -0
  135. package/dist/engine/sessionCleanup.d.ts.map +1 -1
  136. package/dist/engine/sessionCleanup.js +3 -1
  137. package/dist/engine/sessionCleanup.js.map +1 -1
  138. package/dist/engine/sessionStatus.d.ts.map +1 -1
  139. package/dist/engine/sessionStatus.js +3 -0
  140. package/dist/engine/sessionStatus.js.map +1 -1
  141. package/dist/engine/settleMergedDelivery.d.ts +996 -24
  142. package/dist/engine/settleMergedDelivery.d.ts.map +1 -1
  143. package/dist/engine/steerBrief.d.ts +10340 -0
  144. package/dist/engine/steerBrief.d.ts.map +1 -0
  145. package/dist/engine/steerBrief.js +42 -0
  146. package/dist/engine/steerBrief.js.map +1 -0
  147. package/dist/engine/submissionFailure.d.ts +888 -24
  148. package/dist/engine/submissionFailure.d.ts.map +1 -1
  149. package/dist/engine/submitLaunch.d.ts +942 -24
  150. package/dist/engine/submitLaunch.d.ts.map +1 -1
  151. package/dist/engine/views.js +1 -0
  152. package/dist/engine/views.js.map +1 -1
  153. package/dist/engine/workerReport.d.ts +162 -0
  154. package/dist/engine/workerReport.d.ts.map +1 -1
  155. package/dist/fleet.d.ts +540 -0
  156. package/dist/fleet.d.ts.map +1 -1
  157. package/dist/host/admission.d.ts +108 -0
  158. package/dist/host/admission.d.ts.map +1 -1
  159. package/dist/host/admission.js +2 -1
  160. package/dist/host/admission.js.map +1 -1
  161. package/dist/host/answerWork.d.ts +54 -0
  162. package/dist/host/answerWork.d.ts.map +1 -1
  163. package/dist/host/commands.d.ts +108 -0
  164. package/dist/host/commands.d.ts.map +1 -1
  165. package/dist/host/daemon.d.ts +1465 -865
  166. package/dist/host/daemon.d.ts.map +1 -1
  167. package/dist/host/daemonClient.d.ts +691 -91
  168. package/dist/host/daemonClient.d.ts.map +1 -1
  169. package/dist/host/daemonContract.d.ts +984 -0
  170. package/dist/host/daemonContract.d.ts.map +1 -1
  171. package/dist/host/readWaitStates.d.ts.map +1 -1
  172. package/dist/host/readWaitStates.js +13 -4
  173. package/dist/host/readWaitStates.js.map +1 -1
  174. package/dist/host/reassignWork.d.ts +54 -0
  175. package/dist/host/reassignWork.d.ts.map +1 -1
  176. package/dist/host/recordPayloads.d.ts.map +1 -1
  177. package/dist/host/recordPayloads.js +8 -3
  178. package/dist/host/recordPayloads.js.map +1 -1
  179. package/dist/host/releaseWork.d.ts +108 -0
  180. package/dist/host/releaseWork.d.ts.map +1 -1
  181. package/dist/host/status.d.ts +30 -0
  182. package/dist/host/status.d.ts.map +1 -1
  183. package/dist/model.d.ts +144 -0
  184. package/dist/model.d.ts.map +1 -1
  185. package/dist/model.js +14 -1
  186. package/dist/model.js.map +1 -1
  187. package/dist/operations.d.ts +1224 -0
  188. package/dist/operations.d.ts.map +1 -1
  189. package/dist/packageInfo.d.ts +1 -1
  190. package/dist/packageInfo.js +1 -1
  191. package/dist/prompt/briefEdit.d.ts +2 -0
  192. package/dist/prompt/briefEdit.d.ts.map +1 -0
  193. package/dist/prompt/briefEdit.js +41 -0
  194. package/dist/prompt/briefEdit.js.map +1 -0
  195. package/dist/prompt/worker.d.ts.map +1 -1
  196. package/dist/prompt/worker.js +11 -2
  197. package/dist/prompt/worker.js.map +1 -1
  198. package/dist/qualifyDependencies.d.ts +54 -0
  199. package/dist/qualifyDependencies.d.ts.map +1 -1
  200. package/dist/scheduling/areas.d.ts +162 -0
  201. package/dist/scheduling/areas.d.ts.map +1 -1
  202. package/dist/storage/attemptV12.d.ts +108 -0
  203. package/dist/storage/attemptV12.d.ts.map +1 -0
  204. package/dist/storage/attemptV12.js +94 -0
  205. package/dist/storage/attemptV12.js.map +1 -0
  206. package/dist/storage/createCollections.d.ts +5 -0
  207. package/dist/storage/createCollections.d.ts.map +1 -0
  208. package/dist/storage/createCollections.js +21 -0
  209. package/dist/storage/createCollections.js.map +1 -0
  210. package/dist/storage/cycleV12.d.ts +287 -0
  211. package/dist/storage/cycleV12.d.ts.map +1 -0
  212. package/dist/storage/cycleV12.js +124 -0
  213. package/dist/storage/cycleV12.js.map +1 -0
  214. package/dist/storage/fleetMigrations.d.ts +0 -39
  215. package/dist/storage/fleetMigrations.d.ts.map +1 -1
  216. package/dist/storage/fleetMigrations.js +3 -9
  217. package/dist/storage/fleetMigrations.js.map +1 -1
  218. package/dist/storage/legacyColumns.d.ts +40 -0
  219. package/dist/storage/legacyColumns.d.ts.map +1 -0
  220. package/dist/storage/legacyColumns.js +12 -0
  221. package/dist/storage/legacyColumns.js.map +1 -0
  222. package/dist/storage/makeForeignReservations.d.ts +15 -0
  223. package/dist/storage/makeForeignReservations.d.ts.map +1 -0
  224. package/dist/storage/makeForeignReservations.js +34 -0
  225. package/dist/storage/makeForeignReservations.js.map +1 -0
  226. package/dist/storage/makePostgresFleetStore.d.ts +36 -16
  227. package/dist/storage/makePostgresFleetStore.d.ts.map +1 -1
  228. package/dist/storage/makePostgresFleetStore.js +24 -32
  229. package/dist/storage/makePostgresFleetStore.js.map +1 -1
  230. package/dist/storage/model.d.ts +53 -59
  231. package/dist/storage/model.d.ts.map +1 -1
  232. package/dist/storage/model.js +18 -60
  233. package/dist/storage/model.js.map +1 -1
  234. package/dist/storage/operationEntries.d.ts +6 -5
  235. package/dist/storage/operationEntries.d.ts.map +1 -1
  236. package/dist/storage/operationEntries.js +12 -15
  237. package/dist/storage/operationEntries.js.map +1 -1
  238. package/dist/storage/preparationV12.d.ts +44 -0
  239. package/dist/storage/preparationV12.d.ts.map +1 -0
  240. package/dist/storage/preparationV12.js +30 -0
  241. package/dist/storage/preparationV12.js.map +1 -0
  242. package/dist/storage/readRecords.d.ts +4 -0
  243. package/dist/storage/readRecords.d.ts.map +1 -0
  244. package/dist/storage/readRecords.js +10 -0
  245. package/dist/storage/readRecords.js.map +1 -0
  246. package/dist/storage/recordChildren.d.ts +11 -0
  247. package/dist/storage/recordChildren.d.ts.map +1 -0
  248. package/dist/storage/recordChildren.js +105 -0
  249. package/dist/storage/recordChildren.js.map +1 -0
  250. package/dist/storage/recordShape.d.ts +23 -0
  251. package/dist/storage/recordShape.d.ts.map +1 -0
  252. package/dist/storage/recordShape.js +112 -0
  253. package/dist/storage/recordShape.js.map +1 -0
  254. package/dist/storage/recordValue.d.ts +9 -6
  255. package/dist/storage/recordValue.d.ts.map +1 -1
  256. package/dist/storage/recordValue.js +42 -32
  257. package/dist/storage/recordValue.js.map +1 -1
  258. package/dist/storage/shapeV12.d.ts +794 -0
  259. package/dist/storage/shapeV12.d.ts.map +1 -0
  260. package/dist/storage/shapeV12.js +10 -0
  261. package/dist/storage/shapeV12.js.map +1 -0
  262. package/dist/storage/textRecordValue.d.ts +3 -0
  263. package/dist/storage/textRecordValue.d.ts.map +1 -0
  264. package/dist/storage/textRecordValue.js +13 -0
  265. package/dist/storage/textRecordValue.js.map +1 -0
  266. package/dist/storage/typedDecisionsV12.d.ts +103 -0
  267. package/dist/storage/typedDecisionsV12.d.ts.map +1 -0
  268. package/dist/storage/typedDecisionsV12.js +97 -0
  269. package/dist/storage/typedDecisionsV12.js.map +1 -0
  270. package/dist/storage/typedTables.d.ts +4 -0
  271. package/dist/storage/typedTables.d.ts.map +1 -0
  272. package/dist/storage/typedTables.js +39 -0
  273. package/dist/storage/typedTables.js.map +1 -0
  274. package/package.json +8 -8
  275. package/src/engine/abandonStalled.ts +63 -0
  276. package/src/engine/applyResolution.ts +3 -0
  277. package/src/engine/approveBrief.ts +34 -32
  278. package/src/engine/observedAttempt.ts +3 -0
  279. package/src/engine/prepareCommand.ts +21 -0
  280. package/src/engine/recoverStall.ts +6 -2
  281. package/src/engine/repository.ts +1 -0
  282. package/src/engine/resolveExecution.ts +3 -1
  283. package/src/engine/sessionCleanup.ts +3 -1
  284. package/src/engine/sessionStatus.ts +5 -0
  285. package/src/engine/steerBrief.ts +54 -0
  286. package/src/engine/views.ts +1 -0
  287. package/src/host/admission.ts +2 -1
  288. package/src/host/readWaitStates.ts +12 -11
  289. package/src/host/recordPayloads.ts +11 -3
  290. package/src/model.ts +20 -1
  291. package/src/packageInfo.ts +1 -1
  292. package/src/prompt/briefEdit.ts +44 -0
  293. package/src/prompt/worker.ts +11 -2
  294. package/src/storage/attemptV12.ts +95 -0
  295. package/src/storage/createCollections.ts +21 -0
  296. package/src/storage/cycleV12.ts +125 -0
  297. package/src/storage/fleetMigrations.ts +3 -10
  298. package/src/storage/legacyColumns.ts +12 -0
  299. package/src/storage/makeForeignReservations.ts +41 -0
  300. package/src/storage/makePostgresFleetStore.ts +30 -43
  301. package/src/storage/model.ts +19 -69
  302. package/src/storage/operationEntries.ts +12 -22
  303. package/src/storage/preparationV12.ts +31 -0
  304. package/src/storage/readRecords.ts +12 -0
  305. package/src/storage/recordChildren.ts +131 -0
  306. package/src/storage/recordShape.ts +137 -0
  307. package/src/storage/recordValue.ts +47 -34
  308. package/src/storage/shapeV12.ts +11 -0
  309. package/src/storage/textRecordValue.ts +16 -0
  310. package/src/storage/typedDecisionsV12.ts +100 -0
  311. package/src/storage/typedTables.ts +39 -0
@@ -1,9 +1,46 @@
1
1
  import { Effect } from "effect";
2
2
  export declare const operationRecord: (store: Omit<{
3
+ foreignReservations: () => Effect.Effect<Pick<{
4
+ readonly backlog: boolean;
5
+ readonly executing: boolean;
6
+ readonly owner: string;
7
+ }, "backlog" | "executing" | "owner">[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
8
+ releaseForeign: (owner: string) => Effect.Effect<void, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
9
+ reserveForeign: (owner: string, occupancy?: {
10
+ readonly executing: boolean;
11
+ readonly backlog: boolean;
12
+ }) => Effect.Effect<void, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
3
13
  compareAndSet: (workId: string, expectedVersion: number, record: {
4
14
  readonly admissionReady?: boolean | undefined;
5
15
  readonly areas?: readonly string[] | undefined;
6
16
  readonly attempts: readonly {
17
+ readonly abandoned?: {
18
+ readonly at: number;
19
+ readonly interruptError?: string | undefined;
20
+ readonly observation?: {
21
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
22
+ readonly error?: string | undefined;
23
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
24
+ readonly output: string;
25
+ readonly progress?: readonly {
26
+ readonly id: string;
27
+ readonly status?: string | undefined;
28
+ }[] | undefined;
29
+ readonly provisioning: "ready" | "unknown";
30
+ readonly receipt: {
31
+ readonly sessionId: string;
32
+ readonly turnId: string;
33
+ };
34
+ readonly turnMissing?: boolean | undefined;
35
+ } | undefined;
36
+ readonly observationError?: string | undefined;
37
+ } | undefined;
38
+ readonly briefSteers?: readonly {
39
+ readonly error?: string | undefined;
40
+ readonly requestedAt: number;
41
+ readonly revision: string;
42
+ readonly steeredAt?: number | undefined;
43
+ }[] | undefined;
7
44
  readonly checkFailures?: readonly string[] | undefined;
8
45
  readonly missingSince?: number | undefined;
9
46
  readonly observationRetries?: number | undefined;
@@ -242,6 +279,33 @@ export declare const operationRecord: (store: Omit<{
242
279
  readonly admissionReady?: boolean | undefined;
243
280
  readonly areas?: readonly string[] | undefined;
244
281
  readonly attempts: readonly {
282
+ readonly abandoned?: {
283
+ readonly at: number;
284
+ readonly interruptError?: string | undefined;
285
+ readonly observation?: {
286
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
287
+ readonly error?: string | undefined;
288
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
289
+ readonly output: string;
290
+ readonly progress?: readonly {
291
+ readonly id: string;
292
+ readonly status?: string | undefined;
293
+ }[] | undefined;
294
+ readonly provisioning: "ready" | "unknown";
295
+ readonly receipt: {
296
+ readonly sessionId: string;
297
+ readonly turnId: string;
298
+ };
299
+ readonly turnMissing?: boolean | undefined;
300
+ } | undefined;
301
+ readonly observationError?: string | undefined;
302
+ } | undefined;
303
+ readonly briefSteers?: readonly {
304
+ readonly error?: string | undefined;
305
+ readonly requestedAt: number;
306
+ readonly revision: string;
307
+ readonly steeredAt?: number | undefined;
308
+ }[] | undefined;
245
309
  readonly checkFailures?: readonly string[] | undefined;
246
310
  readonly missingSince?: number | undefined;
247
311
  readonly observationRetries?: number | undefined;
@@ -484,6 +548,33 @@ export declare const operationRecord: (store: Omit<{
484
548
  readonly admissionReady?: boolean | undefined;
485
549
  readonly areas?: readonly string[] | undefined;
486
550
  readonly attempts: readonly {
551
+ readonly abandoned?: {
552
+ readonly at: number;
553
+ readonly interruptError?: string | undefined;
554
+ readonly observation?: {
555
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
556
+ readonly error?: string | undefined;
557
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
558
+ readonly output: string;
559
+ readonly progress?: readonly {
560
+ readonly id: string;
561
+ readonly status?: string | undefined;
562
+ }[] | undefined;
563
+ readonly provisioning: "ready" | "unknown";
564
+ readonly receipt: {
565
+ readonly sessionId: string;
566
+ readonly turnId: string;
567
+ };
568
+ readonly turnMissing?: boolean | undefined;
569
+ } | undefined;
570
+ readonly observationError?: string | undefined;
571
+ } | undefined;
572
+ readonly briefSteers?: readonly {
573
+ readonly error?: string | undefined;
574
+ readonly requestedAt: number;
575
+ readonly revision: string;
576
+ readonly steeredAt?: number | undefined;
577
+ }[] | undefined;
487
578
  readonly checkFailures?: readonly string[] | undefined;
488
579
  readonly missingSince?: number | undefined;
489
580
  readonly observationRetries?: number | undefined;
@@ -722,6 +813,33 @@ export declare const operationRecord: (store: Omit<{
722
813
  readonly admissionReady?: boolean | undefined;
723
814
  readonly areas?: readonly string[] | undefined;
724
815
  readonly attempts: readonly {
816
+ readonly abandoned?: {
817
+ readonly at: number;
818
+ readonly interruptError?: string | undefined;
819
+ readonly observation?: {
820
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
821
+ readonly error?: string | undefined;
822
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
823
+ readonly output: string;
824
+ readonly progress?: readonly {
825
+ readonly id: string;
826
+ readonly status?: string | undefined;
827
+ }[] | undefined;
828
+ readonly provisioning: "ready" | "unknown";
829
+ readonly receipt: {
830
+ readonly sessionId: string;
831
+ readonly turnId: string;
832
+ };
833
+ readonly turnMissing?: boolean | undefined;
834
+ } | undefined;
835
+ readonly observationError?: string | undefined;
836
+ } | undefined;
837
+ readonly briefSteers?: readonly {
838
+ readonly error?: string | undefined;
839
+ readonly requestedAt: number;
840
+ readonly revision: string;
841
+ readonly steeredAt?: number | undefined;
842
+ }[] | undefined;
725
843
  readonly checkFailures?: readonly string[] | undefined;
726
844
  readonly missingSince?: number | undefined;
727
845
  readonly observationRetries?: number | undefined;
@@ -962,17 +1080,39 @@ export declare const operationRecord: (store: Omit<{
962
1080
  };
963
1081
  version: number;
964
1082
  }, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError | import("../storage/errors.ts").StorageAdmission | import("../storage/errors.ts").StorageCapacity | import("../storage/errors.ts").StorageConflict | import("../storage/errors.ts").StorageQuota, never>;
965
- foreignReservations: () => Effect.Effect<Pick<{
966
- readonly backlog: boolean;
967
- readonly executing: boolean;
968
- readonly owner: string;
969
- }, "backlog" | "executing" | "owner">[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
970
1083
  hasLaunchRetry: () => Effect.Effect<boolean, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
971
1084
  initialize: () => Effect.Effect<readonly (readonly [id: number, name: string])[], import("effect/sql/Migrator").MigrationError | import("effect/sql/SqlError").SqlError, never>;
972
1085
  insert: (record: {
973
1086
  readonly admissionReady?: boolean | undefined;
974
1087
  readonly areas?: readonly string[] | undefined;
975
1088
  readonly attempts: readonly {
1089
+ readonly abandoned?: {
1090
+ readonly at: number;
1091
+ readonly interruptError?: string | undefined;
1092
+ readonly observation?: {
1093
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
1094
+ readonly error?: string | undefined;
1095
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
1096
+ readonly output: string;
1097
+ readonly progress?: readonly {
1098
+ readonly id: string;
1099
+ readonly status?: string | undefined;
1100
+ }[] | undefined;
1101
+ readonly provisioning: "ready" | "unknown";
1102
+ readonly receipt: {
1103
+ readonly sessionId: string;
1104
+ readonly turnId: string;
1105
+ };
1106
+ readonly turnMissing?: boolean | undefined;
1107
+ } | undefined;
1108
+ readonly observationError?: string | undefined;
1109
+ } | undefined;
1110
+ readonly briefSteers?: readonly {
1111
+ readonly error?: string | undefined;
1112
+ readonly requestedAt: number;
1113
+ readonly revision: string;
1114
+ readonly steeredAt?: number | undefined;
1115
+ }[] | undefined;
976
1116
  readonly checkFailures?: readonly string[] | undefined;
977
1117
  readonly missingSince?: number | undefined;
978
1118
  readonly observationRetries?: number | undefined;
@@ -1211,6 +1351,33 @@ export declare const operationRecord: (store: Omit<{
1211
1351
  readonly admissionReady?: boolean | undefined;
1212
1352
  readonly areas?: readonly string[] | undefined;
1213
1353
  readonly attempts: readonly {
1354
+ readonly abandoned?: {
1355
+ readonly at: number;
1356
+ readonly interruptError?: string | undefined;
1357
+ readonly observation?: {
1358
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
1359
+ readonly error?: string | undefined;
1360
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
1361
+ readonly output: string;
1362
+ readonly progress?: readonly {
1363
+ readonly id: string;
1364
+ readonly status?: string | undefined;
1365
+ }[] | undefined;
1366
+ readonly provisioning: "ready" | "unknown";
1367
+ readonly receipt: {
1368
+ readonly sessionId: string;
1369
+ readonly turnId: string;
1370
+ };
1371
+ readonly turnMissing?: boolean | undefined;
1372
+ } | undefined;
1373
+ readonly observationError?: string | undefined;
1374
+ } | undefined;
1375
+ readonly briefSteers?: readonly {
1376
+ readonly error?: string | undefined;
1377
+ readonly requestedAt: number;
1378
+ readonly revision: string;
1379
+ readonly steeredAt?: number | undefined;
1380
+ }[] | undefined;
1214
1381
  readonly checkFailures?: readonly string[] | undefined;
1215
1382
  readonly missingSince?: number | undefined;
1216
1383
  readonly observationRetries?: number | undefined;
@@ -1453,6 +1620,33 @@ export declare const operationRecord: (store: Omit<{
1453
1620
  readonly admissionReady?: boolean | undefined;
1454
1621
  readonly areas?: readonly string[] | undefined;
1455
1622
  readonly attempts: readonly {
1623
+ readonly abandoned?: {
1624
+ readonly at: number;
1625
+ readonly interruptError?: string | undefined;
1626
+ readonly observation?: {
1627
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
1628
+ readonly error?: string | undefined;
1629
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
1630
+ readonly output: string;
1631
+ readonly progress?: readonly {
1632
+ readonly id: string;
1633
+ readonly status?: string | undefined;
1634
+ }[] | undefined;
1635
+ readonly provisioning: "ready" | "unknown";
1636
+ readonly receipt: {
1637
+ readonly sessionId: string;
1638
+ readonly turnId: string;
1639
+ };
1640
+ readonly turnMissing?: boolean | undefined;
1641
+ } | undefined;
1642
+ readonly observationError?: string | undefined;
1643
+ } | undefined;
1644
+ readonly briefSteers?: readonly {
1645
+ readonly error?: string | undefined;
1646
+ readonly requestedAt: number;
1647
+ readonly revision: string;
1648
+ readonly steeredAt?: number | undefined;
1649
+ }[] | undefined;
1456
1650
  readonly checkFailures?: readonly string[] | undefined;
1457
1651
  readonly missingSince?: number | undefined;
1458
1652
  readonly observationRetries?: number | undefined;
@@ -1691,6 +1885,33 @@ export declare const operationRecord: (store: Omit<{
1691
1885
  readonly admissionReady?: boolean | undefined;
1692
1886
  readonly areas?: readonly string[] | undefined;
1693
1887
  readonly attempts: readonly {
1888
+ readonly abandoned?: {
1889
+ readonly at: number;
1890
+ readonly interruptError?: string | undefined;
1891
+ readonly observation?: {
1892
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
1893
+ readonly error?: string | undefined;
1894
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
1895
+ readonly output: string;
1896
+ readonly progress?: readonly {
1897
+ readonly id: string;
1898
+ readonly status?: string | undefined;
1899
+ }[] | undefined;
1900
+ readonly provisioning: "ready" | "unknown";
1901
+ readonly receipt: {
1902
+ readonly sessionId: string;
1903
+ readonly turnId: string;
1904
+ };
1905
+ readonly turnMissing?: boolean | undefined;
1906
+ } | undefined;
1907
+ readonly observationError?: string | undefined;
1908
+ } | undefined;
1909
+ readonly briefSteers?: readonly {
1910
+ readonly error?: string | undefined;
1911
+ readonly requestedAt: number;
1912
+ readonly revision: string;
1913
+ readonly steeredAt?: number | undefined;
1914
+ }[] | undefined;
1694
1915
  readonly checkFailures?: readonly string[] | undefined;
1695
1916
  readonly missingSince?: number | undefined;
1696
1917
  readonly observationRetries?: number | undefined;
@@ -1936,6 +2157,33 @@ export declare const operationRecord: (store: Omit<{
1936
2157
  readonly admissionReady?: boolean | undefined;
1937
2158
  readonly areas?: readonly string[] | undefined;
1938
2159
  readonly attempts: readonly {
2160
+ readonly abandoned?: {
2161
+ readonly at: number;
2162
+ readonly interruptError?: string | undefined;
2163
+ readonly observation?: {
2164
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
2165
+ readonly error?: string | undefined;
2166
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
2167
+ readonly output: string;
2168
+ readonly progress?: readonly {
2169
+ readonly id: string;
2170
+ readonly status?: string | undefined;
2171
+ }[] | undefined;
2172
+ readonly provisioning: "ready" | "unknown";
2173
+ readonly receipt: {
2174
+ readonly sessionId: string;
2175
+ readonly turnId: string;
2176
+ };
2177
+ readonly turnMissing?: boolean | undefined;
2178
+ } | undefined;
2179
+ readonly observationError?: string | undefined;
2180
+ } | undefined;
2181
+ readonly briefSteers?: readonly {
2182
+ readonly error?: string | undefined;
2183
+ readonly requestedAt: number;
2184
+ readonly revision: string;
2185
+ readonly steeredAt?: number | undefined;
2186
+ }[] | undefined;
1939
2187
  readonly checkFailures?: readonly string[] | undefined;
1940
2188
  readonly missingSince?: number | undefined;
1941
2189
  readonly observationRetries?: number | undefined;
@@ -2174,6 +2422,33 @@ export declare const operationRecord: (store: Omit<{
2174
2422
  readonly admissionReady?: boolean | undefined;
2175
2423
  readonly areas?: readonly string[] | undefined;
2176
2424
  readonly attempts: readonly {
2425
+ readonly abandoned?: {
2426
+ readonly at: number;
2427
+ readonly interruptError?: string | undefined;
2428
+ readonly observation?: {
2429
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
2430
+ readonly error?: string | undefined;
2431
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
2432
+ readonly output: string;
2433
+ readonly progress?: readonly {
2434
+ readonly id: string;
2435
+ readonly status?: string | undefined;
2436
+ }[] | undefined;
2437
+ readonly provisioning: "ready" | "unknown";
2438
+ readonly receipt: {
2439
+ readonly sessionId: string;
2440
+ readonly turnId: string;
2441
+ };
2442
+ readonly turnMissing?: boolean | undefined;
2443
+ } | undefined;
2444
+ readonly observationError?: string | undefined;
2445
+ } | undefined;
2446
+ readonly briefSteers?: readonly {
2447
+ readonly error?: string | undefined;
2448
+ readonly requestedAt: number;
2449
+ readonly revision: string;
2450
+ readonly steeredAt?: number | undefined;
2451
+ }[] | undefined;
2177
2452
  readonly checkFailures?: readonly string[] | undefined;
2178
2453
  readonly missingSince?: number | undefined;
2179
2454
  readonly observationRetries?: number | undefined;
@@ -2419,6 +2694,33 @@ export declare const operationRecord: (store: Omit<{
2419
2694
  readonly admissionReady?: boolean | undefined;
2420
2695
  readonly areas?: readonly string[] | undefined;
2421
2696
  readonly attempts: readonly {
2697
+ readonly abandoned?: {
2698
+ readonly at: number;
2699
+ readonly interruptError?: string | undefined;
2700
+ readonly observation?: {
2701
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
2702
+ readonly error?: string | undefined;
2703
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
2704
+ readonly output: string;
2705
+ readonly progress?: readonly {
2706
+ readonly id: string;
2707
+ readonly status?: string | undefined;
2708
+ }[] | undefined;
2709
+ readonly provisioning: "ready" | "unknown";
2710
+ readonly receipt: {
2711
+ readonly sessionId: string;
2712
+ readonly turnId: string;
2713
+ };
2714
+ readonly turnMissing?: boolean | undefined;
2715
+ } | undefined;
2716
+ readonly observationError?: string | undefined;
2717
+ } | undefined;
2718
+ readonly briefSteers?: readonly {
2719
+ readonly error?: string | undefined;
2720
+ readonly requestedAt: number;
2721
+ readonly revision: string;
2722
+ readonly steeredAt?: number | undefined;
2723
+ }[] | undefined;
2422
2724
  readonly checkFailures?: readonly string[] | undefined;
2423
2725
  readonly missingSince?: number | undefined;
2424
2726
  readonly observationRetries?: number | undefined;
@@ -2657,6 +2959,33 @@ export declare const operationRecord: (store: Omit<{
2657
2959
  readonly admissionReady?: boolean | undefined;
2658
2960
  readonly areas?: readonly string[] | undefined;
2659
2961
  readonly attempts: readonly {
2962
+ readonly abandoned?: {
2963
+ readonly at: number;
2964
+ readonly interruptError?: string | undefined;
2965
+ readonly observation?: {
2966
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
2967
+ readonly error?: string | undefined;
2968
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
2969
+ readonly output: string;
2970
+ readonly progress?: readonly {
2971
+ readonly id: string;
2972
+ readonly status?: string | undefined;
2973
+ }[] | undefined;
2974
+ readonly provisioning: "ready" | "unknown";
2975
+ readonly receipt: {
2976
+ readonly sessionId: string;
2977
+ readonly turnId: string;
2978
+ };
2979
+ readonly turnMissing?: boolean | undefined;
2980
+ } | undefined;
2981
+ readonly observationError?: string | undefined;
2982
+ } | undefined;
2983
+ readonly briefSteers?: readonly {
2984
+ readonly error?: string | undefined;
2985
+ readonly requestedAt: number;
2986
+ readonly revision: string;
2987
+ readonly steeredAt?: number | undefined;
2988
+ }[] | undefined;
2660
2989
  readonly checkFailures?: readonly string[] | undefined;
2661
2990
  readonly missingSince?: number | undefined;
2662
2991
  readonly observationRetries?: number | undefined;
@@ -2897,20 +3226,52 @@ export declare const operationRecord: (store: Omit<{
2897
3226
  };
2898
3227
  version: number;
2899
3228
  } | undefined, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
2900
- operationEntries: (operationId: string) => Effect.Effect<{
2901
- version: number;
2902
- workId: string;
2903
- }[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
3229
+ operationEntries: (operationId: string) => Effect.Effect<readonly {
3230
+ readonly workId: string;
3231
+ readonly version: number;
3232
+ }[], import("effect/sql/SqlError").SqlError, never>;
3233
+ }, "initialize" | "operationEntries"> & Partial<Pick<{
3234
+ foreignReservations: () => Effect.Effect<Pick<{
3235
+ readonly backlog: boolean;
3236
+ readonly executing: boolean;
3237
+ readonly owner: string;
3238
+ }, "backlog" | "executing" | "owner">[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
2904
3239
  releaseForeign: (owner: string) => Effect.Effect<void, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
2905
3240
  reserveForeign: (owner: string, occupancy?: {
2906
3241
  readonly executing: boolean;
2907
3242
  readonly backlog: boolean;
2908
3243
  }) => Effect.Effect<void, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
2909
- }, "initialize" | "operationEntries"> & Partial<Pick<{
2910
3244
  compareAndSet: (workId: string, expectedVersion: number, record: {
2911
3245
  readonly admissionReady?: boolean | undefined;
2912
3246
  readonly areas?: readonly string[] | undefined;
2913
3247
  readonly attempts: readonly {
3248
+ readonly abandoned?: {
3249
+ readonly at: number;
3250
+ readonly interruptError?: string | undefined;
3251
+ readonly observation?: {
3252
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
3253
+ readonly error?: string | undefined;
3254
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
3255
+ readonly output: string;
3256
+ readonly progress?: readonly {
3257
+ readonly id: string;
3258
+ readonly status?: string | undefined;
3259
+ }[] | undefined;
3260
+ readonly provisioning: "ready" | "unknown";
3261
+ readonly receipt: {
3262
+ readonly sessionId: string;
3263
+ readonly turnId: string;
3264
+ };
3265
+ readonly turnMissing?: boolean | undefined;
3266
+ } | undefined;
3267
+ readonly observationError?: string | undefined;
3268
+ } | undefined;
3269
+ readonly briefSteers?: readonly {
3270
+ readonly error?: string | undefined;
3271
+ readonly requestedAt: number;
3272
+ readonly revision: string;
3273
+ readonly steeredAt?: number | undefined;
3274
+ }[] | undefined;
2914
3275
  readonly checkFailures?: readonly string[] | undefined;
2915
3276
  readonly missingSince?: number | undefined;
2916
3277
  readonly observationRetries?: number | undefined;
@@ -3149,6 +3510,33 @@ export declare const operationRecord: (store: Omit<{
3149
3510
  readonly admissionReady?: boolean | undefined;
3150
3511
  readonly areas?: readonly string[] | undefined;
3151
3512
  readonly attempts: readonly {
3513
+ readonly abandoned?: {
3514
+ readonly at: number;
3515
+ readonly interruptError?: string | undefined;
3516
+ readonly observation?: {
3517
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
3518
+ readonly error?: string | undefined;
3519
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
3520
+ readonly output: string;
3521
+ readonly progress?: readonly {
3522
+ readonly id: string;
3523
+ readonly status?: string | undefined;
3524
+ }[] | undefined;
3525
+ readonly provisioning: "ready" | "unknown";
3526
+ readonly receipt: {
3527
+ readonly sessionId: string;
3528
+ readonly turnId: string;
3529
+ };
3530
+ readonly turnMissing?: boolean | undefined;
3531
+ } | undefined;
3532
+ readonly observationError?: string | undefined;
3533
+ } | undefined;
3534
+ readonly briefSteers?: readonly {
3535
+ readonly error?: string | undefined;
3536
+ readonly requestedAt: number;
3537
+ readonly revision: string;
3538
+ readonly steeredAt?: number | undefined;
3539
+ }[] | undefined;
3152
3540
  readonly checkFailures?: readonly string[] | undefined;
3153
3541
  readonly missingSince?: number | undefined;
3154
3542
  readonly observationRetries?: number | undefined;
@@ -3391,6 +3779,33 @@ export declare const operationRecord: (store: Omit<{
3391
3779
  readonly admissionReady?: boolean | undefined;
3392
3780
  readonly areas?: readonly string[] | undefined;
3393
3781
  readonly attempts: readonly {
3782
+ readonly abandoned?: {
3783
+ readonly at: number;
3784
+ readonly interruptError?: string | undefined;
3785
+ readonly observation?: {
3786
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
3787
+ readonly error?: string | undefined;
3788
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
3789
+ readonly output: string;
3790
+ readonly progress?: readonly {
3791
+ readonly id: string;
3792
+ readonly status?: string | undefined;
3793
+ }[] | undefined;
3794
+ readonly provisioning: "ready" | "unknown";
3795
+ readonly receipt: {
3796
+ readonly sessionId: string;
3797
+ readonly turnId: string;
3798
+ };
3799
+ readonly turnMissing?: boolean | undefined;
3800
+ } | undefined;
3801
+ readonly observationError?: string | undefined;
3802
+ } | undefined;
3803
+ readonly briefSteers?: readonly {
3804
+ readonly error?: string | undefined;
3805
+ readonly requestedAt: number;
3806
+ readonly revision: string;
3807
+ readonly steeredAt?: number | undefined;
3808
+ }[] | undefined;
3394
3809
  readonly checkFailures?: readonly string[] | undefined;
3395
3810
  readonly missingSince?: number | undefined;
3396
3811
  readonly observationRetries?: number | undefined;
@@ -3629,6 +4044,33 @@ export declare const operationRecord: (store: Omit<{
3629
4044
  readonly admissionReady?: boolean | undefined;
3630
4045
  readonly areas?: readonly string[] | undefined;
3631
4046
  readonly attempts: readonly {
4047
+ readonly abandoned?: {
4048
+ readonly at: number;
4049
+ readonly interruptError?: string | undefined;
4050
+ readonly observation?: {
4051
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
4052
+ readonly error?: string | undefined;
4053
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
4054
+ readonly output: string;
4055
+ readonly progress?: readonly {
4056
+ readonly id: string;
4057
+ readonly status?: string | undefined;
4058
+ }[] | undefined;
4059
+ readonly provisioning: "ready" | "unknown";
4060
+ readonly receipt: {
4061
+ readonly sessionId: string;
4062
+ readonly turnId: string;
4063
+ };
4064
+ readonly turnMissing?: boolean | undefined;
4065
+ } | undefined;
4066
+ readonly observationError?: string | undefined;
4067
+ } | undefined;
4068
+ readonly briefSteers?: readonly {
4069
+ readonly error?: string | undefined;
4070
+ readonly requestedAt: number;
4071
+ readonly revision: string;
4072
+ readonly steeredAt?: number | undefined;
4073
+ }[] | undefined;
3632
4074
  readonly checkFailures?: readonly string[] | undefined;
3633
4075
  readonly missingSince?: number | undefined;
3634
4076
  readonly observationRetries?: number | undefined;
@@ -3869,17 +4311,39 @@ export declare const operationRecord: (store: Omit<{
3869
4311
  };
3870
4312
  version: number;
3871
4313
  }, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError | import("../storage/errors.ts").StorageAdmission | import("../storage/errors.ts").StorageCapacity | import("../storage/errors.ts").StorageConflict | import("../storage/errors.ts").StorageQuota, never>;
3872
- foreignReservations: () => Effect.Effect<Pick<{
3873
- readonly backlog: boolean;
3874
- readonly executing: boolean;
3875
- readonly owner: string;
3876
- }, "backlog" | "executing" | "owner">[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
3877
4314
  hasLaunchRetry: () => Effect.Effect<boolean, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
3878
4315
  initialize: () => Effect.Effect<readonly (readonly [id: number, name: string])[], import("effect/sql/Migrator").MigrationError | import("effect/sql/SqlError").SqlError, never>;
3879
4316
  insert: (record: {
3880
4317
  readonly admissionReady?: boolean | undefined;
3881
4318
  readonly areas?: readonly string[] | undefined;
3882
4319
  readonly attempts: readonly {
4320
+ readonly abandoned?: {
4321
+ readonly at: number;
4322
+ readonly interruptError?: string | undefined;
4323
+ readonly observation?: {
4324
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
4325
+ readonly error?: string | undefined;
4326
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
4327
+ readonly output: string;
4328
+ readonly progress?: readonly {
4329
+ readonly id: string;
4330
+ readonly status?: string | undefined;
4331
+ }[] | undefined;
4332
+ readonly provisioning: "ready" | "unknown";
4333
+ readonly receipt: {
4334
+ readonly sessionId: string;
4335
+ readonly turnId: string;
4336
+ };
4337
+ readonly turnMissing?: boolean | undefined;
4338
+ } | undefined;
4339
+ readonly observationError?: string | undefined;
4340
+ } | undefined;
4341
+ readonly briefSteers?: readonly {
4342
+ readonly error?: string | undefined;
4343
+ readonly requestedAt: number;
4344
+ readonly revision: string;
4345
+ readonly steeredAt?: number | undefined;
4346
+ }[] | undefined;
3883
4347
  readonly checkFailures?: readonly string[] | undefined;
3884
4348
  readonly missingSince?: number | undefined;
3885
4349
  readonly observationRetries?: number | undefined;
@@ -4118,6 +4582,33 @@ export declare const operationRecord: (store: Omit<{
4118
4582
  readonly admissionReady?: boolean | undefined;
4119
4583
  readonly areas?: readonly string[] | undefined;
4120
4584
  readonly attempts: readonly {
4585
+ readonly abandoned?: {
4586
+ readonly at: number;
4587
+ readonly interruptError?: string | undefined;
4588
+ readonly observation?: {
4589
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
4590
+ readonly error?: string | undefined;
4591
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
4592
+ readonly output: string;
4593
+ readonly progress?: readonly {
4594
+ readonly id: string;
4595
+ readonly status?: string | undefined;
4596
+ }[] | undefined;
4597
+ readonly provisioning: "ready" | "unknown";
4598
+ readonly receipt: {
4599
+ readonly sessionId: string;
4600
+ readonly turnId: string;
4601
+ };
4602
+ readonly turnMissing?: boolean | undefined;
4603
+ } | undefined;
4604
+ readonly observationError?: string | undefined;
4605
+ } | undefined;
4606
+ readonly briefSteers?: readonly {
4607
+ readonly error?: string | undefined;
4608
+ readonly requestedAt: number;
4609
+ readonly revision: string;
4610
+ readonly steeredAt?: number | undefined;
4611
+ }[] | undefined;
4121
4612
  readonly checkFailures?: readonly string[] | undefined;
4122
4613
  readonly missingSince?: number | undefined;
4123
4614
  readonly observationRetries?: number | undefined;
@@ -4360,6 +4851,33 @@ export declare const operationRecord: (store: Omit<{
4360
4851
  readonly admissionReady?: boolean | undefined;
4361
4852
  readonly areas?: readonly string[] | undefined;
4362
4853
  readonly attempts: readonly {
4854
+ readonly abandoned?: {
4855
+ readonly at: number;
4856
+ readonly interruptError?: string | undefined;
4857
+ readonly observation?: {
4858
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
4859
+ readonly error?: string | undefined;
4860
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
4861
+ readonly output: string;
4862
+ readonly progress?: readonly {
4863
+ readonly id: string;
4864
+ readonly status?: string | undefined;
4865
+ }[] | undefined;
4866
+ readonly provisioning: "ready" | "unknown";
4867
+ readonly receipt: {
4868
+ readonly sessionId: string;
4869
+ readonly turnId: string;
4870
+ };
4871
+ readonly turnMissing?: boolean | undefined;
4872
+ } | undefined;
4873
+ readonly observationError?: string | undefined;
4874
+ } | undefined;
4875
+ readonly briefSteers?: readonly {
4876
+ readonly error?: string | undefined;
4877
+ readonly requestedAt: number;
4878
+ readonly revision: string;
4879
+ readonly steeredAt?: number | undefined;
4880
+ }[] | undefined;
4363
4881
  readonly checkFailures?: readonly string[] | undefined;
4364
4882
  readonly missingSince?: number | undefined;
4365
4883
  readonly observationRetries?: number | undefined;
@@ -4598,6 +5116,33 @@ export declare const operationRecord: (store: Omit<{
4598
5116
  readonly admissionReady?: boolean | undefined;
4599
5117
  readonly areas?: readonly string[] | undefined;
4600
5118
  readonly attempts: readonly {
5119
+ readonly abandoned?: {
5120
+ readonly at: number;
5121
+ readonly interruptError?: string | undefined;
5122
+ readonly observation?: {
5123
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
5124
+ readonly error?: string | undefined;
5125
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
5126
+ readonly output: string;
5127
+ readonly progress?: readonly {
5128
+ readonly id: string;
5129
+ readonly status?: string | undefined;
5130
+ }[] | undefined;
5131
+ readonly provisioning: "ready" | "unknown";
5132
+ readonly receipt: {
5133
+ readonly sessionId: string;
5134
+ readonly turnId: string;
5135
+ };
5136
+ readonly turnMissing?: boolean | undefined;
5137
+ } | undefined;
5138
+ readonly observationError?: string | undefined;
5139
+ } | undefined;
5140
+ readonly briefSteers?: readonly {
5141
+ readonly error?: string | undefined;
5142
+ readonly requestedAt: number;
5143
+ readonly revision: string;
5144
+ readonly steeredAt?: number | undefined;
5145
+ }[] | undefined;
4601
5146
  readonly checkFailures?: readonly string[] | undefined;
4602
5147
  readonly missingSince?: number | undefined;
4603
5148
  readonly observationRetries?: number | undefined;
@@ -4843,6 +5388,33 @@ export declare const operationRecord: (store: Omit<{
4843
5388
  readonly admissionReady?: boolean | undefined;
4844
5389
  readonly areas?: readonly string[] | undefined;
4845
5390
  readonly attempts: readonly {
5391
+ readonly abandoned?: {
5392
+ readonly at: number;
5393
+ readonly interruptError?: string | undefined;
5394
+ readonly observation?: {
5395
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
5396
+ readonly error?: string | undefined;
5397
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
5398
+ readonly output: string;
5399
+ readonly progress?: readonly {
5400
+ readonly id: string;
5401
+ readonly status?: string | undefined;
5402
+ }[] | undefined;
5403
+ readonly provisioning: "ready" | "unknown";
5404
+ readonly receipt: {
5405
+ readonly sessionId: string;
5406
+ readonly turnId: string;
5407
+ };
5408
+ readonly turnMissing?: boolean | undefined;
5409
+ } | undefined;
5410
+ readonly observationError?: string | undefined;
5411
+ } | undefined;
5412
+ readonly briefSteers?: readonly {
5413
+ readonly error?: string | undefined;
5414
+ readonly requestedAt: number;
5415
+ readonly revision: string;
5416
+ readonly steeredAt?: number | undefined;
5417
+ }[] | undefined;
4846
5418
  readonly checkFailures?: readonly string[] | undefined;
4847
5419
  readonly missingSince?: number | undefined;
4848
5420
  readonly observationRetries?: number | undefined;
@@ -5081,6 +5653,33 @@ export declare const operationRecord: (store: Omit<{
5081
5653
  readonly admissionReady?: boolean | undefined;
5082
5654
  readonly areas?: readonly string[] | undefined;
5083
5655
  readonly attempts: readonly {
5656
+ readonly abandoned?: {
5657
+ readonly at: number;
5658
+ readonly interruptError?: string | undefined;
5659
+ readonly observation?: {
5660
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
5661
+ readonly error?: string | undefined;
5662
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
5663
+ readonly output: string;
5664
+ readonly progress?: readonly {
5665
+ readonly id: string;
5666
+ readonly status?: string | undefined;
5667
+ }[] | undefined;
5668
+ readonly provisioning: "ready" | "unknown";
5669
+ readonly receipt: {
5670
+ readonly sessionId: string;
5671
+ readonly turnId: string;
5672
+ };
5673
+ readonly turnMissing?: boolean | undefined;
5674
+ } | undefined;
5675
+ readonly observationError?: string | undefined;
5676
+ } | undefined;
5677
+ readonly briefSteers?: readonly {
5678
+ readonly error?: string | undefined;
5679
+ readonly requestedAt: number;
5680
+ readonly revision: string;
5681
+ readonly steeredAt?: number | undefined;
5682
+ }[] | undefined;
5084
5683
  readonly checkFailures?: readonly string[] | undefined;
5085
5684
  readonly missingSince?: number | undefined;
5086
5685
  readonly observationRetries?: number | undefined;
@@ -5326,6 +5925,33 @@ export declare const operationRecord: (store: Omit<{
5326
5925
  readonly admissionReady?: boolean | undefined;
5327
5926
  readonly areas?: readonly string[] | undefined;
5328
5927
  readonly attempts: readonly {
5928
+ readonly abandoned?: {
5929
+ readonly at: number;
5930
+ readonly interruptError?: string | undefined;
5931
+ readonly observation?: {
5932
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
5933
+ readonly error?: string | undefined;
5934
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
5935
+ readonly output: string;
5936
+ readonly progress?: readonly {
5937
+ readonly id: string;
5938
+ readonly status?: string | undefined;
5939
+ }[] | undefined;
5940
+ readonly provisioning: "ready" | "unknown";
5941
+ readonly receipt: {
5942
+ readonly sessionId: string;
5943
+ readonly turnId: string;
5944
+ };
5945
+ readonly turnMissing?: boolean | undefined;
5946
+ } | undefined;
5947
+ readonly observationError?: string | undefined;
5948
+ } | undefined;
5949
+ readonly briefSteers?: readonly {
5950
+ readonly error?: string | undefined;
5951
+ readonly requestedAt: number;
5952
+ readonly revision: string;
5953
+ readonly steeredAt?: number | undefined;
5954
+ }[] | undefined;
5329
5955
  readonly checkFailures?: readonly string[] | undefined;
5330
5956
  readonly missingSince?: number | undefined;
5331
5957
  readonly observationRetries?: number | undefined;
@@ -5564,6 +6190,33 @@ export declare const operationRecord: (store: Omit<{
5564
6190
  readonly admissionReady?: boolean | undefined;
5565
6191
  readonly areas?: readonly string[] | undefined;
5566
6192
  readonly attempts: readonly {
6193
+ readonly abandoned?: {
6194
+ readonly at: number;
6195
+ readonly interruptError?: string | undefined;
6196
+ readonly observation?: {
6197
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
6198
+ readonly error?: string | undefined;
6199
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
6200
+ readonly output: string;
6201
+ readonly progress?: readonly {
6202
+ readonly id: string;
6203
+ readonly status?: string | undefined;
6204
+ }[] | undefined;
6205
+ readonly provisioning: "ready" | "unknown";
6206
+ readonly receipt: {
6207
+ readonly sessionId: string;
6208
+ readonly turnId: string;
6209
+ };
6210
+ readonly turnMissing?: boolean | undefined;
6211
+ } | undefined;
6212
+ readonly observationError?: string | undefined;
6213
+ } | undefined;
6214
+ readonly briefSteers?: readonly {
6215
+ readonly error?: string | undefined;
6216
+ readonly requestedAt: number;
6217
+ readonly revision: string;
6218
+ readonly steeredAt?: number | undefined;
6219
+ }[] | undefined;
5567
6220
  readonly checkFailures?: readonly string[] | undefined;
5568
6221
  readonly missingSince?: number | undefined;
5569
6222
  readonly observationRetries?: number | undefined;
@@ -5804,20 +6457,42 @@ export declare const operationRecord: (store: Omit<{
5804
6457
  };
5805
6458
  version: number;
5806
6459
  } | undefined, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
5807
- operationEntries: (operationId: string) => Effect.Effect<{
5808
- version: number;
5809
- workId: string;
5810
- }[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
5811
- releaseForeign: (owner: string) => Effect.Effect<void, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
5812
- reserveForeign: (owner: string, occupancy?: {
5813
- readonly executing: boolean;
5814
- readonly backlog: boolean;
5815
- }) => Effect.Effect<void, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
6460
+ operationEntries: (operationId: string) => Effect.Effect<readonly {
6461
+ readonly workId: string;
6462
+ readonly version: number;
6463
+ }[], import("effect/sql/SqlError").SqlError, never>;
5816
6464
  }, "operationEntries">>, operationId: string) => Effect.Effect<{
5817
6465
  value: {
5818
6466
  readonly admissionReady?: boolean | undefined;
5819
6467
  readonly areas?: readonly string[] | undefined;
5820
6468
  readonly attempts: readonly {
6469
+ readonly abandoned?: {
6470
+ readonly at: number;
6471
+ readonly interruptError?: string | undefined;
6472
+ readonly observation?: {
6473
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
6474
+ readonly error?: string | undefined;
6475
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
6476
+ readonly output: string;
6477
+ readonly progress?: readonly {
6478
+ readonly id: string;
6479
+ readonly status?: string | undefined;
6480
+ }[] | undefined;
6481
+ readonly provisioning: "ready" | "unknown";
6482
+ readonly receipt: {
6483
+ readonly sessionId: string;
6484
+ readonly turnId: string;
6485
+ };
6486
+ readonly turnMissing?: boolean | undefined;
6487
+ } | undefined;
6488
+ readonly observationError?: string | undefined;
6489
+ } | undefined;
6490
+ readonly briefSteers?: readonly {
6491
+ readonly error?: string | undefined;
6492
+ readonly requestedAt: number;
6493
+ readonly revision: string;
6494
+ readonly steeredAt?: number | undefined;
6495
+ }[] | undefined;
5821
6496
  readonly checkFailures?: readonly string[] | undefined;
5822
6497
  readonly missingSince?: number | undefined;
5823
6498
  readonly observationRetries?: number | undefined;
@@ -6056,6 +6731,33 @@ export declare const operationRecord: (store: Omit<{
6056
6731
  readonly admissionReady?: boolean | undefined;
6057
6732
  readonly areas?: readonly string[] | undefined;
6058
6733
  readonly attempts: readonly {
6734
+ readonly abandoned?: {
6735
+ readonly at: number;
6736
+ readonly interruptError?: string | undefined;
6737
+ readonly observation?: {
6738
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
6739
+ readonly error?: string | undefined;
6740
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
6741
+ readonly output: string;
6742
+ readonly progress?: readonly {
6743
+ readonly id: string;
6744
+ readonly status?: string | undefined;
6745
+ }[] | undefined;
6746
+ readonly provisioning: "ready" | "unknown";
6747
+ readonly receipt: {
6748
+ readonly sessionId: string;
6749
+ readonly turnId: string;
6750
+ };
6751
+ readonly turnMissing?: boolean | undefined;
6752
+ } | undefined;
6753
+ readonly observationError?: string | undefined;
6754
+ } | undefined;
6755
+ readonly briefSteers?: readonly {
6756
+ readonly error?: string | undefined;
6757
+ readonly requestedAt: number;
6758
+ readonly revision: string;
6759
+ readonly steeredAt?: number | undefined;
6760
+ }[] | undefined;
6059
6761
  readonly checkFailures?: readonly string[] | undefined;
6060
6762
  readonly missingSince?: number | undefined;
6061
6763
  readonly observationRetries?: number | undefined;