@remnic/core 9.48.1 → 9.49.1

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 (616) hide show
  1. package/dist/abstraction-nodes.d.ts +12 -1
  2. package/dist/abstraction-nodes.js +9 -2
  3. package/dist/access-admin-ops-surface.d.ts +11 -10
  4. package/dist/access-admin-ops-surface.js +46 -45
  5. package/dist/access-audit.js +2 -2
  6. package/dist/access-authorization-probe.d.ts +11 -10
  7. package/dist/access-authorization-probe.js +47 -46
  8. package/dist/access-boundary.d.ts +11 -10
  9. package/dist/access-boundary.js +46 -45
  10. package/dist/access-cli.js +127 -121
  11. package/dist/access-cli.js.map +1 -1
  12. package/dist/access-coding-context-resolution.d.ts +1 -1
  13. package/dist/access-extraction-force-flush.d.ts +11 -10
  14. package/dist/access-extraction-force-flush.js +46 -45
  15. package/dist/access-health-types.d.ts +1 -1
  16. package/dist/access-http-lcm-compaction.d.ts +11 -10
  17. package/dist/access-http-lifecycle-flush.d.ts +11 -10
  18. package/dist/access-http-offline-stream.d.ts +11 -10
  19. package/dist/access-http-query.js +46 -45
  20. package/dist/access-http.d.ts +11 -10
  21. package/dist/access-http.js +57 -56
  22. package/dist/access-identity-continuity-surface.d.ts +9 -8
  23. package/dist/access-identity-continuity-surface.js +46 -45
  24. package/dist/access-lcm-surface.d.ts +11 -10
  25. package/dist/access-lcm-surface.js +46 -45
  26. package/dist/access-mcp.d.ts +11 -10
  27. package/dist/access-mcp.js +52 -51
  28. package/dist/access-memory-search-fanout.d.ts +2 -2
  29. package/dist/{access-namespace-preflight--H6HwN85.d.ts → access-namespace-preflight-DuDU301-.d.ts} +1 -1
  30. package/dist/access-namespace-preflight.d.ts +3 -3
  31. package/dist/access-namespace-preflight.js +46 -45
  32. package/dist/access-observe-write-surface.d.ts +11 -10
  33. package/dist/access-observe-write-surface.js +46 -45
  34. package/dist/access-offline-manifest.d.ts +9 -8
  35. package/dist/access-offline-manifest.js +3 -3
  36. package/dist/access-operations-batch.js +48 -47
  37. package/dist/access-operations.d.ts +14 -13
  38. package/dist/access-operations.js +51 -50
  39. package/dist/access-recall-concurrency.d.ts +11 -10
  40. package/dist/access-recall-concurrency.js +46 -45
  41. package/dist/access-recall-response.d.ts +11 -10
  42. package/dist/access-recall-response.js +46 -45
  43. package/dist/access-recall-surface.d.ts +11 -10
  44. package/dist/access-recall-surface.js +46 -45
  45. package/dist/access-schema.d.ts +105 -105
  46. package/dist/access-schema.js +3 -3
  47. package/dist/{access-service-andNjwfD.d.ts → access-service--_3T_v23.d.ts} +7 -7
  48. package/dist/access-service-helpers.d.ts +11 -10
  49. package/dist/access-service.d.ts +11 -10
  50. package/dist/access-service.js +46 -45
  51. package/dist/access-surface-catalog.d.ts +11 -10
  52. package/dist/access-wearables-meetings-surface.d.ts +4 -3
  53. package/dist/action-confidence.d.ts +1 -1
  54. package/dist/active-memory-bridge.d.ts +1 -1
  55. package/dist/active-recall.d.ts +1 -1
  56. package/dist/active-recall.js +3 -2
  57. package/dist/active-recall.js.map +1 -1
  58. package/dist/adapters/index.js +4 -4
  59. package/dist/adapters/registry.js +2 -2
  60. package/dist/ambient-provenance.d.ts +1 -1
  61. package/dist/artifact-search.d.ts +1 -1
  62. package/dist/{auto-sync-7O6RP2RT.js → auto-sync-QFQGOEO2.js} +4 -4
  63. package/dist/behavior-learner.d.ts +1 -1
  64. package/dist/behavior-signals.d.ts +1 -1
  65. package/dist/bootstrap.d.ts +9 -8
  66. package/dist/briefing.d.ts +3 -2
  67. package/dist/briefing.js +15 -14
  68. package/dist/buffer-surprise-report.d.ts +1 -1
  69. package/dist/buffer-turn-helpers.d.ts +1 -1
  70. package/dist/buffer.d.ts +3 -2
  71. package/dist/buffer.js +4 -4
  72. package/dist/bulk-import/index.d.ts +3 -3
  73. package/dist/calibration.d.ts +1 -1
  74. package/dist/calibration.js +1 -1
  75. package/dist/capabilities.d.ts +1 -1
  76. package/dist/{capsule-merge-Q6AR3XL7.js → capsule-merge-KXTRZ23Z.js} +6 -6
  77. package/dist/{catalog-Iwbk9h5E.d.ts → catalog-DjUmUIal.d.ts} +1 -1
  78. package/dist/causal-behavior.d.ts +1 -1
  79. package/dist/causal-behavior.js +3 -3
  80. package/dist/causal-chain.js +3 -3
  81. package/dist/causal-consolidation.d.ts +1 -1
  82. package/dist/causal-consolidation.js +19 -18
  83. package/dist/causal-consolidation.js.map +1 -1
  84. package/dist/causal-retrieval.js +3 -3
  85. package/dist/causal-trajectory-graph.d.ts +1 -1
  86. package/dist/causal-trajectory.d.ts +51 -2
  87. package/dist/causal-trajectory.js +8 -2
  88. package/dist/{chunk-PLCZD3LG.js → chunk-24BKGKGO.js} +91 -45
  89. package/dist/chunk-24BKGKGO.js.map +1 -0
  90. package/dist/{chunk-ICP53SKG.js → chunk-2HIJHXB3.js} +2 -2
  91. package/dist/{chunk-LZGCJSQR.js → chunk-3LD4N2TF.js} +151 -37
  92. package/dist/chunk-3LD4N2TF.js.map +1 -0
  93. package/dist/{chunk-FJ2ND6CZ.js → chunk-47J4EDGR.js} +2 -2
  94. package/dist/{chunk-S55OAS5P.js → chunk-4EABKPZS.js} +4 -4
  95. package/dist/{chunk-GD7UPIBG.js → chunk-4JWJMRPJ.js} +2 -2
  96. package/dist/{chunk-3NDN5P55.js → chunk-4S3ECH3U.js} +2 -2
  97. package/dist/chunk-5GINB5LC.js +13 -0
  98. package/dist/chunk-5GINB5LC.js.map +1 -0
  99. package/dist/{chunk-CGASUJVP.js → chunk-5V6IXHPI.js} +4 -4
  100. package/dist/{chunk-A4JMGKCD.js → chunk-5XCN4XBU.js} +4 -4
  101. package/dist/{chunk-2RPJ4NEE.js → chunk-64BHFFKZ.js} +2 -2
  102. package/dist/{chunk-FQC3DHH2.js → chunk-66SE3BNH.js} +2 -2
  103. package/dist/{chunk-TERNBNJB.js → chunk-6FC3IZ26.js} +2 -2
  104. package/dist/{chunk-53AJILXF.js → chunk-6XGEBQ3R.js} +4 -4
  105. package/dist/{chunk-IP3DHDU2.js → chunk-7BLWBSRL.js} +3 -3
  106. package/dist/{chunk-A2TFK5PG.js → chunk-7NDM2PNK.js} +3 -3
  107. package/dist/{chunk-HRMEYQRO.js → chunk-7VWZ4LRW.js} +2 -2
  108. package/dist/{chunk-RN53QBM4.js → chunk-A4QMKFFO.js} +5 -1
  109. package/dist/chunk-A4QMKFFO.js.map +1 -0
  110. package/dist/chunk-ACPCA4NO.js +321 -0
  111. package/dist/chunk-ACPCA4NO.js.map +1 -0
  112. package/dist/chunk-AMTEYNYK.js +72 -0
  113. package/dist/chunk-AMTEYNYK.js.map +1 -0
  114. package/dist/{chunk-R6YJI3HE.js → chunk-AW4QUFQF.js} +1 -1
  115. package/dist/{chunk-P65YJEEL.js → chunk-AXFWMRKI.js} +2 -2
  116. package/dist/{chunk-WG5HSQ4P.js → chunk-BAKXNQ3C.js} +2 -2
  117. package/dist/{chunk-NM2WP3B7.js → chunk-BJYET5TX.js} +2 -2
  118. package/dist/{chunk-HLKPRWF4.js → chunk-DATDLJAO.js} +6 -6
  119. package/dist/chunk-DJUKBGAD.js +260 -0
  120. package/dist/chunk-DJUKBGAD.js.map +1 -0
  121. package/dist/{chunk-DX3XRGLH.js → chunk-DQTCGVFK.js} +2 -2
  122. package/dist/{chunk-HIDEBEAN.js → chunk-E633OXMH.js} +11 -11
  123. package/dist/{chunk-J7T4MX7P.js → chunk-EEAMSNSG.js} +12 -1
  124. package/dist/chunk-EEAMSNSG.js.map +1 -0
  125. package/dist/{chunk-EZNXW27Q.js → chunk-ELQCS47S.js} +4 -4
  126. package/dist/{chunk-HAYSYUAB.js → chunk-EURCX6PS.js} +2 -2
  127. package/dist/{chunk-RSPSHRZA.js → chunk-FV7YQTN3.js} +2 -2
  128. package/dist/chunk-G73MCJKL.js +20 -0
  129. package/dist/chunk-G73MCJKL.js.map +1 -0
  130. package/dist/{chunk-GWHPQOUC.js → chunk-GGBSF2X7.js} +2 -2
  131. package/dist/{chunk-SYUBB3WM.js → chunk-GKEYXXKX.js} +2 -2
  132. package/dist/{chunk-PELT6ADC.js → chunk-GSEPRIZC.js} +3 -3
  133. package/dist/{chunk-UTVZKHJK.js → chunk-GUKBW4HL.js} +2 -2
  134. package/dist/chunk-GXSOUIA4.js +293 -0
  135. package/dist/chunk-GXSOUIA4.js.map +1 -0
  136. package/dist/{chunk-2F6NP3NT.js → chunk-HDQUQBPW.js} +2 -2
  137. package/dist/{chunk-6HMYUWXR.js → chunk-HTP6XRUI.js} +2 -2
  138. package/dist/{chunk-UYUYZ4WY.js → chunk-IARXXZU4.js} +2 -2
  139. package/dist/{chunk-MNB5RMAY.js → chunk-IIFFC3RL.js} +2 -2
  140. package/dist/{chunk-KQAFEZQX.js → chunk-IPLYGWQF.js} +5 -5
  141. package/dist/{chunk-NZBZ7IS2.js → chunk-JDCQK3C5.js} +2 -2
  142. package/dist/{chunk-ANCC3JJH.js → chunk-JI62YGPI.js} +2 -2
  143. package/dist/{chunk-LULR4IUW.js → chunk-KATEWTQJ.js} +2 -2
  144. package/dist/{chunk-IJ7HK452.js → chunk-KMAP7SNQ.js} +2 -2
  145. package/dist/{chunk-PRVJH7CY.js → chunk-KMWYZTIE.js} +2 -2
  146. package/dist/{chunk-JGSKJHF7.js → chunk-KQS72GCR.js} +2 -2
  147. package/dist/{chunk-3S63QIFQ.js → chunk-LAQ33B5D.js} +1 -1
  148. package/dist/chunk-LAQ33B5D.js.map +1 -0
  149. package/dist/chunk-LNTUXKBT.js +224 -0
  150. package/dist/chunk-LNTUXKBT.js.map +1 -0
  151. package/dist/{chunk-FMCHFSZF.js → chunk-LQKXVQZR.js} +12 -12
  152. package/dist/{chunk-M4DMO67I.js → chunk-LTOAJXZB.js} +4 -4
  153. package/dist/{chunk-NIS256NW.js → chunk-LYMNZZIM.js} +2 -2
  154. package/dist/{chunk-W4FBGYGK.js → chunk-M4MP34AQ.js} +189 -5
  155. package/dist/chunk-M4MP34AQ.js.map +1 -0
  156. package/dist/{chunk-3PY7VHV7.js → chunk-MCA2X4WH.js} +2 -2
  157. package/dist/{chunk-S5NZBKKQ.js → chunk-N3CXAYPJ.js} +3 -3
  158. package/dist/{chunk-WQIHRA5F.js → chunk-N3LL5NEU.js} +2 -2
  159. package/dist/{chunk-G2RBWVFQ.js → chunk-NKL25FCF.js} +2 -2
  160. package/dist/{chunk-LMDRGRJ2.js → chunk-NOB2T2FC.js} +2 -2
  161. package/dist/{chunk-P2OTGMTR.js → chunk-NSGU76YO.js} +2 -2
  162. package/dist/{chunk-D5NGH2EW.js → chunk-O76MWTVS.js} +2 -2
  163. package/dist/{chunk-WZFAPHIK.js → chunk-OIOZ6MOP.js} +3 -3
  164. package/dist/{chunk-DNHVPZOD.js → chunk-P26YHAQH.js} +201 -1
  165. package/dist/chunk-P26YHAQH.js.map +1 -0
  166. package/dist/{chunk-UMOO7IY7.js → chunk-P2KBDJJ6.js} +2 -2
  167. package/dist/{chunk-KVJRXN2E.js → chunk-P4QOYG52.js} +125 -13
  168. package/dist/chunk-P4QOYG52.js.map +1 -0
  169. package/dist/chunk-P77QX3ID.js +332 -0
  170. package/dist/chunk-P77QX3ID.js.map +1 -0
  171. package/dist/{chunk-SXWHN7GC.js → chunk-PDEKQWDV.js} +2 -2
  172. package/dist/{chunk-2EJNXE53.js → chunk-PLCHU56K.js} +3 -3
  173. package/dist/{chunk-45OTV7FZ.js → chunk-PWIMF7LP.js} +38 -38
  174. package/dist/{chunk-7YKVM5H3.js → chunk-PWLB4TRK.js} +3 -3
  175. package/dist/{chunk-RVYVMQK4.js → chunk-QSYL5CXK.js} +3 -3
  176. package/dist/{chunk-NXUJRXSF.js → chunk-QWLW3VQH.js} +2 -2
  177. package/dist/chunk-RBOJCG4T.js +77 -0
  178. package/dist/chunk-RBOJCG4T.js.map +1 -0
  179. package/dist/{chunk-2P3GQVM2.js → chunk-RBPH3GZV.js} +418 -105
  180. package/dist/chunk-RBPH3GZV.js.map +1 -0
  181. package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
  182. package/dist/{chunk-QCECHYZL.js → chunk-RVO6TCTU.js} +6 -6
  183. package/dist/{chunk-5L7PTX2Q.js → chunk-S2SJEOTM.js} +2 -2
  184. package/dist/{chunk-52I3YZZ6.js → chunk-S75UQ3T3.js} +3 -3
  185. package/dist/{chunk-LXOM6IQU.js → chunk-SEF4IOFE.js} +2 -2
  186. package/dist/{chunk-DUEEQCTT.js → chunk-SHYIMIX5.js} +2 -2
  187. package/dist/{chunk-KSGEGHYA.js → chunk-T35UJI5R.js} +78 -74
  188. package/dist/chunk-T35UJI5R.js.map +1 -0
  189. package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
  190. package/dist/{chunk-3JUYWPFJ.js → chunk-VFS3MK5F.js} +2 -2
  191. package/dist/chunk-VUDMT5CP.js +86 -0
  192. package/dist/chunk-VUDMT5CP.js.map +1 -0
  193. package/dist/{chunk-CMQZNEIF.js → chunk-WFLBP5GC.js} +8 -1
  194. package/dist/chunk-WFLBP5GC.js.map +1 -0
  195. package/dist/{chunk-WOEVJKKQ.js → chunk-WPZX7MEA.js} +4 -4
  196. package/dist/{chunk-ZRWB5D4H.js → chunk-WT6UL3UA.js} +2 -2
  197. package/dist/{chunk-MC6XO7T4.js → chunk-YLBE6PLR.js} +2 -2
  198. package/dist/{chunk-GF22HWS2.js → chunk-Z54EM5YZ.js} +4 -4
  199. package/dist/{chunk-GVX3NAUU.js → chunk-ZDAYWJV6.js} +2 -2
  200. package/dist/{chunk-4WBGZYZZ.js → chunk-ZJIFYUJI.js} +7 -7
  201. package/dist/chunk-ZJIFYUJI.js.map +1 -0
  202. package/dist/{chunk-JYPO7L3G.js → chunk-ZN4EYMKJ.js} +2 -2
  203. package/dist/{cli-p_WmVo2h.d.ts → cli-BLNmNEMT.d.ts} +16 -14
  204. package/dist/cli.d.ts +14 -13
  205. package/dist/cli.js +90 -87
  206. package/dist/coding/pre-action-gate.d.ts +66 -0
  207. package/dist/coding/pre-action-gate.js +22 -0
  208. package/dist/commitment-ledger.js +2 -2
  209. package/dist/compounding/engine.d.ts +3 -2
  210. package/dist/compounding/engine.js +16 -15
  211. package/dist/compounding/preference-consolidator.d.ts +1 -1
  212. package/dist/compression-optimizer.d.ts +1 -1
  213. package/dist/config.d.ts +1 -1
  214. package/dist/config.js +3 -2
  215. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  216. package/dist/connectors/codex-materialize-runner.js +15 -14
  217. package/dist/connectors/codex-materialize.d.ts +1 -1
  218. package/dist/connectors/index.d.ts +1 -1
  219. package/dist/connectors/index.js +15 -14
  220. package/dist/consolidation-provenance-check.d.ts +3 -2
  221. package/dist/consolidation-provenance-check.js +6 -6
  222. package/dist/consolidation-undo.d.ts +3 -2
  223. package/dist/consolidation-undo.js +5 -5
  224. package/dist/contradiction/index.d.ts +3 -2
  225. package/dist/contradiction/index.js +3 -3
  226. package/dist/converge-config.d.ts +1 -1
  227. package/dist/convergence-refresh.d.ts +3 -2
  228. package/dist/convergence-refresh.js +18 -17
  229. package/dist/conversation-index/backend.d.ts +1 -1
  230. package/dist/conversation-index/chunker.d.ts +1 -1
  231. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  232. package/dist/conversation-index/indexer.d.ts +1 -1
  233. package/dist/conversation-index/search.d.ts +1 -1
  234. package/dist/corpus-read-cancellation.d.ts +38 -0
  235. package/dist/corpus-read-cancellation.js +9 -0
  236. package/dist/corpus-read-cancellation.js.map +1 -0
  237. package/dist/corpus-watermark.d.ts +1 -1
  238. package/dist/corpus-watermark.js +21 -20
  239. package/dist/cue-anchors.d.ts +19 -1
  240. package/dist/cue-anchors.js +10 -2
  241. package/dist/day-summary.d.ts +1 -1
  242. package/dist/delinearize.d.ts +1 -1
  243. package/dist/dependency-propagation-config.d.ts +10 -0
  244. package/dist/dependency-propagation-config.js +10 -0
  245. package/dist/dependency-propagation-config.js.map +1 -0
  246. package/dist/deterministic-order.d.ts +4 -0
  247. package/dist/deterministic-order.js +10 -0
  248. package/dist/deterministic-order.js.map +1 -0
  249. package/dist/direct-answer-wiring.d.ts +1 -1
  250. package/dist/direct-answer.d.ts +1 -1
  251. package/dist/embedding-fallback.d.ts +1 -1
  252. package/dist/enrichment/index.d.ts +1 -1
  253. package/dist/entity-retrieval.d.ts +3 -2
  254. package/dist/entity-retrieval.js +15 -14
  255. package/dist/entity-schema.d.ts +1 -1
  256. package/dist/evals.js +2 -2
  257. package/dist/explicit-capture.d.ts +9 -8
  258. package/dist/explicit-capture.js +6 -6
  259. package/dist/external-wiki-access.d.ts +11 -10
  260. package/dist/external-wiki-access.js +47 -46
  261. package/dist/external-wiki-collection-registration.d.ts +1 -1
  262. package/dist/external-wiki-collection.d.ts +1 -1
  263. package/dist/external-wiki-mcp-tools.d.ts +11 -10
  264. package/dist/extraction-error-classification.d.ts +1 -1
  265. package/dist/extraction-faithfulness.d.ts +1 -1
  266. package/dist/extraction-judge-telemetry.d.ts +1 -1
  267. package/dist/extraction-judge-training.d.ts +1 -1
  268. package/dist/extraction-judge.d.ts +1 -1
  269. package/dist/extraction-liveness.d.ts +1 -1
  270. package/dist/extraction-normalization.d.ts +14 -0
  271. package/dist/extraction-normalization.js +22 -0
  272. package/dist/extraction-normalization.js.map +1 -0
  273. package/dist/extraction-prompt.d.ts +4 -3
  274. package/dist/extraction-prompt.js +3 -1
  275. package/dist/extraction-source-grounding-rules.d.ts +1 -1
  276. package/dist/extraction-source-grounding.d.ts +1 -1
  277. package/dist/extraction.d.ts +18 -1
  278. package/dist/extraction.js +24 -21
  279. package/dist/fallback-llm.d.ts +1 -1
  280. package/dist/{first-start-migration-ZSHEFEI3.js → first-start-migration-626C5554.js} +5 -5
  281. package/dist/{forget-DNAJ66ZD.js → forget-GJ42LCBW.js} +2 -2
  282. package/dist/graph-dashboard-diff.d.ts +1 -1
  283. package/dist/graph-dashboard-key.d.ts +1 -1
  284. package/dist/graph-dashboard-parser.d.ts +1 -1
  285. package/dist/graph-edge-reinforcement.d.ts +1 -1
  286. package/dist/graph-snapshot.d.ts +1 -1
  287. package/dist/graph.d.ts +1 -1
  288. package/dist/harmonic-construction.d.ts +43 -0
  289. package/dist/harmonic-construction.js +26 -0
  290. package/dist/harmonic-construction.js.map +1 -0
  291. package/dist/harmonic-retrieval.d.ts +1 -0
  292. package/dist/harmonic-retrieval.js +10 -4
  293. package/dist/importance.d.ts +1 -1
  294. package/dist/importers/index.d.ts +1 -1
  295. package/dist/in-flight-reads.d.ts +47 -3
  296. package/dist/in-flight-reads.js +5 -3
  297. package/dist/index.d.ts +699 -696
  298. package/dist/index.js +197 -150
  299. package/dist/intent.d.ts +1 -1
  300. package/dist/json-store.d.ts +15 -1
  301. package/dist/json-store.js +11 -3
  302. package/dist/lcm/engine.d.ts +1 -1
  303. package/dist/lcm/engine.js +2 -2
  304. package/dist/lcm/index.d.ts +1 -1
  305. package/dist/lcm/index.js +7 -7
  306. package/dist/lcm/tools.d.ts +1 -1
  307. package/dist/lifecycle.d.ts +1 -1
  308. package/dist/live-connectors-runner.d.ts +1 -1
  309. package/dist/local-llm.d.ts +1 -1
  310. package/dist/local-model-endpoint.d.ts +1 -1
  311. package/dist/maintenance/archive-observations.js +2 -2
  312. package/dist/maintenance/atomic-file.d.ts +5 -0
  313. package/dist/maintenance/atomic-file.js +12 -0
  314. package/dist/maintenance/atomic-file.js.map +1 -0
  315. package/dist/maintenance/memory-governance.d.ts +1 -1
  316. package/dist/maintenance/memory-governance.js +15 -14
  317. package/dist/maintenance/migrate-observations.js +3 -3
  318. package/dist/maintenance/observation-ledger-utils.d.ts +1 -1
  319. package/dist/maintenance/observation-ledger-utils.js +2 -2
  320. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
  321. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +16 -15
  322. package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
  323. package/dist/maintenance/rebuild-memory-projection.js +17 -16
  324. package/dist/maintenance/rebuild-observations.js +3 -3
  325. package/dist/{maintenance-BfcuwfJS.d.ts → maintenance-DKbKZi3u.d.ts} +3 -3
  326. package/dist/mcp-memory-inspector-app.d.ts +11 -10
  327. package/dist/memory-action-policy.d.ts +1 -1
  328. package/dist/memory-cache.d.ts +1 -1
  329. package/dist/memory-corpus-version.js +2 -2
  330. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  331. package/dist/memory-projection-store.d.ts +1 -1
  332. package/dist/memory-provenance.d.ts +1 -1
  333. package/dist/memory-snapshot.d.ts +1 -1
  334. package/dist/memory-worth-outcomes.d.ts +3 -2
  335. package/dist/models-json.d.ts +1 -1
  336. package/dist/namespaces/migrate.d.ts +4 -3
  337. package/dist/namespaces/migrate.js +20 -19
  338. package/dist/namespaces/principal.d.ts +1 -1
  339. package/dist/namespaces/search.d.ts +1 -1
  340. package/dist/namespaces/search.js +4 -4
  341. package/dist/namespaces/storage.d.ts +4 -3
  342. package/dist/namespaces/storage.js +15 -14
  343. package/dist/native-knowledge.d.ts +1 -1
  344. package/dist/objective-state-writers.js +3 -3
  345. package/dist/objective-state.js +2 -2
  346. package/dist/offline-sync-impression-drain.d.ts +1 -1
  347. package/dist/offline-sync-impression-drain.js +2 -2
  348. package/dist/operator-doctor-corpus.d.ts +1 -1
  349. package/dist/operator-doctor-corpus.js +22 -21
  350. package/dist/operator-doctor-replica.d.ts +1 -1
  351. package/dist/operator-toolkit.d.ts +4 -3
  352. package/dist/operator-toolkit.js +31 -29
  353. package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
  354. package/dist/orchestration/maintenance.d.ts +5 -4
  355. package/dist/orchestration/maintenance.js +21 -20
  356. package/dist/{orchestrator-B7nLo4z1.d.ts → orchestrator-BRwD7ceU.d.ts} +7 -7
  357. package/dist/orchestrator.d.ts +9 -8
  358. package/dist/orchestrator.js +127 -121
  359. package/dist/page-versioning.js +5 -5
  360. package/dist/patterns-cli.d.ts +1 -1
  361. package/dist/{pipeline-1h2GpiHP.d.ts → pipeline-DC-1C9T8.d.ts} +1 -1
  362. package/dist/policy-runtime.d.ts +1 -1
  363. package/dist/proactive-contention.d.ts +1 -1
  364. package/dist/provenance.d.ts +1 -1
  365. package/dist/{qmd-UdwoF71D.d.ts → qmd-DdeCEZdb.d.ts} +1 -1
  366. package/dist/qmd-preflight.d.ts +2 -2
  367. package/dist/qmd-recall-cache.d.ts +1 -1
  368. package/dist/qmd.d.ts +2 -2
  369. package/dist/qmd.js +4 -4
  370. package/dist/recall-concurrency-config.d.ts +1 -1
  371. package/dist/recall-disclosure-escalation.d.ts +1 -1
  372. package/dist/recall-explain-renderer.d.ts +1 -1
  373. package/dist/recall-explain-renderer.js +3 -3
  374. package/dist/recall-memory-map.d.ts +1 -1
  375. package/dist/recall-planner-llm.d.ts +1 -1
  376. package/dist/recall-state.d.ts +1 -1
  377. package/dist/recall-state.js +2 -2
  378. package/dist/recall-tag-filter.d.ts +1 -1
  379. package/dist/recall-timings.d.ts +1 -1
  380. package/dist/recall-xray-cli.d.ts +1 -1
  381. package/dist/recall-xray-cli.js +4 -4
  382. package/dist/recall-xray-renderer.d.ts +1 -1
  383. package/dist/recall-xray-renderer.js +3 -3
  384. package/dist/recall-xray.d.ts +1 -1
  385. package/dist/recall-xray.js +2 -2
  386. package/dist/reconcile/cursor.d.ts +1 -1
  387. package/dist/reconcile/manifest.d.ts +1 -1
  388. package/dist/reconcile/plan.d.ts +1 -1
  389. package/dist/relevance.js +2 -2
  390. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  391. package/dist/replay/normalizers/claude.d.ts +1 -1
  392. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  393. package/dist/replay/normalizers/shared.d.ts +1 -1
  394. package/dist/replay/runner.d.ts +1 -1
  395. package/dist/replay/types.d.ts +1 -1
  396. package/dist/replica-divergence.d.ts +1 -1
  397. package/dist/replica-peers-config.d.ts +1 -1
  398. package/dist/{resolution-3K27T4VO.js → resolution-MDPNOEG6.js} +4 -4
  399. package/dist/resolution-MDPNOEG6.js.map +1 -0
  400. package/dist/resolve-auth-token.d.ts +1 -1
  401. package/dist/resume-bundles.js +8 -7
  402. package/dist/retrieval-agents.d.ts +2 -2
  403. package/dist/retrieval-tiers.d.ts +1 -1
  404. package/dist/routing/engine.d.ts +1 -1
  405. package/dist/routing/store.d.ts +1 -1
  406. package/dist/salvage-envelope.d.ts +1 -1
  407. package/dist/salvage-envelope.js +3 -3
  408. package/dist/schemas.d.ts +213 -116
  409. package/dist/schemas.js +1 -1
  410. package/dist/{scope-profiles-APjhSe-w.d.ts → scope-profiles-BXVq4Jv0.d.ts} +1 -1
  411. package/dist/search/embed-helper.d.ts +1 -1
  412. package/dist/search/factory.d.ts +1 -1
  413. package/dist/search/factory.js +3 -3
  414. package/dist/search/index.d.ts +1 -1
  415. package/dist/search/index.js +3 -3
  416. package/dist/search/lancedb-backend.d.ts +1 -1
  417. package/dist/search/meilisearch-backend.d.ts +1 -1
  418. package/dist/search/noop-backend.d.ts +1 -1
  419. package/dist/search/orama-backend.d.ts +1 -1
  420. package/dist/search/port.d.ts +1 -1
  421. package/dist/search/remote-backend.d.ts +1 -1
  422. package/dist/{semantic-consolidation-CrySDbk3.d.ts → semantic-consolidation-CGYxfa8F.d.ts} +1 -1
  423. package/dist/semantic-consolidation.d.ts +2 -2
  424. package/dist/semantic-consolidation.js +16 -15
  425. package/dist/semantic-rule-promotion.js +15 -14
  426. package/dist/semantic-rule-verifier.d.ts +1 -1
  427. package/dist/semantic-rule-verifier.js +15 -14
  428. package/dist/{service-B5W5IYCx.d.ts → service-CBDBQFCN.d.ts} +2 -2
  429. package/dist/session-observer-bands.d.ts +1 -1
  430. package/dist/session-observer-state.d.ts +1 -1
  431. package/dist/shared-context/manager.d.ts +11 -11
  432. package/dist/signal.d.ts +1 -1
  433. package/dist/source-agent-qualifier.d.ts +1 -1
  434. package/dist/source-agent-qualifier.js +19 -18
  435. package/dist/{storage-COL907QF.d.ts → storage-V--MQi7w.d.ts} +5 -4
  436. package/dist/storage.d.ts +3 -2
  437. package/dist/storage.js +14 -13
  438. package/dist/summarizer.d.ts +1 -1
  439. package/dist/summary-snapshot.d.ts +1 -1
  440. package/dist/temporal-supersession.d.ts +14 -2
  441. package/dist/temporal-supersession.js +1 -1
  442. package/dist/temporal-timeline-recall.d.ts +1 -1
  443. package/dist/temporal-validity.d.ts +1 -1
  444. package/dist/threading.d.ts +1 -1
  445. package/dist/tier-migration.d.ts +3 -2
  446. package/dist/tier-routing.d.ts +1 -1
  447. package/dist/{tier-stats-OPTSBNRH.js → tier-stats-2JCZYEF7.js} +5 -5
  448. package/dist/topics.d.ts +1 -1
  449. package/dist/transcript.d.ts +1 -1
  450. package/dist/transfer/autodetect.js +1 -1
  451. package/dist/transfer/backup.js +1 -1
  452. package/dist/transfer/capsule-export.js +2 -2
  453. package/dist/transfer/capsule-import.js +6 -6
  454. package/dist/transfer/types.d.ts +66 -66
  455. package/dist/trust-score-stage.d.ts +1 -1
  456. package/dist/trust-score.d.ts +1 -1
  457. package/dist/trust-zones.js +2 -2
  458. package/dist/{types-D_Au9qJO.d.ts → types-D_a6Sqjz.d.ts} +25 -8
  459. package/dist/types.d.ts +1 -1
  460. package/dist/types.js +1 -1
  461. package/dist/utility-learner.js +3 -3
  462. package/dist/utility-runtime.d.ts +1 -1
  463. package/dist/utility-runtime.js +4 -4
  464. package/dist/utility-telemetry.js +2 -2
  465. package/dist/verified-recall.js +15 -14
  466. package/dist/work-product-ledger.js +2 -2
  467. package/dist/write-envelope.d.ts +1 -1
  468. package/dist/write-envelope.js +2 -2
  469. package/package.json +32 -2
  470. package/src/abstraction-nodes.ts +182 -4
  471. package/src/causal-trajectory.ts +258 -3
  472. package/src/cli/harmonic-search.ts +23 -0
  473. package/src/cli/research-status-commands.ts +2 -1
  474. package/src/cli.ts +1 -24
  475. package/src/coding/pre-action-gate.test.ts +516 -0
  476. package/src/coding/pre-action-gate.ts +320 -0
  477. package/src/config.test.ts +85 -0
  478. package/src/config.ts +2 -0
  479. package/src/corpus-read-cancellation.ts +42 -0
  480. package/src/cue-anchors.test.ts +90 -0
  481. package/src/cue-anchors.ts +264 -11
  482. package/src/dependency-frontmatter.test.ts +83 -0
  483. package/src/dependency-propagation-config.ts +94 -0
  484. package/src/deterministic-order.ts +14 -0
  485. package/src/entity-retrieval.ts +4 -4
  486. package/src/extraction-normalization.ts +71 -0
  487. package/src/extraction-prompt.ts +45 -11
  488. package/src/extraction.ts +48 -32
  489. package/src/faithfulness-graph-guard.test.ts +27 -0
  490. package/src/harmonic-construction.test.ts +1799 -0
  491. package/src/harmonic-construction.ts +367 -0
  492. package/src/harmonic-retrieval.ts +166 -25
  493. package/src/in-flight-reads.ts +119 -6
  494. package/src/index.ts +4 -5
  495. package/src/json-store.ts +354 -12
  496. package/src/orchestration/consolidation-run.ts +192 -0
  497. package/src/orchestration/contradiction-linking-coordinator.ts +35 -1
  498. package/src/orchestration/dependency-propagation-triggers.test.ts +286 -0
  499. package/src/orchestration/dependency-propagation.test.ts +487 -0
  500. package/src/orchestration/dependency-propagation.ts +263 -0
  501. package/src/orchestration/dependency-revalidation.ts +173 -0
  502. package/src/orchestration/extraction-persist-deps.ts +93 -0
  503. package/src/orchestration/extraction-persist.ts +101 -94
  504. package/src/orchestration/harmonic-construction-persist.ts +86 -0
  505. package/src/orchestration/namespace-read-fanout.ts +13 -2
  506. package/src/orchestration/recall-internal-deps.ts +2 -0
  507. package/src/orchestration/recall-internal.ts +5 -1
  508. package/src/orchestration/recall-search-pipeline.ts +2 -0
  509. package/src/orchestration/recall-search-prefilter.ts +5 -1
  510. package/src/orchestrator.ts +7 -6
  511. package/src/schemas.ts +15 -0
  512. package/src/storage/entity-store.ts +9 -2
  513. package/src/storage/memory-read-store.ts +33 -4
  514. package/src/storage-contract/corpus-read-cancellation.test.ts +408 -0
  515. package/src/storage.ts +75 -19
  516. package/src/temporal-supersession.ts +29 -1
  517. package/src/testing/orchestrator-lite.ts +27 -8
  518. package/src/testing/subjects/extraction-lifecycle.test.ts +91 -50
  519. package/src/types.ts +22 -7
  520. package/dist/chunk-2P3GQVM2.js.map +0 -1
  521. package/dist/chunk-3S63QIFQ.js.map +0 -1
  522. package/dist/chunk-4WBGZYZZ.js.map +0 -1
  523. package/dist/chunk-CMQZNEIF.js.map +0 -1
  524. package/dist/chunk-DNHVPZOD.js.map +0 -1
  525. package/dist/chunk-FZZ2QTJI.js +0 -111
  526. package/dist/chunk-FZZ2QTJI.js.map +0 -1
  527. package/dist/chunk-J7T4MX7P.js.map +0 -1
  528. package/dist/chunk-KSGEGHYA.js.map +0 -1
  529. package/dist/chunk-KVJRXN2E.js.map +0 -1
  530. package/dist/chunk-LPSF4OQH.js +0 -47
  531. package/dist/chunk-LPSF4OQH.js.map +0 -1
  532. package/dist/chunk-LZGCJSQR.js.map +0 -1
  533. package/dist/chunk-OADWQ5CR.js +0 -115
  534. package/dist/chunk-OADWQ5CR.js.map +0 -1
  535. package/dist/chunk-PDJTHRAW.js +0 -36
  536. package/dist/chunk-PDJTHRAW.js.map +0 -1
  537. package/dist/chunk-PLCZD3LG.js.map +0 -1
  538. package/dist/chunk-RN53QBM4.js.map +0 -1
  539. package/dist/chunk-W4FBGYGK.js.map +0 -1
  540. /package/dist/{auto-sync-7O6RP2RT.js.map → auto-sync-QFQGOEO2.js.map} +0 -0
  541. /package/dist/{capsule-merge-Q6AR3XL7.js.map → capsule-merge-KXTRZ23Z.js.map} +0 -0
  542. /package/dist/{chunk-ICP53SKG.js.map → chunk-2HIJHXB3.js.map} +0 -0
  543. /package/dist/{chunk-FJ2ND6CZ.js.map → chunk-47J4EDGR.js.map} +0 -0
  544. /package/dist/{chunk-S55OAS5P.js.map → chunk-4EABKPZS.js.map} +0 -0
  545. /package/dist/{chunk-GD7UPIBG.js.map → chunk-4JWJMRPJ.js.map} +0 -0
  546. /package/dist/{chunk-3NDN5P55.js.map → chunk-4S3ECH3U.js.map} +0 -0
  547. /package/dist/{chunk-CGASUJVP.js.map → chunk-5V6IXHPI.js.map} +0 -0
  548. /package/dist/{chunk-A4JMGKCD.js.map → chunk-5XCN4XBU.js.map} +0 -0
  549. /package/dist/{chunk-2RPJ4NEE.js.map → chunk-64BHFFKZ.js.map} +0 -0
  550. /package/dist/{chunk-FQC3DHH2.js.map → chunk-66SE3BNH.js.map} +0 -0
  551. /package/dist/{chunk-TERNBNJB.js.map → chunk-6FC3IZ26.js.map} +0 -0
  552. /package/dist/{chunk-53AJILXF.js.map → chunk-6XGEBQ3R.js.map} +0 -0
  553. /package/dist/{chunk-IP3DHDU2.js.map → chunk-7BLWBSRL.js.map} +0 -0
  554. /package/dist/{chunk-A2TFK5PG.js.map → chunk-7NDM2PNK.js.map} +0 -0
  555. /package/dist/{chunk-HRMEYQRO.js.map → chunk-7VWZ4LRW.js.map} +0 -0
  556. /package/dist/{chunk-R6YJI3HE.js.map → chunk-AW4QUFQF.js.map} +0 -0
  557. /package/dist/{chunk-P65YJEEL.js.map → chunk-AXFWMRKI.js.map} +0 -0
  558. /package/dist/{chunk-WG5HSQ4P.js.map → chunk-BAKXNQ3C.js.map} +0 -0
  559. /package/dist/{chunk-NM2WP3B7.js.map → chunk-BJYET5TX.js.map} +0 -0
  560. /package/dist/{chunk-HLKPRWF4.js.map → chunk-DATDLJAO.js.map} +0 -0
  561. /package/dist/{chunk-DX3XRGLH.js.map → chunk-DQTCGVFK.js.map} +0 -0
  562. /package/dist/{chunk-HIDEBEAN.js.map → chunk-E633OXMH.js.map} +0 -0
  563. /package/dist/{chunk-EZNXW27Q.js.map → chunk-ELQCS47S.js.map} +0 -0
  564. /package/dist/{chunk-HAYSYUAB.js.map → chunk-EURCX6PS.js.map} +0 -0
  565. /package/dist/{chunk-RSPSHRZA.js.map → chunk-FV7YQTN3.js.map} +0 -0
  566. /package/dist/{chunk-GWHPQOUC.js.map → chunk-GGBSF2X7.js.map} +0 -0
  567. /package/dist/{chunk-SYUBB3WM.js.map → chunk-GKEYXXKX.js.map} +0 -0
  568. /package/dist/{chunk-PELT6ADC.js.map → chunk-GSEPRIZC.js.map} +0 -0
  569. /package/dist/{chunk-UTVZKHJK.js.map → chunk-GUKBW4HL.js.map} +0 -0
  570. /package/dist/{chunk-2F6NP3NT.js.map → chunk-HDQUQBPW.js.map} +0 -0
  571. /package/dist/{chunk-6HMYUWXR.js.map → chunk-HTP6XRUI.js.map} +0 -0
  572. /package/dist/{chunk-UYUYZ4WY.js.map → chunk-IARXXZU4.js.map} +0 -0
  573. /package/dist/{chunk-MNB5RMAY.js.map → chunk-IIFFC3RL.js.map} +0 -0
  574. /package/dist/{chunk-KQAFEZQX.js.map → chunk-IPLYGWQF.js.map} +0 -0
  575. /package/dist/{chunk-NZBZ7IS2.js.map → chunk-JDCQK3C5.js.map} +0 -0
  576. /package/dist/{chunk-ANCC3JJH.js.map → chunk-JI62YGPI.js.map} +0 -0
  577. /package/dist/{chunk-LULR4IUW.js.map → chunk-KATEWTQJ.js.map} +0 -0
  578. /package/dist/{chunk-IJ7HK452.js.map → chunk-KMAP7SNQ.js.map} +0 -0
  579. /package/dist/{chunk-PRVJH7CY.js.map → chunk-KMWYZTIE.js.map} +0 -0
  580. /package/dist/{chunk-JGSKJHF7.js.map → chunk-KQS72GCR.js.map} +0 -0
  581. /package/dist/{chunk-FMCHFSZF.js.map → chunk-LQKXVQZR.js.map} +0 -0
  582. /package/dist/{chunk-M4DMO67I.js.map → chunk-LTOAJXZB.js.map} +0 -0
  583. /package/dist/{chunk-NIS256NW.js.map → chunk-LYMNZZIM.js.map} +0 -0
  584. /package/dist/{chunk-3PY7VHV7.js.map → chunk-MCA2X4WH.js.map} +0 -0
  585. /package/dist/{chunk-S5NZBKKQ.js.map → chunk-N3CXAYPJ.js.map} +0 -0
  586. /package/dist/{chunk-WQIHRA5F.js.map → chunk-N3LL5NEU.js.map} +0 -0
  587. /package/dist/{chunk-G2RBWVFQ.js.map → chunk-NKL25FCF.js.map} +0 -0
  588. /package/dist/{chunk-LMDRGRJ2.js.map → chunk-NOB2T2FC.js.map} +0 -0
  589. /package/dist/{chunk-P2OTGMTR.js.map → chunk-NSGU76YO.js.map} +0 -0
  590. /package/dist/{chunk-D5NGH2EW.js.map → chunk-O76MWTVS.js.map} +0 -0
  591. /package/dist/{chunk-WZFAPHIK.js.map → chunk-OIOZ6MOP.js.map} +0 -0
  592. /package/dist/{chunk-UMOO7IY7.js.map → chunk-P2KBDJJ6.js.map} +0 -0
  593. /package/dist/{chunk-SXWHN7GC.js.map → chunk-PDEKQWDV.js.map} +0 -0
  594. /package/dist/{chunk-2EJNXE53.js.map → chunk-PLCHU56K.js.map} +0 -0
  595. /package/dist/{chunk-45OTV7FZ.js.map → chunk-PWIMF7LP.js.map} +0 -0
  596. /package/dist/{chunk-7YKVM5H3.js.map → chunk-PWLB4TRK.js.map} +0 -0
  597. /package/dist/{chunk-RVYVMQK4.js.map → chunk-QSYL5CXK.js.map} +0 -0
  598. /package/dist/{chunk-NXUJRXSF.js.map → chunk-QWLW3VQH.js.map} +0 -0
  599. /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
  600. /package/dist/{chunk-QCECHYZL.js.map → chunk-RVO6TCTU.js.map} +0 -0
  601. /package/dist/{chunk-5L7PTX2Q.js.map → chunk-S2SJEOTM.js.map} +0 -0
  602. /package/dist/{chunk-52I3YZZ6.js.map → chunk-S75UQ3T3.js.map} +0 -0
  603. /package/dist/{chunk-LXOM6IQU.js.map → chunk-SEF4IOFE.js.map} +0 -0
  604. /package/dist/{chunk-DUEEQCTT.js.map → chunk-SHYIMIX5.js.map} +0 -0
  605. /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
  606. /package/dist/{chunk-3JUYWPFJ.js.map → chunk-VFS3MK5F.js.map} +0 -0
  607. /package/dist/{chunk-WOEVJKKQ.js.map → chunk-WPZX7MEA.js.map} +0 -0
  608. /package/dist/{chunk-ZRWB5D4H.js.map → chunk-WT6UL3UA.js.map} +0 -0
  609. /package/dist/{chunk-MC6XO7T4.js.map → chunk-YLBE6PLR.js.map} +0 -0
  610. /package/dist/{chunk-GF22HWS2.js.map → chunk-Z54EM5YZ.js.map} +0 -0
  611. /package/dist/{chunk-GVX3NAUU.js.map → chunk-ZDAYWJV6.js.map} +0 -0
  612. /package/dist/{chunk-JYPO7L3G.js.map → chunk-ZN4EYMKJ.js.map} +0 -0
  613. /package/dist/{resolution-3K27T4VO.js.map → coding/pre-action-gate.js.map} +0 -0
  614. /package/dist/{first-start-migration-ZSHEFEI3.js.map → first-start-migration-626C5554.js.map} +0 -0
  615. /package/dist/{forget-DNAJ66ZD.js.map → forget-GJ42LCBW.js.map} +0 -0
  616. /package/dist/{tier-stats-OPTSBNRH.js.map → tier-stats-2JCZYEF7.js.map} +0 -0
