specrails-desktop 2.29.1 → 2.29.3

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 (548) hide show
  1. package/client/dist/assets/ActivityFeedPage-CFB4UBhT.js +1 -0
  2. package/client/dist/assets/AgentBrowserCapture-C-T0r16B.js +1 -0
  3. package/client/dist/assets/AgentModeCodePane-IljV5FOQ.js +2 -0
  4. package/client/dist/assets/AgentModeJobsPane-B5miH10_.js +1 -0
  5. package/client/dist/assets/AgentsPage-BgYQrAcH.js +86 -0
  6. package/client/dist/assets/AnalyticsPage-BtVCuNjL.js +1 -0
  7. package/client/dist/assets/BarChart-nBOMNfiy.js +33 -0
  8. package/client/dist/assets/CodePage-Cb_jAjSV.js +2 -0
  9. package/client/dist/assets/DesktopAnalyticsPage-s_Cc_JL1.js +1 -0
  10. package/client/dist/assets/DocsDialog-Cr47QI9L.js +11 -0
  11. package/client/dist/assets/DocsPage-C_WPRuG_.js +11 -0
  12. package/client/dist/assets/ExportDropdown-BrtfWzEG.js +1 -0
  13. package/client/dist/assets/IntegrationsPage-Bs00_tl4.js +1 -0
  14. package/client/dist/assets/InteractiveJobComposer-NfFOciRB.js +19 -0
  15. package/client/dist/assets/JobDetailModal-DqEW7Z7K.js +1 -0
  16. package/client/dist/assets/JobDetailPage-D4ppEpDE.js +1 -0
  17. package/client/dist/assets/JobsPage-DStSoMyq.js +1 -0
  18. package/client/dist/assets/LoopBuilderPage-DltCwS4P.js +7 -0
  19. package/client/dist/assets/LoopPreviewModal-BWaiAbUq.js +1 -0
  20. package/client/dist/assets/LoopsPage-BqjbXuBZ.js +1 -0
  21. package/client/dist/assets/MinimizedChatsContext--o3JAM9F.js +1 -0
  22. package/client/dist/assets/PluginsPage-B-UOmzXw.js +2 -0
  23. package/client/dist/assets/ProjectSettingsDialog-DkGajIxE.js +1 -0
  24. package/client/dist/assets/TemplatePreviewModal-5CUXlkw7.js +1 -0
  25. package/client/dist/assets/TicketDetailModal-B_igqmti.js +14 -0
  26. package/client/dist/assets/Trans-DDMIBBUd.js +1 -0
  27. package/client/dist/assets/activity-DiyjsgQV.js +1 -0
  28. package/client/dist/assets/addon-image-BRmmRHgQ.js +1 -0
  29. package/client/dist/assets/addon-ligatures-qIZUPvRV.js +2 -0
  30. package/client/dist/assets/{addon-webgl-DMbGeI_u.js → addon-webgl-C2d7lriQ.js} +3 -3
  31. package/client/dist/assets/addspec-Rw8uVBC1.js +1 -0
  32. package/client/dist/assets/agent-BXc59ARK2.js +1 -0
  33. package/client/dist/assets/agent-BbIFXdDq.js +1 -0
  34. package/client/dist/assets/agent-BqEfA5u5.js +1 -0
  35. package/client/dist/assets/agent-BtGzgTC4.js +1 -0
  36. package/client/dist/assets/agent-CIhys_5d.js +1 -0
  37. package/client/dist/assets/agent-CJPaqsVR.js +1 -0
  38. package/client/dist/assets/agent-n-hY4GuL.js +1 -0
  39. package/client/dist/assets/agent-tJ-efa3_2.js +1 -0
  40. package/client/dist/assets/agents-DhG7mg6-.js +1 -0
  41. package/client/dist/assets/agentstudio-BIUe1Im2.js +1 -0
  42. package/client/dist/assets/aiedit-iIjz2_Qk.js +1 -0
  43. package/client/dist/assets/analytics-DZ8Aoq3I.js +1 -0
  44. package/client/dist/assets/api-B2M7CtDw.js +1 -0
  45. package/client/dist/assets/arrow-left-CpIR4j7G.js +1 -0
  46. package/client/dist/assets/arrow-up-right-9DoMn7fD.js +1 -0
  47. package/client/dist/assets/attachments-B53PG733.js +1 -0
  48. package/client/dist/assets/brain-DI9lHkKY.js +1 -0
  49. package/client/dist/assets/browser-CXUcnTMI.js +1 -0
  50. package/client/dist/assets/button-BUIIBQPT.js +1 -0
  51. package/client/dist/assets/chat-BGD7MXAy.js +1 -0
  52. package/client/dist/assets/chevron-right-CViMxucY.js +1 -0
  53. package/client/dist/assets/chunk-KS7C4IRE-Cx5sqopX.js +3 -0
  54. package/client/dist/assets/circle-x-CMYsN4ZH.js +1 -0
  55. package/client/dist/assets/code-BDXEM4ml.js +1 -0
  56. package/client/dist/assets/commands-DyUZQ1FI.js +1 -0
  57. package/client/dist/assets/common-6MLbD-jM.js +1 -0
  58. package/client/dist/assets/common-BKGEu4rm.js +1 -0
  59. package/client/dist/assets/common-BNbnv8cE2.js +1 -0
  60. package/client/dist/assets/common-BqGWtDbt.js +1 -0
  61. package/client/dist/assets/common-DBtTzeYm2.js +1 -0
  62. package/client/dist/assets/common-DEW3Nr8n.js +1 -0
  63. package/client/dist/assets/common-DHsv9N5d.js +1 -0
  64. package/client/dist/assets/common-mkrEcW-Y.js +1 -0
  65. package/client/dist/assets/createLucideIcon-Bjbbp_KS.js +1 -0
  66. package/client/dist/assets/{css.worker-Wv5dxAWO.js → css.worker-yKcq13f2.js} +13 -13
  67. package/client/dist/assets/{cssMode-DBHbkBvI.js → cssMode-BM4z9OX0.js} +1 -1
  68. package/client/dist/assets/dashboard-BYzxom0L.js +1 -0
  69. package/client/dist/assets/dashboard-BmDZmHyY.js +1 -0
  70. package/client/dist/assets/dashboard-CnNtJBQ5.js +1 -0
  71. package/client/dist/assets/dashboard-D4Uj-XWc2.js +1 -0
  72. package/client/dist/assets/dashboard-D57uRaGw2.js +1 -0
  73. package/client/dist/assets/dashboard-DAr6F9et.js +1 -0
  74. package/client/dist/assets/dashboard-vAcsn0L3.js +1 -0
  75. package/client/dist/assets/dashboard-vrjZvxWy.js +1 -0
  76. package/client/dist/assets/dialog-CzIekCw0.js +45 -0
  77. package/client/dist/assets/dist-Cez5CRkX.js +1 -0
  78. package/client/dist/assets/dist-bVqfYmby.js +1 -0
  79. package/client/dist/assets/{dist-js-CgpP6tKI.js → dist-js-BCUhGUXS.js} +1 -1
  80. package/client/dist/assets/{dist-js-DHiN-A_E.js → dist-js-DcoXTnEI.js} +1 -1
  81. package/client/dist/assets/download-CFHyyHcw.js +1 -0
  82. package/client/dist/assets/editor.api2-4ndOupAA.js +872 -0
  83. package/client/dist/assets/{editor.main-C9J2ikJK.js → editor.main-DxrmGfoq.js} +2 -2
  84. package/client/dist/assets/editor.worker-tytyn86m.js +26 -0
  85. package/client/dist/assets/explore-DgBACn39.js +1 -0
  86. package/client/dist/assets/external-link-BcU5EWZp.js +1 -0
  87. package/client/dist/assets/file-text-CFT-xXKN.js +1 -0
  88. package/client/dist/assets/formatDistanceToNow-DP3Ab6fX.js +1 -0
  89. package/client/dist/assets/{freemarker2-J5iIIIK-.js → freemarker2-CELlTDJ2.js} +1 -1
  90. package/client/dist/assets/getTimezoneOffsetInMilliseconds-DdKKL8Fx.js +1 -0
  91. package/client/dist/assets/git-branch-BRM0F5GN.js +1 -0
  92. package/client/dist/assets/{handlebars-DSw1l_tw.js → handlebars-NEjHJ7o_.js} +1 -1
  93. package/client/dist/assets/{html-h2-wE1Lj.js → html-CA10zN5A.js} +1 -1
  94. package/client/dist/assets/{html.worker-CQP8QQsS.js → html.worker-DSJ9zmd7.js} +12 -12
  95. package/client/dist/assets/{htmlMode-Cc_ij7lW.js → htmlMode-89rPYiyq.js} +1 -1
  96. package/client/dist/assets/i18n-DREQCE2F.js +2 -0
  97. package/client/dist/assets/index-B784m8RT.js +76 -0
  98. package/client/dist/assets/index-CQBIemiz.css +2 -0
  99. package/client/dist/assets/integrations-mB-7zoyT.js +1 -0
  100. package/client/dist/assets/{javascript-C1q3xv6N.js → javascript-B1gDmwzS.js} +1 -1
  101. package/client/dist/assets/jira-CmKWERE0.js +1 -0
  102. package/client/dist/assets/jira-api-BgFIr8eD.js +1 -0
  103. package/client/dist/assets/job-time-BCL7wee9.js +1 -0
  104. package/client/dist/assets/jobs-B-sDHEay2.js +1 -0
  105. package/client/dist/assets/jobs-BCtGfgUA.js +1 -0
  106. package/client/dist/assets/jobs-BHR_EnDI.js +1 -0
  107. package/client/dist/assets/jobs-BMbZJjJJ.js +1 -0
  108. package/client/dist/assets/jobs-CVFD8rar.js +1 -0
  109. package/client/dist/assets/jobs-DoSaFzAa.js +1 -0
  110. package/client/dist/assets/jobs-DzSIR8V62.js +1 -0
  111. package/client/dist/assets/jobs-lk1_Dq1U.js +1 -0
  112. package/client/dist/assets/json.worker-Oa9UrkKE.js +58 -0
  113. package/client/dist/assets/{jsonMode-CeaCdEhr.js → jsonMode-xHLMfzhF.js} +1 -1
  114. package/client/dist/assets/jsx-runtime-zu2_FqZY.js +1 -0
  115. package/client/dist/assets/lib-C7Mhm-gT.js +7 -0
  116. package/client/dist/assets/lib-CGdyxIWg.js +29 -0
  117. package/client/dist/assets/{liquid-eFsVK0V-.js → liquid-BY6hCUXG.js} +1 -1
  118. package/client/dist/assets/loader-circle-DcygOQpC.js +1 -0
  119. package/client/dist/assets/loops-BzfXWEwO.js +1 -0
  120. package/client/dist/assets/{lspLanguageFeatures-DT3-bbhn.js → lspLanguageFeatures-ira2aEJh.js} +1 -1
  121. package/client/dist/assets/mcp-uDkXYu4L.js +1 -0
  122. package/client/dist/assets/{mdx-Fuwnh1cX.js → mdx-BNx0xr3N.js} +1 -1
  123. package/client/dist/assets/monaco.contribution-Bt92R3Vw.js +2 -0
  124. package/client/dist/assets/nav-myFaXRHD.js +1 -0
  125. package/client/dist/assets/pencil-C9RkrIPZ.js +1 -0
  126. package/client/dist/assets/play-DNlrawbS.js +1 -0
  127. package/client/dist/assets/plus-CsnjfkmX.js +1 -0
  128. package/client/dist/assets/preload-helper-Czpn1I53.js +1 -0
  129. package/client/dist/assets/{python-BgoEs6Cj.js → python-DLdbtmNw.js} +1 -1
  130. package/client/dist/assets/{razor-CM1sPMMq.js → razor-B9gdhAbR.js} +1 -1
  131. package/client/dist/assets/react-dom-DiWzBDP9.js +1 -0
  132. package/client/dist/assets/rolldown-runtime-CNC7AqOf.js +1 -0
  133. package/client/dist/assets/save-28sIlCdr.js +1 -0
  134. package/client/dist/assets/search-Cq_gE3Ik.js +1 -0
  135. package/client/dist/assets/settings-B0ypw9uw.js +1 -0
  136. package/client/dist/assets/setup-CmK87LuS.js +1 -0
  137. package/client/dist/assets/sparkles-DrY8hb0X.js +1 -0
  138. package/client/dist/assets/specs-DII0C8gw.js +1 -0
  139. package/client/dist/assets/spending-CtY7yYes.js +1 -0
  140. package/client/dist/assets/terminal-BFRZnMPP.js +1 -0
  141. package/client/dist/assets/tickets-B8BuAaj5.js +1 -0
  142. package/client/dist/assets/tickets-B_yh4qQk.js +1 -0
  143. package/client/dist/assets/tickets-Bs37scwY2.js +1 -0
  144. package/client/dist/assets/tickets-CFk2n2Or.js +1 -0
  145. package/client/dist/assets/tickets-DQp7JS2R2.js +1 -0
  146. package/client/dist/assets/tickets-D_yDquEw.js +1 -0
  147. package/client/dist/assets/tickets-DpmdE8tv2.js +1 -0
  148. package/client/dist/assets/tickets-pAUJkDTu.js +1 -0
  149. package/client/dist/assets/trash-2-BOU3WdZZ.js +1 -0
  150. package/client/dist/assets/triangle-alert-H9T4jAmh.js +1 -0
  151. package/client/dist/assets/{ts.worker-METxwbDZ.js → ts.worker-BtjBFNHX.js} +48 -33
  152. package/client/dist/assets/{tsMode-BmT8WogI.js → tsMode-DEjSThU9.js} +1 -1
  153. package/client/dist/assets/{typescript-CQrQPsoW.js → typescript-CRRnD2Ts.js} +1 -1
  154. package/client/dist/assets/upload-DYMjAQ6M.js +1 -0
  155. package/client/dist/assets/useBrowserCaptureSession-BFBdW59q.js +1 -0
  156. package/client/dist/assets/useDesktop-uWVZ8eia.js +1 -0
  157. package/client/dist/assets/useSharedWebSocket-DaPh7QBL.js +1 -0
  158. package/client/dist/assets/utils-BC4DHlz2.js +1 -0
  159. package/client/dist/assets/value-s-gzBeyF.js +1 -0
  160. package/client/dist/assets/{workers-U0UXyLUf.js → workers-uOo7WLaa.js} +1 -1
  161. package/client/dist/assets/x-CBMI9ejn.js +1 -0
  162. package/client/dist/assets/{xml-WRxJs8_I.js → xml-EDREH2X7.js} +1 -1
  163. package/client/dist/assets/{yaml-CjpSTjJU.js → yaml-BjaDVX1E.js} +1 -1
  164. package/client/dist/assets/zap-CHo3aCD1.js +1 -0
  165. package/client/dist/index.html +73 -32
  166. package/docs/guide/en/integrations/5-mcp-server.md +2 -2
  167. package/docs/internals/safe-pr-review-flow.md +382 -141
  168. package/docs/mcp.md +15 -5
  169. package/package.json +11 -7
  170. package/server/dist/active-pr-continuation.js +250 -50
  171. package/server/dist/agent-chat-manager.js +387 -191
  172. package/server/dist/agent-cwd-manager.js +52 -8
  173. package/server/dist/agent-generator.js +90 -48
  174. package/server/dist/agent-mcp-config.js +69 -36
  175. package/server/dist/agent-operator-prompt.js +3 -2
  176. package/server/dist/agent-refine-manager.js +47 -6
  177. package/server/dist/agent-store.js +19 -4
  178. package/server/dist/agent-tier.js +13 -11
  179. package/server/dist/artifact-registry.js +33 -2
  180. package/server/dist/auth.js +5 -4
  181. package/server/dist/browser-capture-manager.js +92 -29
  182. package/server/dist/chat-manager.js +302 -46
  183. package/server/dist/contract-refine-runner.js +19 -6
  184. package/server/dist/db.js +686 -8
  185. package/server/dist/desktop-router.js +1 -2
  186. package/server/dist/headroom-manager.js +1310 -121
  187. package/server/dist/headroom-routing.js +120 -2
  188. package/server/dist/index.js +48 -13
  189. package/server/dist/interactive-job-session.js +237 -82
  190. package/server/dist/jira/jira-adf.js +10 -0
  191. package/server/dist/jira/jira-db.js +15 -3
  192. package/server/dist/jira/jira-sync-manager.js +182 -13
  193. package/server/dist/job-listing.js +140 -0
  194. package/server/dist/job-spawn-idempotency.js +67 -0
  195. package/server/dist/loop-run-manager.js +508 -98
  196. package/server/dist/loop-runs-store.js +266 -13
  197. package/server/dist/mcp/agent-capability.js +71 -0
  198. package/server/dist/mcp/guide.js +5 -2
  199. package/server/dist/mcp/mcp-server.js +5 -10
  200. package/server/dist/mcp/mcp-token.js +5 -5
  201. package/server/dist/mcp/tools/jobs.js +20 -13
  202. package/server/dist/mcp/tools/types.js +20 -42
  203. package/server/dist/mobile/mobile-router.js +1 -1
  204. package/server/dist/pr-lifecycle.js +169 -0
  205. package/server/dist/pr-publisher.js +94 -27
  206. package/server/dist/process-admission.js +82 -0
  207. package/server/dist/project-git.js +62 -2
  208. package/server/dist/project-registry.js +572 -174
  209. package/server/dist/project-router-git.js +13 -2
  210. package/server/dist/project-router-jobs.js +111 -55
  211. package/server/dist/project-router-tickets.js +32 -2
  212. package/server/dist/providers/claude-adapter.js +21 -13
  213. package/server/dist/queue-manager.js +2332 -623
  214. package/server/dist/rail-isolated-launch.js +1679 -296
  215. package/server/dist/rail-isolation.js +4 -2
  216. package/server/dist/rail-pr-decision.js +1665 -307
  217. package/server/dist/rail-pr-delivery.js +2 -1
  218. package/server/dist/rail-pr-recovery-git.js +235 -0
  219. package/server/dist/rail-pr-store.js +429 -19
  220. package/server/dist/rail-pr-ticket-effects.js +328 -0
  221. package/server/dist/rail-worktree-release.js +305 -3
  222. package/server/dist/rails-router.js +238 -120
  223. package/server/dist/rails-store.js +106 -3
  224. package/server/dist/ticket-store.js +23 -1
  225. package/server/dist/transient-children.js +13 -0
  226. package/server/dist/util/cli-prompt.js +42 -8
  227. package/server/dist/util/secure-token-file.js +84 -0
  228. package/server/dist/worktree-manager.js +126 -21
  229. package/server/dist/worktree-overlay.js +166 -4
  230. package/client/dist/assets/ActivityFeedPage-D8RKRRoM.js +0 -1
  231. package/client/dist/assets/AgentBrowserCapture-BUHPHNSN.js +0 -1
  232. package/client/dist/assets/AgentModeCodePane-GZc8bNGT.js +0 -2
  233. package/client/dist/assets/AgentModeJobsPane-DWtQqj3k.js +0 -1
  234. package/client/dist/assets/AgentsPage-CKPtHkRP.js +0 -86
  235. package/client/dist/assets/AnalyticsPage-CZW8c77k.js +0 -1
  236. package/client/dist/assets/BarChart-DugEoe2q.js +0 -33
  237. package/client/dist/assets/CodePage-CQ-uKETG.js +0 -2
  238. package/client/dist/assets/DesktopAnalyticsPage-Bgo4SyCH.js +0 -1
  239. package/client/dist/assets/DocsDialog-DxpWw_La.js +0 -11
  240. package/client/dist/assets/DocsPage-CmcOkK19.js +0 -11
  241. package/client/dist/assets/ExportDropdown-DvTS2wc7.js +0 -1
  242. package/client/dist/assets/IntegrationsPage-B72WxJ3Z.js +0 -1
  243. package/client/dist/assets/InteractiveJobComposer-B5gh4Qoy.js +0 -19
  244. package/client/dist/assets/JobDetailModal-D-BeqsJ6.js +0 -1
  245. package/client/dist/assets/JobDetailPage-DwdozwLO.js +0 -1
  246. package/client/dist/assets/JobsPage-BDkinklt.js +0 -1
  247. package/client/dist/assets/LoopBuilderPage-CclJ3VZA.js +0 -7
  248. package/client/dist/assets/LoopPreviewModal-Dw4UgoLu.js +0 -1
  249. package/client/dist/assets/LoopsPage-D7ac4M24.js +0 -1
  250. package/client/dist/assets/PluginsPage-wdC-qa40.js +0 -2
  251. package/client/dist/assets/ProjectSettingsDialog-BlTlRtGI.js +0 -1
  252. package/client/dist/assets/TemplatePreviewModal-CeMx2Red.js +0 -1
  253. package/client/dist/assets/activity-Dbl71S-E.js +0 -1
  254. package/client/dist/assets/addon-image-CwoZj17F.js +0 -1
  255. package/client/dist/assets/addon-ligatures-CWDrED80.js +0 -2
  256. package/client/dist/assets/addspec-DrXqP8ip.js +0 -1
  257. package/client/dist/assets/agent-B8BXmlUQ2.js +0 -1
  258. package/client/dist/assets/agent-BEXYxDbs.js +0 -1
  259. package/client/dist/assets/agent-BYc3-6Ln2.js +0 -1
  260. package/client/dist/assets/agent-BbJorPdT.js +0 -1
  261. package/client/dist/assets/agent-CewFImgL.js +0 -1
  262. package/client/dist/assets/agent-DfhYoUmp.js +0 -1
  263. package/client/dist/assets/agent-TK_rrK4d.js +0 -1
  264. package/client/dist/assets/agent-bHjA9R_j2.js +0 -1
  265. package/client/dist/assets/agents-CGDn_3kB.js +0 -1
  266. package/client/dist/assets/agentstudio-Dxe_94PK.js +0 -1
  267. package/client/dist/assets/aiedit-DrfHQnlz.js +0 -1
  268. package/client/dist/assets/analytics-CxDYcBl9.js +0 -1
  269. package/client/dist/assets/attachments-DvxQbBTC.js +0 -1
  270. package/client/dist/assets/brain-C92rjjYP.js +0 -1
  271. package/client/dist/assets/browser-DM8G151q.js +0 -1
  272. package/client/dist/assets/chat-0dg5hOo_.js +0 -1
  273. package/client/dist/assets/chunk-BNv3lrIs.js +0 -1
  274. package/client/dist/assets/code-B62fClk-.js +0 -1
  275. package/client/dist/assets/commands-DCJ-R9E4.js +0 -1
  276. package/client/dist/assets/common-BM3LFLCE2.js +0 -1
  277. package/client/dist/assets/common-Bwafujnc2.js +0 -1
  278. package/client/dist/assets/common-C-vU-j-I.js +0 -1
  279. package/client/dist/assets/common-C5HKSbbz.js +0 -1
  280. package/client/dist/assets/common-DXrmj6WD.js +0 -1
  281. package/client/dist/assets/common-DhWTkocg.js +0 -1
  282. package/client/dist/assets/common-DiPTT7V_2.js +0 -1
  283. package/client/dist/assets/common-DmqBPwZG.js +0 -1
  284. package/client/dist/assets/dashboard-B5ang-ZS.js +0 -1
  285. package/client/dist/assets/dashboard-CHHcOWVL2.js +0 -1
  286. package/client/dist/assets/dashboard-DBD4wPGY2.js +0 -1
  287. package/client/dist/assets/dashboard-DBuLfWo9.js +0 -1
  288. package/client/dist/assets/dashboard-DSnztwWH.js +0 -1
  289. package/client/dist/assets/dashboard-D_aP_InU.js +0 -1
  290. package/client/dist/assets/dashboard-DmBcdl1B.js +0 -1
  291. package/client/dist/assets/dashboard-RIcUKY1Y2.js +0 -1
  292. package/client/dist/assets/editor.api2-C3B0tp2x.js +0 -872
  293. package/client/dist/assets/editor.worker-Bd9IXS8d.js +0 -26
  294. package/client/dist/assets/explore-_XyU5e7R.js +0 -1
  295. package/client/dist/assets/index-BVbgKXUu.css +0 -2
  296. package/client/dist/assets/index-DyY1QyIn.js +0 -158
  297. package/client/dist/assets/integrations-By80EBkf.js +0 -1
  298. package/client/dist/assets/jira-DeIjwCK3.js +0 -1
  299. package/client/dist/assets/jobs-1GV2-4zd2.js +0 -1
  300. package/client/dist/assets/jobs-26F9gGcE.js +0 -1
  301. package/client/dist/assets/jobs-BgQzB0Sx2.js +0 -1
  302. package/client/dist/assets/jobs-BqWui9_f.js +0 -1
  303. package/client/dist/assets/jobs-CE8qeIYj.js +0 -1
  304. package/client/dist/assets/jobs-DrYmsKy5.js +0 -1
  305. package/client/dist/assets/jobs-DzeuASRf.js +0 -1
  306. package/client/dist/assets/jobs-Wh7dn28q2.js +0 -1
  307. package/client/dist/assets/json.worker-DzV-CpCQ.js +0 -58
  308. package/client/dist/assets/lib-0PFDyMxJ.js +0 -7
  309. package/client/dist/assets/loops-CO6q75W8.js +0 -1
  310. package/client/dist/assets/mcp-HwBbQDk0.js +0 -1
  311. package/client/dist/assets/monaco.contribution-Desq7oq4.js +0 -2
  312. package/client/dist/assets/nav-BTg8s-cD.js +0 -1
  313. package/client/dist/assets/preload-helper-DSXbuxSR.js +0 -1
  314. package/client/dist/assets/settings-cJNynGIZ.js +0 -1
  315. package/client/dist/assets/setup-D2CmgAro.js +0 -1
  316. package/client/dist/assets/specs-PGIOzMtc.js +0 -1
  317. package/client/dist/assets/terminal-CFt56A5f.js +0 -1
  318. package/client/dist/assets/tickets-B7zT4IRf.js +0 -1
  319. package/client/dist/assets/tickets-BHv3ewvq.js +0 -1
  320. package/client/dist/assets/tickets-BoXom7l8.js +0 -1
  321. package/client/dist/assets/tickets-C3b8cHhd2.js +0 -1
  322. package/client/dist/assets/tickets-CFXnJsYF.js +0 -1
  323. package/client/dist/assets/tickets-CWYFvx1W2.js +0 -1
  324. package/client/dist/assets/tickets-DTHo9c3C.js +0 -1
  325. package/client/dist/assets/tickets-SuX_HkK4.js +0 -1
  326. package/client/dist/assets/upload-CmR4h9H1.js +0 -1
  327. package/client/dist/assets/value-JA3bf47v.js +0 -1
  328. /package/client/dist/assets/{abap-D0E4FfVW.js → abap-08VXUWAP.js} +0 -0
  329. /package/client/dist/assets/{activity--iN4Ad2R2.js → activity-B-rp4h_v.js} +0 -0
  330. /package/client/dist/assets/{activity-6hM_ZSg9.js → activity-C6kJpm9q2.js} +0 -0
  331. /package/client/dist/assets/{activity-CIOLxGvh.js → activity-CGx4kb_j.js} +0 -0
  332. /package/client/dist/assets/{activity-BZNfOdiS.js → activity-CnoX2bH7.js} +0 -0
  333. /package/client/dist/assets/{activity-BuVo5sPB.js → activity-DAyekdlt2.js} +0 -0
  334. /package/client/dist/assets/{activity-D2r2h3SE2.js → activity-DCxtpT7j.js} +0 -0
  335. /package/client/dist/assets/{activity-DtxrAUMo2.js → activity-JzwRaWPD.js} +0 -0
  336. /package/client/dist/assets/{addspec-BMtLZLW62.js → addspec-BXjvkh5q.js} +0 -0
  337. /package/client/dist/assets/{addspec-CRuvWn8d.js → addspec-C4bwrmpi.js} +0 -0
  338. /package/client/dist/assets/{addspec-D-JLDsUV.js → addspec-CArHXUDM.js} +0 -0
  339. /package/client/dist/assets/{addspec-mgPOt5q02.js → addspec-DTKJcXiR.js} +0 -0
  340. /package/client/dist/assets/{addspec-DfhDbg5c.js → addspec-DbNBbrha2.js} +0 -0
  341. /package/client/dist/assets/{addspec-CP0HRuxY.js → addspec-htHGZHOe2.js} +0 -0
  342. /package/client/dist/assets/{addspec-bsNDdqRm2.js → addspec-lr_LP6jk.js} +0 -0
  343. /package/client/dist/assets/{agents-78bTZGZh.js → agents-6ZOJXWVk2.js} +0 -0
  344. /package/client/dist/assets/{agents-DDtCJ5M02.js → agents-BZ0XQKjg.js} +0 -0
  345. /package/client/dist/assets/{agents-CWo-KyAB.js → agents-BqWklnHR.js} +0 -0
  346. /package/client/dist/assets/{agents-BUdEi3-N.js → agents-Bz-thHkB2.js} +0 -0
  347. /package/client/dist/assets/{agents-bvyRLczL.js → agents-CJclElx6.js} +0 -0
  348. /package/client/dist/assets/{agents-BpoUaoW92.js → agents-D_l9L0VA.js} +0 -0
  349. /package/client/dist/assets/{agents-BLhWCmDS2.js → agents-u_C0jPB5.js} +0 -0
  350. /package/client/dist/assets/{agentstudio-BMQxc_bz.js → agentstudio-BF19hbXj.js} +0 -0
  351. /package/client/dist/assets/{agentstudio-C_Jq8Tl4.js → agentstudio-BLGvxWBx2.js} +0 -0
  352. /package/client/dist/assets/{agentstudio-Dtq3dGYk.js → agentstudio-D9UKiWTj2.js} +0 -0
  353. /package/client/dist/assets/{agentstudio-CWgXG5W52.js → agentstudio-Drs37nIM.js} +0 -0
  354. /package/client/dist/assets/{agentstudio-sI27TpBu2.js → agentstudio-nEnKkcXM.js} +0 -0
  355. /package/client/dist/assets/{agentstudio-jKMTdT70.js → agentstudio-pyFcSBKy.js} +0 -0
  356. /package/client/dist/assets/{agentstudio-COZriimI2.js → agentstudio-zfTzQh3U.js} +0 -0
  357. /package/client/dist/assets/{aiedit-hknZlly82.js → aiedit-B0KUbpB6.js} +0 -0
  358. /package/client/dist/assets/{aiedit-eMN4eQPF.js → aiedit-BoG24nlg2.js} +0 -0
  359. /package/client/dist/assets/{aiedit-pc5JDUq1.js → aiedit-CjlSRQVP.js} +0 -0
  360. /package/client/dist/assets/{aiedit-B03pD_Na.js → aiedit-DCjA7jLJ.js} +0 -0
  361. /package/client/dist/assets/{aiedit-6CHdb_iv2.js → aiedit-DNXxq_Dr.js} +0 -0
  362. /package/client/dist/assets/{aiedit-igmw-ZoZ2.js → aiedit-DQ-0_pvE.js} +0 -0
  363. /package/client/dist/assets/{aiedit-BtRqRxML.js → aiedit-olnv3QSt2.js} +0 -0
  364. /package/client/dist/assets/{analytics-CCprAqk3.js → analytics-BC7mwR4s.js} +0 -0
  365. /package/client/dist/assets/{analytics-CR1TJqUi2.js → analytics-BiNg8edP.js} +0 -0
  366. /package/client/dist/assets/{analytics-Bj-SmKHa.js → analytics-C0s_T2GN.js} +0 -0
  367. /package/client/dist/assets/{analytics-C5dpiS0o.js → analytics-CdsAPAwZ2.js} +0 -0
  368. /package/client/dist/assets/{analytics-BWMUZ2Pq2.js → analytics-Cr1_q-lC.js} +0 -0
  369. /package/client/dist/assets/{analytics-DfNdXR0y2.js → analytics-IEsKZvpW2.js} +0 -0
  370. /package/client/dist/assets/{analytics-rmHuJv0V.js → analytics-SRPf84OT.js} +0 -0
  371. /package/client/dist/assets/{apex-D_X_8J4d.js → apex-BWPQTe0t.js} +0 -0
  372. /package/client/dist/assets/{atom-one-dark-BMDPFwRZ.js → atom-one-dark-qiGhVQxg.js} +0 -0
  373. /package/client/dist/assets/{attachments-BgBNSqQd.js → attachments-D0wXXt9T2.js} +0 -0
  374. /package/client/dist/assets/{attachments-C9GTTJsx2.js → attachments-DenIjuVI.js} +0 -0
  375. /package/client/dist/assets/{attachments-BjyMmrwE.js → attachments-DhO7LPfy.js} +0 -0
  376. /package/client/dist/assets/{attachments-DPCmkFZu2.js → attachments-DoH5w0x4.js} +0 -0
  377. /package/client/dist/assets/{attachments-DCZOL1RU.js → attachments-Q9yNtiEM.js} +0 -0
  378. /package/client/dist/assets/{attachments-rNn1ekRy2.js → attachments-V_WZAYXx2.js} +0 -0
  379. /package/client/dist/assets/{attachments-DL-bPy9E.js → attachments-eaeScpjM.js} +0 -0
  380. /package/client/dist/assets/{auth-DpZq5p1e.js → auth-D_5bQv5W.js} +0 -0
  381. /package/client/dist/assets/{azcli-PZLnZ3jH.js → azcli-Bc_sGQ0U.js} +0 -0
  382. /package/client/dist/assets/{bat-KlBOxpO4.js → bat-i0X4ZdIN.js} +0 -0
  383. /package/client/dist/assets/{bicep-CgG9oF3V.js → bicep-B5-_aFwp.js} +0 -0
  384. /package/client/dist/assets/{browser-BPkhILSJ.js → browser-C25DkQiO.js} +0 -0
  385. /package/client/dist/assets/{browser-BqLqJVVT.js → browser-CiJ7-L32.js} +0 -0
  386. /package/client/dist/assets/{browser-rWKj-RR_2.js → browser-CvgDySd9.js} +0 -0
  387. /package/client/dist/assets/{browser-Cvg-QHvd2.js → browser-CyR1Kp3m2.js} +0 -0
  388. /package/client/dist/assets/{browser-FRv8P02E.js → browser-DwZljcRh2.js} +0 -0
  389. /package/client/dist/assets/{browser-Cc0iDqUi.js → browser-DxP-alBK.js} +0 -0
  390. /package/client/dist/assets/{browser-BijVYG0Y2.js → browser-rRCwi7Y7.js} +0 -0
  391. /package/client/dist/assets/{cameligo-6R45j6Ph.js → cameligo-DMUM7wLl.js} +0 -0
  392. /package/client/dist/assets/{chat-Bom6bqK3.js → chat-2rIB8HhT.js} +0 -0
  393. /package/client/dist/assets/{chat-vylxqR0P2.js → chat-BR8oe53x2.js} +0 -0
  394. /package/client/dist/assets/{chat-Dnwg-NpQ.js → chat-Bua03tty.js} +0 -0
  395. /package/client/dist/assets/{chat-BgL3zv6x2.js → chat-CZpAQan1.js} +0 -0
  396. /package/client/dist/assets/{chat-DsbwJhus.js → chat-CdY5SGvS.js} +0 -0
  397. /package/client/dist/assets/{chat-Bh3NdgJs.js → chat-DZyu3ImY2.js} +0 -0
  398. /package/client/dist/assets/{chat-DdwZjT8K2.js → chat-D_I7nU5K.js} +0 -0
  399. /package/client/dist/assets/{clojure-CLAAMO7J.js → clojure-Cm7r79vr.js} +0 -0
  400. /package/client/dist/assets/{clsx-CNmW0Nip.js → clsx-CjueKrWZ.js} +0 -0
  401. /package/client/dist/assets/{code-UPVvmAKM2.js → code-76gS0IdL.js} +0 -0
  402. /package/client/dist/assets/{code-BRcDlze52.js → code-C1VwxlML.js} +0 -0
  403. /package/client/dist/assets/{code-CeQ0FZpC.js → code-CnMZyJpr.js} +0 -0
  404. /package/client/dist/assets/{code-DgeHz9CB.js → code-D20ef9Cf2.js} +0 -0
  405. /package/client/dist/assets/{code-DzC1rMk12.js → code-DdOXaWRY.js} +0 -0
  406. /package/client/dist/assets/{code-CwnBPPyA.js → code-Duohuf9l.js} +0 -0
  407. /package/client/dist/assets/{code-BdMy3Ffq.js → code-geHmknB92.js} +0 -0
  408. /package/client/dist/assets/{coffee-AruSygo-.js → coffee-Ba7i2nA0.js} +0 -0
  409. /package/client/dist/assets/{commands-DkU0qliq.js → commands-B9RZO4qS.js} +0 -0
  410. /package/client/dist/assets/{commands-u-4eEHCN.js → commands-BEwbAjtD2.js} +0 -0
  411. /package/client/dist/assets/{commands-JWMfGDmr.js → commands-Bbxu8kLU.js} +0 -0
  412. /package/client/dist/assets/{commands-C4Y3C-PF2.js → commands-CDU3qv68.js} +0 -0
  413. /package/client/dist/assets/{commands-xHDDGfcP2.js → commands-CzezgtQj.js} +0 -0
  414. /package/client/dist/assets/{commands-CSDs9q_2.js → commands-DTQBF_q52.js} +0 -0
  415. /package/client/dist/assets/{commands-RHOchN4n2.js → commands-hOtKuOXc.js} +0 -0
  416. /package/client/dist/assets/{cpp-DEE5r4Pw.js → cpp-C7h46wYY.js} +0 -0
  417. /package/client/dist/assets/{csharp-BVXJUvbK.js → csharp-BKxtCVv1.js} +0 -0
  418. /package/client/dist/assets/{csp-cXOF0JoV.js → csp-bTuwJoIa.js} +0 -0
  419. /package/client/dist/assets/{css-C_zQuAoy.js → css-DIMkf-bt.js} +0 -0
  420. /package/client/dist/assets/{cypher-t95m_Q-O.js → cypher-CVaqCwHa.js} +0 -0
  421. /package/client/dist/assets/{dart-B4r1Tg-e.js → dart-onAF5SnQ.js} +0 -0
  422. /package/client/dist/assets/{dockerfile-6mt7zHQw.js → dockerfile-DZFCIeNp.js} +0 -0
  423. /package/client/dist/assets/{ecl-DEY_Fz_Q.js → ecl-D05T4iGw.js} +0 -0
  424. /package/client/dist/assets/{elixir-R6-q1c5t.js → elixir-6RTg0lbw.js} +0 -0
  425. /package/client/dist/assets/{explore-B7fblXBb2.js → explore-BG99VGpL.js} +0 -0
  426. /package/client/dist/assets/{explore-CNBzrEPS.js → explore-C0TjprJW2.js} +0 -0
  427. /package/client/dist/assets/{explore-C0k8HrkN.js → explore-C2dgEo7q.js} +0 -0
  428. /package/client/dist/assets/{explore-BHtEpoNN2.js → explore-C8NDHbob.js} +0 -0
  429. /package/client/dist/assets/{explore-Dahc1lOx.js → explore-CWWgzQGR.js} +0 -0
  430. /package/client/dist/assets/{explore-D_mWBYCS2.js → explore-CcQXpdtS.js} +0 -0
  431. /package/client/dist/assets/{explore-UvW1jEMa.js → explore-DsXAgnmJ2.js} +0 -0
  432. /package/client/dist/assets/{flow9-CNQvHBOt.js → flow9-C5_-GSwl.js} +0 -0
  433. /package/client/dist/assets/{format-command-CuWuRvka.js → format-command-Dfa1o2d-.js} +0 -0
  434. /package/client/dist/assets/{fsharp-vPZkFXwv.js → fsharp-C8Ef5oNN.js} +0 -0
  435. /package/client/dist/assets/{go-KUzBMYJ_.js → go-C-y9NEjX.js} +0 -0
  436. /package/client/dist/assets/{graphql-C3W0rCsD.js → graphql-fmXr3nnJ.js} +0 -0
  437. /package/client/dist/assets/{hcl-BOOMFSNX.js → hcl-CpzslTdj.js} +0 -0
  438. /package/client/dist/assets/{ini-CFat1WJr.js → ini-sBoK_t0W.js} +0 -0
  439. /package/client/dist/assets/{integrations-TAcYNh0b.js → integrations-CH0zy1Mw2.js} +0 -0
  440. /package/client/dist/assets/{integrations-C1ThkTC52.js → integrations-CIAjhd7L.js} +0 -0
  441. /package/client/dist/assets/{integrations-2YcNyAl3.js → integrations-CZdwOe8A.js} +0 -0
  442. /package/client/dist/assets/{integrations-BXCvXUlG2.js → integrations-Ct7omMld.js} +0 -0
  443. /package/client/dist/assets/{integrations-Crk2rFhL2.js → integrations-D6MSxy3-.js} +0 -0
  444. /package/client/dist/assets/{integrations-Dn4JiGtW.js → integrations-DbZa-Zyc.js} +0 -0
  445. /package/client/dist/assets/{integrations-D9YrJ_Ep.js → integrations-b8pH-vfl2.js} +0 -0
  446. /package/client/dist/assets/{java-Dee-CNAM.js → java-BEtHBSE6.js} +0 -0
  447. /package/client/dist/assets/{jira-D5efgwp_.js → jira-BySfUuQZ.js} +0 -0
  448. /package/client/dist/assets/{jira-bDs7Im2C.js → jira-Byw2C0F8.js} +0 -0
  449. /package/client/dist/assets/{jira-BHAKtc4B.js → jira-CNeYi06w2.js} +0 -0
  450. /package/client/dist/assets/{jira-Be369RIR2.js → jira-D11gPhxz.js} +0 -0
  451. /package/client/dist/assets/{jira-CPpgA-5z2.js → jira-D38Gj7AT.js} +0 -0
  452. /package/client/dist/assets/{jira-uNH1gETL2.js → jira-gAvOyije.js} +0 -0
  453. /package/client/dist/assets/{jira-DS7ownDy.js → jira-pRaL7JQo2.js} +0 -0
  454. /package/client/dist/assets/{julia-CGNlLYuU.js → julia-Bri6UV-V.js} +0 -0
  455. /package/client/dist/assets/{kotlin-CY7lhknJ.js → kotlin-BOotOW0E.js} +0 -0
  456. /package/client/dist/assets/{less-D0KN7hfJ.js → less-B9JPFI3C.js} +0 -0
  457. /package/client/dist/assets/{lexon-CuRJufPs.js → lexon-CfSJPG6W.js} +0 -0
  458. /package/client/dist/assets/{loops-LIgO_-eM.js → loops-CPpgMapU.js} +0 -0
  459. /package/client/dist/assets/{loops-DJNhp17p2.js → loops-CWWbKuVL.js} +0 -0
  460. /package/client/dist/assets/{loops-D6D3XHjj.js → loops-Crc9It8o2.js} +0 -0
  461. /package/client/dist/assets/{loops-CvOWsi5r.js → loops-DH2hZcbK2.js} +0 -0
  462. /package/client/dist/assets/{loops-vhJdbcz92.js → loops-DS5TmvIU2.js} +0 -0
  463. /package/client/dist/assets/{loops-K5_HXfJa.js → loops-P2f0cN8-.js} +0 -0
  464. /package/client/dist/assets/{loops-BvqQ-bHR2.js → loops-fJV-9hH7.js} +0 -0
  465. /package/client/dist/assets/{lua-DHvH62Zf.js → lua-CsQS60Ue.js} +0 -0
  466. /package/client/dist/assets/{m3-tlthQ8Fo.js → m3-D-oSqn_W.js} +0 -0
  467. /package/client/dist/assets/{markdown-Dbx1LgUZ.js → markdown-Cimd5fb3.js} +0 -0
  468. /package/client/dist/assets/{mcp-Dcl-XxkR.js → mcp-Czd_iyp02.js} +0 -0
  469. /package/client/dist/assets/{mcp-XJNRfxVp2.js → mcp-D2pc5GGx.js} +0 -0
  470. /package/client/dist/assets/{mcp-sRmWE8WJ.js → mcp-D4ZjtIx32.js} +0 -0
  471. /package/client/dist/assets/{mcp-DtbxuH3V2.js → mcp-DIfBUv2D2.js} +0 -0
  472. /package/client/dist/assets/{mcp-H-gnQUdN.js → mcp-DsTwmjST.js} +0 -0
  473. /package/client/dist/assets/{mcp-N1nzp8oL.js → mcp-SMkn8boG.js} +0 -0
  474. /package/client/dist/assets/{mcp-CjVKXAhD2.js → mcp-fSfiVYAc.js} +0 -0
  475. /package/client/dist/assets/{mips-D_O3IUz_.js → mips-CIPQ_RoX.js} +0 -0
  476. /package/client/dist/assets/{msdax-C_ZmCnRt.js → msdax-DauUninz.js} +0 -0
  477. /package/client/dist/assets/{mysql-C-dCEYSX.js → mysql-SOo6toE5.js} +0 -0
  478. /package/client/dist/assets/{nav-BElxljIF2.js → nav-BRJBxaGt2.js} +0 -0
  479. /package/client/dist/assets/{nav-COu2E_-L.js → nav-CAGKv3_F.js} +0 -0
  480. /package/client/dist/assets/{nav-BXO7PJJG2.js → nav-CNskRJKQ2.js} +0 -0
  481. /package/client/dist/assets/{nav-CW9pxWfC2.js → nav-DY93irBL.js} +0 -0
  482. /package/client/dist/assets/{nav-CXHUA4uf.js → nav-DhjvYgqt.js} +0 -0
  483. /package/client/dist/assets/{nav-DdHF5VWJ.js → nav-Gb-r4wop.js} +0 -0
  484. /package/client/dist/assets/{nav-C8kOuGh8.js → nav-TvumAFD22.js} +0 -0
  485. /package/client/dist/assets/{objective-c-DZY9Aqxd.js → objective-c-FvmIjYaQ.js} +0 -0
  486. /package/client/dist/assets/{pascal-BVHLXoor.js → pascal-DrH0SRf2.js} +0 -0
  487. /package/client/dist/assets/{pascaligo-XdG_6u3k.js → pascaligo-D-ptJ9y-.js} +0 -0
  488. /package/client/dist/assets/{perl-b9QV0BcD.js → perl-oz_6vUea.js} +0 -0
  489. /package/client/dist/assets/{pgsql-Du5FDOgT.js → pgsql-DTj74zXo.js} +0 -0
  490. /package/client/dist/assets/{php-WJD0z2Z_.js → php-nr791fC2.js} +0 -0
  491. /package/client/dist/assets/{pla-CbciTf2w.js → pla-CopQ2nXW.js} +0 -0
  492. /package/client/dist/assets/{postiats-C1QxmvVq.js → postiats-43DmfD33.js} +0 -0
  493. /package/client/dist/assets/{powerquery-BEYDhPLZ.js → powerquery-D3hlyOfw.js} +0 -0
  494. /package/client/dist/assets/{powershell-CfaYw4XL.js → powershell-DmHpPYUd.js} +0 -0
  495. /package/client/dist/assets/{protobuf-pwZEDOYa.js → protobuf-C531GsRP.js} +0 -0
  496. /package/client/dist/assets/{pug-5ftqSPVe.js → pug-Z5eAx3Zn.js} +0 -0
  497. /package/client/dist/assets/{qsharp-uI6qZMq4.js → qsharp-DkqhCAOL.js} +0 -0
  498. /package/client/dist/assets/{r-BK54P1EG.js → r-BwWrilGY.js} +0 -0
  499. /package/client/dist/assets/{redis-DI0yd7kN.js → redis-ClamHrr6.js} +0 -0
  500. /package/client/dist/assets/{redshift-Dov26eyI.js → redshift-DT7zqm-g.js} +0 -0
  501. /package/client/dist/assets/{restructuredtext-QqJ_1dC-.js → restructuredtext-BYgofb2h.js} +0 -0
  502. /package/client/dist/assets/{ruby-5WjveeVb.js → ruby-DezsRK8O.js} +0 -0
  503. /package/client/dist/assets/{rust-BzVSfqFH.js → rust-DdL9SqIa.js} +0 -0
  504. /package/client/dist/assets/{sb-DMIUfT-3.js → sb-CcwsVR0C.js} +0 -0
  505. /package/client/dist/assets/{scala-CSKA7lqt.js → scala-DHpiXF5c.js} +0 -0
  506. /package/client/dist/assets/{scheme-CojOP2Qc.js → scheme-BeGwcela.js} +0 -0
  507. /package/client/dist/assets/{scss-DoBZGJG6.js → scss-gp-XZpBa.js} +0 -0
  508. /package/client/dist/assets/{settings-1w1O5Og82.js → settings-B9ilOSYO.js} +0 -0
  509. /package/client/dist/assets/{settings-Jc46vUhd.js → settings-BqlWHRHA.js} +0 -0
  510. /package/client/dist/assets/{settings-BSihkr0e.js → settings-D8dlqt4d.js} +0 -0
  511. /package/client/dist/assets/{settings-BiDOB3hV2.js → settings-DAZqjX2a2.js} +0 -0
  512. /package/client/dist/assets/{settings-DNL68KTE.js → settings-DRh39v1S2.js} +0 -0
  513. /package/client/dist/assets/{settings-BoubJhDP2.js → settings-Mj1OJbfd2.js} +0 -0
  514. /package/client/dist/assets/{settings-CB-EZ_W8.js → settings-lRReaSYm.js} +0 -0
  515. /package/client/dist/assets/{setup-D84y3wx-.js → setup-CGZjy2IF2.js} +0 -0
  516. /package/client/dist/assets/{setup-BuQNKztt2.js → setup-CXa0Sx16.js} +0 -0
  517. /package/client/dist/assets/{setup-BwMovM9z2.js → setup-D2ktKKMF2.js} +0 -0
  518. /package/client/dist/assets/{setup-DU0ULX8q2.js → setup-DG2H7ha5.js} +0 -0
  519. /package/client/dist/assets/{setup-BXpw07r-.js → setup-DK5bHDUq2.js} +0 -0
  520. /package/client/dist/assets/{setup-7J8TjG4O.js → setup-DrWlIQTZ.js} +0 -0
  521. /package/client/dist/assets/{setup-BiduSX9d.js → setup-rzHUVgAu.js} +0 -0
  522. /package/client/dist/assets/{shell-YOaE4udl.js → shell-CC2rA5mh.js} +0 -0
  523. /package/client/dist/assets/{solidity-l3jSyVLu.js → solidity-BEEn4gHE.js} +0 -0
  524. /package/client/dist/assets/{sophia-BhSGTaQJ.js → sophia-CRfGWb83.js} +0 -0
  525. /package/client/dist/assets/{sparql-qhk6QD9w.js → sparql-D_Lu-MrJ.js} +0 -0
  526. /package/client/dist/assets/{specs-CWtKcVDC.js → specs-BcyxaCwf2.js} +0 -0
  527. /package/client/dist/assets/{specs-DTplt2XM.js → specs-C1q9geAi.js} +0 -0
  528. /package/client/dist/assets/{specs-PozUNhqb.js → specs-CLZKysq-2.js} +0 -0
  529. /package/client/dist/assets/{specs-C9Sd7BhH2.js → specs-DZMS9o54.js} +0 -0
  530. /package/client/dist/assets/{specs-D2clrt2c2.js → specs-Dm6zUI-R.js} +0 -0
  531. /package/client/dist/assets/{specs-CBDvEYKv.js → specs-V3TvhKLX.js} +0 -0
  532. /package/client/dist/assets/{specs-CIPr9reA2.js → specs-dV3Mq5Mu2.js} +0 -0
  533. /package/client/dist/assets/{sql-DoO3y21-.js → sql-NEE52Syq.js} +0 -0
  534. /package/client/dist/assets/{st-ChZAY8oG.js → st-DbInun42.js} +0 -0
  535. /package/client/dist/assets/{swift-D290Tr7_.js → swift-Bxkupp3x.js} +0 -0
  536. /package/client/dist/assets/{systemverilog-DsxzgJ-o.js → systemverilog-Bz4Y3fRF.js} +0 -0
  537. /package/client/dist/assets/{tcl-BKDUHAAR.js → tcl-DISqw1ZD.js} +0 -0
  538. /package/client/dist/assets/{terminal-De2Brd23.js → terminal-BZiIu3rf.js} +0 -0
  539. /package/client/dist/assets/{terminal-cqfd3EDV.js → terminal-C2NAd7BW2.js} +0 -0
  540. /package/client/dist/assets/{terminal-WSAvHXoU.js → terminal-IahE4LW92.js} +0 -0
  541. /package/client/dist/assets/{terminal-Z7KsDM_n.js → terminal-QpXZU2Bn2.js} +0 -0
  542. /package/client/dist/assets/{terminal-xGbCZJHg.js → terminal-ScjyXNxQ.js} +0 -0
  543. /package/client/dist/assets/{terminal-BRm03iFA2.js → terminal-d7GadXbN.js} +0 -0
  544. /package/client/dist/assets/{terminal-DxQWCqSD2.js → terminal-tITa81iz.js} +0 -0
  545. /package/client/dist/assets/{twig-UpZQaM8G.js → twig-De2hgUGE.js} +0 -0
  546. /package/client/dist/assets/{typespec-DzaKvN8i.js → typespec-B8J7ngcE.js} +0 -0
  547. /package/client/dist/assets/{vb-CZpbb7tk.js → vb-DV3o63ZY.js} +0 -0
  548. /package/client/dist/assets/{wgsl-CNt3OIvl.js → wgsl-DpFanUEy.js} +0 -0
