@shivaedev/work-fleet 0.2.1 → 0.4.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 (515) hide show
  1. package/CHANGELOG.md +55 -0
  2. package/README.md +61 -19
  3. package/dist/DispatchRequest.d.ts +13 -0
  4. package/dist/DispatchRequest.d.ts.map +1 -0
  5. package/dist/DispatchRequest.js +12 -0
  6. package/dist/DispatchRequest.js.map +1 -0
  7. package/dist/admit.d.ts +11 -0
  8. package/dist/admit.d.ts.map +1 -1
  9. package/dist/attention.d.ts +1 -0
  10. package/dist/attention.d.ts.map +1 -1
  11. package/dist/attention.js +4 -0
  12. package/dist/attention.js.map +1 -1
  13. package/dist/board/fleetField.d.ts +1 -0
  14. package/dist/board/fleetField.d.ts.map +1 -1
  15. package/dist/board/fleetField.js +4 -0
  16. package/dist/board/fleetField.js.map +1 -1
  17. package/dist/board/markdown.d.ts.map +1 -1
  18. package/dist/board/markdown.js +7 -2
  19. package/dist/board/markdown.js.map +1 -1
  20. package/dist/board/publish.d.ts +2 -0
  21. package/dist/board/publish.d.ts.map +1 -1
  22. package/dist/board/publishReport.d.ts +1 -0
  23. package/dist/board/publishReport.d.ts.map +1 -1
  24. package/dist/board/readPass.d.ts +1 -0
  25. package/dist/board/readPass.d.ts.map +1 -1
  26. package/dist/cli.js +13 -6
  27. package/dist/cli.js.map +1 -1
  28. package/dist/engine/abandonStalled.d.ts +1171 -1004
  29. package/dist/engine/abandonStalled.d.ts.map +1 -1
  30. package/dist/engine/admissionOrder.d.ts +1091 -0
  31. package/dist/engine/admissionOrder.d.ts.map +1 -0
  32. package/dist/engine/admissionOrder.js +15 -0
  33. package/dist/engine/admissionOrder.js.map +1 -0
  34. package/dist/engine/applyResolution.d.ts +20 -0
  35. package/dist/engine/applyResolution.d.ts.map +1 -1
  36. package/dist/engine/approveBrief.d.ts +31 -0
  37. package/dist/engine/approveBrief.d.ts.map +1 -1
  38. package/dist/engine/authorizeResolution.d.ts +1160 -1003
  39. package/dist/engine/authorizeResolution.d.ts.map +1 -1
  40. package/dist/engine/boardBrief.d.ts +32 -0
  41. package/dist/engine/boardBrief.d.ts.map +1 -1
  42. package/dist/engine/capacityRetry.d.ts +3488 -3007
  43. package/dist/engine/capacityRetry.d.ts.map +1 -1
  44. package/dist/engine/closeDecisions.d.ts +20 -0
  45. package/dist/engine/closeDecisions.d.ts.map +1 -1
  46. package/dist/engine/completeBoardWork.d.ts +20 -0
  47. package/dist/engine/completeBoardWork.d.ts.map +1 -1
  48. package/dist/engine/completeReport.d.ts +21 -0
  49. package/dist/engine/completeReport.d.ts.map +1 -1
  50. package/dist/engine/continueCommand.d.ts +10 -0
  51. package/dist/engine/continueCommand.d.ts.map +1 -1
  52. package/dist/engine/continueWorker.d.ts +20 -0
  53. package/dist/engine/continueWorker.d.ts.map +1 -1
  54. package/dist/engine/deliverPendingAnswers.d.ts +1085 -898
  55. package/dist/engine/deliverPendingAnswers.d.ts.map +1 -1
  56. package/dist/engine/dispatchCommand.d.ts +14 -1
  57. package/dist/engine/dispatchCommand.d.ts.map +1 -1
  58. package/dist/engine/dispatchCommand.js +25 -5
  59. package/dist/engine/dispatchCommand.js.map +1 -1
  60. package/dist/engine/ensureDecisionOwner.d.ts +20 -0
  61. package/dist/engine/ensureDecisionOwner.d.ts.map +1 -1
  62. package/dist/engine/ensurePublication.d.ts +20 -0
  63. package/dist/engine/ensurePublication.d.ts.map +1 -1
  64. package/dist/engine/failureContext.d.ts +1 -0
  65. package/dist/engine/failureContext.d.ts.map +1 -1
  66. package/dist/engine/failureContext.js.map +1 -1
  67. package/dist/engine/failureMessage.js +11 -1
  68. package/dist/engine/failureMessage.js.map +1 -1
  69. package/dist/engine/health.d.ts +10 -0
  70. package/dist/engine/health.d.ts.map +1 -1
  71. package/dist/engine/inspectRenewal.d.ts +21 -0
  72. package/dist/engine/inspectRenewal.d.ts.map +1 -1
  73. package/dist/engine/launchInput.d.ts +10 -0
  74. package/dist/engine/launchInput.d.ts.map +1 -1
  75. package/dist/engine/launchReceipt.d.ts +10 -0
  76. package/dist/engine/launchReceipt.d.ts.map +1 -1
  77. package/dist/engine/localOnlyCriteria.d.ts +1 -0
  78. package/dist/engine/localOnlyCriteria.d.ts.map +1 -1
  79. package/dist/engine/localOnlyCriteria.js +5 -1
  80. package/dist/engine/localOnlyCriteria.js.map +1 -1
  81. package/dist/engine/makeAdopt.d.ts +21 -0
  82. package/dist/engine/makeAdopt.d.ts.map +1 -1
  83. package/dist/engine/makeAdvance.d.ts +10 -0
  84. package/dist/engine/makeAdvance.d.ts.map +1 -1
  85. package/dist/engine/makeDeliver.d.ts +20 -0
  86. package/dist/engine/makeDeliver.d.ts.map +1 -1
  87. package/dist/engine/makeHuman.d.ts +20 -0
  88. package/dist/engine/makeHuman.d.ts.map +1 -1
  89. package/dist/engine/makeLaunch.d.ts +20 -0
  90. package/dist/engine/makeLaunch.d.ts.map +1 -1
  91. package/dist/engine/makeLaunch.js +4 -13
  92. package/dist/engine/makeLaunch.js.map +1 -1
  93. package/dist/engine/makeObserve.d.ts +20 -0
  94. package/dist/engine/makeObserve.d.ts.map +1 -1
  95. package/dist/engine/makeReview.d.ts +21 -0
  96. package/dist/engine/makeReview.d.ts.map +1 -1
  97. package/dist/engine/makeState.d.ts +1164 -1010
  98. package/dist/engine/makeState.d.ts.map +1 -1
  99. package/dist/engine/makeState.js +19 -11
  100. package/dist/engine/makeState.js.map +1 -1
  101. package/dist/engine/makeValidate.d.ts +21 -0
  102. package/dist/engine/makeValidate.d.ts.map +1 -1
  103. package/dist/engine/mergeReadiness.d.ts +1425 -1764
  104. package/dist/engine/mergeReadiness.d.ts.map +1 -1
  105. package/dist/engine/mergeReadiness.js +3 -4
  106. package/dist/engine/mergeReadiness.js.map +1 -1
  107. package/dist/engine/observeDeliveryFailure.d.ts +1170 -1003
  108. package/dist/engine/observeDeliveryFailure.d.ts.map +1 -1
  109. package/dist/engine/observeRenewal.d.ts +33 -0
  110. package/dist/engine/observeRenewal.d.ts.map +1 -1
  111. package/dist/engine/obtainReview.d.ts +11 -0
  112. package/dist/engine/obtainReview.d.ts.map +1 -1
  113. package/dist/engine/obtainReview.js +2 -1
  114. package/dist/engine/obtainReview.js.map +1 -1
  115. package/dist/engine/operationRecord.d.ts +1898 -1779
  116. package/dist/engine/operationRecord.d.ts.map +1 -1
  117. package/dist/engine/persistTerminalReceipts.d.ts +20 -0
  118. package/dist/engine/persistTerminalReceipts.d.ts.map +1 -1
  119. package/dist/engine/prepareCommand.d.ts +10 -0
  120. package/dist/engine/prepareCommand.d.ts.map +1 -1
  121. package/dist/engine/prepareCommand.js +1 -1
  122. package/dist/engine/prepareCommand.js.map +1 -1
  123. package/dist/engine/queueAnswerCommand.d.ts +10 -0
  124. package/dist/engine/queueAnswerCommand.d.ts.map +1 -1
  125. package/dist/engine/readOrContinueReview.d.ts +11 -0
  126. package/dist/engine/readOrContinueReview.d.ts.map +1 -1
  127. package/dist/engine/readOrContinueReview.js +2 -1
  128. package/dist/engine/readOrContinueReview.js.map +1 -1
  129. package/dist/engine/readResolution.d.ts +1 -0
  130. package/dist/engine/readResolution.d.ts.map +1 -1
  131. package/dist/engine/readRetry.d.ts +2345 -2010
  132. package/dist/engine/readRetry.d.ts.map +1 -1
  133. package/dist/engine/readRetry.js +22 -2
  134. package/dist/engine/readRetry.js.map +1 -1
  135. package/dist/engine/reassignCommand.d.ts +10 -0
  136. package/dist/engine/reassignCommand.d.ts.map +1 -1
  137. package/dist/engine/reconcileAttempt.d.ts +12 -1
  138. package/dist/engine/reconcileAttempt.d.ts.map +1 -1
  139. package/dist/engine/reconcileAttempt.js +2 -1
  140. package/dist/engine/reconcileAttempt.js.map +1 -1
  141. package/dist/engine/reconcileCommand.d.ts +10 -0
  142. package/dist/engine/reconcileCommand.d.ts.map +1 -1
  143. package/dist/engine/recordResponseCommand.d.ts +551 -0
  144. package/dist/engine/recordResponseCommand.d.ts.map +1 -0
  145. package/dist/engine/recordResponseCommand.js +30 -0
  146. package/dist/engine/recordResponseCommand.js.map +1 -0
  147. package/dist/engine/recoverStall.d.ts +1172 -1004
  148. package/dist/engine/recoverStall.d.ts.map +1 -1
  149. package/dist/engine/recoverStall.js +1 -1
  150. package/dist/engine/recoverStall.js.map +1 -1
  151. package/dist/engine/recoverUnobservable.d.ts +1172 -1004
  152. package/dist/engine/recoverUnobservable.d.ts.map +1 -1
  153. package/dist/engine/refreshBrief.d.ts +2344 -2009
  154. package/dist/engine/refreshBrief.d.ts.map +1 -1
  155. package/dist/engine/refreshReviewResult.d.ts +21 -0
  156. package/dist/engine/refreshReviewResult.d.ts.map +1 -1
  157. package/dist/engine/releaseClosedPreparation.d.ts +1171 -1003
  158. package/dist/engine/releaseClosedPreparation.d.ts.map +1 -1
  159. package/dist/engine/releaseExecution.d.ts +1170 -1003
  160. package/dist/engine/releaseExecution.d.ts.map +1 -1
  161. package/dist/engine/releaseFinishedWork.d.ts +10 -0
  162. package/dist/engine/releaseFinishedWork.d.ts.map +1 -1
  163. package/dist/engine/repository.d.ts +1115 -1003
  164. package/dist/engine/repository.d.ts.map +1 -1
  165. package/dist/engine/repository.js +12 -12
  166. package/dist/engine/repository.js.map +1 -1
  167. package/dist/engine/requestConflictRepair.d.ts +1170 -1003
  168. package/dist/engine/requestConflictRepair.d.ts.map +1 -1
  169. package/dist/engine/requestRework.d.ts +20 -0
  170. package/dist/engine/requestRework.d.ts.map +1 -1
  171. package/dist/engine/resolveCommand.d.ts +10 -0
  172. package/dist/engine/resolveCommand.d.ts.map +1 -1
  173. package/dist/engine/resolveExecution.d.ts +1170 -1003
  174. package/dist/engine/resolveExecution.d.ts.map +1 -1
  175. package/dist/engine/resumeAttempt.d.ts +1171 -1003
  176. package/dist/engine/resumeAttempt.d.ts.map +1 -1
  177. package/dist/engine/retireUnacknowledged.d.ts +20 -0
  178. package/dist/engine/retireUnacknowledged.d.ts.map +1 -1
  179. package/dist/engine/retryTerminal.d.ts +1160 -1003
  180. package/dist/engine/retryTerminal.d.ts.map +1 -1
  181. package/dist/engine/saveLaunch.d.ts +10598 -0
  182. package/dist/engine/saveLaunch.d.ts.map +1 -0
  183. package/dist/engine/saveLaunch.js +30 -0
  184. package/dist/engine/saveLaunch.js.map +1 -0
  185. package/dist/engine/scheduler.d.ts +21 -1
  186. package/dist/engine/scheduler.d.ts.map +1 -1
  187. package/dist/engine/scheduler.js +3 -5
  188. package/dist/engine/scheduler.js.map +1 -1
  189. package/dist/engine/sessionCleanup.d.ts +20 -0
  190. package/dist/engine/sessionCleanup.d.ts.map +1 -1
  191. package/dist/engine/settleMergedDelivery.d.ts +1170 -1003
  192. package/dist/engine/settleMergedDelivery.d.ts.map +1 -1
  193. package/dist/engine/steerBrief.d.ts +1075 -898
  194. package/dist/engine/steerBrief.d.ts.map +1 -1
  195. package/dist/engine/submissionFailure.d.ts +1150 -1003
  196. package/dist/engine/submissionFailure.d.ts.map +1 -1
  197. package/dist/engine/submitLaunch.d.ts +1160 -1003
  198. package/dist/engine/submitLaunch.d.ts.map +1 -1
  199. package/dist/engine/views.d.ts.map +1 -1
  200. package/dist/engine/views.js +4 -0
  201. package/dist/engine/views.js.map +1 -1
  202. package/dist/engine/workerReport.d.ts +30 -0
  203. package/dist/engine/workerReport.d.ts.map +1 -1
  204. package/dist/fleet.d.ts +2716 -983
  205. package/dist/fleet.d.ts.map +1 -1
  206. package/dist/fleet.js +4 -0
  207. package/dist/fleet.js.map +1 -1
  208. package/dist/host/actionCommands.d.ts.map +1 -1
  209. package/dist/host/actionCommands.js +7 -6
  210. package/dist/host/actionCommands.js.map +1 -1
  211. package/dist/host/admission.d.ts +24 -1
  212. package/dist/host/admission.d.ts.map +1 -1
  213. package/dist/host/admission.js +2 -2
  214. package/dist/host/admission.js.map +1 -1
  215. package/dist/host/answerWork.d.ts +12 -2
  216. package/dist/host/answerWork.d.ts.map +1 -1
  217. package/dist/host/answerWork.js +19 -23
  218. package/dist/host/answerWork.js.map +1 -1
  219. package/dist/host/cliOptions.d.ts +1 -1
  220. package/dist/host/cliOptions.d.ts.map +1 -1
  221. package/dist/host/cliOptions.js +1 -1
  222. package/dist/host/cliOptions.js.map +1 -1
  223. package/dist/host/commands.d.ts +28 -4
  224. package/dist/host/commands.d.ts.map +1 -1
  225. package/dist/host/commands.js +19 -5
  226. package/dist/host/commands.js.map +1 -1
  227. package/dist/host/config.d.ts +20 -5
  228. package/dist/host/config.d.ts.map +1 -1
  229. package/dist/host/config.js +17 -19
  230. package/dist/host/config.js.map +1 -1
  231. package/dist/host/configFile.d.ts +66 -0
  232. package/dist/host/configFile.d.ts.map +1 -0
  233. package/dist/host/configFile.js +37 -0
  234. package/dist/host/configFile.js.map +1 -0
  235. package/dist/host/configSettings.d.ts +488 -0
  236. package/dist/host/configSettings.d.ts.map +1 -0
  237. package/dist/host/configSettings.js +115 -0
  238. package/dist/host/configSettings.js.map +1 -0
  239. package/dist/host/daemon.d.ts +881 -1185
  240. package/dist/host/daemon.d.ts.map +1 -1
  241. package/dist/host/daemon.js +2 -1
  242. package/dist/host/daemon.js.map +1 -1
  243. package/dist/host/daemonClient.d.ts +301 -605
  244. package/dist/host/daemonClient.d.ts.map +1 -1
  245. package/dist/host/daemonClient.js +28 -7
  246. package/dist/host/daemonClient.js.map +1 -1
  247. package/dist/host/daemonContract.d.ts +1973 -3075
  248. package/dist/host/daemonContract.d.ts.map +1 -1
  249. package/dist/host/daemonContract.js +12 -4
  250. package/dist/host/daemonContract.js.map +1 -1
  251. package/dist/host/daemonDiagnostics.d.ts.map +1 -1
  252. package/dist/host/daemonDiagnostics.js +9 -3
  253. package/dist/host/daemonDiagnostics.js.map +1 -1
  254. package/dist/host/daemonHandlers.d.ts +2 -1
  255. package/dist/host/daemonHandlers.d.ts.map +1 -1
  256. package/dist/host/daemonHandlers.js +20 -7
  257. package/dist/host/daemonHandlers.js.map +1 -1
  258. package/dist/host/daemonSnapshots.d.ts.map +1 -1
  259. package/dist/host/daemonSnapshots.js +21 -1
  260. package/dist/host/daemonSnapshots.js.map +1 -1
  261. package/dist/host/dispatchRequests.d.ts +30 -0
  262. package/dist/host/dispatchRequests.d.ts.map +1 -0
  263. package/dist/host/dispatchRequests.js +40 -0
  264. package/dist/host/dispatchRequests.js.map +1 -0
  265. package/dist/host/follow.js +1 -1
  266. package/dist/host/follow.js.map +1 -1
  267. package/dist/host/followState.d.ts.map +1 -1
  268. package/dist/host/followState.js +5 -4
  269. package/dist/host/followState.js.map +1 -1
  270. package/dist/host/github.d.ts +5 -6
  271. package/dist/host/github.d.ts.map +1 -1
  272. package/dist/host/github.js +3 -4
  273. package/dist/host/github.js.map +1 -1
  274. package/dist/host/githubApi.d.ts +15 -0
  275. package/dist/host/githubApi.d.ts.map +1 -0
  276. package/dist/host/githubApi.js +117 -0
  277. package/dist/host/githubApi.js.map +1 -0
  278. package/dist/host/githubChecks.d.ts +13 -3
  279. package/dist/host/githubChecks.d.ts.map +1 -1
  280. package/dist/host/githubChecks.js +5 -5
  281. package/dist/host/githubChecks.js.map +1 -1
  282. package/dist/host/githubDelivery.d.ts +13 -1
  283. package/dist/host/githubDelivery.d.ts.map +1 -1
  284. package/dist/host/githubDelivery.js +39 -6
  285. package/dist/host/githubDelivery.js.map +1 -1
  286. package/dist/host/githubRateLimit.d.ts +23 -0
  287. package/dist/host/githubRateLimit.d.ts.map +1 -0
  288. package/dist/host/githubRateLimit.js +70 -0
  289. package/dist/host/githubRateLimit.js.map +1 -0
  290. package/dist/host/githubRequiredChecks.d.ts +1 -2
  291. package/dist/host/githubRequiredChecks.d.ts.map +1 -1
  292. package/dist/host/githubRequiredChecks.js +2 -2
  293. package/dist/host/githubRequiredChecks.js.map +1 -1
  294. package/dist/host/githubResponse.d.ts +10 -0
  295. package/dist/host/githubResponse.d.ts.map +1 -0
  296. package/dist/host/githubResponse.js +29 -0
  297. package/dist/host/githubResponse.js.map +1 -0
  298. package/dist/host/githubResult.d.ts +3 -2
  299. package/dist/host/githubResult.d.ts.map +1 -1
  300. package/dist/host/githubResult.js +9 -12
  301. package/dist/host/githubResult.js.map +1 -1
  302. package/dist/host/githubTransport.d.ts +13 -0
  303. package/dist/host/githubTransport.d.ts.map +1 -0
  304. package/dist/host/{githubRead.js → githubTransport.js} +9 -10
  305. package/dist/host/githubTransport.js.map +1 -0
  306. package/dist/host/integrations.d.ts +6 -0
  307. package/dist/host/integrations.d.ts.map +1 -0
  308. package/dist/host/integrations.js +34 -0
  309. package/dist/host/integrations.js.map +1 -0
  310. package/dist/host/liveConfig.d.ts +21 -0
  311. package/dist/host/liveConfig.d.ts.map +1 -0
  312. package/dist/host/liveConfig.js +75 -0
  313. package/dist/host/liveConfig.js.map +1 -0
  314. package/dist/host/providers.d.ts.map +1 -1
  315. package/dist/host/providers.js +2 -2
  316. package/dist/host/providers.js.map +1 -1
  317. package/dist/host/readWaitStates.d.ts.map +1 -1
  318. package/dist/host/readWaitStates.js +8 -18
  319. package/dist/host/readWaitStates.js.map +1 -1
  320. package/dist/host/reassignWork.d.ts +10 -0
  321. package/dist/host/reassignWork.d.ts.map +1 -1
  322. package/dist/host/recordDecisionResponse.d.ts +1 -0
  323. package/dist/host/recordDecisionResponse.d.ts.map +1 -1
  324. package/dist/host/releaseWork.d.ts +24 -3
  325. package/dist/host/releaseWork.d.ts.map +1 -1
  326. package/dist/host/releaseWork.js +11 -7
  327. package/dist/host/releaseWork.js.map +1 -1
  328. package/dist/host/renderStatus.d.ts +2 -2
  329. package/dist/host/renderStatus.d.ts.map +1 -1
  330. package/dist/host/renderStatus.js +8 -2
  331. package/dist/host/renderStatus.js.map +1 -1
  332. package/dist/host/reportBoard.d.ts +1 -1
  333. package/dist/host/reportBoard.d.ts.map +1 -1
  334. package/dist/host/reportBoard.js +6 -3
  335. package/dist/host/reportBoard.js.map +1 -1
  336. package/dist/host/reportPublication.d.ts +2 -1
  337. package/dist/host/reportPublication.d.ts.map +1 -1
  338. package/dist/host/reportPublication.js +5 -2
  339. package/dist/host/reportPublication.js.map +1 -1
  340. package/dist/host/runtime.d.ts +8 -6
  341. package/dist/host/runtime.d.ts.map +1 -1
  342. package/dist/host/runtime.js +38 -46
  343. package/dist/host/runtime.js.map +1 -1
  344. package/dist/host/snapshotStream.d.ts.map +1 -1
  345. package/dist/host/snapshotStream.js +4 -1
  346. package/dist/host/snapshotStream.js.map +1 -1
  347. package/dist/host/status.d.ts +22 -2
  348. package/dist/host/status.d.ts.map +1 -1
  349. package/dist/host/status.js +19 -5
  350. package/dist/host/status.js.map +1 -1
  351. package/dist/host/statusLayer.d.ts +3 -3
  352. package/dist/host/statusLayer.d.ts.map +1 -1
  353. package/dist/host/statusLayer.js +13 -3
  354. package/dist/host/statusLayer.js.map +1 -1
  355. package/dist/host/waitOutcome.d.ts.map +1 -1
  356. package/dist/host/waitOutcome.js +5 -2
  357. package/dist/host/waitOutcome.js.map +1 -1
  358. package/dist/model.d.ts +39 -0
  359. package/dist/model.d.ts.map +1 -1
  360. package/dist/model.js +5 -0
  361. package/dist/model.js.map +1 -1
  362. package/dist/operations.d.ts +270 -0
  363. package/dist/operations.d.ts.map +1 -1
  364. package/dist/packageInfo.d.ts +1 -1
  365. package/dist/packageInfo.js +1 -1
  366. package/dist/policy.d.ts +8 -0
  367. package/dist/policy.d.ts.map +1 -1
  368. package/dist/policy.js +2 -0
  369. package/dist/policy.js.map +1 -1
  370. package/dist/providers/codexCloud.d.ts +2 -0
  371. package/dist/providers/codexCloud.d.ts.map +1 -1
  372. package/dist/providers/codexCloud.js +2 -1
  373. package/dist/providers/codexCloud.js.map +1 -1
  374. package/dist/qualifyDependencies.d.ts +10 -0
  375. package/dist/qualifyDependencies.d.ts.map +1 -1
  376. package/dist/scheduling/admission.d.ts +1635 -0
  377. package/dist/scheduling/admission.d.ts.map +1 -0
  378. package/dist/scheduling/admission.js +11 -0
  379. package/dist/scheduling/admission.js.map +1 -0
  380. package/dist/scheduling/areas.d.ts +30 -0
  381. package/dist/scheduling/areas.d.ts.map +1 -1
  382. package/dist/scheduling/areas.js +1 -0
  383. package/dist/scheduling/areas.js.map +1 -1
  384. package/dist/scheduling/backPressure.d.ts +1637 -0
  385. package/dist/scheduling/backPressure.d.ts.map +1 -0
  386. package/dist/scheduling/backPressure.js +44 -0
  387. package/dist/scheduling/backPressure.js.map +1 -0
  388. package/dist/storage/FleetStoreOptions.d.ts +2 -2
  389. package/dist/storage/FleetStoreOptions.d.ts.map +1 -1
  390. package/dist/storage/addShapeColumns.d.ts +5 -0
  391. package/dist/storage/addShapeColumns.d.ts.map +1 -0
  392. package/dist/storage/addShapeColumns.js +24 -0
  393. package/dist/storage/addShapeColumns.js.map +1 -0
  394. package/dist/storage/dispatchStore.d.ts +47 -0
  395. package/dist/storage/dispatchStore.d.ts.map +1 -0
  396. package/dist/storage/dispatchStore.js +89 -0
  397. package/dist/storage/dispatchStore.js.map +1 -0
  398. package/dist/storage/errors.d.ts +2 -1
  399. package/dist/storage/errors.d.ts.map +1 -1
  400. package/dist/storage/errors.js +2 -1
  401. package/dist/storage/errors.js.map +1 -1
  402. package/dist/storage/fleetMigrations.d.ts +1 -1
  403. package/dist/storage/fleetMigrations.d.ts.map +1 -1
  404. package/dist/storage/fleetMigrations.js +24 -17
  405. package/dist/storage/fleetMigrations.js.map +1 -1
  406. package/dist/storage/listedRecords.d.ts +9 -0
  407. package/dist/storage/listedRecords.d.ts.map +1 -0
  408. package/dist/storage/listedRecords.js +40 -0
  409. package/dist/storage/listedRecords.js.map +1 -0
  410. package/dist/storage/makePostgresFleetStore.d.ts +2 -6
  411. package/dist/storage/makePostgresFleetStore.d.ts.map +1 -1
  412. package/dist/storage/makePostgresFleetStore.js +4 -10
  413. package/dist/storage/makePostgresFleetStore.js.map +1 -1
  414. package/dist/storage/model.d.ts +9 -0
  415. package/dist/storage/model.d.ts.map +1 -1
  416. package/dist/storage/model.js.map +1 -1
  417. package/dist/storage/shapeV14.d.ts +808 -0
  418. package/dist/storage/shapeV14.d.ts.map +1 -0
  419. package/dist/storage/shapeV14.js +18 -0
  420. package/dist/storage/shapeV14.js.map +1 -0
  421. package/package.json +6 -6
  422. package/src/DispatchRequest.ts +13 -0
  423. package/src/attention.ts +5 -0
  424. package/src/board/fleetField.ts +5 -0
  425. package/src/board/markdown.ts +7 -2
  426. package/src/cli.ts +24 -10
  427. package/src/engine/admissionOrder.ts +25 -0
  428. package/src/engine/dispatchCommand.ts +29 -5
  429. package/src/engine/failureContext.ts +1 -0
  430. package/src/engine/failureMessage.ts +12 -1
  431. package/src/engine/localOnlyCriteria.ts +6 -1
  432. package/src/engine/makeLaunch.ts +4 -17
  433. package/src/engine/makeState.ts +30 -26
  434. package/src/engine/mergeReadiness.ts +6 -5
  435. package/src/engine/obtainReview.ts +2 -1
  436. package/src/engine/prepareCommand.ts +1 -1
  437. package/src/engine/readOrContinueReview.ts +2 -1
  438. package/src/engine/readRetry.ts +26 -2
  439. package/src/engine/reconcileAttempt.ts +2 -1
  440. package/src/engine/recordResponseCommand.ts +38 -0
  441. package/src/engine/recoverStall.ts +1 -1
  442. package/src/engine/repository.ts +17 -16
  443. package/src/engine/saveLaunch.ts +45 -0
  444. package/src/engine/scheduler.ts +4 -6
  445. package/src/engine/views.ts +5 -0
  446. package/src/fleet.ts +4 -0
  447. package/src/host/actionCommands.ts +22 -7
  448. package/src/host/admission.ts +3 -3
  449. package/src/host/answerWork.ts +28 -27
  450. package/src/host/cliOptions.ts +1 -1
  451. package/src/host/commands.ts +29 -8
  452. package/src/host/config.ts +26 -22
  453. package/src/host/configFile.ts +40 -0
  454. package/src/host/configSettings.ts +126 -0
  455. package/src/host/daemon.ts +2 -1
  456. package/src/host/daemonClient.ts +42 -7
  457. package/src/host/daemonContract.ts +12 -4
  458. package/src/host/daemonDiagnostics.ts +11 -3
  459. package/src/host/daemonHandlers.ts +24 -7
  460. package/src/host/daemonSnapshots.ts +24 -1
  461. package/src/host/dispatchRequests.ts +53 -0
  462. package/src/host/follow.ts +1 -1
  463. package/src/host/followState.ts +6 -6
  464. package/src/host/github.ts +8 -6
  465. package/src/host/githubApi.ts +142 -0
  466. package/src/host/githubChecks.ts +6 -5
  467. package/src/host/githubDelivery.ts +47 -10
  468. package/src/host/githubRateLimit.ts +91 -0
  469. package/src/host/githubRequiredChecks.ts +2 -2
  470. package/src/host/githubResponse.ts +37 -0
  471. package/src/host/githubResult.ts +15 -17
  472. package/src/host/githubTransport.ts +31 -0
  473. package/src/host/integrations.ts +40 -0
  474. package/src/host/liveConfig.ts +135 -0
  475. package/src/host/providers.ts +4 -2
  476. package/src/host/readWaitStates.ts +8 -20
  477. package/src/host/releaseWork.ts +12 -9
  478. package/src/host/renderStatus.ts +10 -3
  479. package/src/host/reportBoard.ts +6 -3
  480. package/src/host/reportPublication.ts +6 -4
  481. package/src/host/runtime.ts +49 -56
  482. package/src/host/snapshotStream.ts +6 -1
  483. package/src/host/status.ts +24 -7
  484. package/src/host/statusLayer.ts +21 -5
  485. package/src/host/waitOutcome.ts +5 -2
  486. package/src/model.ts +6 -0
  487. package/src/packageInfo.ts +1 -1
  488. package/src/policy.ts +8 -0
  489. package/src/providers/codexCloud.ts +2 -1
  490. package/src/scheduling/admission.ts +19 -0
  491. package/src/scheduling/areas.ts +1 -0
  492. package/src/scheduling/backPressure.ts +55 -0
  493. package/src/storage/FleetStoreOptions.ts +7 -2
  494. package/src/storage/addShapeColumns.ts +24 -0
  495. package/src/storage/dispatchStore.ts +104 -0
  496. package/src/storage/errors.ts +2 -1
  497. package/src/storage/fleetMigrations.ts +24 -17
  498. package/src/storage/listedRecords.ts +53 -0
  499. package/src/storage/makePostgresFleetStore.ts +4 -10
  500. package/src/storage/model.ts +7 -0
  501. package/src/storage/shapeV14.ts +19 -0
  502. package/dist/host/githubRead.d.ts +0 -5
  503. package/dist/host/githubRead.d.ts.map +0 -1
  504. package/dist/host/githubRead.js.map +0 -1
  505. package/dist/host/recordPayloads.d.ts +0 -4
  506. package/dist/host/recordPayloads.d.ts.map +0 -1
  507. package/dist/host/recordPayloads.js +0 -21
  508. package/dist/host/recordPayloads.js.map +0 -1
  509. package/dist/storage/migrateFleet.d.ts +0 -3
  510. package/dist/storage/migrateFleet.d.ts.map +0 -1
  511. package/dist/storage/migrateFleet.js +0 -11
  512. package/dist/storage/migrateFleet.js.map +0 -1
  513. package/src/host/githubRead.ts +0 -20
  514. package/src/host/recordPayloads.ts +0 -24
  515. package/src/storage/migrateFleet.ts +0 -11
