@askexenow/exe-os 0.9.414 → 0.9.416

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 (427) hide show
  1. package/deploy/compose/.env.customer.example +1 -1
  2. package/deploy/compose/.env.default +1 -1
  3. package/deploy/compose/.env.example +1 -1
  4. package/deploy/compose/docker-compose.yml +1 -1
  5. package/deploy/stack-manifests/v0.9.json +399 -2
  6. package/dist/.dist-verified.json +3 -3
  7. package/dist/{active-agent-3YCLS7GB.js → active-agent-JWICRWAA.js} +7 -6
  8. package/dist/{active-agent-MHWQDMML.js → active-agent-RPMMKZIG.js} +7 -6
  9. package/dist/{agent-defs-generator-DNXMO34I.js → agent-defs-generator-2Y5YFAS2.js} +6 -5
  10. package/dist/{agentic-ontology-RA6CMND6.js → agentic-ontology-C7G2MB5M.js} +1 -1
  11. package/dist/{artifact-backup-EETHNFFP.js → artifact-backup-EQVE4ROK.js} +3 -3
  12. package/dist/{backfill-metadata-WYT257VG.js → backfill-metadata-RC2WERVZ.js} +9 -8
  13. package/dist/{backup-verify-AG54CYGR.js → backup-verify-LPCD7ETV.js} +3 -2
  14. package/dist/{behavior-injection-G7GAUHGO.js → behavior-injection-LXWODFAO.js} +12 -11
  15. package/dist/{behavior-promotion-I2DIUFUR.js → behavior-promotion-2NNDBZE7.js} +11 -10
  16. package/dist/{behaviors-SKVKPCRW.js → behaviors-Q7SJG54Y.js} +10 -9
  17. package/dist/bin/agentic-ontology-backfill.js +10 -9
  18. package/dist/bin/agentic-reflection-backfill.js +11 -10
  19. package/dist/bin/agentic-semantic-label.js +10 -9
  20. package/dist/bin/backfill-conversations.js +9 -8
  21. package/dist/bin/backfill-responses.js +9 -8
  22. package/dist/bin/backfill-vectors.js +9 -8
  23. package/dist/bin/bulk-sync-postgres.js +18 -17
  24. package/dist/bin/cc-doctor.js +11 -10
  25. package/dist/bin/cleanup-stale-review-tasks.js +18 -17
  26. package/dist/bin/cli.js +60 -36
  27. package/dist/bin/deferred-daemon-restart.js +106 -105
  28. package/dist/bin/exe-actions.js +1 -1
  29. package/dist/bin/exe-agent-config.js +5 -4
  30. package/dist/bin/exe-agent.js +17 -16
  31. package/dist/bin/exe-assign.js +10 -9
  32. package/dist/bin/exe-boot.js +39 -38
  33. package/dist/bin/exe-call.js +10 -9
  34. package/dist/bin/exe-cloud.js +19 -18
  35. package/dist/bin/exe-config-dump.js +5 -4
  36. package/dist/bin/exe-dispatch.js +19 -18
  37. package/dist/bin/exe-doctor.js +9 -8
  38. package/dist/bin/exe-export-behaviors.js +14 -13
  39. package/dist/bin/exe-forget.js +12 -11
  40. package/dist/bin/exe-gateway.js +11 -10
  41. package/dist/bin/exe-grant.js +6 -6
  42. package/dist/bin/exe-healthcheck.js +11 -10
  43. package/dist/bin/exe-heartbeat.js +24 -23
  44. package/dist/bin/exe-kill.js +23 -22
  45. package/dist/bin/exe-launch-agent.js +66 -33
  46. package/dist/bin/exe-mcp.js +8 -7
  47. package/dist/bin/exe-memory-reads.js +9 -8
  48. package/dist/bin/exe-new-employee.js +14 -13
  49. package/dist/bin/exe-os-mcp-proxy.js +8 -7
  50. package/dist/bin/exe-pending-messages.js +19 -18
  51. package/dist/bin/exe-pending-notifications.js +18 -17
  52. package/dist/bin/exe-pending-reviews.js +19 -18
  53. package/dist/bin/exe-rename.js +9 -8
  54. package/dist/bin/exe-review.js +22 -21
  55. package/dist/bin/exe-search.js +11 -10
  56. package/dist/bin/exe-session-cleanup.js +23 -22
  57. package/dist/bin/exe-settings.js +18 -17
  58. package/dist/bin/exe-start-codex.js +21 -20
  59. package/dist/bin/exe-start-opencode.js +19 -18
  60. package/dist/bin/exe-start.sh +10 -1
  61. package/dist/bin/exe-status.js +20 -19
  62. package/dist/bin/exe-support.js +3 -3
  63. package/dist/bin/exe-team.js +7 -6
  64. package/dist/bin/exe-telemetry.js +88 -0
  65. package/dist/bin/exe-watchdog.js +62 -23
  66. package/dist/bin/git-sweep.js +20 -19
  67. package/dist/bin/graph-backfill.js +10 -9
  68. package/dist/bin/graph-export.js +10 -9
  69. package/dist/bin/hooks-cli.js +1 -1
  70. package/dist/bin/import-history.js +14 -13
  71. package/dist/bin/install.js +109 -108
  72. package/dist/bin/intercom-check.js +5 -5
  73. package/dist/bin/mcp-sessions.js +2 -2
  74. package/dist/bin/orchestration-metrics.js +7 -6
  75. package/dist/bin/postgres-agentic-reflection-backfill.js +2 -2
  76. package/dist/bin/postgres-agentic-semantic-backfill.js +1 -1
  77. package/dist/bin/reconcile-backlog.js +2 -2
  78. package/dist/bin/registry-proxy.js +1 -1
  79. package/dist/bin/repair-document-chunks.js +9 -8
  80. package/dist/bin/scan-tasks.js +19 -18
  81. package/dist/bin/setup.js +4 -3
  82. package/dist/bin/shard-migrate.js +10 -9
  83. package/dist/bin/stack-update.js +4 -4
  84. package/dist/bin/vps-health-gate.js +1 -1
  85. package/dist/{boot-generation-RPJVFAQJ.js → boot-generation-TT4BOFXY.js} +6 -5
  86. package/dist/{boot-review-sections-FOPPZTJI.js → boot-review-sections-SSWOKMOO.js} +17 -16
  87. package/dist/{bug-landed-reconciler-FN5KPBRK.js → bug-landed-reconciler-NEL6KXHE.js} +8 -7
  88. package/dist/build-info.json +3 -3
  89. package/dist/build-manifest.json +1167 -1142
  90. package/dist/{capability-cards-YQWBEG7A.js → capability-cards-MKCOJ5S6.js} +5 -4
  91. package/dist/{capacity-monitor-7SMEJHYG.js → capacity-monitor-5KMDVKVR.js} +19 -18
  92. package/dist/{catchup-brief-IBQ26LEB.js → catchup-brief-POOPRVFD.js} +24 -23
  93. package/dist/{chunk-FPF2PJFK.js → chunk-2NGXGHPI.js} +3 -3
  94. package/dist/{chunk-O3BLL6MY.js → chunk-2WUBVHON.js} +1 -1
  95. package/dist/{chunk-GL5ZG72X.js → chunk-34GBZEGQ.js} +2 -2
  96. package/dist/{chunk-XC5OASHV.js → chunk-3IHWQZYF.js} +1 -1
  97. package/dist/{chunk-HDV2V25K.js → chunk-3NMNSVTE.js} +1 -1
  98. package/dist/{chunk-W4H2MZAS.js → chunk-3W6D3XED.js} +1 -1
  99. package/dist/{chunk-A5I2GYVQ.js → chunk-43J5Z6IO.js} +3 -3
  100. package/dist/{chunk-CRW63CDI.js → chunk-45JIJNHH.js} +1 -1
  101. package/dist/{chunk-SINIRUYZ.js → chunk-4LCZYKVK.js} +122 -40
  102. package/dist/{chunk-TS4LSNRI.js → chunk-4W7PBI5U.js} +1 -1
  103. package/dist/{chunk-X4FHT6ST.js → chunk-552CGKS7.js} +9 -9
  104. package/dist/{chunk-FSXMKIDO.js → chunk-56T2OSOE.js} +1 -1
  105. package/dist/{chunk-VAHQOIQY.js → chunk-62KEZOFN.js} +1 -1
  106. package/dist/{chunk-2BOLFLAU.js → chunk-6A74345E.js} +2 -2
  107. package/dist/{chunk-XEAZJXMZ.js → chunk-6CJYOPQW.js} +2 -2
  108. package/dist/{chunk-3N24FV22.js → chunk-6ZBOARHX.js} +1 -1
  109. package/dist/{chunk-6L4VIYLZ.js → chunk-7MCEYNWK.js} +15 -1
  110. package/dist/{chunk-4J77TCTX.js → chunk-7TWRCBEN.js} +1 -1
  111. package/dist/{chunk-L5JFVK5T.js → chunk-7VQ2OCZG.js} +68 -11
  112. package/dist/{chunk-VS7V5HNO.js → chunk-AH7TTPES.js} +1 -1
  113. package/dist/{chunk-XQ7BIVLI.js → chunk-AJTNEIFI.js} +9 -9
  114. package/dist/{chunk-7YX73K2R.js → chunk-ALA7WYZZ.js} +6 -1
  115. package/dist/{chunk-K2HIXAIF.js → chunk-ALTBD27V.js} +14 -14
  116. package/dist/{chunk-IHAXXDBH.js → chunk-AROCCYCK.js} +3 -3
  117. package/dist/{chunk-ZJQ56DZZ.js → chunk-B3W5R5OE.js} +18 -0
  118. package/dist/{chunk-5DLZJ3MY.js → chunk-B4YW6GSE.js} +1 -1
  119. package/dist/{chunk-FUDXITKX.js → chunk-BKCQR55G.js} +1 -1
  120. package/dist/{chunk-CWHTUNJX.js → chunk-BXLNHKVK.js} +2 -2
  121. package/dist/{chunk-7SHU5MOD.js → chunk-C5FURQRA.js} +1 -1
  122. package/dist/{chunk-RMC2A6EE.js → chunk-CBNU7ZIP.js} +1 -1
  123. package/dist/chunk-CCFWKW2D.js +92 -0
  124. package/dist/{chunk-NCNT2C2P.js → chunk-COJHDMQ4.js} +2 -2
  125. package/dist/{chunk-N7POJZJT.js → chunk-CRRZAIBC.js} +13 -13
  126. package/dist/{telemetry-upload-6DR6AL3V.js → chunk-D3IKDHK6.js} +53 -28
  127. package/dist/{chunk-Z3LGAFMG.js → chunk-DJCUZ65C.js} +1 -1
  128. package/dist/{chunk-JW5NUXPN.js → chunk-DQSLSKF7.js} +14 -14
  129. package/dist/{chunk-VBYSAQJD.js → chunk-E3NN4TGB.js} +1 -1
  130. package/dist/{chunk-DWRULKB3.js → chunk-EKZ5MGJK.js} +2 -2
  131. package/dist/{chunk-CFFSHBQF.js → chunk-EWKNMFS6.js} +1 -1
  132. package/dist/{chunk-ZJ6AMC4Y.js → chunk-FRNG2SFK.js} +7 -7
  133. package/dist/{chunk-HTFM7ZDD.js → chunk-G6E4NA6V.js} +2 -2
  134. package/dist/{chunk-5BWDUUMH.js → chunk-GRA3UHGQ.js} +3 -3
  135. package/dist/{chunk-KN5GAVCG.js → chunk-GYRAI7PP.js} +2 -2
  136. package/dist/{chunk-GM4UEZDE.js → chunk-H372DQD2.js} +43 -30
  137. package/dist/{chunk-ZZR2WRNW.js → chunk-HETFNI2L.js} +4 -4
  138. package/dist/{chunk-RIKFXHLE.js → chunk-HJLYDWEM.js} +1 -1
  139. package/dist/{chunk-LLZUL7M2.js → chunk-HPB5Y6FZ.js} +4 -2
  140. package/dist/{chunk-EOWJXCYC.js → chunk-HPCCYWDP.js} +1 -1
  141. package/dist/{chunk-3DXAJVXE.js → chunk-HPUTFKC6.js} +6 -6
  142. package/dist/{chunk-KEDZRQI3.js → chunk-HVTLHDGA.js} +2 -2
  143. package/dist/{chunk-Q6KUBP6R.js → chunk-I2T3ZOFM.js} +5 -5
  144. package/dist/{chunk-2EYVXUGA.js → chunk-IH6YW55P.js} +4 -4
  145. package/dist/{chunk-7KPZQ65I.js → chunk-IJRHWGOI.js} +3 -3
  146. package/dist/{chunk-2YFMBXUU.js → chunk-IT4AGRFX.js} +4 -4
  147. package/dist/{chunk-JTJP4JK7.js → chunk-IXWH4TKR.js} +3 -3
  148. package/dist/{chunk-GZVFHFO3.js → chunk-IZYGY3ZV.js} +10 -10
  149. package/dist/{chunk-GATAYYAF.js → chunk-J43YFUSQ.js} +3 -3
  150. package/dist/{chunk-IPUDXR67.js → chunk-JB5CIPO4.js} +12 -3
  151. package/dist/{chunk-6PXFF6IV.js → chunk-JF36BVSK.js} +1 -1
  152. package/dist/{chunk-SO7KTH3Q.js → chunk-JJYL2K7E.js} +1 -1
  153. package/dist/{chunk-353XF4LU.js → chunk-JTANX2NA.js} +2 -2
  154. package/dist/{chunk-QOFQY7BJ.js → chunk-JVFXB46L.js} +1 -1
  155. package/dist/{chunk-QV26G2BF.js → chunk-JYTB2RS4.js} +1 -1
  156. package/dist/{chunk-T3AM52YT.js → chunk-KDAUJDHM.js} +4 -4
  157. package/dist/{chunk-OHHZNNUD.js → chunk-KKABI3X6.js} +1 -1
  158. package/dist/{chunk-5ZMNFSHV.js → chunk-KPWQQVKA.js} +1 -1
  159. package/dist/{chunk-GHYHNHDL.js → chunk-KRGHRFGA.js} +1 -1
  160. package/dist/{chunk-BIPTWAEO.js → chunk-KXGAS45V.js} +1 -1
  161. package/dist/{chunk-PTF5TB6O.js → chunk-LHMBUQX2.js} +9 -9
  162. package/dist/chunk-LP5USONU.js +125 -0
  163. package/dist/{chunk-CJ6CS2IH.js → chunk-LXDNPWX7.js} +5 -5
  164. package/dist/{chunk-HA6BIZ6L.js → chunk-M46ZFCQT.js} +8 -8
  165. package/dist/{chunk-BE3UETW6.js → chunk-M4AS43GS.js} +3 -3
  166. package/dist/{chunk-M6SUJLNP.js → chunk-MHUPOTUV.js} +2 -2
  167. package/dist/{chunk-X2ZHCNNB.js → chunk-MIXW35ES.js} +5 -5
  168. package/dist/{chunk-PDQGR5LZ.js → chunk-MJOWO352.js} +1 -1
  169. package/dist/{chunk-JNULO6I5.js → chunk-MQEV5FL6.js} +3 -3
  170. package/dist/{chunk-VQQPYI4X.js → chunk-NAWW4EKM.js} +2 -2
  171. package/dist/{chunk-JGBYZTWH.js → chunk-NFTTBVL2.js} +1 -1
  172. package/dist/{chunk-W7VKGB42.js → chunk-NM4MWWA4.js} +1 -1
  173. package/dist/{chunk-657I6PUF.js → chunk-NSVBDUZK.js} +3 -3
  174. package/dist/{chunk-D6NZNUVH.js → chunk-NTKZ47FA.js} +1 -1
  175. package/dist/{chunk-6777GNWI.js → chunk-OFC5SIIT.js} +19 -8
  176. package/dist/{chunk-7PDZBPGW.js → chunk-OGWQMQOM.js} +1 -1
  177. package/dist/{chunk-LBSCOP25.js → chunk-OI4DPXBK.js} +1 -1
  178. package/dist/{chunk-RHHEYC6H.js → chunk-OVEID5F6.js} +3 -3
  179. package/dist/{chunk-HUHR5CKJ.js → chunk-OZ6E4FKM.js} +4 -4
  180. package/dist/{chunk-6HJF7IA3.js → chunk-PGVFGFK7.js} +227 -198
  181. package/dist/{chunk-RHJOTGEU.js → chunk-PKEZ3JG4.js} +1 -1
  182. package/dist/{chunk-MZNLQC6W.js → chunk-PWJLLXGK.js} +1 -1
  183. package/dist/{chunk-7HLAYQRG.js → chunk-PY2E5ZL6.js} +5 -5
  184. package/dist/{chunk-DHLJZDWI.js → chunk-QEJ2ZX2O.js} +6 -6
  185. package/dist/{chunk-IC2AONBH.js → chunk-QXKE7T3L.js} +9 -9
  186. package/dist/chunk-R3ZU4F7M.js +359 -0
  187. package/dist/{chunk-QSW5DHMZ.js → chunk-R6Q3MB2F.js} +1 -1
  188. package/dist/{chunk-47YGEM4N.js → chunk-RZUXD47X.js} +1 -1
  189. package/dist/{chunk-A75TAU2I.js → chunk-SL3T3LY3.js} +141 -17
  190. package/dist/{chunk-W3ABSZ6G.js → chunk-SW26QLZQ.js} +2 -2
  191. package/dist/{chunk-FYV2CTKP.js → chunk-TPYGTRYK.js} +1 -1
  192. package/dist/{chunk-BLTXAUP6.js → chunk-TXWIBXPR.js} +2 -2
  193. package/dist/{chunk-JAIZCE6W.js → chunk-U6BHVMOM.js} +3 -3
  194. package/dist/{chunk-O6KQAJCC.js → chunk-U74M7XSZ.js} +3 -3
  195. package/dist/{chunk-J6U4ZR77.js → chunk-UFZIURF6.js} +2 -2
  196. package/dist/{chunk-TCBWHLKH.js → chunk-UO5U5AOS.js} +9 -9
  197. package/dist/{chunk-XDOCXKHW.js → chunk-UXBGEKL6.js} +1 -1
  198. package/dist/{chunk-TVWYMOZ4.js → chunk-V3RGMCCP.js} +15 -4
  199. package/dist/{chunk-27NG2NTG.js → chunk-V3Y45JIY.js} +2 -2
  200. package/dist/{chunk-RYMXD2NT.js → chunk-W375ZRNM.js} +1 -1
  201. package/dist/{chunk-6DMURUBY.js → chunk-WTNIAVVK.js} +4 -4
  202. package/dist/{chunk-2YGBJHC2.js → chunk-WZNW66XJ.js} +3 -3
  203. package/dist/{chunk-6BD6JYR2.js → chunk-XDLC3NRR.js} +3 -3
  204. package/dist/{chunk-FS7XF7SE.js → chunk-XHJO7XFR.js} +1 -1
  205. package/dist/{chunk-LQGLGSBY.js → chunk-XJVKDVQN.js} +2 -2
  206. package/dist/{chunk-JJZZXEAN.js → chunk-XKTCQTDP.js} +2 -2
  207. package/dist/{chunk-RYYFFCJG.js → chunk-XL7OO7MD.js} +1 -1
  208. package/dist/{chunk-RJIH7JXM.js → chunk-XUX3EJ3U.js} +4 -4
  209. package/dist/{chunk-3GGMHSY2.js → chunk-XWDI6NVG.js} +3 -3
  210. package/dist/{chunk-6J2J3VJS.js → chunk-XZRCLK2N.js} +10 -10
  211. package/dist/{chunk-SXUABANK.js → chunk-Y5GPRRW2.js} +3 -3
  212. package/dist/{chunk-CYUUNIEL.js → chunk-Y6LOT7GS.js} +1 -1
  213. package/dist/{chunk-PYXXL7N7.js → chunk-YQT3JC27.js} +1 -1
  214. package/dist/{chunk-QJWLQXR7.js → chunk-YX7QSOBB.js} +1 -1
  215. package/dist/{chunk-M6AX64J2.js → chunk-Z7T7JMBU.js} +20 -8
  216. package/dist/{chunk-BG6RAOCJ.js → chunk-ZDPOCUBX.js} +3 -3
  217. package/dist/{chunk-HDQAVAV6.js → chunk-ZHT3SXBU.js} +2 -2
  218. package/dist/{chunk-EWDBWOCX.js → chunk-ZQSQJ53P.js} +1 -1
  219. package/dist/{chunk-LSHUX7P4.js → chunk-ZUE3ADBF.js} +16 -16
  220. package/dist/{cleanup-graph-garbage-SYGPMPUM.js → cleanup-graph-garbage-X4XP3E5O.js} +10 -9
  221. package/dist/{cli-shutdown-JI7CASE4.js → cli-shutdown-E2YG5CSE.js} +1 -1
  222. package/dist/{cloud-sync-command-ZV3P5FP6.js → cloud-sync-command-AKTDHKCI.js} +2 -2
  223. package/dist/{cloud-sync-db-init-RQIHWKV4.js → cloud-sync-db-init-U6IL6YAP.js} +1 -1
  224. package/dist/{cloud-sync-shutdown-V2N7VLD3.js → cloud-sync-shutdown-BCIU6U3A.js} +5 -4
  225. package/dist/{co-activation-SRE6DIRX.js → co-activation-HIOU7VAV.js} +5 -4
  226. package/dist/{co-occurrence-F5TMSEQZ.js → co-occurrence-GW6Z6WAJ.js} +8 -7
  227. package/dist/{consent-passphrase-MWZRHJRC.js → consent-passphrase-EARJEBUA.js} +2 -2
  228. package/dist/{conversation-entity-extractor-XMOUHGMT.js → conversation-entity-extractor-VPOH26FG.js} +3 -3
  229. package/dist/{conversations-retention-XTBFJBUM.js → conversations-retention-HFM2K6ND.js} +33 -12
  230. package/dist/{crdt-sync-FXEKABM7.js → crdt-sync-5ASUMUPX.js} +4 -4
  231. package/dist/{crm-webhook-D6IJOPRQ.js → crm-webhook-7PYD36EA.js} +2 -2
  232. package/dist/{cto-delegation-gate-BU3JRCYN.js → cto-delegation-gate-5RABUXBR.js} +18 -17
  233. package/dist/{daemon-orchestration-K4NKFYXO.js → daemon-orchestration-2SROQ2N4.js} +24 -23
  234. package/dist/{doc-graph-extractor-TVK2NGAR.js → doc-graph-extractor-XWLDPVO4.js} +8 -7
  235. package/dist/{documents-MDZ4VB5X.js → documents-SKJ6XYMW.js} +10 -9
  236. package/dist/{dreaming-L24PSS35.js → dreaming-7DTEPB4M.js} +22 -21
  237. package/dist/{employee-boot-brief-GQVL3FQC.js → employee-boot-brief-VJD3F4OB.js} +26 -25
  238. package/dist/{entity-boost-OMFA5QCG.js → entity-boost-4M7BE7C7.js} +1 -1
  239. package/dist/{exe-drift-JDDG3OPT.js → exe-drift-7A3GZEUE.js} +6 -5
  240. package/dist/{exe-export-EEGIE3JP.js → exe-export-3JVH5YIV.js} +11 -10
  241. package/dist/{exe-import-UJNC5Q2L.js → exe-import-DQ6UEYHN.js} +11 -10
  242. package/dist/{exe-key-TYEY4W4E.js → exe-key-G5V3HUTJ.js} +106 -105
  243. package/dist/{exe-org-B3ICTTEV.js → exe-org-NG3ZYJXK.js} +40 -40
  244. package/dist/{exe-snapshot-VBFBONYN.js → exe-snapshot-IKYR55CZ.js} +25 -24
  245. package/dist/{fast-db-init-TFRTK6EH.js → fast-db-init-QYF42NZP.js} +1 -1
  246. package/dist/{founder-context-3X4QUWKD.js → founder-context-XJ6O43OF.js} +2 -2
  247. package/dist/{founder-monitor-envelope-54UNZNY4.js → founder-monitor-envelope-XT6U5L6M.js} +4 -4
  248. package/dist/gateway/index.js +19 -18
  249. package/dist/{gateway-client-OUDO5GGV.js → gateway-client-ARBQBLRK.js} +1 -1
  250. package/dist/{git-staleness-73YZ5PGU.js → git-staleness-2C2XYDLJ.js} +5 -4
  251. package/dist/{global-procedures-PYNE2BQG.js → global-procedures-DI4KFCVA.js} +7 -6
  252. package/dist/{graph-auto-extract-PGUMEEQB.js → graph-auto-extract-F6OKIHQQ.js} +8 -7
  253. package/dist/{graph-query-7YA3YNKL.js → graph-query-IY7QR2UR.js} +1 -1
  254. package/dist/{graph-rag-UWOTK4AQ.js → graph-rag-HB5X6YAF.js} +3 -3
  255. package/dist/{hook-integrity-6MNEPT6W.js → hook-integrity-T3DIELFF.js} +1 -1
  256. package/dist/{hook-prefetch-JOF6YZSR.js → hook-prefetch-SNDJ2G7Q.js} +18 -17
  257. package/dist/{hook-tamper-log-HTWEP37U.js → hook-tamper-log-SWQVRDDV.js} +6 -1
  258. package/dist/hooks/bug-report-worker.js +22 -21
  259. package/dist/hooks/codex-stop-task-finalizer.js +24 -23
  260. package/dist/hooks/commit-complete.js +21 -20
  261. package/dist/hooks/error-recall.js +14 -13
  262. package/dist/hooks/exe-heartbeat-hook.js +8 -7
  263. package/dist/hooks/ingest-worker.js +20 -19
  264. package/dist/hooks/ingest.js +16 -15
  265. package/dist/hooks/instructions-loaded.js +10 -9
  266. package/dist/hooks/manifest.json +20 -20
  267. package/dist/hooks/notification.js +9 -8
  268. package/dist/hooks/post-compact.js +8 -7
  269. package/dist/hooks/post-tool-combined.js +13 -13
  270. package/dist/hooks/pre-compact.js +22 -21
  271. package/dist/hooks/pre-tool-use.js +2 -2
  272. package/dist/hooks/prompt-submit.js +40 -39
  273. package/dist/hooks/session-end.js +27 -26
  274. package/dist/hooks/session-start.js +18 -18
  275. package/dist/hooks/stop.js +25 -24
  276. package/dist/hooks/subagent-stop.js +25 -24
  277. package/dist/hooks/summary-worker.js +25 -24
  278. package/dist/index.js +32 -31
  279. package/dist/{installer-7TN36Z7T.js → installer-7QUGM3RZ.js} +9 -8
  280. package/dist/{installer-356RMQ2K.js → installer-CCINS5Z7.js} +9 -8
  281. package/dist/{installer-34XZ7JMW.js → installer-Z7ZF2UZL.js} +9 -8
  282. package/dist/{intercom-queue-ZJ3MNULM.js → intercom-queue-A24ARSCV.js} +17 -16
  283. package/dist/lib/backup-verify-worker.js +3 -2
  284. package/dist/lib/cloud-sync.js +18 -17
  285. package/dist/lib/consolidation.js +11 -10
  286. package/dist/lib/crypto.js +3 -3
  287. package/dist/lib/database.js +9 -4
  288. package/dist/lib/db-backup.js +12 -1
  289. package/dist/lib/db-checkpoint-worker.js +25 -0
  290. package/dist/lib/db-read-worker-client.js +155 -26
  291. package/dist/lib/db-write-worker-client.js +5 -1
  292. package/dist/lib/db-write-worker.js +9 -8
  293. package/dist/lib/db.js +9 -4
  294. package/dist/lib/device-registry.js +1 -1
  295. package/dist/lib/employee-templates.js +8 -7
  296. package/dist/lib/employees.js +5 -4
  297. package/dist/lib/exe-daemon.js +162 -111
  298. package/dist/lib/file-grep.js +14 -1
  299. package/dist/lib/hybrid-search.js +11 -10
  300. package/dist/lib/identity.js +5 -4
  301. package/dist/lib/keychain.js +1 -1
  302. package/dist/lib/license.js +2 -2
  303. package/dist/lib/messaging.js +18 -17
  304. package/dist/lib/post-tool-memory.js +18 -17
  305. package/dist/lib/registry-proxy.js +1 -1
  306. package/dist/lib/reminders.js +6 -5
  307. package/dist/lib/schedules.js +10 -9
  308. package/dist/lib/session-registry.js +7 -6
  309. package/dist/lib/session-wrappers.js +1 -1
  310. package/dist/lib/skill-learning.js +11 -10
  311. package/dist/lib/store.js +9 -8
  312. package/dist/lib/task-router.js +6 -5
  313. package/dist/lib/tasks.js +19 -18
  314. package/dist/lib/telemetry-consent.js +29 -0
  315. package/dist/lib/tmux-routing.js +17 -16
  316. package/dist/lib/tmux-status.js +5 -1
  317. package/dist/lib/token-spend.js +6 -5
  318. package/dist/lib/ws-client.js +1 -1
  319. package/dist/{license-gate-4BXUTHLB.js → license-gate-KGSD5NV5.js} +3 -3
  320. package/dist/{license-recheck-QFPUKISQ.js → license-recheck-M674BGZZ.js} +1 -1
  321. package/dist/{license-sync-FDEDT4AC.js → license-sync-LV53TSOT.js} +2 -2
  322. package/dist/{maintenance-worker-OY2E4BM5.js → maintenance-worker-R5N3A2KM.js} +3 -3
  323. package/dist/mcp/register-tools.js +105 -104
  324. package/dist/mcp/server.js +107 -106
  325. package/dist/mcp/tools/complete-reminder.js +7 -6
  326. package/dist/mcp/tools/create-reminder.js +7 -6
  327. package/dist/mcp/tools/create-task.js +22 -21
  328. package/dist/mcp/tools/deactivate-behavior.js +13 -12
  329. package/dist/mcp/tools/list-reminders.js +7 -6
  330. package/dist/mcp/tools/list-tasks.js +22 -21
  331. package/dist/mcp/tools/send-message.js +21 -20
  332. package/dist/mcp/tools/update-task.js +20 -19
  333. package/dist/{mcp-http-config-GKP5QGAO.js → mcp-http-config-NLKZQHV6.js} +8 -7
  334. package/dist/{mcp-session-identity-JHAGRB7B.js → mcp-session-identity-AEYKQELS.js} +17 -16
  335. package/dist/{memory-cards-O377ETAM.js → memory-cards-3ITTLHOY.js} +9 -8
  336. package/dist/{memory-graph-extractor-4KJCCUOP.js → memory-graph-extractor-FM7Q4VV6.js} +9 -8
  337. package/dist/{memory-maintenance-RR5UPRW3.js → memory-maintenance-OYSA36EJ.js} +1 -1
  338. package/dist/{memory-poisoning-defense-Y5TTKGOP.js → memory-poisoning-defense-7JFJUCKU.js} +5 -4
  339. package/dist/{memory-pressure-watchdog-NGXTI4HR.js → memory-pressure-watchdog-FROXPH3U.js} +18 -17
  340. package/dist/{memory-reflection-EXNHRZL7.js → memory-reflection-CTGRQAPC.js} +9 -8
  341. package/dist/{memory-write-repository-S4TX7WQB.js → memory-write-repository-D2WU2WFY.js} +5 -3
  342. package/dist/{monitor-grants-57Q4NL25.js → monitor-grants-TYGR4SSC.js} +3 -3
  343. package/dist/{monitor-identity-3FQ52SYU.js → monitor-identity-P54TAJBA.js} +2 -2
  344. package/dist/{notification-ledger-O6KQYYGK.js → notification-ledger-MIYYFMHL.js} +18 -17
  345. package/dist/{notifications-6FCQCJ4P.js → notifications-E7ZUVBUS.js} +17 -16
  346. package/dist/{orchestration-events-2Z2BMMA5.js → orchestration-events-U6DT373C.js} +6 -5
  347. package/dist/{orchestrator-AGOSKPHD.js → orchestrator-JUIMX24X.js} +19 -18
  348. package/dist/{org-brief-session-WJHZVXXJ.js → org-brief-session-YRIV2QSB.js} +17 -16
  349. package/dist/{org-consent-policy-X43UGTHI.js → org-consent-policy-NQ2KDQDG.js} +5 -5
  350. package/dist/{org-join-M3UTBMHC.js → org-join-II6F2VJH.js} +11 -11
  351. package/dist/{org-key-admin-AA2DRHB2.js → org-key-admin-JH6KJB4J.js} +13 -13
  352. package/dist/{org-key-epoch-Z5UIVUHT.js → org-key-epoch-G6XN6IJM.js} +5 -5
  353. package/dist/{org-key-pin-FE6YHEZ3.js → org-key-pin-WW5CHAQL.js} +3 -3
  354. package/dist/{org-membership-3J2MIGE4.js → org-membership-ROYVH7I7.js} +4 -4
  355. package/dist/{org-partner-config-5HATZYG4.js → org-partner-config-SQULMRXG.js} +8 -8
  356. package/dist/{org-partner-runtime-UI35IHUC.js → org-partner-runtime-PCGVG3M2.js} +17 -16
  357. package/dist/{org-row-visibility-TRJERVYP.js → org-row-visibility-USZO6GXN.js} +1 -1
  358. package/dist/{pipeline-router-EKQ6D7ZA.js → pipeline-router-2UJV527K.js} +6 -5
  359. package/dist/{plan-limits-3BGHIHX6.js → plan-limits-HBD2B77I.js} +8 -7
  360. package/dist/{pre-tool-use-impl-7BT5TJVM.js → pre-tool-use-impl-WEZ76RLG.js} +35 -34
  361. package/dist/{project-name-PGJGUEJY.js → project-name-O37JG2BV.js} +10 -5
  362. package/dist/{projection-worker-3GEVFPAI.js → projection-worker-HHEYDVMY.js} +2 -2
  363. package/dist/{prospective-memory-GEN7CN7H.js → prospective-memory-LNZTVL5G.js} +5 -4
  364. package/dist/{push-notifications-QW4BWRC7.js → push-notifications-QT2KL3GR.js} +18 -17
  365. package/dist/{reproject-worktree-memories-DIULBEBD.js → reproject-worktree-memories-CYQLKU2R.js} +17 -16
  366. package/dist/{reranker-LQ6OPJOI.js → reranker-MJUCNQ3B.js} +1 -1
  367. package/dist/{retrieval-health-XDFYFEOP.js → retrieval-health-MO36P7O3.js} +1 -1
  368. package/dist/{review-polling-ED33YLFT.js → review-polling-OU7JLEKI.js} +18 -17
  369. package/dist/runtime/index.js +25 -24
  370. package/dist/{seat-benefit-YEUQBNCS.js → seat-benefit-SBVGAMMY.js} +2 -2
  371. package/dist/{session-events-7IJGTBVH.js → session-events-KB7A2PIL.js} +26 -19
  372. package/dist/{session-kill-telemetry-RUTEARJ3.js → session-kill-telemetry-UNS3QI2G.js} +18 -17
  373. package/dist/{session-scope-SSYA64L3.js → session-scope-QOR7CVGI.js} +17 -16
  374. package/dist/{setup-wizard-XD7FZVLJ.js → setup-wizard-MMKIRDM5.js} +4 -3
  375. package/dist/{shard-manager-FH5JZRSE.js → shard-manager-UM3UYDLV.js} +3 -3
  376. package/dist/{skill-refinement-UHD4E6GV.js → skill-refinement-4ZND3EZF.js} +6 -5
  377. package/dist/{skill-retrieval-F6PAJ3I5.js → skill-retrieval-U5F2ZPL6.js} +13 -12
  378. package/dist/{skill-usage-2MBTF7Y4.js → skill-usage-ECYWEKQG.js} +6 -5
  379. package/dist/{stack-generate-manifest-MVJDTU4F.js → stack-generate-manifest-HL7QJ5XC.js} +4 -4
  380. package/dist/{stack-promote-BMGEY6SQ.js → stack-promote-CINVLY2J.js} +4 -4
  381. package/dist/{stack-release-64UJ6Y4W.js → stack-release-PNGTKMW6.js} +5 -5
  382. package/dist/{stack-update-EBATTQPP.js → stack-update-QXABQSHS.js} +3 -3
  383. package/dist/{steward-gate-EWG2BHYQ.js → steward-gate-VBZXP4HY.js} +6 -5
  384. package/dist/{subagent-brief-injection-YZGSWUEY.js → subagent-brief-injection-63LZHTT3.js} +29 -28
  385. package/dist/{subagent-spawn-ledger-PDICC43I.js → subagent-spawn-ledger-2XSOIL35.js} +3 -1
  386. package/dist/{support-bug-actions-RU6WZ3UV.js → support-bug-actions-IPFJ5WEZ.js} +3 -3
  387. package/dist/{support-inbox-A3S52SPS.js → support-inbox-TUMS347S.js} +15 -14
  388. package/dist/{task-enforcement-LVAS55AR.js → task-enforcement-ESAMX2ML.js} +18 -17
  389. package/dist/{task-request-inbox-2TN4ZUH2.js → task-request-inbox-ILFRNPZA.js} +5 -5
  390. package/dist/{task-scope-NLKUVCP5.js → task-scope-6LIHTVCC.js} +17 -16
  391. package/dist/{tasks-crud-NQDPLHNZ.js → tasks-crud-NWNW7RDH.js} +21 -16
  392. package/dist/{tasks-notify-BDM2NEHP.js → tasks-notify-H4CUL7RM.js} +18 -17
  393. package/dist/{tasks-review-3G7CAW2O.js → tasks-review-F4VW7NOI.js} +17 -16
  394. package/dist/telemetry-upload-MUIZKQDT.js +42 -0
  395. package/dist/{token-budget-KNC2WGR7.js → token-budget-H53P6O6O.js} +6 -5
  396. package/dist/{tool-telemetry-I3SEU5M5.js → tool-telemetry-A7NUFJI4.js} +1 -1
  397. package/dist/tui/App.js +27 -26
  398. package/dist/{tui-data-KJDWP4CB.js → tui-data-4TWYXEEA.js} +21 -20
  399. package/dist/{update-support-UYDYMHVR.js → update-support-4B7GQLUI.js} +14 -13
  400. package/dist/{whatsapp-5EMPZHF5.js → whatsapp-JHB2BHJE.js} +2 -2
  401. package/dist/{wiki-acl-M7BTQJBZ.js → wiki-acl-OFOKEUJS.js} +1 -1
  402. package/dist/{work-claims-5CFMZTML.js → work-claims-36IKRNK6.js} +6 -5
  403. package/dist/{work-state-heartbeat-7IA2DZ2E.js → work-state-heartbeat-RXQKS4GL.js} +1 -1
  404. package/dist/{workflow-engine-S5JOE2YR.js → workflow-engine-SJHROL46.js} +2 -2
  405. package/dist/{worktree-7V4ZMF3D.js → worktree-YIUDLMNS.js} +7 -6
  406. package/dist/{worktree-sweep-34MXJ7S6.js → worktree-sweep-2MZ7PKEG.js} +8 -7
  407. package/package.json +2 -1
  408. package/release-notes.json +25 -21
  409. package/stack.release.json +3 -3
  410. package/dist/chunk-PEYQ6MWO.js +0 -175
  411. /package/dist/{chunk-542FBM5U.js → chunk-2CKQEW4W.js} +0 -0
  412. /package/dist/{chunk-MOBZTIJQ.js → chunk-43WD6UKN.js} +0 -0
  413. /package/dist/{chunk-N45FAI6D.js → chunk-4ULAH65G.js} +0 -0
  414. /package/dist/{chunk-YVWXI2HM.js → chunk-5ZVDEGES.js} +0 -0
  415. /package/dist/{chunk-QDSNEGJE.js → chunk-ISNY2BGX.js} +0 -0
  416. /package/dist/{chunk-6D2O5SAH.js → chunk-KM3S64VS.js} +0 -0
  417. /package/dist/{chunk-J4B4M5PH.js → chunk-LGSXXCE2.js} +0 -0
  418. /package/dist/{chunk-J635FA7T.js → chunk-N4PRTLUX.js} +0 -0
  419. /package/dist/{chunk-EULAP6L6.js → chunk-QC3AU6NX.js} +0 -0
  420. /package/dist/{chunk-CFO47VW4.js → chunk-U6FWH2KA.js} +0 -0
  421. /package/dist/{chunk-SKSXROKP.js → chunk-UMIELGF2.js} +0 -0
  422. /package/dist/{chunk-FYSKQPTE.js → chunk-W7A44LSP.js} +0 -0
  423. /package/dist/{chunk-6NRZLVK3.js → chunk-WKXEOVSN.js} +0 -0
  424. /package/dist/{core-memory-PZEO3OWH.js → core-memory-EGE6W24K.js} +0 -0
  425. /package/dist/{memory-isolation-MFNT2ITE.js → memory-isolation-HX6XSKZM.js} +0 -0
  426. /package/dist/{oauth-server-CBGEWD6H.js → oauth-server-6TE2NW74.js} +0 -0
  427. /package/dist/{project-boot-VESAYDIH.js → project-boot-2GNHDNUH.js} +0 -0
