@remnic/core 10.0.168 → 10.0.170

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 (492) hide show
  1. package/dist/access-admin-ops-surface.js +181 -179
  2. package/dist/access-cli.js +181 -179
  3. package/dist/access-cli.js.map +1 -1
  4. package/dist/access-coding-context-resolution.js +11 -11
  5. package/dist/access-extraction-force-flush-preempt.js +181 -179
  6. package/dist/access-extraction-force-flush.js +181 -179
  7. package/dist/access-http-briefing.js +181 -179
  8. package/dist/access-http-query.js +181 -179
  9. package/dist/access-http.js +181 -179
  10. package/dist/access-identity-continuity-surface.js +181 -179
  11. package/dist/access-lcm-surface.js +181 -179
  12. package/dist/access-mcp.js +181 -179
  13. package/dist/access-observe-write-category.js +11 -11
  14. package/dist/access-observe-write-surface.js +181 -179
  15. package/dist/access-offline-manifest.js +9 -9
  16. package/dist/access-operations-batch.js +181 -179
  17. package/dist/access-operations.js +181 -179
  18. package/dist/access-recall-concurrency.js +181 -179
  19. package/dist/access-recall-diagnostics.js +2 -2
  20. package/dist/access-recall-excerpt-attribution.d.ts +19 -0
  21. package/dist/access-recall-excerpt-attribution.d.ts.map +1 -0
  22. package/dist/access-recall-excerpt-attribution.js +8 -0
  23. package/dist/access-recall-response.js +181 -179
  24. package/dist/access-recall-surface.d.ts.map +1 -1
  25. package/dist/access-recall-surface.js +181 -179
  26. package/dist/access-schema.js +10 -10
  27. package/dist/access-service.js +181 -179
  28. package/dist/active-recall.js +30 -29
  29. package/dist/active-recall.js.map +1 -1
  30. package/dist/adapters/index.js +7 -7
  31. package/dist/adapters/registry.js +3 -3
  32. package/dist/{auto-sync-L3M4RKJD.js → auto-sync-ACP5U5A3.js} +3 -3
  33. package/dist/behavior-learner.js +1 -1
  34. package/dist/binary-lifecycle/scanner.d.ts +2 -4
  35. package/dist/binary-lifecycle/scanner.d.ts.map +1 -1
  36. package/dist/briefing.js +19 -19
  37. package/dist/buffer-add-turns-bounded.d.ts +11 -1
  38. package/dist/buffer-add-turns-bounded.d.ts.map +1 -1
  39. package/dist/buffer-add-turns-bounded.js +3 -3
  40. package/dist/buffer-session-cap.d.ts +2 -2
  41. package/dist/buffer-session-cap.d.ts.map +1 -1
  42. package/dist/buffer-session-cap.js +1 -1
  43. package/dist/buffer.d.ts +3 -2
  44. package/dist/buffer.d.ts.map +1 -1
  45. package/dist/buffer.js +13 -13
  46. package/dist/calibration.d.ts +19 -2
  47. package/dist/calibration.d.ts.map +1 -1
  48. package/dist/calibration.js +28 -5
  49. package/dist/calibration.js.map +1 -1
  50. package/dist/{capsule-crypto-GWVG7LGC.js → capsule-crypto-7FJQINUR.js} +2 -2
  51. package/dist/{capsule-merge-VHBRF65A.js → capsule-merge-BADOICNP.js} +2 -2
  52. package/dist/causal-behavior.js +2 -2
  53. package/dist/causal-chain.js +2 -2
  54. package/dist/causal-consolidation.js +23 -23
  55. package/dist/causal-retrieval.js +2 -2
  56. package/dist/causal-trajectory-graph.js +3 -3
  57. package/dist/causal-trajectory.js +1 -1
  58. package/dist/{chunk-OWHERGF2.js → chunk-2NLLXCJG.js} +2 -2
  59. package/dist/{chunk-CKELO7Q6.js → chunk-2OAFPBQB.js} +2 -2
  60. package/dist/{chunk-2DL3OFLD.js → chunk-45GEJRIG.js} +2 -2
  61. package/dist/{chunk-5IZL4DCV.js → chunk-4DF5LMBJ.js} +2 -2
  62. package/dist/{chunk-A5UOREWD.js → chunk-4DLGKTM6.js} +2 -2
  63. package/dist/{chunk-WEFFO2MJ.js → chunk-4E2Z44CV.js} +2 -2
  64. package/dist/{chunk-X67XNZ64.js → chunk-4LVQSHHN.js} +14 -14
  65. package/dist/{chunk-RB7NXZ2E.js → chunk-4X7HQKAG.js} +2 -2
  66. package/dist/{chunk-I74SUMNI.js → chunk-5ACIRCBO.js} +65 -3
  67. package/dist/chunk-5ACIRCBO.js.map +1 -0
  68. package/dist/{chunk-LPUEBFX2.js → chunk-5JCYPBY5.js} +2 -2
  69. package/dist/{chunk-IMULTENA.js → chunk-5SOSQTVE.js} +2 -2
  70. package/dist/{chunk-D6BOOYNJ.js → chunk-5YIOUS5T.js} +384 -345
  71. package/dist/chunk-5YIOUS5T.js.map +1 -0
  72. package/dist/{chunk-5PUZV73Z.js → chunk-6VFMEBXY.js} +12 -12
  73. package/dist/{chunk-333SBFXB.js → chunk-7AAMJQFW.js} +2 -2
  74. package/dist/{chunk-BKTCVXMK.js → chunk-7SNEJNA3.js} +96 -23
  75. package/dist/chunk-7SNEJNA3.js.map +1 -0
  76. package/dist/{chunk-PFLN6TTW.js → chunk-A2XFG462.js} +2 -2
  77. package/dist/{chunk-WEHSQBFR.js → chunk-AIF6V2OX.js} +9 -4
  78. package/dist/chunk-AIF6V2OX.js.map +1 -0
  79. package/dist/{chunk-HXFIILGF.js → chunk-BFPF5N3H.js} +4 -4
  80. package/dist/{chunk-QFTK6EDM.js → chunk-BFZFNXOC.js} +13 -13
  81. package/dist/{chunk-7OCKK5M5.js → chunk-BJOQQCYC.js} +9 -9
  82. package/dist/{chunk-ZX546Y3Y.js → chunk-CY2C5LM4.js} +3 -3
  83. package/dist/{chunk-73TPOGS4.js → chunk-DC55RIEZ.js} +9 -9
  84. package/dist/{chunk-ZDZJNXL6.js → chunk-DK2VBJ6Q.js} +4 -4
  85. package/dist/{chunk-CLVILSBR.js → chunk-DNXQVCIC.js} +22 -22
  86. package/dist/{chunk-7VIJUZYW.js → chunk-E53NLIAP.js} +3 -3
  87. package/dist/{chunk-2LA3H54D.js → chunk-E5IZTY4W.js} +2 -2
  88. package/dist/{chunk-J74YOBB3.js → chunk-EBI6FI5U.js} +12 -12
  89. package/dist/{chunk-YYXYZM2I.js → chunk-ETTV5F53.js} +2 -2
  90. package/dist/{chunk-FRYCXXTB.js → chunk-FSORYJRP.js} +3 -3
  91. package/dist/{chunk-TH6OYP6I.js → chunk-GOZXQNIM.js} +3 -3
  92. package/dist/{chunk-TNRGWJYT.js → chunk-GUF2JKG5.js} +2 -2
  93. package/dist/{chunk-AL3TCNSJ.js → chunk-H3MLOQ7F.js} +24 -53
  94. package/dist/chunk-H3MLOQ7F.js.map +1 -0
  95. package/dist/{chunk-SIONKXLU.js → chunk-H6TCS5XX.js} +18 -15
  96. package/dist/chunk-H6TCS5XX.js.map +1 -0
  97. package/dist/{chunk-FEUWI5QH.js → chunk-HHPY5SSE.js} +2 -2
  98. package/dist/{chunk-QPFM6DHY.js → chunk-HHVK2JRE.js} +2 -2
  99. package/dist/{chunk-YY57TRKN.js → chunk-HR3DKJCU.js} +2 -2
  100. package/dist/{chunk-FMFCQRDM.js → chunk-IJKO5RVJ.js} +3 -3
  101. package/dist/{chunk-UMEUU66X.js → chunk-IK7NPYYU.js} +2 -2
  102. package/dist/{chunk-ILNPU5W5.js → chunk-IMA4DJ7K.js} +5 -45
  103. package/dist/chunk-IMA4DJ7K.js.map +1 -0
  104. package/dist/chunk-IUGOGDCP.js +39 -0
  105. package/dist/chunk-IUGOGDCP.js.map +1 -0
  106. package/dist/{chunk-CKZWLAHN.js → chunk-JDH2BA2P.js} +2 -2
  107. package/dist/{chunk-QVXEXGIM.js → chunk-JNBSTHVT.js} +2 -2
  108. package/dist/chunk-JVVWCZ2P.js +18 -0
  109. package/dist/chunk-JVVWCZ2P.js.map +1 -0
  110. package/dist/{chunk-OBPOIZNR.js → chunk-KBHUGMUW.js} +2 -2
  111. package/dist/{chunk-OZKVVUJB.js → chunk-KIM5VNZN.js} +2 -2
  112. package/dist/{chunk-ZWDDY4WF.js → chunk-KW4XA7GM.js} +3 -3
  113. package/dist/{chunk-OAQRZ4SV.js → chunk-L5EE2CXU.js} +2 -2
  114. package/dist/{chunk-QNUNAXBE.js → chunk-L7LZDISF.js} +1 -9
  115. package/dist/{chunk-QNUNAXBE.js.map → chunk-L7LZDISF.js.map} +1 -1
  116. package/dist/{chunk-RO5EGRAI.js → chunk-LAOJHOTG.js} +2 -2
  117. package/dist/{chunk-FOTFLHBN.js → chunk-LH57QATU.js} +3 -2
  118. package/dist/chunk-LH57QATU.js.map +1 -0
  119. package/dist/{chunk-BFPQJNFZ.js → chunk-LXSDEPEK.js} +60 -11
  120. package/dist/{chunk-BFPQJNFZ.js.map → chunk-LXSDEPEK.js.map} +1 -1
  121. package/dist/{chunk-3PNJZTDV.js → chunk-NDPS6OU2.js} +2 -2
  122. package/dist/{chunk-N7AIFTSH.js → chunk-NJG63FY2.js} +1 -1
  123. package/dist/{chunk-N7AIFTSH.js.map → chunk-NJG63FY2.js.map} +1 -1
  124. package/dist/{chunk-BUKK5SWA.js → chunk-NKAGGDSL.js} +3 -3
  125. package/dist/{chunk-BUKK5SWA.js.map → chunk-NKAGGDSL.js.map} +1 -1
  126. package/dist/{chunk-U3BCW7GX.js → chunk-OGQL7QC7.js} +3 -3
  127. package/dist/{chunk-K3FH3LAQ.js → chunk-OJXK5C6Z.js} +4 -4
  128. package/dist/{chunk-HDLNSDLK.js → chunk-P3XO7HE3.js} +2 -2
  129. package/dist/{chunk-RFLC6PKQ.js → chunk-PQIFYBUX.js} +2 -2
  130. package/dist/{chunk-WLT6LTQP.js → chunk-PRRWKTK6.js} +2 -2
  131. package/dist/{chunk-LWZNSQN3.js → chunk-PUQQPLVV.js} +3 -3
  132. package/dist/{chunk-LWZNSQN3.js.map → chunk-PUQQPLVV.js.map} +1 -1
  133. package/dist/{chunk-4L25GAYL.js → chunk-Q7OKGBZY.js} +2 -2
  134. package/dist/{chunk-ZQUOUPP3.js → chunk-QJBULLKG.js} +4 -4
  135. package/dist/{chunk-W7N7NWG5.js → chunk-QKAFFVSO.js} +2 -2
  136. package/dist/{chunk-EZG54YDS.js → chunk-QKBFVLDH.js} +2 -2
  137. package/dist/{chunk-MOUSHJAR.js → chunk-QMFHKWHN.js} +5 -5
  138. package/dist/{chunk-QLQUAVVP.js → chunk-QRCE77YX.js} +16 -16
  139. package/dist/chunk-QRCE77YX.js.map +1 -0
  140. package/dist/{chunk-4D2EY4WM.js → chunk-R2AJAAHJ.js} +6 -6
  141. package/dist/{chunk-5BE3FLKL.js → chunk-R3UQIS3F.js} +8 -8
  142. package/dist/{chunk-B3M56D2A.js → chunk-RDHEBINJ.js} +2 -2
  143. package/dist/{chunk-L7SEYUHS.js → chunk-RHQL2RIM.js} +3 -3
  144. package/dist/{chunk-2MWKUVHT.js → chunk-RK7SE3BL.js} +5 -5
  145. package/dist/{chunk-CUPILBIP.js → chunk-SA2YALFU.js} +2 -2
  146. package/dist/{chunk-VRHY7Y5A.js → chunk-SAPC7N43.js} +3 -3
  147. package/dist/{chunk-6QWFZ3X5.js → chunk-SOQOUZ2Y.js} +2 -2
  148. package/dist/{chunk-VHXRLD6S.js → chunk-T2JZF45K.js} +2 -2
  149. package/dist/{chunk-HLWXCDUQ.js → chunk-T4MKFTJF.js} +5 -5
  150. package/dist/{chunk-WQUGCOKF.js → chunk-TFA6HPOA.js} +4 -4
  151. package/dist/{chunk-YZYAYUJQ.js → chunk-TLRIRISJ.js} +4 -4
  152. package/dist/{chunk-LVGTH6IQ.js → chunk-UFX24WNJ.js} +14 -14
  153. package/dist/{chunk-OM5ESBES.js → chunk-UH3FPX3L.js} +2 -2
  154. package/dist/{chunk-4NBUHYUV.js → chunk-V5W67PQV.js} +3 -3
  155. package/dist/{chunk-TAD6QMMD.js → chunk-VAQIBC2L.js} +2 -2
  156. package/dist/{chunk-3Q3XD3NO.js → chunk-W2E2WFXL.js} +3 -3
  157. package/dist/{chunk-UYIBNDQE.js → chunk-W2UV6VE3.js} +2 -2
  158. package/dist/{chunk-AVWOULJH.js → chunk-W35ICLYZ.js} +2 -2
  159. package/dist/{chunk-HDDRVXX4.js → chunk-W5LJ3SJ7.js} +2 -2
  160. package/dist/{chunk-FGT7CUYZ.js → chunk-WF2LYKOB.js} +2 -2
  161. package/dist/{chunk-JIF22AXI.js → chunk-WGKIXNLY.js} +5 -2
  162. package/dist/{chunk-JIF22AXI.js.map → chunk-WGKIXNLY.js.map} +1 -1
  163. package/dist/{chunk-FFWFFAP3.js → chunk-WI2WTIMY.js} +14 -8
  164. package/dist/chunk-WI2WTIMY.js.map +1 -0
  165. package/dist/{chunk-OWM2VWNX.js → chunk-X5MFCZDL.js} +82 -44
  166. package/dist/chunk-X5MFCZDL.js.map +1 -0
  167. package/dist/{chunk-UVYI6VIX.js → chunk-X7Y7WX73.js} +1 -1
  168. package/dist/{chunk-22V3CMIW.js → chunk-XJTRIHTH.js} +8 -8
  169. package/dist/{chunk-3SL52JKD.js → chunk-XVZA6VXC.js} +4 -4
  170. package/dist/{chunk-WWQMZBDI.js → chunk-XYNUEXLC.js} +7 -7
  171. package/dist/{chunk-HDWISXFH.js → chunk-Y65XX5PC.js} +2 -2
  172. package/dist/{chunk-3YOX2BQD.js → chunk-YE77U5HZ.js} +3 -3
  173. package/dist/{chunk-U2PSE7MB.js → chunk-YLTU2DC4.js} +2 -2
  174. package/dist/{chunk-BPCR5DZP.js → chunk-YRD525ZO.js} +6 -6
  175. package/dist/chunk-YRD525ZO.js.map +1 -0
  176. package/dist/{chunk-SBRUTD5O.js → chunk-YSATDEBY.js} +5 -5
  177. package/dist/{chunk-TBBDFYXW.js → chunk-YVUNHNB6.js} +2 -3
  178. package/dist/chunk-YVUNHNB6.js.map +1 -0
  179. package/dist/{chunk-GBSXTTLP.js → chunk-YY5UXARJ.js} +24 -12
  180. package/dist/chunk-YY5UXARJ.js.map +1 -0
  181. package/dist/{chunk-L272A5QW.js → chunk-YYDUBGUF.js} +30 -22
  182. package/dist/chunk-YYDUBGUF.js.map +1 -0
  183. package/dist/{chunk-5QDTZIGH.js → chunk-ZJ3CEAJD.js} +2 -2
  184. package/dist/{chunk-GMO3BGOF.js → chunk-ZOJUWVAU.js} +1 -1
  185. package/dist/{chunk-T4BT4FQN.js → chunk-ZYP4YEEI.js} +3 -3
  186. package/dist/cli.js +181 -179
  187. package/dist/coding/export-okf-codegraph.js +30 -30
  188. package/dist/coding/pre-action-gate.js +2 -2
  189. package/dist/compounding/engine.js +20 -20
  190. package/dist/config-deprecations.d.ts +3 -0
  191. package/dist/config-deprecations.d.ts.map +1 -0
  192. package/dist/config-deprecations.js +9 -0
  193. package/dist/config.d.ts.map +1 -1
  194. package/dist/config.js +30 -29
  195. package/dist/connectors/codex-marketplace.d.ts.map +1 -1
  196. package/dist/connectors/codex-materialize-runner.js +20 -20
  197. package/dist/connectors/codex-materialize.d.ts.map +1 -1
  198. package/dist/connectors/codex-materialize.js +1 -1
  199. package/dist/connectors/index.js +21 -21
  200. package/dist/consolidation-provenance-check.js +2 -2
  201. package/dist/convergence-refresh.js +22 -22
  202. package/dist/conversation-index/backend.js +2 -2
  203. package/dist/corpus-watermark.js +21 -21
  204. package/dist/deep-recall-http-glue.js +11 -11
  205. package/dist/deep-recall.js +2 -2
  206. package/dist/embedding-fallback.js +2 -2
  207. package/dist/entity-retrieval.js +21 -21
  208. package/dist/event-order-recall.js +3 -3
  209. package/dist/explicit-capture.js +181 -179
  210. package/dist/extraction-judge.js +1 -1
  211. package/dist/extraction-normalization.js +1 -1
  212. package/dist/extraction-span-materialize.js +2 -2
  213. package/dist/extraction.js +35 -35
  214. package/dist/{first-start-migration-BPVJ4HJQ.js → first-start-migration-PPPP54X6.js} +5 -5
  215. package/dist/{graph-edge-decay-BC3IO2J4.js → graph-edge-decay-EKWXRBWF.js} +6 -6
  216. package/dist/graph-edge-decay-EKWXRBWF.js.map +1 -0
  217. package/dist/graph-jsonl.js +4 -4
  218. package/dist/graph-snapshot.js +4 -4
  219. package/dist/graph.js +5 -5
  220. package/dist/harmonic-retrieval.js +19 -19
  221. package/dist/index.js +272 -269
  222. package/dist/lcm/engine.js +2 -2
  223. package/dist/lcm/index.js +7 -7
  224. package/dist/lifecycle.d.ts +0 -6
  225. package/dist/lifecycle.d.ts.map +1 -1
  226. package/dist/lifecycle.js +1 -1
  227. package/dist/local-llm.js +2 -2
  228. package/dist/location/index.js +31 -21
  229. package/dist/location/provider-setup.d.ts +26 -1
  230. package/dist/location/provider-setup.d.ts.map +1 -1
  231. package/dist/maintenance/memory-governance.js +20 -20
  232. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +19 -19
  233. package/dist/maintenance/rebuild-memory-projection-runner.js +22 -22
  234. package/dist/maintenance/rebuild-memory-projection.js +21 -21
  235. package/dist/memory-browse.js +6 -6
  236. package/dist/memory-controller.d.ts.map +1 -1
  237. package/dist/memory-controller.js +1 -1
  238. package/dist/{migrate-from-identity-anchor-MJYB6NNN.js → migrate-from-identity-anchor-TZSZXJ6L.js} +2 -2
  239. package/dist/migrate-from-identity-anchor-TZSZXJ6L.js.map +1 -0
  240. package/dist/model-registry.d.ts +0 -5
  241. package/dist/model-registry.d.ts.map +1 -1
  242. package/dist/model-registry.js +1 -1
  243. package/dist/namespaces/migrate.js +20 -20
  244. package/dist/namespaces/search.js +9 -9
  245. package/dist/namespaces/storage.d.ts.map +1 -1
  246. package/dist/namespaces/storage.js +19 -19
  247. package/dist/offline-sync-changeset-generations.js +4 -4
  248. package/dist/offline-sync-embedding-generation.js +3 -3
  249. package/dist/offline-sync-snapshot-stream.js +7 -7
  250. package/dist/offline-sync.js +6 -6
  251. package/dist/operator-doctor-corpus.js +22 -22
  252. package/dist/operator-toolkit.js +42 -41
  253. package/dist/orchestration/backlog-scheduler.d.ts +4 -0
  254. package/dist/orchestration/backlog-scheduler.d.ts.map +1 -1
  255. package/dist/orchestration/backlog-scheduler.js +192 -184
  256. package/dist/orchestration/backlog-scheduler.js.map +1 -1
  257. package/dist/orchestration/buffer-drain-runner.js +182 -180
  258. package/dist/orchestration/extraction-persist-citation.d.ts +2 -2
  259. package/dist/orchestration/extraction-persist-citation.d.ts.map +1 -1
  260. package/dist/orchestration/extraction-persist.d.ts.map +1 -1
  261. package/dist/orchestration/maintenance.js +30 -30
  262. package/dist/orchestration/recall-internal.d.ts.map +1 -1
  263. package/dist/orchestration/semantic-consolidation-coordinator.d.ts.map +1 -1
  264. package/dist/orchestration/turn-ingestion-buffered.d.ts.map +1 -1
  265. package/dist/orchestration/workspace-ops.d.ts.map +1 -1
  266. package/dist/orchestrator.d.ts.map +1 -1
  267. package/dist/orchestrator.js +183 -181
  268. package/dist/peers/index.d.ts +2 -1
  269. package/dist/peers/index.d.ts.map +1 -1
  270. package/dist/peers/index.js +3 -3
  271. package/dist/peers/interaction-log-append.d.ts +8 -0
  272. package/dist/peers/interaction-log-append.d.ts.map +1 -0
  273. package/dist/peers/storage.d.ts +22 -8
  274. package/dist/peers/storage.d.ts.map +1 -1
  275. package/dist/policy-runtime.js +2 -2
  276. package/dist/qmd.js +4 -4
  277. package/dist/recall-explain-renderer.js +3 -3
  278. package/dist/recall-navigate-access.js +2 -2
  279. package/dist/recall-navigate-disclosure.js +2 -2
  280. package/dist/recall-navigate.js +2 -2
  281. package/dist/recall-navigation.js +181 -179
  282. package/dist/recall-state-view-admission.js +6 -6
  283. package/dist/recall-state-view-packet.d.ts.map +1 -1
  284. package/dist/recall-state-view-packet.js +30 -8
  285. package/dist/recall-state-view-packet.js.map +1 -1
  286. package/dist/recall-why-service.js +6 -6
  287. package/dist/recall-xray-cli.js +4 -4
  288. package/dist/recall-xray-renderer.js +3 -3
  289. package/dist/recall-xray.js +2 -2
  290. package/dist/reconcile/manifest.js +2 -2
  291. package/dist/resume-bundles.js +31 -30
  292. package/dist/retrieval.js +2 -2
  293. package/dist/search/factory.js +8 -8
  294. package/dist/search/index.js +14 -14
  295. package/dist/semantic-consolidation.d.ts +10 -16
  296. package/dist/semantic-consolidation.d.ts.map +1 -1
  297. package/dist/semantic-consolidation.js +24 -24
  298. package/dist/semantic-rule-promotion.js +19 -19
  299. package/dist/semantic-rule-verifier.js +19 -19
  300. package/dist/source-agent-qualifier.js +25 -25
  301. package/dist/source-attribution.d.ts +3 -3
  302. package/dist/source-attribution.d.ts.map +1 -1
  303. package/dist/source-attribution.js +1 -1
  304. package/dist/standup/build.js +19 -19
  305. package/dist/storage/links-frontmatter.d.ts +3 -0
  306. package/dist/storage/links-frontmatter.d.ts.map +1 -0
  307. package/dist/storage.d.ts +1 -0
  308. package/dist/storage.d.ts.map +1 -1
  309. package/dist/storage.js +18 -18
  310. package/dist/summarizer.d.ts +7 -1
  311. package/dist/summarizer.d.ts.map +1 -1
  312. package/dist/summarizer.js +4 -4
  313. package/dist/support-passport/index.js +16 -16
  314. package/dist/tier-routing.js +2 -2
  315. package/dist/{tier-stats-FLFKN7Y6.js → tier-stats-XWJSVEHC.js} +5 -5
  316. package/dist/transfer/autodetect.js +3 -3
  317. package/dist/transfer/backup.js +2 -2
  318. package/dist/transfer/capsule-export.js +3 -3
  319. package/dist/transfer/capsule-import.js +3 -3
  320. package/dist/transfer/export-okf.js +19 -19
  321. package/dist/transfer/import-json.js +2 -2
  322. package/dist/transfer/import-md.js +2 -2
  323. package/dist/transfer/types.d.ts +15 -3
  324. package/dist/transfer/types.d.ts.map +1 -1
  325. package/dist/transfer/types.js +3 -1
  326. package/dist/types.d.ts +1 -0
  327. package/dist/types.d.ts.map +1 -1
  328. package/dist/types.js +1 -1
  329. package/dist/utility-learner.js +2 -2
  330. package/dist/utility-runtime.js +3 -3
  331. package/dist/verified-recall.js +19 -19
  332. package/dist/who-knows-cli.js +20 -20
  333. package/dist/who-knows.js +19 -19
  334. package/package.json +2 -2
  335. package/src/access-cli.test.ts +9 -9
  336. package/src/access-recall-excerpt-attribution.ts +69 -0
  337. package/src/access-recall-surface.ts +23 -23
  338. package/src/access-service-raw-excerpt-read-gate.test.ts +192 -11
  339. package/src/backlog-scheduler.test.ts +31 -0
  340. package/src/binary-lifecycle/scanner.ts +35 -14
  341. package/src/buffer-add-turns-bounded.ts +16 -2
  342. package/src/buffer-session-cap.ts +4 -4
  343. package/src/buffer.ts +5 -5
  344. package/src/calibration.ts +56 -4
  345. package/src/config-deprecations.ts +14 -0
  346. package/src/config.ts +2 -1
  347. package/src/connectors/codex-marketplace-git.test.ts +267 -0
  348. package/src/connectors/codex-marketplace.ts +76 -13
  349. package/src/connectors/codex-materialize.ts +29 -55
  350. package/src/lifecycle.ts +0 -8
  351. package/src/location/provider-setup.test.ts +273 -2
  352. package/src/location/provider-setup.ts +138 -32
  353. package/src/memory-controller.test.ts +11 -0
  354. package/src/memory-controller.ts +5 -1
  355. package/src/model-registry.ts +0 -11
  356. package/src/namespaces/storage.ts +1 -0
  357. package/src/orchestration/backlog-scheduler.ts +12 -3
  358. package/src/orchestration/extraction-persist-citation.ts +5 -3
  359. package/src/orchestration/extraction-persist.ts +15 -14
  360. package/src/orchestration/recall-internal.ts +2 -3
  361. package/src/orchestration/semantic-consolidation-coordinator.ts +40 -33
  362. package/src/orchestration/semantic-consolidation-split.test.ts +72 -0
  363. package/src/orchestration/turn-ingestion-buffered.test.ts +52 -1
  364. package/src/orchestration/turn-ingestion-buffered.ts +26 -8
  365. package/src/orchestration/workspace-ops.test.ts +23 -0
  366. package/src/orchestration/workspace-ops.ts +6 -5
  367. package/src/orchestrator.ts +1 -0
  368. package/src/peers/index.ts +1 -1
  369. package/src/peers/interaction-log-append.ts +132 -0
  370. package/src/peers/peers.test.ts +30 -0
  371. package/src/peers/profile-reasoner.ts +1 -1
  372. package/src/peers/storage.ts +4 -105
  373. package/src/recall-state-view-packet.test.ts +40 -0
  374. package/src/recall-state-view-packet.ts +46 -9
  375. package/src/semantic-consolidation.ts +35 -27
  376. package/src/source-attribution.test.ts +57 -0
  377. package/src/source-attribution.ts +46 -43
  378. package/src/storage/links-frontmatter.ts +69 -0
  379. package/src/storage-links-parse.test.ts +153 -0
  380. package/src/storage.ts +8 -21
  381. package/src/summarizer-shutdown.test.ts +49 -16
  382. package/src/summarizer.ts +13 -5
  383. package/src/testing/subjects/dependency-propagation.test.ts +5 -4
  384. package/src/testing/subjects/memory-maintenance.test.ts +293 -0
  385. package/src/transfer/capsule-export.ts +2 -1
  386. package/src/transfer/capsule-taxonomy-version.test.ts +70 -0
  387. package/src/transfer/types.ts +13 -3
  388. package/src/types.ts +1 -0
  389. package/dist/chunk-AL3TCNSJ.js.map +0 -1
  390. package/dist/chunk-BKTCVXMK.js.map +0 -1
  391. package/dist/chunk-BPCR5DZP.js.map +0 -1
  392. package/dist/chunk-D6BOOYNJ.js.map +0 -1
  393. package/dist/chunk-FFWFFAP3.js.map +0 -1
  394. package/dist/chunk-FOTFLHBN.js.map +0 -1
  395. package/dist/chunk-GBSXTTLP.js.map +0 -1
  396. package/dist/chunk-I74SUMNI.js.map +0 -1
  397. package/dist/chunk-ILNPU5W5.js.map +0 -1
  398. package/dist/chunk-L272A5QW.js.map +0 -1
  399. package/dist/chunk-OWM2VWNX.js.map +0 -1
  400. package/dist/chunk-QLQUAVVP.js.map +0 -1
  401. package/dist/chunk-SIONKXLU.js.map +0 -1
  402. package/dist/chunk-TBBDFYXW.js.map +0 -1
  403. package/dist/chunk-WEHSQBFR.js.map +0 -1
  404. /package/dist/{capsule-crypto-GWVG7LGC.js.map → access-recall-excerpt-attribution.js.map} +0 -0
  405. /package/dist/{auto-sync-L3M4RKJD.js.map → auto-sync-ACP5U5A3.js.map} +0 -0
  406. /package/dist/{graph-edge-decay-BC3IO2J4.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
  407. /package/dist/{capsule-merge-VHBRF65A.js.map → capsule-merge-BADOICNP.js.map} +0 -0
  408. /package/dist/{chunk-OWHERGF2.js.map → chunk-2NLLXCJG.js.map} +0 -0
  409. /package/dist/{chunk-CKELO7Q6.js.map → chunk-2OAFPBQB.js.map} +0 -0
  410. /package/dist/{chunk-2DL3OFLD.js.map → chunk-45GEJRIG.js.map} +0 -0
  411. /package/dist/{chunk-5IZL4DCV.js.map → chunk-4DF5LMBJ.js.map} +0 -0
  412. /package/dist/{chunk-A5UOREWD.js.map → chunk-4DLGKTM6.js.map} +0 -0
  413. /package/dist/{chunk-WEFFO2MJ.js.map → chunk-4E2Z44CV.js.map} +0 -0
  414. /package/dist/{chunk-X67XNZ64.js.map → chunk-4LVQSHHN.js.map} +0 -0
  415. /package/dist/{chunk-RB7NXZ2E.js.map → chunk-4X7HQKAG.js.map} +0 -0
  416. /package/dist/{chunk-LPUEBFX2.js.map → chunk-5JCYPBY5.js.map} +0 -0
  417. /package/dist/{chunk-IMULTENA.js.map → chunk-5SOSQTVE.js.map} +0 -0
  418. /package/dist/{chunk-5PUZV73Z.js.map → chunk-6VFMEBXY.js.map} +0 -0
  419. /package/dist/{chunk-333SBFXB.js.map → chunk-7AAMJQFW.js.map} +0 -0
  420. /package/dist/{chunk-PFLN6TTW.js.map → chunk-A2XFG462.js.map} +0 -0
  421. /package/dist/{chunk-HXFIILGF.js.map → chunk-BFPF5N3H.js.map} +0 -0
  422. /package/dist/{chunk-QFTK6EDM.js.map → chunk-BFZFNXOC.js.map} +0 -0
  423. /package/dist/{chunk-7OCKK5M5.js.map → chunk-BJOQQCYC.js.map} +0 -0
  424. /package/dist/{chunk-ZX546Y3Y.js.map → chunk-CY2C5LM4.js.map} +0 -0
  425. /package/dist/{chunk-73TPOGS4.js.map → chunk-DC55RIEZ.js.map} +0 -0
  426. /package/dist/{chunk-ZDZJNXL6.js.map → chunk-DK2VBJ6Q.js.map} +0 -0
  427. /package/dist/{chunk-CLVILSBR.js.map → chunk-DNXQVCIC.js.map} +0 -0
  428. /package/dist/{chunk-7VIJUZYW.js.map → chunk-E53NLIAP.js.map} +0 -0
  429. /package/dist/{chunk-2LA3H54D.js.map → chunk-E5IZTY4W.js.map} +0 -0
  430. /package/dist/{chunk-J74YOBB3.js.map → chunk-EBI6FI5U.js.map} +0 -0
  431. /package/dist/{chunk-YYXYZM2I.js.map → chunk-ETTV5F53.js.map} +0 -0
  432. /package/dist/{chunk-FRYCXXTB.js.map → chunk-FSORYJRP.js.map} +0 -0
  433. /package/dist/{chunk-TH6OYP6I.js.map → chunk-GOZXQNIM.js.map} +0 -0
  434. /package/dist/{chunk-TNRGWJYT.js.map → chunk-GUF2JKG5.js.map} +0 -0
  435. /package/dist/{chunk-FEUWI5QH.js.map → chunk-HHPY5SSE.js.map} +0 -0
  436. /package/dist/{chunk-QPFM6DHY.js.map → chunk-HHVK2JRE.js.map} +0 -0
  437. /package/dist/{chunk-YY57TRKN.js.map → chunk-HR3DKJCU.js.map} +0 -0
  438. /package/dist/{chunk-FMFCQRDM.js.map → chunk-IJKO5RVJ.js.map} +0 -0
  439. /package/dist/{chunk-UMEUU66X.js.map → chunk-IK7NPYYU.js.map} +0 -0
  440. /package/dist/{chunk-CKZWLAHN.js.map → chunk-JDH2BA2P.js.map} +0 -0
  441. /package/dist/{chunk-QVXEXGIM.js.map → chunk-JNBSTHVT.js.map} +0 -0
  442. /package/dist/{chunk-OBPOIZNR.js.map → chunk-KBHUGMUW.js.map} +0 -0
  443. /package/dist/{chunk-OZKVVUJB.js.map → chunk-KIM5VNZN.js.map} +0 -0
  444. /package/dist/{chunk-ZWDDY4WF.js.map → chunk-KW4XA7GM.js.map} +0 -0
  445. /package/dist/{chunk-OAQRZ4SV.js.map → chunk-L5EE2CXU.js.map} +0 -0
  446. /package/dist/{chunk-RO5EGRAI.js.map → chunk-LAOJHOTG.js.map} +0 -0
  447. /package/dist/{chunk-3PNJZTDV.js.map → chunk-NDPS6OU2.js.map} +0 -0
  448. /package/dist/{chunk-U3BCW7GX.js.map → chunk-OGQL7QC7.js.map} +0 -0
  449. /package/dist/{chunk-K3FH3LAQ.js.map → chunk-OJXK5C6Z.js.map} +0 -0
  450. /package/dist/{chunk-HDLNSDLK.js.map → chunk-P3XO7HE3.js.map} +0 -0
  451. /package/dist/{chunk-RFLC6PKQ.js.map → chunk-PQIFYBUX.js.map} +0 -0
  452. /package/dist/{chunk-WLT6LTQP.js.map → chunk-PRRWKTK6.js.map} +0 -0
  453. /package/dist/{chunk-4L25GAYL.js.map → chunk-Q7OKGBZY.js.map} +0 -0
  454. /package/dist/{chunk-ZQUOUPP3.js.map → chunk-QJBULLKG.js.map} +0 -0
  455. /package/dist/{chunk-W7N7NWG5.js.map → chunk-QKAFFVSO.js.map} +0 -0
  456. /package/dist/{chunk-EZG54YDS.js.map → chunk-QKBFVLDH.js.map} +0 -0
  457. /package/dist/{chunk-MOUSHJAR.js.map → chunk-QMFHKWHN.js.map} +0 -0
  458. /package/dist/{chunk-4D2EY4WM.js.map → chunk-R2AJAAHJ.js.map} +0 -0
  459. /package/dist/{chunk-5BE3FLKL.js.map → chunk-R3UQIS3F.js.map} +0 -0
  460. /package/dist/{chunk-B3M56D2A.js.map → chunk-RDHEBINJ.js.map} +0 -0
  461. /package/dist/{chunk-L7SEYUHS.js.map → chunk-RHQL2RIM.js.map} +0 -0
  462. /package/dist/{chunk-2MWKUVHT.js.map → chunk-RK7SE3BL.js.map} +0 -0
  463. /package/dist/{chunk-CUPILBIP.js.map → chunk-SA2YALFU.js.map} +0 -0
  464. /package/dist/{chunk-VRHY7Y5A.js.map → chunk-SAPC7N43.js.map} +0 -0
  465. /package/dist/{chunk-6QWFZ3X5.js.map → chunk-SOQOUZ2Y.js.map} +0 -0
  466. /package/dist/{chunk-VHXRLD6S.js.map → chunk-T2JZF45K.js.map} +0 -0
  467. /package/dist/{chunk-HLWXCDUQ.js.map → chunk-T4MKFTJF.js.map} +0 -0
  468. /package/dist/{chunk-WQUGCOKF.js.map → chunk-TFA6HPOA.js.map} +0 -0
  469. /package/dist/{chunk-YZYAYUJQ.js.map → chunk-TLRIRISJ.js.map} +0 -0
  470. /package/dist/{chunk-LVGTH6IQ.js.map → chunk-UFX24WNJ.js.map} +0 -0
  471. /package/dist/{chunk-OM5ESBES.js.map → chunk-UH3FPX3L.js.map} +0 -0
  472. /package/dist/{chunk-4NBUHYUV.js.map → chunk-V5W67PQV.js.map} +0 -0
  473. /package/dist/{chunk-TAD6QMMD.js.map → chunk-VAQIBC2L.js.map} +0 -0
  474. /package/dist/{chunk-3Q3XD3NO.js.map → chunk-W2E2WFXL.js.map} +0 -0
  475. /package/dist/{chunk-UYIBNDQE.js.map → chunk-W2UV6VE3.js.map} +0 -0
  476. /package/dist/{chunk-AVWOULJH.js.map → chunk-W35ICLYZ.js.map} +0 -0
  477. /package/dist/{chunk-HDDRVXX4.js.map → chunk-W5LJ3SJ7.js.map} +0 -0
  478. /package/dist/{chunk-FGT7CUYZ.js.map → chunk-WF2LYKOB.js.map} +0 -0
  479. /package/dist/{chunk-UVYI6VIX.js.map → chunk-X7Y7WX73.js.map} +0 -0
  480. /package/dist/{chunk-22V3CMIW.js.map → chunk-XJTRIHTH.js.map} +0 -0
  481. /package/dist/{chunk-3SL52JKD.js.map → chunk-XVZA6VXC.js.map} +0 -0
  482. /package/dist/{chunk-WWQMZBDI.js.map → chunk-XYNUEXLC.js.map} +0 -0
  483. /package/dist/{chunk-HDWISXFH.js.map → chunk-Y65XX5PC.js.map} +0 -0
  484. /package/dist/{chunk-3YOX2BQD.js.map → chunk-YE77U5HZ.js.map} +0 -0
  485. /package/dist/{chunk-U2PSE7MB.js.map → chunk-YLTU2DC4.js.map} +0 -0
  486. /package/dist/{chunk-SBRUTD5O.js.map → chunk-YSATDEBY.js.map} +0 -0
  487. /package/dist/{chunk-5QDTZIGH.js.map → chunk-ZJ3CEAJD.js.map} +0 -0
  488. /package/dist/{chunk-GMO3BGOF.js.map → chunk-ZOJUWVAU.js.map} +0 -0
  489. /package/dist/{chunk-T4BT4FQN.js.map → chunk-ZYP4YEEI.js.map} +0 -0
  490. /package/dist/{migrate-from-identity-anchor-MJYB6NNN.js.map → config-deprecations.js.map} +0 -0
  491. /package/dist/{first-start-migration-BPVJ4HJQ.js.map → first-start-migration-PPPP54X6.js.map} +0 -0
  492. /package/dist/{tier-stats-FLFKN7Y6.js.map → tier-stats-XWJSVEHC.js.map} +0 -0
@@ -1,10 +1,3 @@
1
- import {
2
- runGraphEdgeDecayMaintenanceAcrossNamespaces
3
- } from "./chunk-TH6OYP6I.js";
4
- import {
5
- normalizeDreamsStatusWindowHours,
6
- recordDreamsPhaseRun
7
- } from "./chunk-PQM3B54K.js";
8
1
  import {
9
2
  WEARABLE_SOURCE_PREFIX,
10
3
  WearablesInputError,
@@ -15,22 +8,14 @@ import {
15
8
  loadSyncState,
16
9
  syncWearableSource,
17
10
  wearableSourceLabel
18
- } from "./chunk-2MWKUVHT.js";
11
+ } from "./chunk-RK7SE3BL.js";
19
12
  import {
20
- chatgptReplayNormalizer
21
- } from "./chunk-MMACM5G2.js";
22
- import {
23
- claudeReplayNormalizer
24
- } from "./chunk-54BGIBCR.js";
25
- import {
26
- openclawReplayNormalizer
27
- } from "./chunk-H4CKS5B2.js";
28
- import {
29
- importMarkdownBundle
30
- } from "./chunk-HDDRVXX4.js";
13
+ runGraphEdgeDecayMaintenanceAcrossNamespaces
14
+ } from "./chunk-GOZXQNIM.js";
31
15
  import {
32
- importSqlite
33
- } from "./chunk-PYHOAXTI.js";
16
+ normalizeDreamsStatusWindowHours,
17
+ recordDreamsPhaseRun
18
+ } from "./chunk-PQM3B54K.js";
34
19
  import {
35
20
  exportWorkBoardMarkdown,
36
21
  exportWorkBoardSnapshot,
@@ -40,35 +25,45 @@ import {
40
25
  WorkStorage
41
26
  } from "./chunk-MPC7TYTZ.js";
42
27
  import {
43
- importCapsule
44
- } from "./chunk-4NBUHYUV.js";
28
+ chatgptReplayNormalizer
29
+ } from "./chunk-MMACM5G2.js";
45
30
  import {
46
- exportJsonBundle
47
- } from "./chunk-UP6MOYCB.js";
31
+ claudeReplayNormalizer
32
+ } from "./chunk-54BGIBCR.js";
48
33
  import {
49
- exportOkfBundle,
50
- parseIncludeStatus
51
- } from "./chunk-UYIBNDQE.js";
34
+ openclawReplayNormalizer
35
+ } from "./chunk-H4CKS5B2.js";
52
36
  import {
53
37
  exportSqlite
54
38
  } from "./chunk-BV2TIZ4F.js";