@@ -6,14 +6,14 @@ import {
6
6
  loadSyncState,
7
7
  syncWearableSource,
8
8
  wearableSourceLabel
9
- } from "./chunk-UYUYZ4WY.js";
9
+ } from "./chunk-IARXXZU4.js";
10
10
  import {
11
11
  CompressionGuidelineCoordinator
12
12
  } from "./chunk-6LKEUCEM.js";
13
13
  import {
14
14
  ActivityStore,
15
15
  MaintenanceScheduler
16
- } from "./chunk-S55OAS5P.js";
16
+ } from "./chunk-4EABKPZS.js";
17
17
  import {
18
18
  runPeerProfileReasoner
19
19
  } from "./chunk-I74SUMNI.js";
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-7HYPN2GC.js";
23
23
  import {
24
24
  LcmEngine
25
- } from "./chunk-GF22HWS2.js";
25
+ } from "./chunk-Z54EM5YZ.js";
26
26
  import {
27
27
  chunkTranscriptEntries
28
28
  } from "./chunk-TECVW3JP.js";
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  CompoundingEngine,
34
34
  defaultTierMigrationCycleBudget
35
- } from "./chunk-2EJNXE53.js";
35
+ } from "./chunk-PLCHU56K.js";
36
36
  import {
37
37
  SharedContextManager
38
38
  } from "./chunk-M23RF3LJ.js";
