@remnic/core 10.0.141 → 10.0.143

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 (275) hide show
  1. package/dist/abstraction-nodes.js +4 -4
  2. package/dist/access-admin-ops-surface.js +107 -106
  3. package/dist/access-cli.js +107 -106
  4. package/dist/access-cli.js.map +1 -1
  5. package/dist/access-extraction-force-flush-preempt.js +107 -106
  6. package/dist/access-extraction-force-flush.js +107 -106
  7. package/dist/access-http-briefing.js +107 -106
  8. package/dist/access-http-query.js +107 -106
  9. package/dist/access-http.js +107 -106
  10. package/dist/access-identity-continuity-surface.js +107 -106
  11. package/dist/access-lcm-surface.js +107 -106
  12. package/dist/access-mcp.d.ts.map +1 -1
  13. package/dist/access-mcp.js +107 -106
  14. package/dist/access-observe-write-category.js +2 -2
  15. package/dist/access-observe-write-surface.js +107 -106
  16. package/dist/access-operations-batch.js +107 -106
  17. package/dist/access-operations.js +107 -106
  18. package/dist/access-recall-concurrency.js +107 -106
  19. package/dist/access-recall-mcp-search-options.d.ts +42 -0
  20. package/dist/access-recall-mcp-search-options.d.ts.map +1 -0
  21. package/dist/access-recall-mcp-search-options.js +8 -0
  22. package/dist/access-recall-response.js +107 -106
  23. package/dist/access-recall-surface.d.ts.map +1 -1
  24. package/dist/access-recall-surface.js +107 -106
  25. package/dist/access-schema.d.ts +36 -0
  26. package/dist/access-schema.d.ts.map +1 -1
  27. package/dist/access-schema.js +3 -1
  28. package/dist/access-service.js +107 -106
  29. package/dist/active-recall.js +22 -22
  30. package/dist/adapters/index.js +4 -4
  31. package/dist/adapters/registry.js +2 -2
  32. package/dist/briefing.js +23 -23
  33. package/dist/buffer.js +7 -7
  34. package/dist/{capsule-merge-ILR35DIB.js → capsule-merge-PCSDJOAO.js} +5 -5
  35. package/dist/causal-consolidation.js +23 -23
  36. package/dist/{chunk-6WV76JHC.js → chunk-22M7NYJK.js} +2 -2
  37. package/dist/{chunk-F476AJQJ.js → chunk-2642VLWP.js} +2 -2
  38. package/dist/{chunk-UF5RTFN3.js → chunk-2DXDHGLG.js} +5 -5
  39. package/dist/{chunk-LPDOCXHH.js → chunk-2M7F2I7I.js} +2 -2
  40. package/dist/{chunk-PFUXPTBT.js → chunk-4LF5E2LM.js} +5 -5
  41. package/dist/{chunk-KUQLUYIR.js → chunk-4QEDFEBY.js} +3 -3
  42. package/dist/{chunk-C64XATK7.js → chunk-4U5VHHVF.js} +39 -3
  43. package/dist/chunk-4U5VHHVF.js.map +1 -0
  44. package/dist/{chunk-WGM2KSWN.js → chunk-5XONJ5C4.js} +2 -2
  45. package/dist/{chunk-3RJU7QFE.js → chunk-72QMGTDF.js} +2 -2
  46. package/dist/{chunk-XOOYE37V.js → chunk-7SUAHTGH.js} +2 -2
  47. package/dist/{chunk-3PZDG5ZH.js → chunk-A7SU5ET7.js} +2 -2
  48. package/dist/{chunk-VH4UCI3R.js → chunk-AHUTHRTL.js} +3 -3
  49. package/dist/{chunk-O3JG4PD3.js → chunk-AW56K4SI.js} +2 -2
  50. package/dist/{chunk-G2CGIFRP.js → chunk-AXR472RS.js} +2 -2
  51. package/dist/{chunk-CFSCKCT5.js → chunk-B4I37XX6.js} +4 -4
  52. package/dist/{chunk-NWA6IXR3.js → chunk-B7HYXVME.js} +27 -1
  53. package/dist/chunk-B7HYXVME.js.map +1 -0
  54. package/dist/{chunk-JCBKGPFE.js → chunk-BFFKIME2.js} +3 -3
  55. package/dist/{chunk-GNIMBEOK.js → chunk-C7CP7OEG.js} +11 -11
  56. package/dist/{chunk-NM6UL4W5.js → chunk-CPWZGM4E.js} +9 -9
  57. package/dist/{chunk-BDIXKROL.js → chunk-CPYVH6LI.js} +8 -8
  58. package/dist/chunk-CQ3IG3GZ.js +30 -0
  59. package/dist/chunk-CQ3IG3GZ.js.map +1 -0
  60. package/dist/{chunk-H6VQ7L5D.js → chunk-CSZCLTIV.js} +5 -5
  61. package/dist/{chunk-UM22PKA3.js → chunk-DVC2OYLF.js} +2 -2
  62. package/dist/{chunk-4IMMF5W6.js → chunk-F3PTUQIK.js} +3 -3
  63. package/dist/{chunk-D6IGZYTN.js → chunk-FJEYZSJD.js} +3 -3
  64. package/dist/{chunk-ITAUMNQU.js → chunk-FPII4O7C.js} +2 -2
  65. package/dist/{chunk-FL3O34XF.js → chunk-FYJYQ65N.js} +3 -3
  66. package/dist/{chunk-HRMOKGQM.js → chunk-GCQIXPWZ.js} +4 -4
  67. package/dist/{chunk-UX7KPVAM.js → chunk-GOT6G3C6.js} +2 -2
  68. package/dist/{chunk-FONPAA43.js → chunk-HQJAQENN.js} +2 -2
  69. package/dist/{chunk-DGLNT6VO.js → chunk-HQV5GCMD.js} +3 -3
  70. package/dist/{chunk-USVA4XWY.js → chunk-IIVDGKMW.js} +3 -3
  71. package/dist/{chunk-K5CM4M65.js → chunk-ITT4SVVA.js} +7 -7
  72. package/dist/{chunk-2HI22OK7.js → chunk-JKYAKDBP.js} +2 -2
  73. package/dist/{chunk-MGN2RQRG.js → chunk-KAGLV5KH.js} +2 -2
  74. package/dist/{chunk-VRBGYSSQ.js → chunk-KETT3EZO.js} +2 -2
  75. package/dist/chunk-KETT3EZO.js.map +1 -0
  76. package/dist/{chunk-2NJ74RQU.js → chunk-LE27GU4M.js} +2 -2
  77. package/dist/{chunk-7NSGKXFD.js → chunk-LYPBQHAX.js} +4 -4
  78. package/dist/{chunk-EGDUG2ZX.js → chunk-MBBRU5LJ.js} +2 -2
  79. package/dist/{chunk-IUXTKLZY.js → chunk-MSVBNOFX.js} +22 -22
  80. package/dist/{chunk-DOJBV6WR.js → chunk-MX5VGD6C.js} +5 -5
  81. package/dist/{chunk-GAVFANAB.js → chunk-NFNH4ZPB.js} +2 -2
  82. package/dist/{chunk-NCS2NXSP.js → chunk-NIG54XKA.js} +3 -3
  83. package/dist/{chunk-EIZUL6JC.js → chunk-NKO4VZRO.js} +3 -3
  84. package/dist/{chunk-QZUT4VTV.js → chunk-O5OFHBAP.js} +2 -2
  85. package/dist/{chunk-SZ6QV3DY.js → chunk-OM2YWPFX.js} +2 -2
  86. package/dist/{chunk-7YD5XSJK.js → chunk-OOJMQV3L.js} +5 -5
  87. package/dist/{chunk-FJTRNFI4.js → chunk-P3COXHWB.js} +2 -2
  88. package/dist/{chunk-ZG4GNPRE.js → chunk-PBE7NFB5.js} +5 -5
  89. package/dist/{chunk-SZK2DX5U.js → chunk-PCMGMPQZ.js} +2 -2
  90. package/dist/{chunk-WIV37T4U.js → chunk-QBNZLS3U.js} +5 -5
  91. package/dist/{chunk-DLZGSZVC.js → chunk-RJ5L6LRD.js} +5 -5
  92. package/dist/{chunk-342VFB56.js → chunk-RVPISCKY.js} +3 -3
  93. package/dist/{chunk-BYWNF25B.js → chunk-SFHEIWIE.js} +2 -2
  94. package/dist/{chunk-YXFY4YOF.js → chunk-TD72RHHZ.js} +3 -3
  95. package/dist/{chunk-FREKFMCA.js → chunk-TJE4LIVD.js} +2 -2
  96. package/dist/{chunk-M5GVCJSJ.js → chunk-TVWLYSX4.js} +2 -2
  97. package/dist/{chunk-O3GZPLVY.js → chunk-UUSL22HE.js} +2 -2
  98. package/dist/{chunk-63JPXUFA.js → chunk-VKTZXJSR.js} +2 -2
  99. package/dist/{chunk-27N6SGEY.js → chunk-VNMJWFYR.js} +2 -2
  100. package/dist/{chunk-AA6G3W3B.js → chunk-W236BAJR.js} +2 -2
  101. package/dist/{chunk-GCHM5BYL.js → chunk-WWQMZBDI.js} +4 -4
  102. package/dist/{chunk-OVZIYLBZ.js → chunk-YCK26VSL.js} +2 -2
  103. package/dist/{chunk-3GHQCNNG.js → chunk-YJUZ465J.js} +5 -5
  104. package/dist/{chunk-DIBOWE53.js → chunk-YXPUQBHK.js} +17 -2
  105. package/dist/chunk-YXPUQBHK.js.map +1 -0
  106. package/dist/{chunk-QHDBKC5Z.js → chunk-ZFJOPBQD.js} +2 -2
  107. package/dist/{chunk-JLD44JR7.js → chunk-ZNYOY2MM.js} +354 -330
  108. package/dist/chunk-ZNYOY2MM.js.map +1 -0
  109. package/dist/cli.js +107 -106
  110. package/dist/coding/export-okf-codegraph.js +22 -22
  111. package/dist/compounding/engine.js +23 -23
  112. package/dist/config.js +22 -22
  113. package/dist/connectors/codex-materialize-runner.js +22 -22
  114. package/dist/connectors/index.js +22 -22
  115. package/dist/consolidation-provenance-check.js +5 -5
  116. package/dist/consolidation-undo.js +4 -4
  117. package/dist/contradiction/index.js +3 -3
  118. package/dist/convergence-refresh.js +24 -24
  119. package/dist/corpus-watermark.js +24 -24
  120. package/dist/cue-anchors.js +5 -5
  121. package/dist/deep-recall-http-glue.js +2 -2
  122. package/dist/{entity-canonical-id-migration-IG77BOGD.js → entity-canonical-id-migration-ZOWR44RK.js} +4 -4
  123. package/dist/entity-retrieval.js +23 -23
  124. package/dist/explicit-capture.js +107 -106
  125. package/dist/extraction.js +26 -26
  126. package/dist/harmonic-construction.js +6 -6
  127. package/dist/harmonic-graph-version.js +3 -3
  128. package/dist/harmonic-retrieval.js +25 -25
  129. package/dist/index.js +165 -162
  130. package/dist/lcm/engine.js +2 -2
  131. package/dist/lcm/index.js +5 -5
  132. package/dist/location/index.js +23 -23
  133. package/dist/maintenance/memory-governance.js +22 -22
  134. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +22 -22
  135. package/dist/maintenance/rebuild-memory-projection-runner.js +24 -24
  136. package/dist/maintenance/rebuild-memory-projection.js +23 -23
  137. package/dist/memory-browse.js +6 -6
  138. package/dist/memory-cache.d.ts +5 -0
  139. package/dist/memory-cache.d.ts.map +1 -1
  140. package/dist/memory-cache.js +9 -1
  141. package/dist/memory-corpus-version.js +2 -2
  142. package/dist/namespaces/migrate.js +23 -23
  143. package/dist/namespaces/search.js +11 -11
  144. package/dist/namespaces/storage.js +22 -22
  145. package/dist/operator-doctor-corpus.js +25 -25
  146. package/dist/operator-toolkit.js +30 -30
  147. package/dist/orchestration/backlog-scheduler.js +108 -107
  148. package/dist/orchestration/backlog-scheduler.js.map +1 -1
  149. package/dist/orchestration/buffer-drain-runner.js +108 -107
  150. package/dist/orchestration/maintenance.js +30 -30
  151. package/dist/orchestration/orchestrator-helpers.d.ts +3 -15
  152. package/dist/orchestration/orchestrator-helpers.d.ts.map +1 -1
  153. package/dist/orchestration/recall-internal-deps.d.ts +2 -1
  154. package/dist/orchestration/recall-internal-deps.d.ts.map +1 -1
  155. package/dist/orchestration/recall-internal.d.ts.map +1 -1
  156. package/dist/orchestration/recall-search-pipeline.d.ts +3 -10
  157. package/dist/orchestration/recall-search-pipeline.d.ts.map +1 -1
  158. package/dist/orchestrator.d.ts +2 -2
  159. package/dist/orchestrator.d.ts.map +1 -1
  160. package/dist/orchestrator.js +107 -106
  161. package/dist/page-versioning.js +4 -4
  162. package/dist/qmd.js +3 -3
  163. package/dist/recall-composition-decision.js +2 -2
  164. package/dist/recall-navigation.js +107 -106
  165. package/dist/recall-state-view-admission.js +6 -6
  166. package/dist/recall-why-service.js +6 -6
  167. package/dist/{resolution-7XBNQVKU.js → resolution-A3NAI3YE.js} +4 -4
  168. package/dist/resolution-A3NAI3YE.js.map +1 -0
  169. package/dist/resume-bundles.js +23 -23
  170. package/dist/search/factory.js +10 -10
  171. package/dist/search/index.js +14 -14
  172. package/dist/search/lancedb-backend.js +3 -3
  173. package/dist/search/meilisearch-backend.js +3 -3
  174. package/dist/search/orama-backend.js +3 -3
  175. package/dist/search/port.d.ts +2 -0
  176. package/dist/search/port.d.ts.map +1 -1
  177. package/dist/search/port.js +3 -1
  178. package/dist/search/remote-backend.js +2 -2
  179. package/dist/semantic-consolidation.js +23 -23
  180. package/dist/semantic-rule-promotion.js +22 -22
  181. package/dist/semantic-rule-verifier.js +22 -22
  182. package/dist/source-agent-qualifier.js +25 -25
  183. package/dist/standup/build.js +22 -22
  184. package/dist/storage.js +21 -21
  185. package/dist/transfer/capsule-import.js +5 -5
  186. package/dist/transfer/export-okf.js +23 -23
  187. package/dist/verified-recall.js +22 -22
  188. package/dist/who-knows-cli.js +23 -23
  189. package/dist/who-knows.js +22 -22
  190. package/package.json +2 -2
  191. package/src/access-mcp.test.ts +25 -0
  192. package/src/access-mcp.ts +2 -0
  193. package/src/access-recall-mcp-search-options.ts +26 -0
  194. package/src/access-recall-surface.ts +2 -3
  195. package/src/access-schema.ts +24 -0
  196. package/src/memory-cache.test.ts +27 -0
  197. package/src/memory-cache.ts +45 -2
  198. package/src/orchestration/orchestrator-helpers.ts +4 -16
  199. package/src/orchestration/recall-internal-deps.ts +2 -0
  200. package/src/orchestration/recall-internal.ts +9 -8
  201. package/src/orchestration/recall-search-pipeline.test.ts +65 -0
  202. package/src/orchestration/recall-search-pipeline.ts +17 -20
  203. package/src/orchestrator.ts +17 -54
  204. package/src/recall-navigation-surface.test.ts +3 -3
  205. package/src/recall-search-options.test.ts +64 -0
  206. package/src/search/port.ts +35 -0
  207. package/dist/chunk-C64XATK7.js.map +0 -1
  208. package/dist/chunk-DIBOWE53.js.map +0 -1
  209. package/dist/chunk-JLD44JR7.js.map +0 -1
  210. package/dist/chunk-NWA6IXR3.js.map +0 -1
  211. package/dist/chunk-VRBGYSSQ.js.map +0 -1
  212. /package/dist/{entity-canonical-id-migration-IG77BOGD.js.map → access-recall-mcp-search-options.js.map} +0 -0
  213. /package/dist/{capsule-merge-ILR35DIB.js.map → capsule-merge-PCSDJOAO.js.map} +0 -0
  214. /package/dist/{chunk-6WV76JHC.js.map → chunk-22M7NYJK.js.map} +0 -0
  215. /package/dist/{chunk-F476AJQJ.js.map → chunk-2642VLWP.js.map} +0 -0
  216. /package/dist/{chunk-UF5RTFN3.js.map → chunk-2DXDHGLG.js.map} +0 -0
  217. /package/dist/{chunk-LPDOCXHH.js.map → chunk-2M7F2I7I.js.map} +0 -0
  218. /package/dist/{chunk-PFUXPTBT.js.map → chunk-4LF5E2LM.js.map} +0 -0
  219. /package/dist/{chunk-KUQLUYIR.js.map → chunk-4QEDFEBY.js.map} +0 -0
  220. /package/dist/{chunk-WGM2KSWN.js.map → chunk-5XONJ5C4.js.map} +0 -0
  221. /package/dist/{chunk-3RJU7QFE.js.map → chunk-72QMGTDF.js.map} +0 -0
  222. /package/dist/{chunk-XOOYE37V.js.map → chunk-7SUAHTGH.js.map} +0 -0
  223. /package/dist/{chunk-3PZDG5ZH.js.map → chunk-A7SU5ET7.js.map} +0 -0
  224. /package/dist/{chunk-VH4UCI3R.js.map → chunk-AHUTHRTL.js.map} +0 -0
  225. /package/dist/{chunk-O3JG4PD3.js.map → chunk-AW56K4SI.js.map} +0 -0
  226. /package/dist/{chunk-G2CGIFRP.js.map → chunk-AXR472RS.js.map} +0 -0
  227. /package/dist/{chunk-CFSCKCT5.js.map → chunk-B4I37XX6.js.map} +0 -0
  228. /package/dist/{chunk-JCBKGPFE.js.map → chunk-BFFKIME2.js.map} +0 -0
  229. /package/dist/{chunk-GNIMBEOK.js.map → chunk-C7CP7OEG.js.map} +0 -0
  230. /package/dist/{chunk-NM6UL4W5.js.map → chunk-CPWZGM4E.js.map} +0 -0
  231. /package/dist/{chunk-BDIXKROL.js.map → chunk-CPYVH6LI.js.map} +0 -0
  232. /package/dist/{chunk-H6VQ7L5D.js.map → chunk-CSZCLTIV.js.map} +0 -0
  233. /package/dist/{chunk-UM22PKA3.js.map → chunk-DVC2OYLF.js.map} +0 -0
  234. /package/dist/{chunk-4IMMF5W6.js.map → chunk-F3PTUQIK.js.map} +0 -0
  235. /package/dist/{chunk-D6IGZYTN.js.map → chunk-FJEYZSJD.js.map} +0 -0
  236. /package/dist/{chunk-ITAUMNQU.js.map → chunk-FPII4O7C.js.map} +0 -0
  237. /package/dist/{chunk-FL3O34XF.js.map → chunk-FYJYQ65N.js.map} +0 -0
  238. /package/dist/{chunk-HRMOKGQM.js.map → chunk-GCQIXPWZ.js.map} +0 -0
  239. /package/dist/{chunk-UX7KPVAM.js.map → chunk-GOT6G3C6.js.map} +0 -0
  240. /package/dist/{chunk-FONPAA43.js.map → chunk-HQJAQENN.js.map} +0 -0
  241. /package/dist/{chunk-DGLNT6VO.js.map → chunk-HQV5GCMD.js.map} +0 -0
  242. /package/dist/{chunk-USVA4XWY.js.map → chunk-IIVDGKMW.js.map} +0 -0
  243. /package/dist/{chunk-K5CM4M65.js.map → chunk-ITT4SVVA.js.map} +0 -0
  244. /package/dist/{chunk-2HI22OK7.js.map → chunk-JKYAKDBP.js.map} +0 -0
  245. /package/dist/{chunk-MGN2RQRG.js.map → chunk-KAGLV5KH.js.map} +0 -0
  246. /package/dist/{chunk-2NJ74RQU.js.map → chunk-LE27GU4M.js.map} +0 -0
  247. /package/dist/{chunk-7NSGKXFD.js.map → chunk-LYPBQHAX.js.map} +0 -0
  248. /package/dist/{chunk-EGDUG2ZX.js.map → chunk-MBBRU5LJ.js.map} +0 -0
  249. /package/dist/{chunk-IUXTKLZY.js.map → chunk-MSVBNOFX.js.map} +0 -0
  250. /package/dist/{chunk-DOJBV6WR.js.map → chunk-MX5VGD6C.js.map} +0 -0
  251. /package/dist/{chunk-GAVFANAB.js.map → chunk-NFNH4ZPB.js.map} +0 -0
  252. /package/dist/{chunk-NCS2NXSP.js.map → chunk-NIG54XKA.js.map} +0 -0
  253. /package/dist/{chunk-EIZUL6JC.js.map → chunk-NKO4VZRO.js.map} +0 -0
  254. /package/dist/{chunk-QZUT4VTV.js.map → chunk-O5OFHBAP.js.map} +0 -0
  255. /package/dist/{chunk-SZ6QV3DY.js.map → chunk-OM2YWPFX.js.map} +0 -0
  256. /package/dist/{chunk-7YD5XSJK.js.map → chunk-OOJMQV3L.js.map} +0 -0
  257. /package/dist/{chunk-FJTRNFI4.js.map → chunk-P3COXHWB.js.map} +0 -0
  258. /package/dist/{chunk-ZG4GNPRE.js.map → chunk-PBE7NFB5.js.map} +0 -0
  259. /package/dist/{chunk-SZK2DX5U.js.map → chunk-PCMGMPQZ.js.map} +0 -0
  260. /package/dist/{chunk-WIV37T4U.js.map → chunk-QBNZLS3U.js.map} +0 -0
  261. /package/dist/{chunk-DLZGSZVC.js.map → chunk-RJ5L6LRD.js.map} +0 -0
  262. /package/dist/{chunk-342VFB56.js.map → chunk-RVPISCKY.js.map} +0 -0
  263. /package/dist/{chunk-BYWNF25B.js.map → chunk-SFHEIWIE.js.map} +0 -0
  264. /package/dist/{chunk-YXFY4YOF.js.map → chunk-TD72RHHZ.js.map} +0 -0
  265. /package/dist/{chunk-FREKFMCA.js.map → chunk-TJE4LIVD.js.map} +0 -0
  266. /package/dist/{chunk-M5GVCJSJ.js.map → chunk-TVWLYSX4.js.map} +0 -0
  267. /package/dist/{chunk-O3GZPLVY.js.map → chunk-UUSL22HE.js.map} +0 -0
  268. /package/dist/{chunk-63JPXUFA.js.map → chunk-VKTZXJSR.js.map} +0 -0
  269. /package/dist/{chunk-27N6SGEY.js.map → chunk-VNMJWFYR.js.map} +0 -0
  270. /package/dist/{chunk-AA6G3W3B.js.map → chunk-W236BAJR.js.map} +0 -0
  271. /package/dist/{chunk-GCHM5BYL.js.map → chunk-WWQMZBDI.js.map} +0 -0
  272. /package/dist/{chunk-OVZIYLBZ.js.map → chunk-YCK26VSL.js.map} +0 -0
  273. /package/dist/{chunk-3GHQCNNG.js.map → chunk-YJUZ465J.js.map} +0 -0
  274. /package/dist/{chunk-QHDBKC5Z.js.map → chunk-ZFJOPBQD.js.map} +0 -0
  275. /package/dist/{resolution-7XBNQVKU.js.map → entity-canonical-id-migration-ZOWR44RK.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/orchestration/orchestrator-helpers.ts"],"sourcesContent":["/** Orchestrator module-level helpers relocated from orchestrator.ts (#1526); behavior-preserving move. */\nimport { createHash } from \"node:crypto\";\nimport os from \"node:os\";\nimport path from \"node:path\";\nimport { abortError as sharedAbortError, throwIfAborted as sharedThrowIfAborted } from \"../abort-error.js\";\nimport type { CapabilitySet } from \"../capabilities.js\";\nimport { buildCompressionGuidelinesMarkdown as buildCompressionGuidelinesMarkdownV2 } from \"../compression-optimizer.js\";\nimport { FallbackLlmClient } from \"../fallback-llm.js\";\nimport { hasBroadGraphIntent, planRecallMode } from \"../intent.js\";\nimport { resolveLifecycleState } from \"../lifecycle.js\";\nimport { log } from \"../logger.js\";\nimport type { GraphRecallRankedResult, GraphRecallShadowComparison } from \"./graph-recall-coordinator.js\";\nimport { parseQmdExplain } from \"../qmd.js\";\nimport type { GraphRecallExpandedEntry } from \"../recall-state.js\";\nimport type { SearchDegradation, SearchQueryOptions } from \"../search/port.js\";\nimport type { RecallXrayServedBy } from \"../recall-xray.js\";\nimport type { RecallContextComposition } from \"../recall-context-composition.js\";\nimport { type BufferTurn, type MemoryActionEvent, type MemoryFile, type MemoryFrontmatter, type MemoryIntent, type PluginConfig, type QmdSearchResult, type RecallPlanMode, confidenceTier } from \"../types.js\";\nimport { categoryDirName } from \"../utils/category-dir.js\";\nimport { parseFlexibleIsoTimestamp } from \"../utils/iso-timestamp.js\";\n\n/** Freshness window for the artifact source status cache read by NamespaceReadFanoutCoordinator. */\nexport const ARTIFACT_STATUS_CACHE_TTL_MS = 60_000;\nexport interface BulkImportBatchIngestResult {\n attemptedTurnCount: number;\n extractionCount: number;\n persistedCount: number;\n durableOutputCount: number;\n skippedCount: number;\n failedCount: number;\n postPersistMetadataFailureCount: number;\n processedTurnCount: number;\n}\n\nexport class BulkImportBatchPartialFailureError extends Error {\n readonly partialResult: BulkImportBatchIngestResult;\n\n readonly originalError: unknown;\n\n constructor(\n message: string,\n partialResult: BulkImportBatchIngestResult,\n originalError: unknown,\n ) {\n super(message);\n this.name = \"BulkImportBatchPartialFailureError\";\n this.partialResult = partialResult;\n this.originalError = originalError;\n }\n}\n\nexport interface GraphRecallSnapshot {\n recordedAt: string;\n mode: RecallPlanMode | string;\n queryHash: string;\n queryLength: number;\n namespaces: string[];\n seedCount: number;\n expandedCount: number;\n seeds: string[];\n expanded: GraphRecallExpandedEntry[];\n status?: \"completed\" | \"skipped\" | \"aborted\";\n reason?: string;\n shadowMode?: boolean;\n queryIntent?: MemoryIntent;\n seedResults?: GraphRecallRankedResult[];\n finalResults?: GraphRecallRankedResult[];\n shadowComparison?: GraphRecallShadowComparison;\n}\n\nexport interface IntentDebugSnapshot {\n recordedAt: string;\n promptHash: string;\n promptLength: number;\n retrievalQueryHash: string;\n retrievalQueryLength: number;\n plannerEnabled: boolean;\n plannedMode: RecallPlanMode;\n effectiveMode: RecallPlanMode;\n recallResultLimit: number;\n queryIntent: MemoryIntent;\n graphExpandedIntentDetected: boolean;\n graphDecision: {\n status: \"not_requested\" | \"skipped\" | \"completed\" | \"aborted\";\n reason?: string;\n shadowMode: boolean;\n qmdAvailable: boolean;\n graphRecallEnabled: boolean;\n multiGraphMemoryEnabled: boolean;\n };\n}\n\nexport interface QmdRecallSnapshot {\n recordedAt: string;\n queryHash: string;\n queryLength: number;\n collection?: string;\n namespaces: string[];\n fetchLimit: number;\n primaryResultCount: number;\n hybridResultCount: number;\n queryAwareSeedCount: number;\n resultCount: number;\n intentHint?: string;\n explainEnabled: boolean;\n hybridTopUpUsed: boolean;\n hybridTopUpSkippedReason?: string;\n results: QmdSearchResult[];\n}\n\nexport interface RecallModeDecision {\n plannedMode: RecallPlanMode;\n effectiveMode: RecallPlanMode;\n graphExpandedIntentDetected: boolean;\n graphReason?: string;\n /**\n * Where `plannedMode` came from (issue #1367 / Option C). `\"heuristic\"` for\n * the regex planner; `\"llm\"` when the LLM planner classified it; and\n * `\"heuristic-fallback\"` when the LLM was enabled but errored/timed out and we\n * fell back. Absent on the synchronous heuristic-only path.\n */\n plannerSource?: \"heuristic\" | \"llm\" | \"heuristic-fallback\";\n /** Short rationale from the planner (for telemetry / x-ray). */\n plannerReason?: string;\n /** Wall-clock spent in the LLM planner call, when one was made. */\n plannerLatencyMs?: number;\n /** True when the LLM planner was enabled but fell back to the heuristic. */\n plannerFallbackUsed?: boolean;\n /** Model that served the LLM classification, when one was used. */\n plannerModelUsed?: string;\n /**\n * The regex-heuristic baseline mode, captured whenever the LLM planner ran\n * (any source). Lets operators compare planned-vs-heuristic during rollout —\n * distinct from `plannedMode`, which on the LLM path is the LLM's choice.\n */\n plannerHeuristicMode?: RecallPlanMode;\n /**\n * In shadow mode, the mode the LLM *would* have chosen (recorded for\n * comparison) while `effectiveMode` stays on the heuristic decision.\n */\n shadowLlmMode?: RecallPlanMode;\n}\n\n/**\n * Map the orchestrator's internal `recallSource` strings to the\n * X-ray `servedBy` vocabulary (issue #570 PR 1). The X-ray tier\n * ladder intentionally flattens QMD / embedding / cold-fallback to\n * the `hybrid` tier because they all materialize through the same\n * hybrid BM25+vector pipeline from the caller's perspective. The\n * `recent_scan` path gets its own dedicated tier because it bypasses\n * the hybrid pipeline entirely. `none` is treated as `hybrid` on the\n * theory that a query that returned nothing still routed through the\n * hybrid pipeline — but callers should normally gate capture on\n * `recalledMemoryIds.length > 0`.\n */\nexport function mapRecallSourceToXrayServedBy(\n source:\n | \"none\"\n | \"hot_qmd\"\n | \"hot_embedding\"\n | \"cold_fallback\"\n | \"recent_scan\",\n): RecallXrayServedBy {\n // Exhaustive switch: every current union member is explicitly\n // listed so TypeScript surfaces a compile error if a new source is\n // added without a deliberate mapping. The `never`-typed fallthrough\n // keeps the function total at runtime — if the caller passes an\n // unexpected value that slipped past the type system (e.g. a JSON\n // deserialization), we still fall back to `hybrid`.\n switch (source) {\n case \"recent_scan\":\n return \"recent-scan\";\n case \"hot_qmd\":\n case \"hot_embedding\":\n case \"cold_fallback\":\n case \"none\":\n return \"hybrid\";\n }\n const _exhaustive: never = source;\n void _exhaustive;\n return \"hybrid\";\n}\n\nexport interface RecallInvocationOptions {\n namespace?: string;\n topK?: number;\n mode?: RecallPlanMode;\n onRecallPlanResolved?: (mode: RecallPlanMode, readNamespaces: readonly string[]) => void | Promise<void>;\n abortSignal?: AbortSignal;\n /** Server-resolved identity of the connector performing this recall. */\n sourceConnector?: string;\n /**\n * Capture a `RecallXraySnapshot` for this recall (issue #570). When\n * `true`, the orchestrator builds a snapshot from the data it has\n * already gathered and stashes it in memory, accessible via\n * `getLastXraySnapshot()`. When `false` or absent, nothing is\n * captured and recall behavior is unchanged (schema-only slice).\n */\n xrayCapture?: boolean;\n /**\n * Out-parameter receiving the backend degradations this recall observes\n * (#3033). Absent by default — behavior and allocations unchanged; the\n * diagnosis passes a sink to tell an outage from \"no matches\".\n */\n degradationSink?: SearchDegradation[];\n /**\n * Per-invocation override for `recallBudgetChars` (issue #570 PR 3/4).\n * Flows through `getRecallBudgetChars()` for this recall only — no\n * shared config mutation, so concurrent recalls on the same\n * orchestrator are not affected (CLAUDE.md rule 47: no shared\n * mutable state across async boundaries). Must be a non-negative\n * finite integer; non-conforming values are ignored and the\n * configured budget is used.\n */\n budgetCharsOverride?: number;\n /**\n * Per-invocation principal override (issue #570 PR 4). When set,\n * the orchestrator uses this principal for ACL / namespace checks\n * instead of `resolvePrincipal(sessionKey, config)`. This is the\n * escape hatch for access surfaces (HTTP / MCP) that have already\n * authenticated the caller upstream — threading an unmapped\n * principal through the session-key-based resolver would otherwise\n * collapse it to `\"default\"` and produce false denials in\n * namespace-enabled deployments (CLAUDE.md rule 42).\n */\n principalOverride?: string;\n /**\n * Historical recall point (issue #680). When set, the orchestrator\n * filters out memories whose `valid_at` is after this timestamp OR\n * whose `invalid_at` is at-or-before this timestamp, so callers see\n * the corpus as it existed at `asOf`. ISO 8601 string; comparisons\n * use `Date.parse()` so timezone-aware values round-trip correctly\n * (CLAUDE.md gotcha — never compare ISO strings lexicographically).\n * Invalid values must be rejected at input boundaries (CLAUDE.md\n * rule 51); the orchestrator does NOT silently fall back here.\n */\n asOf?: string;\n /**\n * Issue #681 — when `true`, bypasses `graphTraversalConfidenceFloor`\n * and includes edges below the floor in graph traversal. Useful for\n * diagnostic recall queries that need to surface results that would\n * normally be pruned by confidence decay. Default `false`.\n */\n includeLowConfidence?: boolean;\n /**\n * #1952 — per-call override enabling state-aware recall views for this\n * recall only (MCP `stateView` boolean). ORs with the `recallStateViews`\n * config flag; a change-intent query is still required for any effect.\n */\n stateView?: boolean;\n /** Per-call QMD options (HTTP/MCP `searchOptions`). */\n searchOptions?: SearchQueryOptions;\n /**\n * User-aware context scopes active for this recall. Used by X-ray\n * provenance safety checks so boundary-scoped memories are evaluated\n * against the caller's real context.\n */\n currentContextScopes?: readonly unknown[];\n /**\n * Wall-clock ms the caller waited to begin execution — per-principal\n * semaphore queue + single-flight wait (issue #1906). Folded into\n * recall-timings additively as `queueWaitMs`; omitted phases are simply\n * absent, so existing timing consumers are unaffected.\n */\n queueWaitMs?: number;\n onContextComposition?: (composition: RecallContextComposition) => void | PromiseLike<void>;\n}\n\nexport type QueryAwarePrefilter = {\n candidatePaths: Set<string> | null;\n temporalFromDate: string | null;\n matchedTags: string[];\n expandedTags: string[];\n combination: \"none\" | \"temporal\" | \"tag\" | \"intersection\" | \"union\";\n filteredToFullSearch: boolean;\n};\n\n// Recall-specific abort helpers. Thin wrappers over the shared\n// `abort-error.ts` module so every abort in the codebase shares the\n// same `name === \"AbortError\"` classification contract (`isAbortError`\n// works uniformly). We keep the \"recall aborted\" default message for\n// back-compat with call-site logs; callers that pass an explicit\n// message (e.g. \"extraction aborted (before_extract)\") are unaffected.\nexport const abortRecallError = sharedAbortError;\n\nexport function throwIfRecallAborted(\n signal?: AbortSignal,\n message = \"recall aborted\",\n): void {\n sharedThrowIfAborted(signal, message);\n}\n\nexport async function raceRecallAbort<T>(\n promise: Promise<T>,\n signal?: AbortSignal,\n message = \"recall aborted\",\n): Promise<T> {\n throwIfRecallAborted(signal, message);\n if (!signal) return promise;\n\n let onAbort: (() => void) | null = null;\n const abortPromise = new Promise<T>((_resolve, reject) => {\n onAbort = () => reject(abortRecallError(message));\n signal.addEventListener(\"abort\", onAbort, { once: true });\n });\n\n try {\n return await Promise.race([promise, abortPromise]);\n } finally {\n if (onAbort) {\n signal.removeEventListener(\"abort\", onAbort);\n }\n }\n}\n\n/** Maximum age (ms) before a compaction-reset signal file is considered stale and removed. */\nexport const COMPACTION_SIGNAL_MAX_AGE_MS = 60 * 60 * 1000; // 1 hour\n\nexport const DEFAULT_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS = 10_000;\n\nexport type DaySummaryGatherOptions = {\n timeZone?: string;\n now?: Date;\n /** Opt-in location context (issue #2925); false/absent keeps output byte-identical. */\n includeLocation?: boolean;\n};\n\nexport function normalizeIanaTimeZone(value: unknown): string | undefined {\n if (typeof value !== \"string\") return undefined;\n const trimmed = value.trim();\n if (!trimmed) return undefined;\n try {\n Intl.DateTimeFormat(undefined, { timeZone: trimmed });\n return trimmed;\n } catch {\n return undefined;\n }\n}\n\nexport function formatDateInTimeZone(date: Date, timeZone: string): string {\n const parts = new Intl.DateTimeFormat(\"en-US\", {\n timeZone,\n year: \"numeric\",\n month: \"2-digit\",\n day: \"2-digit\",\n }).formatToParts(date);\n const get = (type: string): string => parts.find((part) => part.type === type)?.value ?? \"\";\n return `${get(\"year\")}-${get(\"month\")}-${get(\"day\")}`;\n}\n\nexport function utcDateKey(date: Date): string {\n return date.toISOString().slice(0, 10);\n}\n\nexport function utcDateKeysAround(date: Date): string[] {\n const dayMs = 86_400_000;\n const keys = [\n utcDateKey(new Date(date.getTime() - dayMs)),\n utcDateKey(date),\n utcDateKey(new Date(date.getTime() + dayMs)),\n ];\n return keys.filter((value, index, array) => array.indexOf(value) === index);\n}\n\nexport function utcDateKeysForLocalDay(date: Date, timeZone: string): string[] {\n const targetLocalDate = formatDateInTimeZone(date, timeZone);\n const keys = new Set<string>();\n const hourMs = 3_600_000;\n const scanStart = date.getTime() - 48 * hourMs;\n const scanEnd = date.getTime() + 48 * hourMs;\n for (let ms = scanStart; ms <= scanEnd; ms += hourMs) {\n const candidate = new Date(ms);\n if (formatDateInTimeZone(candidate, timeZone) === targetLocalDate) {\n keys.add(utcDateKey(candidate));\n }\n }\n return keys.size > 0 ? [...keys].sort() : utcDateKeysAround(date);\n}\n\nexport function parseFiniteDate(value: unknown): Date | null {\n if (typeof value !== \"string\" || value.trim().length === 0) return null;\n const parsed = new Date(value);\n return Number.isFinite(parsed.getTime()) ? parsed : null;\n}\n\nexport function filterHourlySummaryMarkdownForLocalDay(\n raw: string,\n utcDate: string,\n timeZone: string,\n targetLocalDate: string,\n): string | null {\n const hourHeaderPattern = /^## ([01]\\d|2[0-3]):00[ \\t]*$/gm;\n const matches = Array.from(raw.matchAll(hourHeaderPattern));\n if (matches.length === 0) return null;\n\n const firstSectionStart = matches[0]?.index ?? 0;\n const preamble = raw.slice(0, firstSectionStart).trim();\n const sections: string[] = [];\n for (let index = 0; index < matches.length; index += 1) {\n const match = matches[index];\n const hour = match[1];\n if (!hour) continue;\n const sectionTimestamp = parseFiniteDate(`${utcDate}T${hour}:00:00.000Z`);\n if (\n !sectionTimestamp ||\n formatDateInTimeZone(sectionTimestamp, timeZone) !== targetLocalDate\n ) {\n continue;\n }\n const sectionStart = match.index ?? 0;\n const sectionEnd = matches[index + 1]?.index ?? raw.length;\n const section = raw.slice(sectionStart, sectionEnd).trim();\n if (section.length > 0) sections.push(section);\n }\n\n if (sections.length === 0) return null;\n return [preamble, ...sections]\n .filter((section) => section.length > 0)\n .join(\"\\n\\n\");\n}\n\nexport type SearchCollectionState = \"present\" | \"missing\" | \"unknown\" | \"skipped\";\n\nexport function qmdStartupCollectionCheckTimeoutMs(): number {\n const raw =\n process.env.REMNIC_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS ??\n process.env.ENGRAM_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS;\n if (raw === undefined) return DEFAULT_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS;\n const parsed = Number(raw);\n return Number.isFinite(parsed) && parsed >= 1_000\n ? Math.floor(parsed)\n : DEFAULT_QMD_STARTUP_COLLECTION_CHECK_TIMEOUT_MS;\n}\n\nexport async function qmdStartupCollectionCheckWithTimeout(\n promise: Promise<SearchCollectionState>,\n controller: AbortController,\n label: string,\n): Promise<SearchCollectionState> {\n const timeoutMs = qmdStartupCollectionCheckTimeoutMs();\n let timer: NodeJS.Timeout | undefined;\n let settled = false;\n\n const timeoutPromise = new Promise<SearchCollectionState>((resolve) => {\n timer = setTimeout(() => {\n if (settled) return;\n controller.abort();\n log.warn(\n `QMD startup collection check for ${label} timed out after ${timeoutMs}ms; keeping search enabled fail-open`,\n );\n resolve(\"unknown\");\n }, timeoutMs);\n timer.unref?.();\n });\n\n const checkedPromise = promise\n .catch((err): SearchCollectionState => {\n log.warn(\n `QMD startup collection check for ${label} failed; keeping search enabled fail-open: ${err}`,\n );\n return \"unknown\";\n })\n .finally(() => {\n settled = true;\n if (timer) clearTimeout(timer);\n });\n\n return await Promise.race([checkedPromise, timeoutPromise]);\n}\n\n/** Default workspace directory when no per-agent or config workspace is available. */\nexport function defaultWorkspaceDir(): string {\n return path.join(os.homedir(), \".openclaw\", \"workspace\");\n}\n\n/**\n * Produce a collision-resistant, filesystem-safe identifier from a session key.\n *\n * Session keys follow colon-delimited forms (e.g., `agent:gpucodebot:main`).\n * A naive replace (`:` → `_`) is lossy: different keys like `agent:alpha` and\n * `agent/alpha` would collide. Instead we append a short SHA-256 hash of the\n * original key to the human-readable sanitized prefix, guaranteeing uniqueness\n * while keeping filenames debuggable.\n *\n * Format: `<sanitized>-<12-char-hex-hash>`\n * Example: `agent:gpucodebot:main` → `agent_gpucodebot_main-a1b2c3d4e5f6`\n */\nexport function sanitizeSessionKeyForFilename(sessionKey: string): string {\n const readable = sessionKey.replace(/[^a-zA-Z0-9._-]/g, \"_\");\n const hash = createHash(\"sha256\")\n .update(sessionKey)\n .digest(\"hex\")\n .slice(0, 12);\n return `${readable}-${hash}`;\n}\n\nexport function sourceValidAtMs(turn: BufferTurn): number | null {\n if (typeof turn.sourceValidAt !== \"string\") return null;\n return parseFlexibleIsoTimestamp(turn.sourceValidAt.trim());\n}\n\nexport const SOURCE_VALID_AT_CONTEXT_TURNS = 2;\n\nexport function sourceValidAtSliceKey(turn: BufferTurn, index: number): string {\n const validAtMs = sourceValidAtMs(turn);\n return validAtMs === null ? `unknown:${index}` : String(validAtMs);\n}\n\nexport function asExtractionContextTurn(turn: BufferTurn): BufferTurn {\n return { ...turn, extractionContextOnly: true };\n}\n\nexport function asExtractionTargetTurn(turn: BufferTurn): BufferTurn {\n const { extractionContextOnly: _contextOnly, ...targetTurn } = turn;\n return targetTurn;\n}\n\nexport function sourceValidAtContextTurns(\n turns: readonly BufferTurn[],\n targetStart: number,\n targetEnd: number,\n targetValidAtMs: number | null,\n): BufferTurn[] {\n if (targetValidAtMs === null) return [];\n return turns\n .flatMap((turn, index) => {\n if (index >= targetStart && index < targetEnd) return [];\n const contextValidAtMs = sourceValidAtMs(turn);\n if (contextValidAtMs === null || contextValidAtMs > targetValidAtMs) {\n return [];\n }\n return [{ turn, index, validAtMs: contextValidAtMs }];\n })\n .sort((a, b) => {\n if (a.validAtMs < b.validAtMs) return -1;\n if (a.validAtMs > b.validAtMs) return 1;\n if (a.index === b.index) return 0;\n return a.index < b.index ? -1 : 1;\n })\n .slice(-SOURCE_VALID_AT_CONTEXT_TURNS)\n .map(({ turn }) => asExtractionContextTurn(turn));\n}\n\nexport function targetSourceValidAtSortMs(turns: readonly BufferTurn[]): number {\n let latestMs: number | null = null;\n for (const turn of turns) {\n if (turn.extractionContextOnly === true) continue;\n const validAtMs = sourceValidAtMs(turn);\n if (validAtMs === null) continue;\n if (latestMs === null || validAtMs > latestMs) {\n latestMs = validAtMs;\n }\n }\n return latestMs ?? Number.POSITIVE_INFINITY;\n}\n\nexport function sortSourceValidAtSlicesChronologically(\n slices: BufferTurn[][],\n): BufferTurn[][] {\n return slices\n .map((turns, order) => ({\n turns,\n order,\n targetValidAtMs: targetSourceValidAtSortMs(turns),\n }))\n .sort((a, b) => {\n if (a.targetValidAtMs < b.targetValidAtMs) return -1;\n if (a.targetValidAtMs > b.targetValidAtMs) return 1;\n if (a.order === b.order) return 0;\n return a.order < b.order ? -1 : 1;\n })\n .map((slice) => slice.turns);\n}\n\nexport function splitTurnsBySourceValidAt(\n turns: readonly BufferTurn[],\n options: { includeContext?: boolean } = {},\n): BufferTurn[][] {\n if (turns.length === 0) return [];\n if (!turns.some((turn) => sourceValidAtMs(turn) !== null)) {\n return [[...turns]];\n }\n\n const slices: BufferTurn[][] = [];\n let start = 0;\n while (start < turns.length) {\n const targetValidAtMs = sourceValidAtMs(turns[start]);\n const activeKey = sourceValidAtSliceKey(turns[start], start);\n let end = start + 1;\n while (\n end < turns.length &&\n sourceValidAtSliceKey(turns[end], end) === activeKey\n ) {\n end += 1;\n }\n\n const contextTurns =\n options.includeContext === false\n ? []\n : sourceValidAtContextTurns(turns, start, end, targetValidAtMs);\n slices.push([\n ...contextTurns,\n ...turns.slice(start, end).map(asExtractionTargetTurn),\n ]);\n start = end;\n }\n return sortSourceValidAtSlicesChronologically(slices);\n}\n\nexport function isArtifactMemoryPath(filePath: string): boolean {\n return /(?:^|[\\\\/])artifacts(?:[\\\\/]|$)/i.test(filePath);\n}\n\n/**\n * Meeting records (issue #1900) live at\n * `<root>/meetings/<YYYY-MM-DD>/mtg-<YYYY-MM-DD>-<hash>.md` — inside the QMD\n * collection root (full-text searchable) but NEVER surfaced through generic\n * recall, exactly like `artifacts/`. The predicate matches the FULL record\n * shape (anchored at the filename) rather than any `meetings` path segment, so\n * a namespaced deployment whose non-default namespace is literally named\n * `meetings` (`.../namespaces/meetings/facts/…`) keeps its ordinary memories in\n * recall — only true meeting records are excluded.\n */\nexport function isMeetingRecordPath(filePath: string): boolean {\n return /(?:^|[\\\\/])meetings[\\\\/]\\d{4}-\\d{2}-\\d{2}[\\\\/]mtg-\\d{4}-\\d{2}-\\d{2}-[0-9a-f]{8}\\.md$/i.test(filePath);\n}\n\n/** Exactly `activity/<YYYY-MM-DD>.md`, at the top level of a memory root. */\nconst ACTIVITY_DIGEST_TOPLEVEL = /^activity[\\\\/]\\d{4}-\\d{2}-\\d{2}\\.md$/i;\n/** The digest FILE shape anywhere in a path (root-unaware best-effort). */\nconst ACTIVITY_DIGEST_ANYWHERE = /(?:^|[\\\\/])activity[\\\\/]\\d{4}-\\d{2}-\\d{2}\\.md$/i;\n\n/**\n * Activity day-digests live at `<memoryRoot>/activity/<YYYY-MM-DD>.md` — a\n * dedicated searchable surface (explicit activity search), never generic recall.\n * Captured screen text must not auto-inject into ordinary prompts (issue #1899).\n * Keyed on the path (parseFrontmatter drops the digest's `kind` marker).\n *\n * Root-aware: when `memoryRoot` is given, the path is resolved relative to it and\n * must be the TOP-LEVEL `activity/<date>.md`, so an ordinary memory nested under\n * a category (e.g. `facts/proj/activity/<date>.md`) stays recallable. Without a\n * root, falls back to the digest file shape anywhere (best-effort).\n */\nexport function isActivityDigestPath(filePath: string, memoryRoot?: string): boolean {\n if (memoryRoot !== undefined && memoryRoot.length > 0) {\n const relative = path.relative(memoryRoot, path.resolve(memoryRoot, filePath));\n return ACTIVITY_DIGEST_TOPLEVEL.test(relative);\n }\n return ACTIVITY_DIGEST_ANYWHERE.test(filePath);\n}\n\n/** Exactly `locations/<YYYY-MM-DD>.md`, at the top level of a memory root. */\nconst LOCATION_DAY_TOPLEVEL = /^locations[\\\\/]\\d{4}-\\d{2}-\\d{2}\\.md$/i;\n/** The day-file shape anywhere in a path (root-unaware best-effort). */\nconst LOCATION_DAY_ANYWHERE = /(?:^|[\\\\/])locations[\\\\/]\\d{4}-\\d{2}-\\d{2}\\.md$/i;\n\n/**\n * Location day documents (issue #2044) live at\n * `<memoryRoot>/locations/<YYYY-MM-DD>.md` — a dedicated searchable surface,\n * never generic recall (place history must not auto-inject into ordinary\n * prompts). Root-aware exactly like `isActivityDigestPath`: with a root, only\n * the top-level `locations/<date>.md` matches, so an ordinary memory nested\n * under a category (e.g. `facts/locations-note.md`) stays recallable; without\n * a root, falls back to the day-file shape anywhere (best-effort).\n */\nexport function isLocationDayPath(filePath: string, memoryRoot?: string): boolean {\n if (memoryRoot !== undefined && memoryRoot.length > 0) {\n const relative = path.relative(memoryRoot, path.resolve(memoryRoot, filePath));\n return LOCATION_DAY_TOPLEVEL.test(relative);\n }\n return LOCATION_DAY_ANYWHERE.test(filePath);\n}\n\nexport function buildCompressionGuidelinesMarkdown(\n events: MemoryActionEvent[],\n generatedAtIso: string = new Date().toISOString(),\n): string {\n return buildCompressionGuidelinesMarkdownV2(events, generatedAtIso);\n}\n\nexport function applyQueryAwareCandidateFilter(\n candidates: QmdSearchResult[],\n candidatePaths: Set<string> | null,\n): QmdSearchResult[] {\n if (!candidatePaths) return candidates;\n if (candidatePaths.size === 0) return [];\n const filtered = candidates.filter((candidate) =>\n candidatePaths.has(candidate.path),\n );\n return filtered.length > 0 ? filtered : candidates;\n}\n\nexport function tokenizeRecallQuery(prompt: string): string[] {\n return prompt\n .toLowerCase()\n .split(/[^a-z0-9]+/i)\n .map((t) => t.trim())\n .filter((t) => t.length >= 3);\n}\n\nexport function hasLifecycleMetadata(frontmatter: MemoryFrontmatter): boolean {\n return (\n frontmatter.lifecycleState !== undefined ||\n frontmatter.verificationState !== undefined ||\n frontmatter.policyClass !== undefined ||\n frontmatter.lastValidatedAt !== undefined ||\n frontmatter.decayScore !== undefined ||\n frontmatter.heatScore !== undefined\n );\n}\n\nexport function shouldFilterLifecycleRecallCandidate(\n frontmatter: MemoryFrontmatter,\n options: {\n lifecyclePolicyEnabled: boolean;\n lifecycleFilterStaleEnabled: boolean;\n },\n): boolean {\n if (!options.lifecyclePolicyEnabled || !options.lifecycleFilterStaleEnabled)\n return false;\n if (!hasLifecycleMetadata(frontmatter)) return false;\n const lifecycleState = resolveLifecycleState(frontmatter);\n return lifecycleState === \"stale\" || lifecycleState === \"archived\";\n}\n\nexport function lifecycleRecallScoreAdjustment(\n frontmatter: MemoryFrontmatter,\n options: {\n lifecyclePolicyEnabled: boolean;\n },\n): number {\n if (!options.lifecyclePolicyEnabled) return 0;\n if (!hasLifecycleMetadata(frontmatter)) return 0;\n\n let delta = 0;\n const lifecycleState = resolveLifecycleState(frontmatter);\n switch (lifecycleState) {\n case \"active\":\n delta += 0.05;\n break;\n case \"validated\":\n delta += 0.03;\n break;\n case \"candidate\":\n delta -= 0.01;\n break;\n case \"stale\":\n delta -= 0.06;\n break;\n case \"archived\":\n delta -= 0.08;\n break;\n }\n if (frontmatter.verificationState === \"disputed\") {\n delta -= 0.12;\n }\n return delta;\n}\n\nexport function computeArtifactRecallLimit(\n recallMode: RecallPlanMode,\n recallResultLimit: number,\n verbatimArtifactsMaxRecall: number,\n): number {\n if (recallMode === \"no_recall\") return 0;\n if (Math.max(0, recallResultLimit) === 0) return 0;\n const base = Math.max(0, verbatimArtifactsMaxRecall);\n if (recallMode === \"minimal\") {\n return Math.min(base, Math.max(0, recallResultLimit));\n }\n return base;\n}\n\nexport function resolveEffectiveRecallMode(options: {\n plannerEnabled: boolean;\n graphRecallEnabled: boolean;\n multiGraphMemoryEnabled: boolean;\n graphExpandedIntentEnabled?: boolean;\n prompt: string;\n}): RecallPlanMode {\n return resolveRecallModeDecision(options).effectiveMode;\n}\n\nexport interface RecallModeGraphOptions {\n plannerEnabled: boolean;\n graphRecallEnabled: boolean;\n multiGraphMemoryEnabled: boolean;\n graphExpandedIntentEnabled?: boolean;\n prompt: string;\n}\n\n/**\n * Apply the graph-mode overlay + gating to a planner-produced mode.\n *\n * Shared by the heuristic ({@link resolveRecallModeDecision}) and LLM\n * ({@link resolveRecallModeDecisionAsync}) paths so graph promotion and the\n * \"graph disabled → fall back to full\" gating behave identically regardless of\n * which planner produced `plannedModeRaw` (gotcha #39).\n */\nexport function finalizeRecallModeDecision(\n plannedModeRaw: RecallPlanMode,\n options: RecallModeGraphOptions,\n): RecallModeDecision {\n let plannedMode: RecallPlanMode = plannedModeRaw;\n const graphExpandedIntentDetected =\n options.plannerEnabled &&\n options.graphExpandedIntentEnabled === true &&\n hasBroadGraphIntent(options.prompt);\n if (plannedMode !== \"graph_mode\" && graphExpandedIntentDetected) {\n plannedMode = \"graph_mode\";\n }\n if (\n plannedMode === \"graph_mode\" &&\n (!options.graphRecallEnabled || !options.multiGraphMemoryEnabled)\n ) {\n return {\n plannedMode,\n effectiveMode: \"full\",\n graphExpandedIntentDetected,\n graphReason: !options.graphRecallEnabled\n ? \"graph recall disabled by config\"\n : \"multi-graph memory disabled by config\",\n };\n }\n return {\n plannedMode,\n effectiveMode: plannedMode,\n graphExpandedIntentDetected,\n };\n}\n\nexport function resolveRecallModeDecision(options: RecallModeGraphOptions): RecallModeDecision {\n const plannedMode: RecallPlanMode = options.plannerEnabled\n ? planRecallMode(options.prompt)\n : \"full\";\n return finalizeRecallModeDecision(plannedMode, options);\n}\n\n/**\n * Async recall-mode decision with optional LLM-based planning (issue #1367 /\n * Option C). Falls back to the heuristic decision when the LLM planner is\n * disabled, in shadow mode, or unavailable/failed — so this is always safe to\n * await on the recall hot path. Provider-agnostic: the LLM call routes through\n * the gateway/fallback chain.\n *\n * `recallPlannerEnabled === false` keeps the legacy \"always full\" behavior and\n * skips the LLM entirely (the planner as a whole is off).\n */\nexport async function resolveRecallModeDecisionAsync(\n options: RecallModeGraphOptions & {\n config: PluginConfig;\n /**\n * Recall-operation capability gates (issue #1523). REQUIRED: the recall\n * orchestrator always passes a resolved set — the LLM planner gate reads\n * `caps.recallPlannerLlm`, never re-derives from config.\n */\n caps: CapabilitySet;\n hints?: string[];\n llm?: FallbackLlmClient;\n signal?: AbortSignal;\n },\n): Promise<RecallModeDecision> {\n const heuristicDecision = resolveRecallModeDecision(options);\n\n // Planner globally off, or LLM planning not opted into → heuristic only.\n // Read the resolved capability (issue #1523) — never re-derive from config.\n const plannerLlmEnabled = options.caps.recallPlannerLlm;\n if (!options.plannerEnabled || !plannerLlmEnabled) {\n return heuristicDecision;\n }\n\n const { planRecallModeLLM } = await import(\"../recall-planner-llm.js\");\n const planned = await planRecallModeLLM(\n options.prompt,\n options.hints,\n options.config,\n options.caps,\n options.llm,\n options.signal,\n );\n\n // Shadow mode: record what the LLM would have chosen but keep the heuristic\n // effective decision (safe rollout / comparison — gotcha #30).\n if (options.config.recallPlannerShadowMode) {\n return {\n ...heuristicDecision,\n plannerSource: planned.source,\n plannerReason: `shadow:${planned.reason}`,\n plannerLatencyMs: planned.latencyMs,\n plannerFallbackUsed: planned.fallbackUsed,\n plannerModelUsed: planned.modelUsed,\n plannerHeuristicMode: planned.heuristicMode,\n shadowLlmMode: planned.mode,\n };\n }\n\n const llmDecision = finalizeRecallModeDecision(planned.mode, options);\n return {\n ...llmDecision,\n plannerSource: planned.source,\n plannerReason: planned.reason,\n plannerLatencyMs: planned.latencyMs,\n plannerFallbackUsed: planned.fallbackUsed,\n plannerModelUsed: planned.modelUsed,\n plannerHeuristicMode: planned.heuristicMode,\n };\n}\n\nexport function computeArtifactCandidateFetchLimit(\n targetCount: number,\n): number {\n const cappedTarget = Math.max(0, targetCount);\n if (cappedTarget === 0) return 0;\n const headroom = Math.max(8, cappedTarget * 4);\n return Math.min(200, cappedTarget + headroom);\n}\n\nexport function computeQmdHybridFetchLimit(\n recallFetchLimit: number,\n artifactsEnabled: boolean,\n maxArtifactRecall: number,\n): number {\n const cappedRecallLimit = Math.max(0, recallFetchLimit);\n if (cappedRecallLimit === 0) return 0;\n if (!artifactsEnabled) return cappedRecallLimit;\n // Overscan when artifacts are enabled, then filter artifact paths before\n // re-applying the recall cap to avoid artifact-dominated top-N starvation.\n const artifactHeadroom = Math.max(20, Math.max(0, maxArtifactRecall) * 8);\n return Math.min(400, cappedRecallLimit + artifactHeadroom);\n}\n\nexport function summarizeGraphShadowComparison(\n baseline: QmdSearchResult[],\n merged: QmdSearchResult[],\n topN: number,\n): {\n baselineCount: number;\n graphCount: number;\n overlapCount: number;\n overlapRatio: number;\n averageOverlapDelta: number;\n} {\n const limit = Math.max(0, Math.floor(topN));\n const baselineTop = limit > 0 ? baseline.slice(0, limit) : [];\n const graphTop = limit > 0 ? merged.slice(0, limit) : [];\n const baselineByPath = new Map(\n baselineTop.map((item) => [item.path, item.score]),\n );\n const graphByPath = new Map(graphTop.map((item) => [item.path, item.score]));\n\n let overlapCount = 0;\n let overlapDeltaSum = 0;\n for (const [p, baselineScore] of baselineByPath.entries()) {\n const graphScore = graphByPath.get(p);\n if (typeof graphScore !== \"number\") continue;\n overlapCount += 1;\n overlapDeltaSum += graphScore - baselineScore;\n }\n\n const baselineCount = baselineTop.length;\n return {\n baselineCount,\n graphCount: graphTop.length,\n overlapCount,\n overlapRatio: baselineCount > 0 ? overlapCount / baselineCount : 0,\n averageOverlapDelta: overlapCount > 0 ? overlapDeltaSum / overlapCount : 0,\n };\n}\n\nexport function parseGraphRecallRankedResults(\n value: unknown,\n): GraphRecallRankedResult[] {\n if (!Array.isArray(value)) return [];\n const parsed: GraphRecallRankedResult[] = [];\n for (const entry of value) {\n if (!entry || typeof entry !== \"object\") continue;\n const candidate = entry as Partial<GraphRecallRankedResult>;\n if (\n typeof candidate.path !== \"string\" ||\n typeof candidate.score !== \"number\"\n )\n continue;\n parsed.push({\n path: candidate.path,\n score: candidate.score,\n docid: typeof candidate.docid === \"string\" ? candidate.docid : undefined,\n sourceLabels: Array.isArray(candidate.sourceLabels)\n ? candidate.sourceLabels.filter(\n (item): item is string => typeof item === \"string\",\n )\n : [],\n });\n }\n return parsed.slice(0, 64);\n}\n\nexport function parseMemoryIntentSnapshot(value: unknown): MemoryIntent {\n const candidate =\n value && typeof value === \"object\" ? (value as Partial<MemoryIntent>) : {};\n return {\n goal: typeof candidate.goal === \"string\" ? candidate.goal : \"unknown\",\n actionType:\n typeof candidate.actionType === \"string\"\n ? candidate.actionType\n : \"unknown\",\n entityTypes: Array.isArray(candidate.entityTypes)\n ? candidate.entityTypes.filter(\n (item): item is string => typeof item === \"string\",\n )\n : [],\n taskInitiation: candidate.taskInitiation === true,\n };\n}\n\nexport function buildQmdIntentHint(intent: MemoryIntent): string | undefined {\n const parts: string[] = [];\n if (intent.goal !== \"unknown\") {\n parts.push(`goal:${intent.goal.replace(/_/g, \" \")}`);\n }\n if (intent.actionType !== \"unknown\") {\n parts.push(`action:${intent.actionType.replace(/_/g, \" \")}`);\n }\n if (intent.entityTypes.length > 0) {\n parts.push(`entities:${intent.entityTypes.join(\",\")}`);\n }\n if (intent.taskInitiation === true) {\n parts.push(\"task_initiation\");\n }\n return parts.length > 0 ? parts.join(\" \") : undefined;\n}\n\nexport function parseQmdRecallResults(value: unknown): QmdSearchResult[] {\n if (!Array.isArray(value)) return [];\n const parsed: QmdSearchResult[] = [];\n for (const entry of value) {\n if (!entry || typeof entry !== \"object\") continue;\n const candidate = entry as Partial<QmdSearchResult>;\n if (\n typeof candidate.path !== \"string\" ||\n typeof candidate.score !== \"number\"\n )\n continue;\n parsed.push({\n docid: typeof candidate.docid === \"string\" ? candidate.docid : \"\",\n path: candidate.path,\n snippet: typeof candidate.snippet === \"string\" ? candidate.snippet : \"\",\n score: candidate.score,\n explain: parseQmdExplain(candidate.explain),\n transport:\n candidate.transport === \"daemon\" ||\n candidate.transport === \"subprocess\" ||\n candidate.transport === \"hybrid\" ||\n candidate.transport === \"scoped_prefilter\"\n ? candidate.transport\n : undefined,\n });\n }\n return parsed.slice(0, 32);\n}\n\nexport function mergeArtifactRecallCandidates(\n candidatesByNamespace: MemoryFile[][],\n limit: number,\n): MemoryFile[] {\n const cappedLimit = Math.max(0, limit);\n if (cappedLimit === 0) return [];\n\n const out: MemoryFile[] = [];\n const seen = new Set<string>();\n let offset = 0;\n while (out.length < cappedLimit) {\n let hasAnyCandidateAtOffset = false;\n for (const list of candidatesByNamespace) {\n if (offset >= list.length) continue;\n hasAnyCandidateAtOffset = true;\n const item = list[offset];\n const dedupeKey = `${item.frontmatter.id}:${item.frontmatter.sourceMemoryId ?? \"\"}:${item.content}`;\n if (seen.has(dedupeKey)) continue;\n seen.add(dedupeKey);\n out.push(item);\n if (out.length >= cappedLimit) break;\n }\n if (!hasAnyCandidateAtOffset) break;\n offset += 1;\n }\n return out;\n}\n\nexport function resolveRecentThreadMemoryPaths(options: {\n threadEpisodeIds: string[];\n currentMemoryId: string;\n allMemsForGraph: MemoryFile[] | null | undefined;\n pathById?: Map<string, string>;\n storageDir: string;\n maxRecent: number;\n}): string[] {\n const maxRecent = Math.max(0, options.maxRecent);\n if (options.threadEpisodeIds.length === 0 || maxRecent === 0) return [];\n const pathById =\n options.pathById ??\n buildMemoryPathById(options.allMemsForGraph, options.storageDir);\n if (pathById.size === 0) return [];\n\n // #1635 (defensive): skip pending_review ids from legacy episode sets.\n const pendingReviewIds = new Set<string>(\n (options.allMemsForGraph ?? [])\n .filter((m) => m.frontmatter.status === \"pending_review\" && m.frontmatter.id)\n .map((m) => m.frontmatter.id as string),\n );\n\n return options.threadEpisodeIds\n .filter((id) => id !== options.currentMemoryId)\n .filter((id) => !pendingReviewIds.has(id))\n .slice(-maxRecent)\n .map((id) => pathById.get(id))\n .filter((p): p is string => typeof p === \"string\" && p.length > 0);\n}\n\nexport function buildMemoryPathById(\n allMemsForGraph: MemoryFile[] | null | undefined,\n storageDir: string,\n): Map<string, string> {\n const pathById = new Map<string, string>();\n for (const mem of allMemsForGraph ?? []) {\n const id = mem.frontmatter.id;\n if (!id) continue;\n pathById.set(id, path.relative(storageDir, mem.path));\n }\n return pathById;\n}\n\nexport function appendMemoryToGraphContext(options: {\n allMemsForGraph: MemoryFile[] | null | undefined;\n storageDir: string;\n memoryRelPath: string;\n memoryId: string;\n category: MemoryFile[\"frontmatter\"][\"category\"];\n content: string;\n entityRef: string | undefined;\n}): void {\n if (!Array.isArray(options.allMemsForGraph)) return;\n\n const nowIso = new Date().toISOString();\n options.allMemsForGraph.push({\n path: path.join(options.storageDir, options.memoryRelPath),\n content: options.content,\n frontmatter: {\n id: options.memoryId,\n category: options.category,\n created: nowIso,\n updated: nowIso,\n source: \"extraction\",\n confidence: 0.8,\n confidenceTier: \"implied\",\n tags: [],\n entityRef: options.entityRef,\n status: \"active\",\n },\n });\n}\n\nexport function resolvePersistedMemoryRelativePath(options: {\n memoryId: string;\n pathById: Map<string, string>;\n category: string;\n}): string {\n const persisted = options.pathById.get(options.memoryId);\n if (persisted) return persisted;\n if (options.category === \"correction\") {\n return path.join(\"corrections\", `${options.memoryId}.md`);\n }\n // Pick the subtree that matches the StorageManager.writeMemory routing\n // so fallback paths (used before memoryPathById has seen the fresh\n // write) agree with where the file actually lives. Routing goes through\n // the shared categoryDirName() chokepoint (utils/category-dir.ts) so\n // every category — decisions/, preferences/, reasoning-traces/, ... —\n // resolves to the same dir the writer used; otherwise graph edges point\n // at the wrong subtree and graph expansion silently drops those nodes\n // when readMemoryByPath cannot resolve them (issue #564 PR 3 / #1546).\n const subtree = categoryDirName(options.category);\n const idParts = options.memoryId.split(\"-\");\n const maybeTimestamp = Number(idParts[1]);\n if (Number.isFinite(maybeTimestamp) && maybeTimestamp > 0) {\n const day = new Date(maybeTimestamp).toISOString().slice(0, 10);\n return path.join(subtree, day, `${options.memoryId}.md`);\n }\n return path.join(subtree, `${options.memoryId}.md`);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,SAAS,kBAAkB;AAC3B,OAAO,QAAQ;AACf,OAAO,UAAU;AAmBV,IAAM,+BAA+B;AAYrC,IAAM,qCAAN,cAAiD,MAAM;AAAA,EACnD;AAAA,EAEA;AAAA,EAET,YACE,SACA,eACA,eACA;AACA,UAAM,OAAO;AACb,SAAK,OAAO;AACZ,SAAK,gBAAgB;AACrB,SAAK,gBAAgB;AAAA,EACvB;AACF;AA0GO,SAAS,8BACd,QAMoB;AAOpB,UAAQ,QAAQ;AAAA,IACd,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AAAA,IACL,KAAK;AACH,aAAO;AAAA,EACX;AACA,QAAM,cAAqB;AAC3B,OAAK;AACL,SAAO;AACT;AAsGO,IAAM,mBAAmB;AAEzB,SAAS,qBACd,QACA,UAAU,kBACJ;AACN,iBAAqB,QAAQ,OAAO;AACtC;AAEA,eAAsB,gBACpB,SACA,QACA,UAAU,kBACE;AACZ,uBAAqB,QAAQ,OAAO;AACpC,MAAI,CAAC,OAAQ,QAAO;AAEpB,MAAI,UAA+B;AACnC,QAAM,eAAe,IAAI,QAAW,CAAC,UAAU,WAAW;AACxD,cAAU,MAAM,OAAO,iBAAiB,OAAO,CAAC;AAChD,WAAO,iBAAi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EAC1D;AASA,QAAM,UAAU,gBAAgB,QAAQ,QAAQ;AAChD,QAAM,UAAU,QAAQ,SAAS,MAAM,GAAG;AAC1C,QAAM,iBAAiB,OAAO,QAAQ,CAAC,CAAC;AACxC,MAAI,OAAO,SAAS,cAAc,KAAK,iBAAiB,GAAG;AACzD,UAAM,MAAM,IAAI,KAAK,cAAc,EAAE,YAAY,EAAE,MAAM,GAAG,EAAE;AAC9D,WAAO,KAAK,KAAK,SAAS,KAAK,GAAG,QAAQ,QAAQ,KAAK;AAAA,EACzD;AACA,SAAO,KAAK,KAAK,SAAS,GAAG,QAAQ,QAAQ,KAAK;AACpD;","names":["buildCompressionGuidelinesMarkdown"]}
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-ZAJLJ35W.js";
12
12
  import {
13
13
  parseConfig
14
- } from "./chunk-CFSCKCT5.js";
14
+ } from "./chunk-B4I37XX6.js";
15
15
  import {
16
16
  resolveObjectiveStateStoreDir,
17
17
  validateObjectiveStateSnapshot
@@ -268,4 +268,4 @@ export {
268
268
  recordResumeBundle,
269
269
  getResumeBundleStatus
270
270
  };
271
- //# sourceMappingURL=chunk-2NJ74RQU.js.map
271
+ //# sourceMappingURL=chunk-LE27GU4M.js.map
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-TBBDFYXW.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-IUXTKLZY.js";
6
+ } from "./chunk-MSVBNOFX.js";
7
7
  import {
8
8
  requestEntityCanonicalIdReconcile
9
- } from "./chunk-O3GZPLVY.js";
9
+ } from "./chunk-UUSL22HE.js";
10
10
  import {
11
11
  excludeSupportPassportPrivateMemories
12
12
  } from "./chunk-TSUSHXBW.js";