55
39
  import {
56
- SupportPassportAccessSurface,
57
- createSupportPassportModelAdapter,
58
- supportsSupportPassportPrivateFiles
59
- } from "./chunk-22V3CMIW.js";
40
+ importMarkdownBundle
41
+ } from "./chunk-W5LJ3SJ7.js";
42
+ import {
43
+ importSqlite
44
+ } from "./chunk-PYHOAXTI.js";
60
45
  import {
61
46
  detectImportFormat
62
- } from "./chunk-OZKVVUJB.js";
47
+ } from "./chunk-KIM5VNZN.js";
63
48
  import {
64
49
  importJsonBundle
65
- } from "./chunk-2DL3OFLD.js";
50
+ } from "./chunk-45GEJRIG.js";
66
51
  import {
67
52
  backupMemoryDir
68
- } from "./chunk-OWHERGF2.js";
53
+ } from "./chunk-2NLLXCJG.js";
54
+ import {
55
+ importCapsule
56
+ } from "./chunk-V5W67PQV.js";
57
+ import {
58
+ exportJsonBundle
59
+ } from "./chunk-UP6MOYCB.js";
69
60
  import {
70
61
  exportMarkdownBundle
71
62
  } from "./chunk-765K3SAT.js";
63
+ import {
64
+ exportOkfBundle,
65
+ parseIncludeStatus
66
+ } from "./chunk-W2UV6VE3.js";
72
67
  import {
73
68
  isSharedContextWriteInputError,
74
69
  parseSharedWriteOutputControls
@@ -76,7 +71,15 @@ import {
76
71
  import {
77
72
  buildStandup,
78
73
  parseStandupDate
79
- } from "./chunk-CUPILBIP.js";
74
+ } from "./chunk-SA2YALFU.js";
75
+ import {
76
+ SupportPassportAccessSurface,
77
+ createSupportPassportModelAdapter,
78
+ supportsSupportPassportPrivateFiles
79
+ } from "./chunk-XJTRIHTH.js";
80
+ import {
81
+ runPeerProfileReasoner
82
+ } from "./chunk-5ACIRCBO.js";
80
83
  import {
81
84
  buildReplayNormalizerRegistry,
82
85
  clampBatchSize,
@@ -101,22 +104,16 @@ import {
101
104
  import {
102
105
  ActivityStore,
103
106
  MaintenanceScheduler
104
- } from "./chunk-X67XNZ64.js";
107
+ } from "./chunk-4LVQSHHN.js";
105
108
  import {
106
- runPeerProfileReasoner
107
- } from "./chunk-I74SUMNI.js";
109
+ rebuildMemoryLifecycleLedger
110
+ } from "./chunk-PQIFYBUX.js";
108
111
  import {
109
112
  rebuildObservations
110
113
  } from "./chunk-2X4WP4GD.js";
111
114
  import {
112
115
  migrateFromEngram
113
116
  } from "./chunk-VZAKYDMJ.js";
114
- import {
115
- migrateObservations
116
- } from "./chunk-6PEEZSGL.js";
117
- import {
118
- rebuildMemoryLifecycleLedger
119
- } from "./chunk-RFLC6PKQ.js";
120
117
  import {
121
118
  backfillMemoryStorage,
122
119
  runLocationBackfill,
@@ -124,45 +121,35 @@ import {
124
121
  runLocationDay,
125
122
  runLocationStatus,
126
123
  runLocationSync
127
- } from "./chunk-BKTCVXMK.js";
124
+ } from "./chunk-7SNEJNA3.js";
128
125
  import {
129
126
  archiveObservations
130
127
  } from "./chunk-SBQOBY3S.js";
131
128
  import {
132
- LcmEngine
133
- } from "./chunk-K3FH3LAQ.js";
134
- import {
135
- executeResolution,
136
- isValidResolutionVerb,
137
- runPreferenceDriftScan
138
- } from "./chunk-4AKPTHOO.js";
129
+ migrateObservations
130
+ } from "./chunk-6PEEZSGL.js";
139
131
  import {
140
- chunkTranscriptEntries
141
- } from "./chunk-TECVW3JP.js";
132
+ LcmEngine
133
+ } from "./chunk-OJXK5C6Z.js";
142
134
  import {
143
135
  cleanupConversationChunks
144
136
  } from "./chunk-C5JF6EZ7.js";