@@ -9,84 +9,176 @@
9
9
 
10
10
  ## The single source of truth
11
11
 
12
- One durable row per rail **launch** in `rail_pr_deliveries` (per-project `jobs.sqlite`,
13
- migration 36; CRUD in `server/rail-pr-store.ts`). Grain is the launch, not the ticket: a delivery
14
- is one PR for the whole launch, keyed internally by `rail_key = ${railIndex}-${loopId}`; the row
15
- is keyed by uuid because a rail slot can be relaunched.
16
-
17
- Columns beyond the obvious: `ticket_ids` (JSON `number[]`), `base_branch` (the resolved
18
- integration branch — the "against `<base>`" in the question), `branches` (JSON
19
- `DeliverBranchRecord[]` — per-unit `{ticketId, branch, succeeded}` captured at build-settle),
20
- `worktree_ids` (JSON `string[]` of `rail_worktrees` ledger ids), `loop_name` (PR title/body),
21
- `pr_url`/`pr_number`, `pr_state` (`none | local-only | pushed | pr-created` — the pr-publisher
22
- degradation ladder, independent of `decision`), `origin_surface` (`dashboard | agent-chat`),
23
- `origin_conversation_id` (soft cross-DB reference to `agent_conversations.id` in
24
- `desktop.sqlite`; no FK is possible across SQLite files).
25
-
26
- The `branches` + `worktree_ids` columns exist because PR creation is **deferred**: nothing about
27
- the settle survives in memory by the time the user clicks, so `create-pr` and `discard`
28
- reconstruct all their inputs from the row.
29
-
30
- ## State machine (`decision`)
12
+ `rail_pr_deliveries` (per-project `jobs.sqlite`, migrations 36/38/48–54; CRUD in
13
+ `server/rail-pr-store.ts`) stores one durable **generation** per implementation launch. A partial
14
+ unique index enforces one non-terminal generation per rail. Reimplementing an attached PR creates
15
+ generation B and atomically moves generation A to terminal `superseded`; A cannot reappear through
16
+ ordinary replay after B closes. The sole exception is an allocation rollback committed in the same
17
+ transaction: B becomes terminal and restored A carries `restored_from_delivery_id=B` as exact causal
18
+ proof. `supersedes_delivery_id` preserves forward lineage and `is_continuation` records that the
19
+ PR/head branch is borrowed review state rather than a resource this generation owns.
20
+
21
+ Every projected snapshot also carries `createdAt`/`updatedAt`; claim, transition, release, recovery,
22
+ and supersession writes advance the latter with a strictly monotonic millisecond UTC logical clock.
23
+ Consumers replace a different generation only through an explicit supersedes link or a strictly
24
+ later valid `createdAt`, and advance the same id only with newer update evidence under a deterministic fail-closed tie policy.
25
+ Delivery ids already observed terminal or superseded are tombstoned against non-terminal replay.
26
+ Only the exact paired rollback above may consume such a tombstone; a delayed predecessor without
27
+ that durable proof remains rejected. Missing or ambiguous ordering evidence fails closed instead of
28
+ letting arrival order resurrect an old card.
29
+
30
+ The important rule is that no single enum carries all truth. The row has orthogonal axes:
31
+
32
+ - `implementation_outcome`: `running | succeeded | partially_succeeded | failed | unknown` —
33
+ derived **only** from loop terminal outcomes.
34
+ - `delivery_outcome`: `pending | ready | delivered | partial | no_changes |
35
+ retryable_failure | blocked | not_started | unknown` — commit/ref/push readiness.
36
+ - `decision`: the user/action lifecycle (`building`, `on_review`, `no_changes`, `pr_draft`,
37
+ `pr_ready`, `pr_closed`, `pr_failed`, `implementation_failed`, plus terminal `completed`,
38
+ `merged`, `discarded`, `superseded`).
39
+ - `status_code` + bounded `status_detail`: localized stage/reason and secondary diagnostics.
40
+ - `delivery_sha`: the exact verified object used by an existing-PR push or retry.
41
+ - `supersedes_delivery_id` / `restored_from_delivery_id`: forward replacement and exact failed-
42
+ replacement rollback lineage.
43
+ - `safety_archives`: deduplicated roots for persistent overlay quarantine batches; shown as neutral recovery
44
+ evidence rather than cleanup failures.
45
+ - `pr_state`: `none | local-only | pushed | pr-created`, independent of all three axes.
46
+
47
+ `branches` is the durable per-unit record: ticket/run, branch, actual implementation result,
48
+ delivery eligibility, initial/final SHA, changed/no-change evidence, and failure code. Together
49
+ with `worktree_ids` it lets deferred decisions and both cards reconstruct full/partial outcomes
50
+ after refresh. `cleanup_warnings` reports best-effort cleanup honestly. `operation*` columns form
51
+ a leased single-winner claim around decision-side Git/GitHub effects.
52
+
53
+ ## Outcome and decision matrix
31
54
 