@@ -40,16 +40,7 @@ import {
40
40
  applyUtilityPromotionRuntimePolicy,
41
41
  applyUtilityRankingRuntimeDelta,
42
42
  loadUtilityRuntimeValues
43
- } from "./chunk-LXOM6IQU.js";
44
- import {
45
- extractTopics
46
- } from "./chunk-UHGBNIOS.js";
47
- import {
48
- buildTemporalTimelineRecallSection
49
- } from "./chunk-I6WYQSX4.js";
50
- import {
51
- CODEX_THREAD_KEY_PREFIX
52
- } from "./chunk-4EX5WZ4M.js";
43
+ } from "./chunk-SEF4IOFE.js";
53
44
  import {
54
45
  TierMigrationExecutor
55
46
  } from "./chunk-YRFAYOFQ.js";
@@ -59,6 +50,15 @@ import {
59
50
  import {
60
51
  TmtBuilder
61
52
  } from "./chunk-ECZU5BJH.js";
53
+ import {
54
+ extractTopics
55
+ } from "./chunk-UHGBNIOS.js";
56
+ import {
57
+ buildTemporalTimelineRecallSection
58
+ } from "./chunk-I6WYQSX4.js";
59
+ import {
60
+ CODEX_THREAD_KEY_PREFIX
61
+ } from "./chunk-4EX5WZ4M.js";
62
62
  import {
63
63
  HourlySummarizer
64
64
  } from "./chunk-LLJMAULE.js";
@@ -69,11 +69,6 @@ import {
69
69
  import {
70
70
  SessionObserverState
71
71
  } from "./chunk-QFN4U7AG.js";
72
- import {
73
- RerankCache,
74
- reorderByRankedKeys,
75
- rerankLocalOrNoop
76
- } from "./chunk-LUDXM7MD.js";
77
72
  import {
78
73
  buildResponseGuidanceRecallSection,
79
74
  shouldRecallResponseGuidance
@@ -107,13 +102,18 @@ import {
107
102
  } from "./chunk-X7XN6YU4.js";
108
103
  import {
109
104
  RelevanceStore
110
- } from "./chunk-LULR4IUW.js";
105
+ } from "./chunk-KATEWTQJ.js";
106
+ import {
107
+ RerankCache,
108
+ reorderByRankedKeys,
109
+ rerankLocalOrNoop
110
+ } from "./chunk-LUDXM7MD.js";
111
111
  import {
112
112
  LastRecallStore,
113
113
  RecallHandleHistoryStore,
114
114
  TierMigrationStatusStore,
115
115
  clampGraphRecallExpandedEntries
116
- } from "./chunk-NM2WP3B7.js";
116
+ } from "./chunk-BJYET5TX.js";
117
117
  import {
118
118
  dedupeResultsByNamespace,
119
119
  hasMemoryForResult,
@@ -144,25 +144,32 @@ import {
144
144
  import {
145
145
  runLiveConnectorsOnce
146
146
  } from "./chunk-HTIIXNJQ.js";
147
+ import {
148
+ deriveHarmonicRecords,
149
+ harmonicEntityReferenceMatches,
150
+ harmonicEntitySegment,
151
+ normalizedHarmonicEntityIdentity,
152
+ persistHarmonicRecords
153
+ } from "./chunk-GXSOUIA4.js";
147
154
  import {
148
155
  classifyMemoryKind
149
156
  } from "./chunk-YAZNBMNF.js";
157
+ import {
158
+ buildFocusedListRecallSection,
159
+ shouldRecallFocusedListEvidence
160
+ } from "./chunk-OH7QLI6W.js";
150
161
  import {
151
162
  ExtractionEngine
152
- } from "./chunk-LZGCJSQR.js";
163
+ } from "./chunk-3LD4N2TF.js";
153
164
  import {
154
165
  parseMemoryActionEligibilityContext
155
- } from "./chunk-CMQZNEIF.js";
166
+ } from "./chunk-WFLBP5GC.js";
156
167
  import {
157
168
  ModelRegistry
158
169
  } from "./chunk-WLZYGLJ4.js";
159
170
  import {
160
171
  LocalLlmClient
161
172
  } from "./chunk-L6CQ7WIW.js";
162
- import {
163
- buildFocusedListRecallSection,
164
- shouldRecallFocusedListEvidence
165
- } from "./chunk-OH7QLI6W.js";
166
173
  import {
167
174
  recordJudgeTrainingPair
168
175
  } from "./chunk-PWFCHOB3.js";
@@ -173,6 +180,11 @@ import {
173
180
  judgeFactDurability,
174
181
  validateProcedureExtraction
175
182
  } from "./chunk-K2TDK7GG.js";
183
+ import {
184
+ buildEntityRecallSection,
185
+ entityRecentTranscriptLookbackHours,
186
+ readRecentEntityTranscriptEntries
187
+ } from "./chunk-ZJIFYUJI.js";
176
188
  import {
177
189
  buildEventOrderRecallSection,
178
190
  shouldRecallEventOrderEvidence
@@ -184,29 +196,24 @@ import {
184
196
  import {
185
197
  buildExplicitCueRecallSection
186
198
  } from "./chunk-TVIVY7KU.js";
199
+ import {
200
+ tryDirectAnswer
201
+ } from "./chunk-CSOYVTRX.js";
187
202
  import {
188
203
  EmbeddingFallback
189
204
  } from "./chunk-YK6BDDHP.js";
190
- import {
191
- buildEntityRecallSection,
192
- entityRecentTranscriptLookbackHours,
193
- readRecentEntityTranscriptEntries
194
- } from "./chunk-4WBGZYZZ.js";
195
205
  import {
196
206
  formatDaySummaryMemories
197
207
  } from "./chunk-RPSYDM6C.js";
198
- import {
199
- tryDirectAnswer
200
- } from "./chunk-CSOYVTRX.js";
201
208
  import {
202
209
  refreshConvergedNamespaces
203
- } from "./chunk-3JUYWPFJ.js";
210
+ } from "./chunk-VFS3MK5F.js";
204
211
  import {
205
212
  builtInConnectorPackageSpecifier,
206
213
  ensureBuiltInWearableConnectors,
207
214
  getWearableConnector,
208
215
  listWearableConnectors
209
- } from "./chunk-KSGEGHYA.js";
216
+ } from "./chunk-T35UJI5R.js";
210
217
  import {
211
218
  RoutingRulesStore
212
219
  } from "./chunk-XL24QQ63.js";
@@ -216,17 +223,17 @@ import {
216
223
  import {
217
224
  compareVerifiedEpisodeResults,
218
225
  searchVerifiedEpisodes
219
- } from "./chunk-GD7UPIBG.js";
226
+ } from "./chunk-4JWJMRPJ.js";
220
227
  import {
221
228
  ThreadingManager
222
229
  } from "./chunk-OJP3N7UK.js";
223
230
  import {
224
231
  compareVerifiedSemanticRuleResults,
225
232
  searchVerifiedSemanticRules
226
- } from "./chunk-5L7PTX2Q.js";
233
+ } from "./chunk-S2SJEOTM.js";
227
234
  import {
228
235
  searchWorkProductLedgerEntries
229
- } from "./chunk-ZRWB5D4H.js";
236
+ } from "./chunk-WT6UL3UA.js";
230
237
  import {
231
238
  TranscriptManager
232
239
  } from "./chunk-HYQJQGD3.js";