145
- import {
146
- runCompatChecks
147
- } from "./chunk-2524MOWK.js";
148
137
  import {
149
138
  CompoundingEngine,
150
139
  defaultTierMigrationCycleBudget
151
- } from "./chunk-VRHY7Y5A.js";
140
+ } from "./chunk-SAPC7N43.js";
152
141
  import {
153
142
  SharedContextManager,
154
143
  UNATTRIBUTED_ACCESS_WRITE_ORIGIN
155
144
  } from "./chunk-JVBAPAWZ.js";
156
145
  import {
157
- AdapterRegistry
158
- } from "./chunk-WWQMZBDI.js";
146
+ executeResolution,
147
+ isValidResolutionVerb,
148
+ runPreferenceDriftScan
149
+ } from "./chunk-4AKPTHOO.js";
159
150
  import {
160
- getBulkImportSource,
161
- listBulkImportSources,
162
- processBatchFromIngest,
163
- registerBulkImportSource,
164
- runBulkImportPipeline
165
- } from "./chunk-4P4GF76E.js";
151
+ chunkTranscriptEntries
152
+ } from "./chunk-TECVW3JP.js";
166
153
  import {
167
154
  ACTIVE_DECISION_STATUSES,
168
155
  CodegraphRuntimeError,
@@ -180,13 +167,26 @@ import {
180
167
  parseDecisionRecord,
181
168
  resolveCodegraphProjectId,
182
169
  serializeDecisionRecord
183
- } from "./chunk-3PNJZTDV.js";
170
+ } from "./chunk-NDPS6OU2.js";
184
171
  import {
185
172
  lintOkfDir
186
173
  } from "./chunk-SQXCUH4L.js";