13
13
  import {
14
14
  bumpMemoryCorpusVersionForDir
15
- } from "./chunk-M5GVCJSJ.js";
15
+ } from "./chunk-TVWLYSX4.js";
16
16
  import {
17
17
  isMacOsReplicationJunkBasename
18
18
  } from "./chunk-QUIRIG2P.js";
@@ -769,4 +769,4 @@ export {
769
769
  listMemoryGovernanceRuns,
770
770
  readMemoryGovernanceRunArtifact
771
771
  };
772
- //# sourceMappingURL=chunk-7NSGKXFD.js.map
772
+ //# sourceMappingURL=chunk-LYPBQHAX.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseFrontmatter
3
- } from "./chunk-IUXTKLZY.js";
3
+ } from "./chunk-MSVBNOFX.js";
4
4
  import {
5
5
  activityDigestPath,
6
6
  isValidActivityDate
@@ -199,4 +199,4 @@ export {
199
199
  buildStandup,
200
200
  standupHelp
201
201
  };
202
- //# sourceMappingURL=chunk-EGDUG2ZX.js.map
202
+ //# sourceMappingURL=chunk-MBBRU5LJ.js.map
@@ -19,14 +19,14 @@ import {
19
19
  getFingerprint,
20
20
  migrateLegacyEntityCanonicalIds,
21
21
  validateRoots
22
- } from "./chunk-O3JG4PD3.js";
22
+ } from "./chunk-AW56K4SI.js";
23
23
  import {
24
24
  BufferSessionFiles
25
25
  } from "./chunk-YCNSMVWG.js";