32
55
  ```
33
- building ──(settle, ≥1 succeeded unit)──▶ on_review [patch branches/worktree_ids]
34
- building ──(settle, 0 succeeded)────────▶ discarded (terminal auto-close; per-run settle already reverted tickets)
35
- on_review | pr_failed ──[Create PR]────▶ pr_draft (delivered) | pr_failed (assembly-failed / throw)
36
- pr_draft (pr_url != null) ──[Publish]──▶ pr_ready (gh pr ready — opens the draft for team review)
37
- pr_draft | pr_ready ──[Check merge]────▶ merged (gh pr view reports MERGED; else 200 no-op)
38
- on_review | pr_draft | pr_ready | pr_failed ──[Discard]─▶ discarded
39
- on_review | pr_failed | pr_draft (pr_url = null) ──[Integrate locally]─▶ merged (remote-less acceptance)
56
+ engine failed (all units) → implementation_failed / not_started
57
+ engine succeeded + clean verified diff→ on_review (fresh) or pr_draft|pr_ready (continuation)
58
+ engine succeeded + no branch delta → no_changes
59
+ mixed clean units → on_review / partial (explicit subset)
60
+ engine succeeded + commit/ref unsafe → pr_failed / blocked (worktree preserved)
61
+ verified existing-PR push failed → pr_failed / retryable_failure (exact SHA retained)
62
+ exact OPEN head/base contains SHA → attached delivery verified
63
+ exact CLOSED head/base contains SHA → pr_closed
64
+ exact MERGED in a decision action → merged immediately (terminal)
65
+ stale/retargeted/terminal missing SHA → on_review, PR detached, SHA retained
66
+ new generation replaces prior one → prior generation superseded (terminal)
67
+ fresh no-change accepted → completed (terminal; no merge claimed)
40
68
  ```