187
174
  import {
188
175
  isCodingGraphInstalled
189
176
  } from "./chunk-VQ7B2Q6M.js";
177
+ import {
178
+ runCompatChecks
179
+ } from "./chunk-2524MOWK.js";
180
+ import {
181
+ AdapterRegistry
182
+ } from "./chunk-XYNUEXLC.js";
183
+ import {
184
+ getBulkImportSource,
185
+ listBulkImportSources,
186
+ processBatchFromIngest,
187
+ registerBulkImportSource,
188
+ runBulkImportPipeline
189
+ } from "./chunk-4P4GF76E.js";
190
190
  import {
191
191
  WriteQuarantineStore
192
192
  } from "./chunk-BANSBRNX.js";
@@ -197,11 +197,19 @@ import {
197
197
  applyUtilityPromotionRuntimePolicy,
198
198
  applyUtilityRankingRuntimeDelta,
199
199
  loadUtilityRuntimeValues
200
- } from "./chunk-3Q3XD3NO.js";
200
+ } from "./chunk-W2E2WFXL.js";
201
+ import {
202
+ getUtilityLearningStatus,
203
+ learnUtilityPromotionWeights
204
+ } from "./chunk-PRRWKTK6.js";
205
+ import {
206
+ getUtilityTelemetryStatus,
207
+ recordUtilityTelemetryEvent
208
+ } from "./chunk-EOU6V4IN.js";
201
209
  import {
202
210
  compareVerifiedEpisodeResults,
203
211
  searchVerifiedEpisodes
204
- } from "./chunk-PFLN6TTW.js";
212
+ } from "./chunk-A2XFG462.js";
205
213
  import {
206
214
  WHO_KNOWS_DEFAULT_LIMIT,
207
215
  WHO_KNOWS_MCP_TOOLS,
@@ -209,7 +217,17 @@ import {
209
217
  handleWhoKnowsHttpQuery,
210
218
  loadWhoKnowsEntities,
211
219
  validateWhoKnowsInput
212
- } from "./chunk-A5UOREWD.js";
220
+ } from "./chunk-4DLGKTM6.js";
221
+ import {
222
+ applyTrustScoreStage,
223
+ buildTrustSignalsForRerank,
224
+ projectTrustForXray,
225
+ trustResultFor,
226
+ trustResultKey
227
+ } from "./chunk-GNVZQ5JN.js";
228
+ import {
229
+ renderEpistemicHedge
230
+ } from "./chunk-YN2UN7N3.js";
213
231
  import {
214
232
  getTrustZoneStoreStatus,
215
233
  isTrustZoneName,
@@ -224,26 +242,11 @@ import {
224
242
  cleanArchivedUserMessage
225
243
  } from "./chunk-47DU4SGJ.js";
226
244
  import {
227
- getUtilityLearningStatus,
228
- learnUtilityPromotionWeights
229
- } from "./chunk-WLT6LTQP.js";
230
- import {
231
- getUtilityTelemetryStatus,
232
- recordUtilityTelemetryEvent
233
- } from "./chunk-EOU6V4IN.js";
245
+ TmtBuilder
246
+ } from "./chunk-ECZU5BJH.js";
234
247
  import {
235
248
  extractTopics
236
249
  } from "./chunk-KVDUKH5E.js";
237
- import {
238
- applyTrustScoreStage,
239
- buildTrustSignalsForRerank,
240
- projectTrustForXray,
241
- trustResultFor,
242
- trustResultKey
243
- } from "./chunk-GNVZQ5JN.js";
244
- import {
245
- renderEpistemicHedge
246
- } from "./chunk-YN2UN7N3.js";
247
250
  import {
248
251
  buildTemporalTimelineRecallSection
249
252
  } from "./chunk-VHF73MGU.js";
@@ -258,10 +261,11 @@ import {
258
261
  } from "./chunk-YRFAYOFQ.js";
259
262
  import {
260
263
  decideTierTransition
261
- } from "./chunk-OBPOIZNR.js";
264
+ } from "./chunk-KBHUGMUW.js";
262
265
  import {
263
- TmtBuilder
264
- } from "./chunk-ECZU5BJH.js";
266
+ HourlySummarizer,
267
+ summarizeHourlyStatus
268
+ } from "./chunk-YRD525ZO.js";
265
269
  import {
266
270
  buildTargetedFactRecallSection,
267
271
  shouldRecallTargetedFactEvidence
@@ -271,10 +275,6 @@ import {
271
275
  prefixStandingMemoryBlock,
272
276
  renderStandingMemoryBlock
273
277
  } from "./chunk-LJLGH2DE.js";
274
- import {
275
- HourlySummarizer,
276
- summarizeHourlyStatus
277
- } from "./chunk-BPCR5DZP.js";
278
278
  import {
279
279
  SessionObserverState
280
280
  } from "./chunk-ODZKV2F7.js";
@@ -284,11 +284,29 @@ import {
284
284
  } from "./chunk-WWDO7ZWM.js";
285
285
  import {
286
286
  promoteSemanticRuleFromMemory
287
- } from "./chunk-YYXYZM2I.js";
287
+ } from "./chunk-ETTV5F53.js";
288
288
  import {
289
289
  compareVerifiedSemanticRuleResults,
290
290
  searchVerifiedSemanticRules
291
- } from "./chunk-4L25GAYL.js";
291
+ } from "./chunk-Q7OKGBZY.js";
292
+ import {
293
+ buildResponseGuidanceRecallSection,
294
+ shouldRecallResponseGuidance
295
+ } from "./chunk-ZKE4CO6B.js";
296
+ import {
297
+ buildResumeBundleFromState,
298
+ getResumeBundleStatus,
299
+ recordResumeBundle
300
+ } from "./chunk-WF2LYKOB.js";
301
+ import {
302
+ getWorkProductLedgerStatus,
303
+ recordWorkProductLedgerEntry,
304
+ searchWorkProductLedgerEntries
305
+ } from "./chunk-B2NXOVZN.js";
306
+ import {
307
+ TranscriptManager,
308
+ utcDayRange
309
+ } from "./chunk-5RONA5FF.js";
292
310
  import {
293
311
  mergeWithAgentResults,
294
312
  runDirectAgent,
@@ -312,45 +330,27 @@ import {
312
330
  } from "./chunk-ZOKZIR5K.js";
313
331
  import {
314
332
  applyRuntimeRetrievalPolicy
315
- } from "./chunk-5IZL4DCV.js";
333
+ } from "./chunk-4DF5LMBJ.js";
316
334
  import {
317
335
  composeSalvagedEnvelope
318
336
  } from "./chunk-5CO5G4MN.js";
337
+ import {
338
+ RelevanceStore
339
+ } from "./chunk-FEYPXEKE.js";
319
340
  import {
320
341
  RerankCache,
321
342
  reorderByRankedKeys,
322
343
  rerankLocalOrNoop
323
344
  } from "./chunk-WBOJMAAV.js";
324
- import {
325
- buildResponseGuidanceRecallSection,
326
- shouldRecallResponseGuidance
327
- } from "./chunk-ZKE4CO6B.js";
328
- import {
329
- buildResumeBundleFromState,
330
- getResumeBundleStatus,
331
- recordResumeBundle
332
- } from "./chunk-FGT7CUYZ.js";
333
- import {
334
- getWorkProductLedgerStatus,
335
- recordWorkProductLedgerEntry,
336
- searchWorkProductLedgerEntries
337
- } from "./chunk-B2NXOVZN.js";
338
- import {
339
- TranscriptManager,
340
- utcDayRange
341
- } from "./chunk-5RONA5FF.js";
342
345
  import {
343
346
  runRecallWhy
344
- } from "./chunk-6QWFZ3X5.js";
347
+ } from "./chunk-SOQOUZ2Y.js";
345
348
  import {
346
349
  parseXrayCliOptions
347
- } from "./chunk-FRYCXXTB.js";
350
+ } from "./chunk-FSORYJRP.js";
348
351
  import {
349
352
  findUnresolvedEntityRefs
350
353
  } from "./chunk-X7XN6YU4.js";
351
- import {
352
- RelevanceStore
353
- } from "./chunk-FEYPXEKE.js";
354
354
  import {
355
355
  LastRecallStore,
356
356
  RecallHandleHistoryStore,
@@ -360,7 +360,7 @@ import {
360
360
  import {
361
361
  indexStateViewAnnotatedResults,
362
362
  resolveRecallStateViewActive
363
- } from "./chunk-QPFM6DHY.js";
363
+ } from "./chunk-HHVK2JRE.js";
364
364
  import {
365
365
  applyRecallStateViews
366
366
  } from "./chunk-DBB5JPSL.js";
@@ -369,6 +369,9 @@ import {
369
369
  filterRecentScanMemories,
370
370
  stateViewPacketActive
371
371
  } from "./chunk-G2DF5MI7.js";
372
+ import {
373
+ maybeRespondRecallNavigation
374
+ } from "./chunk-5VMRM2X3.js";
372
375
  import {
373
376
  RECALL_NAVIGATION_MCP_TOOLS
374
377
  } from "./chunk-TE6S7KDF.js";
@@ -379,21 +382,21 @@ import {
379
382
  DEFAULT_TRAVERSE_LIMIT,
380
383
  selectTraverseNeighbors
381
384
  } from "./chunk-YE4JBZO5.js";
385
+ import {
386
+ parseNavigateLinkType
387
+ } from "./chunk-7O5EW7KX.js";
382
388
  import {
383
389
  assertIdInNavigationWindow
384
390
  } from "./chunk-5KVT6G5U.js";
385
391
  import {
386
- maybeRespondRecallNavigation
387
- } from "./chunk-5VMRM2X3.js";
392
+ reorderRecallResultsWithMmr
393
+ } from "./chunk-IIK2PD3F.js";
388
394
  import {
389
395
  takeNavigateBudget
390
396
  } from "./chunk-VYDGHJIN.js";