@@ -236,25 +243,28 @@ import {
236
243
  import {
237
244
  runNamespaceMaintenanceFanout,
238
245
  summarizeNamespaceMaintenanceHealth
239
- } from "./chunk-HIDEBEAN.js";
246
+ } from "./chunk-E633OXMH.js";
240
247
  import {
241
248
  NamespaceCatalog,
242
249
  planNamespaceMaintenance
243
- } from "./chunk-D5NGH2EW.js";
250
+ } from "./chunk-O76MWTVS.js";
244
251
  import {
245
252
  isAboveImportanceThreshold,
246
253
  scoreImportance
247
254
  } from "./chunk-JXS5PDQ7.js";
248
255
  import {
249
256
  searchHarmonicRetrieval
250
- } from "./chunk-KVJRXN2E.js";
257
+ } from "./chunk-P4QOYG52.js";
251
258
  import {
252
259
  EXTRACTION_JUDGE_VERDICT_CATEGORY,
253
260
  recordJudgeVerdict
254
261
  } from "./chunk-OZKOPQCM.js";
255
262
  import {
256
263
  recordEvalShadowRecall
257
- } from "./chunk-3PY7VHV7.js";
264
+ } from "./chunk-MCA2X4WH.js";
265
+ import {
266
+ pruneOrphanCueAnchors
267
+ } from "./chunk-ACPCA4NO.js";
258
268
  import {
259
269
  collectNativeKnowledgeChunks,
260
270
  formatNativeKnowledgeSection,
@@ -262,7 +272,7 @@ import {
262
272
  } from "./chunk-2DQ2XREU.js";
263
273
  import {
264
274
  applyCommitmentLedgerLifecycle
265
- } from "./chunk-LMDRGRJ2.js";
275
+ } from "./chunk-NOB2T2FC.js";
266
276
  import {
267
277
  buildConsolidationPrompt,
268
278
  buildExtensionsBlockForConsolidation,
@@ -272,7 +282,7 @@ import {
272
282
  materializeAfterSemanticConsolidation,
273
283
  parseConsolidationResponse,
274
284
  parseOperatorAwareConsolidationResponse
275
- } from "./chunk-GWHPQOUC.js";
285
+ } from "./chunk-GGBSF2X7.js";
276
286
  import {
277
287
  BoxBuilder
278
288
  } from "./chunk-B7RWBZXW.js";