@@ -1,6 +1,10 @@
1
1
  import {
2
2
  CLOUD_SYNC_EXIT_PARTIAL
3
3
  } from "../chunk-5LQZABW5.js";
4
+ import {
5
+ decideSweepSkip,
6
+ readHostLoadSignal
7
+ } from "../chunk-Y6LOT7GS.js";
4
8
  import {
5
9
  RESTART_BREAKER_THRESHOLD,
6
10
  readBreakerAlert,
@@ -9,16 +13,12 @@ import {
9
13
  restartBreakerAlertPath,
10
14
  writeDaemonExitBreadcrumb
11
15
  } from "../chunk-UNFHKOTF.js";
12
- import {
13
- decideSweepSkip,
14
- readHostLoadSignal
15
- } from "../chunk-CYUUNIEL.js";
16
16
  import {
17
17
  isDbVerifyStampFresh
18
18
  } from "../chunk-SVFNWBLF.js";
19
19
  import {
20
20
  pushNotifyAsync
21
- } from "../chunk-FYV2CTKP.js";
21
+ } from "../chunk-TPYGTRYK.js";
22
22
  import {
23
23
  disposeDbWriteWorker,
24
24
  isDbWriteWorkerReady,
@@ -27,7 +27,7 @@ import {
27
27
  sweepConversationsRetentionInWorker,
28
28
  sweepSessionEventsRetentionInWorker,
29
29
  writeMemoryInWorker
30
- } from "../chunk-PEYQ6MWO.js";
30
+ } from "../chunk-R3ZU4F7M.js";
31
31
  import {
32
32
  shouldScheduleDaemonRestartHandoff
33
33
  } from "../chunk-FXZ6VGFW.js";