391
397
  import {
392
398
  planDisclosureStep
393
- } from "./chunk-B3M56D2A.js";
394
- import {
395
- parseNavigateLinkType
396
- } from "./chunk-7O5EW7KX.js";
399
+ } from "./chunk-RDHEBINJ.js";
397
400
  import {
398
401
  decideDisclosureEscalation
399
402
  } from "./chunk-H7XKCNR6.js";
@@ -406,15 +409,18 @@ import {
406
409
  renderRecallExplain,
407
410
  renderXray,
408
411
  toRecallExplainJson
409
- } from "./chunk-333SBFXB.js";
412
+ } from "./chunk-7AAMJQFW.js";
410
413
  import {
411
414
  buildXraySnapshot,
412
415
  estimateRecallTokens,
413
416
  summarizeDisclosureTokens
414
- } from "./chunk-VHXRLD6S.js";
417
+ } from "./chunk-T2JZF45K.js";
415
418
  import {
416
- reorderRecallResultsWithMmr
417
- } from "./chunk-IIK2PD3F.js";
419
+ compactRecallContextFromBuckets,
420
+ decideRecallContextComposition,
421
+ notifyContextComposition,
422
+ recallFailureComposition
423
+ } from "./chunk-KAGLV5KH.js";
418
424
  import {
419
425
  applyReasoningTraceBoost
420
426
  } from "./chunk-EVWDNKQA.js";
@@ -432,11 +438,8 @@ import {
432
438
  createPhase2Timer
433
439
  } from "./chunk-5JD4DXQX.js";
434
440
  import {
435
- compactRecallContextFromBuckets,
436
- decideRecallContextComposition,
437
- notifyContextComposition,
438
- recallFailureComposition
439
- } from "./chunk-KAGLV5KH.js";
441
+ installPrioritizedEmbedding
442
+ } from "./chunk-ROI7BK7H.js";
440
443
  import {
441
444
  collectPatternMemories,
442
445
  explainPatternMemory,
@@ -450,10 +453,10 @@ import {
450
453
  PolicyRuntimeManager,
451
454
  readRuntimePolicySnapshot,
452
455
  sanitizeRuntimePolicyValues
453
- } from "./chunk-2LA3H54D.js";
456
+ } from "./chunk-E5IZTY4W.js";
454
457
  import {
455
- installPrioritizedEmbedding
456
- } from "./chunk-ROI7BK7H.js";
458
+ buildEmbeddingAwareSnapshotStream
459
+ } from "./chunk-IJKO5RVJ.js";
457
460
  import {
458
461
  formatNamespaceMaintenanceHealthText,
459
462
  readAggregateExtractionWatermark,
@@ -465,12 +468,12 @@ import {
465
468
  runOperatorRepair,
466
469
  runOperatorSetup,
467
470
  summarizeNamespaceMaintenanceHealth
468
- } from "./chunk-LVGTH6IQ.js";
471
+ } from "./chunk-UFX24WNJ.js";
469
472
  import {
470
473
  NamespaceCatalog,
471
474
  isNamespaceKind,
472
475
  planNamespaceMaintenance
473
- } from "./chunk-QVXEXGIM.js";
476
+ } from "./chunk-JNBSTHVT.js";
474
477
  import {
475
478
  analyzeSessionIntegrity,
476
479
  applySessionRepair,
@@ -480,8 +483,8 @@ import {
480
483
  ReplicaDivergenceMonitor
481
484
  } from "./chunk-2TJSGIKT.js";
482
485
  import {
483
- buildEmbeddingAwareSnapshotStream
484
- } from "./chunk-FMFCQRDM.js";
486
+ recordMemoryOutcome
487
+ } from "./chunk-UD7UNYRD.js";
485
488
  import {
486
489
  NegativeExampleStore
487
490
  } from "./chunk-23L3IXFD.js";
@@ -490,8 +493,16 @@ import {
490
493
  buildMemoryWorthCounterMap
491
494
  } from "./chunk-3GPTTA4J.js";
492
495
  import {
493
- recordMemoryOutcome
494
- } from "./chunk-UD7UNYRD.js";
496
+ runMemoryBrowse
497
+ } from "./chunk-JDH2BA2P.js";
498
+ import {
499
+ filterRecallCandidates,
500
+ isGenericRecallExcludedPath,
501
+ isSearchExcludedPath,
502
+ isTopLevelArchivePath,
503
+ journalPath,
504
+ writeJournalFile
505
+ } from "./chunk-HR3DKJCU.js";
495
506
  import {
496
507
  REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE,
497
508
  REMNIC_CHATGPT_MEMORY_INSPECTOR_TOOL,
@@ -514,16 +525,8 @@ import {
514
525
  MEMORY_BROWSE_MCP_TOOLS
515
526
  } from "./chunk-EIB4FJVR.js";
516
527
  import {
517
- runMemoryBrowse
518
- } from "./chunk-CKZWLAHN.js";
519
- import {
520
- filterRecallCandidates,
521
- isGenericRecallExcludedPath,
522
- isSearchExcludedPath,
523
- isTopLevelArchivePath,
524
- journalPath,
525
- writeJournalFile
526
- } from "./chunk-YY57TRKN.js";
528
+ serializeInlineScriptValue
529
+ } from "./chunk-3HSRWJTC.js";
527
530
  import {
528
531
  scaleLcmSummarizeBudget
529
532
  } from "./chunk-3TKX7ZMV.js";
@@ -554,8 +557,8 @@ import {
554
557
  coerceIncludedMemories
555
558
  } from "./chunk-2YA5N2BY.js";
556
559
  import {
557
- serializeInlineScriptValue
558
- } from "./chunk-3HSRWJTC.js";
560
+ buildGraphSnapshot
561
+ } from "./chunk-YLTU2DC4.js";
559
562
  import {
560
563
  deriveHarmonicRecords,
561
564
  harmonicEntityReferenceMatches,
@@ -566,20 +569,17 @@ import {
566
569
  import {
567
570
  readProjectedHarmonicGraph,
568
571
  searchHarmonicRetrieval
569
- } from "./chunk-OAQRZ4SV.js";
572
+ } from "./chunk-L5EE2CXU.js";
570
573
  import {
571
574
  classifyMemoryKind
572
575
  } from "./chunk-YAZNBMNF.js";
573
576
  import {
574
577
  removeNodeEdgesForRewrite,
575
578
  rollbackNodeEdgeRewrite
576
- } from "./chunk-OM5ESBES.js";
579
+ } from "./chunk-UH3FPX3L.js";
577
580
  import {
578
581
  scoreEvidencePathDetail
579
582
  } from "./chunk-XXSOVESA.js";
580
- import {
581
- buildGraphSnapshot
582
- } from "./chunk-U2PSE7MB.js";
583
583
  import {
584
584
  buildFocusedListRecallSection,
585
585
  shouldRecallFocusedListEvidence
@@ -593,31 +593,41 @@ import {
593
593
  } from "./chunk-LEO4MQ3S.js";
594
594
  import {
595
595
  ExtractionEngine
596
- } from "./chunk-5PUZV73Z.js";
596
+ } from "./chunk-6VFMEBXY.js";
597
597
  import {
598
598
  wrapWorkLayerContext
599
599
  } from "./chunk-EI6V5UXY.js";
600
600
  import {
601
601
  CONNECTOR_LABEL_MAX_LENGTH
602
- } from "./chunk-U3BCW7GX.js";
602
+ } from "./chunk-OGQL7QC7.js";
603
603
  import {
604
604
  isValidConnectorId
605
- } from "./chunk-BFPQJNFZ.js";
605
+ } from "./chunk-LXSDEPEK.js";
606
606
  import {
607
607
  ProfilingCollector,
608
608
  formatProfileTraceAscii
609
609
  } from "./chunk-DOWACHYO.js";
610
610
  import {
611
611
  ModelRegistry
612
- } from "./chunk-QNUNAXBE.js";
612
+ } from "./chunk-L7LZDISF.js";
613
613
  import {
614
614
  parseMemoryActionEligibilityContext
615
615
  } from "./chunk-JHU4EYDV.js";
616
+ import {
617
+ createDeferCountMap,
618
+ createVerdictCache,
619
+ getVerdictKind,
620
+ judgeFactDurability,
621
+ validateProcedureExtraction
622
+ } from "./chunk-LMJVP5CM.js";
616
623
  import {
617
624
  REDACTION_RULES_SUBDIR,
618
625
  contentMatchesRedactionRules,
619
626
  loadRedactionRules
620
627
  } from "./chunk-LTHVM4XN.js";
628
+ import {
629
+ EXTERNAL_WIKI_MCP_TOOLS
630
+ } from "./chunk-A5KNZSNA.js";
621
631
  import {
622
632
  EXTRACTION_JUDGE_VERDICT_CATEGORY,
623
633
  recordJudgeVerdict
@@ -626,21 +636,27 @@ import {
626
636
  recordJudgeTrainingPair
627
637
  } from "./chunk-PWFCHOB3.js";
628
638
  import {
629
- createDeferCountMap,
630
- createVerdictCache,
631
- getVerdictKind,
632
- judgeFactDurability,
633
- validateProcedureExtraction
634
- } from "./chunk-LMJVP5CM.js";
639
+ buildExplicitCueRecallSection
640
+ } from "./chunk-NED7IR7B.js";
635
641
  import {
636
642
  externalWikiSearchOperation
637
643
  } from "./chunk-ZDUE44CC.js";
638
644
  import {
639
- EXTERNAL_WIKI_MCP_TOOLS
640
- } from "./chunk-A5KNZSNA.js";
645
+ createEvalBaselineSnapshot,
646
+ getEvalHarnessStatus,
647
+ importEvalBenchmarkPack,
648
+ recordEvalShadowRecall,
649
+ runEvalBaselineDeltaReport,
650
+ runEvalBenchmarkCiGate,
651
+ runEvalStoredBaselineCiGate,
652
+ validateEvalBenchmarkPack
653
+ } from "./chunk-JKMIGCK6.js";
641
654
  import {
642
655
  buildEventOrderRecallSection
643
- } from "./chunk-ZDZJNXL6.js";
656
+ } from "./chunk-DK2VBJ6Q.js";
657
+ import {
658
+ lcmEvidenceIdentity
659
+ } from "./chunk-C37ZRXX7.js";
644
660
  import {
645
661
  shouldRecallEventOrderEvidence
646
662
  } from "./chunk-BUYVPUEM.js";
@@ -648,17 +664,11 @@ import {
648
664
  pickFactEventTimeAnchor,
649
665
  resolveFactEventTime
650
666
  } from "./chunk-IAIPNEHD.js";
651
- import {
652
- buildExplicitCueRecallSection
653
- } from "./chunk-NED7IR7B.js";
654
- import {
655
- lcmEvidenceIdentity
656
- } from "./chunk-C37ZRXX7.js";
657
667
  import {
658
668
  buildEntityRecallSection,
659
669
  entityRecentTranscriptLookbackHours,
660
670
  readRecentEntityTranscriptEntries
661
- } from "./chunk-J74YOBB3.js";
671
+ } from "./chunk-EBI6FI5U.js";
662
672
  import {
663
673
  boundRecallContextComposition,
664
674
  composeMissingMemoryContext,
@@ -671,25 +681,18 @@ import {
671
681
  import {
672
682
  planEpisodeWindowsWithFallback
673
683
  } from "./chunk-T3GIETKV.js";
674
- import {
675
- createEvalBaselineSnapshot,
676
- getEvalHarnessStatus,
677
- importEvalBenchmarkPack,
678
- recordEvalShadowRecall,
679
- runEvalBaselineDeltaReport,
680
- runEvalBenchmarkCiGate,
681
- runEvalStoredBaselineCiGate,
682
- validateEvalBenchmarkPack
683
- } from "./chunk-JKMIGCK6.js";
684
684
  import {
685
685
  tryDirectAnswer
686
686
  } from "./chunk-OB72KNMF.js";
687
687
  import {
688
688
  EmbeddingFallback
689
- } from "./chunk-SBRUTD5O.js";
689
+ } from "./chunk-YSATDEBY.js";
690
+ import {
691
+ formatDaySummaryMemories
692
+ } from "./chunk-7G5NTS7F.js";
690
693
  import {
691
694
  respondDeepRecall
692
- } from "./chunk-TAD6QMMD.js";
695
+ } from "./chunk-VAQIBC2L.js";
693
696
  import {
694
697
  DEEP_RECALL_MCP_TOOLS
695
698
  } from "./chunk-HUSTM6PU.js";
@@ -704,19 +707,19 @@ import {
704
707
  } from "./chunk-3X5OPDPF.js";
705
708
  import {
706
709
  runBudgetedDeepRecall
707
- } from "./chunk-HXFIILGF.js";
710
+ } from "./chunk-BFPF5N3H.js";
708
711
  import {
709
712
  CorpusWatermarkCache,
710
713
  computeServiceCorpusCensus
711
- } from "./chunk-5QDTZIGH.js";
714
+ } from "./chunk-ZJ3CEAJD.js";
712
715
  import {
713
716
  listNamespaces,
714
717
  runNamespaceMigration,
715
718
  verifyNamespaces
716
- } from "./chunk-3YOX2BQD.js";
719
+ } from "./chunk-YE77U5HZ.js";
717
720
  import {
718
721
  NamespaceStorageRouter
719
- } from "./chunk-FOTFLHBN.js";
722
+ } from "./chunk-LH57QATU.js";
720
723
  import {
721
724
  CrossNamespaceBudget,
722
725
  toBudgetWarning
@@ -728,17 +731,14 @@ import {
728
731
  import {
729
732
  GraphDashboardServer
730
733
  } from "./chunk-YNDLCWXS.js";
731
- import {
732
- formatDaySummaryMemories
733
- } from "./chunk-7G5NTS7F.js";
734
734
  import {
735
735
  refreshConvergedNamespaces
736
- } from "./chunk-WEFFO2MJ.js";
736
+ } from "./chunk-4E2Z44CV.js";
737
737
  import {
738
738
  rebuildMemoryProjection,
739
739
  repairMemoryProjection,
740
740
  verifyMemoryProjection
741
- } from "./chunk-7VIJUZYW.js";
741
+ } from "./chunk-E53NLIAP.js";
742
742
  import {
743
743
  buildProposedActions,
744
744
  buildQualityScore,
@@ -747,7 +747,7 @@ import {
747
747
  readMemoryGovernanceRunArtifact,
748
748
  restoreMemoryGovernanceRun,
749
749
  runMemoryGovernance
750
- } from "./chunk-ZWDDY4WF.js";
750
+ } from "./chunk-KW4XA7GM.js";
751
751
  import {
752
752
  collectNativeKnowledgeChunks,
753
753
  formatNativeKnowledgeSection,
@@ -780,29 +780,29 @@ import {
780
780
  materializeAfterSemanticConsolidation,
781
781
  parseConsolidationResponse,
782
782
  parseOperatorAwareConsolidationResponse
783
- } from "./chunk-GBSXTTLP.js";
783
+ } from "./chunk-YY5UXARJ.js";
784
784
  import {
785
785
  resolveNamespaceChildRoot
786
786
  } from "./chunk-3UXOZBHV.js";