41
69
 
42
- `merged` / `discarded` are terminal. A **degraded** draft (`pr_state` `pushed`/`local-only`,
43
- `pr_url = null`) offers no Publish — retry (`create-pr` is legal from a `pr_draft` whose
44
- `pr_url` is null), **Integrate locally**, or Discard.
45
-
46
- **`merge-local` (remote-less acceptance).** A repo with no GitHub remote can never leave
47
- `local-only` — retry loops forever and Discard destroys the work, so `merge-local` is the way to
48
- say *yes* without GitHub. Legal ONLY while `pr_url` is null (once a real PR exists, GitHub is the
49
- merge authority). It merges directly into the USER'S CHECKOUT, so it is triple-guarded: the
50
- checkout must have the integration branch checked out (a branch can only be checked out in one
51
- worktree, so a temp-worktree merge is impossible while the user holds it) and the working tree
52
- must be clean — violations return **409 `merge_local_blocked`** (`reason: 'wrong_branch' | 'dirty'`,
53
- user-fixable, no transition). Merge = the assembled head (`row.branch`) when it exists, else each
54
- succeeded unit branch sequentially, `--no-ff --no-edit`; any conflict → `merge --abort` +
55
- **502 `merge_failed`** (no transition — retry after manual resolution, or discard). Success sweeps
56
- worktrees + branches (ledger rows → `merged`), transitions to `merged` with `pr_url` still null,
57
- promotes tickets to `done` and fires Jira `onRailMerged(ticketIds, refId, null)`. Both surfaces
58
- offer it wherever no PR exists yet (on_review / degraded draft / pr_failed) behind a confirm. Every transition is the compare-and-set
59
- `transitionDecision(db, id, expected, next, patch)` — one atomic
60
- `UPDATE … WHERE id = ? AND decision = ?` — so two surfaces racing on the same delivery cannot
61
- both win; the loser's `false` return maps to **409 `stale_decision`**.
62
-
63
- ## Launch wiring (`server/rail-isolated-launch.ts`)
64
-
65
- - `prMode = isRailPrDeliveryEnabled()` is captured **once at launch entry** — a mid-flight env
66
- flip can never split one launch across the two delivery paths.
67
- - In PR mode the row is INSERTed **up front** (`decision='building'`) so the origin link is
68
- persisted before any await can drop it and late-joining clients hydrate mid-build via
69
- `GET /rails`. Worktree-allocation failure transitions the row to `discarded` (kept for audit,
70
- never deleted) so a wedged `building` row can never block the slot.
71
- - Isolation units: `scope='per-ticket'` → one worktree/run per ticket; `scope='all'`
72
- (implement/batch — one pipeline invocation covers all tickets) → **one** worktree/run covering
73
- every ticket. `isolationApplies` (`server/rail-isolation.ts`) isolates per-ticket rails always
74
- and `all`-scoped rails **only when PR delivery is on** (kill-switch off ⇒ byte-identical
75
- legacy shared-cwd).
76
- - Per-run settle: `ctx.onLoopRunFinished(runId, outcome, { ticketCompletionStatus })` —
77
- `'on_review'` in PR mode, `'done'` otherwise (`applyJobOutcomeToTickets` gains the analogous
78
- `{ completedStatus }` option; explicit `'done'` / kill-switch off is byte-identical legacy).
79
- When the caller passes NO opts (shared-cwd rail runs, standalone loop runs,
80
- isolation-unavailable fallbacks) the default now derives from `isRailPrDeliveryEnabled()` —
81
- read once per settle and reused for the Jira split, so one settle can never split across the
82
- two paths (universal ask-first; the explicit isolated-rail opts are idempotent with it).
83
- Failures ignore the field (revert `in_progress → todo` as always). In PR mode the completed
84
- path calls `jiraSyncManager.onRailReview` instead of the done-flavoured `onJobOutcome`.
85
- - All-settle in PR mode: patch `branches` + `worktree_ids`, transition `building →`
86
- `on_review` (≥1 succeeded) or `discarded` (0 succeeded), broadcast, and — when
87
- `origin_conversation_id` is set — post the inline decision card into the conversation.
88
- The legacy merge-back **never runs** in PR mode. Kill-switch off: no row, no `on_review`,
89
- legacy local merge-back exactly as before.
70
+ Only a real engine failure uses `implementation_failed`. A successful log can therefore coexist
71
+ truthfully with “delivery needs attention”. A fresh no-op never offers Create PR. A continuation
72
+ no-op leaves the existing PR untouched. Partial cards name the included and failed units before
73
+ delivery.
74
+
75
+ Continuation cleanup is ownership-aware: **Dismiss** clears the follow-up card/worktree when its
76
+ final live preflight proves that removal is lossless, but never
77
+ closes the pre-existing PR, deletes its head branch, or returns its tickets from review. A blocked
78
+ dirty follow-up requires an explicit “Discard local result” confirmation, while still preserving
79
+ the external PR/branch. That confirmation terminalizes the workflow result; it does not authorize
80
+ forced byte deletion. New tracked, untracked, or ignored files keep the worktree and its checked-out
81
+ branch mounted with an actionable cleanup warning. If this computer has no authenticated live
82
+ worktree path, the blocked continuation shows ownership-safe **Dismiss** instead of claiming that a
83
+ local result will be discarded; the existing PR/branch/review state remains untouched. Fresh deliveries keep the full PR/ticket discard
84
+ semantics under the same lossless local preflight.
85
+
86
+ When a terminal dashboard action removes the card while recovery data remains, the cleanup warning
87
+ stays visible indefinitely with the retained location and a localized Copy recovery details action.
88
+ Agent Chat keeps the same evidence in terminal history.
89
+
90
+ A dismissed continuation remains a strict historical anchor for the next local-only iteration. With
91
+ no active delivery, the resolver considers only the newest terminal generation that overlaps any
92
+ requested ticket. Reuse requires that row itself to be a discarded continuation for the exact full
93
+ ticket set, with one valid PR/head/base/SHA; GitHub must still report that exact PR `OPEN` at that SHA,
94
+ every available ref must agree, and no prior worktree may remain mounted or unsettled. A newer subset,
95
+ superset, fresh, malformed, merged, completed, or superseded generation shadows older history. Failed
96
+ historical proof blocks Jira/PR heuristics instead of silently selecting a different review. The next
97
+ generation stores the verified baseline SHA and terminal predecessor lineage before worktree
98
+ allocation so a crash is retryable and same-timestamp clients still elect the replacement.
99
+
100
+ Fresh no-change cards offer explicit **Mark done** and **Refine** outcomes. Mark done uses terminal
101
+ `completed` and moves review tickets to Done without claiming a merge; Refine explicitly returns
102
+ them to the backlog. Existing-PR no-change cards only dismiss their borrowed follow-up state.
103
+
104
+ **`merge-local` (remote-less acceptance).** Legal only without a real PR. Both surfaces confirm
105
+ because it changes the user's checkout. Source branches are first assembled away from the user's
106
+ checkout; only a complete conflict-free result may advance a still-clean, still-at-the-original-
107
+ HEAD integration branch. A conflict leaves the user's checkout byte-identical and the delivery
108
+ actionable.
109
+
110
+ ## Launch and recovery wiring (`server/rail-isolated-launch.ts`)
111
+
112
+ - `prMode` is captured once. Admission is rechecked inside the per-repository allocation lock;
113
+ two requests cannot both create a generation or reuse the ticket-keyed worktree.
114
+ - A continuation supersedes its prior generation and creates the new `building` row in one DB
115
+ transaction. Allocation failure closes the new row and restores the prior generation atomically,
116
+ recording the failed replacement id so every client can safely undo its tombstone for that pair.
117
+ - Isolation units remain `per-ticket` or one `all`-scope batch unit. Initial/final SHAs plus commit
118
+ verification distinguish changed, resumed, and no-change results.
119
+ - Per-unit settlement returns structured execution + delivery results. `onLoopRunFinished` receives
120
+ the engine outcome only; commit/status/ref/provenance/push failures cannot rewrite it.
121
+ - Clean, committed worktrees may be released only after a final live preflight proves tracked,
122
+ untracked, and ignored status (apart from durably recorded Specrails overlay paths), plus exact
123
+ worktree HEAD and branch ref. Authenticated overlay roots are atomically renamed to a unique
124
+ persistent same-filesystem quarantine batch and revalidated there; automatic cleanup never unlinks that
125
+ quarantine, so a raced replacement or open-descriptor write remains recoverable. The batch root is
126
+ persisted before the first move and pointers are never evicted while their bytes remain on disk. A recreated
127
+ original path makes final non-force removal fail closed. Each quarantine batch root is persisted and shown
128
+ in a collapsed card section without changing an otherwise successful delivery to
129
+ `cleanup_incomplete`. If a terminal dashboard action creates an archive, a persistent notification
130
+ exposes its exact paths and a Copy paths action before the card is removed. Dirty, unknown,
131
+ ignored-user-data, concurrent-write, or ref-
132
+ mismatched worktrees become retryable `needs-review`; push failure retains the exact SHA.
133
+ - Project admission remains closed while startup reconciliation runs under the repo lock. Every
134
+ stale `building` shape becomes actionable; successful interrupted work is preserved and labelled
135
+ `settlement_interrupted`, while only all-failed runs become `implementation_failed`.
136
+ - Operation leases are process capabilities. Startup clears every prior-process lease before card
137
+ projection, marks the still-active delivery `operation_interrupted`, and leaves its durable SHA,
138
+ PR and unit evidence intact so the user can safely retry.
139
+ - Migrated successful `settlement_interrupted` and `recovery_unavailable` rows with an existing PR
140
+ are re-examined at startup. Startup and the explicit recovery action share one bounded,
141
+ fail-closed scan over refs, reflogs, and unreachable objects; a command/read failure, malformed
142
+ output, excessive combined candidate set, or ambiguous marker can never become false proof of a
143
+ unique result. Every refs/reflogs, unreachable-object, or recorded-branch candidate must carry the unique `(run <id>)` settlement
144
+ marker in its **commit subject**; branch/worktree association or a marker found only in the body
145
+ is never causal proof. The unreachable-object scan runs at most once per serialized reconciliation,
146
+ accepts only a bounded, unambiguous set of commit objects, and fails closed on malformed or excessive
147
+ output. A terminal `released`/legacy `failed` branch tip is only a fallback under
148
+ that same subject rule. One unambiguous run-owned commit becomes `delivery_sha` and a Retry push action
149
+ when absent from the recorded open PR. If GitHub already exposes that exact causal commit, the
150
+ row is classified as delivered without a no-op push. Startup audits earlier legacy recoveries
151
+ that already reached draft/ready too, replacing a frozen old PR-head SHA with the run-owned
152
+ commit when needed. Existing-PR recovery repairs `is_continuation=true` before exposing actions;
153
+ per-unit `branchOwnership=borrowed-pr|preexisting` independently prevents branch deletion without
154
+ incorrectly making every fresh replacement PR a borrowed continuation.
155
+ Before persisting or pushing a recovered orphan, Specrails pins it under a delivery-specific
156
+ `refs/specrails/recovery/*` ref. The ref survives crashes and protects the object from Git garbage
157
+ collection until exact remote delivery is proved or the user explicitly discards the result.
158
+ Discovery still runs when a ledger path exists but is dirty, recreated, or unauthenticated; if a
159
+ distinct worktree result and run-owned orphan coexist, both are preserved and neither is selected,
160
+ bundled, or pushed automatically. Restart preserves a `recover-and-retry` recovery-family status,
161
+ and explicit discard may remove a pre-persistence ref only after its exact run/final ownership is
162
+ re-proven. If the ref was advanced from marker-bearing ancestor A to descendant B before a crash,
163
+ that exact delivery ref selects B rather than letting the global scan manufacture self-ambiguity.
164
+ Successful successor delivery and startup settlement retry clean up exact ancestor refs.
165
+ A later unrelated branch tip is never substituted for the durable final SHA or unique run-marked
166
+ object, and all matching units are updated together. Dirty, missing, mismatched, unmarked or
167
+ ambiguous evidence stays blocked and preserved. Once the exact causal SHA is proven, a transient
168
+ GitHub lookup instead stays retryable and Retry push revalidates before mutation.
169
+ - A blocked legacy card exposes a worktree path only after the path is proved absolute,
170
+ non-symlink, outside the main checkout, uniquely present in this repository's live worktree
171
+ registry, and checked out on the recorded branch/HEAD. Historical or other-device paths are
172
+ removed from the snapshot instead of being presented as available.
173
+ - `GET /rails` is hydration-only and never invokes crash recovery. This avoids misclassifying the
174
+ normal live window between durable loop completion and commit/ref/push settlement.
175
+ - Startup retries pending terminal ticket effects in-process and re-projects active and terminal
176
+ origin-linked rows into Agent Chat before admission opens, repairing cards left stale by a crash
177
+ or migration. Admission remains closed and cards show `cleanup_incomplete` until every JSON/Jira
178
+ phase is durably settled.
179
+ An already-identical card is neither rewritten nor broadcast, so old terminal history does not
180
+ create fake unread activity on every launch.
181
+ - PR mode never invokes legacy merge-back. Kill-switch-off behavior remains the legacy path.
90
182
 