@@ -284,10 +294,10 @@ import {
284
294
  } from "./chunk-UQ7RN5HK.js";
285
295
  import {
286
296
  SmartBuffer
287
- } from "./chunk-2RPJ4NEE.js";
297
+ } from "./chunk-64BHFFKZ.js";
288
298
  import {
289
299
  detectMeetings
290
- } from "./chunk-RN53QBM4.js";
300
+ } from "./chunk-A4QMKFFO.js";
291
301
  import {
292
302
  compileCorrectionRule,
293
303
  correctionsFilePath,
@@ -318,7 +328,7 @@ import {
318
328
  } from "./chunk-H3FZVNRN.js";
319
329
  import {
320
330
  MeetingsInputError
321
- } from "./chunk-FMCHFSZF.js";
331
+ } from "./chunk-LQKXVQZR.js";
322
332
  import {
323
333
  WearablesInputError,
324
334
  describeErrorForOperator
@@ -339,10 +349,10 @@ import {
339
349
  filterRecallCandidates,
340
350
  isGenericRecallExcludedPath,
341
351
  isTopLevelArchivePath
342
- } from "./chunk-45OTV7FZ.js";
352
+ } from "./chunk-PWIMF7LP.js";
343
353
  import {
344
354
  importCapsule
345
- } from "./chunk-A4JMGKCD.js";
355
+ } from "./chunk-5XCN4XBU.js";
346
356
  import {
347
357
  isCodingGraphInstalled
348
358
  } from "./chunk-VQ7B2Q6M.js";
@@ -356,7 +366,10 @@ import {
356
366
  import {
357
367
  listTrustZoneRecords,
358
368
  searchTrustZoneRecords
359
- } from "./chunk-JGSKJHF7.js";
369
+ } from "./chunk-KQS72GCR.js";
370
+ import {
371
+ buildXraySnapshot
372
+ } from "./chunk-NSGU76YO.js";
360
373
  import {
361
374
  boundRecallContextComposition,
362
375
  composeRecallContext,
@@ -364,41 +377,38 @@ import {
364
377
  formatCuriosityFooter,
365
378
  selectCuriosityQuestion
366
379
  } from "./chunk-AHVEHR6K.js";
367
- import {
368
- buildXraySnapshot
369
- } from "./chunk-P2OTGMTR.js";
370
380
  import {
371
381
  objectiveStateStoreOverrideForNamespace,
372
382
  searchObjectiveStateSnapshots
373
- } from "./chunk-6HMYUWXR.js";
383
+ } from "./chunk-HTP6XRUI.js";
384
+ import {
385
+ contentMatchesRedactionRules,
386
+ loadRedactionRules
387
+ } from "./chunk-LTHVM4XN.js";
374
388
  import {
375
389
  ProfilingCollector
376
390
  } from "./chunk-NLE6TSLG.js";
377
391
  import {
378
392
  buildProcedurePersistBody
379
393
  } from "./chunk-QDW3E4RD.js";
380
- import {
381
- contentMatchesRedactionRules,
382
- loadRedactionRules
383
- } from "./chunk-LTHVM4XN.js";
384
394
  import {
385
395
  shouldSkipImplicitExtraction
386
- } from "./chunk-S5NZBKKQ.js";
396
+ } from "./chunk-N3CXAYPJ.js";
387
397
  import {
388
398
  NamespaceSearchRouter,
389
399
  namespaceCollectionName
390
- } from "./chunk-PRVJH7CY.js";
400
+ } from "./chunk-KMWYZTIE.js";
391
401
  import {
392
402
  createConversationIndexRuntime,
393
403
  createSearchBackend,
394
404
  isSearchBackendEnabled
395
- } from "./chunk-FJ2ND6CZ.js";
405
+ } from "./chunk-47J4EDGR.js";
396
406
  import {
397
407
  NoopSearchBackend
398
408
  } from "./chunk-CYEPCZN5.js";
399
409
  import {
400
410
  NamespaceStorageRouter
401
- } from "./chunk-ANCC3JJH.js";
411
+ } from "./chunk-JI62YGPI.js";
402
412
  import {
403
413
  writeConversationChunks
404
414
  } from "./chunk-72A4L5JJ.js";
@@ -407,10 +417,10 @@ import {
407
417
  } from "./chunk-L2DPF4DF.js";