787
787
  import {
788
788
  GraphIndex,
789
789
  analyzeGraphHealth
790
- } from "./chunk-73TPOGS4.js";
791
- import {
792
- GraphEdgeAppendError
793
- } from "./chunk-GKCXTSFF.js";
790
+ } from "./chunk-DC55RIEZ.js";
794
791
  import {
795
792
  subscribeGraphEvents
796
793
  } from "./chunk-DEUNUKTD.js";
794
+ import {
795
+ GraphEdgeAppendError
796
+ } from "./chunk-GKCXTSFF.js";
797
797
  import {
798
798
  SmartBuffer
799
- } from "./chunk-QLQUAVVP.js";
799
+ } from "./chunk-QRCE77YX.js";
800
800
  import {
801
801
  ExtractionDeadlineError,
802
802
  ExtractionRunCoordinator,
803
803
  ProviderCircuitBreaker,
804
804
  classifyExtractionOrigin
805
- } from "./chunk-HDWISXFH.js";
805
+ } from "./chunk-Y65XX5PC.js";
806
806
  import {
807
807
  ARTIFACT_STATUS_CACHE_TTL_MS,
808
808
  BulkImportBatchPartialFailureError,
@@ -842,7 +842,7 @@ import {
842
842
  throwIfRecallAborted,
843
843
  tokenizeRecallQuery,
844
844
  utcDateKeysForLocalDay
845
- } from "./chunk-ZX546Y3Y.js";
845
+ } from "./chunk-CY2C5LM4.js";
846
846
  import {
847
847
  inferIntentFromText,
848
848
  intentCompatibilityScore,
@@ -851,7 +851,7 @@ import {
851
851
  } from "./chunk-CSAKJVXW.js";
852
852
  import {
853
853
  LocalLlmClient
854
- } from "./chunk-QFTK6EDM.js";
854
+ } from "./chunk-BFZFNXOC.js";
855
855
  import {
856
856
  isCapsuleImportArchiveInputError,
857
857
  validateCapsuleImportArchive
@@ -859,6 +859,10 @@ import {
859
859
  import {
860
860
  defaultCapsulesDir
861
861
  } from "./chunk-ZY2MNJR6.js";
862
+ import {
863
+ ReplayAdmissionRefusedError,
864
+ StorageTargetRequiredError
865
+ } from "./chunk-XAIRTELU.js";
862
866
  import {
863
867
  semanticChunkContent
864
868
  } from "./chunk-2GBFKHBZ.js";
@@ -876,7 +880,7 @@ import {
876
880
  parseBriefingFocus,
877
881
  parseBriefingWindow,
878
882
  validateBriefingFormat
879
- } from "./chunk-TNRGWJYT.js";
883
+ } from "./chunk-GUF2JKG5.js";
880
884
  import {
881
885
  BriefingTimeoutError,
882
886
  withBriefingDeadline
@@ -885,16 +889,16 @@ import {
885
889
  scopeObserveBufferAdmissionIdempotencyKey
886
890
  } from "./chunk-5EP2V675.js";
887
891
  import {
888
- ReplayAdmissionRefusedError,
889
- StorageTargetRequiredError
890
- } from "./chunk-XAIRTELU.js";
892
+ AMBIENT_CAPTURE_PROMPT_RULE,
893
+ isHighImpactPersonalFact
894
+ } from "./chunk-QW27DOHG.js";
891
895
  import {
892
896
  buildRecallQueryPolicy
893
897
  } from "./chunk-C6WMSXCJ.js";
894
898
  import {
895
899
  decideLifecycleTransition,
896
900
  resolveLifecycleState
897
- } from "./chunk-TBBDFYXW.js";
901
+ } from "./chunk-YVUNHNB6.js";
898
902
  import {
899
903
  buildBehaviorSignalsForMemory,
900
904
  dedupeBehaviorSignalsByMemoryAndHash
@@ -905,6 +909,13 @@ import {
905
909
  import {
906
910
  isDisagreementPrompt
907
911
  } from "./chunk-H3FZVNRN.js";
912
+ import {
913
+ handleSupportPassportOwnerHttp
914
+ } from "./chunk-DFZYZOLH.js";
915
+ import {
916
+ SupportPassportError,
917
+ buildSupportPassportPublicRequestHandler
918
+ } from "./chunk-QWWHYBPT.js";
908
919
  import {
909
920
  meetingsBuild,
910
921
  meetingsGet,
@@ -941,7 +952,7 @@ import {
941
952
  validateCorrectionAction,
942
953
  validateCorrectionRequest,
943
954
  validateRedactionPattern
944
- } from "./chunk-SIONKXLU.js";
955
+ } from "./chunk-H6TCS5XX.js";
945
956
  import {
946
957
  compileCorrectionRule,
947
958
  correctionsFilePath,
@@ -1031,7 +1042,7 @@ import {
1031
1042
  getCausalTrajectoryStoreStatus,
1032
1043
  readCausalTrajectoryRecords,
1033
1044
  searchCausalTrajectories
1034
- } from "./chunk-GMO3BGOF.js";
1045
+ } from "./chunk-ZOJUWVAU.js";
1035
1046
  import {
1036
1047
  QmdResultResolver,
1037
1048
  StorageManager,
@@ -1054,7 +1065,7 @@ import {
1054
1065
  reconstructFusionInputs,
1055
1066
  selfDeps,
1056
1067
  serializeFusionDay
1057
- } from "./chunk-OWM2VWNX.js";
1068
+ } from "./chunk-X5MFCZDL.js";
1058
1069
  import {
1059
1070
  buildRetiredFactTombstoneInputs
1060
1071
  } from "./chunk-QGVCFVX6.js";
@@ -1073,12 +1084,12 @@ import {
1073
1084
  embeddingBacklogExceeds,
1074
1085
  isSearchHealthDegraded,
1075
1086
  namespaceCollectionName
1076
- } from "./chunk-AVWOULJH.js";
1087
+ } from "./chunk-W35ICLYZ.js";
1077
1088
  import {
1078
1089
  createConversationIndexRuntime,
1079
1090
  createSearchBackend,
1080
1091
  isSearchBackendEnabled
1081
- } from "./chunk-7OCKK5M5.js";
1092
+ } from "./chunk-BJOQQCYC.js";
1082
1093
  import {
1083
1094
  NoopSearchBackend
1084
1095
  } from "./chunk-CYEPCZN5.js";
@@ -1115,9 +1126,6 @@ import {
1115
1126
  dominantCorpusLanguage,
1116
1127
  planCrossScript
1117
1128
  } from "./chunk-3WU7XOFN.js";
1118
- import {
1119
- checkCorpusReadAbort
1120
- } from "./chunk-P4GUQSK3.js";
1121
1129
  import {
1122
1130
  createVersion,
1123
1131
  getVersion,
@@ -1149,6 +1157,12 @@ import {
1149
1157
  isValidAsOf,
1150
1158
  isValidityExpiredNow
1151
1159
  } from "./chunk-6CIAGZ6X.js";
1160
+ import {
1161
+ checkCorpusReadAbort
1162
+ } from "./chunk-P4GUQSK3.js";
1163
+ import {
1164
+ withCaptureWriteLockBackoff
1165
+ } from "./chunk-7VLBZKNB.js";
1152
1166
  import {
1153
1167
  buildExplicitCaptureDedupKey,
1154
1168
  normalizeExplicitCaptureContent
@@ -1170,9 +1184,6 @@ import {
1170
1184
  import {
1171
1185
  fallbackLlmRuntimeContextFromConfig
1172
1186
  } from "./chunk-QSF5SJAM.js";
1173
- import {
1174
- withCaptureWriteLockBackoff
1175
- } from "./chunk-7VLBZKNB.js";
1176
1187
  import {
1177
1188
  bufferTurnsEqual,
1178
1189
  describeError,
@@ -1191,15 +1202,11 @@ import {
1191
1202
  padEndDisplay,
1192
1203
  truncateGraphemeSafe
1193
1204
  } from "./chunk-EMMUQUHF.js";
1194
- import {
1195
- AMBIENT_CAPTURE_PROMPT_RULE,
1196
- isHighImpactPersonalFact
1197
- } from "./chunk-QW27DOHG.js";
1198
1205
  import {
1199
1206
  RECALL_WHY_MCP_TOOLS,
1200
1207
  handleRecallWhyHttpQuery,
1201
1208
  handleRecallXrayHttpQuery
1202
- } from "./chunk-LPUEBFX2.js";
1209
+ } from "./chunk-5JCYPBY5.js";
1203
1210
  import {
1204
1211
  runContradictionScan
1205
1212
  } from "./chunk-SX4BR26Y.js";
@@ -1213,30 +1220,26 @@ import {
1213
1220
  RECALL_DISCLOSURE_LEVELS,
1214
1221
  confidenceTier,
1215
1222
  isRecallDisclosure
1216
- } from "./chunk-N7AIFTSH.js";
1223
+ } from "./chunk-NJG63FY2.js";
1217
1224
  import {
1218
1225
  extractJsonCandidates
1219
1226
  } from "./chunk-YBA52OKG.js";
1227
+ import {
1228
+ attributeRawExcerpts
1229
+ } from "./chunk-IUGOGDCP.js";
1220
1230
  import {
1221
1231
  engramRecallSearchOptionsMcpProperty
1222
1232
  } from "./chunk-CQ3IG3GZ.js";
1223
1233
  import {
1224
1234
  delegateExtractionForceFlush
1225
1235
  } from "./chunk-RMMA44HE.js";
1226
- import {
1227
- handleSupportPassportOwnerHttp
1228
- } from "./chunk-DFZYZOLH.js";
1229
- import {
1230
- SupportPassportError,
1231
- buildSupportPassportPublicRequestHandler
1232
- } from "./chunk-QWWHYBPT.js";
1233
1236
  import {
1234
1237
  ObserveTranscriptPersister,
1235
1238
  observeTranscriptSessionKey
1236
1239
  } from "./chunk-TB6VFEHQ.js";
1237
1240
  import {
1238
1241
  splitCanonicalWriteRequest
1239
- } from "./chunk-UMEUU66X.js";
1242
+ } from "./chunk-IK7NPYYU.js";
1240
1243
  import {
1241
1244
  buildWithBriefingLocation,
1242
1245
  daySummaryAutoOptions,
@@ -1273,10 +1276,10 @@ import {
1273
1276
  } from "./chunk-TOSPNM4T.js";
1274
1277
  import {
1275
1278
  createOfflineSyncManifestStream
1276
- } from "./chunk-T4BT4FQN.js";
1279
+ } from "./chunk-ZYP4YEEI.js";
1277
1280
  import {
1278
1281
  peerManifestRevision
1279
- } from "./chunk-FEUWI5QH.js";
1282
+ } from "./chunk-HHPY5SSE.js";
1280
1283
  import {
1281
1284
  offlineSyncStorageForSnapshot
1282
1285
  } from "./chunk-QXTKN25V.js";
@@ -1303,7 +1306,7 @@ import {
1303
1306
  lastRecognizedCitationMarker,
1304
1307
  stripCitationForTemplate,
1305
1308
  stripRecognizedCitations
1306
- } from "./chunk-L272A5QW.js";
1309
+ } from "./chunk-YYDUBGUF.js";
1307
1310
  import {
1308
1311
  STATE_FILE_MAX_DECRYPT_BYTES
1309
1312
  } from "./chunk-BNZAR6PO.js";
@@ -1444,7 +1447,7 @@ import {
1444
1447
  codingContextLocalRoot,
1445
1448
  resolveCodingContextFromOptions,
1446
1449
  setSessionCodingContext
1447
- } from "./chunk-CKELO7Q6.js";
1450
+ } from "./chunk-2OAFPBQB.js";
1448
1451
  import {
1449
1452
  memoryStoreRequestSchema,
1450
1453
  observeRequestSchema,
@@ -1453,13 +1456,13 @@ import {
1453
1456
  retainedCategoryAlias,
1454
1457
  suggestionSubmitRequestSchema,
1455
1458
  validateRequest
1456
- } from "./chunk-ZQUOUPP3.js";
1459
+ } from "./chunk-QJBULLKG.js";
1457
1460
  import {
1458
1461
  exportCapsule
1459
- } from "./chunk-BUKK5SWA.js";
1462
+ } from "./chunk-NKAGGDSL.js";
1460
1463
  import {
1461
1464
  CAPSULE_ID_PATTERN
1462
- } from "./chunk-WEHSQBFR.js";
1465
+ } from "./chunk-AIF6V2OX.js";
1463
1466
  import {
1464
1467
  buildActionConfidenceInputFromOptions,
1465
1468
  evaluateActionConfidence,
@@ -1495,10 +1498,10 @@ import {
1495
1498
  buildOfflineSyncSnapshotFromBase,
1496
1499
  normalizeOfflineSyncChangeset,
1497
1500
  readOfflineSyncFileContentChunk
1498
- } from "./chunk-CLVILSBR.js";
1501
+ } from "./chunk-DNXQVCIC.js";
1499
1502
  import {
1500
1503
  storageBackedIndexStoreIo
1501
- } from "./chunk-5BE3FLKL.js";
1504
+ } from "./chunk-R3UQIS3F.js";
1502
1505
  import {
1503
1506
  compileOfflineSyncExcludeGlobs
1504
1507
  } from "./chunk-63LFM77Z.js";