91
183
  ## Per-run worktree overlay (`server/worktree-overlay.ts`)
92
184
 
@@ -107,12 +199,17 @@ entries. Each allocated worktree therefore gets `applyWorktreeOverlay(...)` at l
107
199
  `worktrees/` entry are never linked (nested pipeline worktrees stay local). `.mcp.json`
108
200
  and the instruction file (CLAUDE.md/AGENTS.md/GEMINI.md per provider) are COPIED when
109
201
  the checkout lacks them. Windows: junction → dereferencing-copy fallback.
110
- - **Never on the PR**: every overlay-owned path lands in a worktree-local manifest
111
- (`.sr-rail-overlay.json`, unioned across passes so a RESUMED worktree keeps prior
112
- entries claimed) and is excluded from `commitWorktree`'s stage via `:(exclude)`
113
- pathspecs. Excluded paths are untracked by construction, so no real work can be lost;
114
- a no-op overlay keeps the byte-identical `git add -A`. Worktree removal (`git worktree
115
- remove --force`) deletes the symlinks as entries without following them.
202
+ - **Never on the PR**: every allocator-created overlay path is excluded from staging with a literal
203
+ top-level pathspec. The writable worktree manifest is not cleanup authority; settlement persists
204
+ fingerprints captured from the trusted source/created entries. Cleanup atomically renames each
205
+ authenticated root into a unique sibling quarantine, revalidates it after the move, discloses
206
+ raced content there, and never deletes or restores quarantined paths automatically over a
207
+ possibly recreated source. A modified or
208
+ concurrently extended overlay is preserved as user data, while a no-op
209
+ overlay keeps the byte-identical ordinary staging behavior.
210
+ Successful quarantine batches deliberately remain beside the former worktree; automatic GC is
211
+ out of scope because deleting a path still writable through an open descriptor would reintroduce
212
+ the data-loss race. A future cleanup flow must be explicit and inspectable.
116
213
  - **Degrade, don't abort**: entry-level failures produce `warnings` — surfaced as a