408
418
  import {
409
419
  searchCausalTrajectories
410
- } from "./chunk-W4FBGYGK.js";
420
+ } from "./chunk-M4MP34AQ.js";
411
421
  import {
412
422
  buildChainFollowupGenerator
413
- } from "./chunk-3NDN5P55.js";
423
+ } from "./chunk-4S3ECH3U.js";
414
424
  import {
415
425
  QmdResultResolver,
416
426
  StorageManager,
@@ -429,7 +439,10 @@ import {
429
439
  reconstructFusionInputs,
430
440
  selfDeps,
431
441
  serializeFusionDay
432
- } from "./chunk-PLCZD3LG.js";
442
+ } from "./chunk-24BKGKGO.js";
443
+ import {
444
+ buildRetiredFactTombstoneInputs
445
+ } from "./chunk-ENTCVTQR.js";
433
446
  import {
434
447
  bodyIsEscaped,
435
448
  decodeTranscriptBody,
@@ -440,9 +453,6 @@ import {
440
453
  saveSpeakerRegistry,
441
454
  speakerRegistryKey
442
455
  } from "./chunk-UHVXE24Y.js";
443
- import {
444
- buildRetiredFactTombstoneInputs
445
- } from "./chunk-ENTCVTQR.js";
446
456
  import {
447
457
  canRecallToolScopedMemory,
448
458
  shouldPromoteGlobalFactToShared,
@@ -455,7 +465,7 @@ import {
455
465
  } from "./chunk-J6A3CX5N.js";
456
466
  import {
457
467
  confidenceTier
458
- } from "./chunk-3S63QIFQ.js";
468
+ } from "./chunk-LAQ33B5D.js";
459
469
  import {
460
470
  lintWorkspaceFiles,
461
471
  rotateMarkdownFileToArchive
@@ -469,17 +479,20 @@ import {
469
479
  TAG_LIMITS,
470
480
  composeMemoryEnvelope,
471
481
  isMemoryCategory
472
- } from "./chunk-CGASUJVP.js";
482
+ } from "./chunk-5V6IXHPI.js";
483
+ import {
484
+ normalizeTags
485
+ } from "./chunk-BT7NVCML.js";
473
486
  import {
474
487
  normalizeAttributePairs,
475
488
  stripAttributesSuffix
476
489
  } from "./chunk-R3DJVOSM.js";
477
490
  import {
478
- normalizeTags
479
- } from "./chunk-BT7NVCML.js";
491
+ checkCorpusReadAbort
492
+ } from "./chunk-5GINB5LC.js";
480
493
  import {
481
494
  bumpMemoryCorpusVersionForDir
482
- } from "./chunk-IJ7HK452.js";
495
+ } from "./chunk-KMAP7SNQ.js";
483
496
  import {
484
497
  HistoricalEntityCanonicalIdCache,
485
498
  canonicalizeEntityRefFrontmatter,
@@ -490,13 +503,14 @@ import {
490
503
  requestEntityCanonicalIdReconcile,
491
504
  requestEntityCanonicalIdReconcileSync,
492
505
  withRawEntityPageMutation
493
- } from "./chunk-NZBZ7IS2.js";
506
+ } from "./chunk-JDCQK3C5.js";
494
507
  import {
495
508
  applyTemporalSupersession,
496
509
  normalizeSupersessionKey,
510
+ propagateInvalidation,
497
511
  shouldFilterSupersededFromRecall,
498
512
  supersessionKeysForFact
499
- } from "./chunk-DNHVPZOD.js";
513
+ } from "./chunk-P26YHAQH.js";
500
514
  import {
501
515
  isValidAsOf,
502
516
  isValidityExpiredNow
@@ -540,7 +554,7 @@ import {
540
554
  throwIfRecallAborted,
541
555
  tokenizeRecallQuery,
542
556
  utcDateKeysForLocalDay
543
- } from "./chunk-WQIHRA5F.js";
557
+ } from "./chunk-N3LL5NEU.js";
544
558
  import {
545
559
  inferIntentFromText,
546
560
  intentCompatibilityScore,
@@ -2790,12 +2804,39 @@ var ContradictionLinkingCoordinator = class {
2790
2804
  if (!contradiction || !config.contradictionAutoResolve || postWriteGuard) {
2791
2805
  return;
2792
2806
  }
2807
+ let oldMemory = null;
2793
2808
  try {
2794
- await storage.supersedeMemory(
2809
+ oldMemory = await storage.getMemoryById(contradiction.supersededId);
2810
+ } catch (err) {
2811
+ log.warn(`contradiction propagation snapshot failed for ${contradiction.supersededId}: ${err}`);
2812
+ }
2813
+ try {
2814
+ const superseded = await storage.supersedeMemory(
2795
2815
  contradiction.supersededId,
2796
2816
  newMemoryId,
2797
2817
  contradiction.reason
2798
2818
  );
2819
+ if (!superseded) return;
2820
+ if (oldMemory) {
2821
+ try {
2822
+ await propagateInvalidation(
2823
+ {
2824
+ storage,
2825
+ extraction: this.getExtraction(),
2826
+ config
2827
+ },
2828
+ {
2829
+ oldMemory,
2830
+ replacementId: newMemoryId,
2831
+ replacementContent: (await storage.getMemoryById(newMemoryId))?.content ?? null,
2832
+ cause: "contradiction",
2833
+ namespaceScope: this.namespaceFromPath(storage.dir)
2834
+ }
2835
+ );
2836
+ } catch (err) {
2837
+ log.warn(`contradiction dependency propagation failed for ${contradiction.supersededId}: ${err}`);
2838
+ }
2839
+ }
2799
2840
  if (resolveIndexingCapabilities(config).queryAwareIndexing && contradiction.supersededPath) {
2800
2841
  await deindexMemoryAsync(
2801
2842
  config.memoryDir,
@@ -2860,11 +2901,107 @@ var ContradictionLinkingCoordinator = class {
2860
2901
  // src/orchestration/consolidation-run.ts
2861
2902
  import path4 from "path";
2862
2903
  import { mkdir as mkdir2, readFile, writeFile as writeFile2 } from "fs/promises";
2904
+ var MAX_HARMONIC_NAMESPACE_STORES = 50;
2905
+ var HARMONIC_CATALOG_CURSOR_FILE = "harmonic-catalog-cursor.json";
2863
2906
  var ConsolidationRunCoordinator = class {
2864
2907
  constructor(deps) {
2865
2908
  this.deps = deps;
2866
2909
  }
2867
2910
  deps;
2911
+ async readHarmonicCatalogCursor(defaultDir) {
2912
+ const cursorPath = path4.join(defaultDir, "state", HARMONIC_CATALOG_CURSOR_FILE);
2913
+ try {
2914
+ const raw = await readFile(cursorPath, "utf-8");
2915
+ const parsed = JSON.parse(raw);
2916
+ return typeof parsed.nextStorageDir === "string" && parsed.nextStorageDir.length > 0 ? path4.resolve(parsed.nextStorageDir) : void 0;
2917
+ } catch (error) {
2918
+ if (error.code !== "ENOENT") {
2919
+ log.warn(
2920
+ `harmonic namespace catalog cursor read failed open: ${error instanceof Error ? error.message : String(error)}`
2921
+ );
2922
+ }
2923
+ return void 0;
2924
+ }
2925
+ }
2926
+ async writeHarmonicCatalogCursor(defaultDir, nextStorageDir) {
2927
+ const stateDir = path4.join(defaultDir, "state");
2928
+ await mkdir2(stateDir, { recursive: true });
2929
+ await writeFile2(
2930
+ path4.join(stateDir, HARMONIC_CATALOG_CURSOR_FILE),
2931
+ JSON.stringify({ nextStorageDir }, null, 2),
2932
+ "utf-8"
2933
+ );
2934
+ }
2935
+ async pruneHarmonicStores(storage) {
2936
+ const config = this.deps.config;
2937
+ if (!resolveCapabilities(config).harmonicRetrieval || !resolveConsolidationCapabilities(config).abstractionAnchors) {
2938
+ return;
2939
+ }
2940
+ const stores = /* @__PURE__ */ new Map();
2941
+ const defaultDir = path4.resolve(storage.dir);
2942
+ stores.set(defaultDir, {
2943
+ memoryDir: storage.dir,
2944
+ abstractionNodeStoreDir: config.abstractionNodeStoreDir
2945
+ });
2946
+ try {
2947
+ const catalog = this.deps.getNamespaceCatalog?.();
2948
+ if (catalog?.enabled) {
2949
+ const records = await catalog.listNamespaces({ discoveredBy: "write" });
2950
+ const catalogStores = /* @__PURE__ */ new Map();
2951
+ for (const record of records) {
2952
+ const storageDir = path4.resolve(record.storageDir);
2953
+ if (!stores.has(storageDir) && !catalogStores.has(storageDir)) {
2954
+ catalogStores.set(storageDir, { memoryDir: record.storageDir });
2955
+ }
2956
+ }
2957
+ const candidates = [...catalogStores.entries()];
2958
+ if (candidates.length > 0) {
2959
+ const cursor = await this.readHarmonicCatalogCursor(defaultDir);
2960
+ const cursorIndex = cursor ? candidates.findIndex(([storageDir]) => storageDir === cursor) : -1;
2961
+ const startIndex = cursorIndex >= 0 ? cursorIndex : 0;
2962
+ const selectedCount = Math.min(
2963
+ candidates.length,
2964
+ MAX_HARMONIC_NAMESPACE_STORES - 1
2965
+ );
2966
+ for (let offset = 0; offset < selectedCount; offset += 1) {
2967
+ const index = (startIndex + offset) % candidates.length;
2968
+ const [storageDir, store] = candidates[index];
2969
+ stores.set(storageDir, store);
2970
+ }
2971
+ const nextIndex = (startIndex + selectedCount) % candidates.length;
2972
+ const nextStorageDir = candidates[nextIndex][0];
2973
+ try {
2974
+ await this.writeHarmonicCatalogCursor(defaultDir, nextStorageDir);
2975
+ } catch (error) {
2976
+ log.warn(
2977
+ `harmonic namespace catalog cursor write failed open: ${error instanceof Error ? error.message : String(error)}`
2978
+ );
2979
+ }
2980
+ if (selectedCount < candidates.length) {
2981
+ log.warn(
2982
+ `harmonic namespace catalog truncated at ${MAX_HARMONIC_NAMESPACE_STORES} stores; skipped ${candidates.length - selectedCount} store(s)`
2983
+ );
2984
+ }
2985
+ }
2986
+ }
2987
+ } catch (error) {
2988
+ log.warn(
2989
+ `harmonic namespace catalog read failed open: ${error instanceof Error ? error.message : String(error)}`
2990
+ );
2991
+ }
2992
+ for (const store of stores.values()) {
2993
+ try {
2994
+ const removed = await pruneOrphanCueAnchors(store);
2995
+ if (removed > 0) {
2996
+ log.info(`harmonic anchor prune removed ${removed} orphan(s) from ${store.memoryDir}`);
2997
+ }
2998
+ } catch (error) {
2999
+ log.warn(
3000
+ `harmonic anchor prune failed open for ${store.memoryDir}: ${error instanceof Error ? error.message : String(error)}`
3001
+ );
3002
+ }
3003
+ }
3004
+ }
2868
3005
  async run() {
2869
3006
  const config = this.deps.config;
2870
3007
  const storage = this.deps.getStorage();
@@ -2876,6 +3013,7 @@ var ConsolidationRunCoordinator = class {
2876
3013
  if (this.deps.getAccessTrackingBuffer().size > 0) {
2877
3014
  await this.deps.flushAccessTracking();
2878
3015
  }
3016
+ await this.pruneHarmonicStores(storage);
2879
3017
  let allMemories = await storage.readAllMemories();
2880
3018
  if (allMemories.length < 5) {
2881
3019
  return { memoriesProcessed: allMemories.length, merged, invalidated };
@@ -2895,10 +3033,35 @@ var ConsolidationRunCoordinator = class {
2895
3033
  switch (item.action) {
2896
3034
  case "INVALIDATE": {
2897
3035
  const toInvalidate = resolveIndexingCapabilities(config).queryAwareIndexing ? memoryLookup?.get(item.existingId) ?? null : null;
3036
+ const propagationOld = allMemories.find(
3037
+ (memory) => memory.frontmatter.id === item.existingId
3038
+ );
2898
3039
  if (await storage.invalidateMemory(item.existingId)) {
2899
3040
  invalidated += 1;
2900
3041
  memoryItemMutated = true;
2901
3042
  await this.deps.embeddingFallback.removeFromIndex(item.existingId);
3043
+ if (propagationOld) {
3044
+ try {
3045
+ await propagateInvalidation(
3046
+ {
3047
+ storage,
3048
+ extraction: this.deps.getExtraction(),
3049
+ config
3050
+ },
3051
+ {
3052
+ oldMemory: propagationOld,
3053
+ replacementId: null,
3054
+ replacementContent: null,
3055
+ cause: "consolidation_invalidate",
3056
+ namespaceScope: config.defaultNamespace
3057
+ }
3058
+ );
3059
+ } catch (propagationErr) {
3060
+ log.warn(
3061
+ `consolidation dependency propagation failed for ${item.existingId}: ${propagationErr}`
3062
+ );
3063
+ }
3064
+ }
2902
3065
  if (toInvalidate?.path && toInvalidate.frontmatter?.created) {
2903
3066
  itemsDeindexBatch.push({
2904
3067
  path: toInvalidate.path,
@@ -2935,10 +3098,35 @@ var ConsolidationRunCoordinator = class {
2935
3098
  memoryItemMutated = true;
2936
3099
  await this.deps.indexPersistedMemory(storage, item.existingId);
2937
3100
  const toMergeInvalidate = resolveIndexingCapabilities(config).queryAwareIndexing ? memoryLookup?.get(item.mergeWith) ?? null : null;
3101
+ const propagationOld = allMemories.find(
3102
+ (memory) => memory.frontmatter.id === item.mergeWith
3103
+ );
2938
3104
  if (await storage.invalidateMemory(item.mergeWith)) {
2939
3105
  invalidated += 1;
2940
3106
  merged += 1;
2941
3107
  await this.deps.embeddingFallback.removeFromIndex(item.mergeWith);
3108
+ if (propagationOld) {
3109
+ try {
3110
+ await propagateInvalidation(
3111
+ {
3112
+ storage,
3113
+ extraction: this.deps.getExtraction(),
3114
+ config
3115
+ },
3116
+ {
3117
+ oldMemory: propagationOld,
3118
+ replacementId: item.existingId,
3119
+ replacementContent: item.updatedContent,
3120
+ cause: "consolidation_merge",
3121
+ namespaceScope: config.defaultNamespace
3122
+ }
3123
+ );
3124
+ } catch (propagationErr) {
3125
+ log.warn(
3126
+ `consolidation dependency propagation failed for ${item.mergeWith}: ${propagationErr}`
3127
+ );
3128
+ }
3129
+ }
2942
3130
  if (toMergeInvalidate?.path && toMergeInvalidate.frontmatter?.created) {
2943
3131
  itemsDeindexBatch.push({
2944
3132
  path: toMergeInvalidate.path,
@@ -3449,6 +3637,59 @@ async function flushDeferredFactHashOnFailure(saveContentHashIndexes, deferred)
3449
3637
  );
3450
3638
  }
3451
3639
 
3640
+ // src/orchestration/harmonic-construction-persist.ts
3641
+ function filterHarmonicEntityMentions(facts, entityMentions) {
3642
+ const identitiesBySegment = /* @__PURE__ */ new Map();
3643
+ for (const entity of entityMentions) {
3644
+ const segment = harmonicEntitySegment(entity.name);
3645
+ const identities = identitiesBySegment.get(segment) ?? /* @__PURE__ */ new Set();
3646
+ identities.add(normalizedHarmonicEntityIdentity(entity.name));
3647
+ identitiesBySegment.set(segment, identities);
3648
+ }
3649
+ return entityMentions.flatMap((entity) => {
3650
+ const allowSegmentFallback = identitiesBySegment.get(harmonicEntitySegment(entity.name))?.size === 1;
3651
+ const activeFacts = facts.filter(
3652
+ (fact) => typeof fact.entityRef === "string" && harmonicEntityReferenceMatches(fact.entityRef, entity.name, allowSegmentFallback)
3653
+ );
3654
+ return activeFacts.length > 0 ? [{ ...entity, facts: activeFacts.map((fact) => fact.content) }] : [];
3655
+ });
3656
+ }
3657
+ async function persistConstructedHarmonicRecords(options) {
3658
+ const sessionKey = options.sessionKey?.trim();
3659
+ if (!sessionKey) {
3660
+ log.warn("harmonic construction skipped: extraction session key is missing");
3661
+ return;
3662
+ }
3663
+ const recordedAt = options.validAt && Number.isFinite(Date.parse(options.validAt)) ? new Date(options.validAt).toISOString() : (/* @__PURE__ */ new Date()).toISOString();
3664
+ const entries = [...options.entries];
3665
+ const sharedEpisodeTitle = entries.length === 1 ? options.episodeTitle : void 0;
3666
+ for (const entry of entries) {
3667
+ try {
3668
+ const records = deriveHarmonicRecords({
3669
+ sessionKey,
3670
+ recordedAt,
3671
+ episodeTitle: sharedEpisodeTitle,
3672
+ persistedFacts: entry.facts,
3673
+ entityMentions: filterHarmonicEntityMentions(entry.facts, options.entityMentions).map((entity) => ({
3674
+ name: entity.name,
3675
+ type: entity.type,
3676
+ facts: entity.facts
3677
+ }))
3678
+ });
3679
+ await persistHarmonicRecords({
3680
+ memoryDir: entry.storage.dir,
3681
+ abstractionNodeStoreDir: entry.storage.dir === options.baseStorageDir ? options.abstractionNodeStoreDir : void 0,
3682
+ nodes: records.nodes,
3683
+ anchors: options.anchorsEnabled ? records.anchors : []
3684
+ });
3685
+ } catch (error) {
3686
+ log.warn(
3687
+ `harmonic construction failed open for namespace ${entry.storage.dir}: ${error instanceof Error ? error.message : String(error)}`
3688
+ );
3689
+ }
3690
+ }
3691
+ }
3692
+
3452
3693
  // src/orchestration/extraction-persist.ts
3453
3694
  var ExtractionPersistCoordinator = class {
3454
3695
  constructor(deps) {
@@ -3462,6 +3703,12 @@ var ExtractionPersistCoordinator = class {
3462
3703
  const citationEnabled = resolvePipelineProcessingCapabilities(this.deps.config).inlineSourceAttribution === true;
3463
3704
  const citationTemplate = this.deps.config.inlineSourceAttributionFormat;
3464
3705
  const factDedupEnabled = resolveRecallAuxiliaryCapabilities(this.deps.config).factDeduplication;
3706
+ const harmonicConstructionEnabled = resolveCapabilities(this.deps.config).harmonicRetrieval;
3707
+ const harmonicAnchorsEnabled = resolveConsolidationCapabilities(this.deps.config).abstractionAnchors;
3708
+ const harmonicBaseNamespace = baseNamespace ?? this.deps.storageDirNamespace(storage.dir);
3709
+ const harmonicFactsByStorage = /* @__PURE__ */ new Map();
3710
+ const harmonicSourceInsertedAtBase = Date.now();
3711
+ let harmonicSourceOrder = 0;
3465
3712
  const normalizeStoredHashSource = (raw) => ContentHashIndex.normalizeContent(
3466
3713
  sanitizeMemoryContent(
3467
3714
  citationEnabled && hasCitationForTemplate(raw, citationTemplate) ? stripCitationForTemplate(raw, citationTemplate) : raw
@@ -3499,6 +3746,19 @@ var ExtractionPersistCoordinator = class {
3499
3746
  } else {
3500
3747
  persistedIdsByStorage.set(key, { storage: targetStorage, ids: [id] });
3501
3748
  }
3749
+ if (harmonicConstructionEnabled && options.harmonicFact && !options.pendingReview) {
3750
+ const harmonicEntry = harmonicFactsByStorage.get(key) ?? {
3751
+ storage: targetStorage,
3752
+ facts: []
3753
+ };
3754
+ harmonicEntry.facts.push({
3755
+ ...options.harmonicFact,
3756
+ memoryId: id,
3757
+ insertedAt: new Date(harmonicSourceInsertedAtBase + harmonicSourceOrder).toISOString()
3758
+ });
3759
+ harmonicSourceOrder++;
3760
+ harmonicFactsByStorage.set(key, harmonicEntry);
3761
+ }
3502
3762
  if (options.category && !memoryPathById.has(id)) {
3503
3763
  const relPath = resolvePersistedMemoryRelativePath({ memoryId: id, pathById: memoryPathById, category: options.category });
3504
3764
  memoryPathById.set(id, relPath);
@@ -3643,7 +3903,10 @@ var ExtractionPersistCoordinator = class {
3643
3903
  entityRef: targetPromotionEnvelope.entityRef,
3644
3904
  structuredAttributes: { ...targetSurvivingAttrs },
3645
3905
  createdAt: supersessionOrderingAt(options.validAt),
3646
- enabled: !(options.eventTimeSource === "extracted" && !options.validAt)
3906
+ enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
3907
+ extraction: this.deps.getExtraction(),
3908
+ config: this.config,
3909
+ namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
3647
3910
  });
3648
3911
  } catch (profileSupersessionErr) {
3649
3912
  log.warn(
@@ -3652,7 +3915,11 @@ var ExtractionPersistCoordinator = class {
3652
3915
  }
3653
3916
  }
3654
3917
  if (!targetPromotion.tombstoneBlocked) {
3655
- trackPersistedId(targetStorage, promotedId, { includeReturnedIds: false, category: options.category });
3918
+ trackPersistedId(targetStorage, promotedId, {
3919
+ includeReturnedIds: false,
3920
+ category: options.category,
3921
+ harmonicFact: options.harmonicFact
3922
+ });
3656
3923
  await this.deps.indexPersistedMemory(targetStorage, promotedId);
3657
3924
  trackBehaviorSignals(
3658
3925
  targetStorage,
@@ -3780,7 +4047,10 @@ var ExtractionPersistCoordinator = class {
3780
4047
  structuredAttributes: { ...sharedSurvivingAttrs },
3781
4048
  createdAt: supersessionOrderingAt(options.validAt),
3782
4049
  enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
3783
- useCallerTimestamp: true
4050
+ useCallerTimestamp: true,
4051
+ extraction: this.deps.getExtraction(),
4052
+ config: this.config,
4053
+ namespaceScope: this.deps.storageDirNamespace(sharedStorage.dir)
3784
4054
  });
3785
4055
  if (hashDedupSupersession.supersededIds.length > 0) {
3786
4056
  }
@@ -3850,7 +4120,10 @@ var ExtractionPersistCoordinator = class {
3850
4120
  entityRef: sharedPromotionEnvelope.entityRef,
3851
4121
  structuredAttributes: { ...sharedSurvivingAttrs },
3852
4122
  createdAt: supersessionOrderingAt(options.validAt),
3853
- enabled: !(options.eventTimeSource === "extracted" && !options.validAt)
4123
+ enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
4124
+ extraction: this.deps.getExtraction(),
4125
+ config: this.config,
4126
+ namespaceScope: this.deps.storageDirNamespace(sharedStorage.dir)
3854
4127
  });
3855
4128
  } catch (sharedSupersessionErr) {
3856
4129
  log.warn(
@@ -3861,7 +4134,8 @@ var ExtractionPersistCoordinator = class {
3861
4134
  if (!sharedPromotion.tombstoneBlocked) {
3862
4135
  trackPersistedId(sharedStorage, promotedId, {
3863
4136
  includeReturnedIds: false,
3864
- category: options.category
4137
+ category: options.category,
4138
+ harmonicFact: options.harmonicFact
3865
4139
  });
3866
4140
  await this.deps.indexPersistedMemory(sharedStorage, promotedId);
3867
4141
  trackBehaviorSignals(
@@ -4262,6 +4536,14 @@ var ExtractionPersistCoordinator = class {
4262
4536
  );
4263
4537
  }
4264
4538
  }
4539
+ const harmonicFact = {
4540
+ category: writeCategory,
4541
+ content: fact.content,
4542
+ tags: fact.tags,
4543
+ cueAnchors: fact.cueAnchors,
4544
+ entityRef: fact.entityRef,
4545
+ validAt: biTemporal?.validFrom ?? sourceContext?.validAt
4546
+ };
4265
4547
  try {
4266
4548
  const redactionRules = await redactionRulesFor(sourceStorageDir, targetStorage.dir);
4267
4549
  const redactionCandidate = fact.content + (fact.structuredAttributes ? " " + JSON.stringify(fact.structuredAttributes) : "") + (fact.procedureSteps ? " " + fact.procedureSteps.map((s) => `${s.intent} ${s.expectedOutcome ?? ""} ${s.toolCall ? `${s.toolCall.kind} ${s.toolCall.signature}` : ""}`.trim()).join(" ") : "");
@@ -4637,7 +4919,8 @@ var ExtractionPersistCoordinator = class {
4637
4919
  );
4638
4920
  trackPersistedId(targetStorage, parentId, {
4639
4921
  pendingReview: postWriteGuard2,
4640
- category: writeCategory
4922
+ category: writeCategory,
4923
+ harmonicFact
4641
4924
  });
4642
4925
  if (!postWriteGuard2 && threadEpisodeIdsForGraph && !threadEpisodeIdsForGraph.includes(parentId)) {
4643
4926
  threadEpisodeIdsForGraph.push(parentId);
@@ -4656,7 +4939,10 @@ var ExtractionPersistCoordinator = class {
4656
4939
  // #1578 r3: an extracted end-only bound (validFrom absent) is
4657
4940
  // historical, not a new authoritative state — never let it
4658
4941
  // supersede a later active fact (codex P1 on :15534).
4659
- enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom)
4942
+ enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom),
4943
+ extraction: this.deps.getExtraction(),
4944
+ config: this.config,
4945
+ namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
4660
4946
  });
4661
4947
  } catch (err) {
4662
4948
  log.warn(`temporal-supersession (chunked): unexpected error: ${err}`);
@@ -4686,7 +4972,8 @@ var ExtractionPersistCoordinator = class {
4686
4972
  ...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
4687
4973
  ...fact.procedureSteps && fact.procedureSteps.length ? { procedureSteps: fact.procedureSteps } : {},
4688
4974
  ...fact.sources && fact.sources.length > 0 ? { sources: fact.sources } : {},
4689
- ...fact.provenance ? { provenance: fact.provenance } : {}
4975
+ ...fact.provenance ? { provenance: fact.provenance } : {},
4976
+ harmonicFact
4690
4977
  });
4691
4978
  try {
4692
4979
  const canonicalChunkedContent = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate) ? stripCitationForTemplate(fact.content, citationTemplate) : fact.content;
@@ -4842,7 +5129,10 @@ var ExtractionPersistCoordinator = class {
4842
5129
  entityRef: factWriteEnvelope.entityRef,
4843
5130
  structuredAttributes: factWriteEnvelope.rawStructuredAttributes ? { ...factWriteEnvelope.rawStructuredAttributes } : void 0,
4844
5131
  createdAt: supersessionOrderingAt(biTemporal?.validFrom ?? sourceContext?.validAt),
4845
- enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom)
5132
+ enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom),
5133
+ extraction: this.deps.getExtraction(),
5134
+ config: this.config,
5135
+ namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
4846
5136
  });
4847
5137
  } catch (err) {
4848
5138
  log.warn(`temporal-supersession: unexpected error: ${err}`);
@@ -4862,7 +5152,8 @@ var ExtractionPersistCoordinator = class {
4862
5152
  );
4863
5153
  trackPersistedId(targetStorage, memoryId, {
4864
5154
  pendingReview: postWriteGuard,
4865
- category: writeCategory
5155
+ category: writeCategory,
5156
+ harmonicFact
4866
5157
  });
4867
5158
  if (!postWriteGuard && threadEpisodeIdsForGraph && !threadEpisodeIdsForGraph.includes(memoryId)) {
4868
5159
  threadEpisodeIdsForGraph.push(memoryId);
@@ -4894,7 +5185,8 @@ var ExtractionPersistCoordinator = class {
4894
5185
  ...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
4895
5186
  ...fact.procedureSteps && fact.procedureSteps.length ? { procedureSteps: fact.procedureSteps } : {},
4896
5187
  ...fact.sources && fact.sources.length > 0 ? { sources: fact.sources } : {},
4897
- ...fact.provenance ? { provenance: fact.provenance } : {}
5188
+ ...fact.provenance ? { provenance: fact.provenance } : {},
5189
+ harmonicFact
4898
5190
  });
4899
5191
  if (graphCaps.multiGraphMemory && !postWriteGuard) {
4900
5192
  try {
@@ -5075,6 +5367,18 @@ var ExtractionPersistCoordinator = class {
5075
5367
  log.info(
5076
5368
  `persisted: ${facts.length - dedupedCount - importanceGatedCount - judgeGatedCount - redactionGatedCount} facts${dedupSuffix}${gatedSuffix}${judgeSuffix}${redactionSuffix}, ${entities.length} entities, ${questions.length} questions, ${profileUpdates.length} profile updates`
5077
5369
  );
5370
+ if (harmonicConstructionEnabled && harmonicFactsByStorage.size > 0) {
5371
+ await persistConstructedHarmonicRecords({
5372
+ entries: harmonicFactsByStorage.values(),
5373
+ baseStorageDir: storage.dir,
5374
+ abstractionNodeStoreDir: !scopeProfileWritePlan && harmonicBaseNamespace === this.deps.config.defaultNamespace ? this.deps.config.abstractionNodeStoreDir : void 0,
5375
+ sessionKey: sourceContext?.sessionKey,
5376
+ validAt: sourceContext?.validAt,
5377
+ episodeTitle: result.episodeTitle,
5378
+ anchorsEnabled: harmonicAnchorsEnabled,
5379
+ entityMentions: entities
5380
+ });
5381
+ }
5078
5382
  void (async () => {
5079
5383
  if (persistedIdsByStorage.size === 0) {
5080
5384
  await this.deps.updateTemporalTagIndexes(storage, []);
@@ -6654,6 +6958,7 @@ ${rows.join("\n")}
6654
6958
  maxResults,
6655
6959
  sessionKey,
6656
6960
  anchorsEnabled: resolveConsolidationCapabilities(this.deps.config).abstractionAnchors,
6961
+ temporalExpiredInInjection: this.deps.config.temporalExpiredInInjection,
6657
6962
  abortSignal: harmonicRetrievalAbort.signal
6658
6963
  })
6659
6964
  )
@@ -8852,7 +9157,9 @@ ${tmtNode.summary}`
8852
9157
  } else {
8853
9158
  const memories = await awaitAssemblyStep(
8854
9159
  "recent-memory-read",
8855
- () => this.deps.readAllMemoriesForNamespaces(recallNamespaces),
9160
+ (stepSignal) => this.deps.readAllMemoriesForNamespaces(recallNamespaces, {
9161
+ abortSignal: stepSignal
9162
+ }),
8856
9163
  []
8857
9164
  );
8858
9165
  if (memories.length > 0) {
@@ -9601,7 +9908,9 @@ async function fetchActiveArtifactsForNamespace(deps, namespace, prompt, targetC
9601
9908
  )
9602
9909
  );
9603
9910
  throwIfRecallAborted(options.abortSignal);
9604
- const sourceStatus = sourceIds.length > 0 ? await deps.resolveArtifactSourceStatuses(storage, sourceIds) : /* @__PURE__ */ new Map();
9911
+ const sourceStatus = sourceIds.length > 0 ? await deps.resolveArtifactSourceStatuses(storage, sourceIds, {
9912
+ abortSignal: options.abortSignal
9913
+ }) : /* @__PURE__ */ new Map();
9605
9914
  const filtered = [];
9606
9915
  for (const artifact of rawResults) {
9607
9916
  const sourceId = artifact.frontmatter.sourceMemoryId;
@@ -12207,7 +12516,7 @@ var OrchestratorInitCoordinator = class {
12207
12516
  if (signal.aborted) return;
12208
12517
  if (lifecycleCaps.lifecyclePolicy && resolveQmdCapabilities(this.deps.config).qmdTierMigration) {
12209
12518
  try {
12210
- const { runFirstStartMigration } = await import("./first-start-migration-ZSHEFEI3.js");
12519
+ const { runFirstStartMigration } = await import("./first-start-migration-626C5554.js");
12211
12520
  const result = await runFirstStartMigration({
12212
12521
  storage: this.deps.storage,
12213
12522
  config: this.deps.config,
@@ -12230,7 +12539,7 @@ var OrchestratorInitCoordinator = class {
12230
12539
  if (signal.aborted) return;
12231
12540
  if (!this.deps.wearablesAutoSyncHandle && this.deps.config.wearables.enabled && this.deps.config.wearables.autoSyncEnabled && Object.values(this.deps.config.wearables.sources).some((source) => source.enabled)) {
12232
12541
  try {
12233
- const { startWearablesAutoSync } = await import("./auto-sync-7O6RP2RT.js");
12542
+ const { startWearablesAutoSync } = await import("./auto-sync-QFQGOEO2.js");
12234
12543
  if (signal.aborted) return;
12235
12544
  this.deps.wearablesAutoSyncHandle = startWearablesAutoSync(
12236
12545
  {
@@ -15468,7 +15777,8 @@ var NamespaceReadFanoutCoordinator = class {
15468
15777
  execution: options.execution
15469
15778
  });
15470
15779
  }
15471
- async resolveArtifactSourceStatuses(storage, sourceIds) {
15780
+ async resolveArtifactSourceStatuses(storage, sourceIds, options) {
15781
+ checkCorpusReadAbort(options);
15472
15782
  const currentStatusVersion = storage.getMemoryStatusVersion();
15473
15783
  const cached = this.deps.artifactSourceStatusCache.get(storage);
15474
15784
  let snapshot = cached;
@@ -15478,8 +15788,10 @@ var NamespaceReadFanoutCoordinator = class {
15478
15788
  let latestStatuses = /* @__PURE__ */ new Map();
15479
15789
  let latestVersionAfter = storage.getMemoryStatusVersion();
15480
15790
  for (let attempt = 0; attempt < MAX_STABLE_READ_ATTEMPTS; attempt += 1) {
15791
+ checkCorpusReadAbort(options);
15481
15792
  const versionBefore = storage.getMemoryStatusVersion();
15482
- const allMemories = await storage.readAllMemories();
15793
+ const allMemories = await storage.readAllMemories(options);
15794
+ checkCorpusReadAbort(options);
15483
15795
  const versionAfter = storage.getMemoryStatusVersion();
15484
15796
  latestVersionAfter = versionAfter;
15485
15797
  latestStatuses = new Map(
@@ -15620,12 +15932,12 @@ var NamespaceReadFanoutCoordinator = class {
15620
15932
  loadHints: () => this.deps.loadNamespaceStorageDirHintsFromCatalog()
15621
15933
  });
15622
15934
  }
15623
- async readAllMemoriesForNamespaces(namespaces) {
15935
+ async readAllMemoriesForNamespaces(namespaces, options) {
15624
15936
  const uniq = Array.from(new Set(namespaces.filter(Boolean)));
15625
15937
  const lists = await Promise.all(
15626
15938
  uniq.map(async (ns) => {
15627
15939
  const sm = await this.deps.storageRouter.storageFor(ns);
15628
- return sm.readAllMemories();
15940
+ return sm.readAllMemories(options);
15629
15941
  })
15630
15942
  );
15631
15943
  return lists.flat();
@@ -16095,6 +16407,7 @@ var Orchestrator = class {
16095
16407
  config: this.config,
16096
16408
  getStorage: () => this.storage,
16097
16409
  getStorageRouter: () => this.storageRouter,
16410
+ getNamespaceCatalog: () => this.namespaceCatalog,
16098
16411
  getExtraction: () => this.extraction,
16099
16412
  embeddingFallback: this.embeddingFallback,
16100
16413
  tmtBuilder: this.tmtBuilder,
@@ -16127,6 +16440,7 @@ var Orchestrator = class {
16127
16440
  getStorageRouter: () => this.storageRouter,
16128
16441
  getThreading: () => this.threading,
16129
16442
  getLocalLlm: () => this.localLlm,
16443
+ getExtraction: () => this.extraction,
16130
16444
  getQmd: () => this.qmd,
16131
16445
  getJudgeVerdictCache: () => this.judgeVerdictCache,
16132
16446
  getJudgeDeferCounts: () => this.judgeDeferCounts,
@@ -16901,10 +17215,11 @@ var Orchestrator = class {
16901
17215
  return [];
16902
17216
  }
16903
17217
  }
16904
- async resolveArtifactSourceStatuses(storage, sourceIds) {
17218
+ async resolveArtifactSourceStatuses(storage, sourceIds, options) {
16905
17219
  return this.namespaceReadFanoutCoordinator.resolveArtifactSourceStatuses(
16906
17220
  storage,
16907
- sourceIds
17221
+ sourceIds,
17222
+ options
16908
17223
  );
16909
17224
  }
16910
17225
  /**
@@ -18133,10 +18448,8 @@ ${doc.content}` : doc.content,
18133
18448
  * and inline-note writes were missing from `writtenSince`/maintenance).
18134
18449
  */
18135
18450
  // markCatalogRead removed — use storageRouter.recordRead() instead (#1522).
18136
- async readAllMemoriesForNamespaces(namespaces) {
18137
- return this.namespaceReadFanoutCoordinator.readAllMemoriesForNamespaces(
18138
- namespaces
18139
- );
18451
+ async readAllMemoriesForNamespaces(namespaces, options) {
18452
+ return this.namespaceReadFanoutCoordinator.readAllMemoriesForNamespaces(namespaces, options);
18140
18453
  }
18141
18454
  };
18142
18455
 
@@ -24138,4 +24451,4 @@ export {
24138
24451
  blendGraphExpandedRecallScore,
24139
24452
  Orchestrator
24140
24453
  };
24141
- //# sourceMappingURL=chunk-2P3GQVM2.js.map
24454
+ //# sourceMappingURL=chunk-RBPH3GZV.js.map