@@ -46,6 +46,7 @@ export declare const operationRecord: (store: Omit<{
46
46
  readonly observationRetries?: number | undefined;
47
47
  readonly operationId: string;
48
48
  readonly output?: string | undefined;
49
+ readonly overLimit?: boolean | undefined;
49
50
  readonly progress?: {
50
51
  readonly at: number;
51
52
  readonly signature: string;
@@ -116,6 +117,7 @@ export declare const operationRecord: (store: Omit<{
116
117
  readonly context: string;
117
118
  readonly deliverable?: "report" | undefined;
118
119
  readonly dependsOn: readonly string[];
120
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
119
121
  readonly revision: string;
120
122
  readonly sourcePath: string;
121
123
  readonly status?: string | undefined;
@@ -141,6 +143,9 @@ export declare const operationRecord: (store: Omit<{
141
143
  readonly decisionAcknowledged?: boolean | undefined;
142
144
  readonly decisionPublished?: boolean | undefined;
143
145
  readonly deliverable?: "report" | undefined;
146
+ readonly dispatchNow?: {
147
+ readonly ignoreAreas: boolean;
148
+ } | undefined;
144
149
  readonly integrationRetry?: {
145
150
  readonly error: string;
146
151
  readonly failures: number;
@@ -311,6 +316,7 @@ export declare const operationRecord: (store: Omit<{
311
316
  readonly observationRetries?: number | undefined;
312
317
  readonly operationId: string;
313
318
  readonly output?: string | undefined;
319
+ readonly overLimit?: boolean | undefined;
314
320
  readonly progress?: {
315
321
  readonly at: number;
316
322
  readonly signature: string;
@@ -381,6 +387,7 @@ export declare const operationRecord: (store: Omit<{
381
387
  readonly context: string;
382
388
  readonly deliverable?: "report" | undefined;
383
389
  readonly dependsOn: readonly string[];
390
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
384
391
  readonly revision: string;
385
392
  readonly sourcePath: string;
386
393
  readonly status?: string | undefined;
@@ -406,6 +413,9 @@ export declare const operationRecord: (store: Omit<{
406
413
  readonly decisionAcknowledged?: boolean | undefined;
407
414
  readonly decisionPublished?: boolean | undefined;
408
415
  readonly deliverable?: "report" | undefined;
416
+ readonly dispatchNow?: {
417
+ readonly ignoreAreas: boolean;
418
+ } | undefined;
409
419
  readonly integrationRetry?: {
410
420
  readonly error: string;
411
421
  readonly failures: number;
@@ -580,6 +590,7 @@ export declare const operationRecord: (store: Omit<{
580
590
  readonly observationRetries?: number | undefined;
581
591
  readonly operationId: string;
582
592
  readonly output?: string | undefined;
593
+ readonly overLimit?: boolean | undefined;
583
594
  readonly progress?: {
584
595
  readonly at: number;
585
596
  readonly signature: string;
@@ -650,6 +661,7 @@ export declare const operationRecord: (store: Omit<{
650
661
  readonly context: string;
651
662
  readonly deliverable?: "report" | undefined;
652
663
  readonly dependsOn: readonly string[];
664
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
653
665
  readonly revision: string;
654
666
  readonly sourcePath: string;
655
667
  readonly status?: string | undefined;
@@ -675,6 +687,9 @@ export declare const operationRecord: (store: Omit<{
675
687
  readonly decisionAcknowledged?: boolean | undefined;
676
688
  readonly decisionPublished?: boolean | undefined;
677
689
  readonly deliverable?: "report" | undefined;
690
+ readonly dispatchNow?: {
691
+ readonly ignoreAreas: boolean;
692
+ } | undefined;
678
693
  readonly integrationRetry?: {
679
694
  readonly error: string;
680
695
  readonly failures: number;
@@ -845,6 +860,7 @@ export declare const operationRecord: (store: Omit<{
845
860
  readonly observationRetries?: number | undefined;
846
861
  readonly operationId: string;
847
862
  readonly output?: string | undefined;
863
+ readonly overLimit?: boolean | undefined;
848
864
  readonly progress?: {
849
865
  readonly at: number;
850
866
  readonly signature: string;
@@ -915,6 +931,7 @@ export declare const operationRecord: (store: Omit<{
915
931
  readonly context: string;
916
932
  readonly deliverable?: "report" | undefined;
917
933
  readonly dependsOn: readonly string[];
934
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
918
935
  readonly revision: string;
919
936
  readonly sourcePath: string;
920
937
  readonly status?: string | undefined;
@@ -940,6 +957,9 @@ export declare const operationRecord: (store: Omit<{
940
957
  readonly decisionAcknowledged?: boolean | undefined;
941
958
  readonly decisionPublished?: boolean | undefined;
942
959
  readonly deliverable?: "report" | undefined;
960
+ readonly dispatchNow?: {
961
+ readonly ignoreAreas: boolean;
962
+ } | undefined;
943
963
  readonly integrationRetry?: {
944
964
  readonly error: string;
945
965
  readonly failures: number;
@@ -1081,7 +1101,6 @@ export declare const operationRecord: (store: Omit<{
1081
1101
  version: number;
1082
1102
  }, 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>;
1083
1103
  hasLaunchRetry: () => Effect.Effect<boolean, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
1084
- initialize: () => Effect.Effect<readonly (readonly [id: number, name: string])[], import("effect/sql/Migrator").MigrationError | import("effect/sql/SqlError").SqlError, never>;
1085
1104
  insert: (record: {
1086
1105
  readonly admissionReady?: boolean | undefined;
1087
1106
  readonly areas?: readonly string[] | undefined;
@@ -1118,6 +1137,7 @@ export declare const operationRecord: (store: Omit<{
1118
1137
  readonly observationRetries?: number | undefined;
1119
1138
  readonly operationId: string;
1120
1139
  readonly output?: string | undefined;
1140
+ readonly overLimit?: boolean | undefined;
1121
1141
  readonly progress?: {
1122
1142
  readonly at: number;
1123
1143
  readonly signature: string;
@@ -1188,6 +1208,7 @@ export declare const operationRecord: (store: Omit<{
1188
1208
  readonly context: string;
1189
1209
  readonly deliverable?: "report" | undefined;
1190
1210
  readonly dependsOn: readonly string[];
1211
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
1191
1212
  readonly revision: string;
1192
1213
  readonly sourcePath: string;
1193
1214
  readonly status?: string | undefined;
@@ -1213,6 +1234,9 @@ export declare const operationRecord: (store: Omit<{
1213
1234
  readonly decisionAcknowledged?: boolean | undefined;
1214
1235
  readonly decisionPublished?: boolean | undefined;
1215
1236
  readonly deliverable?: "report" | undefined;
1237
+ readonly dispatchNow?: {
1238
+ readonly ignoreAreas: boolean;
1239
+ } | undefined;
1216
1240
  readonly integrationRetry?: {
1217
1241
  readonly error: string;
1218
1242
  readonly failures: number;
@@ -1383,6 +1407,7 @@ export declare const operationRecord: (store: Omit<{
1383
1407
  readonly observationRetries?: number | undefined;
1384
1408
  readonly operationId: string;
1385
1409
  readonly output?: string | undefined;
1410
+ readonly overLimit?: boolean | undefined;
1386
1411
  readonly progress?: {
1387
1412
  readonly at: number;
1388
1413
  readonly signature: string;
@@ -1453,6 +1478,7 @@ export declare const operationRecord: (store: Omit<{
1453
1478
  readonly context: string;
1454
1479
  readonly deliverable?: "report" | undefined;
1455
1480
  readonly dependsOn: readonly string[];
1481
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
1456
1482
  readonly revision: string;
1457
1483
  readonly sourcePath: string;
1458
1484
  readonly status?: string | undefined;
@@ -1478,6 +1504,9 @@ export declare const operationRecord: (store: Omit<{
1478
1504
  readonly decisionAcknowledged?: boolean | undefined;
1479
1505
  readonly decisionPublished?: boolean | undefined;
1480
1506
  readonly deliverable?: "report" | undefined;
1507
+ readonly dispatchNow?: {
1508
+ readonly ignoreAreas: boolean;
1509
+ } | undefined;
1481
1510
  readonly integrationRetry?: {
1482
1511
  readonly error: string;
1483
1512
  readonly failures: number;
@@ -1652,6 +1681,7 @@ export declare const operationRecord: (store: Omit<{
1652
1681
  readonly observationRetries?: number | undefined;
1653
1682
  readonly operationId: string;
1654
1683
  readonly output?: string | undefined;
1684
+ readonly overLimit?: boolean | undefined;
1655
1685
  readonly progress?: {
1656
1686
  readonly at: number;
1657
1687
  readonly signature: string;
@@ -1722,6 +1752,7 @@ export declare const operationRecord: (store: Omit<{
1722
1752
  readonly context: string;
1723
1753
  readonly deliverable?: "report" | undefined;
1724
1754
  readonly dependsOn: readonly string[];
1755
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
1725
1756
  readonly revision: string;
1726
1757
  readonly sourcePath: string;
1727
1758
  readonly status?: string | undefined;
@@ -1747,6 +1778,9 @@ export declare const operationRecord: (store: Omit<{
1747
1778
  readonly decisionAcknowledged?: boolean | undefined;
1748
1779
  readonly decisionPublished?: boolean | undefined;
1749
1780
  readonly deliverable?: "report" | undefined;
1781
+ readonly dispatchNow?: {
1782
+ readonly ignoreAreas: boolean;
1783
+ } | undefined;
1750
1784
  readonly integrationRetry?: {
1751
1785
  readonly error: string;
1752
1786
  readonly failures: number;
@@ -1917,6 +1951,7 @@ export declare const operationRecord: (store: Omit<{
1917
1951
  readonly observationRetries?: number | undefined;
1918
1952
  readonly operationId: string;
1919
1953
  readonly output?: string | undefined;
1954
+ readonly overLimit?: boolean | undefined;
1920
1955
  readonly progress?: {
1921
1956
  readonly at: number;
1922
1957
  readonly signature: string;
@@ -1987,6 +2022,7 @@ export declare const operationRecord: (store: Omit<{
1987
2022
  readonly context: string;
1988
2023
  readonly deliverable?: "report" | undefined;
1989
2024
  readonly dependsOn: readonly string[];
2025
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
1990
2026
  readonly revision: string;
1991
2027
  readonly sourcePath: string;
1992
2028
  readonly status?: string | undefined;
@@ -2012,6 +2048,9 @@ export declare const operationRecord: (store: Omit<{
2012
2048
  readonly decisionAcknowledged?: boolean | undefined;
2013
2049
  readonly decisionPublished?: boolean | undefined;
2014
2050
  readonly deliverable?: "report" | undefined;
2051
+ readonly dispatchNow?: {
2052
+ readonly ignoreAreas: boolean;
2053
+ } | undefined;
2015
2054
  readonly integrationRetry?: {
2016
2055
  readonly error: string;
2017
2056
  readonly failures: number;
@@ -2152,248 +2191,522 @@ export declare const operationRecord: (store: Omit<{
2152
2191
  };
2153
2192
  version: number;
2154
2193
  }, 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>;
2155
- list: () => Effect.Effect<{
2156
- value: {
2157
- readonly admissionReady?: boolean | undefined;
2158
- readonly areas?: readonly string[] | undefined;
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 {
2194
+ list: () => Effect.Effect<import("../storage/model.ts").Versioned<{
2195
+ readonly admissionReady?: boolean | undefined;
2196
+ readonly areas?: readonly string[] | undefined;
2197
+ readonly attempts: readonly {
2198
+ readonly abandoned?: {
2199
+ readonly at: number;
2200
+ readonly interruptError?: string | undefined;
2201
+ readonly observation?: {
2202
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
2182
2203
  readonly error?: string | undefined;
2183
- readonly requestedAt: number;
2184
- readonly revision: string;
2185
- readonly steeredAt?: number | undefined;
2186
- }[] | undefined;
2187
- readonly checkFailures?: readonly string[] | undefined;
2188
- readonly missingSince?: number | undefined;
2189
- readonly observationRetries?: number | undefined;
2190
- readonly operationId: string;
2191
- readonly output?: string | undefined;
2192
- readonly progress?: {
2193
- readonly at: number;
2194
- readonly signature: string;
2195
- } | undefined;
2196
- readonly prompt?: string | undefined;
2197
- readonly providerFailures?: number | undefined;
2198
- readonly readRetry?: {
2199
- readonly error: string;
2200
- readonly failures: number;
2201
- readonly retryAt: number;
2202
- } | undefined;
2203
- readonly receipt?: {
2204
- readonly sessionId: string;
2205
- readonly turnId: string;
2206
- } | undefined;
2207
- readonly reviewHead?: string | undefined;
2208
- readonly reviewRevision?: string | undefined;
2209
- readonly role: "repair" | "reviewer" | "worker";
2210
- readonly sessionCleanupComplete?: boolean | undefined;
2211
- readonly sessionId?: string | undefined;
2212
- readonly sessionUnusable?: boolean | undefined;
2213
- readonly settings?: {
2214
- readonly effort?: string | undefined;
2215
- readonly model?: string | undefined;
2216
- readonly serviceTier?: string | undefined;
2217
- } | undefined;
2218
- readonly stallRecovery?: {
2219
- readonly count: number;
2220
- readonly interruptedAt?: number | undefined;
2221
- readonly interruptRequestedAt?: number | undefined;
2222
- readonly lastActionAt: number;
2223
- readonly steeredAt?: number | undefined;
2204
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
2205
+ readonly output: string;
2206
+ readonly progress?: readonly {
2207
+ readonly id: string;
2208
+ readonly status?: string | undefined;
2209
+ }[] | undefined;
2210
+ readonly provisioning: "ready" | "unknown";
2211
+ readonly receipt: {
2212
+ readonly sessionId: string;
2213
+ readonly turnId: string;
2214
+ };
2215
+ readonly turnMissing?: boolean | undefined;
2224
2216
  } | undefined;
2225
- readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
2226
- readonly submissionTimedOut?: boolean | undefined;
2227
- readonly submissionUncertain?: boolean | undefined;
2228
- readonly submittedAt: number;
2229
- readonly terminalReceipts?: readonly {
2230
- readonly sessionId: string;
2231
- readonly turnId: string;
2232
- }[] | undefined;
2233
- }[];
2234
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
2235
- readonly blocker?: string | undefined;
2236
- readonly boardContext?: string | undefined;
2237
- readonly boardRevision: string;
2238
- readonly boardSourcePath?: string | undefined;
2239
- readonly checks?: {
2240
- readonly evidence: readonly string[];
2241
- readonly failedChecks?: readonly string[] | undefined;
2242
- readonly head: string;
2243
- readonly passed: boolean;
2244
- readonly pending?: boolean | undefined;
2245
- readonly repairPrompt?: string | undefined;
2217
+ readonly observationError?: string | undefined;
2246
2218
  } | undefined;
2247
- readonly completedAt?: number | undefined;
2248
- readonly conflictRepairs?: readonly string[] | undefined;
2249
- readonly cwd: string;
2250
- readonly decision?: {
2251
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
2252
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2253
- readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
2254
- readonly id: string;
2255
- readonly links: readonly string[];
2256
- readonly publicationWork?: {
2257
- readonly approved: boolean;
2258
- readonly areas?: readonly string[] | undefined;
2259
- readonly context: string;
2260
- readonly deliverable?: "report" | undefined;
2261
- readonly dependsOn: readonly string[];
2262
- readonly revision: string;
2263
- readonly sourcePath: string;
2264
- readonly status?: string | undefined;
2265
- readonly workId: string;
2266
- } | undefined;
2267
- readonly published?: {
2268
- readonly itemId: string;
2269
- readonly questionId: string;
2270
- readonly request: string;
2271
- readonly revision: string;
2272
- readonly sourcePath: string;
2273
- readonly workId: string;
2274
- readonly workRevision: string;
2275
- readonly workSourcePath: string;
2276
- } | undefined;
2277
- readonly reason: string;
2278
- readonly recommendation: string;
2279
- readonly worker?: {
2280
- readonly sessionId: string;
2281
- readonly turnId: string;
2282
- } | undefined;
2219
+ readonly briefSteers?: readonly {
2220
+ readonly error?: string | undefined;
2221
+ readonly requestedAt: number;
2222
+ readonly revision: string;
2223
+ readonly steeredAt?: number | undefined;
2224
+ }[] | undefined;
2225
+ readonly checkFailures?: readonly string[] | undefined;
2226
+ readonly missingSince?: number | undefined;
2227
+ readonly observationRetries?: number | undefined;
2228
+ readonly operationId: string;
2229
+ readonly output?: string | undefined;
2230
+ readonly overLimit?: boolean | undefined;
2231
+ readonly progress?: {
2232
+ readonly at: number;
2233
+ readonly signature: string;
2283
2234
  } | undefined;
2284
- readonly decisionAcknowledged?: boolean | undefined;
2285
- readonly decisionPublished?: boolean | undefined;
2286
- readonly deliverable?: "report" | undefined;
2287
- readonly integrationRetry?: {
2235
+ readonly prompt?: string | undefined;
2236
+ readonly providerFailures?: number | undefined;
2237
+ readonly readRetry?: {
2288
2238
  readonly error: string;
2289
2239
  readonly failures: number;
2290
2240
  readonly retryAt: number;
2291
2241
  } | undefined;
2292
- readonly launch?: {
2242
+ readonly receipt?: {
2243
+ readonly sessionId: string;
2244
+ readonly turnId: string;
2245
+ } | undefined;
2246
+ readonly reviewHead?: string | undefined;
2247
+ readonly reviewRevision?: string | undefined;
2248
+ readonly role: "repair" | "reviewer" | "worker";
2249
+ readonly sessionCleanupComplete?: boolean | undefined;
2250
+ readonly sessionId?: string | undefined;
2251
+ readonly sessionUnusable?: boolean | undefined;
2252
+ readonly settings?: {
2293
2253
  readonly effort?: string | undefined;
2294
2254
  readonly model?: string | undefined;
2295
2255
  readonly serviceTier?: string | undefined;
2296
2256
  } | undefined;
2297
- readonly launchRetry?: {
2298
- readonly prompt?: string | undefined;
2299
- readonly rejectedAt: number;
2300
- readonly rejections: number;
2301
- readonly retryAt: number;
2257
+ readonly stallRecovery?: {
2258
+ readonly count: number;
2259
+ readonly interruptedAt?: number | undefined;
2260
+ readonly interruptRequestedAt?: number | undefined;
2261
+ readonly lastActionAt: number;
2262
+ readonly steeredAt?: number | undefined;
2302
2263
  } | undefined;
2303
- readonly mergeAreasReleased?: boolean | undefined;
2304
- readonly mergeReadyAt?: number | undefined;
2305
- readonly mergeReadyHead?: string | undefined;
2306
- readonly outcome?: {
2307
- readonly head: string;
2264
+ readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
2265
+ readonly submissionTimedOut?: boolean | undefined;
2266
+ readonly submissionUncertain?: boolean | undefined;
2267
+ readonly submittedAt: number;
2268
+ readonly terminalReceipts?: readonly {
2269
+ readonly sessionId: string;
2270
+ readonly turnId: string;
2271
+ }[] | undefined;
2272
+ }[];
2273
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
2274
+ readonly blocker?: string | undefined;
2275
+ readonly boardContext?: string | undefined;
2276
+ readonly boardRevision: string;
2277
+ readonly boardSourcePath?: string | undefined;
2278
+ readonly checks?: {
2279
+ readonly evidence: readonly string[];
2280
+ readonly failedChecks?: readonly string[] | undefined;
2281
+ readonly head: string;
2282
+ readonly passed: boolean;
2283
+ readonly pending?: boolean | undefined;
2284
+ readonly repairPrompt?: string | undefined;
2285
+ } | undefined;
2286
+ readonly completedAt?: number | undefined;
2287
+ readonly conflictRepairs?: readonly string[] | undefined;
2288
+ readonly cwd: string;
2289
+ readonly decision?: {
2290
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
2291
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2292
+ readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
2293
+ readonly id: string;
2294
+ readonly links: readonly string[];
2295
+ readonly publicationWork?: {
2296
+ readonly approved: boolean;
2297
+ readonly areas?: readonly string[] | undefined;
2298
+ readonly context: string;
2299
+ readonly deliverable?: "report" | undefined;
2300
+ readonly dependsOn: readonly string[];
2301
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
2308
2302
  readonly revision: string;
2309
- readonly url: string;
2310
- } | {
2311
- readonly evidence: readonly string[];
2303
+ readonly sourcePath: string;
2304
+ readonly status?: string | undefined;
2305
+ readonly workId: string;
2312
2306
  } | undefined;
2313
- readonly pendingAnswers?: readonly string[] | undefined;
2314
- readonly preparation: {
2315
- readonly baselinePaths: readonly string[];
2316
- readonly baseRevision: string;
2317
- readonly configuration: readonly {
2318
- readonly path: string;
2319
- readonly relevantKeys: readonly string[];
2320
- }[];
2321
- readonly contextComplete: boolean;
2322
- readonly dependencyPaths: readonly string[];
2323
- readonly observedAt: number;
2324
- readonly ownedPaths: readonly string[];
2325
- readonly qualityPaths: readonly string[];
2326
- readonly setupPaths: readonly string[];
2327
- readonly sourcePaths: readonly string[];
2328
- readonly validation: readonly {
2329
- readonly command: string;
2330
- readonly revision: string;
2331
- }[];
2307
+ readonly published?: {
2308
+ readonly itemId: string;
2309
+ readonly questionId: string;
2310
+ readonly request: string;
2311
+ readonly revision: string;
2312
+ readonly sourcePath: string;
2313
+ readonly workId: string;
2314
+ readonly workRevision: string;
2315
+ readonly workSourcePath: string;
2316
+ } | undefined;
2317
+ readonly reason: string;
2318
+ readonly recommendation: string;
2319
+ readonly worker?: {
2320
+ readonly sessionId: string;
2321
+ readonly turnId: string;
2322
+ } | undefined;
2323
+ } | undefined;
2324
+ readonly decisionAcknowledged?: boolean | undefined;
2325
+ readonly decisionPublished?: boolean | undefined;
2326
+ readonly deliverable?: "report" | undefined;
2327
+ readonly dispatchNow?: {
2328
+ readonly ignoreAreas: boolean;
2329
+ } | undefined;
2330
+ readonly integrationRetry?: {
2331
+ readonly error: string;
2332
+ readonly failures: number;
2333
+ readonly retryAt: number;
2334
+ } | undefined;
2335
+ readonly launch?: {
2336
+ readonly effort?: string | undefined;
2337
+ readonly model?: string | undefined;
2338
+ readonly serviceTier?: string | undefined;
2339
+ } | undefined;
2340
+ readonly launchRetry?: {
2341
+ readonly prompt?: string | undefined;
2342
+ readonly rejectedAt: number;
2343
+ readonly rejections: number;
2344
+ readonly retryAt: number;
2345
+ } | undefined;
2346
+ readonly mergeAreasReleased?: boolean | undefined;
2347
+ readonly mergeReadyAt?: number | undefined;
2348
+ readonly mergeReadyHead?: string | undefined;
2349
+ readonly outcome?: {
2350
+ readonly head: string;
2351
+ readonly revision: string;
2352
+ readonly url: string;
2353
+ } | {
2354
+ readonly evidence: readonly string[];
2355
+ } | undefined;
2356
+ readonly pendingAnswers?: readonly string[] | undefined;
2357
+ readonly preparation: {
2358
+ readonly baselinePaths: readonly string[];
2359
+ readonly baseRevision: string;
2360
+ readonly configuration: readonly {
2361
+ readonly path: string;
2362
+ readonly relevantKeys: readonly string[];
2363
+ }[];
2364
+ readonly contextComplete: boolean;
2365
+ readonly dependencyPaths: readonly string[];
2366
+ readonly observedAt: number;
2367
+ readonly ownedPaths: readonly string[];
2368
+ readonly qualityPaths: readonly string[];
2369
+ readonly setupPaths: readonly string[];
2370
+ readonly sourcePaths: readonly string[];
2371
+ readonly validation: readonly {
2372
+ readonly command: string;
2373
+ readonly revision: string;
2374
+ }[];
2375
+ };
2376
+ readonly prompt: string;
2377
+ readonly releaseReason?: string | undefined;
2378
+ readonly report?: {
2379
+ readonly itemId: string;
2380
+ readonly receipt: {
2381
+ readonly sessionId: string;
2382
+ readonly turnId: string;
2332
2383
  };
2333
- readonly prompt: string;
2334
- readonly releaseReason?: string | undefined;
2335
- readonly report?: {
2384
+ readonly revision: string;
2385
+ readonly sourcePath: string;
2386
+ readonly workRevision: string;
2387
+ } | undefined;
2388
+ readonly responses?: readonly {
2389
+ readonly action?: "continue" | "release" | "retry" | undefined;
2390
+ readonly boardAcknowledged?: boolean | undefined;
2391
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2392
+ readonly decisionId: string;
2393
+ readonly processedAt: number;
2394
+ readonly published?: {
2336
2395
  readonly itemId: string;
2337
- readonly receipt: {
2338
- readonly sessionId: string;
2339
- readonly turnId: string;
2340
- };
2396
+ readonly questionId: string;
2397
+ readonly request: string;
2341
2398
  readonly revision: string;
2342
2399
  readonly sourcePath: string;
2400
+ readonly workId: string;
2343
2401
  readonly workRevision: string;
2402
+ readonly workSourcePath: string;
2344
2403
  } | undefined;
2345
- readonly responses?: readonly {
2346
- readonly action?: "continue" | "release" | "retry" | undefined;
2347
- readonly boardAcknowledged?: boolean | undefined;
2348
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2404
+ readonly questionId: string;
2405
+ readonly questionRevision: string;
2406
+ readonly responseId: string;
2407
+ readonly type: "answer" | "clarify" | "not_now";
2408
+ }[] | undefined;
2409
+ readonly result?: {
2410
+ readonly head: string;
2411
+ readonly kind: "change";
2412
+ readonly paths: readonly string[];
2413
+ readonly pr: string;
2414
+ readonly prNumber?: number | undefined;
2415
+ } | {
2416
+ readonly evidence: readonly string[];
2417
+ readonly head: string;
2418
+ readonly kind: "no-change";
2419
+ } | undefined;
2420
+ readonly resultObservations?: readonly ({
2421
+ readonly head: string;
2422
+ readonly kind: "change";
2423
+ readonly paths: readonly string[];
2424
+ readonly pr: string;
2425
+ readonly prNumber?: number | undefined;
2426
+ } | {
2427
+ readonly evidence: readonly string[];
2428
+ readonly head: string;
2429
+ readonly kind: "no-change";
2430
+ })[] | undefined;
2431
+ readonly review?: {
2432
+ readonly evidence: readonly string[];
2433
+ readonly findings?: readonly string[] | undefined;
2434
+ readonly head: string;
2435
+ readonly receipt: {
2436
+ readonly sessionId: string;
2437
+ readonly turnId: string;
2438
+ };
2439
+ readonly repairPrompt: string;
2440
+ readonly verdict: "approved" | "changes";
2441
+ } | undefined;
2442
+ readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
2443
+ readonly stageEnteredAt?: number | undefined;
2444
+ readonly supersededDecisions?: readonly {
2445
+ readonly boardAcknowledged?: boolean | undefined;
2446
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2447
+ readonly published: {
2448
+ readonly itemId: string;
2449
+ readonly questionId: string;
2450
+ readonly request: string;
2451
+ readonly revision: string;
2452
+ readonly sourcePath: string;
2453
+ readonly workId: string;
2454
+ readonly workRevision: string;
2455
+ readonly workSourcePath: string;
2456
+ };
2457
+ readonly reassignedTo?: {
2458
+ readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
2349
2459
  readonly decisionId: string;
2350
- readonly processedAt: number;
2351
- readonly published?: {
2352
- readonly itemId: string;
2353
- readonly questionId: string;
2354
- readonly request: string;
2460
+ } | undefined;
2461
+ readonly supersededAt: number;
2462
+ }[] | undefined;
2463
+ readonly updatedAt?: number | undefined;
2464
+ readonly history?: readonly {
2465
+ readonly admissionReady?: boolean | undefined;
2466
+ readonly areas?: readonly string[] | undefined;
2467
+ readonly attempts: readonly {
2468
+ readonly abandoned?: {
2469
+ readonly at: number;
2470
+ readonly interruptError?: string | undefined;
2471
+ readonly observation?: {
2472
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
2473
+ readonly error?: string | undefined;
2474
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
2475
+ readonly output: string;
2476
+ readonly progress?: readonly {
2477
+ readonly id: string;
2478
+ readonly status?: string | undefined;
2479
+ }[] | undefined;
2480
+ readonly provisioning: "ready" | "unknown";
2481
+ readonly receipt: {
2482
+ readonly sessionId: string;
2483
+ readonly turnId: string;
2484
+ };
2485
+ readonly turnMissing?: boolean | undefined;
2486
+ } | undefined;
2487
+ readonly observationError?: string | undefined;
2488
+ } | undefined;
2489
+ readonly briefSteers?: readonly {
2490
+ readonly error?: string | undefined;
2491
+ readonly requestedAt: number;
2355
2492
  readonly revision: string;
2356
- readonly sourcePath: string;
2357
- readonly workId: string;
2358
- readonly workRevision: string;
2359
- readonly workSourcePath: string;
2493
+ readonly steeredAt?: number | undefined;
2494
+ }[] | undefined;
2495
+ readonly checkFailures?: readonly string[] | undefined;
2496
+ readonly missingSince?: number | undefined;
2497
+ readonly observationRetries?: number | undefined;
2498
+ readonly operationId: string;
2499
+ readonly output?: string | undefined;
2500
+ readonly overLimit?: boolean | undefined;
2501
+ readonly progress?: {
2502
+ readonly at: number;
2503
+ readonly signature: string;
2360
2504
  } | undefined;
2361
- readonly questionId: string;
2362
- readonly questionRevision: string;
2363
- readonly responseId: string;
2364
- readonly type: "answer" | "clarify" | "not_now";
2365
- }[] | undefined;
2366
- readonly result?: {
2367
- readonly head: string;
2368
- readonly kind: "change";
2369
- readonly paths: readonly string[];
2370
- readonly pr: string;
2371
- readonly prNumber?: number | undefined;
2372
- } | {
2373
- readonly evidence: readonly string[];
2374
- readonly head: string;
2375
- readonly kind: "no-change";
2376
- } | undefined;
2377
- readonly resultObservations?: readonly ({
2378
- readonly head: string;
2379
- readonly kind: "change";
2380
- readonly paths: readonly string[];
2381
- readonly pr: string;
2382
- readonly prNumber?: number | undefined;
2383
- } | {
2384
- readonly evidence: readonly string[];
2385
- readonly head: string;
2386
- readonly kind: "no-change";
2387
- })[] | undefined;
2388
- readonly review?: {
2389
- readonly evidence: readonly string[];
2390
- readonly findings?: readonly string[] | undefined;
2391
- readonly head: string;
2392
- readonly receipt: {
2505
+ readonly prompt?: string | undefined;
2506
+ readonly providerFailures?: number | undefined;
2507
+ readonly readRetry?: {
2508
+ readonly error: string;
2509
+ readonly failures: number;
2510
+ readonly retryAt: number;
2511
+ } | undefined;
2512
+ readonly receipt?: {
2393
2513
  readonly sessionId: string;
2394
2514
  readonly turnId: string;
2395
- };
2396
- readonly repairPrompt: string;
2515
+ } | undefined;
2516
+ readonly reviewHead?: string | undefined;
2517
+ readonly reviewRevision?: string | undefined;
2518
+ readonly role: "repair" | "reviewer" | "worker";
2519
+ readonly sessionCleanupComplete?: boolean | undefined;
2520
+ readonly sessionId?: string | undefined;
2521
+ readonly sessionUnusable?: boolean | undefined;
2522
+ readonly settings?: {
2523
+ readonly effort?: string | undefined;
2524
+ readonly model?: string | undefined;
2525
+ readonly serviceTier?: string | undefined;
2526
+ } | undefined;
2527
+ readonly stallRecovery?: {
2528
+ readonly count: number;
2529
+ readonly interruptedAt?: number | undefined;
2530
+ readonly interruptRequestedAt?: number | undefined;
2531
+ readonly lastActionAt: number;
2532
+ readonly steeredAt?: number | undefined;
2533
+ } | undefined;
2534
+ readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
2535
+ readonly submissionTimedOut?: boolean | undefined;
2536
+ readonly submissionUncertain?: boolean | undefined;
2537
+ readonly submittedAt: number;
2538
+ readonly terminalReceipts?: readonly {
2539
+ readonly sessionId: string;
2540
+ readonly turnId: string;
2541
+ }[] | undefined;
2542
+ }[];
2543
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
2544
+ readonly blocker?: string | undefined;
2545
+ readonly boardContext?: string | undefined;
2546
+ readonly boardRevision: string;
2547
+ readonly boardSourcePath?: string | undefined;
2548
+ readonly checks?: {
2549
+ readonly evidence: readonly string[];
2550
+ readonly failedChecks?: readonly string[] | undefined;
2551
+ readonly head: string;
2552
+ readonly passed: boolean;
2553
+ readonly pending?: boolean | undefined;
2554
+ readonly repairPrompt?: string | undefined;
2555
+ } | undefined;
2556
+ readonly completedAt?: number | undefined;
2557
+ readonly conflictRepairs?: readonly string[] | undefined;
2558
+ readonly cwd: string;
2559
+ readonly decision?: {
2560
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
2561
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2562
+ readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
2563
+ readonly id: string;
2564
+ readonly links: readonly string[];
2565
+ readonly publicationWork?: {
2566
+ readonly approved: boolean;
2567
+ readonly areas?: readonly string[] | undefined;
2568
+ readonly context: string;
2569
+ readonly deliverable?: "report" | undefined;
2570
+ readonly dependsOn: readonly string[];
2571
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
2572
+ readonly revision: string;
2573
+ readonly sourcePath: string;
2574
+ readonly status?: string | undefined;
2575
+ readonly workId: string;
2576
+ } | undefined;
2577
+ readonly published?: {
2578
+ readonly itemId: string;
2579
+ readonly questionId: string;
2580
+ readonly request: string;
2581
+ readonly revision: string;
2582
+ readonly sourcePath: string;
2583
+ readonly workId: string;
2584
+ readonly workRevision: string;
2585
+ readonly workSourcePath: string;
2586
+ } | undefined;
2587
+ readonly reason: string;
2588
+ readonly recommendation: string;
2589
+ readonly worker?: {
2590
+ readonly sessionId: string;
2591
+ readonly turnId: string;
2592
+ } | undefined;
2593
+ } | undefined;
2594
+ readonly decisionAcknowledged?: boolean | undefined;
2595
+ readonly decisionPublished?: boolean | undefined;
2596
+ readonly deliverable?: "report" | undefined;
2597
+ readonly dispatchNow?: {
2598
+ readonly ignoreAreas: boolean;
2599
+ } | undefined;
2600
+ readonly integrationRetry?: {
2601
+ readonly error: string;
2602
+ readonly failures: number;
2603
+ readonly retryAt: number;
2604
+ } | undefined;
2605
+ readonly launch?: {
2606
+ readonly effort?: string | undefined;
2607
+ readonly model?: string | undefined;
2608
+ readonly serviceTier?: string | undefined;
2609
+ } | undefined;
2610
+ readonly launchRetry?: {
2611
+ readonly prompt?: string | undefined;
2612
+ readonly rejectedAt: number;
2613
+ readonly rejections: number;
2614
+ readonly retryAt: number;
2615
+ } | undefined;
2616
+ readonly mergeAreasReleased?: boolean | undefined;
2617
+ readonly mergeReadyAt?: number | undefined;
2618
+ readonly mergeReadyHead?: string | undefined;
2619
+ readonly outcome?: {
2620
+ readonly head: string;
2621
+ readonly revision: string;
2622
+ readonly url: string;
2623
+ } | {
2624
+ readonly evidence: readonly string[];
2625
+ } | undefined;
2626
+ readonly pendingAnswers?: readonly string[] | undefined;
2627
+ readonly preparation: {
2628
+ readonly baselinePaths: readonly string[];
2629
+ readonly baseRevision: string;
2630
+ readonly configuration: readonly {
2631
+ readonly path: string;
2632
+ readonly relevantKeys: readonly string[];
2633
+ }[];
2634
+ readonly contextComplete: boolean;
2635
+ readonly dependencyPaths: readonly string[];
2636
+ readonly observedAt: number;
2637
+ readonly ownedPaths: readonly string[];
2638
+ readonly qualityPaths: readonly string[];
2639
+ readonly setupPaths: readonly string[];
2640
+ readonly sourcePaths: readonly string[];
2641
+ readonly validation: readonly {
2642
+ readonly command: string;
2643
+ readonly revision: string;
2644
+ }[];
2645
+ };
2646
+ readonly prompt: string;
2647
+ readonly releaseReason?: string | undefined;
2648
+ readonly report?: {
2649
+ readonly itemId: string;
2650
+ readonly receipt: {
2651
+ readonly sessionId: string;
2652
+ readonly turnId: string;
2653
+ };
2654
+ readonly revision: string;
2655
+ readonly sourcePath: string;
2656
+ readonly workRevision: string;
2657
+ } | undefined;
2658
+ readonly responses?: readonly {
2659
+ readonly action?: "continue" | "release" | "retry" | undefined;
2660
+ readonly boardAcknowledged?: boolean | undefined;
2661
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2662
+ readonly decisionId: string;
2663
+ readonly processedAt: number;
2664
+ readonly published?: {
2665
+ readonly itemId: string;
2666
+ readonly questionId: string;
2667
+ readonly request: string;
2668
+ readonly revision: string;
2669
+ readonly sourcePath: string;
2670
+ readonly workId: string;
2671
+ readonly workRevision: string;
2672
+ readonly workSourcePath: string;
2673
+ } | undefined;
2674
+ readonly questionId: string;
2675
+ readonly questionRevision: string;
2676
+ readonly responseId: string;
2677
+ readonly type: "answer" | "clarify" | "not_now";
2678
+ }[] | undefined;
2679
+ readonly result?: {
2680
+ readonly head: string;
2681
+ readonly kind: "change";
2682
+ readonly paths: readonly string[];
2683
+ readonly pr: string;
2684
+ readonly prNumber?: number | undefined;
2685
+ } | {
2686
+ readonly evidence: readonly string[];
2687
+ readonly head: string;
2688
+ readonly kind: "no-change";
2689
+ } | undefined;
2690
+ readonly resultObservations?: readonly ({
2691
+ readonly head: string;
2692
+ readonly kind: "change";
2693
+ readonly paths: readonly string[];
2694
+ readonly pr: string;
2695
+ readonly prNumber?: number | undefined;
2696
+ } | {
2697
+ readonly evidence: readonly string[];
2698
+ readonly head: string;
2699
+ readonly kind: "no-change";
2700
+ })[] | undefined;
2701
+ readonly review?: {
2702
+ readonly evidence: readonly string[];
2703
+ readonly findings?: readonly string[] | undefined;
2704
+ readonly head: string;
2705
+ readonly receipt: {
2706
+ readonly sessionId: string;
2707
+ readonly turnId: string;
2708
+ };
2709
+ readonly repairPrompt: string;
2397
2710
  readonly verdict: "approved" | "changes";
2398
2711
  } | undefined;
2399
2712
  readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
@@ -2418,300 +2731,33 @@ export declare const operationRecord: (store: Omit<{
2418
2731
  readonly supersededAt: number;
2419
2732
  }[] | undefined;
2420
2733
  readonly updatedAt?: number | undefined;
2421
- readonly history?: readonly {
2422
- readonly admissionReady?: boolean | undefined;
2423
- readonly areas?: readonly string[] | undefined;
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 {
2734
+ readonly archivedAt: number;
2735
+ }[] | undefined;
2736
+ readonly workId: string;
2737
+ }>[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
2738
+ load: (workId: string) => Effect.Effect<{
2739
+ value: {
2740
+ readonly admissionReady?: boolean | undefined;
2741
+ readonly areas?: readonly string[] | undefined;
2742
+ readonly attempts: readonly {
2743
+ readonly abandoned?: {
2744
+ readonly at: number;
2745
+ readonly interruptError?: string | undefined;
2746
+ readonly observation?: {
2747
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
2447
2748
  readonly error?: string | undefined;
2448
- readonly requestedAt: number;
2449
- readonly revision: string;
2450
- readonly steeredAt?: number | undefined;
2451
- }[] | undefined;
2452
- readonly checkFailures?: readonly string[] | undefined;
2453
- readonly missingSince?: number | undefined;
2454
- readonly observationRetries?: number | undefined;
2455
- readonly operationId: string;
2456
- readonly output?: string | undefined;
2457
- readonly progress?: {
2458
- readonly at: number;
2459
- readonly signature: string;
2460
- } | undefined;
2461
- readonly prompt?: string | undefined;
2462
- readonly providerFailures?: number | undefined;
2463
- readonly readRetry?: {
2464
- readonly error: string;
2465
- readonly failures: number;
2466
- readonly retryAt: number;
2467
- } | undefined;
2468
- readonly receipt?: {
2469
- readonly sessionId: string;
2470
- readonly turnId: string;
2471
- } | undefined;
2472
- readonly reviewHead?: string | undefined;
2473
- readonly reviewRevision?: string | undefined;
2474
- readonly role: "repair" | "reviewer" | "worker";
2475
- readonly sessionCleanupComplete?: boolean | undefined;
2476
- readonly sessionId?: string | undefined;
2477
- readonly sessionUnusable?: boolean | undefined;
2478
- readonly settings?: {
2479
- readonly effort?: string | undefined;
2480
- readonly model?: string | undefined;
2481
- readonly serviceTier?: string | undefined;
2482
- } | undefined;
2483
- readonly stallRecovery?: {
2484
- readonly count: number;
2485
- readonly interruptedAt?: number | undefined;
2486
- readonly interruptRequestedAt?: number | undefined;
2487
- readonly lastActionAt: number;
2488
- readonly steeredAt?: number | undefined;
2489
- } | undefined;
2490
- readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
2491
- readonly submissionTimedOut?: boolean | undefined;
2492
- readonly submissionUncertain?: boolean | undefined;
2493
- readonly submittedAt: number;
2494
- readonly terminalReceipts?: readonly {
2495
- readonly sessionId: string;
2496
- readonly turnId: string;
2497
- }[] | undefined;
2498
- }[];
2499
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
2500
- readonly blocker?: string | undefined;
2501
- readonly boardContext?: string | undefined;
2502
- readonly boardRevision: string;
2503
- readonly boardSourcePath?: string | undefined;
2504
- readonly checks?: {
2505
- readonly evidence: readonly string[];
2506
- readonly failedChecks?: readonly string[] | undefined;
2507
- readonly head: string;
2508
- readonly passed: boolean;
2509
- readonly pending?: boolean | undefined;
2510
- readonly repairPrompt?: string | undefined;
2511
- } | undefined;
2512
- readonly completedAt?: number | undefined;
2513
- readonly conflictRepairs?: readonly string[] | undefined;
2514
- readonly cwd: string;
2515
- readonly decision?: {
2516
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
2517
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2518
- readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
2519
- readonly id: string;
2520
- readonly links: readonly string[];
2521
- readonly publicationWork?: {
2522
- readonly approved: boolean;
2523
- readonly areas?: readonly string[] | undefined;
2524
- readonly context: string;
2525
- readonly deliverable?: "report" | undefined;
2526
- readonly dependsOn: readonly string[];
2527
- readonly revision: string;
2528
- readonly sourcePath: string;
2529
- readonly status?: string | undefined;
2530
- readonly workId: string;
2531
- } | undefined;
2532
- readonly published?: {
2533
- readonly itemId: string;
2534
- readonly questionId: string;
2535
- readonly request: string;
2536
- readonly revision: string;
2537
- readonly sourcePath: string;
2538
- readonly workId: string;
2539
- readonly workRevision: string;
2540
- readonly workSourcePath: string;
2541
- } | undefined;
2542
- readonly reason: string;
2543
- readonly recommendation: string;
2544
- readonly worker?: {
2545
- readonly sessionId: string;
2546
- readonly turnId: string;
2547
- } | undefined;
2548
- } | undefined;
2549
- readonly decisionAcknowledged?: boolean | undefined;
2550
- readonly decisionPublished?: boolean | undefined;
2551
- readonly deliverable?: "report" | undefined;
2552
- readonly integrationRetry?: {
2553
- readonly error: string;
2554
- readonly failures: number;
2555
- readonly retryAt: number;
2556
- } | undefined;
2557
- readonly launch?: {
2558
- readonly effort?: string | undefined;
2559
- readonly model?: string | undefined;
2560
- readonly serviceTier?: string | undefined;
2561
- } | undefined;
2562
- readonly launchRetry?: {
2563
- readonly prompt?: string | undefined;
2564
- readonly rejectedAt: number;
2565
- readonly rejections: number;
2566
- readonly retryAt: number;
2567
- } | undefined;
2568
- readonly mergeAreasReleased?: boolean | undefined;
2569
- readonly mergeReadyAt?: number | undefined;
2570
- readonly mergeReadyHead?: string | undefined;
2571
- readonly outcome?: {
2572
- readonly head: string;
2573
- readonly revision: string;
2574
- readonly url: string;
2575
- } | {
2576
- readonly evidence: readonly string[];
2577
- } | undefined;
2578
- readonly pendingAnswers?: readonly string[] | undefined;
2579
- readonly preparation: {
2580
- readonly baselinePaths: readonly string[];
2581
- readonly baseRevision: string;
2582
- readonly configuration: readonly {
2583
- readonly path: string;
2584
- readonly relevantKeys: readonly string[];
2585
- }[];
2586
- readonly contextComplete: boolean;
2587
- readonly dependencyPaths: readonly string[];
2588
- readonly observedAt: number;
2589
- readonly ownedPaths: readonly string[];
2590
- readonly qualityPaths: readonly string[];
2591
- readonly setupPaths: readonly string[];
2592
- readonly sourcePaths: readonly string[];
2593
- readonly validation: readonly {
2594
- readonly command: string;
2595
- readonly revision: string;
2596
- }[];
2597
- };
2598
- readonly prompt: string;
2599
- readonly releaseReason?: string | undefined;
2600
- readonly report?: {
2601
- readonly itemId: string;
2602
- readonly receipt: {
2603
- readonly sessionId: string;
2604
- readonly turnId: string;
2605
- };
2606
- readonly revision: string;
2607
- readonly sourcePath: string;
2608
- readonly workRevision: string;
2609
- } | undefined;
2610
- readonly responses?: readonly {
2611
- readonly action?: "continue" | "release" | "retry" | undefined;
2612
- readonly boardAcknowledged?: boolean | undefined;
2613
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2614
- readonly decisionId: string;
2615
- readonly processedAt: number;
2616
- readonly published?: {
2617
- readonly itemId: string;
2618
- readonly questionId: string;
2619
- readonly request: string;
2620
- readonly revision: string;
2621
- readonly sourcePath: string;
2622
- readonly workId: string;
2623
- readonly workRevision: string;
2624
- readonly workSourcePath: string;
2625
- } | undefined;
2626
- readonly questionId: string;
2627
- readonly questionRevision: string;
2628
- readonly responseId: string;
2629
- readonly type: "answer" | "clarify" | "not_now";
2630
- }[] | undefined;
2631
- readonly result?: {
2632
- readonly head: string;
2633
- readonly kind: "change";
2634
- readonly paths: readonly string[];
2635
- readonly pr: string;
2636
- readonly prNumber?: number | undefined;
2637
- } | {
2638
- readonly evidence: readonly string[];
2639
- readonly head: string;
2640
- readonly kind: "no-change";
2641
- } | undefined;
2642
- readonly resultObservations?: readonly ({
2643
- readonly head: string;
2644
- readonly kind: "change";
2645
- readonly paths: readonly string[];
2646
- readonly pr: string;
2647
- readonly prNumber?: number | undefined;
2648
- } | {
2649
- readonly evidence: readonly string[];
2650
- readonly head: string;
2651
- readonly kind: "no-change";
2652
- })[] | undefined;
2653
- readonly review?: {
2654
- readonly evidence: readonly string[];
2655
- readonly findings?: readonly string[] | undefined;
2656
- readonly head: string;
2657
- readonly receipt: {
2658
- readonly sessionId: string;
2659
- readonly turnId: string;
2660
- };
2661
- readonly repairPrompt: string;
2662
- readonly verdict: "approved" | "changes";
2663
- } | undefined;
2664
- readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
2665
- readonly stageEnteredAt?: number | undefined;
2666
- readonly supersededDecisions?: readonly {
2667
- readonly boardAcknowledged?: boolean | undefined;
2668
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
2669
- readonly published: {
2670
- readonly itemId: string;
2671
- readonly questionId: string;
2672
- readonly request: string;
2673
- readonly revision: string;
2674
- readonly sourcePath: string;
2675
- readonly workId: string;
2676
- readonly workRevision: string;
2677
- readonly workSourcePath: string;
2678
- };
2679
- readonly reassignedTo?: {
2680
- readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
2681
- readonly decisionId: string;
2682
- } | undefined;
2683
- readonly supersededAt: number;
2684
- }[] | undefined;
2685
- readonly updatedAt?: number | undefined;
2686
- readonly archivedAt: number;
2687
- }[] | undefined;
2688
- readonly workId: string;
2689
- };
2690
- version: number;
2691
- }[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
2692
- load: (workId: string) => Effect.Effect<{
2693
- value: {
2694
- readonly admissionReady?: boolean | undefined;
2695
- readonly areas?: readonly string[] | undefined;
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;
2749
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
2750
+ readonly output: string;
2751
+ readonly progress?: readonly {
2752
+ readonly id: string;
2753
+ readonly status?: string | undefined;
2754
+ }[] | undefined;
2755
+ readonly provisioning: "ready" | "unknown";
2756
+ readonly receipt: {
2757
+ readonly sessionId: string;
2758
+ readonly turnId: string;
2759
+ };
2760
+ readonly turnMissing?: boolean | undefined;
2715
2761
  } | undefined;
2716
2762
  readonly observationError?: string | undefined;
2717
2763
  } | undefined;
@@ -2726,6 +2772,7 @@ export declare const operationRecord: (store: Omit<{
2726
2772
  readonly observationRetries?: number | undefined;
2727
2773
  readonly operationId: string;
2728
2774
  readonly output?: string | undefined;
2775
+ readonly overLimit?: boolean | undefined;
2729
2776
  readonly progress?: {
2730
2777
  readonly at: number;
2731
2778
  readonly signature: string;
@@ -2796,6 +2843,7 @@ export declare const operationRecord: (store: Omit<{
2796
2843
  readonly context: string;
2797
2844
  readonly deliverable?: "report" | undefined;
2798
2845
  readonly dependsOn: readonly string[];
2846
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
2799
2847
  readonly revision: string;
2800
2848
  readonly sourcePath: string;
2801
2849
  readonly status?: string | undefined;
@@ -2821,6 +2869,9 @@ export declare const operationRecord: (store: Omit<{
2821
2869
  readonly decisionAcknowledged?: boolean | undefined;
2822
2870
  readonly decisionPublished?: boolean | undefined;
2823
2871
  readonly deliverable?: "report" | undefined;
2872
+ readonly dispatchNow?: {
2873
+ readonly ignoreAreas: boolean;
2874
+ } | undefined;
2824
2875
  readonly integrationRetry?: {
2825
2876
  readonly error: string;
2826
2877
  readonly failures: number;
@@ -2991,6 +3042,7 @@ export declare const operationRecord: (store: Omit<{
2991
3042
  readonly observationRetries?: number | undefined;
2992
3043
  readonly operationId: string;
2993
3044
  readonly output?: string | undefined;
3045
+ readonly overLimit?: boolean | undefined;
2994
3046
  readonly progress?: {
2995
3047
  readonly at: number;
2996
3048
  readonly signature: string;
@@ -3061,6 +3113,7 @@ export declare const operationRecord: (store: Omit<{
3061
3113
  readonly context: string;
3062
3114
  readonly deliverable?: "report" | undefined;
3063
3115
  readonly dependsOn: readonly string[];
3116
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
3064
3117
  readonly revision: string;
3065
3118
  readonly sourcePath: string;
3066
3119
  readonly status?: string | undefined;
@@ -3086,6 +3139,9 @@ export declare const operationRecord: (store: Omit<{
3086
3139
  readonly decisionAcknowledged?: boolean | undefined;
3087
3140
  readonly decisionPublished?: boolean | undefined;
3088
3141
  readonly deliverable?: "report" | undefined;
3142
+ readonly dispatchNow?: {
3143
+ readonly ignoreAreas: boolean;
3144
+ } | undefined;
3089
3145
  readonly integrationRetry?: {
3090
3146
  readonly error: string;
3091
3147
  readonly failures: number;
@@ -3230,7 +3286,7 @@ export declare const operationRecord: (store: Omit<{
3230
3286
  readonly workId: string;
3231
3287
  readonly version: number;
3232
3288
  }[], import("effect/sql/SqlError").SqlError, never>;
3233
- }, "initialize" | "operationEntries"> & Partial<Pick<{
3289
+ }, "operationEntries"> & Partial<Pick<{
3234
3290
  foreignReservations: () => Effect.Effect<Pick<{
3235
3291
  readonly backlog: boolean;
3236
3292
  readonly executing: boolean;
@@ -3277,6 +3333,7 @@ export declare const operationRecord: (store: Omit<{
3277
3333
  readonly observationRetries?: number | undefined;
3278
3334
  readonly operationId: string;
3279
3335
  readonly output?: string | undefined;
3336
+ readonly overLimit?: boolean | undefined;
3280
3337
  readonly progress?: {
3281
3338
  readonly at: number;
3282
3339
  readonly signature: string;
@@ -3347,6 +3404,7 @@ export declare const operationRecord: (store: Omit<{
3347
3404
  readonly context: string;
3348
3405
  readonly deliverable?: "report" | undefined;
3349
3406
  readonly dependsOn: readonly string[];
3407
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
3350
3408
  readonly revision: string;
3351
3409
  readonly sourcePath: string;
3352
3410
  readonly status?: string | undefined;
@@ -3372,6 +3430,9 @@ export declare const operationRecord: (store: Omit<{
3372
3430
  readonly decisionAcknowledged?: boolean | undefined;
3373
3431
  readonly decisionPublished?: boolean | undefined;
3374
3432
  readonly deliverable?: "report" | undefined;
3433
+ readonly dispatchNow?: {
3434
+ readonly ignoreAreas: boolean;
3435
+ } | undefined;
3375
3436
  readonly integrationRetry?: {
3376
3437
  readonly error: string;
3377
3438
  readonly failures: number;
@@ -3542,6 +3603,7 @@ export declare const operationRecord: (store: Omit<{
3542
3603
  readonly observationRetries?: number | undefined;
3543
3604
  readonly operationId: string;
3544
3605
  readonly output?: string | undefined;
3606
+ readonly overLimit?: boolean | undefined;
3545
3607
  readonly progress?: {
3546
3608
  readonly at: number;
3547
3609
  readonly signature: string;
@@ -3612,6 +3674,7 @@ export declare const operationRecord: (store: Omit<{
3612
3674
  readonly context: string;
3613
3675
  readonly deliverable?: "report" | undefined;
3614
3676
  readonly dependsOn: readonly string[];
3677
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
3615
3678
  readonly revision: string;
3616
3679
  readonly sourcePath: string;
3617
3680
  readonly status?: string | undefined;
@@ -3637,6 +3700,9 @@ export declare const operationRecord: (store: Omit<{
3637
3700
  readonly decisionAcknowledged?: boolean | undefined;
3638
3701
  readonly decisionPublished?: boolean | undefined;
3639
3702
  readonly deliverable?: "report" | undefined;
3703
+ readonly dispatchNow?: {
3704
+ readonly ignoreAreas: boolean;
3705
+ } | undefined;
3640
3706
  readonly integrationRetry?: {
3641
3707
  readonly error: string;
3642
3708
  readonly failures: number;
@@ -3811,6 +3877,7 @@ export declare const operationRecord: (store: Omit<{
3811
3877
  readonly observationRetries?: number | undefined;
3812
3878
  readonly operationId: string;
3813
3879
  readonly output?: string | undefined;
3880
+ readonly overLimit?: boolean | undefined;
3814
3881
  readonly progress?: {
3815
3882
  readonly at: number;
3816
3883
  readonly signature: string;
@@ -3881,6 +3948,7 @@ export declare const operationRecord: (store: Omit<{
3881
3948
  readonly context: string;
3882
3949
  readonly deliverable?: "report" | undefined;
3883
3950
  readonly dependsOn: readonly string[];
3951
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
3884
3952
  readonly revision: string;
3885
3953
  readonly sourcePath: string;
3886
3954
  readonly status?: string | undefined;
@@ -3906,6 +3974,9 @@ export declare const operationRecord: (store: Omit<{
3906
3974
  readonly decisionAcknowledged?: boolean | undefined;
3907
3975
  readonly decisionPublished?: boolean | undefined;
3908
3976
  readonly deliverable?: "report" | undefined;
3977
+ readonly dispatchNow?: {
3978
+ readonly ignoreAreas: boolean;
3979
+ } | undefined;
3909
3980
  readonly integrationRetry?: {
3910
3981
  readonly error: string;
3911
3982
  readonly failures: number;
@@ -4076,6 +4147,7 @@ export declare const operationRecord: (store: Omit<{
4076
4147
  readonly observationRetries?: number | undefined;
4077
4148
  readonly operationId: string;
4078
4149
  readonly output?: string | undefined;
4150
+ readonly overLimit?: boolean | undefined;
4079
4151
  readonly progress?: {
4080
4152
  readonly at: number;
4081
4153
  readonly signature: string;
@@ -4146,6 +4218,7 @@ export declare const operationRecord: (store: Omit<{
4146
4218
  readonly context: string;
4147
4219
  readonly deliverable?: "report" | undefined;
4148
4220
  readonly dependsOn: readonly string[];
4221
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
4149
4222
  readonly revision: string;
4150
4223
  readonly sourcePath: string;
4151
4224
  readonly status?: string | undefined;
@@ -4171,6 +4244,9 @@ export declare const operationRecord: (store: Omit<{
4171
4244
  readonly decisionAcknowledged?: boolean | undefined;
4172
4245
  readonly decisionPublished?: boolean | undefined;
4173
4246
  readonly deliverable?: "report" | undefined;
4247
+ readonly dispatchNow?: {
4248
+ readonly ignoreAreas: boolean;
4249
+ } | undefined;
4174
4250
  readonly integrationRetry?: {
4175
4251
  readonly error: string;
4176
4252
  readonly failures: number;
@@ -4312,7 +4388,6 @@ export declare const operationRecord: (store: Omit<{
4312
4388
  version: number;
4313
4389
  }, 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>;
4314
4390
  hasLaunchRetry: () => Effect.Effect<boolean, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
4315
- initialize: () => Effect.Effect<readonly (readonly [id: number, name: string])[], import("effect/sql/Migrator").MigrationError | import("effect/sql/SqlError").SqlError, never>;
4316
4391
  insert: (record: {
4317
4392
  readonly admissionReady?: boolean | undefined;
4318
4393
  readonly areas?: readonly string[] | undefined;
@@ -4349,6 +4424,7 @@ export declare const operationRecord: (store: Omit<{
4349
4424
  readonly observationRetries?: number | undefined;
4350
4425
  readonly operationId: string;
4351
4426
  readonly output?: string | undefined;
4427
+ readonly overLimit?: boolean | undefined;
4352
4428
  readonly progress?: {
4353
4429
  readonly at: number;
4354
4430
  readonly signature: string;
@@ -4419,6 +4495,7 @@ export declare const operationRecord: (store: Omit<{
4419
4495
  readonly context: string;
4420
4496
  readonly deliverable?: "report" | undefined;
4421
4497
  readonly dependsOn: readonly string[];
4498
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
4422
4499
  readonly revision: string;
4423
4500
  readonly sourcePath: string;
4424
4501
  readonly status?: string | undefined;
@@ -4444,6 +4521,9 @@ export declare const operationRecord: (store: Omit<{
4444
4521
  readonly decisionAcknowledged?: boolean | undefined;
4445
4522
  readonly decisionPublished?: boolean | undefined;
4446
4523
  readonly deliverable?: "report" | undefined;
4524
+ readonly dispatchNow?: {
4525
+ readonly ignoreAreas: boolean;
4526
+ } | undefined;
4447
4527
  readonly integrationRetry?: {
4448
4528
  readonly error: string;
4449
4529
  readonly failures: number;
@@ -4614,6 +4694,7 @@ export declare const operationRecord: (store: Omit<{
4614
4694
  readonly observationRetries?: number | undefined;
4615
4695
  readonly operationId: string;
4616
4696
  readonly output?: string | undefined;
4697
+ readonly overLimit?: boolean | undefined;
4617
4698
  readonly progress?: {
4618
4699
  readonly at: number;
4619
4700
  readonly signature: string;
@@ -4684,6 +4765,7 @@ export declare const operationRecord: (store: Omit<{
4684
4765
  readonly context: string;
4685
4766
  readonly deliverable?: "report" | undefined;
4686
4767
  readonly dependsOn: readonly string[];
4768
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
4687
4769
  readonly revision: string;
4688
4770
  readonly sourcePath: string;
4689
4771
  readonly status?: string | undefined;
@@ -4709,6 +4791,9 @@ export declare const operationRecord: (store: Omit<{
4709
4791
  readonly decisionAcknowledged?: boolean | undefined;
4710
4792
  readonly decisionPublished?: boolean | undefined;
4711
4793
  readonly deliverable?: "report" | undefined;
4794
+ readonly dispatchNow?: {
4795
+ readonly ignoreAreas: boolean;
4796
+ } | undefined;
4712
4797
  readonly integrationRetry?: {
4713
4798
  readonly error: string;
4714
4799
  readonly failures: number;
@@ -4883,6 +4968,7 @@ export declare const operationRecord: (store: Omit<{
4883
4968
  readonly observationRetries?: number | undefined;
4884
4969
  readonly operationId: string;
4885
4970
  readonly output?: string | undefined;
4971
+ readonly overLimit?: boolean | undefined;
4886
4972
  readonly progress?: {
4887
4973
  readonly at: number;
4888
4974
  readonly signature: string;
@@ -4953,6 +5039,7 @@ export declare const operationRecord: (store: Omit<{
4953
5039
  readonly context: string;
4954
5040
  readonly deliverable?: "report" | undefined;
4955
5041
  readonly dependsOn: readonly string[];
5042
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
4956
5043
  readonly revision: string;
4957
5044
  readonly sourcePath: string;
4958
5045
  readonly status?: string | undefined;
@@ -4978,6 +5065,9 @@ export declare const operationRecord: (store: Omit<{
4978
5065
  readonly decisionAcknowledged?: boolean | undefined;
4979
5066
  readonly decisionPublished?: boolean | undefined;
4980
5067
  readonly deliverable?: "report" | undefined;
5068
+ readonly dispatchNow?: {
5069
+ readonly ignoreAreas: boolean;
5070
+ } | undefined;
4981
5071
  readonly integrationRetry?: {
4982
5072
  readonly error: string;
4983
5073
  readonly failures: number;
@@ -5148,6 +5238,7 @@ export declare const operationRecord: (store: Omit<{
5148
5238
  readonly observationRetries?: number | undefined;
5149
5239
  readonly operationId: string;
5150
5240
  readonly output?: string | undefined;
5241
+ readonly overLimit?: boolean | undefined;
5151
5242
  readonly progress?: {
5152
5243
  readonly at: number;
5153
5244
  readonly signature: string;
@@ -5218,6 +5309,7 @@ export declare const operationRecord: (store: Omit<{
5218
5309
  readonly context: string;
5219
5310
  readonly deliverable?: "report" | undefined;
5220
5311
  readonly dependsOn: readonly string[];
5312
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
5221
5313
  readonly revision: string;
5222
5314
  readonly sourcePath: string;
5223
5315
  readonly status?: string | undefined;
@@ -5243,6 +5335,9 @@ export declare const operationRecord: (store: Omit<{
5243
5335
  readonly decisionAcknowledged?: boolean | undefined;
5244
5336
  readonly decisionPublished?: boolean | undefined;
5245
5337
  readonly deliverable?: "report" | undefined;
5338
+ readonly dispatchNow?: {
5339
+ readonly ignoreAreas: boolean;
5340
+ } | undefined;
5246
5341
  readonly integrationRetry?: {
5247
5342
  readonly error: string;
5248
5343
  readonly failures: number;
@@ -5383,249 +5478,523 @@ export declare const operationRecord: (store: Omit<{
5383
5478
  };
5384
5479
  version: number;
5385
5480
  }, 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>;
5386
- list: () => Effect.Effect<{
5387
- value: {
5388
- readonly admissionReady?: boolean | undefined;
5389
- readonly areas?: readonly string[] | undefined;
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 {
5481
+ list: () => Effect.Effect<import("../storage/model.ts").Versioned<{
5482
+ readonly admissionReady?: boolean | undefined;
5483
+ readonly areas?: readonly string[] | undefined;
5484
+ readonly attempts: readonly {
5485
+ readonly abandoned?: {
5486
+ readonly at: number;
5487
+ readonly interruptError?: string | undefined;
5488
+ readonly observation?: {
5489
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
5413
5490
  readonly error?: string | undefined;
5414
- readonly requestedAt: number;
5415
- readonly revision: string;
5416
- readonly steeredAt?: number | undefined;
5417
- }[] | undefined;
5418
- readonly checkFailures?: readonly string[] | undefined;
5419
- readonly missingSince?: number | undefined;
5420
- readonly observationRetries?: number | undefined;
5421
- readonly operationId: string;
5422
- readonly output?: string | undefined;
5423
- readonly progress?: {
5424
- readonly at: number;
5425
- readonly signature: string;
5426
- } | undefined;
5427
- readonly prompt?: string | undefined;
5428
- readonly providerFailures?: number | undefined;
5429
- readonly readRetry?: {
5430
- readonly error: string;
5431
- readonly failures: number;
5432
- readonly retryAt: number;
5433
- } | undefined;
5434
- readonly receipt?: {
5435
- readonly sessionId: string;
5436
- readonly turnId: string;
5437
- } | undefined;
5438
- readonly reviewHead?: string | undefined;
5439
- readonly reviewRevision?: string | undefined;
5440
- readonly role: "repair" | "reviewer" | "worker";
5441
- readonly sessionCleanupComplete?: boolean | undefined;
5442
- readonly sessionId?: string | undefined;
5443
- readonly sessionUnusable?: boolean | undefined;
5444
- readonly settings?: {
5445
- readonly effort?: string | undefined;
5446
- readonly model?: string | undefined;
5447
- readonly serviceTier?: string | undefined;
5448
- } | undefined;
5449
- readonly stallRecovery?: {
5450
- readonly count: number;
5451
- readonly interruptedAt?: number | undefined;
5452
- readonly interruptRequestedAt?: number | undefined;
5453
- readonly lastActionAt: number;
5454
- readonly steeredAt?: number | undefined;
5491
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
5492
+ readonly output: string;
5493
+ readonly progress?: readonly {
5494
+ readonly id: string;
5495
+ readonly status?: string | undefined;
5496
+ }[] | undefined;
5497
+ readonly provisioning: "ready" | "unknown";
5498
+ readonly receipt: {
5499
+ readonly sessionId: string;
5500
+ readonly turnId: string;
5501
+ };
5502
+ readonly turnMissing?: boolean | undefined;
5455
5503
  } | undefined;
5456
- readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
5457
- readonly submissionTimedOut?: boolean | undefined;
5458
- readonly submissionUncertain?: boolean | undefined;
5459
- readonly submittedAt: number;
5460
- readonly terminalReceipts?: readonly {
5461
- readonly sessionId: string;
5462
- readonly turnId: string;
5463
- }[] | undefined;
5464
- }[];
5465
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
5466
- readonly blocker?: string | undefined;
5467
- readonly boardContext?: string | undefined;
5468
- readonly boardRevision: string;
5469
- readonly boardSourcePath?: string | undefined;
5470
- readonly checks?: {
5471
- readonly evidence: readonly string[];
5472
- readonly failedChecks?: readonly string[] | undefined;
5473
- readonly head: string;
5474
- readonly passed: boolean;
5475
- readonly pending?: boolean | undefined;
5476
- readonly repairPrompt?: string | undefined;
5504
+ readonly observationError?: string | undefined;
5477
5505
  } | undefined;
5478
- readonly completedAt?: number | undefined;
5479
- readonly conflictRepairs?: readonly string[] | undefined;
5480
- readonly cwd: string;
5481
- readonly decision?: {
5482
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
5483
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5484
- readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
5485
- readonly id: string;
5486
- readonly links: readonly string[];
5487
- readonly publicationWork?: {
5488
- readonly approved: boolean;
5489
- readonly areas?: readonly string[] | undefined;
5490
- readonly context: string;
5491
- readonly deliverable?: "report" | undefined;
5492
- readonly dependsOn: readonly string[];
5493
- readonly revision: string;
5494
- readonly sourcePath: string;
5495
- readonly status?: string | undefined;
5496
- readonly workId: string;
5497
- } | undefined;
5498
- readonly published?: {
5499
- readonly itemId: string;
5500
- readonly questionId: string;
5501
- readonly request: string;
5502
- readonly revision: string;
5503
- readonly sourcePath: string;
5504
- readonly workId: string;
5505
- readonly workRevision: string;
5506
- readonly workSourcePath: string;
5507
- } | undefined;
5508
- readonly reason: string;
5509
- readonly recommendation: string;
5510
- readonly worker?: {
5511
- readonly sessionId: string;
5512
- readonly turnId: string;
5513
- } | undefined;
5506
+ readonly briefSteers?: readonly {
5507
+ readonly error?: string | undefined;
5508
+ readonly requestedAt: number;
5509
+ readonly revision: string;
5510
+ readonly steeredAt?: number | undefined;
5511
+ }[] | undefined;
5512
+ readonly checkFailures?: readonly string[] | undefined;
5513
+ readonly missingSince?: number | undefined;
5514
+ readonly observationRetries?: number | undefined;
5515
+ readonly operationId: string;
5516
+ readonly output?: string | undefined;
5517
+ readonly overLimit?: boolean | undefined;
5518
+ readonly progress?: {
5519
+ readonly at: number;
5520
+ readonly signature: string;
5514
5521
  } | undefined;
5515
- readonly decisionAcknowledged?: boolean | undefined;
5516
- readonly decisionPublished?: boolean | undefined;
5517
- readonly deliverable?: "report" | undefined;
5518
- readonly integrationRetry?: {
5522
+ readonly prompt?: string | undefined;
5523
+ readonly providerFailures?: number | undefined;
5524
+ readonly readRetry?: {
5519
5525
  readonly error: string;
5520
5526
  readonly failures: number;
5521
5527
  readonly retryAt: number;
5522
5528
  } | undefined;
5523
- readonly launch?: {
5529
+ readonly receipt?: {
5530
+ readonly sessionId: string;
5531
+ readonly turnId: string;
5532
+ } | undefined;
5533
+ readonly reviewHead?: string | undefined;
5534
+ readonly reviewRevision?: string | undefined;
5535
+ readonly role: "repair" | "reviewer" | "worker";
5536
+ readonly sessionCleanupComplete?: boolean | undefined;
5537
+ readonly sessionId?: string | undefined;
5538
+ readonly sessionUnusable?: boolean | undefined;
5539
+ readonly settings?: {
5524
5540
  readonly effort?: string | undefined;
5525
5541
  readonly model?: string | undefined;
5526
5542
  readonly serviceTier?: string | undefined;
5527
5543
  } | undefined;
5528
- readonly launchRetry?: {
5529
- readonly prompt?: string | undefined;
5530
- readonly rejectedAt: number;
5531
- readonly rejections: number;
5532
- readonly retryAt: number;
5544
+ readonly stallRecovery?: {
5545
+ readonly count: number;
5546
+ readonly interruptedAt?: number | undefined;
5547
+ readonly interruptRequestedAt?: number | undefined;
5548
+ readonly lastActionAt: number;
5549
+ readonly steeredAt?: number | undefined;
5533
5550
  } | undefined;
5534
- readonly mergeAreasReleased?: boolean | undefined;
5535
- readonly mergeReadyAt?: number | undefined;
5536
- readonly mergeReadyHead?: string | undefined;
5537
- readonly outcome?: {
5538
- readonly head: string;
5551
+ readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
5552
+ readonly submissionTimedOut?: boolean | undefined;
5553
+ readonly submissionUncertain?: boolean | undefined;
5554
+ readonly submittedAt: number;
5555
+ readonly terminalReceipts?: readonly {
5556
+ readonly sessionId: string;
5557
+ readonly turnId: string;
5558
+ }[] | undefined;
5559
+ }[];
5560
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
5561
+ readonly blocker?: string | undefined;
5562
+ readonly boardContext?: string | undefined;
5563
+ readonly boardRevision: string;
5564
+ readonly boardSourcePath?: string | undefined;
5565
+ readonly checks?: {
5566
+ readonly evidence: readonly string[];
5567
+ readonly failedChecks?: readonly string[] | undefined;
5568
+ readonly head: string;
5569
+ readonly passed: boolean;
5570
+ readonly pending?: boolean | undefined;
5571
+ readonly repairPrompt?: string | undefined;
5572
+ } | undefined;
5573
+ readonly completedAt?: number | undefined;
5574
+ readonly conflictRepairs?: readonly string[] | undefined;
5575
+ readonly cwd: string;
5576
+ readonly decision?: {
5577
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
5578
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5579
+ readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
5580
+ readonly id: string;
5581
+ readonly links: readonly string[];
5582
+ readonly publicationWork?: {
5583
+ readonly approved: boolean;
5584
+ readonly areas?: readonly string[] | undefined;
5585
+ readonly context: string;
5586
+ readonly deliverable?: "report" | undefined;
5587
+ readonly dependsOn: readonly string[];
5588
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
5539
5589
  readonly revision: string;
5540
- readonly url: string;
5541
- } | {
5542
- readonly evidence: readonly string[];
5590
+ readonly sourcePath: string;
5591
+ readonly status?: string | undefined;
5592
+ readonly workId: string;
5543
5593
  } | undefined;
5544
- readonly pendingAnswers?: readonly string[] | undefined;
5545
- readonly preparation: {
5546
- readonly baselinePaths: readonly string[];
5547
- readonly baseRevision: string;
5548
- readonly configuration: readonly {
5549
- readonly path: string;
5550
- readonly relevantKeys: readonly string[];
5551
- }[];
5552
- readonly contextComplete: boolean;
5553
- readonly dependencyPaths: readonly string[];
5554
- readonly observedAt: number;
5555
- readonly ownedPaths: readonly string[];
5556
- readonly qualityPaths: readonly string[];
5557
- readonly setupPaths: readonly string[];
5558
- readonly sourcePaths: readonly string[];
5559
- readonly validation: readonly {
5560
- readonly command: string;
5561
- readonly revision: string;
5562
- }[];
5594
+ readonly published?: {
5595
+ readonly itemId: string;
5596
+ readonly questionId: string;
5597
+ readonly request: string;
5598
+ readonly revision: string;
5599
+ readonly sourcePath: string;
5600
+ readonly workId: string;
5601
+ readonly workRevision: string;
5602
+ readonly workSourcePath: string;
5603
+ } | undefined;
5604
+ readonly reason: string;
5605
+ readonly recommendation: string;
5606
+ readonly worker?: {
5607
+ readonly sessionId: string;
5608
+ readonly turnId: string;
5609
+ } | undefined;
5610
+ } | undefined;
5611
+ readonly decisionAcknowledged?: boolean | undefined;
5612
+ readonly decisionPublished?: boolean | undefined;
5613
+ readonly deliverable?: "report" | undefined;
5614
+ readonly dispatchNow?: {
5615
+ readonly ignoreAreas: boolean;
5616
+ } | undefined;
5617
+ readonly integrationRetry?: {
5618
+ readonly error: string;
5619
+ readonly failures: number;
5620
+ readonly retryAt: number;
5621
+ } | undefined;
5622
+ readonly launch?: {
5623
+ readonly effort?: string | undefined;
5624
+ readonly model?: string | undefined;
5625
+ readonly serviceTier?: string | undefined;
5626
+ } | undefined;
5627
+ readonly launchRetry?: {
5628
+ readonly prompt?: string | undefined;
5629
+ readonly rejectedAt: number;
5630
+ readonly rejections: number;
5631
+ readonly retryAt: number;
5632
+ } | undefined;
5633
+ readonly mergeAreasReleased?: boolean | undefined;
5634
+ readonly mergeReadyAt?: number | undefined;
5635
+ readonly mergeReadyHead?: string | undefined;
5636
+ readonly outcome?: {
5637
+ readonly head: string;
5638
+ readonly revision: string;
5639
+ readonly url: string;
5640
+ } | {
5641
+ readonly evidence: readonly string[];
5642
+ } | undefined;
5643
+ readonly pendingAnswers?: readonly string[] | undefined;
5644
+ readonly preparation: {
5645
+ readonly baselinePaths: readonly string[];
5646
+ readonly baseRevision: string;
5647
+ readonly configuration: readonly {
5648
+ readonly path: string;
5649
+ readonly relevantKeys: readonly string[];
5650
+ }[];
5651
+ readonly contextComplete: boolean;
5652
+ readonly dependencyPaths: readonly string[];
5653
+ readonly observedAt: number;
5654
+ readonly ownedPaths: readonly string[];
5655
+ readonly qualityPaths: readonly string[];
5656
+ readonly setupPaths: readonly string[];
5657
+ readonly sourcePaths: readonly string[];
5658
+ readonly validation: readonly {
5659
+ readonly command: string;
5660
+ readonly revision: string;
5661
+ }[];
5662
+ };
5663
+ readonly prompt: string;
5664
+ readonly releaseReason?: string | undefined;
5665
+ readonly report?: {
5666
+ readonly itemId: string;
5667
+ readonly receipt: {
5668
+ readonly sessionId: string;
5669
+ readonly turnId: string;
5563
5670
  };
5564
- readonly prompt: string;
5565
- readonly releaseReason?: string | undefined;
5566
- readonly report?: {
5671
+ readonly revision: string;
5672
+ readonly sourcePath: string;
5673
+ readonly workRevision: string;
5674
+ } | undefined;
5675
+ readonly responses?: readonly {
5676
+ readonly action?: "continue" | "release" | "retry" | undefined;
5677
+ readonly boardAcknowledged?: boolean | undefined;
5678
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5679
+ readonly decisionId: string;
5680
+ readonly processedAt: number;
5681
+ readonly published?: {
5567
5682
  readonly itemId: string;
5568
- readonly receipt: {
5569
- readonly sessionId: string;
5570
- readonly turnId: string;
5571
- };
5683
+ readonly questionId: string;
5684
+ readonly request: string;
5572
5685
  readonly revision: string;
5573
5686
  readonly sourcePath: string;
5687
+ readonly workId: string;
5574
5688
  readonly workRevision: string;
5689
+ readonly workSourcePath: string;
5575
5690
  } | undefined;
5576
- readonly responses?: readonly {
5577
- readonly action?: "continue" | "release" | "retry" | undefined;
5578
- readonly boardAcknowledged?: boolean | undefined;
5579
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5691
+ readonly questionId: string;
5692
+ readonly questionRevision: string;
5693
+ readonly responseId: string;
5694
+ readonly type: "answer" | "clarify" | "not_now";
5695
+ }[] | undefined;
5696
+ readonly result?: {
5697
+ readonly head: string;
5698
+ readonly kind: "change";
5699
+ readonly paths: readonly string[];
5700
+ readonly pr: string;
5701
+ readonly prNumber?: number | undefined;
5702
+ } | {
5703
+ readonly evidence: readonly string[];
5704
+ readonly head: string;
5705
+ readonly kind: "no-change";
5706
+ } | undefined;
5707
+ readonly resultObservations?: readonly ({
5708
+ readonly head: string;
5709
+ readonly kind: "change";
5710
+ readonly paths: readonly string[];
5711
+ readonly pr: string;
5712
+ readonly prNumber?: number | undefined;
5713
+ } | {
5714
+ readonly evidence: readonly string[];
5715
+ readonly head: string;
5716
+ readonly kind: "no-change";
5717
+ })[] | undefined;
5718
+ readonly review?: {
5719
+ readonly evidence: readonly string[];
5720
+ readonly findings?: readonly string[] | undefined;
5721
+ readonly head: string;
5722
+ readonly receipt: {
5723
+ readonly sessionId: string;
5724
+ readonly turnId: string;
5725
+ };
5726
+ readonly repairPrompt: string;
5727
+ readonly verdict: "approved" | "changes";
5728
+ } | undefined;
5729
+ readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
5730
+ readonly stageEnteredAt?: number | undefined;
5731
+ readonly supersededDecisions?: readonly {
5732
+ readonly boardAcknowledged?: boolean | undefined;
5733
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5734
+ readonly published: {
5735
+ readonly itemId: string;
5736
+ readonly questionId: string;
5737
+ readonly request: string;
5738
+ readonly revision: string;
5739
+ readonly sourcePath: string;
5740
+ readonly workId: string;
5741
+ readonly workRevision: string;
5742
+ readonly workSourcePath: string;
5743
+ };
5744
+ readonly reassignedTo?: {
5745
+ readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
5580
5746
  readonly decisionId: string;
5581
- readonly processedAt: number;
5582
- readonly published?: {
5583
- readonly itemId: string;
5584
- readonly questionId: string;
5585
- readonly request: string;
5747
+ } | undefined;
5748
+ readonly supersededAt: number;
5749
+ }[] | undefined;
5750
+ readonly updatedAt?: number | undefined;
5751
+ readonly history?: readonly {
5752
+ readonly admissionReady?: boolean | undefined;
5753
+ readonly areas?: readonly string[] | undefined;
5754
+ readonly attempts: readonly {
5755
+ readonly abandoned?: {
5756
+ readonly at: number;
5757
+ readonly interruptError?: string | undefined;
5758
+ readonly observation?: {
5759
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
5760
+ readonly error?: string | undefined;
5761
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
5762
+ readonly output: string;
5763
+ readonly progress?: readonly {
5764
+ readonly id: string;
5765
+ readonly status?: string | undefined;
5766
+ }[] | undefined;
5767
+ readonly provisioning: "ready" | "unknown";
5768
+ readonly receipt: {
5769
+ readonly sessionId: string;
5770
+ readonly turnId: string;
5771
+ };
5772
+ readonly turnMissing?: boolean | undefined;
5773
+ } | undefined;
5774
+ readonly observationError?: string | undefined;
5775
+ } | undefined;
5776
+ readonly briefSteers?: readonly {
5777
+ readonly error?: string | undefined;
5778
+ readonly requestedAt: number;
5586
5779
  readonly revision: string;
5587
- readonly sourcePath: string;
5588
- readonly workId: string;
5589
- readonly workRevision: string;
5590
- readonly workSourcePath: string;
5780
+ readonly steeredAt?: number | undefined;
5781
+ }[] | undefined;
5782
+ readonly checkFailures?: readonly string[] | undefined;
5783
+ readonly missingSince?: number | undefined;
5784
+ readonly observationRetries?: number | undefined;
5785
+ readonly operationId: string;
5786
+ readonly output?: string | undefined;
5787
+ readonly overLimit?: boolean | undefined;
5788
+ readonly progress?: {
5789
+ readonly at: number;
5790
+ readonly signature: string;
5591
5791
  } | undefined;
5592
- readonly questionId: string;
5593
- readonly questionRevision: string;
5594
- readonly responseId: string;
5595
- readonly type: "answer" | "clarify" | "not_now";
5596
- }[] | undefined;
5597
- readonly result?: {
5598
- readonly head: string;
5599
- readonly kind: "change";
5600
- readonly paths: readonly string[];
5601
- readonly pr: string;
5602
- readonly prNumber?: number | undefined;
5603
- } | {
5604
- readonly evidence: readonly string[];
5605
- readonly head: string;
5606
- readonly kind: "no-change";
5607
- } | undefined;
5608
- readonly resultObservations?: readonly ({
5609
- readonly head: string;
5610
- readonly kind: "change";
5611
- readonly paths: readonly string[];
5612
- readonly pr: string;
5613
- readonly prNumber?: number | undefined;
5614
- } | {
5615
- readonly evidence: readonly string[];
5616
- readonly head: string;
5617
- readonly kind: "no-change";
5618
- })[] | undefined;
5619
- readonly review?: {
5620
- readonly evidence: readonly string[];
5621
- readonly findings?: readonly string[] | undefined;
5622
- readonly head: string;
5623
- readonly receipt: {
5792
+ readonly prompt?: string | undefined;
5793
+ readonly providerFailures?: number | undefined;
5794
+ readonly readRetry?: {
5795
+ readonly error: string;
5796
+ readonly failures: number;
5797
+ readonly retryAt: number;
5798
+ } | undefined;
5799
+ readonly receipt?: {
5624
5800
  readonly sessionId: string;
5625
5801
  readonly turnId: string;
5626
- };
5627
- readonly repairPrompt: string;
5628
- readonly verdict: "approved" | "changes";
5802
+ } | undefined;
5803
+ readonly reviewHead?: string | undefined;
5804
+ readonly reviewRevision?: string | undefined;
5805
+ readonly role: "repair" | "reviewer" | "worker";
5806
+ readonly sessionCleanupComplete?: boolean | undefined;
5807
+ readonly sessionId?: string | undefined;
5808
+ readonly sessionUnusable?: boolean | undefined;
5809
+ readonly settings?: {
5810
+ readonly effort?: string | undefined;
5811
+ readonly model?: string | undefined;
5812
+ readonly serviceTier?: string | undefined;
5813
+ } | undefined;
5814
+ readonly stallRecovery?: {
5815
+ readonly count: number;
5816
+ readonly interruptedAt?: number | undefined;
5817
+ readonly interruptRequestedAt?: number | undefined;
5818
+ readonly lastActionAt: number;
5819
+ readonly steeredAt?: number | undefined;
5820
+ } | undefined;
5821
+ readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
5822
+ readonly submissionTimedOut?: boolean | undefined;
5823
+ readonly submissionUncertain?: boolean | undefined;
5824
+ readonly submittedAt: number;
5825
+ readonly terminalReceipts?: readonly {
5826
+ readonly sessionId: string;
5827
+ readonly turnId: string;
5828
+ }[] | undefined;
5829
+ }[];
5830
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
5831
+ readonly blocker?: string | undefined;
5832
+ readonly boardContext?: string | undefined;
5833
+ readonly boardRevision: string;
5834
+ readonly boardSourcePath?: string | undefined;
5835
+ readonly checks?: {
5836
+ readonly evidence: readonly string[];
5837
+ readonly failedChecks?: readonly string[] | undefined;
5838
+ readonly head: string;
5839
+ readonly passed: boolean;
5840
+ readonly pending?: boolean | undefined;
5841
+ readonly repairPrompt?: string | undefined;
5842
+ } | undefined;
5843
+ readonly completedAt?: number | undefined;
5844
+ readonly conflictRepairs?: readonly string[] | undefined;
5845
+ readonly cwd: string;
5846
+ readonly decision?: {
5847
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
5848
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5849
+ readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
5850
+ readonly id: string;
5851
+ readonly links: readonly string[];
5852
+ readonly publicationWork?: {
5853
+ readonly approved: boolean;
5854
+ readonly areas?: readonly string[] | undefined;
5855
+ readonly context: string;
5856
+ readonly deliverable?: "report" | undefined;
5857
+ readonly dependsOn: readonly string[];
5858
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
5859
+ readonly revision: string;
5860
+ readonly sourcePath: string;
5861
+ readonly status?: string | undefined;
5862
+ readonly workId: string;
5863
+ } | undefined;
5864
+ readonly published?: {
5865
+ readonly itemId: string;
5866
+ readonly questionId: string;
5867
+ readonly request: string;
5868
+ readonly revision: string;
5869
+ readonly sourcePath: string;
5870
+ readonly workId: string;
5871
+ readonly workRevision: string;
5872
+ readonly workSourcePath: string;
5873
+ } | undefined;
5874
+ readonly reason: string;
5875
+ readonly recommendation: string;
5876
+ readonly worker?: {
5877
+ readonly sessionId: string;
5878
+ readonly turnId: string;
5879
+ } | undefined;
5880
+ } | undefined;
5881
+ readonly decisionAcknowledged?: boolean | undefined;
5882
+ readonly decisionPublished?: boolean | undefined;
5883
+ readonly deliverable?: "report" | undefined;
5884
+ readonly dispatchNow?: {
5885
+ readonly ignoreAreas: boolean;
5886
+ } | undefined;
5887
+ readonly integrationRetry?: {
5888
+ readonly error: string;
5889
+ readonly failures: number;
5890
+ readonly retryAt: number;
5891
+ } | undefined;
5892
+ readonly launch?: {
5893
+ readonly effort?: string | undefined;
5894
+ readonly model?: string | undefined;
5895
+ readonly serviceTier?: string | undefined;
5896
+ } | undefined;
5897
+ readonly launchRetry?: {
5898
+ readonly prompt?: string | undefined;
5899
+ readonly rejectedAt: number;
5900
+ readonly rejections: number;
5901
+ readonly retryAt: number;
5902
+ } | undefined;
5903
+ readonly mergeAreasReleased?: boolean | undefined;
5904
+ readonly mergeReadyAt?: number | undefined;
5905
+ readonly mergeReadyHead?: string | undefined;
5906
+ readonly outcome?: {
5907
+ readonly head: string;
5908
+ readonly revision: string;
5909
+ readonly url: string;
5910
+ } | {
5911
+ readonly evidence: readonly string[];
5912
+ } | undefined;
5913
+ readonly pendingAnswers?: readonly string[] | undefined;
5914
+ readonly preparation: {
5915
+ readonly baselinePaths: readonly string[];
5916
+ readonly baseRevision: string;
5917
+ readonly configuration: readonly {
5918
+ readonly path: string;
5919
+ readonly relevantKeys: readonly string[];
5920
+ }[];
5921
+ readonly contextComplete: boolean;
5922
+ readonly dependencyPaths: readonly string[];
5923
+ readonly observedAt: number;
5924
+ readonly ownedPaths: readonly string[];
5925
+ readonly qualityPaths: readonly string[];
5926
+ readonly setupPaths: readonly string[];
5927
+ readonly sourcePaths: readonly string[];
5928
+ readonly validation: readonly {
5929
+ readonly command: string;
5930
+ readonly revision: string;
5931
+ }[];
5932
+ };
5933
+ readonly prompt: string;
5934
+ readonly releaseReason?: string | undefined;
5935
+ readonly report?: {
5936
+ readonly itemId: string;
5937
+ readonly receipt: {
5938
+ readonly sessionId: string;
5939
+ readonly turnId: string;
5940
+ };
5941
+ readonly revision: string;
5942
+ readonly sourcePath: string;
5943
+ readonly workRevision: string;
5944
+ } | undefined;
5945
+ readonly responses?: readonly {
5946
+ readonly action?: "continue" | "release" | "retry" | undefined;
5947
+ readonly boardAcknowledged?: boolean | undefined;
5948
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5949
+ readonly decisionId: string;
5950
+ readonly processedAt: number;
5951
+ readonly published?: {
5952
+ readonly itemId: string;
5953
+ readonly questionId: string;
5954
+ readonly request: string;
5955
+ readonly revision: string;
5956
+ readonly sourcePath: string;
5957
+ readonly workId: string;
5958
+ readonly workRevision: string;
5959
+ readonly workSourcePath: string;
5960
+ } | undefined;
5961
+ readonly questionId: string;
5962
+ readonly questionRevision: string;
5963
+ readonly responseId: string;
5964
+ readonly type: "answer" | "clarify" | "not_now";
5965
+ }[] | undefined;
5966
+ readonly result?: {
5967
+ readonly head: string;
5968
+ readonly kind: "change";
5969
+ readonly paths: readonly string[];
5970
+ readonly pr: string;
5971
+ readonly prNumber?: number | undefined;
5972
+ } | {
5973
+ readonly evidence: readonly string[];
5974
+ readonly head: string;
5975
+ readonly kind: "no-change";
5976
+ } | undefined;
5977
+ readonly resultObservations?: readonly ({
5978
+ readonly head: string;
5979
+ readonly kind: "change";
5980
+ readonly paths: readonly string[];
5981
+ readonly pr: string;
5982
+ readonly prNumber?: number | undefined;
5983
+ } | {
5984
+ readonly evidence: readonly string[];
5985
+ readonly head: string;
5986
+ readonly kind: "no-change";
5987
+ })[] | undefined;
5988
+ readonly review?: {
5989
+ readonly evidence: readonly string[];
5990
+ readonly findings?: readonly string[] | undefined;
5991
+ readonly head: string;
5992
+ readonly receipt: {
5993
+ readonly sessionId: string;
5994
+ readonly turnId: string;
5995
+ };
5996
+ readonly repairPrompt: string;
5997
+ readonly verdict: "approved" | "changes";
5629
5998
  } | undefined;
5630
5999
  readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
5631
6000
  readonly stageEnteredAt?: number | undefined;
@@ -5649,300 +6018,33 @@ export declare const operationRecord: (store: Omit<{
5649
6018
  readonly supersededAt: number;
5650
6019
  }[] | undefined;
5651
6020
  readonly updatedAt?: number | undefined;
5652
- readonly history?: readonly {
5653
- readonly admissionReady?: boolean | undefined;
5654
- readonly areas?: readonly string[] | undefined;
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 {
6021
+ readonly archivedAt: number;
6022
+ }[] | undefined;
6023
+ readonly workId: string;
6024
+ }>[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
6025
+ load: (workId: string) => Effect.Effect<{
6026
+ value: {
6027
+ readonly admissionReady?: boolean | undefined;
6028
+ readonly areas?: readonly string[] | undefined;
6029
+ readonly attempts: readonly {
6030
+ readonly abandoned?: {
6031
+ readonly at: number;
6032
+ readonly interruptError?: string | undefined;
6033
+ readonly observation?: {
6034
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
5678
6035
  readonly error?: string | undefined;
5679
- readonly requestedAt: number;
5680
- readonly revision: string;
5681
- readonly steeredAt?: number | undefined;
5682
- }[] | undefined;
5683
- readonly checkFailures?: readonly string[] | undefined;
5684
- readonly missingSince?: number | undefined;
5685
- readonly observationRetries?: number | undefined;
5686
- readonly operationId: string;
5687
- readonly output?: string | undefined;
5688
- readonly progress?: {
5689
- readonly at: number;
5690
- readonly signature: string;
5691
- } | undefined;
5692
- readonly prompt?: string | undefined;
5693
- readonly providerFailures?: number | undefined;
5694
- readonly readRetry?: {
5695
- readonly error: string;
5696
- readonly failures: number;
5697
- readonly retryAt: number;
5698
- } | undefined;
5699
- readonly receipt?: {
5700
- readonly sessionId: string;
5701
- readonly turnId: string;
5702
- } | undefined;
5703
- readonly reviewHead?: string | undefined;
5704
- readonly reviewRevision?: string | undefined;
5705
- readonly role: "repair" | "reviewer" | "worker";
5706
- readonly sessionCleanupComplete?: boolean | undefined;
5707
- readonly sessionId?: string | undefined;
5708
- readonly sessionUnusable?: boolean | undefined;
5709
- readonly settings?: {
5710
- readonly effort?: string | undefined;
5711
- readonly model?: string | undefined;
5712
- readonly serviceTier?: string | undefined;
5713
- } | undefined;
5714
- readonly stallRecovery?: {
5715
- readonly count: number;
5716
- readonly interruptedAt?: number | undefined;
5717
- readonly interruptRequestedAt?: number | undefined;
5718
- readonly lastActionAt: number;
5719
- readonly steeredAt?: number | undefined;
5720
- } | undefined;
5721
- readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
5722
- readonly submissionTimedOut?: boolean | undefined;
5723
- readonly submissionUncertain?: boolean | undefined;
5724
- readonly submittedAt: number;
5725
- readonly terminalReceipts?: readonly {
5726
- readonly sessionId: string;
5727
- readonly turnId: string;
5728
- }[] | undefined;
5729
- }[];
5730
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
5731
- readonly blocker?: string | undefined;
5732
- readonly boardContext?: string | undefined;
5733
- readonly boardRevision: string;
5734
- readonly boardSourcePath?: string | undefined;
5735
- readonly checks?: {
5736
- readonly evidence: readonly string[];
5737
- readonly failedChecks?: readonly string[] | undefined;
5738
- readonly head: string;
5739
- readonly passed: boolean;
5740
- readonly pending?: boolean | undefined;
5741
- readonly repairPrompt?: string | undefined;
5742
- } | undefined;
5743
- readonly completedAt?: number | undefined;
5744
- readonly conflictRepairs?: readonly string[] | undefined;
5745
- readonly cwd: string;
5746
- readonly decision?: {
5747
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
5748
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5749
- readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
5750
- readonly id: string;
5751
- readonly links: readonly string[];
5752
- readonly publicationWork?: {
5753
- readonly approved: boolean;
5754
- readonly areas?: readonly string[] | undefined;
5755
- readonly context: string;
5756
- readonly deliverable?: "report" | undefined;
5757
- readonly dependsOn: readonly string[];
5758
- readonly revision: string;
5759
- readonly sourcePath: string;
5760
- readonly status?: string | undefined;
5761
- readonly workId: string;
5762
- } | undefined;
5763
- readonly published?: {
5764
- readonly itemId: string;
5765
- readonly questionId: string;
5766
- readonly request: string;
5767
- readonly revision: string;
5768
- readonly sourcePath: string;
5769
- readonly workId: string;
5770
- readonly workRevision: string;
5771
- readonly workSourcePath: string;
5772
- } | undefined;
5773
- readonly reason: string;
5774
- readonly recommendation: string;
5775
- readonly worker?: {
5776
- readonly sessionId: string;
5777
- readonly turnId: string;
5778
- } | undefined;
5779
- } | undefined;
5780
- readonly decisionAcknowledged?: boolean | undefined;
5781
- readonly decisionPublished?: boolean | undefined;
5782
- readonly deliverable?: "report" | undefined;
5783
- readonly integrationRetry?: {
5784
- readonly error: string;
5785
- readonly failures: number;
5786
- readonly retryAt: number;
5787
- } | undefined;
5788
- readonly launch?: {
5789
- readonly effort?: string | undefined;
5790
- readonly model?: string | undefined;
5791
- readonly serviceTier?: string | undefined;
5792
- } | undefined;
5793
- readonly launchRetry?: {
5794
- readonly prompt?: string | undefined;
5795
- readonly rejectedAt: number;
5796
- readonly rejections: number;
5797
- readonly retryAt: number;
5798
- } | undefined;
5799
- readonly mergeAreasReleased?: boolean | undefined;
5800
- readonly mergeReadyAt?: number | undefined;
5801
- readonly mergeReadyHead?: string | undefined;
5802
- readonly outcome?: {
5803
- readonly head: string;
5804
- readonly revision: string;
5805
- readonly url: string;
5806
- } | {
5807
- readonly evidence: readonly string[];
5808
- } | undefined;
5809
- readonly pendingAnswers?: readonly string[] | undefined;
5810
- readonly preparation: {
5811
- readonly baselinePaths: readonly string[];
5812
- readonly baseRevision: string;
5813
- readonly configuration: readonly {
5814
- readonly path: string;
5815
- readonly relevantKeys: readonly string[];
5816
- }[];
5817
- readonly contextComplete: boolean;
5818
- readonly dependencyPaths: readonly string[];
5819
- readonly observedAt: number;
5820
- readonly ownedPaths: readonly string[];
5821
- readonly qualityPaths: readonly string[];
5822
- readonly setupPaths: readonly string[];
5823
- readonly sourcePaths: readonly string[];
5824
- readonly validation: readonly {
5825
- readonly command: string;
5826
- readonly revision: string;
5827
- }[];
5828
- };
5829
- readonly prompt: string;
5830
- readonly releaseReason?: string | undefined;
5831
- readonly report?: {
5832
- readonly itemId: string;
5833
- readonly receipt: {
5834
- readonly sessionId: string;
5835
- readonly turnId: string;
5836
- };
5837
- readonly revision: string;
5838
- readonly sourcePath: string;
5839
- readonly workRevision: string;
5840
- } | undefined;
5841
- readonly responses?: readonly {
5842
- readonly action?: "continue" | "release" | "retry" | undefined;
5843
- readonly boardAcknowledged?: boolean | undefined;
5844
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5845
- readonly decisionId: string;
5846
- readonly processedAt: number;
5847
- readonly published?: {
5848
- readonly itemId: string;
5849
- readonly questionId: string;
5850
- readonly request: string;
5851
- readonly revision: string;
5852
- readonly sourcePath: string;
5853
- readonly workId: string;
5854
- readonly workRevision: string;
5855
- readonly workSourcePath: string;
5856
- } | undefined;
5857
- readonly questionId: string;
5858
- readonly questionRevision: string;
5859
- readonly responseId: string;
5860
- readonly type: "answer" | "clarify" | "not_now";
5861
- }[] | undefined;
5862
- readonly result?: {
5863
- readonly head: string;
5864
- readonly kind: "change";
5865
- readonly paths: readonly string[];
5866
- readonly pr: string;
5867
- readonly prNumber?: number | undefined;
5868
- } | {
5869
- readonly evidence: readonly string[];
5870
- readonly head: string;
5871
- readonly kind: "no-change";
5872
- } | undefined;
5873
- readonly resultObservations?: readonly ({
5874
- readonly head: string;
5875
- readonly kind: "change";
5876
- readonly paths: readonly string[];
5877
- readonly pr: string;
5878
- readonly prNumber?: number | undefined;
5879
- } | {
5880
- readonly evidence: readonly string[];
5881
- readonly head: string;
5882
- readonly kind: "no-change";
5883
- })[] | undefined;
5884
- readonly review?: {
5885
- readonly evidence: readonly string[];
5886
- readonly findings?: readonly string[] | undefined;
5887
- readonly head: string;
5888
- readonly receipt: {
5889
- readonly sessionId: string;
5890
- readonly turnId: string;
5891
- };
5892
- readonly repairPrompt: string;
5893
- readonly verdict: "approved" | "changes";
5894
- } | undefined;
5895
- readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
5896
- readonly stageEnteredAt?: number | undefined;
5897
- readonly supersededDecisions?: readonly {
5898
- readonly boardAcknowledged?: boolean | undefined;
5899
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
5900
- readonly published: {
5901
- readonly itemId: string;
5902
- readonly questionId: string;
5903
- readonly request: string;
5904
- readonly revision: string;
5905
- readonly sourcePath: string;
5906
- readonly workId: string;
5907
- readonly workRevision: string;
5908
- readonly workSourcePath: string;
5909
- };
5910
- readonly reassignedTo?: {
5911
- readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
5912
- readonly decisionId: string;
5913
- } | undefined;
5914
- readonly supersededAt: number;
5915
- }[] | undefined;
5916
- readonly updatedAt?: number | undefined;
5917
- readonly archivedAt: number;
5918
- }[] | undefined;
5919
- readonly workId: string;
5920
- };
5921
- version: number;
5922
- }[], import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
5923
- load: (workId: string) => Effect.Effect<{
5924
- value: {
5925
- readonly admissionReady?: boolean | undefined;
5926
- readonly areas?: readonly string[] | undefined;
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;
6036
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
6037
+ readonly output: string;
6038
+ readonly progress?: readonly {
6039
+ readonly id: string;
6040
+ readonly status?: string | undefined;
6041
+ }[] | undefined;
6042
+ readonly provisioning: "ready" | "unknown";
6043
+ readonly receipt: {
6044
+ readonly sessionId: string;
6045
+ readonly turnId: string;
6046
+ };
6047
+ readonly turnMissing?: boolean | undefined;
5946
6048
  } | undefined;
5947
6049
  readonly observationError?: string | undefined;
5948
6050
  } | undefined;
@@ -5957,6 +6059,7 @@ export declare const operationRecord: (store: Omit<{
5957
6059
  readonly observationRetries?: number | undefined;
5958
6060
  readonly operationId: string;
5959
6061
  readonly output?: string | undefined;
6062
+ readonly overLimit?: boolean | undefined;
5960
6063
  readonly progress?: {
5961
6064
  readonly at: number;
5962
6065
  readonly signature: string;
@@ -6027,6 +6130,7 @@ export declare const operationRecord: (store: Omit<{
6027
6130
  readonly context: string;
6028
6131
  readonly deliverable?: "report" | undefined;
6029
6132
  readonly dependsOn: readonly string[];
6133
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
6030
6134
  readonly revision: string;
6031
6135
  readonly sourcePath: string;
6032
6136
  readonly status?: string | undefined;
@@ -6052,6 +6156,9 @@ export declare const operationRecord: (store: Omit<{
6052
6156
  readonly decisionAcknowledged?: boolean | undefined;
6053
6157
  readonly decisionPublished?: boolean | undefined;
6054
6158
  readonly deliverable?: "report" | undefined;
6159
+ readonly dispatchNow?: {
6160
+ readonly ignoreAreas: boolean;
6161
+ } | undefined;
6055
6162
  readonly integrationRetry?: {
6056
6163
  readonly error: string;
6057
6164
  readonly failures: number;
@@ -6202,800 +6309,812 @@ export declare const operationRecord: (store: Omit<{
6202
6309
  readonly id: string;
6203
6310
  readonly status?: string | undefined;
6204
6311
  }[] | 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;
6220
- readonly checkFailures?: readonly string[] | undefined;
6221
- readonly missingSince?: number | undefined;
6222
- readonly observationRetries?: number | undefined;
6223
- readonly operationId: string;
6224
- readonly output?: string | undefined;
6225
- readonly progress?: {
6226
- readonly at: number;
6227
- readonly signature: string;
6228
- } | undefined;
6229
- readonly prompt?: string | undefined;
6230
- readonly providerFailures?: number | undefined;
6231
- readonly readRetry?: {
6232
- readonly error: string;
6233
- readonly failures: number;
6234
- readonly retryAt: number;
6235
- } | undefined;
6236
- readonly receipt?: {
6237
- readonly sessionId: string;
6238
- readonly turnId: string;
6239
- } | undefined;
6240
- readonly reviewHead?: string | undefined;
6241
- readonly reviewRevision?: string | undefined;
6242
- readonly role: "repair" | "reviewer" | "worker";
6243
- readonly sessionCleanupComplete?: boolean | undefined;
6244
- readonly sessionId?: string | undefined;
6245
- readonly sessionUnusable?: boolean | undefined;
6246
- readonly settings?: {
6247
- readonly effort?: string | undefined;
6248
- readonly model?: string | undefined;
6249
- readonly serviceTier?: string | undefined;
6250
- } | undefined;
6251
- readonly stallRecovery?: {
6252
- readonly count: number;
6253
- readonly interruptedAt?: number | undefined;
6254
- readonly interruptRequestedAt?: number | undefined;
6255
- readonly lastActionAt: number;
6256
- readonly steeredAt?: number | undefined;
6257
- } | undefined;
6258
- readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
6259
- readonly submissionTimedOut?: boolean | undefined;
6260
- readonly submissionUncertain?: boolean | undefined;
6261
- readonly submittedAt: number;
6262
- readonly terminalReceipts?: readonly {
6263
- readonly sessionId: string;
6264
- readonly turnId: string;
6265
- }[] | undefined;
6266
- }[];
6267
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6268
- readonly blocker?: string | undefined;
6269
- readonly boardContext?: string | undefined;
6270
- readonly boardRevision: string;
6271
- readonly boardSourcePath?: string | undefined;
6272
- readonly checks?: {
6273
- readonly evidence: readonly string[];
6274
- readonly failedChecks?: readonly string[] | undefined;
6275
- readonly head: string;
6276
- readonly passed: boolean;
6277
- readonly pending?: boolean | undefined;
6278
- readonly repairPrompt?: string | undefined;
6279
- } | undefined;
6280
- readonly completedAt?: number | undefined;
6281
- readonly conflictRepairs?: readonly string[] | undefined;
6282
- readonly cwd: string;
6283
- readonly decision?: {
6284
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6285
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6286
- readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
6287
- readonly id: string;
6288
- readonly links: readonly string[];
6289
- readonly publicationWork?: {
6290
- readonly approved: boolean;
6291
- readonly areas?: readonly string[] | undefined;
6292
- readonly context: string;
6293
- readonly deliverable?: "report" | undefined;
6294
- readonly dependsOn: readonly string[];
6295
- readonly revision: string;
6296
- readonly sourcePath: string;
6297
- readonly status?: string | undefined;
6298
- readonly workId: string;
6299
- } | undefined;
6300
- readonly published?: {
6301
- readonly itemId: string;
6302
- readonly questionId: string;
6303
- readonly request: string;
6304
- readonly revision: string;
6305
- readonly sourcePath: string;
6306
- readonly workId: string;
6307
- readonly workRevision: string;
6308
- readonly workSourcePath: string;
6309
- } | undefined;
6310
- readonly reason: string;
6311
- readonly recommendation: string;
6312
- readonly worker?: {
6313
- readonly sessionId: string;
6314
- readonly turnId: string;
6315
- } | undefined;
6316
- } | undefined;
6317
- readonly decisionAcknowledged?: boolean | undefined;
6318
- readonly decisionPublished?: boolean | undefined;
6319
- readonly deliverable?: "report" | undefined;
6320
- readonly integrationRetry?: {
6321
- readonly error: string;
6322
- readonly failures: number;
6323
- readonly retryAt: number;
6324
- } | undefined;
6325
- readonly launch?: {
6326
- readonly effort?: string | undefined;
6327
- readonly model?: string | undefined;
6328
- readonly serviceTier?: string | undefined;
6329
- } | undefined;
6330
- readonly launchRetry?: {
6331
- readonly prompt?: string | undefined;
6332
- readonly rejectedAt: number;
6333
- readonly rejections: number;
6334
- readonly retryAt: number;
6335
- } | undefined;
6336
- readonly mergeAreasReleased?: boolean | undefined;
6337
- readonly mergeReadyAt?: number | undefined;
6338
- readonly mergeReadyHead?: string | undefined;
6339
- readonly outcome?: {
6340
- readonly head: string;
6341
- readonly revision: string;
6342
- readonly url: string;
6343
- } | {
6344
- readonly evidence: readonly string[];
6345
- } | undefined;
6346
- readonly pendingAnswers?: readonly string[] | undefined;
6347
- readonly preparation: {
6348
- readonly baselinePaths: readonly string[];
6349
- readonly baseRevision: string;
6350
- readonly configuration: readonly {
6351
- readonly path: string;
6352
- readonly relevantKeys: readonly string[];
6353
- }[];
6354
- readonly contextComplete: boolean;
6355
- readonly dependencyPaths: readonly string[];
6356
- readonly observedAt: number;
6357
- readonly ownedPaths: readonly string[];
6358
- readonly qualityPaths: readonly string[];
6359
- readonly setupPaths: readonly string[];
6360
- readonly sourcePaths: readonly string[];
6361
- readonly validation: readonly {
6362
- readonly command: string;
6363
- readonly revision: string;
6364
- }[];
6365
- };
6366
- readonly prompt: string;
6367
- readonly releaseReason?: string | undefined;
6368
- readonly report?: {
6369
- readonly itemId: string;
6370
- readonly receipt: {
6371
- readonly sessionId: string;
6372
- readonly turnId: string;
6373
- };
6374
- readonly revision: string;
6375
- readonly sourcePath: string;
6376
- readonly workRevision: string;
6377
- } | undefined;
6378
- readonly responses?: readonly {
6379
- readonly action?: "continue" | "release" | "retry" | undefined;
6380
- readonly boardAcknowledged?: boolean | undefined;
6381
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6382
- readonly decisionId: string;
6383
- readonly processedAt: number;
6384
- readonly published?: {
6385
- readonly itemId: string;
6386
- readonly questionId: string;
6387
- readonly request: string;
6388
- readonly revision: string;
6389
- readonly sourcePath: string;
6390
- readonly workId: string;
6391
- readonly workRevision: string;
6392
- readonly workSourcePath: string;
6393
- } | undefined;
6394
- readonly questionId: string;
6395
- readonly questionRevision: string;
6396
- readonly responseId: string;
6397
- readonly type: "answer" | "clarify" | "not_now";
6398
- }[] | undefined;
6399
- readonly result?: {
6400
- readonly head: string;
6401
- readonly kind: "change";
6402
- readonly paths: readonly string[];
6403
- readonly pr: string;
6404
- readonly prNumber?: number | undefined;
6405
- } | {
6406
- readonly evidence: readonly string[];
6407
- readonly head: string;
6408
- readonly kind: "no-change";
6409
- } | undefined;
6410
- readonly resultObservations?: readonly ({
6411
- readonly head: string;
6412
- readonly kind: "change";
6413
- readonly paths: readonly string[];
6414
- readonly pr: string;
6415
- readonly prNumber?: number | undefined;
6416
- } | {
6417
- readonly evidence: readonly string[];
6418
- readonly head: string;
6419
- readonly kind: "no-change";
6420
- })[] | undefined;
6421
- readonly review?: {
6422
- readonly evidence: readonly string[];
6423
- readonly findings?: readonly string[] | undefined;
6424
- readonly head: string;
6425
- readonly receipt: {
6426
- readonly sessionId: string;
6427
- readonly turnId: string;
6428
- };
6429
- readonly repairPrompt: string;
6430
- readonly verdict: "approved" | "changes";
6431
- } | undefined;
6432
- readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
6433
- readonly stageEnteredAt?: number | undefined;
6434
- readonly supersededDecisions?: readonly {
6435
- readonly boardAcknowledged?: boolean | undefined;
6436
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6437
- readonly published: {
6438
- readonly itemId: string;
6439
- readonly questionId: string;
6440
- readonly request: string;
6441
- readonly revision: string;
6442
- readonly sourcePath: string;
6443
- readonly workId: string;
6444
- readonly workRevision: string;
6445
- readonly workSourcePath: string;
6446
- };
6447
- readonly reassignedTo?: {
6448
- readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
6449
- readonly decisionId: string;
6450
- } | undefined;
6451
- readonly supersededAt: number;
6452
- }[] | undefined;
6453
- readonly updatedAt?: number | undefined;
6454
- readonly archivedAt: number;
6455
- }[] | undefined;
6456
- readonly workId: string;
6457
- };
6458
- version: number;
6459
- } | undefined, 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>;
6464
- }, "operationEntries">>, operationId: string) => Effect.Effect<{
6465
- value: {
6466
- readonly admissionReady?: boolean | undefined;
6467
- readonly areas?: readonly string[] | undefined;
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;
6496
- readonly checkFailures?: readonly string[] | undefined;
6497
- readonly missingSince?: number | undefined;
6498
- readonly observationRetries?: number | undefined;
6499
- readonly operationId: string;
6500
- readonly output?: string | undefined;
6501
- readonly progress?: {
6502
- readonly at: number;
6503
- readonly signature: string;
6504
- } | undefined;
6505
- readonly prompt?: string | undefined;
6506
- readonly providerFailures?: number | undefined;
6507
- readonly readRetry?: {
6508
- readonly error: string;
6509
- readonly failures: number;
6510
- readonly retryAt: number;
6511
- } | undefined;
6512
- readonly receipt?: {
6513
- readonly sessionId: string;
6514
- readonly turnId: string;
6515
- } | undefined;
6516
- readonly reviewHead?: string | undefined;
6517
- readonly reviewRevision?: string | undefined;
6518
- readonly role: "repair" | "reviewer" | "worker";
6519
- readonly sessionCleanupComplete?: boolean | undefined;
6520
- readonly sessionId?: string | undefined;
6521
- readonly sessionUnusable?: boolean | undefined;
6522
- readonly settings?: {
6523
- readonly effort?: string | undefined;
6524
- readonly model?: string | undefined;
6525
- readonly serviceTier?: string | undefined;
6526
- } | undefined;
6527
- readonly stallRecovery?: {
6528
- readonly count: number;
6529
- readonly interruptedAt?: number | undefined;
6530
- readonly interruptRequestedAt?: number | undefined;
6531
- readonly lastActionAt: number;
6532
- readonly steeredAt?: number | undefined;
6533
- } | undefined;
6534
- readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
6535
- readonly submissionTimedOut?: boolean | undefined;
6536
- readonly submissionUncertain?: boolean | undefined;
6537
- readonly submittedAt: number;
6538
- readonly terminalReceipts?: readonly {
6539
- readonly sessionId: string;
6540
- readonly turnId: string;
6541
- }[] | undefined;
6542
- }[];
6543
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6544
- readonly blocker?: string | undefined;
6545
- readonly boardContext?: string | undefined;
6546
- readonly boardRevision: string;
6547
- readonly boardSourcePath?: string | undefined;
6548
- readonly checks?: {
6549
- readonly evidence: readonly string[];
6550
- readonly failedChecks?: readonly string[] | undefined;
6551
- readonly head: string;
6552
- readonly passed: boolean;
6553
- readonly pending?: boolean | undefined;
6554
- readonly repairPrompt?: string | undefined;
6555
- } | undefined;
6556
- readonly completedAt?: number | undefined;
6557
- readonly conflictRepairs?: readonly string[] | undefined;
6558
- readonly cwd: string;
6559
- readonly decision?: {
6560
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6561
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6562
- readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
6563
- readonly id: string;
6564
- readonly links: readonly string[];
6565
- readonly publicationWork?: {
6566
- readonly approved: boolean;
6567
- readonly areas?: readonly string[] | undefined;
6568
- readonly context: string;
6569
- readonly deliverable?: "report" | undefined;
6570
- readonly dependsOn: readonly string[];
6571
- readonly revision: string;
6572
- readonly sourcePath: string;
6573
- readonly status?: string | undefined;
6574
- readonly workId: string;
6575
- } | undefined;
6576
- readonly published?: {
6577
- readonly itemId: string;
6578
- readonly questionId: string;
6579
- readonly request: string;
6580
- readonly revision: string;
6581
- readonly sourcePath: string;
6582
- readonly workId: string;
6583
- readonly workRevision: string;
6584
- readonly workSourcePath: string;
6585
- } | undefined;
6586
- readonly reason: string;
6587
- readonly recommendation: string;
6588
- readonly worker?: {
6589
- readonly sessionId: string;
6590
- readonly turnId: string;
6591
- } | undefined;
6592
- } | undefined;
6593
- readonly decisionAcknowledged?: boolean | undefined;
6594
- readonly decisionPublished?: boolean | undefined;
6595
- readonly deliverable?: "report" | undefined;
6596
- readonly integrationRetry?: {
6597
- readonly error: string;
6598
- readonly failures: number;
6599
- readonly retryAt: number;
6600
- } | undefined;
6601
- readonly launch?: {
6602
- readonly effort?: string | undefined;
6603
- readonly model?: string | undefined;
6604
- readonly serviceTier?: string | undefined;
6605
- } | undefined;
6606
- readonly launchRetry?: {
6607
- readonly prompt?: string | undefined;
6608
- readonly rejectedAt: number;
6609
- readonly rejections: number;
6610
- readonly retryAt: number;
6611
- } | undefined;
6612
- readonly mergeAreasReleased?: boolean | undefined;
6613
- readonly mergeReadyAt?: number | undefined;
6614
- readonly mergeReadyHead?: string | undefined;
6615
- readonly outcome?: {
6616
- readonly head: string;
6617
- readonly revision: string;
6618
- readonly url: string;
6619
- } | {
6620
- readonly evidence: readonly string[];
6621
- } | undefined;
6622
- readonly pendingAnswers?: readonly string[] | undefined;
6623
- readonly preparation: {
6624
- readonly baselinePaths: readonly string[];
6625
- readonly baseRevision: string;
6626
- readonly configuration: readonly {
6627
- readonly path: string;
6628
- readonly relevantKeys: readonly string[];
6629
- }[];
6630
- readonly contextComplete: boolean;
6631
- readonly dependencyPaths: readonly string[];
6632
- readonly observedAt: number;
6633
- readonly ownedPaths: readonly string[];
6634
- readonly qualityPaths: readonly string[];
6635
- readonly setupPaths: readonly string[];
6636
- readonly sourcePaths: readonly string[];
6637
- readonly validation: readonly {
6638
- readonly command: string;
6639
- readonly revision: string;
6640
- }[];
6641
- };
6642
- readonly prompt: string;
6643
- readonly releaseReason?: string | undefined;
6644
- readonly report?: {
6645
- readonly itemId: string;
6646
- readonly receipt: {
6647
- readonly sessionId: string;
6648
- readonly turnId: string;
6649
- };
6650
- readonly revision: string;
6651
- readonly sourcePath: string;
6652
- readonly workRevision: string;
6653
- } | undefined;
6654
- readonly responses?: readonly {
6655
- readonly action?: "continue" | "release" | "retry" | undefined;
6656
- readonly boardAcknowledged?: boolean | undefined;
6657
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6658
- readonly decisionId: string;
6659
- readonly processedAt: number;
6660
- readonly published?: {
6661
- readonly itemId: string;
6662
- readonly questionId: string;
6663
- readonly request: string;
6664
- readonly revision: string;
6665
- readonly sourcePath: string;
6666
- readonly workId: string;
6667
- readonly workRevision: string;
6668
- readonly workSourcePath: string;
6669
- } | undefined;
6670
- readonly questionId: string;
6671
- readonly questionRevision: string;
6672
- readonly responseId: string;
6673
- readonly type: "answer" | "clarify" | "not_now";
6674
- }[] | undefined;
6675
- readonly result?: {
6676
- readonly head: string;
6677
- readonly kind: "change";
6678
- readonly paths: readonly string[];
6679
- readonly pr: string;
6680
- readonly prNumber?: number | undefined;
6681
- } | {
6682
- readonly evidence: readonly string[];
6683
- readonly head: string;
6684
- readonly kind: "no-change";
6685
- } | undefined;
6686
- readonly resultObservations?: readonly ({
6687
- readonly head: string;
6688
- readonly kind: "change";
6689
- readonly paths: readonly string[];
6690
- readonly pr: string;
6691
- readonly prNumber?: number | undefined;
6692
- } | {
6693
- readonly evidence: readonly string[];
6694
- readonly head: string;
6695
- readonly kind: "no-change";
6696
- })[] | undefined;
6697
- readonly review?: {
6698
- readonly evidence: readonly string[];
6699
- readonly findings?: readonly string[] | undefined;
6700
- readonly head: string;
6701
- readonly receipt: {
6702
- readonly sessionId: string;
6703
- readonly turnId: string;
6704
- };
6705
- readonly repairPrompt: string;
6706
- readonly verdict: "approved" | "changes";
6707
- } | undefined;
6708
- readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
6709
- readonly stageEnteredAt?: number | undefined;
6710
- readonly supersededDecisions?: readonly {
6711
- readonly boardAcknowledged?: boolean | undefined;
6712
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6713
- readonly published: {
6714
- readonly itemId: string;
6715
- readonly questionId: string;
6716
- readonly request: string;
6717
- readonly revision: string;
6718
- readonly sourcePath: string;
6719
- readonly workId: string;
6720
- readonly workRevision: string;
6721
- readonly workSourcePath: string;
6722
- };
6723
- readonly reassignedTo?: {
6724
- readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
6725
- readonly decisionId: string;
6726
- } | undefined;
6727
- readonly supersededAt: number;
6728
- }[] | undefined;
6729
- readonly updatedAt?: number | undefined;
6730
- readonly history?: readonly {
6731
- readonly admissionReady?: boolean | undefined;
6732
- readonly areas?: readonly string[] | undefined;
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;
6312
+ readonly provisioning: "ready" | "unknown";
6313
+ readonly receipt: {
6314
+ readonly sessionId: string;
6315
+ readonly turnId: string;
6316
+ };
6317
+ readonly turnMissing?: boolean | undefined;
6318
+ } | undefined;
6319
+ readonly observationError?: string | undefined;
6320
+ } | undefined;
6321
+ readonly briefSteers?: readonly {
6739
6322
  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;
6323
+ readonly requestedAt: number;
6324
+ readonly revision: string;
6325
+ readonly steeredAt?: number | undefined;
6326
+ }[] | undefined;
6327
+ readonly checkFailures?: readonly string[] | undefined;
6328
+ readonly missingSince?: number | undefined;
6329
+ readonly observationRetries?: number | undefined;
6330
+ readonly operationId: string;
6331
+ readonly output?: string | undefined;
6332
+ readonly overLimit?: boolean | undefined;
6333
+ readonly progress?: {
6334
+ readonly at: number;
6335
+ readonly signature: string;
6752
6336
  } | undefined;
6753
- readonly observationError?: string | undefined;
6337
+ readonly prompt?: string | undefined;
6338
+ readonly providerFailures?: number | undefined;
6339
+ readonly readRetry?: {
6340
+ readonly error: string;
6341
+ readonly failures: number;
6342
+ readonly retryAt: number;
6343
+ } | undefined;
6344
+ readonly receipt?: {
6345
+ readonly sessionId: string;
6346
+ readonly turnId: string;
6347
+ } | undefined;
6348
+ readonly reviewHead?: string | undefined;
6349
+ readonly reviewRevision?: string | undefined;
6350
+ readonly role: "repair" | "reviewer" | "worker";
6351
+ readonly sessionCleanupComplete?: boolean | undefined;
6352
+ readonly sessionId?: string | undefined;
6353
+ readonly sessionUnusable?: boolean | undefined;
6354
+ readonly settings?: {
6355
+ readonly effort?: string | undefined;
6356
+ readonly model?: string | undefined;
6357
+ readonly serviceTier?: string | undefined;
6358
+ } | undefined;
6359
+ readonly stallRecovery?: {
6360
+ readonly count: number;
6361
+ readonly interruptedAt?: number | undefined;
6362
+ readonly interruptRequestedAt?: number | undefined;
6363
+ readonly lastActionAt: number;
6364
+ readonly steeredAt?: number | undefined;
6365
+ } | undefined;
6366
+ readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
6367
+ readonly submissionTimedOut?: boolean | undefined;
6368
+ readonly submissionUncertain?: boolean | undefined;
6369
+ readonly submittedAt: number;
6370
+ readonly terminalReceipts?: readonly {
6371
+ readonly sessionId: string;
6372
+ readonly turnId: string;
6373
+ }[] | undefined;
6374
+ }[];
6375
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6376
+ readonly blocker?: string | undefined;
6377
+ readonly boardContext?: string | undefined;
6378
+ readonly boardRevision: string;
6379
+ readonly boardSourcePath?: string | undefined;
6380
+ readonly checks?: {
6381
+ readonly evidence: readonly string[];
6382
+ readonly failedChecks?: readonly string[] | undefined;
6383
+ readonly head: string;
6384
+ readonly passed: boolean;
6385
+ readonly pending?: boolean | undefined;
6386
+ readonly repairPrompt?: string | undefined;
6754
6387
  } | 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;
6761
- readonly checkFailures?: readonly string[] | undefined;
6762
- readonly missingSince?: number | undefined;
6763
- readonly observationRetries?: number | undefined;
6764
- readonly operationId: string;
6765
- readonly output?: string | undefined;
6766
- readonly progress?: {
6767
- readonly at: number;
6768
- readonly signature: string;
6388
+ readonly completedAt?: number | undefined;
6389
+ readonly conflictRepairs?: readonly string[] | undefined;
6390
+ readonly cwd: string;
6391
+ readonly decision?: {
6392
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6393
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6394
+ readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
6395
+ readonly id: string;
6396
+ readonly links: readonly string[];
6397
+ readonly publicationWork?: {
6398
+ readonly approved: boolean;
6399
+ readonly areas?: readonly string[] | undefined;
6400
+ readonly context: string;
6401
+ readonly deliverable?: "report" | undefined;
6402
+ readonly dependsOn: readonly string[];
6403
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
6404
+ readonly revision: string;
6405
+ readonly sourcePath: string;
6406
+ readonly status?: string | undefined;
6407
+ readonly workId: string;
6408
+ } | undefined;
6409
+ readonly published?: {
6410
+ readonly itemId: string;
6411
+ readonly questionId: string;
6412
+ readonly request: string;
6413
+ readonly revision: string;
6414
+ readonly sourcePath: string;
6415
+ readonly workId: string;
6416
+ readonly workRevision: string;
6417
+ readonly workSourcePath: string;
6418
+ } | undefined;
6419
+ readonly reason: string;
6420
+ readonly recommendation: string;
6421
+ readonly worker?: {
6422
+ readonly sessionId: string;
6423
+ readonly turnId: string;
6424
+ } | undefined;
6769
6425
  } | undefined;
6770
- readonly prompt?: string | undefined;
6771
- readonly providerFailures?: number | undefined;
6772
- readonly readRetry?: {
6426
+ readonly decisionAcknowledged?: boolean | undefined;
6427
+ readonly decisionPublished?: boolean | undefined;
6428
+ readonly deliverable?: "report" | undefined;
6429
+ readonly dispatchNow?: {
6430
+ readonly ignoreAreas: boolean;
6431
+ } | undefined;
6432
+ readonly integrationRetry?: {
6773
6433
  readonly error: string;
6774
6434
  readonly failures: number;
6775
6435
  readonly retryAt: number;
6776
6436
  } | undefined;
6777
- readonly receipt?: {
6778
- readonly sessionId: string;
6779
- readonly turnId: string;
6780
- } | undefined;
6781
- readonly reviewHead?: string | undefined;
6782
- readonly reviewRevision?: string | undefined;
6783
- readonly role: "repair" | "reviewer" | "worker";
6784
- readonly sessionCleanupComplete?: boolean | undefined;
6785
- readonly sessionId?: string | undefined;
6786
- readonly sessionUnusable?: boolean | undefined;
6787
- readonly settings?: {
6437
+ readonly launch?: {
6788
6438
  readonly effort?: string | undefined;
6789
6439
  readonly model?: string | undefined;
6790
6440
  readonly serviceTier?: string | undefined;
6791
6441
  } | undefined;
6792
- readonly stallRecovery?: {
6793
- readonly count: number;
6794
- readonly interruptedAt?: number | undefined;
6795
- readonly interruptRequestedAt?: number | undefined;
6796
- readonly lastActionAt: number;
6797
- readonly steeredAt?: number | undefined;
6442
+ readonly launchRetry?: {
6443
+ readonly prompt?: string | undefined;
6444
+ readonly rejectedAt: number;
6445
+ readonly rejections: number;
6446
+ readonly retryAt: number;
6447
+ } | undefined;
6448
+ readonly mergeAreasReleased?: boolean | undefined;
6449
+ readonly mergeReadyAt?: number | undefined;
6450
+ readonly mergeReadyHead?: string | undefined;
6451
+ readonly outcome?: {
6452
+ readonly head: string;
6453
+ readonly revision: string;
6454
+ readonly url: string;
6455
+ } | {
6456
+ readonly evidence: readonly string[];
6457
+ } | undefined;
6458
+ readonly pendingAnswers?: readonly string[] | undefined;
6459
+ readonly preparation: {
6460
+ readonly baselinePaths: readonly string[];
6461
+ readonly baseRevision: string;
6462
+ readonly configuration: readonly {
6463
+ readonly path: string;
6464
+ readonly relevantKeys: readonly string[];
6465
+ }[];
6466
+ readonly contextComplete: boolean;
6467
+ readonly dependencyPaths: readonly string[];
6468
+ readonly observedAt: number;
6469
+ readonly ownedPaths: readonly string[];
6470
+ readonly qualityPaths: readonly string[];
6471
+ readonly setupPaths: readonly string[];
6472
+ readonly sourcePaths: readonly string[];
6473
+ readonly validation: readonly {
6474
+ readonly command: string;
6475
+ readonly revision: string;
6476
+ }[];
6477
+ };
6478
+ readonly prompt: string;
6479
+ readonly releaseReason?: string | undefined;
6480
+ readonly report?: {
6481
+ readonly itemId: string;
6482
+ readonly receipt: {
6483
+ readonly sessionId: string;
6484
+ readonly turnId: string;
6485
+ };
6486
+ readonly revision: string;
6487
+ readonly sourcePath: string;
6488
+ readonly workRevision: string;
6489
+ } | undefined;
6490
+ readonly responses?: readonly {
6491
+ readonly action?: "continue" | "release" | "retry" | undefined;
6492
+ readonly boardAcknowledged?: boolean | undefined;
6493
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6494
+ readonly decisionId: string;
6495
+ readonly processedAt: number;
6496
+ readonly published?: {
6497
+ readonly itemId: string;
6498
+ readonly questionId: string;
6499
+ readonly request: string;
6500
+ readonly revision: string;
6501
+ readonly sourcePath: string;
6502
+ readonly workId: string;
6503
+ readonly workRevision: string;
6504
+ readonly workSourcePath: string;
6505
+ } | undefined;
6506
+ readonly questionId: string;
6507
+ readonly questionRevision: string;
6508
+ readonly responseId: string;
6509
+ readonly type: "answer" | "clarify" | "not_now";
6510
+ }[] | undefined;
6511
+ readonly result?: {
6512
+ readonly head: string;
6513
+ readonly kind: "change";
6514
+ readonly paths: readonly string[];
6515
+ readonly pr: string;
6516
+ readonly prNumber?: number | undefined;
6517
+ } | {
6518
+ readonly evidence: readonly string[];
6519
+ readonly head: string;
6520
+ readonly kind: "no-change";
6521
+ } | undefined;
6522
+ readonly resultObservations?: readonly ({
6523
+ readonly head: string;
6524
+ readonly kind: "change";
6525
+ readonly paths: readonly string[];
6526
+ readonly pr: string;
6527
+ readonly prNumber?: number | undefined;
6528
+ } | {
6529
+ readonly evidence: readonly string[];
6530
+ readonly head: string;
6531
+ readonly kind: "no-change";
6532
+ })[] | undefined;
6533
+ readonly review?: {
6534
+ readonly evidence: readonly string[];
6535
+ readonly findings?: readonly string[] | undefined;
6536
+ readonly head: string;
6537
+ readonly receipt: {
6538
+ readonly sessionId: string;
6539
+ readonly turnId: string;
6540
+ };
6541
+ readonly repairPrompt: string;
6542
+ readonly verdict: "approved" | "changes";
6798
6543
  } | undefined;
6799
- readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
6800
- readonly submissionTimedOut?: boolean | undefined;
6801
- readonly submissionUncertain?: boolean | undefined;
6802
- readonly submittedAt: number;
6803
- readonly terminalReceipts?: readonly {
6804
- readonly sessionId: string;
6805
- readonly turnId: string;
6544
+ readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
6545
+ readonly stageEnteredAt?: number | undefined;
6546
+ readonly supersededDecisions?: readonly {
6547
+ readonly boardAcknowledged?: boolean | undefined;
6548
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6549
+ readonly published: {
6550
+ readonly itemId: string;
6551
+ readonly questionId: string;
6552
+ readonly request: string;
6553
+ readonly revision: string;
6554
+ readonly sourcePath: string;
6555
+ readonly workId: string;
6556
+ readonly workRevision: string;
6557
+ readonly workSourcePath: string;
6558
+ };
6559
+ readonly reassignedTo?: {
6560
+ readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
6561
+ readonly decisionId: string;
6562
+ } | undefined;
6563
+ readonly supersededAt: number;
6806
6564
  }[] | undefined;
6807
- }[];
6808
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6809
- readonly blocker?: string | undefined;
6810
- readonly boardContext?: string | undefined;
6811
- readonly boardRevision: string;
6812
- readonly boardSourcePath?: string | undefined;
6813
- readonly checks?: {
6814
- readonly evidence: readonly string[];
6815
- readonly failedChecks?: readonly string[] | undefined;
6816
- readonly head: string;
6817
- readonly passed: boolean;
6818
- readonly pending?: boolean | undefined;
6819
- readonly repairPrompt?: string | undefined;
6820
- } | undefined;
6821
- readonly completedAt?: number | undefined;
6822
- readonly conflictRepairs?: readonly string[] | undefined;
6823
- readonly cwd: string;
6824
- readonly decision?: {
6825
- readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6826
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6827
- readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
6828
- readonly id: string;
6829
- readonly links: readonly string[];
6830
- readonly publicationWork?: {
6831
- readonly approved: boolean;
6832
- readonly areas?: readonly string[] | undefined;
6833
- readonly context: string;
6834
- readonly deliverable?: "report" | undefined;
6835
- readonly dependsOn: readonly string[];
6836
- readonly revision: string;
6837
- readonly sourcePath: string;
6565
+ readonly updatedAt?: number | undefined;
6566
+ readonly archivedAt: number;
6567
+ }[] | undefined;
6568
+ readonly workId: string;
6569
+ };
6570
+ version: number;
6571
+ } | undefined, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
6572
+ operationEntries: (operationId: string) => Effect.Effect<readonly {
6573
+ readonly workId: string;
6574
+ readonly version: number;
6575
+ }[], import("effect/sql/SqlError").SqlError, never>;
6576
+ }, "operationEntries">>, operationId: string) => Effect.Effect<import("../storage/model.ts").Versioned<{
6577
+ readonly admissionReady?: boolean | undefined;
6578
+ readonly areas?: readonly string[] | undefined;
6579
+ readonly attempts: readonly {
6580
+ readonly abandoned?: {
6581
+ readonly at: number;
6582
+ readonly interruptError?: string | undefined;
6583
+ readonly observation?: {
6584
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
6585
+ readonly error?: string | undefined;
6586
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
6587
+ readonly output: string;
6588
+ readonly progress?: readonly {
6589
+ readonly id: string;
6838
6590
  readonly status?: string | undefined;
6839
- readonly workId: string;
6840
- } | undefined;
6841
- readonly published?: {
6842
- readonly itemId: string;
6843
- readonly questionId: string;
6844
- readonly request: string;
6845
- readonly revision: string;
6846
- readonly sourcePath: string;
6847
- readonly workId: string;
6848
- readonly workRevision: string;
6849
- readonly workSourcePath: string;
6850
- } | undefined;
6851
- readonly reason: string;
6852
- readonly recommendation: string;
6853
- readonly worker?: {
6591
+ }[] | undefined;
6592
+ readonly provisioning: "ready" | "unknown";
6593
+ readonly receipt: {
6854
6594
  readonly sessionId: string;
6855
6595
  readonly turnId: string;
6856
- } | undefined;
6596
+ };
6597
+ readonly turnMissing?: boolean | undefined;
6857
6598
  } | undefined;
6858
- readonly decisionAcknowledged?: boolean | undefined;
6859
- readonly decisionPublished?: boolean | undefined;
6599
+ readonly observationError?: string | undefined;
6600
+ } | undefined;
6601
+ readonly briefSteers?: readonly {
6602
+ readonly error?: string | undefined;
6603
+ readonly requestedAt: number;
6604
+ readonly revision: string;
6605
+ readonly steeredAt?: number | undefined;
6606
+ }[] | undefined;
6607
+ readonly checkFailures?: readonly string[] | undefined;
6608
+ readonly missingSince?: number | undefined;
6609
+ readonly observationRetries?: number | undefined;
6610
+ readonly operationId: string;
6611
+ readonly output?: string | undefined;
6612
+ readonly overLimit?: boolean | undefined;
6613
+ readonly progress?: {
6614
+ readonly at: number;
6615
+ readonly signature: string;
6616
+ } | undefined;
6617
+ readonly prompt?: string | undefined;
6618
+ readonly providerFailures?: number | undefined;
6619
+ readonly readRetry?: {
6620
+ readonly error: string;
6621
+ readonly failures: number;
6622
+ readonly retryAt: number;
6623
+ } | undefined;
6624
+ readonly receipt?: {
6625
+ readonly sessionId: string;
6626
+ readonly turnId: string;
6627
+ } | undefined;
6628
+ readonly reviewHead?: string | undefined;
6629
+ readonly reviewRevision?: string | undefined;
6630
+ readonly role: "repair" | "reviewer" | "worker";
6631
+ readonly sessionCleanupComplete?: boolean | undefined;
6632
+ readonly sessionId?: string | undefined;
6633
+ readonly sessionUnusable?: boolean | undefined;
6634
+ readonly settings?: {
6635
+ readonly effort?: string | undefined;
6636
+ readonly model?: string | undefined;
6637
+ readonly serviceTier?: string | undefined;
6638
+ } | undefined;
6639
+ readonly stallRecovery?: {
6640
+ readonly count: number;
6641
+ readonly interruptedAt?: number | undefined;
6642
+ readonly interruptRequestedAt?: number | undefined;
6643
+ readonly lastActionAt: number;
6644
+ readonly steeredAt?: number | undefined;
6645
+ } | undefined;
6646
+ readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
6647
+ readonly submissionTimedOut?: boolean | undefined;
6648
+ readonly submissionUncertain?: boolean | undefined;
6649
+ readonly submittedAt: number;
6650
+ readonly terminalReceipts?: readonly {
6651
+ readonly sessionId: string;
6652
+ readonly turnId: string;
6653
+ }[] | undefined;
6654
+ }[];
6655
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6656
+ readonly blocker?: string | undefined;
6657
+ readonly boardContext?: string | undefined;
6658
+ readonly boardRevision: string;
6659
+ readonly boardSourcePath?: string | undefined;
6660
+ readonly checks?: {
6661
+ readonly evidence: readonly string[];
6662
+ readonly failedChecks?: readonly string[] | undefined;
6663
+ readonly head: string;
6664
+ readonly passed: boolean;
6665
+ readonly pending?: boolean | undefined;
6666
+ readonly repairPrompt?: string | undefined;
6667
+ } | undefined;
6668
+ readonly completedAt?: number | undefined;
6669
+ readonly conflictRepairs?: readonly string[] | undefined;
6670
+ readonly cwd: string;
6671
+ readonly decision?: {
6672
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6673
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6674
+ readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
6675
+ readonly id: string;
6676
+ readonly links: readonly string[];
6677
+ readonly publicationWork?: {
6678
+ readonly approved: boolean;
6679
+ readonly areas?: readonly string[] | undefined;
6680
+ readonly context: string;
6860
6681
  readonly deliverable?: "report" | undefined;
6861
- readonly integrationRetry?: {
6682
+ readonly dependsOn: readonly string[];
6683
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
6684
+ readonly revision: string;
6685
+ readonly sourcePath: string;
6686
+ readonly status?: string | undefined;
6687
+ readonly workId: string;
6688
+ } | undefined;
6689
+ readonly published?: {
6690
+ readonly itemId: string;
6691
+ readonly questionId: string;
6692
+ readonly request: string;
6693
+ readonly revision: string;
6694
+ readonly sourcePath: string;
6695
+ readonly workId: string;
6696
+ readonly workRevision: string;
6697
+ readonly workSourcePath: string;
6698
+ } | undefined;
6699
+ readonly reason: string;
6700
+ readonly recommendation: string;
6701
+ readonly worker?: {
6702
+ readonly sessionId: string;
6703
+ readonly turnId: string;
6704
+ } | undefined;
6705
+ } | undefined;
6706
+ readonly decisionAcknowledged?: boolean | undefined;
6707
+ readonly decisionPublished?: boolean | undefined;
6708
+ readonly deliverable?: "report" | undefined;
6709
+ readonly dispatchNow?: {
6710
+ readonly ignoreAreas: boolean;
6711
+ } | undefined;
6712
+ readonly integrationRetry?: {
6713
+ readonly error: string;
6714
+ readonly failures: number;
6715
+ readonly retryAt: number;
6716
+ } | undefined;
6717
+ readonly launch?: {
6718
+ readonly effort?: string | undefined;
6719
+ readonly model?: string | undefined;
6720
+ readonly serviceTier?: string | undefined;
6721
+ } | undefined;
6722
+ readonly launchRetry?: {
6723
+ readonly prompt?: string | undefined;
6724
+ readonly rejectedAt: number;
6725
+ readonly rejections: number;
6726
+ readonly retryAt: number;
6727
+ } | undefined;
6728
+ readonly mergeAreasReleased?: boolean | undefined;
6729
+ readonly mergeReadyAt?: number | undefined;
6730
+ readonly mergeReadyHead?: string | undefined;
6731
+ readonly outcome?: {
6732
+ readonly head: string;
6733
+ readonly revision: string;
6734
+ readonly url: string;
6735
+ } | {
6736
+ readonly evidence: readonly string[];
6737
+ } | undefined;
6738
+ readonly pendingAnswers?: readonly string[] | undefined;
6739
+ readonly preparation: {
6740
+ readonly baselinePaths: readonly string[];
6741
+ readonly baseRevision: string;
6742
+ readonly configuration: readonly {
6743
+ readonly path: string;
6744
+ readonly relevantKeys: readonly string[];
6745
+ }[];
6746
+ readonly contextComplete: boolean;
6747
+ readonly dependencyPaths: readonly string[];
6748
+ readonly observedAt: number;
6749
+ readonly ownedPaths: readonly string[];
6750
+ readonly qualityPaths: readonly string[];
6751
+ readonly setupPaths: readonly string[];
6752
+ readonly sourcePaths: readonly string[];
6753
+ readonly validation: readonly {
6754
+ readonly command: string;
6755
+ readonly revision: string;
6756
+ }[];
6757
+ };
6758
+ readonly prompt: string;
6759
+ readonly releaseReason?: string | undefined;
6760
+ readonly report?: {
6761
+ readonly itemId: string;
6762
+ readonly receipt: {
6763
+ readonly sessionId: string;
6764
+ readonly turnId: string;
6765
+ };
6766
+ readonly revision: string;
6767
+ readonly sourcePath: string;
6768
+ readonly workRevision: string;
6769
+ } | undefined;
6770
+ readonly responses?: readonly {
6771
+ readonly action?: "continue" | "release" | "retry" | undefined;
6772
+ readonly boardAcknowledged?: boolean | undefined;
6773
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6774
+ readonly decisionId: string;
6775
+ readonly processedAt: number;
6776
+ readonly published?: {
6777
+ readonly itemId: string;
6778
+ readonly questionId: string;
6779
+ readonly request: string;
6780
+ readonly revision: string;
6781
+ readonly sourcePath: string;
6782
+ readonly workId: string;
6783
+ readonly workRevision: string;
6784
+ readonly workSourcePath: string;
6785
+ } | undefined;
6786
+ readonly questionId: string;
6787
+ readonly questionRevision: string;
6788
+ readonly responseId: string;
6789
+ readonly type: "answer" | "clarify" | "not_now";
6790
+ }[] | undefined;
6791
+ readonly result?: {
6792
+ readonly head: string;
6793
+ readonly kind: "change";
6794
+ readonly paths: readonly string[];
6795
+ readonly pr: string;
6796
+ readonly prNumber?: number | undefined;
6797
+ } | {
6798
+ readonly evidence: readonly string[];
6799
+ readonly head: string;
6800
+ readonly kind: "no-change";
6801
+ } | undefined;
6802
+ readonly resultObservations?: readonly ({
6803
+ readonly head: string;
6804
+ readonly kind: "change";
6805
+ readonly paths: readonly string[];
6806
+ readonly pr: string;
6807
+ readonly prNumber?: number | undefined;
6808
+ } | {
6809
+ readonly evidence: readonly string[];
6810
+ readonly head: string;
6811
+ readonly kind: "no-change";
6812
+ })[] | undefined;
6813
+ readonly review?: {
6814
+ readonly evidence: readonly string[];
6815
+ readonly findings?: readonly string[] | undefined;
6816
+ readonly head: string;
6817
+ readonly receipt: {
6818
+ readonly sessionId: string;
6819
+ readonly turnId: string;
6820
+ };
6821
+ readonly repairPrompt: string;
6822
+ readonly verdict: "approved" | "changes";
6823
+ } | undefined;
6824
+ readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
6825
+ readonly stageEnteredAt?: number | undefined;
6826
+ readonly supersededDecisions?: readonly {
6827
+ readonly boardAcknowledged?: boolean | undefined;
6828
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6829
+ readonly published: {
6830
+ readonly itemId: string;
6831
+ readonly questionId: string;
6832
+ readonly request: string;
6833
+ readonly revision: string;
6834
+ readonly sourcePath: string;
6835
+ readonly workId: string;
6836
+ readonly workRevision: string;
6837
+ readonly workSourcePath: string;
6838
+ };
6839
+ readonly reassignedTo?: {
6840
+ readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
6841
+ readonly decisionId: string;
6842
+ } | undefined;
6843
+ readonly supersededAt: number;
6844
+ }[] | undefined;
6845
+ readonly updatedAt?: number | undefined;
6846
+ readonly history?: readonly {
6847
+ readonly admissionReady?: boolean | undefined;
6848
+ readonly areas?: readonly string[] | undefined;
6849
+ readonly attempts: readonly {
6850
+ readonly abandoned?: {
6851
+ readonly at: number;
6852
+ readonly interruptError?: string | undefined;
6853
+ readonly observation?: {
6854
+ readonly capacity?: "flexUnavailable" | "rateLimitExceeded" | "serverOverloaded" | undefined;
6855
+ readonly error?: string | undefined;
6856
+ readonly execution: "accepted" | "completed" | "failed" | "interrupted" | "running";
6857
+ readonly output: string;
6858
+ readonly progress?: readonly {
6859
+ readonly id: string;
6860
+ readonly status?: string | undefined;
6861
+ }[] | undefined;
6862
+ readonly provisioning: "ready" | "unknown";
6863
+ readonly receipt: {
6864
+ readonly sessionId: string;
6865
+ readonly turnId: string;
6866
+ };
6867
+ readonly turnMissing?: boolean | undefined;
6868
+ } | undefined;
6869
+ readonly observationError?: string | undefined;
6870
+ } | undefined;
6871
+ readonly briefSteers?: readonly {
6872
+ readonly error?: string | undefined;
6873
+ readonly requestedAt: number;
6874
+ readonly revision: string;
6875
+ readonly steeredAt?: number | undefined;
6876
+ }[] | undefined;
6877
+ readonly checkFailures?: readonly string[] | undefined;
6878
+ readonly missingSince?: number | undefined;
6879
+ readonly observationRetries?: number | undefined;
6880
+ readonly operationId: string;
6881
+ readonly output?: string | undefined;
6882
+ readonly overLimit?: boolean | undefined;
6883
+ readonly progress?: {
6884
+ readonly at: number;
6885
+ readonly signature: string;
6886
+ } | undefined;
6887
+ readonly prompt?: string | undefined;
6888
+ readonly providerFailures?: number | undefined;
6889
+ readonly readRetry?: {
6862
6890
  readonly error: string;
6863
6891
  readonly failures: number;
6864
6892
  readonly retryAt: number;
6865
6893
  } | undefined;
6866
- readonly launch?: {
6894
+ readonly receipt?: {
6895
+ readonly sessionId: string;
6896
+ readonly turnId: string;
6897
+ } | undefined;
6898
+ readonly reviewHead?: string | undefined;
6899
+ readonly reviewRevision?: string | undefined;
6900
+ readonly role: "repair" | "reviewer" | "worker";
6901
+ readonly sessionCleanupComplete?: boolean | undefined;
6902
+ readonly sessionId?: string | undefined;
6903
+ readonly sessionUnusable?: boolean | undefined;
6904
+ readonly settings?: {
6867
6905
  readonly effort?: string | undefined;
6868
6906
  readonly model?: string | undefined;
6869
6907
  readonly serviceTier?: string | undefined;
6870
6908
  } | undefined;
6871
- readonly launchRetry?: {
6872
- readonly prompt?: string | undefined;
6873
- readonly rejectedAt: number;
6874
- readonly rejections: number;
6875
- readonly retryAt: number;
6909
+ readonly stallRecovery?: {
6910
+ readonly count: number;
6911
+ readonly interruptedAt?: number | undefined;
6912
+ readonly interruptRequestedAt?: number | undefined;
6913
+ readonly lastActionAt: number;
6914
+ readonly steeredAt?: number | undefined;
6915
+ } | undefined;
6916
+ readonly status: "accepted" | "completed" | "failed" | "interrupted" | "running" | "submitting";
6917
+ readonly submissionTimedOut?: boolean | undefined;
6918
+ readonly submissionUncertain?: boolean | undefined;
6919
+ readonly submittedAt: number;
6920
+ readonly terminalReceipts?: readonly {
6921
+ readonly sessionId: string;
6922
+ readonly turnId: string;
6923
+ }[] | undefined;
6924
+ }[];
6925
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6926
+ readonly blocker?: string | undefined;
6927
+ readonly boardContext?: string | undefined;
6928
+ readonly boardRevision: string;
6929
+ readonly boardSourcePath?: string | undefined;
6930
+ readonly checks?: {
6931
+ readonly evidence: readonly string[];
6932
+ readonly failedChecks?: readonly string[] | undefined;
6933
+ readonly head: string;
6934
+ readonly passed: boolean;
6935
+ readonly pending?: boolean | undefined;
6936
+ readonly repairPrompt?: string | undefined;
6937
+ } | undefined;
6938
+ readonly completedAt?: number | undefined;
6939
+ readonly conflictRepairs?: readonly string[] | undefined;
6940
+ readonly cwd: string;
6941
+ readonly decision?: {
6942
+ readonly attentionOwner?: "automation" | "maintainer" | "orchestrator" | undefined;
6943
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6944
+ readonly code?: "approval-required" | "board-failure" | "checks-repair-exhausted" | "checks-result-invalid" | "delivery-head-mismatch" | "delivery-pr-required" | "duplicate-turns" | "empty-report" | "fleet-denied" | "fleet-integration" | "fleet-invalid" | "fleet-missing" | "fleet-stale" | "foreign-pr" | "incomplete-context" | "incomplete-observation" | "integration-failure" | "no-change-checks-unconfigured" | "not-ancestor" | "pr-conflicting" | "pr-head-moved" | "provider-quota-unavailable" | "relevant-change" | "report-published" | "report-too-large" | "result-identity-changed" | "reviewed-pr-ready" | "reviewer-terminal" | "session-active-turn" | "session-active-turn-exhausted" | "session-ambiguous" | "session-persistence" | "session-protocol" | "session-queue-full" | "session-rejected" | "session-stalled" | "session-turn-missing" | "session-unavailable" | "worker-question" | "worker-receipt-missing" | "worker-report-head-invalid" | "worker-report-head-moved" | "worker-report-merged-head-mismatch" | "worker-report-pr-invalid" | "worker-terminal" | undefined;
6945
+ readonly id: string;
6946
+ readonly links: readonly string[];
6947
+ readonly publicationWork?: {
6948
+ readonly approved: boolean;
6949
+ readonly areas?: readonly string[] | undefined;
6950
+ readonly context: string;
6951
+ readonly deliverable?: "report" | undefined;
6952
+ readonly dependsOn: readonly string[];
6953
+ readonly priority?: "high" | "normal" | "urgent" | undefined;
6954
+ readonly revision: string;
6955
+ readonly sourcePath: string;
6956
+ readonly status?: string | undefined;
6957
+ readonly workId: string;
6876
6958
  } | undefined;
6877
- readonly mergeAreasReleased?: boolean | undefined;
6878
- readonly mergeReadyAt?: number | undefined;
6879
- readonly mergeReadyHead?: string | undefined;
6880
- readonly outcome?: {
6881
- readonly head: string;
6959
+ readonly published?: {
6960
+ readonly itemId: string;
6961
+ readonly questionId: string;
6962
+ readonly request: string;
6882
6963
  readonly revision: string;
6883
- readonly url: string;
6884
- } | {
6885
- readonly evidence: readonly string[];
6964
+ readonly sourcePath: string;
6965
+ readonly workId: string;
6966
+ readonly workRevision: string;
6967
+ readonly workSourcePath: string;
6886
6968
  } | undefined;
6887
- readonly pendingAnswers?: readonly string[] | undefined;
6888
- readonly preparation: {
6889
- readonly baselinePaths: readonly string[];
6890
- readonly baseRevision: string;
6891
- readonly configuration: readonly {
6892
- readonly path: string;
6893
- readonly relevantKeys: readonly string[];
6894
- }[];
6895
- readonly contextComplete: boolean;
6896
- readonly dependencyPaths: readonly string[];
6897
- readonly observedAt: number;
6898
- readonly ownedPaths: readonly string[];
6899
- readonly qualityPaths: readonly string[];
6900
- readonly setupPaths: readonly string[];
6901
- readonly sourcePaths: readonly string[];
6902
- readonly validation: readonly {
6903
- readonly command: string;
6904
- readonly revision: string;
6905
- }[];
6969
+ readonly reason: string;
6970
+ readonly recommendation: string;
6971
+ readonly worker?: {
6972
+ readonly sessionId: string;
6973
+ readonly turnId: string;
6974
+ } | undefined;
6975
+ } | undefined;
6976
+ readonly decisionAcknowledged?: boolean | undefined;
6977
+ readonly decisionPublished?: boolean | undefined;
6978
+ readonly deliverable?: "report" | undefined;
6979
+ readonly dispatchNow?: {
6980
+ readonly ignoreAreas: boolean;
6981
+ } | undefined;
6982
+ readonly integrationRetry?: {
6983
+ readonly error: string;
6984
+ readonly failures: number;
6985
+ readonly retryAt: number;
6986
+ } | undefined;
6987
+ readonly launch?: {
6988
+ readonly effort?: string | undefined;
6989
+ readonly model?: string | undefined;
6990
+ readonly serviceTier?: string | undefined;
6991
+ } | undefined;
6992
+ readonly launchRetry?: {
6993
+ readonly prompt?: string | undefined;
6994
+ readonly rejectedAt: number;
6995
+ readonly rejections: number;
6996
+ readonly retryAt: number;
6997
+ } | undefined;
6998
+ readonly mergeAreasReleased?: boolean | undefined;
6999
+ readonly mergeReadyAt?: number | undefined;
7000
+ readonly mergeReadyHead?: string | undefined;
7001
+ readonly outcome?: {
7002
+ readonly head: string;
7003
+ readonly revision: string;
7004
+ readonly url: string;
7005
+ } | {
7006
+ readonly evidence: readonly string[];
7007
+ } | undefined;
7008
+ readonly pendingAnswers?: readonly string[] | undefined;
7009
+ readonly preparation: {
7010
+ readonly baselinePaths: readonly string[];
7011
+ readonly baseRevision: string;
7012
+ readonly configuration: readonly {
7013
+ readonly path: string;
7014
+ readonly relevantKeys: readonly string[];
7015
+ }[];
7016
+ readonly contextComplete: boolean;
7017
+ readonly dependencyPaths: readonly string[];
7018
+ readonly observedAt: number;
7019
+ readonly ownedPaths: readonly string[];
7020
+ readonly qualityPaths: readonly string[];
7021
+ readonly setupPaths: readonly string[];
7022
+ readonly sourcePaths: readonly string[];
7023
+ readonly validation: readonly {
7024
+ readonly command: string;
7025
+ readonly revision: string;
7026
+ }[];
7027
+ };
7028
+ readonly prompt: string;
7029
+ readonly releaseReason?: string | undefined;
7030
+ readonly report?: {
7031
+ readonly itemId: string;
7032
+ readonly receipt: {
7033
+ readonly sessionId: string;
7034
+ readonly turnId: string;
6906
7035
  };
6907
- readonly prompt: string;
6908
- readonly releaseReason?: string | undefined;
6909
- readonly report?: {
7036
+ readonly revision: string;
7037
+ readonly sourcePath: string;
7038
+ readonly workRevision: string;
7039
+ } | undefined;
7040
+ readonly responses?: readonly {
7041
+ readonly action?: "continue" | "release" | "retry" | undefined;
7042
+ readonly boardAcknowledged?: boolean | undefined;
7043
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
7044
+ readonly decisionId: string;
7045
+ readonly processedAt: number;
7046
+ readonly published?: {
6910
7047
  readonly itemId: string;
6911
- readonly receipt: {
6912
- readonly sessionId: string;
6913
- readonly turnId: string;
6914
- };
7048
+ readonly questionId: string;
7049
+ readonly request: string;
6915
7050
  readonly revision: string;
6916
7051
  readonly sourcePath: string;
7052
+ readonly workId: string;
6917
7053
  readonly workRevision: string;
7054
+ readonly workSourcePath: string;
6918
7055
  } | undefined;
6919
- readonly responses?: readonly {
6920
- readonly action?: "continue" | "release" | "retry" | undefined;
6921
- readonly boardAcknowledged?: boolean | undefined;
6922
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6923
- readonly decisionId: string;
6924
- readonly processedAt: number;
6925
- readonly published?: {
6926
- readonly itemId: string;
6927
- readonly questionId: string;
6928
- readonly request: string;
6929
- readonly revision: string;
6930
- readonly sourcePath: string;
6931
- readonly workId: string;
6932
- readonly workRevision: string;
6933
- readonly workSourcePath: string;
6934
- } | undefined;
7056
+ readonly questionId: string;
7057
+ readonly questionRevision: string;
7058
+ readonly responseId: string;
7059
+ readonly type: "answer" | "clarify" | "not_now";
7060
+ }[] | undefined;
7061
+ readonly result?: {
7062
+ readonly head: string;
7063
+ readonly kind: "change";
7064
+ readonly paths: readonly string[];
7065
+ readonly pr: string;
7066
+ readonly prNumber?: number | undefined;
7067
+ } | {
7068
+ readonly evidence: readonly string[];
7069
+ readonly head: string;
7070
+ readonly kind: "no-change";
7071
+ } | undefined;
7072
+ readonly resultObservations?: readonly ({
7073
+ readonly head: string;
7074
+ readonly kind: "change";
7075
+ readonly paths: readonly string[];
7076
+ readonly pr: string;
7077
+ readonly prNumber?: number | undefined;
7078
+ } | {
7079
+ readonly evidence: readonly string[];
7080
+ readonly head: string;
7081
+ readonly kind: "no-change";
7082
+ })[] | undefined;
7083
+ readonly review?: {
7084
+ readonly evidence: readonly string[];
7085
+ readonly findings?: readonly string[] | undefined;
7086
+ readonly head: string;
7087
+ readonly receipt: {
7088
+ readonly sessionId: string;
7089
+ readonly turnId: string;
7090
+ };
7091
+ readonly repairPrompt: string;
7092
+ readonly verdict: "approved" | "changes";
7093
+ } | undefined;
7094
+ readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
7095
+ readonly stageEnteredAt?: number | undefined;
7096
+ readonly supersededDecisions?: readonly {
7097
+ readonly boardAcknowledged?: boolean | undefined;
7098
+ readonly boardAcknowledgementDisposition?: "superseded" | undefined;
7099
+ readonly published: {
7100
+ readonly itemId: string;
6935
7101
  readonly questionId: string;
6936
- readonly questionRevision: string;
6937
- readonly responseId: string;
6938
- readonly type: "answer" | "clarify" | "not_now";
6939
- }[] | undefined;
6940
- readonly result?: {
6941
- readonly head: string;
6942
- readonly kind: "change";
6943
- readonly paths: readonly string[];
6944
- readonly pr: string;
6945
- readonly prNumber?: number | undefined;
6946
- } | {
6947
- readonly evidence: readonly string[];
6948
- readonly head: string;
6949
- readonly kind: "no-change";
6950
- } | undefined;
6951
- readonly resultObservations?: readonly ({
6952
- readonly head: string;
6953
- readonly kind: "change";
6954
- readonly paths: readonly string[];
6955
- readonly pr: string;
6956
- readonly prNumber?: number | undefined;
6957
- } | {
6958
- readonly evidence: readonly string[];
6959
- readonly head: string;
6960
- readonly kind: "no-change";
6961
- })[] | undefined;
6962
- readonly review?: {
6963
- readonly evidence: readonly string[];
6964
- readonly findings?: readonly string[] | undefined;
6965
- readonly head: string;
6966
- readonly receipt: {
6967
- readonly sessionId: string;
6968
- readonly turnId: string;
6969
- };
6970
- readonly repairPrompt: string;
6971
- readonly verdict: "approved" | "changes";
7102
+ readonly request: string;
7103
+ readonly revision: string;
7104
+ readonly sourcePath: string;
7105
+ readonly workId: string;
7106
+ readonly workRevision: string;
7107
+ readonly workSourcePath: string;
7108
+ };
7109
+ readonly reassignedTo?: {
7110
+ readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
7111
+ readonly decisionId: string;
6972
7112
  } | undefined;
6973
- readonly stage: "adopting" | "completed" | "delivering" | "executing" | "needs-human" | "prepared" | "released" | "repairing" | "reviewing" | "validating";
6974
- readonly stageEnteredAt?: number | undefined;
6975
- readonly supersededDecisions?: readonly {
6976
- readonly boardAcknowledged?: boolean | undefined;
6977
- readonly boardAcknowledgementDisposition?: "superseded" | undefined;
6978
- readonly published: {
6979
- readonly itemId: string;
6980
- readonly questionId: string;
6981
- readonly request: string;
6982
- readonly revision: string;
6983
- readonly sourcePath: string;
6984
- readonly workId: string;
6985
- readonly workRevision: string;
6986
- readonly workSourcePath: string;
6987
- };
6988
- readonly reassignedTo?: {
6989
- readonly attentionOwner: "automation" | "maintainer" | "orchestrator";
6990
- readonly decisionId: string;
6991
- } | undefined;
6992
- readonly supersededAt: number;
6993
- }[] | undefined;
6994
- readonly updatedAt?: number | undefined;
6995
- readonly archivedAt: number;
7113
+ readonly supersededAt: number;
6996
7114
  }[] | undefined;
6997
- readonly workId: string;
6998
- };
6999
- version: number;
7000
- } | undefined, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
7115
+ readonly updatedAt?: number | undefined;
7116
+ readonly archivedAt: number;
7117
+ }[] | undefined;
7118
+ readonly workId: string;
7119
+ }> | undefined, import("effect/Schema").SchemaError | import("effect/sql/SqlError").SqlError, never>;
7001
7120
  //# sourceMappingURL=operationRecord.d.ts.map