@@ -41,7 +41,7 @@ import {
41
41
  isHostSuspendedWindow,
42
42
  totalHostCpuMs,
43
43
  updateLoadWindow
44
- } from "../chunk-ZJQ56DZZ.js";
44
+ } from "../chunk-B3W5R5OE.js";
45
45
  import {
46
46
  getMcpToolFamily,
47
47
  inferMcpRuntime,
@@ -64,14 +64,15 @@ import {
64
64
  } from "../chunk-KWOAM7TA.js";
65
65
  import {
66
66
  governMemoryRecord
67
- } from "../chunk-FYSKQPTE.js";
67
+ } from "../chunk-W7A44LSP.js";
68
68
  import "../chunk-5MOYSU5A.js";
69
69
  import "../chunk-BYP3DOUU.js";
70
70
  import "../chunk-76CJBM36.js";
71
71
  import {
72
72
  BUSY_PATTERN
73
- } from "../chunk-GM4UEZDE.js";
74
- import "../chunk-PYXXL7N7.js";
73
+ } from "../chunk-H372DQD2.js";
74
+ import "../chunk-YQT3JC27.js";
75
+ import "../chunk-EIKATSE4.js";
75
76
  import {
76
77
  currentPauseStartMs,
77
78
  isTimerPausedNow,
@@ -81,22 +82,21 @@ import {
81
82
  timerPauseIntervalsSince
82
83
  } from "../chunk-ZKGWHT56.js";
83
84
  import "../chunk-WT4RI36X.js";
85
+ import "../chunk-MJCSEIFI.js";
84
86
  import "../chunk-E23LNUWJ.js";
85
87
  import "../chunk-TDF2XKLK.js";
86
- import "../chunk-EIKATSE4.js";
87
- import "../chunk-MJCSEIFI.js";
88
88
  import "../chunk-QDMZ5DX2.js";
89
89
  import "../chunk-HME6ITKV.js";
90
- import "../chunk-QSW5DHMZ.js";
90
+ import "../chunk-R6Q3MB2F.js";
91
91
  import "../chunk-VI4ATC6I.js";
92
92
  import "../chunk-A27Q27CT.js";
93
- import "../chunk-6L4VIYLZ.js";
94
- import "../chunk-JGBYZTWH.js";
93
+ import "../chunk-7MCEYNWK.js";
95
94
  import "../chunk-T5SM4RXY.js";
96
- import "../chunk-CFFSHBQF.js";
95
+ import "../chunk-EWKNMFS6.js";
97
96
  import "../chunk-IVXELUEQ.js";
98
97
  import "../chunk-AM7S2TY6.js";
99
- import "../chunk-2BOLFLAU.js";
98
+ import "../chunk-NFTTBVL2.js";
99
+ import "../chunk-6A74345E.js";
100
100
  import {
101
101
  attributeSignalSource,
102
102
  consumeRestartIntentDetail,
@@ -144,12 +144,12 @@ import {
144
144
  killAttributionLogPath,
145
145
  recordKillIntent
146
146
  } from "../chunk-DRTJCG6B.js";
147
- import "../chunk-TVWYMOZ4.js";
147
+ import "../chunk-V3RGMCCP.js";
148
148
  import "../chunk-CVYC6DUW.js";
149
149
  import "../chunk-GJV3WDWM.js";
150
150
  import "../chunk-YRUZK2QA.js";
151
151
  import "../chunk-MP2AFCGL.js";
152
- import "../chunk-L5JFVK5T.js";
152
+ import "../chunk-7VQ2OCZG.js";
153
153
  import {
154
154
  logBoot,
155
155
  logCrash,
@@ -158,10 +158,11 @@ import {
158
158
  logShutdown
159
159
  } from "../chunk-BBMTVAE3.js";
160
160
  import "../chunk-TKDITWDN.js";
161
- import "../chunk-SINIRUYZ.js";
162
- import "../chunk-6777GNWI.js";
163
- import "../chunk-7FE43JRU.js";
164
161
  import "../chunk-5YEUPUV4.js";
162
+ import "../chunk-4LCZYKVK.js";
163
+ import "../chunk-CCFWKW2D.js";
164
+ import "../chunk-OFC5SIIT.js";
165
+ import "../chunk-7FE43JRU.js";
165
166
  import {
166
167
  isPostgresBackendEnabled
167
168
  } from "../chunk-YYB5PMTK.js";
@@ -186,9 +187,9 @@ import {
186
187
  EMBEDDING_DIM
187
188
  } from "../chunk-C7GHNJPW.js";
188
189
  import "../chunk-UWGQNJIE.js";
189
- import "../chunk-EOWJXCYC.js";
190
+ import "../chunk-HPCCYWDP.js";
190
191
  import "../chunk-3R7UDPVR.js";
191
- import "../chunk-6D2O5SAH.js";
192
+ import "../chunk-KM3S64VS.js";
192
193
  import "../chunk-A7JYF4RG.js";
193
194
  import "../chunk-ARX6TAGN.js";
194
195
  import {
@@ -2683,7 +2684,7 @@ async function loadModel() {
2683
2684
  void (async () => {
2684
2685
  try {
2685
2686
  if (_storeInitialized) {
2686
- const { writeNotification } = await import("../notifications-6FCQCJ4P.js");
2687
+ const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
2687
2688
  await writeNotification({
2688
2689
  agentId: "exe",
2689
2690
  agentRole: "system",
@@ -2820,7 +2821,7 @@ function disableEmbeddingsForInferenceTimeouts() {
2820
2821
  void (async () => {
2821
2822
  try {
2822
2823
  if (_storeInitialized) {
2823
- const { writeNotification } = await import("../notifications-6FCQCJ4P.js");
2824
+ const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
2824
2825
  await writeNotification({
2825
2826
  agentId: "exe",
2826
2827
  agentRole: "system",
@@ -2987,7 +2988,7 @@ async function shutdown(exitCode = 0, reason = null, restartKind) {
2987
2988
  _shuttingDown = true;
2988
2989
  _drainingWrites = true;
2989
2990
  try {
2990
- const { stopOrgPartnerRuntime } = await import("../org-partner-runtime-UI35IHUC.js");
2991
+ const { stopOrgPartnerRuntime } = await import("../org-partner-runtime-PCGVG3M2.js");
2991
2992
  stopOrgPartnerRuntime();
2992
2993
  } catch {
2993
2994
  }
@@ -3007,7 +3008,7 @@ async function shutdown(exitCode = 0, reason = null, restartKind) {
3007
3008
  resetIdleTimer();
3008
3009
  flushToDisk();
3009
3010
  try {
3010
- const { stopMaintenanceLane } = await import("../maintenance-worker-OY2E4BM5.js");
3011
+ const { stopMaintenanceLane } = await import("../maintenance-worker-R5N3A2KM.js");
3011
3012
  await stopMaintenanceLane();
3012
3013
  } catch {
3013
3014
  }
@@ -3075,7 +3076,7 @@ async function shutdown(exitCode = 0, reason = null, restartKind) {
3075
3076
  dbBytes = dbPath ? statSync4(dbPath).size : 0;
3076
3077
  } catch {
3077
3078
  }
3078
- const { getAvailableMemoryBytesSync } = await import("../memory-pressure-watchdog-NGXTI4HR.js");
3079
+ const { getAvailableMemoryBytesSync } = await import("../memory-pressure-watchdog-FROXPH3U.js");
3079
3080
  const freeBytes = getAvailableMemoryBytesSync();
3080
3081
  if (shouldSkipBackupUnderMemoryPressure(freeBytes, dbBytes)) {
3081
3082
  memoryGateSkip = true;
@@ -3128,12 +3129,12 @@ async function shutdown(exitCode = 0, reason = null, restartKind) {
3128
3129
  `);
3129
3130
  }
3130
3131
  try {
3131
- const { stopProjectionWorker } = await import("../projection-worker-3GEVFPAI.js");
3132
+ const { stopProjectionWorker } = await import("../projection-worker-HHEYDVMY.js");
3132
3133
  stopProjectionWorker();
3133
3134
  } catch {
3134
3135
  }
3135
3136
  try {
3136
- const { disposeShards } = await import("../shard-manager-FH5JZRSE.js");
3137
+ const { disposeShards } = await import("../shard-manager-UM3UYDLV.js");
3137
3138
  disposeShards();
3138
3139
  } catch {
3139
3140
  }
@@ -3196,7 +3197,7 @@ async function handleHealthCheck(socket, requestId) {
3196
3197
  let pipelineStatus = "unknown";
3197
3198
  if (dbConnected) {
3198
3199
  try {
3199
- await import("../pipeline-router-EKQ6D7ZA.js");
3200
+ await import("../pipeline-router-2UJV527K.js");
3200
3201
  pipelineStatus = "ok";
3201
3202
  } catch {
3202
3203
  pipelineStatus = "unavailable";
@@ -3299,12 +3300,13 @@ async function handleHealthCheck(socket, requestId) {
3299
3300
  }
3300
3301
  var _dbRequestsServed = 0;
3301
3302
  async function runDaemonTimerRead(sql, args = []) {
3303
+ const { isDbReadWorkerReady, runReadQueryInWorker, isDbReadWorkerTimeout } = await import("./db-read-worker-client.js");
3302
3304
  try {
3303
- const { isDbReadWorkerReady, runReadQueryInWorker } = await import("./db-read-worker-client.js");
3304
3305
  if (isDbReadWorkerReady()) {
3305
3306
  return await runReadQueryInWorker(sql, args);
3306
3307
  }
3307
- } catch {
3308
+ } catch (err) {
3309
+ if (isDbReadWorkerTimeout(err)) throw err;
3308
3310
  }
3309
3311
  const { getClient } = await import("./database.js");
3310
3312
  return getClient().execute({ sql, args });
@@ -3344,7 +3346,9 @@ async function handleDbExecute(socket, requestId, sql, args) {
3344
3346
  sendResponse(socket, { id: requestId, db: serialized });
3345
3347
  return;
3346
3348
  }
3347
- } catch {
3349
+ } catch (err) {
3350
+ const { isDbReadWorkerTimeout } = await import("./db-read-worker-client.js");
3351
+ if (isDbReadWorkerTimeout(err)) throw err;
3348
3352
  }
3349
3353
  }
3350
3354
  const { getClient } = await import("./database.js");
@@ -3588,7 +3592,7 @@ async function _writeMemoryRecordInner(entry, syncOnly = false) {
3588
3592
  }
3589
3593
  }
3590
3594
  const { getClient } = await import("./database.js");
3591
- const { buildMemoryInsert, readMemoryWriteOutcome } = await import("../memory-write-repository-S4TX7WQB.js");
3595
+ const { buildMemoryInsert, readMemoryWriteOutcome } = await import("../memory-write-repository-D2WU2WFY.js");
3592
3596
  const client = getClient();
3593
3597
  const row = {
3594
3598
  ...record,
@@ -3609,7 +3613,7 @@ async function _writeMemoryRecordInner(entry, syncOnly = false) {
3609
3613
  if (Number(inserted.rowsAffected) === 0) return outcome.id;
3610
3614
  const version = outcome.version;
3611
3615
  try {
3612
- const { insertOntologyForMemory } = await import("../agentic-ontology-RA6CMND6.js");
3616
+ const { insertOntologyForMemory } = await import("../agentic-ontology-C7G2MB5M.js");
3613
3617
  await insertOntologyForMemory({
3614
3618
  id,
3615
3619
  agent_id: record.agent_id,
@@ -4486,7 +4490,7 @@ async function startMcpHttpServer() {
4486
4490
  setBootPhase("db_ready");
4487
4491
  _storeInitialized = true;
4488
4492
  markDbInitCompleted();
4489
- const { initLicenseGate, getCachedLicenseGate } = await import("../license-gate-4BXUTHLB.js");
4493
+ const { initLicenseGate, getCachedLicenseGate } = await import("../license-gate-KGSD5NV5.js");
4490
4494
  const gateResult = await initLicenseGate();
4491
4495
  if (!gateResult.hasKey) {
4492
4496
  process.stderr.write(
@@ -4498,7 +4502,7 @@ async function startMcpHttpServer() {
4498
4502
  `
4499
4503
  );
4500
4504
  }
4501
- const { startLicenseRecheckTimer, LICENSE_RECHECK_INTERVAL_MS } = await import("../license-recheck-QFPUKISQ.js");
4505
+ const { startLicenseRecheckTimer, LICENSE_RECHECK_INTERVAL_MS } = await import("../license-recheck-M674BGZZ.js");
4502
4506
  startLicenseRecheckTimer();
4503
4507
  process.stderr.write(
4504
4508
  `[exed] License re-check timer started (every ${LICENSE_RECHECK_INTERVAL_MS / 6e4}m, throttled by cache freshness)
@@ -4507,7 +4511,7 @@ async function startMcpHttpServer() {
4507
4511
  let _cachedWrapTelemetry = null;
4508
4512
  async function getWrapTelemetry() {
4509
4513
  if (!_cachedWrapTelemetry) {
4510
- const { wrapServerWithTelemetry } = await import("../tool-telemetry-I3SEU5M5.js");
4514
+ const { wrapServerWithTelemetry } = await import("../tool-telemetry-A7NUFJI4.js");
4511
4515
  _cachedWrapTelemetry = wrapServerWithTelemetry;
4512
4516
  }
4513
4517
  return _cachedWrapTelemetry;
@@ -4579,7 +4583,7 @@ async function startMcpHttpServer() {
4579
4583
  const expectedBuf = Buffer.from(_daemonToken);
4580
4584
  if (tokenBuf.length === expectedBuf.length && timingSafeEqual(tokenBuf, expectedBuf)) return true;
4581
4585
  try {
4582
- const { verifyAccessToken } = await import("../oauth-server-CBGEWD6H.js");
4586
+ const { verifyAccessToken } = await import("../oauth-server-6TE2NW74.js");
4583
4587
  const result = verifyAccessToken(token);
4584
4588
  return result.valid;
4585
4589
  } catch {
@@ -4842,7 +4846,7 @@ async function startMcpHttpServer() {
4842
4846
  return;
4843
4847
  }
4844
4848
  try {
4845
- const { handleOAuthRoute } = await import("../oauth-server-CBGEWD6H.js");
4849
+ const { handleOAuthRoute } = await import("../oauth-server-6TE2NW74.js");
4846
4850
  const handled = await handleOAuthRoute(req, res, url, MCP_HTTP_PORT, _daemonToken);
4847
4851
  if (handled) return;
4848
4852
  } catch (err) {
@@ -4970,7 +4974,7 @@ async function startMcpHttpServer() {
4970
4974
  contextPct: body.context_pct
4971
4975
  });
4972
4976
  if (body.context_pct !== void 0 && body.context_pct > 70) {
4973
- void import("../orchestration-events-2Z2BMMA5.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
4977
+ void import("../orchestration-events-U6DT373C.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
4974
4978
  recordOE({
4975
4979
  eventType: "context.pressure",
4976
4980
  source: "exe-daemon.heartbeat",
@@ -5066,7 +5070,7 @@ async function startMcpHttpServer() {
5066
5070
  let sessionHint = req.headers["x-exe-session-name"] || req.headers["x-exe-session"] || "";
5067
5071
  if (sessionHint) {
5068
5072
  try {
5069
- const { sanitizeSessionHintHeader, rejectForgedSessionHint } = await import("../mcp-session-identity-JHAGRB7B.js");
5073
+ const { sanitizeSessionHintHeader, rejectForgedSessionHint } = await import("../mcp-session-identity-AEYKQELS.js");
5070
5074
  const rawHint = sessionHint;
5071
5075
  sessionHint = sanitizeSessionHintHeader(sessionHint);
5072
5076
  if (!sessionHint) {
@@ -5105,7 +5109,7 @@ async function startMcpHttpServer() {
5105
5109
  try {
5106
5110
  const liveSessions = await getTmuxSessionsAsync();
5107
5111
  const paneCommands = await getPaneCommandsAsync();
5108
- const { resolveMcpSessionHint } = await import("../mcp-session-identity-JHAGRB7B.js");
5112
+ const { resolveMcpSessionHint } = await import("../mcp-session-identity-AEYKQELS.js");
5109
5113
  let registrySessions = [];
5110
5114
  try {
5111
5115
  const { listSessions: listRegistrySessions } = await import("./session-registry.js");
@@ -5242,7 +5246,7 @@ async function startMcpHttpServer() {
5242
5246
  bindLive = await getTmuxSessionsAsync();
5243
5247
  } catch {
5244
5248
  }
5245
- const { isLauncherCorroboratedIdentity } = await import("../mcp-session-identity-JHAGRB7B.js");
5249
+ const { isLauncherCorroboratedIdentity } = await import("../mcp-session-identity-AEYKQELS.js");
5246
5250
  const corroborated = isLauncherCorroboratedIdentity({
5247
5251
  agentId,
5248
5252
  registrySessions: bindRegistry,
@@ -5484,7 +5488,7 @@ async function startMcpHttpServer() {
5484
5488
  }
5485
5489
  }
5486
5490
  try {
5487
- const { reconcileHintWithRegistryIdentity } = await import("../mcp-session-identity-JHAGRB7B.js");
5491
+ const { reconcileHintWithRegistryIdentity } = await import("../mcp-session-identity-AEYKQELS.js");
5488
5492
  const { listSessions: listRegistrySessions } = await import("./session-registry.js");
5489
5493
  const recon = reconcileHintWithRegistryIdentity({
5490
5494
  agentId,
@@ -5709,7 +5713,17 @@ function clearHealthExitStreak() {
5709
5713
  }
5710
5714
  }
5711
5715
  var _lastStoreInitFailureReason = null;
5716
+ var _storeInitInFlight = null;
5712
5717
  async function ensureStoreForPolling() {
5718
+ if (_storeInitialized) return true;
5719
+ if (!_storeInitInFlight) {
5720
+ _storeInitInFlight = initStoreForPollingOnce().finally(() => {
5721
+ _storeInitInFlight = null;
5722
+ });
5723
+ }
5724
+ return _storeInitInFlight;
5725
+ }
5726
+ async function initStoreForPollingOnce() {
5713
5727
  if (_storeInitialized) return true;
5714
5728
  try {
5715
5729
  const { initDatabase, initPostgresOnlyDatabase, isInitialized, ensureSchema } = await import("./database.js");
@@ -5744,9 +5758,9 @@ async function ensureStoreForPolling() {
5744
5758
  await initDatabase({ dbPath: config.dbPath, encryptionKey: masterKey.toString("hex") });
5745
5759
  await ensureSchema();
5746
5760
  try {
5747
- const { isLedgerEnabled } = await import("../notification-ledger-O6KQYYGK.js");
5761
+ const { isLedgerEnabled } = await import("../notification-ledger-MIYYFMHL.js");
5748
5762
  if (isLedgerEnabled()) {
5749
- const { bumpBootGeneration } = await import("../boot-generation-RPJVFAQJ.js");
5763
+ const { bumpBootGeneration } = await import("../boot-generation-TT4BOFXY.js");
5750
5764
  const { setDaemonReadyGeneration } = await import("../daemon-ready-signal-PNDMVKPJ.js");
5751
5765
  const generation = await bumpBootGeneration();
5752
5766
  setDaemonReadyGeneration(generation);
@@ -5792,13 +5806,13 @@ async function ensureStoreForPolling() {
5792
5806
  }
5793
5807
  }
5794
5808
  async function startReviewPolling() {
5795
- const polling = await import("../review-polling-ED33YLFT.js");
5809
+ const polling = await import("../review-polling-OU7JLEKI.js");
5796
5810
  const state = {
5797
5811
  lastIntercomSent: /* @__PURE__ */ new Map(),
5798
5812
  lastNudgeSent: /* @__PURE__ */ new Map(),
5799
5813
  intervalMs: REVIEW_POLL_INTERVAL_MS
5800
5814
  };
5801
- const { pollReviewNudge, createReviewNudgeRealDeps, loadNudgeState } = await import("../daemon-orchestration-K4NKFYXO.js");
5815
+ const { pollReviewNudge, createReviewNudgeRealDeps, loadNudgeState } = await import("../daemon-orchestration-2SROQ2N4.js");
5802
5816
  const nudgeState = loadNudgeState();
5803
5817
  const tick = async () => traceDaemonTimer("review_polling", async () => {
5804
5818
  fired("review_polling");
@@ -5806,7 +5820,7 @@ async function startReviewPolling() {
5806
5820
  try {
5807
5821
  const { getClient } = await import("./database.js");
5808
5822
  const deps = polling.createRealDeps(getClient);
5809
- const { strictSessionScopeFilter } = await import("../task-scope-NLKUVCP5.js");
5823
+ const { strictSessionScopeFilter } = await import("../task-scope-6LIHTVCC.js");
5810
5824
  const { getCoordinatorName, DEFAULT_COORDINATOR_TEMPLATE_NAME } = await import("./employees.js");
5811
5825
  deps.findOrphanedDoneTasks = async (sessionScope) => {
5812
5826
  const coordinatorName = getCoordinatorName();
@@ -5826,7 +5840,7 @@ async function startReviewPolling() {
5826
5840
  deps.findTieredReviewCandidates = async (sessionScope) => {
5827
5841
  let project = null;
5828
5842
  try {
5829
- const { getProjectName } = await import("../project-name-PGJGUEJY.js");
5843
+ const { getProjectName } = await import("../project-name-O37JG2BV.js");
5830
5844
  project = getProjectName() || null;
5831
5845
  } catch {
5832
5846
  project = null;
@@ -5885,7 +5899,7 @@ function startSessionTTL() {
5885
5899
  if (!await ensureStoreForPolling()) return;
5886
5900
  if (inPostRestartDestructiveGrace("session_ttl")) return;
5887
5901
  const { getClient } = await import("./database.js");
5888
- const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-K4NKFYXO.js");
5902
+ const { checkSessionTTL, createSessionTTLRealDeps } = await import("../daemon-orchestration-2SROQ2N4.js");
5889
5903
  const deps = createSessionTTLRealDeps(getClient);
5890
5904
  const killed = await checkSessionTTL(deps, _wedgeObservations);
5891
5905
  if (killed.length > 0) acted("session_ttl");
@@ -5945,7 +5959,7 @@ function startIdleKill() {
5945
5959
  const cfg = await getCachedConfig();
5946
5960
  if (!cfg) return;
5947
5961
  const { getClient } = await import("./database.js");
5948
- const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-K4NKFYXO.js");
5962
+ const { pollIdleKill, createIdleKillRealDeps } = await import("../daemon-orchestration-2SROQ2N4.js");
5949
5963
  const { sessions: liveSessions, paneCache, aliveSessions } = await getSharedOrchestrationCaches();
5950
5964
  const realDeps = createIdleKillRealDeps(
5951
5965
  getClient,
@@ -6381,7 +6395,7 @@ function startSkillRefinement() {
6381
6395
  if (!shouldRunHeavyJob("skill_refinement")) return;
6382
6396
  try {
6383
6397
  if (!await ensureStoreForPolling()) return;
6384
- const { runSkillRefinement } = await import("../skill-refinement-UHD4E6GV.js");
6398
+ const { runSkillRefinement } = await import("../skill-refinement-4ZND3EZF.js");
6385
6399
  const result = await runSkillRefinement();
6386
6400
  if (result.reviewed > 0) {
6387
6401
  acted("skill_refinement");
@@ -6446,7 +6460,7 @@ function startStalledDispatchSweep() {
6446
6460
  });
6447
6461
  const { notifications, nextState } = decideStalledDispatchEscalations(intents, previousState);
6448
6462
  if (notifications.length > 0 && _storeInitialized) {
6449
- const { writeNotification } = await import("../notifications-6FCQCJ4P.js");
6463
+ const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
6450
6464
  for (const note of notifications) {
6451
6465
  try {
6452
6466
  await writeNotification({
@@ -6496,7 +6510,7 @@ function startStaleBranchSweep() {
6496
6510
  fired("stale_branch_sweep");
6497
6511
  if (sweepStarved("stale_branch_sweep")) return;
6498
6512
  try {
6499
- const { discoverRepoPathsAsync } = await import("../worktree-sweep-34MXJ7S6.js");
6513
+ const { discoverRepoPathsAsync } = await import("../worktree-sweep-2MZ7PKEG.js");
6500
6514
  const { scanUnmergedBranchesCached } = await import("../branch-hygiene-DDXXI6ZA.js");
6501
6515
  const { runBudgetedSweep } = await import("../sweep-budget-YGLCNXZZ.js");
6502
6516
  const today = (/* @__PURE__ */ new Date()).toISOString().slice(0, 10);
@@ -6529,7 +6543,7 @@ function startStaleBranchSweep() {
6529
6543
  if (!_storeInitialized) return;
6530
6544
  const stale = scan.branches.filter((b) => b.ageHours >= STALE_BRANCH_HOURS).slice(0, 5).map((b) => `${b.name} (${b.aheadUnknown ? "+? commits" : `+${b.ahead} commits`}, ${(b.ageHours / 24).toFixed(1)}d)`).join("; ");
6531
6545
  try {
6532
- const { writeNotification } = await import("../notifications-6FCQCJ4P.js");
6546
+ const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
6533
6547
  await writeNotification({
6534
6548
  agentId: "exe",
6535
6549
  agentRole: "system",
@@ -6570,7 +6584,7 @@ function startBugLandedReconcile() {
6570
6584
  fired("bug_landed_reconcile");
6571
6585
  if (sweepStarved("bug_landed_reconcile")) return;
6572
6586
  try {
6573
- const { reconcileLandedBugs } = await import("../bug-landed-reconciler-FN5KPBRK.js");
6587
+ const { reconcileLandedBugs } = await import("../bug-landed-reconciler-NEL6KXHE.js");
6574
6588
  const result = await reconcileLandedBugs();
6575
6589
  const { reposScanned, reposErrored, prsScanned, matched, reconciled, skipped, errored } = result.summary;
6576
6590
  process.stderr.write(
@@ -6592,12 +6606,12 @@ function startBugLandedReconcile() {
6592
6606
  }
6593
6607
  async function maybeScheduleBugLandedReconcile() {
6594
6608
  try {
6595
- const { hasSupportAdminAccess } = await import("../support-bug-actions-RU6WZ3UV.js");
6609
+ const { hasSupportAdminAccess } = await import("../support-bug-actions-IPFJ5WEZ.js");
6596
6610
  if (!await hasSupportAdminAccess()) {
6597
6611
  process.stderr.write("[exed] Bug-landed reconcile: no AskExe support admin token configured \u2014 skipping (customer install)\n");
6598
6612
  return;
6599
6613
  }
6600
- const { isGhAvailableAndAuthenticated } = await import("../bug-landed-reconciler-FN5KPBRK.js");
6614
+ const { isGhAvailableAndAuthenticated } = await import("../bug-landed-reconciler-NEL6KXHE.js");
6601
6615
  if (!await isGhAvailableAndAuthenticated()) {
6602
6616
  process.stderr.write("[exed] Bug-landed reconcile: gh CLI not available/authenticated \u2014 skipping\n");
6603
6617
  return;
@@ -6636,7 +6650,7 @@ function startWorkStateHeartbeat() {
6636
6650
  const { getClient } = await import("./database.js");
6637
6651
  const { listSessions } = await import("./session-registry.js");
6638
6652
  const { isCoordinatorName } = await import("./employees.js");
6639
- const { runWorkStateTick } = await import("../work-state-heartbeat-7IA2DZ2E.js");
6653
+ const { runWorkStateTick } = await import("../work-state-heartbeat-RXQKS4GL.js");
6640
6654
  let liveTmux = null;
6641
6655
  const loadLiveTmux = async () => {
6642
6656
  if (!liveTmux) liveTmux = await listTmuxSessionNamesAsync();
@@ -6702,7 +6716,7 @@ function startGraphExtraction() {
6702
6716
  if (!await ensureStoreForPolling()) return;
6703
6717
  const { getClient } = await import("./database.js");
6704
6718
  const client = getClient();
6705
- const { extractBatch } = await import("../graph-rag-UWOTK4AQ.js");
6719
+ const { extractBatch } = await import("../graph-rag-HB5X6YAF.js");
6706
6720
  const result = await extractBatch(client, 50, config.selfQueryModel);
6707
6721
  if (result.processed > 0) {
6708
6722
  acted("graph_extraction");
@@ -7023,7 +7037,7 @@ async function refreshAgentData() {
7023
7037
  const decision = evaluateSpendCapAlert(_lastSpendCapLevel, capStatus);
7024
7038
  _lastSpendCapLevel = decision.level;
7025
7039
  if (decision.shouldAlert && decision.summary) {
7026
- const { writeNotification } = await import("../notifications-6FCQCJ4P.js");
7040
+ const { writeNotification } = await import("../notifications-E7ZUVBUS.js");
7027
7041
  await writeNotification({
7028
7042
  agentId: "system",
7029
7043
  agentRole: "system",
@@ -7145,7 +7159,7 @@ function startReflectionSweep() {
7145
7159
  );
7146
7160
  let runReflection;
7147
7161
  try {
7148
- ({ runReflection } = await import("../memory-reflection-EXNHRZL7.js"));
7162
+ ({ runReflection } = await import("../memory-reflection-CTGRQAPC.js"));
7149
7163
  } catch (importErr) {
7150
7164
  _reflectionImportFailed = true;
7151
7165
  process.stderr.write(`[exed] Reflection module unavailable (stale chunk hash?) \u2014 disabled until daemon restart: ${importErr instanceof Error ? importErr.message : String(importErr)}
@@ -7186,7 +7200,7 @@ function startReflectionSweep() {
7186
7200
  if (memories > 100 && cards < memories * 0.1) {
7187
7201
  process.stderr.write(`[exed] Memory cards sparse (${cards} cards / ${memories} memories) \u2014 running backfill...
7188
7202
  `);
7189
- const { insertMemoryCardsForBatch } = await import("../memory-cards-O377ETAM.js");
7203
+ const { insertMemoryCardsForBatch } = await import("../memory-cards-3ITTLHOY.js");
7190
7204
  const batchSize = 500;
7191
7205
  let offset = 0;
7192
7206
  let totalCards = 0;
@@ -7244,8 +7258,16 @@ function startDatabaseBackup() {
7244
7258
  const tick = async () => {
7245
7259
  fired("db_backup");
7246
7260
  try {
7247
- const { createBackupAsync, enforceRetention, hasBackupToday, hasRecentBackup } = await import("./db-backup.js");
7248
- if (!hasRecentBackup("guaranteed", DB_BACKUP_TARGET_WINDOW_MS)) {
7261
+ const { createBackupAsync, enforceRetention, hasBackupToday, hasRecentBackup, hasRecentFailedBackupAttempt } = await import("./db-backup.js");
7262
+ const backingOff = (reason) => {
7263
+ if (!hasRecentFailedBackupAttempt(reason, DB_BACKUP_TARGET_WINDOW_MS)) return false;
7264
+ process.stderr.write(
7265
+ `[exed] DB backup (${reason}) backing off: last attempt was quarantined within the ${Math.round(DB_BACKUP_TARGET_WINDOW_MS / 36e5)}h window; next attempt after it elapses.
7266
+ `
7267
+ );
7268
+ return true;
7269
+ };
7270
+ if (!hasRecentBackup("guaranteed", DB_BACKUP_TARGET_WINDOW_MS) && !backingOff("guaranteed")) {
7249
7271
  const guaranteedPath = await createBackupAsync("guaranteed");
7250
7272
  if (guaranteedPath) {
7251
7273
  acted("db_backup");
@@ -7258,6 +7280,7 @@ function startDatabaseBackup() {
7258
7280
  }
7259
7281
  if (!shouldRunHeavyJob("db_backup_daily")) return;
7260
7282
  if (hasBackupToday("daily")) return;
7283
+ if (backingOff("daily")) return;
7261
7284
  const backupPath = await createBackupAsync("daily");
7262
7285
  if (backupPath) {
7263
7286
  acted("db_backup");
@@ -7267,7 +7290,7 @@ function startDatabaseBackup() {
7267
7290
  `
7268
7291
  );
7269
7292
  try {
7270
- const { maybeVerifyDailyBackup } = await import("../backup-verify-AG54CYGR.js");
7293
+ const { maybeVerifyDailyBackup } = await import("../backup-verify-LPCD7ETV.js");
7271
7294
  const verdict = await maybeVerifyDailyBackup(backupPath);
7272
7295
  if (verdict && !verdict.ok) {
7273
7296
  process.stderr.write(
@@ -7343,7 +7366,7 @@ function startSessionEventsRetention() {
7343
7366
  fired("session_events_retention");
7344
7367
  if (!await ensureStoreForPolling()) return;
7345
7368
  try {
7346
- const { DEFAULT_SESSION_EVENTS_RETENTION_DAYS, sessionEventsRetentionMode } = await import("../session-events-7IJGTBVH.js");
7369
+ const { DEFAULT_SESSION_EVENTS_RETENTION_DAYS, sessionEventsRetentionMode } = await import("../session-events-KB7A2PIL.js");
7347
7370
  const days = SESSION_EVENTS_RETENTION_DAYS ?? DEFAULT_SESSION_EVENTS_RETENTION_DAYS;
7348
7371
  const decision = sessionEventsRetentionMode(isWriteWorkerEnabled(), isDbWriteWorkerReady());
7349
7372
  if (decision.mode === "skip") {
@@ -7353,9 +7376,9 @@ function startSessionEventsRetention() {
7353
7376
  );
7354
7377
  return;
7355
7378
  }
7356
- let count;
7379
+ let swept;
7357
7380
  try {
7358
- count = (await sweepSessionEventsRetentionInWorker(days)).deleted;
7381
+ swept = await sweepSessionEventsRetentionInWorker(days);
7359
7382
  } catch (err) {
7360
7383
  process.stderr.write(
7361
7384
  `[exed] Session-events retention worker failed (${err instanceof Error ? err.message : String(err)}) - skipping this tick
@@ -7363,10 +7386,10 @@ function startSessionEventsRetention() {
7363
7386
  );
7364
7387
  return;
7365
7388
  }
7366
- if (count > 0) {
7389
+ if (swept.deleted > 0) {
7367
7390
  acted("session_events_retention");
7368
7391
  process.stderr.write(
7369
- `[exed] Session-events retention: deleted ${count} events older than ${days}d
7392
+ `[exed] Session-events retention: deleted ${swept.deleted} events older than ${days}d in ${swept.batches} batch(es)${swept.drained ? "" : " \u2014 backlog remains, continuing next tick"}${swept.error ? ` (stopped: ${swept.error})` : ""}
7370
7393
  `
7371
7394
  );
7372
7395
  }
@@ -7394,8 +7417,8 @@ function startConversationsRetention() {
7394
7417
  fired("conversations_retention");
7395
7418
  if (!await ensureStoreForPolling()) return;
7396
7419
  try {
7397
- const { DEFAULT_CONVERSATIONS_RETENTION_DAYS } = await import("../conversations-retention-XTBFJBUM.js");
7398
- const { sessionEventsRetentionMode } = await import("../session-events-7IJGTBVH.js");
7420
+ const { DEFAULT_CONVERSATIONS_RETENTION_DAYS } = await import("../conversations-retention-HFM2K6ND.js");
7421
+ const { sessionEventsRetentionMode } = await import("../session-events-KB7A2PIL.js");
7399
7422
  const days = CONVERSATIONS_RETENTION_DAYS ?? DEFAULT_CONVERSATIONS_RETENTION_DAYS;
7400
7423
  const decision = sessionEventsRetentionMode(isWriteWorkerEnabled(), isDbWriteWorkerReady());
7401
7424
  if (decision.mode === "skip") {
@@ -7415,11 +7438,11 @@ function startConversationsRetention() {
7415
7438
  );
7416
7439
  return;
7417
7440
  }
7418
- if (swept.deleted > 0) {
7441
+ if (swept.deleted > 0 || swept.purged > 0) {
7419
7442
  acted("conversations_retention");
7420
7443
  const what = swept.mode === "purge" ? `PERMANENTLY DELETED ${swept.purged}` : `archived ${swept.archived}`;
7421
7444
  process.stderr.write(
7422
- `[exed] Conversations retention: ${what} messages older than ${days}d
7445
+ `[exed] Conversations retention: ${what} messages older than ${days}d in ${swept.batches} batch(es)${swept.drained ? "" : " \u2014 backlog remains, continuing next tick"}${swept.error ? ` (stopped: ${swept.error})` : ""}
7423
7446
  `
7424
7447
  );
7425
7448
  }
@@ -7444,7 +7467,7 @@ function startIntercomQueueDrain() {
7444
7467
  const tick = async () => traceDaemonTimer("intercom_queue_drain", async () => {
7445
7468
  fired("intercom_queue_drain");
7446
7469
  try {
7447
- const { drainQueueAsync, readQueue } = await import("../intercom-queue-ZJ3MNULM.js");
7470
+ const { drainQueueAsync, readQueue } = await import("../intercom-queue-A24ARSCV.js");
7448
7471
  const {
7449
7472
  sendIntercomAsync: centralSendIntercomAsync,
7450
7473
  countScopedPendingReviews,
@@ -7576,7 +7599,7 @@ function startLedgerDrain() {
7576
7599
  const tick = async () => traceDaemonTimer("ledger_drain", async () => {
7577
7600
  fired("ledger_drain");
7578
7601
  try {
7579
- const { isLedgerEnabled, drainLedger } = await import("../notification-ledger-O6KQYYGK.js");
7602
+ const { isLedgerEnabled, drainLedger } = await import("../notification-ledger-MIYYFMHL.js");
7580
7603
  if (!isLedgerEnabled()) return;
7581
7604
  const result = await drainLedger({
7582
7605
  // Shadow "would-deliver": idle target = would-deliver, busy = retry.
@@ -7616,7 +7639,7 @@ function startOrphanReaper() {
7616
7639
  fired("orphan_reaper");
7617
7640
  if (sweepStarved("orphan_reaper")) return;
7618
7641
  try {
7619
- const { reapOrphanedMcpProcesses, createOrphanReaperRealDepsAsync } = await import("../daemon-orchestration-K4NKFYXO.js");
7642
+ const { reapOrphanedMcpProcesses, createOrphanReaperRealDepsAsync } = await import("../daemon-orchestration-2SROQ2N4.js");
7620
7643
  const deps = await createOrphanReaperRealDepsAsync();
7621
7644
  const reaped = await reapOrphanedMcpProcesses(deps);
7622
7645
  if (reaped.length > 0) acted("orphan_reaper");
@@ -7642,7 +7665,7 @@ function startZombieAgentReaper() {
7642
7665
  fired("zombie_agent_reaper");
7643
7666
  if (sweepStarved("zombie_agent_reaper")) return;
7644
7667
  try {
7645
- const { reapZombieAgentProcesses, createZombieAgentReaperRealDepsAsync } = await import("../daemon-orchestration-K4NKFYXO.js");
7668
+ const { reapZombieAgentProcesses, createZombieAgentReaperRealDepsAsync } = await import("../daemon-orchestration-2SROQ2N4.js");
7646
7669
  const deps = await createZombieAgentReaperRealDepsAsync();
7647
7670
  const reaped = reapZombieAgentProcesses(deps);
7648
7671
  if (reaped.length > 0) acted("zombie_agent_reaper");
@@ -7666,7 +7689,7 @@ async function startDaemonMemoryPressureWatchdog() {
7666
7689
  try {
7667
7690
  const cfg = await getCachedConfig();
7668
7691
  if (!cfg) return;
7669
- const { startMemoryPressureWatchdog: startWatchdog, MEMORY_PRESSURE_WATCHDOG_DEFAULTS } = await import("../memory-pressure-watchdog-NGXTI4HR.js");
7692
+ const { startMemoryPressureWatchdog: startWatchdog, MEMORY_PRESSURE_WATCHDOG_DEFAULTS } = await import("../memory-pressure-watchdog-FROXPH3U.js");
7670
7693
  const watchdogCfg = {
7671
7694
  ...MEMORY_PRESSURE_WATCHDOG_DEFAULTS,
7672
7695
  ...cfg.memoryPressureWatchdog ?? {}
@@ -7698,7 +7721,7 @@ function startWorktreeReaper() {
7698
7721
  fired("worktree_reaper");
7699
7722
  if (sweepStarved("worktree_reaper")) return;
7700
7723
  try {
7701
- const { reapOrphanedWorktrees, createWorktreeReaperRealDeps } = await import("../daemon-orchestration-K4NKFYXO.js");
7724
+ const { reapOrphanedWorktrees, createWorktreeReaperRealDeps } = await import("../daemon-orchestration-2SROQ2N4.js");
7702
7725
  const deps = await createWorktreeReaperRealDeps();
7703
7726
  const result = await reapOrphanedWorktrees(deps);
7704
7727
  if (result.pruned.length > 0) {
@@ -7742,8 +7765,8 @@ function startWorktreeReaper() {
7742
7765
  }
7743
7766
  return;
7744
7767
  }
7745
- const { cleanupAgentWorktree } = await import("../worktree-sweep-34MXJ7S6.js");
7746
- const { getMainRepoRootAsync } = await import("../worktree-7V4ZMF3D.js");
7768
+ const { cleanupAgentWorktree } = await import("../worktree-sweep-2MZ7PKEG.js");
7769
+ const { getMainRepoRootAsync } = await import("../worktree-YIUDLMNS.js");
7747
7770
  const repoRoot = await getMainRepoRootAsync(signal.worktreePath);
7748
7771
  if (repoRoot && signal.agentId) {
7749
7772
  const notes = await cleanupAgentWorktree(repoRoot, signal.agentId);
@@ -7780,7 +7803,7 @@ function startAutoWake() {
7780
7803
  if (!await ensureStoreForPolling()) return;
7781
7804
  try {
7782
7805
  const { getClient } = await import("./database.js");
7783
- const { pollOrphanedTasks, createAutoWakeRealDeps } = await import("../daemon-orchestration-K4NKFYXO.js");
7806
+ const { pollOrphanedTasks, createAutoWakeRealDeps } = await import("../daemon-orchestration-2SROQ2N4.js");
7784
7807
  const deps = createAutoWakeRealDeps(getClient, process.cwd(), getTmuxSessionsAsync);
7785
7808
  const woken = await pollOrphanedTasks(deps);
7786
7809
  if (woken.length > 0) acted("auto_wake");
@@ -7855,7 +7878,7 @@ function startAutoWake() {
7855
7878
  if (age > 60 * 60 * 1e3) {
7856
7879
  try {
7857
7880
  await unlink(signalPath);
7858
- void import("../orchestration-events-2Z2BMMA5.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
7881
+ void import("../orchestration-events-U6DT373C.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
7859
7882
  recordOE({ eventType: "signal.stale", source: "exe-daemon.autoWake", severity: "warn", payload: { file, ageMinutes: Math.round(age / 6e4) } });
7860
7883
  }).catch(() => {
7861
7884
  });
@@ -8004,7 +8027,7 @@ function startStuckTaskRelease() {
8004
8027
  createStaleClaimRealDeps,
8005
8028
  escalateStuckBlockedTasks,
8006
8029
  createStuckBlockedRealDeps
8007
- } = await import("../daemon-orchestration-K4NKFYXO.js");
8030
+ } = await import("../daemon-orchestration-2SROQ2N4.js");
8008
8031
  const { runBudgetedSweep } = await import("../sweep-budget-YGLCNXZZ.js");
8009
8032
  const steps = [
8010
8033
  async () => {
@@ -8116,6 +8139,9 @@ function startExternalRssWatchdog() {
8116
8139
  const heartbeatPath = String(workerData.heartbeatPath || "");
8117
8140
  const stallMs = Number(workerData.stallMs) || 0;
8118
8141
  const stallMarkerPath = String(workerData.stallMarkerPath || markerPath);
8142
+ // Bug 7d911bf3 drain-guard marker (starvationSuppressedMarkerPath()), resolved on
8143
+ // the main thread. Empty = do not stamp.
8144
+ const starvationMarkerPath = String(workerData.starvationMarkerPath || "");
8119
8145
  const starvationRatio = Number(workerData.starvationRatio);
8120
8146
  const cpuCount = cpus().length || 1;
8121
8147
  let overCount = 0;
@@ -8193,12 +8219,28 @@ function startExternalRssWatchdog() {
8193
8219
  if (ageMs < stallMs) return;
8194
8220
  // Starvation-aware (bugs 459b9c5a/9a2e91a5): if the OS is CPU-starved the
8195
8221
  // lag is the scheduler, not an internal hang \u2014 restarting would not help and
8196
- // risks WAL damage. Skip while load/core exceeds the ratio. starvationRatio<=0
8222
+ // risks WAL damage. Skip while load/core exceeds the ratio on ANY of the 1-, 5-
8223
+ // or 15-minute averages. The 1-minute one alone is not enough: it drops under
8224
+ // the ratio within seconds of the run queue draining while this daemon is
8225
+ // still frozen (2026-11-16: a 142s block at 1.49 / 2.4 / 5.05 per core).
8226
+ // Cost: a genuinely wedged daemon on a recently overloaded host is restarted
8227
+ // only once the 15-minute average decays under the ratio. starvationRatio<=0
8197
8228
  // disables this check (always treat a stale heartbeat as a real wedge).
8198
8229
  if (starvationRatio > 0) {
8199
- const load1m = loadavg()[0] || 0;
8200
- if (load1m > cpuCount * starvationRatio) {
8201
- try { process.stderr.write("[exed-watchdog] event-loop heartbeat stale " + Math.round(ageMs/1000) + "s but load=" + load1m.toFixed(2) + "/" + cpuCount + " cpus (starved) \u2014 NOT restarting\\n"); } catch {}
8230
+ const loads = loadavg();
8231
+ const limit = cpuCount * starvationRatio;
8232
+ const horizons = ["1m", "5m", "15m"];
8233
+ const tripped = horizons.filter((h, i) => (Number(loads[i]) || 0) > limit);
8234
+ if (tripped.length > 0) {
8235
+ const loadText = horizons.map((h, i) => "load" + h + "=" + (Number(loads[i]) || 0).toFixed(2)).join(" ");
8236
+ try { process.stderr.write("[exed-watchdog] event-loop heartbeat stale " + Math.round(ageMs/1000) + "s but " + tripped.join("+") + " load > " + limit.toFixed(2) + " (" + loadText + ", " + cpuCount + " cpus; starved) \u2014 NOT restarting\\n"); } catch {}
8237
+ // Bug 7d911bf3 drain guard: the main thread can stamp this marker only
8238
+ // AFTER a block ends, so during a long block the external watchdog reads
8239
+ // it as stale. This thread is still running, so stamp it now.
8240
+ if (starvationMarkerPath) {
8241
+ try { mkdirSync(dirname(starvationMarkerPath), { recursive: true }); } catch {}
8242
+ try { writeFileSync(starvationMarkerPath, "stall_watchdog_starved heartbeat_stale=" + Math.round(ageMs/1000) + "s tripped=" + tripped.join("+") + " " + loadText + " cpus=" + cpuCount + " at " + new Date().toISOString() + " (stall watchdog worker, event-loop block in progress)\\n"); } catch {}
8243
+ }
8202
8244
  return;
8203
8245
  }
8204
8246
  }
@@ -8243,6 +8285,7 @@ function startExternalRssWatchdog() {
8243
8285
  heartbeatPath: process.env.EXE_EVENT_LOOP_STALL_MS === "0" ? "" : eventLoopHeartbeatPath(),
8244
8286
  stallMs: process.env.EXE_EVENT_LOOP_STALL_MS === "0" ? 0 : stallMs,
8245
8287
  stallMarkerPath: eventLoopBlockedMarkerPath(),
8288
+ starvationMarkerPath: starvationSuppressedMarkerPath(),
8246
8289
  starvationRatio: Number.isFinite(starvationRatio) ? starvationRatio : 1.5
8247
8290
  }
8248
8291
  });
@@ -8269,12 +8312,12 @@ function startTaskEnforcementScanner() {
8269
8312
  const tick = async () => traceDaemonTimer("task_enforcement", async () => {
8270
8313
  fired("task_enforcement");
8271
8314
  try {
8272
- const { runTaskEnforcementTick } = await import("../task-enforcement-LVAS55AR.js");
8315
+ const { runTaskEnforcementTick } = await import("../task-enforcement-ESAMX2ML.js");
8273
8316
  const { getTransport } = await import("./transport.js");
8274
8317
  const { loadAgentConfig } = await import("./agent-config.js");
8275
8318
  const { getClient } = await import("./database.js");
8276
8319
  const { loadEmployeesSync } = await import("./employees.js");
8277
- const { sessionScopeFilter } = await import("../task-scope-NLKUVCP5.js");
8320
+ const { sessionScopeFilter } = await import("../task-scope-6LIHTVCC.js");
8278
8321
  const transport = getTransport();
8279
8322
  const { sessions: allSessions, paneCache, aliveSessions } = await getSharedOrchestrationCaches();
8280
8323
  await yieldToEventLoop();
@@ -8285,10 +8328,10 @@ function startTaskEnforcementScanner() {
8285
8328
  sendKeysLiteral: transport.sendKeysLiteral?.bind(transport),
8286
8329
  isAlive: (session) => aliveSessions.has(session)
8287
8330
  };
8288
- const { checkAutoWakeGates } = await import("../daemon-orchestration-K4NKFYXO.js");
8331
+ const { checkAutoWakeGates } = await import("../daemon-orchestration-2SROQ2N4.js");
8289
8332
  const { ensureEmployeeAsync, employeeSessionName, sendIntercomAsync } = await import("./tmux-routing.js");
8290
8333
  const { shouldAutoInstance } = await import("./employees.js");
8291
- const { recordOrchestrationEventBestEffort } = await import("../orchestration-events-2Z2BMMA5.js");
8334
+ const { recordOrchestrationEventBestEffort } = await import("../orchestration-events-U6DT373C.js");
8292
8335
  const projectDir = process.cwd();
8293
8336
  await runTaskEnforcementTick({
8294
8337
  transport: enforcementTransport,
@@ -8618,7 +8661,7 @@ async function sweepExpiredTracesFromDaemonTimer() {
8618
8661
  const memoryIds = idsResult.rows.map((r) => String(r.id)).filter(Boolean);
8619
8662
  if (memoryIds.length === 0) return 0;
8620
8663
  const { getClient } = await import("./database.js");
8621
- const { cleanupGraphLinksForMemories, cleanupCardsForMemories } = await import("../graph-rag-UWOTK4AQ.js");
8664
+ const { cleanupGraphLinksForMemories, cleanupCardsForMemories } = await import("../graph-rag-HB5X6YAF.js");
8622
8665
  const client = getClient();
8623
8666
  await cleanupGraphLinksForMemories(client, memoryIds);
8624
8667
  await cleanupCardsForMemories(client, memoryIds);
@@ -8756,7 +8799,7 @@ function startHookRegistrationWatch() {
8756
8799
  process.stderr.write(`[exed] [HOOKS DEAD] ${mod.formatHookLivenessFailure(report)}
8757
8800
  `);
8758
8801
  try {
8759
- const { pushNotifyAsync: pushNotifyAsync2 } = await import("../push-notifications-QW4BWRC7.js");
8802
+ const { pushNotifyAsync: pushNotifyAsync2 } = await import("../push-notifications-QT2KL3GR.js");
8760
8803
  pushNotifyAsync2({
8761
8804
  event: "hooks_dead",
8762
8805
  title: `${report.broken.length} exe-os hook(s) cannot run`,
@@ -9430,7 +9473,7 @@ function startEventLoopLagDetector() {
9430
9473
  setLastStallClass("blocked", lag);
9431
9474
  process.stderr.write(msg + "\n");
9432
9475
  logDaemonHealth({ event: "event_loop_blocked", pid: process.pid, message: msg, data: { lagMs: lag } });
9433
- void import("../orchestration-events-2Z2BMMA5.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
9476
+ void import("../orchestration-events-U6DT373C.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
9434
9477
  recordOE({ eventType: "daemon.event_loop_blocked", source: "exe-daemon.lagDetector", severity: "error", durationMs: lag });
9435
9478
  }).catch(() => {
9436
9479
  });
@@ -9635,7 +9678,7 @@ function startTaskFileResync() {
9635
9678
  });
9636
9679
  if (Number(res.rowsAffected ?? 0) > 0) {
9637
9680
  synced++;
9638
- void import("../orchestration-events-2Z2BMMA5.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
9681
+ void import("../orchestration-events-U6DT373C.js").then(({ recordOrchestrationEventBestEffort: recordOE }) => {
9639
9682
  recordOE({
9640
9683
  eventType: "task_file.resynced",
9641
9684
  source: "exe-daemon.taskFileResync",
@@ -9669,7 +9712,7 @@ function startTaskGroupBarriers() {
9669
9712
  fired("task_group_barriers");
9670
9713
  if (!await ensureStoreForPolling()) return;
9671
9714
  try {
9672
- const { pollTaskGroupBarriers } = await import("../daemon-orchestration-K4NKFYXO.js");
9715
+ const { pollTaskGroupBarriers } = await import("../daemon-orchestration-2SROQ2N4.js");
9673
9716
  const firedCount = await pollTaskGroupBarriers();
9674
9717
  if (firedCount > 0) {
9675
9718
  acted("task_group_barriers");
@@ -9691,7 +9734,7 @@ function startCheckpointGc() {
9691
9734
  fired("checkpoint_gc");
9692
9735
  if (!await ensureStoreForPolling()) return;
9693
9736
  try {
9694
- const { gcStaleCheckpoints } = await import("../daemon-orchestration-K4NKFYXO.js");
9737
+ const { gcStaleCheckpoints } = await import("../daemon-orchestration-2SROQ2N4.js");
9695
9738
  const cleared = await gcStaleCheckpoints();
9696
9739
  if (cleared > 0) {
9697
9740
  acted("checkpoint_gc");
@@ -9731,14 +9774,14 @@ function startDispatchAckCleanup() {
9731
9774
  function startProjectionWorkerDeferred() {
9732
9775
  setTimeout(async () => {
9733
9776
  try {
9734
- const { startProjectionWorker } = await import("../projection-worker-3GEVFPAI.js");
9777
+ const { startProjectionWorker } = await import("../projection-worker-HHEYDVMY.js");
9735
9778
  startProjectionWorker();
9736
9779
  } catch {
9737
9780
  }
9738
9781
  }, 2e4);
9739
9782
  }
9740
9783
  async function startToolTelemetry() {
9741
- const { startToolTelemetryFlush } = await import("../tool-telemetry-I3SEU5M5.js");
9784
+ const { startToolTelemetryFlush } = await import("../tool-telemetry-A7NUFJI4.js");
9742
9785
  startToolTelemetryFlush();
9743
9786
  process.stderr.write("[exed] Tool telemetry started (flush every 5m)\n");
9744
9787
  }
@@ -9911,7 +9954,7 @@ function startLocalFirstTimers() {
9911
9954
  fired("orphan_task_cleanup");
9912
9955
  try {
9913
9956
  if (!await ensureStoreForPolling()) return;
9914
- const { cleanOrphanedTaskFiles } = await import("../tasks-crud-NQDPLHNZ.js");
9957
+ const { cleanOrphanedTaskFiles } = await import("../tasks-crud-NWNW7RDH.js");
9915
9958
  const count = await cleanOrphanedTaskFiles();
9916
9959
  if (count > 0) {
9917
9960
  acted("orphan_task_cleanup");
@@ -9927,7 +9970,7 @@ function startLocalFirstTimers() {
9927
9970
  fired("task_file_consistency");
9928
9971
  try {
9929
9972
  if (!await ensureStoreForPolling()) return;
9930
- const { checkTaskFileConsistency } = await import("../tasks-crud-NQDPLHNZ.js");
9973
+ const { checkTaskFileConsistency } = await import("../tasks-crud-NWNW7RDH.js");
9931
9974
  const mismatches = await checkTaskFileConsistency();
9932
9975
  if (mismatches > 0) {
9933
9976
  acted("task_file_consistency");
@@ -9944,10 +9987,18 @@ function startLocalFirstTimers() {
9944
9987
  startDaemonHeartbeat();
9945
9988
  startDispatchAckCleanup();
9946
9989
  const TELEMETRY_DAILY_MS = 24 * 60 * 60 * 1e3;
9990
+ let telemetryDeferredLogged = false;
9947
9991
  const telemetryDaily = async () => {
9948
9992
  try {
9949
- const { sendTelemetry, isTelemetryEnabled } = await import("../telemetry-upload-6DR6AL3V.js");
9993
+ const { sendTelemetry, isTelemetryEnabled, canSendTelemetry } = await import("../telemetry-upload-MUIZKQDT.js");
9950
9994
  if (!isTelemetryEnabled()) return;
9995
+ if (!canSendTelemetry()) {
9996
+ if (!telemetryDeferredLogged) {
9997
+ telemetryDeferredLogged = true;
9998
+ process.stderr.write("[exed] Daily telemetry paused: the telemetry notice has not been shown yet (run `exe-os telemetry status`)\n");
9999
+ }
10000
+ return;
10001
+ }
9951
10002
  const { upstream } = await sendTelemetry(24);
9952
10003
  if (upstream.startsWith("sent")) {
9953
10004
  process.stderr.write("[exed] Daily telemetry sent successfully\n");
@@ -10189,7 +10240,7 @@ try {
10189
10240
  });
10190
10241
  }
10191
10242
  try {
10192
- const { initOrgPartnerRuntime } = await import("../org-partner-runtime-UI35IHUC.js");
10243
+ const { initOrgPartnerRuntime } = await import("../org-partner-runtime-PCGVG3M2.js");
10193
10244
  await initOrgPartnerRuntime();
10194
10245
  } catch (err) {
10195
10246
  process.stderr.write(
@@ -10215,7 +10266,7 @@ try {
10215
10266
  });
10216
10267
  startEventLoopLagDetector();
10217
10268
  try {
10218
- const { startMaintenanceLane, isMaintenanceLaneEnabled } = await import("../maintenance-worker-OY2E4BM5.js");
10269
+ const { startMaintenanceLane, isMaintenanceLaneEnabled } = await import("../maintenance-worker-R5N3A2KM.js");
10219
10270
  if (isMaintenanceLaneEnabled()) {
10220
10271
  startMaintenanceLane();
10221
10272
  }