117
214
  server log line plus the project-scoped `rail.overlay_degraded` WS event — and the
118
215
  spawn proceeds (a partial surface beats an aborted rail). `applyWorktreeOverlay` never
@@ -133,29 +230,103 @@ v1 `POST /rails/pr-review`). The route validates and delegates to
133
230
  `server/rail-pr-decision.ts` `executePrDecision` (deps injected — db/git/exec/broadcast/jira/
134
231
  agent-chat — so the whole matrix unit-tests without git/gh/network).
135
232
 
233
+ Before any Git, GitHub, cleanup or ticket effect, the endpoint atomically claims the row's leased
234
+ `operation_token`. A second window loses **before** it can perform an effect. The token is cleared
235
+ before the new snapshot is persisted to the agent card/broadcast; a dead-process lease is bounded
236
+ and reclaimable, and the final CAS verifies that the caller still owns it. Every response also
237
+ contains the authoritative post-action snapshot, so losing a WebSocket frame cannot leave the
238
+ initiating card stale. While startup recovery owns the project, decision and checkout endpoints
239
+ return a specific retry-later conflict. Every decision that can mutate refs/worktrees shares the
240
+ same repository lock as recovery, launch allocation and checkout, revalidates its admission epoch
241
+ after waiting for that lock, and uses bounded Git/GitHub command timeouts so a wedged child cannot
242
+ block the repository forever.
243
+
244
+ Every path that observes an attached PR—continuation admission, Retry push, post-push
245
+ verification, Verify PR/poll, and Reopen—uses the same causal check: recorded PR identity, exact
246
+ head/base, lifecycle, and inclusion of immutable `delivery_sha`. Admission is read-only and accepts
247
+ only exact `OPEN` evidence; otherwise it refuses the launch without superseding the preserved card.
248
+ Immediately before any existing-PR push, including automatic second-iteration settlement, the local
249
+ `origin` must resolve to exactly one push URL identifying the repository that owns the same-repository
250
+ PR. A fork, multiple URLs, ambiguous URL, missing remote, or mismatch preserves the immutable SHA and
251
+ fails retryably without mutation. The push targets that already-verified raw URL, not the mutable
252
+ `origin` alias, closing the verification/use window. URLs with credential-bearing userinfo,
253
+ passwords, query strings, or fragments are rejected before they can enter process arguments or
254
+ persisted diagnostics; Git/`gh` credential helpers remain the authentication channel.
255
+ Exact `MERGED` evidence containing that SHA terminalizes immediately in a Retry/Reopen/Verify
256
+ decision action. A definitively stale/retargeted PR, or a `CLOSED`/`MERGED` PR without that SHA, is
257
+ detached by that action to `on_review` with the SHA and local branch preserved for a new PR.
258
+ Transient observation failure keeps the evidence and fails retryably.
259
+ Initial settlement records exact post-push `CLOSED` as `pr_closed`; exact post-push `MERGED` stays
260
+ attached and ready for Verify so that explicit decision can commit terminal ticket intent atomically.
261
+
136
262
  - **create-pr** — deferred `deliverRailAsPr` (`server/rail-pr-delivery.ts`: 1 unit → its
137
263
  branch; N → assembled onto the conventional batch branch off the integration branch, one PR
138
264
  covering every ticket). The PR **title and canonical body are composed here** (see "Branch
139
265
  naming & PR content" below) from the ticket store + `jira_links` + the branch diffs — all
140
- failure-tolerant. Retry hazard handled first: a prior degraded delivery leaves the batch
141
- branch behind and `deliverRailAsPr` assembles with `worktree add -b`, so the stale batch branch
142
- is defensively `-D`'d (never the integration branch); inside `deliverRailAsPr` the batch name
143
- additionally collide-suffixes `-2`… against the live branch listing. Delivered → `pr_draft`
144
- (+`pr_url`/`pr_number` when `pr-created`; null when degraded); assembly-failed or a thrown
145
- guardrail → `pr_failed` (retryable). Tickets stay `on_review` — a draft PR still awaits the
146
- merge.
266
+ failure-tolerant. Each unit is pushed/merged from its immutable settled `finalSha`, never from a
267
+ later mutable or historical ticket branch. A degraded multi-unit retry reuses its owned assembled
268
+ head, preserving exact head/base PR identity; unrelated name collisions suffix `-2`… and are never
269
+ pre-deleted. Delivered → `pr_draft`
270
+ (+`pr_url`/`pr_number` when `pr-created`; null when degraded). `publishDraftPr` adopts an exact
271
+ existing head/base PR when `gh pr create` returns no URL, says it already exists, or a retry
272
+ follows an ambiguous interruption. Assembly/ref failures are blocked; only safe stages are
273
+ labelled retryable. Tickets stay `on_review`.
147
274
  - **publish** — `gh pr ready <url>` → `pr_ready` (the draft opens for the team's normal review).
148
275
  Requires a real `pr_url`.
149
- - **discard** — best-effort `gh pr close <url> --delete-branch`; remove the launch's worktrees
150
- (ledger rows closed as `failed`); delete every referenced branch (per-unit sources, assembled
151
- head, and the possibly-stale batch branch recomputed from the same ticket data create-pr names
152
- it from — the integration branch is NEVER deleted); → `discarded`; revert
276
+ - **discard** — for a fresh delivery, best-effort `gh pr close <url>` without unleased remote-head
277
+ deletion; remove the launch's worktrees
278
+ (ledger rows closed as `failed`); delete only branches durably recorded as created by this
279
+ delivery only while each live local tip still equals its frozen SHA (owned per-unit sources plus
280
+ its exact assembled head; advanced or remote heads are preserved, preferred names are never
281
+ recomputed, and the integration branch is NEVER deleted); → `discarded`; revert
153
282
  still-`on_review` tickets → `todo` (a manually re-triaged spec is respected) + Jira
154
- `onRailDiscard`.
155
- - **poll-merge** — on-demand `gh pr view <url> --json state,mergedAt`; `MERGED` → `merged` +
156
- tickets → `done` + Jira `onRailMerged` (with a "PR merged: `<url>`" comment); anything else is
157
- an observation-only 200. There is no background poller (loopback server, no webhooks) —
158
- detection is click-driven.
283
+ `onRailDiscard`. Failures are retained in `cleanup_warnings` and disclosed. For a continuation,
284
+ discard can remove only the explicitly confirmed blocked local iteration: it preserves the
285
+ borrowed PR/head and review ticket state. Startup repairs migrated continuation ownership before
286
+ exposing actions, and per-unit `borrowed-pr` evidence independently keeps stale surfaces safe.
287
+ - **dismiss** — continuation acknowledgement. Clears the generation and owned clean
288
+ worktree while preserving the existing PR, head branch and `on_review` tickets.
289
+ - **acknowledge-no-changes** — fresh no-change acceptance → terminal `completed`, tickets Done,
290
+ with no PR/merge claim. Jira receives its own no-PR completion comment. Refine remains the
291
+ explicitly backlog-returning path and always uses Jira `todo`; it never inherits the configured
292
+ discard/cancellation status.
293
+ - **recover-and-retry** — for one exact successful `settlement_interrupted` continuation, confirms
294
+ use of its recorded run/unit and authenticated isolated worktree. Authentication is repeated
295
+ immediately before staging; symlinks, the main checkout, reused directories and unregistered
296
+ paths fail closed. Private/overlay paths are excluded from add and from the final `commit --only`
297
+ pathspec; pre-staged forbidden entries are safely unstaged, hooks are bypassed, and the index is
298
+ re-audited. The candidate must fast-forward the live PR head. GitHub must prove a same-repository
299
+ PR and the local `origin` push URL must identify that exact PR repository before the immutable SHA
300
+ is pushed without force. A merge racing recovery returns verified success rather than a warning.
301
+ The user's main checkout is never switched, staged, stashed, committed, or cleaned by this action.
302
+ If the worktree was already removed, the same action scans refs, reflogs, and unreachable commits
303
+ before declaring the result absent. Baseline equality means “already delivered” only with an exact
304
+ durable final SHA/run marker, and means “no changes” only when every matching unit durably records
305
+ `changed=false` and `initialSha=finalSha=live PR head`. Otherwise the row becomes
306
+ `recovery_unavailable`: the card offers a secondary Recheck action, keeps Inspect/log access and
307
+ explains that Git evidence is local to the computer where the run executed instead of repeating
308
+ an impossible Commit or Checkout action.
309
+ - **poll-merge / Verify PR** — observes state, exact head/base/head OID, merge commit and PR commit
310
+ set. `OPEN` remains delivery-verified only while its exact head is `delivery_sha`; a missing
311
+ remote commit restores Retry push instead of merely saying “not merged”. `MERGED` becomes
312
+ `merged` immediately when immutable evidence contains `delivery_sha`, then tickets → `done` + Jira
313
+ `onRailMerged`. Exact `CLOSED` containing the SHA → `pr_closed`; missing-SHA terminal evidence
314
+ detaches to `on_review`. Successful retry/check responses carry the verified SHA, remote head and
315
+ whether a push actually ran for immediate user feedback.
316
+ - **reopen** — before and after `gh pr reopen`, revalidates exact PR/head/base and inclusion of
317
+ `delivery_sha`; mismatch or missing-SHA evidence detaches to `on_review` instead of retaining or
318
+ reopening the stale attachment. A valid reopen returns to draft or ready according to GitHub;
319
+ an exact merge racing the action terminalizes, while an exact still-closed result reports failure.
320
+ - **merge-local** — builds the complete merge in an isolated temporary checkout and advances the
321
+ user's revalidated clean base only after all branches succeed.
322
+
323
+ Terminal discard/merge/completion inserts `rail_pr_ticket_effects` in the same SQLite transaction
324
+ as its decision and snapshots each ticket's non-null outcome owner. Before crossing into ticket JSON
325
+ the worker durably freezes only IDs still `on_review` whose owner still matches that snapshot, then
326
+ checkpoints the JSON phase and Jira-outbox handoff separately. An old terminal row therefore cannot
327
+ change or enqueue Jira work for a newer iteration. Jira's idempotency keys make a crash after enqueue
328
+ safe to repeat; the effect becomes complete only after that durable handoff. Startup retries every
329
+ unfinished phase, including causally provable migrated terminal rows, before admission opens.
159
330
 
160
331
  `gh` failures return 502 `gh_failed` with **no transition**. Illegal action for the current
161
332
  state → 409 (`stale_decision` + `reason: 'illegal_action'`).
@@ -204,35 +375,69 @@ diff collection), fully unit-tested.
204
375
 
205
376
  ## The sync contract (two surfaces, zero desync)
206
377
 
207
- Neither surface holds authoritative state; both render the last snapshot they received and POST
208
- the same endpoint with the `expectedDecision` they rendered.
378
+ SQLite remains authoritative. Both surfaces render a full snapshot and POST the same endpoint with
379
+ the `expectedDecision` they rendered.
209
380
 
210
381
  - **Durable WS event `rail.pr_state`** (project-scoped, full snapshot — replaces the retired
211
382
  one-shot `rail.pr_delivered`): broadcast at row INSERT (`building`), build-settle, and every
212
383
  decision mutation. **`GET /rails`** returns `prDeliveries: Record<railIndex, snapshot>`
213
384
  (newest non-terminal row per slot) for late-join hydration.
385
+ - **Monotonic generation arbitration.** Dashboard and Agent Chat retain terminal/superseded id
386
+ tombstones, accept a different id only through explicit lineage, strictly later `createdAt`, or
387
+ the exact `A.restoredFromDeliveryId=B` rollback after B terminalizes, and advance the same id only
388
+ through newer `updatedAt` evidence. A delayed A snapshot without that paired proof cannot replace
389
+ B, and a non-terminal replay cannot ordinarily reopen an id already observed terminal.
214
390
  - **Option A — dashboard.** `client/src/context/RailPrDecisionContext.tsx` (registerHandler on
215
391
  the shared socket + `GET /rails` seed) feeds `RailPrDecisionStrip` on `RailRow` (both density
216
392
  branches): on_review → Create PR / Discard; pr_draft → Open PR + Publish / Discard (degraded →
217
- retry); pr_ready → Check merge / Discard; pr_failed → Retry / Discard. Buttons disable in
218
- flight and reconcile to the next broadcast; Discard confirms first.
393
+ retry); pr_ready → Verify PR; no_changes → Done/refine; pr_closed → Reopen; pr_failed derives
394
+ retry-vs-blocked actions from `delivery_outcome`. A blocked legacy continuation without
395
+ `delivery_sha` never offers Checkout: it exposes any live preserved worktree through Inspect local
396
+ result and offers the confirmed Commit & retry push action above. A `recovery_unavailable` row
397
+ replaces that primary action with Check again; a clone without the original worktree/object never
398
+ claims that the implementation failed or that local progress was discarded. Ordinary Checkout is restricted
399
+ to a delivery with an immutable SHA; the server repeats that guard under the repo lock and refuses
400
+ a dirty or unreadable main checkout before releasing a worktree or changing any ref. Checkout
401
+ re-reads and uses only the current attached PR branch and immutable `delivery_sha` after acquiring
402
+ the repository lock, never the pre-lock snapshot. A same-named local/remote branch must equal that
403
+ SHA before switching, and the final branch plus HEAD are verified afterward; divergence is
404
+ preserved and a failed fast-forward can never be reported as success. Logs remain available after settle. Buttons
405
+ disable in flight and apply the authoritative HTTP snapshot immediately.
219
406
  - **Option B — agent chat.** When the row carries `origin_conversation_id`, settle posts a