26
26
  import {
27
27
  normalizeQmdResultPath,
28
28
  resolveNamespaceResultPath
29
- } from "./chunk-USVA4XWY.js";
29
+ } from "./chunk-IIVDGKMW.js";
30
30
  import {
31
31
  withholdToolScopedFromSharedNamespace
32
32
  } from "./chunk-S2V7RUCL.js";
@@ -37,14 +37,14 @@ import {
37
37
  import {
38
38
  parseOfflineSyncDigestCache
39
39
  } from "./chunk-X3724WL4.js";
40
- import {
41
- createMemorySnapshot,
42
- loadTimeStamps
43
- } from "./chunk-L76BQSWB.js";
44
40
  import {
45
41
  rewriteProjectedEntityReferences,
46
42
  rewriteProjectedMemoryEntityReference
47
43
  } from "./chunk-MRPOZBJC.js";
44
+ import {
45
+ createMemorySnapshot,
46
+ loadTimeStamps
47
+ } from "./chunk-L76BQSWB.js";
48
48
  import {
49
49
  rotateMarkdownFileToArchive
50
50
  } from "./chunk-DM2T26WE.js";
@@ -67,14 +67,6 @@ import {
67
67
  parseFaithfulnessField,
68
68
  serializeFaithfulnessFields
69
69
  } from "./chunk-JNDMIAJ4.js";
70
- import {
71
- matchEntitySchemaSection,
72
- normalizeEntityStructuredSection,
73
- sortStructuredSectionsBySchema
74
- } from "./chunk-ZIKENA2C.js";
75
- import {
76
- normalizeEntityName
77
- } from "./chunk-YXZG5TVN.js";
78
70
  import {
79
71
  OKF_QUESTION_TYPE,
80
72
  assertNotOkfReservedBasename,
@@ -87,6 +79,14 @@ import {
87
79
  normalizeProjectionPreview,
88
80
  normalizeProjectionTags
89
81
  } from "./chunk-SCU65EZI.js";
82
+ import {
83
+ matchEntitySchemaSection,
84
+ normalizeEntityStructuredSection,
85
+ sortStructuredSectionsBySchema
86
+ } from "./chunk-ZIKENA2C.js";
87
+ import {
88
+ normalizeEntityName
89
+ } from "./chunk-YXZG5TVN.js";
90
90
  import {
91
91
  checkCorpusReadAbort
92
92
  } from "./chunk-P4GUQSK3.js";
@@ -102,7 +102,7 @@ import {
102
102
  } from "./chunk-G7D6GZ5J.js";
103
103
  import {
104
104
  createVersion
105
- } from "./chunk-KUQLUYIR.js";
105
+ } from "./chunk-4QEDFEBY.js";
106
106
  import {
107
107
  ENTITY_CANONICAL_ID_MIGRATION_FILE,
108
108
  ENTITY_CANONICAL_ID_RECONCILE_CONSUMING_MARKER,
@@ -122,7 +122,7 @@ import {
122
122
  resolveHistoricalEntityCanonicalId,
123
123
  withEntityCanonicalMutationLock,
124
124
  withRawEntityPageMutation
125
- } from "./chunk-O3GZPLVY.js";
125
+ } from "./chunk-UUSL22HE.js";
126
126
  import {
127
127
  supersessionKeysForFact
128
128
  } from "./chunk-5WITETWU.js";
@@ -141,6 +141,9 @@ import {
141
141
  import {
142
142
  parseOriginClass
143
143
  } from "./chunk-23G5P7TA.js";
144
+ import {
145
+ selectArtifactMatches
146
+ } from "./chunk-HADD45AR.js";
144
147
  import {
145
148
  archive_mutation_version_exports,
146
149
  bumpArchiveMutationForPath,
@@ -148,9 +151,6 @@ import {
148
151
  getArchiveMutationVersionForDir,
149
152
  recordArchiveDelete
150
153
  } from "./chunk-W5BIQOAJ.js";
151
- import {
152
- selectArtifactMatches
153
- } from "./chunk-HADD45AR.js";
154
154
  import {
155
155
  composeMemoryEnvelope,
156
156
  isSealedMemoryEnvelope,
@@ -258,7 +258,7 @@ import {
258
258
  setCachedMemories,
259
259
  updateCacheOnDelete,
260
260
  updateCacheOnWrite
261
- } from "./chunk-C64XATK7.js";
261
+ } from "./chunk-4U5VHHVF.js";
262
262
  import {
263
263
  isMacOsReplicationJunkBasename,
264
264
  warnIgnoredMacOsReplicationJunk,
@@ -4128,7 +4128,7 @@ var EntityCanonicalIdMigrationRunner = class {
4128
4128
  await this.ensure();
4129
4129
  return;
4130
4130
  }
4131
- const { readSafeEntityEntries } = await import("./entity-canonical-id-migration-IG77BOGD.js");
4131
+ const { readSafeEntityEntries } = await import("./entity-canonical-id-migration-ZOWR44RK.js");
4132
4132
  await readSafeEntityEntries(entitiesDir);
4133
4133
  }
4134
4134
  /**
@@ -13315,4 +13315,4 @@ export {
13315
13315
  isValidBufferSurpriseEvent,
13316
13316
  StorageManager3 as StorageManager
13317
13317
  };
13318
- //# sourceMappingURL=chunk-IUXTKLZY.js.map
13318
+ //# sourceMappingURL=chunk-MSVBNOFX.js.map
@@ -1,14 +1,14 @@
1
- import {
2
- scanMemoryDir
3
- } from "./chunk-WNEVEMJ3.js";
4
1
  import {
5
2
  isSearchAborted,
6
3
  throwIfSearchAborted
7
4
  } from "./chunk-Y5NLBXPV.js";
5
+ import {
6
+ scanMemoryDir
7
+ } from "./chunk-WNEVEMJ3.js";
8
8
  import {
9
9
  reportSearchDegradation,
10
10
  resolveEnsureCollectionArgs
11
- } from "./chunk-NWA6IXR3.js";
11
+ } from "./chunk-B7HYXVME.js";
12
12
  import {
13
13
  log
14
14
  } from "./chunk-3WCASNQZ.js";
@@ -523,4 +523,4 @@ function isMissingVectorProviderColumnError(err) {
523
523
  export {
524
524
  LanceDbBackend
525
525
  };
526
- //# sourceMappingURL=chunk-DOJBV6WR.js.map
526
+ //# sourceMappingURL=chunk-MX5VGD6C.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-IEEV27BC.js";
4
4
  import {
5
5
  deepRecallRequestSchema
6
- } from "./chunk-DIBOWE53.js";
6
+ } from "./chunk-YXPUQBHK.js";
7
7
  import {
8
8
  EngramAccessInputError
9
9
  } from "./chunk-CJCTKL6Y.js";
@@ -40,4 +40,4 @@ async function respondDeepRecall(req, res, respondJson, readJsonBody, service, s
40
40
  export {
41
41
  respondDeepRecall
42
42
  };
43
- //# sourceMappingURL=chunk-GAVFANAB.js.map
43
+ //# sourceMappingURL=chunk-NFNH4ZPB.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot
3
- } from "./chunk-27N6SGEY.js";
3
+ } from "./chunk-VNMJWFYR.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-IUXTKLZY.js";
6
+ } from "./chunk-MSVBNOFX.js";
7
7
  import {
8
8
  composeLocationDayBody,
9
9
  composeLocationDayMeta,
@@ -779,4 +779,4 @@ export {
779
779
  LOCATION_SYNC_DEFAULT_INTERVAL_MS,
780
780
  startLocationAutoSync
781
781
  };
782
- //# sourceMappingURL=chunk-NCS2NXSP.js.map
782
+ //# sourceMappingURL=chunk-NIG54XKA.js.map
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-5HFVWYHL.js";
4
4
  import {
5
5
  isGenericRecallExcludedPath
6
- } from "./chunk-F476AJQJ.js";
6
+ } from "./chunk-2642VLWP.js";
7
7
  import {
8
8
  planRecallMode
9
9
  } from "./chunk-CSAKJVXW.js";
10
10
  import {
11
11
  describeSearchDegradations,
12
12
  fatalSearchDegradations
13
- } from "./chunk-NWA6IXR3.js";
13
+ } from "./chunk-B7HYXVME.js";
14
14
  import {
15
15
  RecallWhyInputError,
16
16
  explainRecallMiss
@@ -132,4 +132,4 @@ async function findExpectedMemory(orchestrator, namespaces, expect) {
132
132
  export {
133
133
  runRecallWhy
134
134
  };
135
- //# sourceMappingURL=chunk-EIZUL6JC.js.map
135
+ //# sourceMappingURL=chunk-NKO4VZRO.js.map
@@ -2,7 +2,7 @@ import {
2
2
  WHO_KNOWS_DEFAULT_LIMIT,
3
3
  WHO_KNOWS_MAX_LIMIT,
4
4
  validateWhoKnowsInput
5
- } from "./chunk-FJTRNFI4.js";
5
+ } from "./chunk-P3COXHWB.js";
6
6
 
7
7
  // src/who-knows-cli.ts
8
8
  function extractWhoKnowsRawArgs(rest) {
@@ -74,4 +74,4 @@ export {
74
74
  renderWhoKnowsText,
75
75
  renderWhoKnows
76
76
  };
77
- //# sourceMappingURL=chunk-QZUT4VTV.js.map
77
+ //# sourceMappingURL=chunk-O5OFHBAP.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-DBB5JPSL.js";
4
4
  import {
5
5
  isGenericRecallExcludedPath
6
- } from "./chunk-F476AJQJ.js";
6
+ } from "./chunk-2642VLWP.js";
7
7
  import {
8
8
  isChangeOrientedQuery
9
9
  } from "./chunk-EH3HNCAM.js";
@@ -69,4 +69,4 @@ export {
69
69
  filterRecentScanMemoriesForStateView,
70
70
  indexStateViewAnnotatedResults
71
71
  };
72
- //# sourceMappingURL=chunk-SZ6QV3DY.js.map
72
+ //# sourceMappingURL=chunk-OM2YWPFX.js.map
@@ -8,10 +8,10 @@ import {
8
8
  import {
9
9
  resolveCueAnchorStoreDir,
10
10
  validateCueAnchor
11
- } from "./chunk-FL3O34XF.js";
11
+ } from "./chunk-FYJYQ65N.js";
12
12
  import {
13
13
  StorageManager
14
- } from "./chunk-IUXTKLZY.js";
14
+ } from "./chunk-MSVBNOFX.js";
15
15
  import {
16
16
  isValidityExpiredNow
17
17
  } from "./chunk-6CIAGZ6X.js";
@@ -37,10 +37,10 @@ import {
37
37
  HARMONIC_SOURCE_MEMORY_INSERTED_AT_KEY,
38
38
  resolveAbstractionNodeStoreDir,
39
39
  validateAbstractionNode
40
- } from "./chunk-G2CGIFRP.js";
40
+ } from "./chunk-AXR472RS.js";
41
41
  import {
42
42
  readHarmonicGraphStamp
43
- } from "./chunk-ITAUMNQU.js";
43
+ } from "./chunk-FPII4O7C.js";
44
44
  import {
45
45
  compareDeterministicStrings
46
46
  } from "./chunk-G73MCJKL.js";
@@ -585,4 +585,4 @@ export {
585
585
  readProjectedHarmonicGraph,
586
586
  searchHarmonicRetrieval
587
587
  };
588
- //# sourceMappingURL=chunk-7YD5XSJK.js.map
588
+ //# sourceMappingURL=chunk-OOJMQV3L.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseEntityFile
3
- } from "./chunk-IUXTKLZY.js";
3
+ } from "./chunk-MSVBNOFX.js";
4
4
  import {
5
5
  inferMemoryStatus
6
6
  } from "./chunk-7RJUVTVF.js";
@@ -253,4 +253,4 @@ export {
253
253
  WHO_KNOWS_MCP_TOOLS,
254
254
  handleWhoKnowsHttpQuery
255
255
  };
256
- //# sourceMappingURL=chunk-FJTRNFI4.js.map
256
+ //# sourceMappingURL=chunk-P3COXHWB.js.map
@@ -1,3 +1,7 @@
1
+ import {
2
+ ensureLcmStateDir,
3
+ openLcmDatabase
4
+ } from "./chunk-DDA47TES.js";
1
5
  import {
2
6
  LcmSummarizer
3
7
  } from "./chunk-AQNHEDXP.js";
@@ -13,10 +17,6 @@ import {
13
17
  import {
14
18
  assembleCompressedHistoryWithTrace
15
19
  } from "./chunk-UXPUUL3G.js";
16
- import {
17
- ensureLcmStateDir,
18
- openLcmDatabase
19
- } from "./chunk-DDA47TES.js";
20
20
  import {
21
21
  nativeBindingRecoveryHint
22
22
  } from "./chunk-LD72P4YS.js";
@@ -768,4 +768,4 @@ export {
768
768
  extractLcmConfig,
769
769
  LcmEngine
770
770
  };
771
- //# sourceMappingURL=chunk-ZG4GNPRE.js.map
771
+ //# sourceMappingURL=chunk-PBE7NFB5.js.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-CTVWELNK.js";
16
16
  import {
17
17
  bumpMemoryCorpusVersionForDir
18
- } from "./chunk-M5GVCJSJ.js";
18
+ } from "./chunk-TVWLYSX4.js";
19
19
  import {
20
20
  readJsonFile,
21
21
  writeJsonFileAtomic
@@ -878,4 +878,4 @@ export {
878
878
  isValidResolutionVerb,
879
879
  executeResolution
880
880
  };
881
- //# sourceMappingURL=chunk-SZK2DX5U.js.map
881
+ //# sourceMappingURL=chunk-PCMGMPQZ.js.map
@@ -1,3 +1,6 @@
1
+ import {
2
+ withBriefingDeadline
3
+ } from "./chunk-FNFURZBZ.js";
1
4
  import {
2
5
  withBriefingFollowupTimeout
3
6
  } from "./chunk-GZFKCLRC.js";
@@ -5,12 +8,9 @@ import {
5
8
  safeReadEntities,
6
9
  safeReadMemories
7
10
  } from "./chunk-EKUI7I2X.js";
8
- import {
9
- withBriefingDeadline
10
- } from "./chunk-FNFURZBZ.js";
11
11
  import {
12
12
  StorageManager
13
- } from "./chunk-IUXTKLZY.js";
13
+ } from "./chunk-MSVBNOFX.js";
14
14
  import {
15
15
  normalizeEntityName
16
16
  } from "./chunk-YXZG5TVN.js";
@@ -974,4 +974,4 @@ export {
974
974
  resolveBriefingSaveDir,
975
975
  briefingFilename
976
976
  };
977
- //# sourceMappingURL=chunk-WIV37T4U.js.map
977
+ //# sourceMappingURL=chunk-QBNZLS3U.js.map
@@ -1,14 +1,14 @@
1
- import {
2
- scanMemoryDir
3
- } from "./chunk-WNEVEMJ3.js";
4
1
  import {
5
2
  isSearchAborted,
6
3
  throwIfSearchAborted
7
4
  } from "./chunk-Y5NLBXPV.js";
5
+ import {
6
+ scanMemoryDir
7
+ } from "./chunk-WNEVEMJ3.js";
8
8
  import {
9
9
  reportSearchDegradation,
10
10
  resolveEnsureCollectionArgs
11
- } from "./chunk-NWA6IXR3.js";
11
+ } from "./chunk-B7HYXVME.js";
12
12
  import {
13
13
  expandUnsegmentableRecallNGrams,
14
14
  isUnsegmentableRecallChar
@@ -789,4 +789,4 @@ export {
789
789
  resolveOramaCollectionDbFilePath,
790
790
  OramaBackend
791
791
  };
792
- //# sourceMappingURL=chunk-DLZGSZVC.js.map
792
+ //# sourceMappingURL=chunk-RJ5L6LRD.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-IUXTKLZY.js";
3
+ } from "./chunk-MSVBNOFX.js";
4
4
  import {
5
5
  countRecallTokenOverlap,
6
6
  normalizeRecallTokens
@@ -8,7 +8,7 @@ import {
8
8
  import {
9
9
  getCachedRuleMemories,
10
10
  setCachedRuleMemories
11
- } from "./chunk-C64XATK7.js";
11
+ } from "./chunk-4U5VHHVF.js";
12
12
 
13
13
  // src/semantic-rule-verifier.ts
14
14
  var DEFAULT_MIN_EFFECTIVE_CONFIDENCE = 0.45;
@@ -119,4 +119,4 @@ export {
119
119
  compareVerifiedSemanticRuleResults,
120
120
  searchVerifiedSemanticRules
121
121
  };
122
- //# sourceMappingURL=chunk-342VFB56.js.map
122
+ //# sourceMappingURL=chunk-RVPISCKY.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raceRecallAbort,
3
3
  throwIfRecallAborted
4
- } from "./chunk-VRBGYSSQ.js";
4
+ } from "./chunk-KETT3EZO.js";
5
5
  import {
6
6
  emitExtractionLlmFailureError,
7
7
  recordExtractionLlmFailure,
@@ -1185,4 +1185,4 @@ export {
1185
1185
  ExtractionDeadlineError,
1186
1186
  ExtractionRunCoordinator
1187
1187
  };
1188
- //# sourceMappingURL=chunk-BYWNF25B.js.map
1188
+ //# sourceMappingURL=chunk-SFHEIWIE.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-B7RWBZXW.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-IUXTKLZY.js";
6
+ } from "./chunk-MSVBNOFX.js";
7
7
  import {
8
8
  countRecallTokenOverlap,
9
9
  normalizeRecallTokens
@@ -11,7 +11,7 @@ import {
11
11
  import {
12
12
  getCachedEpisodeMap,
13
13
  setCachedEpisodeMap
14
- } from "./chunk-C64XATK7.js";
14
+ } from "./chunk-4U5VHHVF.js";
15
15
 
16
16
  // src/verified-recall.ts
17
17
  function createReadOnlyBoxBuilder(memoryDir) {
@@ -109,4 +109,4 @@ export {
109
109
  compareVerifiedEpisodeResults,
110
110
  searchVerifiedEpisodes
111
111
  };
112
- //# sourceMappingURL=chunk-YXFY4YOF.js.map
112
+ //# sourceMappingURL=chunk-TD72RHHZ.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rebuildMemoryProjection
3
- } from "./chunk-DGLNT6VO.js";
3
+ } from "./chunk-HQV5GCMD.js";
4
4
 
5
5
  // src/convergence-refresh.ts
6
6
  async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, getStorage, searchEnabled) {
@@ -32,4 +32,4 @@ async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, get
32
32
  export {
33
33
  refreshConvergedNamespaces
34
34
  };
35
- //# sourceMappingURL=chunk-FREKFMCA.js.map
35
+ //# sourceMappingURL=chunk-TJE4LIVD.js.map