@@ -5254,7 +5257,7 @@ var SemanticConsolidationCoordinator = class {
5254
5257
  const messages = [
5255
5258
  {
5256
5259
  role: "system",
5257
- content: operatorAwareEnabled ? 'You are a memory consolidation system. Return ONLY a JSON object with two keys, "operator" and "output". The "operator" value MUST be one of the exact strings "merge", "update", or "split" \u2014 never a pipe-separated placeholder, never prose. The "output" value is the canonical memory text.' : "You are a memory consolidation system. Output only the consolidated memory text."
5260
+ content: operatorAwareEnabled ? 'You are a memory consolidation system. Return ONLY a JSON object with an "operator" key and either "output" or, for split, "outputs". The "operator" value MUST be one of the exact strings "merge", "update", or "split" \u2014 never a pipe-separated placeholder, never prose. "output" is the canonical memory text; "outputs" is an array with one canonical memory text per separated fact.' : "You are a memory consolidation system. Output only the consolidated memory text."
5258
5261
  },
5259
5262
  { role: "user", content: prompt }
5260
5263
  ];
@@ -5281,20 +5284,20 @@ var SemanticConsolidationCoordinator = class {
5281
5284
  result.errors++;
5282
5285
  continue;
5283
5286
  }
5284
- let canonicalContent;
5287
+ let canonicalOutputs;
5285
5288
  let operator;
5286
5289
  if (operatorAwareEnabled) {
5287
5290
  const parsed = parseOperatorAwareConsolidationResponse(
5288
5291
  response.content,
5289
5292
  cluster
5290
5293
  );
5291
- canonicalContent = parsed.output;
5294
+ canonicalOutputs = parsed.outputs;
5292
5295
  operator = parsed.operator;
5293
5296
  } else {
5294
- canonicalContent = parseConsolidationResponse(response.content);
5297
+ canonicalOutputs = [parseConsolidationResponse(response.content)];
5295
5298
  operator = chooseConsolidationOperator(cluster);
5296
5299
  }
5297
- cluster.canonicalContent = canonicalContent;
5300
+ cluster.canonicalContent = canonicalOutputs.join("\n\n");
5298
5301
  const sorted = [...cluster.memories].sort(
5299
5302
  (a, b) => new Date(b.frontmatter.created).getTime() - new Date(a.frontmatter.created).getTime()
5300
5303
  );
@@ -5306,34 +5309,40 @@ var SemanticConsolidationCoordinator = class {
5306
5309
  const entry = await targetStorage.snapshotForProvenance(m.path);
5307
5310
  if (entry) derivedFromEntries.push(entry);
5308
5311
  }
5309
- const canonicalEnvelope = composeMemoryEnvelope(
5310
- {
5311
- content: canonicalContent,
5312
- category: newest.frontmatter.category,
5313
- confidence: newest.frontmatter.confidence,
5314
- tags: [
5315
- ...new Set(
5316
- cluster.memories.flatMap((m) => m.frontmatter.tags ?? [])
5317
- )
5318
- ]
5319
- },
5320
- { source: "semantic-consolidation" },
5321
- { salvage: true }
5322
- );
5323
- if (canonicalEnvelope.salvageNotes.length > 0) {
5324
- log.warn(`semantic-consolidation write salvaged invalid fields: ${canonicalEnvelope.salvageNotes.join("; ")}`);
5325
- }
5326
- const { id: canonicalId, tombstoneBlocked: canonicalBlocked } = await targetStorage.writeSealedMemory(
5327
- canonicalEnvelope,
5328
- {
5329
- actor: "semantic-consolidation",
5330
- lineage: lineageIds,
5331
- derivedFrom: derivedFromEntries.length > 0 ? derivedFromEntries : void 0,
5332
- derivedVia: operator
5312
+ const canonicalIds = [];
5313
+ let canonicalBlocked = false;
5314
+ for (const canonicalContent of canonicalOutputs) {
5315
+ const canonicalEnvelope = composeMemoryEnvelope(
5316
+ {
5317
+ content: canonicalContent,
5318
+ category: newest.frontmatter.category,
5319
+ confidence: newest.frontmatter.confidence,
5320
+ tags: [
5321
+ ...new Set(
5322
+ cluster.memories.flatMap((m) => m.frontmatter.tags ?? [])
5323
+ )
5324
+ ]
5325
+ },
5326
+ { source: "semantic-consolidation" },
5327
+ { salvage: true }
5328
+ );
5329
+ if (canonicalEnvelope.salvageNotes.length > 0) {
5330
+ log.warn(`semantic-consolidation write salvaged invalid fields: ${canonicalEnvelope.salvageNotes.join("; ")}`);
5333
5331
  }
5334
- );
5332
+ const written = await targetStorage.writeSealedMemory(
5333
+ canonicalEnvelope,
5334
+ {
5335
+ actor: "semantic-consolidation",
5336
+ lineage: lineageIds,
5337
+ derivedFrom: derivedFromEntries.length > 0 ? derivedFromEntries : void 0,
5338
+ derivedVia: operator
5339
+ }
5340
+ );
5341
+ canonicalIds.push(written.id);
5342
+ if (written.tombstoneBlocked) canonicalBlocked = true;
5343
+ }
5335
5344
  if (canonicalBlocked) {
5336
- log.info(`[semantic-consolidation] cluster in "${cluster.category}" tombstone-blocked \u2014 keeping ${cluster.memories.length} source(s) active (pending_review ${canonicalId})`);
5345
+ log.info(`[semantic-consolidation] cluster in "${cluster.category}" tombstone-blocked \u2014 keeping ${cluster.memories.length} source(s) active (pending_review ${canonicalIds.join(", ")})`);
5337
5346
  continue;
5338
5347
  }
5339
5348
  canonicalWriteCompleted = true;
@@ -5344,7 +5353,7 @@ var SemanticConsolidationCoordinator = class {
5344
5353
  const archiveResult = await targetStorage.archiveMemory(m, {
5345
5354
  actor: "semantic-consolidation",
5346
5355
  reasonCode: "semantic-consolidation",
5347
- relatedMemoryIds: [canonicalId]
5356
+ relatedMemoryIds: canonicalIds
5348
5357
  });
5349
5358
  if (archiveResult) {
5350
5359
  await this.deps.removeContentHashForMemory(
@@ -5381,7 +5390,7 @@ var SemanticConsolidationCoordinator = class {
5381
5390
  }
5382
5391
  }
5383
5392
  log.info(
5384
- `[semantic-consolidation] consolidated ${cluster.memories.length} memories \u2192 ${canonicalId}`
5393
+ `[semantic-consolidation] consolidated ${cluster.memories.length} memories \u2192 ${canonicalIds.join(", ")}`
5385
5394
  );
5386
5395
  } catch (err) {
5387
5396
  log.warn(
@@ -11398,6 +11407,7 @@ var ExtractionPersistCoordinator = class {
11398
11407
  async persistExtractionPass(finalization, result, storage, threadIdForExtraction, sourceContext, baseNamespace, scopeProfileWritePlan, sourceText, graphCaps = resolveGraphConstructionCapabilities(this.deps.config), lifecycleCaps = resolveMemoryLifecycleCapabilities(this.deps.config)) {
11399
11408
  const citationEnabled = resolvePipelineProcessingCapabilities(this.deps.config).inlineSourceAttribution === true;
11400
11409
  const citationTemplate = this.deps.config.inlineSourceAttributionFormat;
11410
+ const citationHistory = this.deps.config.inlineSourceAttributionFormatHistory;
11401
11411
  const factDedupEnabled = resolveRecallAuxiliaryCapabilities(this.deps.config).factDeduplication;
11402
11412
  const harmonicConstructionEnabled = resolveCapabilities(this.deps.config).harmonicRetrieval;
11403
11413
  const harmonicAnchorsEnabled = resolveConsolidationCapabilities(this.deps.config).abstractionAnchors;
@@ -11406,12 +11416,12 @@ var ExtractionPersistCoordinator = class {
11406
11416
  const harmonicSourceInsertedAtBase = Date.now();
11407
11417
  let harmonicSourceOrder = 0;
11408
11418
  const promotedCopyProbe = createBatchPromotedCopyProbe(this.deps.config, this.deps.getStorageRouter, scopeProfileWritePlan);
11409
- const normalizeStoredHashSource2 = (raw) => normalizeStoredHashSource(raw, citationEnabled, citationTemplate);
11419
+ const normalizeStoredHashSource2 = (raw) => normalizeStoredHashSource(raw, citationEnabled, citationTemplate, citationHistory);
11410
11420
  const citationContextBase = citationEnabled ? {
11411
11421
  agent: sourceContext?.principal,
11412
11422
  session: sourceContext?.sessionKey
11413
11423
  } : {};
11414
- const applyInlineCitation2 = (content) => applyInlineCitation(content, citationEnabled, citationTemplate, citationContextBase);
11424
+ const applyInlineCitation2 = (content) => applyInlineCitation(content, citationEnabled, citationTemplate, citationContextBase, citationHistory);
11415
11425
  const persistedIds = [];
11416
11426
  const memoryPathById = /* @__PURE__ */ new Map();
11417
11427
  const anchorSnapshots = new ExtractionAnchorSnapshot({
@@ -11507,7 +11517,7 @@ var ExtractionPersistCoordinator = class {
11507
11517
  (target) => target.target !== "serverShared" && autoTargets.has(target.target) && target.authorized && target.namespace
11508
11518
  );
11509
11519
  if (targets.length === 0) return [];
11510
- const rawContent = citationEnabled && hasCitationForTemplate(options.content, citationTemplate) ? stripCitationForTemplate(options.content, citationTemplate) : options.content;
11520
+ const rawContent = citationEnabled && hasCitationForTemplate(options.content, citationTemplate, citationHistory) ? stripCitationForTemplate(options.content, citationTemplate, citationHistory) : options.content;
11511
11521
  const citedContent = applyInlineCitation2(rawContent);
11512
11522
  const sanitizedBase = sanitizeMemoryContent(rawContent);
11513
11523
  const writtenCopyIds = [];
@@ -11661,7 +11671,7 @@ var ExtractionPersistCoordinator = class {
11661
11671
  const sharedStorage = await this.deps.getStorageRouter().storageFor(
11662
11672
  this.deps.config.sharedNamespace
11663
11673
  );
11664
- const rawContent = citationEnabled && hasCitationForTemplate(options.content, citationTemplate) ? stripCitationForTemplate(options.content, citationTemplate) : options.content;
11674
+ const rawContent = citationEnabled && hasCitationForTemplate(options.content, citationTemplate, citationHistory) ? stripCitationForTemplate(options.content, citationTemplate, citationHistory) : options.content;
11665
11675
  const citedContent = applyInlineCitation2(rawContent);
11666
11676
  const sanitizedBase = sanitizeMemoryContent(rawContent);
11667
11677
  const sharedPromotionEnvelope = composeSalvagedExtractionEnvelope(
@@ -11861,7 +11871,7 @@ var ExtractionPersistCoordinator = class {
11861
11871
  const backfillTemporalBoundsOnPromotionCopies = async (args) => {
11862
11872
  const hasExtractedStart = args.bounds.validFrom !== void 0 && args.bounds.eventTimeSource === "extracted";
11863
11873
  if (!args.bounds.invalidAt && !hasExtractedStart) return;
11864
- const rawContent = citationEnabled && hasCitationForTemplate(args.content, citationTemplate) ? stripCitationForTemplate(args.content, citationTemplate) : args.content;
11874
+ const rawContent = citationEnabled && hasCitationForTemplate(args.content, citationTemplate, citationHistory) ? stripCitationForTemplate(args.content, citationTemplate, citationHistory) : args.content;
11865
11875
  const sanitizedBase = sanitizeMemoryContent(rawContent);
11866
11876
  const probed = args.category === "fact" && isMemoryCategory(args.category) ? probeSalvageSurvivingFields({
11867
11877
  content: rawContent,
@@ -12280,7 +12290,7 @@ var ExtractionPersistCoordinator = class {
12280
12290
  } catch (redactionErr) {
12281
12291
  log.warn(`extraction: redaction-rule gate failed open: ${redactionErr}`);
12282
12292
  }
12283
- const canonicalContentForHash = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate) ? stripCitationForTemplate(fact.content, citationTemplate) : fact.content;
12293
+ const canonicalContentForHash = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate, citationHistory) ? stripCitationForTemplate(fact.content, citationTemplate, citationHistory) : fact.content;
12284
12294
  const contentHashDedupKey = writeCategory === "procedure" ? buildProcedurePersistBody(fact.content, fact.procedureSteps) : canonicalContentForHash;
12285
12295
  const importance = scoreImportance(
12286
12296
  fact.content,
@@ -12549,7 +12559,7 @@ var ExtractionPersistCoordinator = class {
12549
12559
  }
12550
12560
  if (chunkResult.chunked && chunkResult.chunks.length > 1) {
12551
12561
  const memoryKind2 = resolvePresentationCapabilities(this.deps.config).episodeNoteMode ? classifyMemoryKind(fact.content, fact.tags ?? [], writeCategory) : void 0;
12552
- const rawChunkedContent = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate) ? stripCitationForTemplate(fact.content, citationTemplate) : fact.content;
12562
+ const rawChunkedContent = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate, citationHistory) ? stripCitationForTemplate(fact.content, citationTemplate, citationHistory) : fact.content;
12553
12563
  const citedChunkedContent = applyInlineCitation2(rawChunkedContent);
12554
12564
  const parentWriteEnvelope = composeSalvagedExtractionEnvelope(
12555
12565
  {
@@ -12748,7 +12758,7 @@ var ExtractionPersistCoordinator = class {
12748
12758
  harmonicFact
12749
12759
  });
12750
12760
  try {
12751
- const canonicalChunkedContent = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate) ? stripCitationForTemplate(fact.content, citationTemplate) : fact.content;
12761
+ const canonicalChunkedContent = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate, citationHistory) ? stripCitationForTemplate(fact.content, citationTemplate, citationHistory) : fact.content;
12752
12762
  if (!tombstoneBlocked2) {
12753
12763
  await this.deps.addContentHashDedup(targetStorage, canonicalChunkedContent);
12754
12764
  }
@@ -16385,9 +16395,10 @@ ${rows.join("\n")}
16385
16395
  return null;
16386
16396
  }
16387
16397
  const section = buildCalibrationRecallSection(
16388
- rules.slice(0, this.deps.config.calibrationMaxRulesPerRecall),
16398
+ rules,
16389
16399
  retrievalQuery,
16390
- this.deps.config.calibrationMaxChars
16400
+ this.deps.config.calibrationMaxChars,
16401
+ this.deps.config.calibrationMaxRulesPerRecall
16391
16402
  );
16392
16403
  recordRecallSectionMetric({
16393
16404
  section: "calibrationRules",
@@ -20786,14 +20797,13 @@ async function ingestReplayBatchBuffered(deps, bySession, options) {
20786
20797
  };
20787
20798
  const admissionKey = options.bufferAdmissionIdempotencyKey?.trim();
20788
20799
  const batches = [...bySession].map(([bufferKey, sessionTurns]) => ({ bufferKey, turns: sessionTurns.map(pin) }));
20789
- const outcomes = admissionKey ? await deps.buffer.addTurnsBoundedForObserveReplay(batches, admissionKey) : await deps.buffer.addTurnsBounded(batches);
20800
+ let refusal;
20801
+ const onRefused = (reason) => {
20802
+ refusal = reason;
20803
+ };
20804
+ const outcomes = admissionKey ? await deps.buffer.addTurnsBoundedForObserveReplay(batches, admissionKey, onRefused) : await deps.buffer.addTurnsBounded(batches, onRefused);
20790
20805
  if (outcomes === "duplicate") return;
20791
- if (outcomes === null) {
20792
- const refusedKey = batches.find((batch) => batch.turns.length > 0)?.bufferKey ?? "unknown";
20793
- throw new ReplayAdmissionRefusedError(
20794
- `durable observe capture refused: extraction buffer at entry capacity for batch containing ${refusedKey}`
20795
- );
20796
- }
20806
+ if (outcomes === null) throw replayRefusal(refusal, batches);
20797
20807
  await deps.buffer.flushPendingSave({ throwOnFailure: true });
20798
20808
  if (options.archiveLcm !== false && deps.lcmEngine?.enabled) {
20799
20809
  for (const [bufferKey, sessionTurns] of bySession) {
@@ -20815,6 +20825,18 @@ async function ingestReplayBatchBuffered(deps, bySession, options) {
20815
20825
  }
20816
20826
  }
20817
20827
  }
20828
+ function replayRefusal(refusal, batches) {
20829
+ if (refusal?.reason === "session_turn_cap") {
20830
+ return new ReplayAdmissionRefusedError(
20831
+ `durable observe capture refused: session ${refusal.bufferKey} holds the per-session turn cap (${refusal.maxTurnsPerSession}) of unextracted turns; retry after extraction drains it`
20832
+ );
20833
+ }
20834
+ const refusedKey = batches.find((batch) => batch.turns.length > 0)?.bufferKey ?? "unknown";
20835
+ const cap2 = refusal?.reason === "session_entry_cap" ? ` (${refusal.maxSessionEntries})` : "";
20836
+ return new ReplayAdmissionRefusedError(
20837
+ `durable observe capture refused: extraction buffer at entry capacity, session-entry cap${cap2} full for batch containing ${refusedKey}`
20838
+ );
20839
+ }
20818
20840
 
20819
20841
  // src/orchestration/extraction-drain.ts
20820
20842
  import { createHash as createHash9 } from "crypto";
@@ -23682,7 +23704,7 @@ var OrchestratorInitCoordinator = class {
23682
23704
  if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
23683
23705
  if (lifecycleCaps.lifecyclePolicy && resolveQmdCapabilities(this.deps.config).qmdTierMigration) {
23684
23706
  try {
23685
- const { runFirstStartMigration } = await import("./first-start-migration-BPVJ4HJQ.js");
23707
+ const { runFirstStartMigration } = await import("./first-start-migration-PPPP54X6.js");
23686
23708
  if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
23687
23709
  const result = await runFirstStartMigration({
23688
23710
  storage: this.deps.storage,
@@ -23706,7 +23728,7 @@ var OrchestratorInitCoordinator = class {
23706
23728
  if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
23707
23729
  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)) {
23708
23730
  try {
23709
- const { startWearablesAutoSync } = await import("./auto-sync-L3M4RKJD.js");
23731
+ const { startWearablesAutoSync } = await import("./auto-sync-ACP5U5A3.js");
23710
23732
  if (signal.aborted || !this.isCurrentStartupEpoch(epoch)) return;
23711
23733
  this.deps.wearablesAutoSyncHandle = startWearablesAutoSync(
23712
23734
  {
@@ -26675,9 +26697,8 @@ ${section}`;
26675
26697
  );
26676
26698
  if (configuredMaxContext && configuredMaxContext > modelInfo.contextWindow) {
26677
26699
  log.warn(
26678
- `Local LLM context mismatch: engram configured for ${configuredMaxContext.toLocaleString()} tokens, but ${modelInfo.id} only supports ${modelInfo.contextWindow.toLocaleString()}. Reducing to ${modelInfo.contextWindow.toLocaleString()} to avoid errors.`
26700
+ `Local LLM context mismatch: engram configured for ${configuredMaxContext.toLocaleString()} tokens, but ${modelInfo.id} only supports ${modelInfo.contextWindow.toLocaleString()}. Set localLlmMaxContext to ${modelInfo.contextWindow.toLocaleString()} or lower in your persisted config to avoid context-length errors.`
26679
26701
  );
26680
- this.deps.config.localLlmMaxContext = modelInfo.contextWindow;
26681
26702
  }
26682
26703
  } else {
26683
26704
  log.debug(
@@ -28975,6 +28996,7 @@ var Orchestrator = class {
28975
28996
  );
28976
28997
  this.storage = new StorageManager(config.memoryDir, config.entitySchemas);
28977
28998
  this.storage.citationTemplate = config.inlineSourceAttributionFormat;
28999
+ this.storage.citationTemplateHistory = config.inlineSourceAttributionFormatHistory;
28978
29000
  if (config.defaultNamespace) this.storageRouter.bindCatalogWriteHook(this.storage, config.defaultNamespace);
28979
29001
  this.storage.setVersioningConfig({
28980
29002
  enabled: resolveRecallAuxiliaryCapabilities(config).versioning,
@@ -42253,17 +42275,34 @@ function createBackend(cfg) {
42253
42275
  import fsp3 from "fs/promises";
42254
42276
  import path34 from "path";
42255
42277
  import crypto from "crypto";
42256
- function matchesPatterns(filename, patterns) {
42257
- const lower = filename.toLowerCase();
42258
- for (const pattern of patterns) {
42259
- if (pattern.startsWith("*.")) {
42260
- const ext = pattern.slice(1).toLowerCase();
42261
- if (lower.endsWith(ext)) return true;
42262
- } else if (lower === pattern.toLowerCase()) {
42263
- return true;
42278
+ function globMatches(nameText, patternText) {
42279
+ const name = Array.from(nameText);
42280
+ const pattern = Array.from(patternText);
42281
+ let n = 0;
42282
+ let p = 0;
42283
+ let starP = -1;
42284
+ let starN = 0;
42285
+ while (n < name.length) {
42286
+ const c = pattern[p];
42287
+ if (c === "*") {
42288
+ starP = p++;
42289
+ starN = n;
42290
+ } else if (p < pattern.length && (c === "?" || c === name[n])) {
42291
+ p++;
42292
+ n++;
42293
+ } else if (starP >= 0) {
42294
+ p = starP + 1;
42295
+ n = ++starN;
42296
+ } else {
42297
+ return false;
42264
42298
  }
42265
42299
  }
42266
- return false;
42300
+ while (pattern[p] === "*") p++;
42301
+ return p === pattern.length;
42302
+ }
42303
+ function matchesPatterns(filename, patterns) {
42304
+ const lower = filename.toLowerCase();
42305
+ return patterns.some((pattern) => globMatches(lower, pattern.toLowerCase()));
42267
42306
  }
42268
42307
  async function scanForBinaries(memoryDir, config, manifest) {
42269
42308
  const tracked = new Map(manifest.assets.map((a) => [a.originalPath, a]));
@@ -50821,7 +50860,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
50821
50860
  );
50822
50861
  tierCmd.command("list").description("Summarize tier distribution across all memories").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
50823
50862
  const options = args[0] ?? {};
50824
- const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-FLFKN7Y6.js");
50863
+ const { summarizeTiers, formatTierSummaryText } = await import("./tier-stats-XWJSVEHC.js");
50825
50864
  const summary = await summarizeTiers(orchestrator.storage);
50826
50865
  if (reportHasMachineReadableOutput(options)) {
50827
50866
  console.log(JSON.stringify(summary, null, 2));
@@ -50832,7 +50871,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
50832
50871
  tierCmd.command("explain").description("Explain the tier-transition decision for a single memory").argument("<id>", "Memory id to explain").option("--json", "Emit machine-readable JSON only").action(async (...args) => {
50833
50872
  const idArg = typeof args[0] === "string" ? args[0] : "";
50834
50873
  const options = args[1] ?? {};
50835
- const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-FLFKN7Y6.js");
50874
+ const { explainTierForMemory, formatTierExplainText } = await import("./tier-stats-XWJSVEHC.js");
50836
50875
  try {
50837
50876
  const explain = await explainTierForMemory(
50838
50877
  orchestrator.storage,
@@ -51425,7 +51464,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51425
51464
  }
51426
51465
  }
51427
51466
  if (sourceArchive.endsWith(".enc")) {
51428
- const { isEncryptedCapsuleFile } = await import("./capsule-crypto-GWVG7LGC.js");
51467
+ const { isEncryptedCapsuleFile } = await import("./capsule-crypto-7FJQINUR.js");
51429
51468
  const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
51430
51469
  if (encDetected) {
51431
51470
  throw new Error(
@@ -51433,7 +51472,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51433
51472
  );
51434
51473
  }
51435
51474
  }
51436
- const { mergeCapsule } = await import("./capsule-merge-VHBRF65A.js");
51475
+ const { mergeCapsule } = await import("./capsule-merge-BADOICNP.js");
51437
51476
  const result = await mergeCapsule({
51438
51477
  sourceArchive,
51439
51478
  targetRoot: memoryDir,
@@ -51588,7 +51627,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51588
51627
  const { parseExportBundle } = await import("./transfer/types.js");
51589
51628
  let decryptedBuf;
51590
51629
  try {
51591
- const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-GWVG7LGC.js");
51630
+ const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-7FJQINUR.js");
51592
51631
  decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
51593
51632
  } catch (decErr) {
51594
51633
  const msg = decErr instanceof Error ? decErr.message : String(decErr);
@@ -54554,7 +54593,7 @@ ${peer.notes.split("\n").map((l) => ` ${l}`).join("\n")}`);
54554
54593
  const options = args[0] ?? {};
54555
54594
  const isDryRun = options.dryRun === true;
54556
54595
  const displayName = typeof options.displayName === "string" && options.displayName.length > 0 ? options.displayName : void 0;
54557
- const { migrateFromIdentityAnchor } = await import("./migrate-from-identity-anchor-MJYB6NNN.js");
54596
+ const { migrateFromIdentityAnchor } = await import("./migrate-from-identity-anchor-TZSZXJ6L.js");
54558
54597
  let result;
54559
54598
  try {
54560
54599
  result = await migrateFromIdentityAnchor({
@@ -58282,21 +58321,21 @@ async function runRecallNavigation(deps, request) {
58282
58321
  }
58283
58322
 
58284
58323
  // src/orchestration/extraction-persist-citation.ts
58285
- function normalizeStoredHashSource(raw, citationEnabled, citationTemplate) {
58324
+ function normalizeStoredHashSource(raw, citationEnabled, citationTemplate, citationHistory = []) {
58286
58325
  return ContentHashIndex.normalizeContent(
58287
58326
  sanitizeMemoryContent(
58288
- citationEnabled && hasCitationForTemplate(raw, citationTemplate) ? stripCitationForTemplate(raw, citationTemplate) : raw
58327
+ citationEnabled && hasCitationForTemplate(raw, citationTemplate, citationHistory) ? stripCitationForTemplate(raw, citationTemplate, citationHistory) : raw
58289
58328
  ).text
58290
58329
  );
58291
58330
  }
58292
- function applyInlineCitation(content, citationEnabled, citationTemplate, citationContextBase) {
58331
+ function applyInlineCitation(content, citationEnabled, citationTemplate, citationContextBase, citationHistory = []) {
58293
58332
  if (!citationEnabled) return content;
58294
58333
  if (typeof content !== "string" || content.length === 0) return content;
58295
58334
  const citationContext = {
58296
58335
  ...citationContextBase,
58297
58336
  ts: (/* @__PURE__ */ new Date()).toISOString()
58298
58337
  };
58299
- return attachCitation(content, citationContext, citationTemplate);
58338
+ return attachCitation(content, citationContext, citationTemplate, citationHistory);
58300
58339
  }
58301
58340
 
58302
58341
  // src/orchestration/fact-dedup-window.ts
@@ -62492,6 +62531,7 @@ var AccessRecallSurface = class {
62492
62531
  } : null
62493
62532
  );
62494
62533
  const rawExcerpts = rawExcerptsResult ?? void 0;
62534
+ const pending = [];
62495
62535
  for (const included of coerceIncludedMemories(snapshot)) {
62496
62536
  const memoryPath = included.path;
62497
62537
  if (!memoryPath) continue;
@@ -62502,28 +62542,27 @@ var AccessRecallSurface = class {
62502
62542
  if (!resolved) continue;
62503
62543
  const { memory, baseDir } = resolved;
62504
62544
  seen.add(seenKey);
62505
- results.push(
62506
- this.deps.serializeMemorySummary(
62507
- memory,
62508
- baseDir,
62509
- disclosure,
62510
- // Attach the (possibly empty) raw excerpts to the first raw
62511
- // result; subsequent results do not duplicate the array.
62512
- results.length === 0 ? rawExcerpts : void 0
62513
- )
62514
- );
62545
+ pending.push({ memory, baseDir });
62546
+ }
62547
+ if (pending.length === 0) {
62548
+ for (const memoryId of snapshot.memoryIds) {
62549
+ const memory = await storage.getMemoryById(memoryId);
62550
+ if (!memory || seen.has(memory.path)) continue;
62551
+ seen.add(memory.path);
62552
+ pending.push({ memory, baseDir: storageDir });
62553
+ }
62515
62554
  }
62516
- if (results.length > 0) return results;
62517
- for (const memoryId of snapshot.memoryIds) {
62518
- const memory = await storage.getMemoryById(memoryId);
62519
- if (!memory || seen.has(memory.path)) continue;
62520
- seen.add(memory.path);
62555
+ const attributed = attributeRawExcerpts(
62556
+ pending.map((entry) => entry.memory),
62557
+ rawExcerpts
62558
+ );
62559
+ for (const [index, entry] of pending.entries()) {
62521
62560
  results.push(
62522
62561
  this.deps.serializeMemorySummary(
62523
- memory,
62524
- storageDir,
62562
+ entry.memory,
62563
+ entry.baseDir,
62525
62564
  disclosure,
62526
- results.length === 0 ? rawExcerpts : void 0
62565
+ attributed[index]
62527
62566
  )
62528
62567
  );
62529
62568
  }
@@ -67905,4 +67944,4 @@ export {
67905
67944
  EngramAccessService,
67906
67945
  AccessAdminOpsSurface
67907
67946
  };
67908
- //# sourceMappingURL=chunk-D6BOOYNJ.js.map
67947
+ //# sourceMappingURL=chunk-5YIOUS5T.js.map