220
407
  **persisted inline card**: a `'system'`-role `agent_messages` row (role is unconstrained TEXT —
221
408
  no migration; TS unions widened) whose content is the `PrDecisionCardEnvelope` JSON.
222
- `AgentChatManager.postPrDecisionCard` / `updatePrDecisionCard` (update-in-place on every
223
- transition, so cold-load shows terminal states correctly) are reached from rails code via the
409
+ `AgentChatManager.postPrDecisionCard` / `updatePrDecisionCard` (idempotent update-in-place on
410
+ every transition, transactionally consolidating legacy duplicate rows by delivery id) are reached via the
224
411
  process-wide `server/agent-chat-registry.ts` singleton (null-safe: tests/disabled builds).
225
412
  Live updates ride the app-global `agent_pr_decision` WS event; the client renders
226
- `AgentPrDecisionCard` and POSTs the same project-scoped `/rails/pr-decision`.
227
- - **Race:** the second answer arrives with a stale `expectedDecision` → 409; the client shows a
228
- neutral "already resolved" toast and reconciles to the broadcast.
413
+ `AgentPrDecisionCard` and POSTs the same project-scoped `/rails/pr-decision`. Client hydration,
414
+ WS upsert and rendering also dedupe by delivery id, so stale blocked and current ready cards can
415
+ never expose two contradictory Checkout/Discard action sets.
416
+ - **Race / hydration ABA guard:** a stale generation or occupied operation lease returns 409 before effects. Clients
417
+ distinguish `operation_in_progress` from a stale decision, show the active operation, disable
418
+ actions, apply the response snapshot, ignore terminal events for an older delivery id, and
419
+ hydrate again on focus/reconnect. Each dashboard GET captures accepted per-rail mutation versions;
420
+ a live replacement or terminal deletion wins over its stale seed. Only accepted snapshots advance
421
+ that guard, so an ignored terminal for old A cannot make the same GET drop valid B.
422
+ Confirmation dialogs are bound to the exact delivery id/decision that opened them and disappear
423
+ when that generation changes; Checkout carries the same exact id through client and server, and
424
+ a rejected stale action never mutates or produces a success toast for B.
229
425
 
230
426
  ## Relaunch guard
231
427
 
232
- `POST /rails/:i/launch` returns **409 `{ error: 'pr_decision_pending', prDeliveryId }`** when an
233
- active (non-terminal) delivery exists for the slot AND the launch would take the isolated PR
234
- path — a relaunch would append new commits to the undecided branches (worktree creation resumes
235
- existing branches). Legacy / non-isolated launches are unaffected.
428
+ `POST /rails/:i/launch` returns **409 `{ error: 'pr_decision_pending', prDeliveryId }`** for an
429
+ unresolved fresh delivery. An active `pr_draft`/`pr_ready` generation covering the same tickets is
430
+ a continuation contract only after exact `OPEN` identity, head/base, and `delivery_sha` evidence is
431
+ revalidated again under the repo lock, and its allocated worktree/local ref both equal that frozen
432
+ SHA. External PR discovery requires an explicit PR number or authoritative Jira key; the list match
433
+ is only discovery, and an exact authoritative PR view must freeze its live `headRefOid` before local
434
+ allocation. Local ticket numbers, title similarity, and unrelated `Fixes #<id>` text are not
435
+ authority. Any other evidence refuses admission and preserves
436
+ the existing card for Retry push or Verify PR; those decision actions terminalize exact `MERGED`
437
+ evidence or detach stale/missing-SHA terminal evidence to `on_review`. Only a verified continuation
438
+ is superseded atomically and run on that PR head. A stale
439
+ concurrent request receives 409 before it can allocate or claim anything. Legacy / non-isolated
440
+ launches are unaffected.
236
441
 
237
442
  ## Ticket lifecycle — `on_review`
238
443
 
@@ -297,33 +502,30 @@ the launch INSERT. As-built:
297
502
  - `POST /rails/:i/launch` accepts `originConversationId` (validated `/^[A-Za-z0-9-]{1,64}$/`) and
298
503
  `originSurface` (`'dashboard' | 'agent-chat'`), threaded into `launchIsolatedRail`.
299
504
  Dashboard launches default to `origin_surface='dashboard'`, `origin_conversation_id=NULL`.
300
- - **The MCP auto-attach chain (shipped)** — four hops, so an agent-launched rail tags itself
301
- end-to-end with no manager change (`AgentChatManager` already passes `conversationId` into
302
- `prepareAgentMcp`):
303
- 1. `agent-mcp-config.ts` `buildSpecrailsMcpEntry` gained `conversationId` in its opts
304
- (validated against the same launch regex; malformed ⇒ silently omitted) and sets
305
- `SPECRAILS_AGENT_CONVERSATION` in `entry.env` — threaded at both internal call sites
306
- (`prepareAgentMcp` and `buildAgentMcpArgs`), so the claude `--mcp-config` file, the codex
307
- inline `-c mcp_servers.specrails.env.*` overrides and the gemini cwd `.mcp.json` all carry
308
- it automatically. `mergeSpecrailsIntoWorkspaceMcp` (Part A workspace wiring) deliberately
309
- stays conversation-less.
310
- 2. `mcp-bridge` forwards the env as the `x-specrails-agent-conversation` header
311
- (`agentForwardHeaders` in `bridge.ts`, alongside the tier/project forwards). The staged
312
- bundle `src-tauri/binaries/specrails-mcp.js` must be regenerated via
313
- `npm run build:mcp-bridge` whenever the bridge source changes — a stale bundle silently
314
- drops the header (origin degrades to NULL with no error).
315
- 3. `registerTieredTool` (`server/mcp/tools/types.ts`) reads the header into the per-call
316
- `ctx.originConversationId` next to the project pin (same per-call ctx-copy discipline;
317
- malformed ⇒ `null`, never throws — the launch degrades to untagged).
318
- 4. `specrails_rails(launch)` (`server/mcp/tools/rails.ts`) adds
505
+ - **The authenticated MCP auto-attach chain (shipped)** — an agent-launched rail tags itself
506
+ end-to-end without trusting caller-controlled context headers:
507
+ 1. `AgentChatManager` mints an unguessable, turn-scoped capability. The server stores only
508
+ its hash and binds it to the actual conversation, pinned project and permission level.
509
+ 2. `prepareAgentMcp` writes the bearer to an app-owned `0600` capability file. Claude,
510
+ Codex and Gemini MCP configs carry only `SPECRAILS_AGENT_CAPABILITY_FILE`, so the raw
511
+ bearer never appears in command-line arguments. Workspace MCP wiring deliberately carries
512
+ no capability.
513
+ 3. `mcp-bridge` reads that file and forwards the bearer as
514
+ `x-specrails-agent-capability`. Legacy tier/project/conversation env vars and headers are
515
+ ignored. The staged bundle `src-tauri/binaries/specrails-mcp.js` must be regenerated via
516
+ `npm run build:mcp-bridge` whenever the bridge source changes.
517
+ 4. `registerTieredTool` (`server/mcp/tools/types.ts`) verifies the bearer and derives the
518
+ per-call tier, project and `ctx.originConversationId` from its server-side binding. The
519
+ manager revokes the capability and removes its file when the turn settles.
520
+ 5. `specrails_rails(launch)` (`server/mcp/tools/rails.ts`) adds
319
521
  `originConversationId` + `originSurface:'agent-chat'` to the POST body when the ctx
320
522
  carries an id (`apiCall` forwards no custom headers, so the id rides the JSON body).
321
- External MCP clients (Claude Desktop, Cursor, …) spawn the bridge without any
322
- `SPECRAILS_AGENT_*` env → no header → untagged launches, by design. Covered end-to-end by
323
- `server/mcp/tools/rails-origin.test.ts` (header → ctx → body → route → persisted row →
523
+ External MCP clients (Claude Desktop, Cursor, …) have no capability, so launches remain
524
+ untagged and Settings tiers govern them. Covered end-to-end by
525
+ `server/mcp/tools/rails-origin.test.ts` (capability → ctx → body → route → persisted row →
324
526
  settle fires `postPrDecisionCard` for that conversation).
325
527
 
326
- ## Decisions (D1–D11, condensed)
528
+ ## Decisions (D1–D17, condensed)
327
529
 
328
530
  - **D1 — three extra columns** (`branches`, `loop_name`, `worktree_ids`) on migration 36:
329
531
  deferred create-pr/discard must be reconstructible from the row; nothing survives in memory
@@ -336,13 +538,14 @@ the launch INSERT. As-built:
336
538
  receives the spawn-captured flag from QueueManager — see "Ticket lifecycle" above. The opt-in
337
539
  option shape survives unchanged; only its defaults moved from hardcoded `'done'` to
338
540
  flag-derived.
339
- - **D3 — state machine**: 0-succeeded settles auto-close to `discarded`; degraded drafts
340
- (`pr_url` null) have no Publish, only retry/discard; `pr_state` records delivery degradation
341
- independent of `decision`.
342
- - **D4 — create-pr reconstructs deliverRailAsPr inputs from the row** and defensively deletes a
343
- stale batch branch first (retry after a degraded delivery would die on "branch already
344
- exists"); never the integration branch.
345
- - **D5 — relaunch collision** = 409 `pr_decision_pending` only on the isolated PR path.
541
+ - **D3 — orthogonal outcomes**: only loop outcomes determine implementation success; delivery,
542
+ decision and PR lifecycle are independent. Zero actual successes becomes
543
+ `implementation_failed`; successful blocked/no-change runs retain their truth.
544
+ - **D4 — create-pr reconstructs deliverRailAsPr inputs from the row** using each unit's exact
545
+ settled object. It reuses an owned degraded batch head and never deletes a merely name-matching
546
+ branch.
547
+ - **D5 — relaunch admission**: unresolved fresh work returns 409; a matching open-PR generation
548
+ is superseded atomically and continued on its exact verified head.
346
549
  - **D6 — `rail.pr_delivered` retired**, replaced by the durable `rail.pr_state` + the
347
550
  `GET /rails` `prDeliveries` hydration; `Map<railIndex, …>` on the client keyed to the newest
348
551
  active row.
@@ -356,9 +559,47 @@ the launch INSERT. As-built:
356
559
  inbound preservation and the three outbox hooks.
357
560
  - **D10 — on_review everywhere**: server union + every client `Record<TicketStatus, …>` map,
358
561
  board bucketing (ToDo tab), drag/launch guards, context-menu out-only, pill, i18n ×8.
359
- - **D11 — premium decision UI**: disable-on-click reconciled to the broadcast, tooltips (base
360
- branch, PR url), designed degraded/failed states, 409 → neutral "already resolved" toast;
562
+ - **D11 — premium decision UI**: disable-on-click reconciled to authoritative snapshots, tooltips
563
+ (base branch, PR url), designed degraded/failed states, distinct stale-vs-operation-busy 409 UX;
361
564
  English source strings, all 8 locales, locale-parity green.
565
+ - **D12 — no automatic data loss**: live tracked/untracked/ignored state, HEAD, and branch ref are
566
+ revalidated before non-force automatic release; overlay roots are atomically moved into persistent
567
+ quarantine rather than unlinked; dirty, concurrent, unknown, user-ignored, ref-
568
+ mismatched, or advanced worktrees/branches are preserved.
569
+ - **D13 — one active generation**: migration 48 supersedes historical duplicates and a partial
570
+ unique index enforces one active row per rail; snapshot consumers enforce lineage with
571
+ `createdAt`, same-id order with `updatedAt`, terminal/superseded tombstones, exact-generation
572
+ confirmations, an accepted-mutation ABA guard, and one exact failed-replacement rollback proof.
573
+ - **D14 — operation lease before effects**: a decision claims before Git/GitHub/ticket work;
574
+ the loser has no external side effects and HTTP returns the authoritative snapshot.
575
+ - **D15 — exact/idempotent delivery**: continuation retry pushes `delivery_sha`; admission,
576
+ retry/post-push, poll and reopen all validate exact PR/head/base plus SHA inclusion. Admission is
577
+ read-only and refuses non-exact continuations; inferred external PRs freeze the authoritative live
578
+ head before worktree allocation, post-run verification permits only a matched HEAD/ref advance,
579
+ and pre-push settlement freezes the new exact SHA and proves `origin` owns the attached PR before
580
+ every automatic or user-triggered push. Decision actions terminalize exact MERGED evidence
581
+ or detach stale/retargeted/terminal-without-SHA attachments to `on_review` with the SHA preserved.
582
+ Legacy recovery accepts only a unique run marker in the commit
583
+ subject. Ambiguous PR creation resolves exact open head/base identity.
584
+ - **D16 — crash recovery before admission**: startup preserves successful interrupted work and
585
+ makes every stale `building` generation actionable before another launch can reuse its path.
586
+ - **D17 — ownership-aware continuation cleanup**: dismiss/discard never closes or deletes the
587
+ pre-existing PR/head and never reverts its review tickets.
588
+ - **D18 — terminal ticket outbox**: terminal decision + ticket intent commit atomically; startup
589
+ replay closes the SQLite/JSON crash window, exact causal ownership prevents old generations from
590
+ mutating newer work, and terminal Agent cards are re-projected.
591
+ - **D19 — truthful no-change completion**: fresh no-change has Mark done (`completed`) and Refine;
592
+ a continuation only dismisses its borrowed follow-up.
593
+ - **D20 — preserved-result recovery**: startup also recovers one uniquely run-marked unreachable
594
+ commit; otherwise both cards hide misleading Checkout, reveal live delivery-owned worktrees, and
595
+ offer a lease-guarded Commit & retry push that is exact-baseline, fast-forward, immutable-SHA and
596
+ non-force while leaving the user's main checkout untouched. Recovery worktrees, commit index
597
+ pathspecs, same-repository PR ownership, origin identity, and checkout cleanliness all fail closed.
598
+ - **D21 — orphan protection and truthful device-local fallback**: startup and manual Recheck share
599
+ one bounded refs/reflogs/unreachable scan; an exact orphan is pinned under an internal recovery ref
600
+ before durable/network mutation. No evidence, ambiguous evidence, or a later unrelated branch tip
601
+ stays non-destructive and renders localized other-computer guidance instead of looping Commit or
602
+ Checkout.
362
603
 
363
604
  ## Kill-switch
364
605