@remnic/core 10.0.144 → 10.0.145

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 (329) hide show
  1. package/dist/access-admin-ops-surface.js +163 -161
  2. package/dist/access-cli.js +163 -161
  3. package/dist/access-cli.js.map +1 -1
  4. package/dist/access-extraction-force-flush-preempt.js +163 -161
  5. package/dist/access-extraction-force-flush.js +163 -161
  6. package/dist/access-http-briefing.js +163 -161
  7. package/dist/access-http-query.js +163 -161
  8. package/dist/access-http.js +163 -161
  9. package/dist/access-identity-continuity-surface.js +163 -161
  10. package/dist/access-lcm-surface.js +163 -161
  11. package/dist/access-mcp.js +163 -161
  12. package/dist/access-observe-write-category.js +10 -10
  13. package/dist/access-observe-write-surface.d.ts.map +1 -1
  14. package/dist/access-observe-write-surface.js +163 -161
  15. package/dist/access-offline-manifest.js +6 -6
  16. package/dist/access-operations-batch.js +163 -161
  17. package/dist/access-operations.js +163 -161
  18. package/dist/access-recall-concurrency.js +163 -161
  19. package/dist/access-recall-diagnostics.js +2 -2
  20. package/dist/access-recall-response.js +163 -161
  21. package/dist/access-recall-surface.js +163 -161
  22. package/dist/access-schema.js +9 -9
  23. package/dist/access-service.js +163 -161
  24. package/dist/active-recall.js +28 -28
  25. package/dist/adapters/index.js +4 -4
  26. package/dist/adapters/registry.js +2 -2
  27. package/dist/briefing.js +20 -20
  28. package/dist/buffer-add-turns-bounded.d.ts +27 -0
  29. package/dist/buffer-add-turns-bounded.d.ts.map +1 -0
  30. package/dist/buffer-add-turns-bounded.js +13 -0
  31. package/dist/buffer-admission-idempotency.d.ts +18 -0
  32. package/dist/buffer-admission-idempotency.d.ts.map +1 -0
  33. package/dist/buffer-admission-idempotency.js +18 -0
  34. package/dist/buffer-persistence.d.ts +4 -0
  35. package/dist/buffer-persistence.d.ts.map +1 -1
  36. package/dist/buffer-persistence.js +1 -1
  37. package/dist/buffer-turn-helpers.d.ts.map +1 -1
  38. package/dist/buffer-turn-helpers.js +1 -1
  39. package/dist/buffer-types.d.ts.map +1 -1
  40. package/dist/buffer.d.ts +11 -0
  41. package/dist/buffer.d.ts.map +1 -1
  42. package/dist/buffer.js +14 -9
  43. package/dist/calibration.js +3 -3
  44. package/dist/{capsule-crypto-YO5QJ6L3.js → capsule-crypto-GWVG7LGC.js} +2 -2
  45. package/dist/capsule-crypto-GWVG7LGC.js.map +1 -0
  46. package/dist/causal-behavior.js +2 -2
  47. package/dist/causal-chain.js +2 -2
  48. package/dist/causal-consolidation.js +23 -23
  49. package/dist/causal-retrieval.js +2 -2
  50. package/dist/causal-trajectory-graph.js +2 -2
  51. package/dist/causal-trajectory.js +1 -1
  52. package/dist/{chunk-AOZYOS4G.js → chunk-2UOU6CZZ.js} +2 -2
  53. package/dist/{chunk-AZFQXYIJ.js → chunk-33VVVP57.js} +9 -2
  54. package/dist/{chunk-AZFQXYIJ.js.map → chunk-33VVVP57.js.map} +1 -1
  55. package/dist/{chunk-BFPF5N3H.js → chunk-4RASUAN3.js} +4 -4
  56. package/dist/{chunk-MZCGHPIJ.js → chunk-4XINO77L.js} +2 -2
  57. package/dist/{chunk-WVV54HL2.js → chunk-4Y4LPKFV.js} +7 -7
  58. package/dist/chunk-5EP2V675.js +60 -0
  59. package/dist/chunk-5EP2V675.js.map +1 -0
  60. package/dist/{chunk-2IMKMMUS.js → chunk-5JW2QIFH.js} +11 -11
  61. package/dist/{chunk-MPQQIHA7.js → chunk-5LL2X5SO.js} +2 -2
  62. package/dist/{chunk-VEPT6DXJ.js → chunk-63MKTHYT.js} +5 -5
  63. package/dist/{chunk-CBJRI6VJ.js → chunk-64TIBZPZ.js} +2 -2
  64. package/dist/{chunk-LL7WIK2Z.js → chunk-6NPLVV6M.js} +2 -2
  65. package/dist/{chunk-GOZXQNIM.js → chunk-6P7U3HWG.js} +3 -3
  66. package/dist/{chunk-PKPW7MXT.js → chunk-7TDJZV2S.js} +2 -2
  67. package/dist/{chunk-B72X3KWL.js → chunk-7TY5ZHFA.js} +2 -2
  68. package/dist/chunk-7ZFB4VZS.js +73 -0
  69. package/dist/chunk-7ZFB4VZS.js.map +1 -0
  70. package/dist/{chunk-B4I37XX6.js → chunk-ADBON4FI.js} +14 -14
  71. package/dist/{chunk-MEALRZYB.js → chunk-BKR2YCQ5.js} +2 -2
  72. package/dist/{chunk-R45L4TV6.js → chunk-BUKK5SWA.js} +6 -6
  73. package/dist/{chunk-2JAT4S7N.js → chunk-CIEEYVUB.js} +2 -2
  74. package/dist/{chunk-6CSWINXA.js → chunk-D3ZISMKY.js} +14 -14
  75. package/dist/{chunk-DLX277NS.js → chunk-DBNZYQCL.js} +2 -2
  76. package/dist/{chunk-2LQUPEWF.js → chunk-DCLOMXQL.js} +25 -22
  77. package/dist/chunk-DCLOMXQL.js.map +1 -0
  78. package/dist/{chunk-MIG4KRYU.js → chunk-DK3T3Q6A.js} +9 -9
  79. package/dist/{chunk-JVSHXYOO.js → chunk-E7WMDXAW.js} +2 -2
  80. package/dist/{chunk-6MEQHJTF.js → chunk-ENPJX3BB.js} +3 -3
  81. package/dist/{chunk-XGDWR2L6.js → chunk-ETUMOYGL.js} +2 -2
  82. package/dist/{chunk-RQBYC7EK.js → chunk-F4ZHKDBW.js} +2 -2
  83. package/dist/{chunk-6DHSEJIO.js → chunk-FBV4QGXT.js} +2 -2
  84. package/dist/{chunk-OYHGCAGQ.js → chunk-FZ6QUOTL.js} +2 -2
  85. package/dist/{chunk-A3EWNU5V.js → chunk-G2TK5YYU.js} +2 -2
  86. package/dist/{chunk-RVUD4WN3.js → chunk-G3ZUQZGM.js} +2 -2
  87. package/dist/{chunk-CBTERRF5.js → chunk-GA3Y7GZR.js} +2 -2
  88. package/dist/{chunk-AWKD2A73.js → chunk-GB442ZFG.js} +8 -8
  89. package/dist/{chunk-RSRHWNNM.js → chunk-GDREJ32D.js} +3 -3
  90. package/dist/{chunk-VEFGHRKV.js → chunk-GKL6QYZO.js} +1 -1
  91. package/dist/{chunk-Y6IRNAWT.js → chunk-GQDO6KHO.js} +2 -2
  92. package/dist/{chunk-FYH62SF3.js → chunk-GTW6GPQU.js} +3 -3
  93. package/dist/{chunk-M43GO34S.js → chunk-HASIFVWH.js} +2 -2
  94. package/dist/{chunk-VAVCFMMQ.js → chunk-IBPE3Q5M.js} +2 -2
  95. package/dist/{chunk-YLTU2DC4.js → chunk-IHCXMYSE.js} +2 -2
  96. package/dist/{chunk-WWQMZBDI.js → chunk-IJVU4ILJ.js} +4 -4
  97. package/dist/{chunk-N7LYEA3K.js → chunk-JOQZRIL4.js} +2 -2
  98. package/dist/{chunk-BNQJKWWZ.js → chunk-K3FH3LAQ.js} +4 -4
  99. package/dist/{chunk-EDGWAJLS.js → chunk-KBMJWNSY.js} +2 -2
  100. package/dist/{chunk-RHQSAXN3.js → chunk-KCU2ZWBS.js} +2 -2
  101. package/dist/{chunk-JVNGFQJN.js → chunk-KJ3Z7JHF.js} +1 -1
  102. package/dist/{chunk-JVNGFQJN.js.map → chunk-KJ3Z7JHF.js.map} +1 -1
  103. package/dist/{chunk-NLSMLRH4.js → chunk-KYZFW4LW.js} +2 -2
  104. package/dist/{chunk-L6CMR5OI.js → chunk-L2DACC2T.js} +2 -2
  105. package/dist/{chunk-3KQPFIVV.js → chunk-LMFINE37.js} +2 -2
  106. package/dist/{chunk-NWS4I4K7.js → chunk-LS5VJO5O.js} +2 -2
  107. package/dist/{chunk-OV3XHQAB.js → chunk-LYSE5FNF.js} +43 -48
  108. package/dist/chunk-LYSE5FNF.js.map +1 -0
  109. package/dist/{chunk-DC55RIEZ.js → chunk-M4IEZGCK.js} +4 -4
  110. package/dist/{chunk-FJVWKIDV.js → chunk-MEYPQLXV.js} +2 -2
  111. package/dist/{chunk-AGJJTD3Q.js → chunk-MONIOXEG.js} +2 -2
  112. package/dist/{chunk-5IGWEYNV.js → chunk-MVTMKFBW.js} +3 -3
  113. package/dist/{chunk-OYUTSLBU.js → chunk-ODHFX5JX.js} +3 -3
  114. package/dist/{chunk-I3UBDUHO.js → chunk-OMPX3KLG.js} +2 -2
  115. package/dist/{chunk-BXLOS5AJ.js → chunk-OWHERGF2.js} +2 -2
  116. package/dist/{chunk-QJJURIZV.js → chunk-P4YYUDR5.js} +3 -3
  117. package/dist/{chunk-77SYM565.js → chunk-PDVEY4QS.js} +2 -2
  118. package/dist/{chunk-LE27GU4M.js → chunk-QCJ7Q5BM.js} +2 -2
  119. package/dist/{chunk-74BX5NCU.js → chunk-QFBBSKEU.js} +2 -2
  120. package/dist/{chunk-YCNSMVWG.js → chunk-SDGD6MYV.js} +64 -3
  121. package/dist/chunk-SDGD6MYV.js.map +1 -0
  122. package/dist/{chunk-QPOWOQYH.js → chunk-SEIFDQ6U.js} +6 -6
  123. package/dist/{chunk-XUKBX3GO.js → chunk-SV6OLWPF.js} +8 -8
  124. package/dist/{chunk-JY3WATTF.js → chunk-T3M5KJRV.js} +2 -2
  125. package/dist/{chunk-YWXFO7G2.js → chunk-TFHL4WWY.js} +2 -2
  126. package/dist/{chunk-4Y26S76X.js → chunk-TRFSTCQK.js} +14 -2
  127. package/dist/chunk-TRFSTCQK.js.map +1 -0
  128. package/dist/{chunk-POXJ3KXJ.js → chunk-U62EINFH.js} +3 -3
  129. package/dist/{chunk-WZ55LEUN.js → chunk-UIFWZMO7.js} +22 -22
  130. package/dist/{chunk-DQEMWVMT.js → chunk-UVYI6VIX.js} +1 -1
  131. package/dist/{chunk-2S4XW47C.js → chunk-UWP6PGWN.js} +2 -2
  132. package/dist/{chunk-2VS3DAXE.js → chunk-V3D2OOVE.js} +2 -2
  133. package/dist/{chunk-UH3FPX3L.js → chunk-W7K5BP3M.js} +2 -2
  134. package/dist/{chunk-MFDEEOOZ.js → chunk-WN2DASTS.js} +4 -4
  135. package/dist/{chunk-TFA6HPOA.js → chunk-WQUGCOKF.js} +4 -4
  136. package/dist/{chunk-IJBOJJVS.js → chunk-X2FEUBKD.js} +2 -2
  137. package/dist/{chunk-XF2QQQXO.js → chunk-XIWRF7TG.js} +2 -2
  138. package/dist/{chunk-UC3KG7KX.js → chunk-YGPRFYV6.js} +3 -3
  139. package/dist/{chunk-E23BTVB2.js → chunk-YIOP7IFD.js} +2 -2
  140. package/dist/{chunk-EZ25VE3G.js → chunk-YNDLCWXS.js} +4 -4
  141. package/dist/{chunk-FWDVW2BD.js → chunk-Z2OKWO35.js} +328 -318
  142. package/dist/chunk-Z2OKWO35.js.map +1 -0
  143. package/dist/{chunk-FAPJG3OG.js → chunk-ZDZJNXL6.js} +4 -4
  144. package/dist/cli.js +163 -161
  145. package/dist/coding/export-okf-codegraph.js +19 -19
  146. package/dist/coding/pre-action-gate.js +2 -2
  147. package/dist/compounding/engine.js +21 -21
  148. package/dist/config.js +28 -28
  149. package/dist/connectors/codex-materialize-runner.js +20 -20
  150. package/dist/connectors/index.js +20 -20
  151. package/dist/convergence-refresh.js +22 -22
  152. package/dist/conversation-index/backend.js +2 -2
  153. package/dist/corpus-watermark.js +22 -22
  154. package/dist/dashboard-runtime.js +2 -2
  155. package/dist/deep-recall-http-glue.js +10 -10
  156. package/dist/deep-recall.js +2 -2
  157. package/dist/entity-retrieval.js +22 -22
  158. package/dist/event-order-recall.js +4 -4
  159. package/dist/explicit-capture.js +163 -161
  160. package/dist/extraction.js +28 -28
  161. package/dist/{graph-edge-decay-EKWXRBWF.js → graph-edge-decay-OEX5OGMI.js} +5 -5
  162. package/dist/graph-edge-decay-OEX5OGMI.js.map +1 -0
  163. package/dist/graph-jsonl.js +3 -3
  164. package/dist/graph-snapshot.js +3 -3
  165. package/dist/graph.js +2 -2
  166. package/dist/harmonic-retrieval.js +20 -20
  167. package/dist/index.js +216 -214
  168. package/dist/lcm/engine.js +2 -2
  169. package/dist/lcm/index.js +2 -2
  170. package/dist/local-llm.js +3 -3
  171. package/dist/location/index.js +21 -21
  172. package/dist/maintenance/memory-governance.js +20 -20
  173. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +20 -20
  174. package/dist/maintenance/rebuild-memory-projection-runner.js +22 -22
  175. package/dist/maintenance/rebuild-memory-projection.js +21 -21
  176. package/dist/memory-browse.js +6 -6
  177. package/dist/namespaces/migrate.js +21 -21
  178. package/dist/namespaces/search.js +9 -9
  179. package/dist/namespaces/storage.js +20 -20
  180. package/dist/offline-sync-changeset-generations.js +3 -3
  181. package/dist/offline-sync-embedding-generation.js +2 -2
  182. package/dist/offline-sync-snapshot-stream.js +6 -6
  183. package/dist/offline-sync.js +5 -5
  184. package/dist/operator-doctor-corpus.js +23 -23
  185. package/dist/operator-toolkit.js +37 -37
  186. package/dist/orchestration/backlog-scheduler.js +164 -162
  187. package/dist/orchestration/backlog-scheduler.js.map +1 -1
  188. package/dist/orchestration/buffer-drain-runner.js +164 -162
  189. package/dist/orchestration/maintenance.js +31 -31
  190. package/dist/orchestration/turn-ingestion-buffered.d.ts +13 -0
  191. package/dist/orchestration/turn-ingestion-buffered.d.ts.map +1 -0
  192. package/dist/orchestration/turn-ingestion.d.ts +2 -2
  193. package/dist/orchestration/turn-ingestion.d.ts.map +1 -1
  194. package/dist/orchestrator.js +163 -161
  195. package/dist/qmd.js +3 -3
  196. package/dist/recall-explain-renderer.js +3 -3
  197. package/dist/recall-navigate-access.js +2 -2
  198. package/dist/recall-navigate-disclosure.js +2 -2
  199. package/dist/recall-navigate.js +2 -2
  200. package/dist/recall-navigation.js +163 -161
  201. package/dist/recall-state-view-admission.js +6 -6
  202. package/dist/recall-why-service.js +6 -6
  203. package/dist/recall-xray-cli.js +4 -4
  204. package/dist/recall-xray-renderer.js +3 -3
  205. package/dist/recall-xray.js +2 -2
  206. package/dist/resume-bundles.js +29 -29
  207. package/dist/search/factory.js +8 -8
  208. package/dist/search/index.js +12 -12
  209. package/dist/semantic-consolidation.js +21 -21
  210. package/dist/semantic-rule-promotion.js +20 -20
  211. package/dist/semantic-rule-verifier.js +20 -20
  212. package/dist/source-agent-qualifier.js +23 -23
  213. package/dist/standup/build.js +20 -20
  214. package/dist/storage/buffer-drain-claims.js +2 -2
  215. package/dist/storage/buffer-session-files.d.ts +4 -0
  216. package/dist/storage/buffer-session-files.d.ts.map +1 -1
  217. package/dist/storage/buffer-session-files.js +2 -2
  218. package/dist/storage.d.ts +1 -0
  219. package/dist/storage.d.ts.map +1 -1
  220. package/dist/storage.js +20 -20
  221. package/dist/summarizer.js +4 -4
  222. package/dist/support-passport/index.js +4 -4
  223. package/dist/transfer/autodetect.js +1 -1
  224. package/dist/transfer/backup.js +2 -2
  225. package/dist/transfer/capsule-export.js +3 -3
  226. package/dist/transfer/capsule-import.js +2 -2
  227. package/dist/transfer/export-okf.js +21 -21
  228. package/dist/types.d.ts +2 -0
  229. package/dist/types.d.ts.map +1 -1
  230. package/dist/types.js +1 -1
  231. package/dist/verified-recall.js +20 -20
  232. package/dist/who-knows-cli.js +21 -21
  233. package/dist/who-knows.js +20 -20
  234. package/package.json +2 -2
  235. package/src/access-observe-write-surface.ts +10 -0
  236. package/src/buffer-add-turns-bounded.ts +97 -0
  237. package/src/buffer-admission-idempotency.test.ts +297 -0
  238. package/src/buffer-admission-idempotency.ts +67 -0
  239. package/src/buffer-drain-handover.test.ts +1 -0
  240. package/src/buffer-persistence.ts +19 -1
  241. package/src/buffer-turn-helpers.ts +8 -1
  242. package/src/buffer-types.ts +1 -0
  243. package/src/buffer.ts +40 -43
  244. package/src/orchestration/turn-ingestion-buffered.ts +74 -0
  245. package/src/orchestration/turn-ingestion.ts +4 -78
  246. package/src/storage/buffer-session-files.ts +71 -0
  247. package/src/storage.ts +1 -0
  248. package/src/types.ts +2 -0
  249. package/dist/chunk-2LQUPEWF.js.map +0 -1
  250. package/dist/chunk-4Y26S76X.js.map +0 -1
  251. package/dist/chunk-FWDVW2BD.js.map +0 -1
  252. package/dist/chunk-OV3XHQAB.js.map +0 -1
  253. package/dist/chunk-YCNSMVWG.js.map +0 -1
  254. /package/dist/{capsule-crypto-YO5QJ6L3.js.map → buffer-add-turns-bounded.js.map} +0 -0
  255. /package/dist/{graph-edge-decay-EKWXRBWF.js.map → buffer-admission-idempotency.js.map} +0 -0
  256. /package/dist/{chunk-AOZYOS4G.js.map → chunk-2UOU6CZZ.js.map} +0 -0
  257. /package/dist/{chunk-BFPF5N3H.js.map → chunk-4RASUAN3.js.map} +0 -0
  258. /package/dist/{chunk-MZCGHPIJ.js.map → chunk-4XINO77L.js.map} +0 -0
  259. /package/dist/{chunk-WVV54HL2.js.map → chunk-4Y4LPKFV.js.map} +0 -0
  260. /package/dist/{chunk-2IMKMMUS.js.map → chunk-5JW2QIFH.js.map} +0 -0
  261. /package/dist/{chunk-MPQQIHA7.js.map → chunk-5LL2X5SO.js.map} +0 -0
  262. /package/dist/{chunk-VEPT6DXJ.js.map → chunk-63MKTHYT.js.map} +0 -0
  263. /package/dist/{chunk-CBJRI6VJ.js.map → chunk-64TIBZPZ.js.map} +0 -0
  264. /package/dist/{chunk-LL7WIK2Z.js.map → chunk-6NPLVV6M.js.map} +0 -0
  265. /package/dist/{chunk-GOZXQNIM.js.map → chunk-6P7U3HWG.js.map} +0 -0
  266. /package/dist/{chunk-PKPW7MXT.js.map → chunk-7TDJZV2S.js.map} +0 -0
  267. /package/dist/{chunk-B72X3KWL.js.map → chunk-7TY5ZHFA.js.map} +0 -0
  268. /package/dist/{chunk-B4I37XX6.js.map → chunk-ADBON4FI.js.map} +0 -0
  269. /package/dist/{chunk-MEALRZYB.js.map → chunk-BKR2YCQ5.js.map} +0 -0
  270. /package/dist/{chunk-R45L4TV6.js.map → chunk-BUKK5SWA.js.map} +0 -0
  271. /package/dist/{chunk-2JAT4S7N.js.map → chunk-CIEEYVUB.js.map} +0 -0
  272. /package/dist/{chunk-6CSWINXA.js.map → chunk-D3ZISMKY.js.map} +0 -0
  273. /package/dist/{chunk-DLX277NS.js.map → chunk-DBNZYQCL.js.map} +0 -0
  274. /package/dist/{chunk-MIG4KRYU.js.map → chunk-DK3T3Q6A.js.map} +0 -0
  275. /package/dist/{chunk-JVSHXYOO.js.map → chunk-E7WMDXAW.js.map} +0 -0
  276. /package/dist/{chunk-6MEQHJTF.js.map → chunk-ENPJX3BB.js.map} +0 -0
  277. /package/dist/{chunk-XGDWR2L6.js.map → chunk-ETUMOYGL.js.map} +0 -0
  278. /package/dist/{chunk-RQBYC7EK.js.map → chunk-F4ZHKDBW.js.map} +0 -0
  279. /package/dist/{chunk-6DHSEJIO.js.map → chunk-FBV4QGXT.js.map} +0 -0
  280. /package/dist/{chunk-OYHGCAGQ.js.map → chunk-FZ6QUOTL.js.map} +0 -0
  281. /package/dist/{chunk-A3EWNU5V.js.map → chunk-G2TK5YYU.js.map} +0 -0
  282. /package/dist/{chunk-RVUD4WN3.js.map → chunk-G3ZUQZGM.js.map} +0 -0
  283. /package/dist/{chunk-CBTERRF5.js.map → chunk-GA3Y7GZR.js.map} +0 -0
  284. /package/dist/{chunk-AWKD2A73.js.map → chunk-GB442ZFG.js.map} +0 -0
  285. /package/dist/{chunk-RSRHWNNM.js.map → chunk-GDREJ32D.js.map} +0 -0
  286. /package/dist/{chunk-VEFGHRKV.js.map → chunk-GKL6QYZO.js.map} +0 -0
  287. /package/dist/{chunk-Y6IRNAWT.js.map → chunk-GQDO6KHO.js.map} +0 -0
  288. /package/dist/{chunk-FYH62SF3.js.map → chunk-GTW6GPQU.js.map} +0 -0
  289. /package/dist/{chunk-M43GO34S.js.map → chunk-HASIFVWH.js.map} +0 -0
  290. /package/dist/{chunk-VAVCFMMQ.js.map → chunk-IBPE3Q5M.js.map} +0 -0
  291. /package/dist/{chunk-YLTU2DC4.js.map → chunk-IHCXMYSE.js.map} +0 -0
  292. /package/dist/{chunk-WWQMZBDI.js.map → chunk-IJVU4ILJ.js.map} +0 -0
  293. /package/dist/{chunk-N7LYEA3K.js.map → chunk-JOQZRIL4.js.map} +0 -0
  294. /package/dist/{chunk-BNQJKWWZ.js.map → chunk-K3FH3LAQ.js.map} +0 -0
  295. /package/dist/{chunk-EDGWAJLS.js.map → chunk-KBMJWNSY.js.map} +0 -0
  296. /package/dist/{chunk-RHQSAXN3.js.map → chunk-KCU2ZWBS.js.map} +0 -0
  297. /package/dist/{chunk-NLSMLRH4.js.map → chunk-KYZFW4LW.js.map} +0 -0
  298. /package/dist/{chunk-L6CMR5OI.js.map → chunk-L2DACC2T.js.map} +0 -0
  299. /package/dist/{chunk-3KQPFIVV.js.map → chunk-LMFINE37.js.map} +0 -0
  300. /package/dist/{chunk-NWS4I4K7.js.map → chunk-LS5VJO5O.js.map} +0 -0
  301. /package/dist/{chunk-DC55RIEZ.js.map → chunk-M4IEZGCK.js.map} +0 -0
  302. /package/dist/{chunk-FJVWKIDV.js.map → chunk-MEYPQLXV.js.map} +0 -0
  303. /package/dist/{chunk-AGJJTD3Q.js.map → chunk-MONIOXEG.js.map} +0 -0
  304. /package/dist/{chunk-5IGWEYNV.js.map → chunk-MVTMKFBW.js.map} +0 -0
  305. /package/dist/{chunk-OYUTSLBU.js.map → chunk-ODHFX5JX.js.map} +0 -0
  306. /package/dist/{chunk-I3UBDUHO.js.map → chunk-OMPX3KLG.js.map} +0 -0
  307. /package/dist/{chunk-BXLOS5AJ.js.map → chunk-OWHERGF2.js.map} +0 -0
  308. /package/dist/{chunk-QJJURIZV.js.map → chunk-P4YYUDR5.js.map} +0 -0
  309. /package/dist/{chunk-77SYM565.js.map → chunk-PDVEY4QS.js.map} +0 -0
  310. /package/dist/{chunk-LE27GU4M.js.map → chunk-QCJ7Q5BM.js.map} +0 -0
  311. /package/dist/{chunk-74BX5NCU.js.map → chunk-QFBBSKEU.js.map} +0 -0
  312. /package/dist/{chunk-QPOWOQYH.js.map → chunk-SEIFDQ6U.js.map} +0 -0
  313. /package/dist/{chunk-XUKBX3GO.js.map → chunk-SV6OLWPF.js.map} +0 -0
  314. /package/dist/{chunk-JY3WATTF.js.map → chunk-T3M5KJRV.js.map} +0 -0
  315. /package/dist/{chunk-YWXFO7G2.js.map → chunk-TFHL4WWY.js.map} +0 -0
  316. /package/dist/{chunk-POXJ3KXJ.js.map → chunk-U62EINFH.js.map} +0 -0
  317. /package/dist/{chunk-WZ55LEUN.js.map → chunk-UIFWZMO7.js.map} +0 -0
  318. /package/dist/{chunk-DQEMWVMT.js.map → chunk-UVYI6VIX.js.map} +0 -0
  319. /package/dist/{chunk-2S4XW47C.js.map → chunk-UWP6PGWN.js.map} +0 -0
  320. /package/dist/{chunk-2VS3DAXE.js.map → chunk-V3D2OOVE.js.map} +0 -0
  321. /package/dist/{chunk-UH3FPX3L.js.map → chunk-W7K5BP3M.js.map} +0 -0
  322. /package/dist/{chunk-MFDEEOOZ.js.map → chunk-WN2DASTS.js.map} +0 -0
  323. /package/dist/{chunk-TFA6HPOA.js.map → chunk-WQUGCOKF.js.map} +0 -0
  324. /package/dist/{chunk-IJBOJJVS.js.map → chunk-X2FEUBKD.js.map} +0 -0
  325. /package/dist/{chunk-XF2QQQXO.js.map → chunk-XIWRF7TG.js.map} +0 -0
  326. /package/dist/{chunk-UC3KG7KX.js.map → chunk-YGPRFYV6.js.map} +0 -0
  327. /package/dist/{chunk-E23BTVB2.js.map → chunk-YIOP7IFD.js.map} +0 -0
  328. /package/dist/{chunk-EZ25VE3G.js.map → chunk-YNDLCWXS.js.map} +0 -0
  329. /package/dist/{chunk-FAPJG3OG.js.map → chunk-ZDZJNXL6.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runGraphEdgeDecayMaintenanceAcrossNamespaces
3
- } from "./chunk-GOZXQNIM.js";
3
+ } from "./chunk-6P7U3HWG.js";
4
4
  import {
5
5
  normalizeDreamsStatusWindowHours,
6
6
  recordDreamsPhaseRun
@@ -25,6 +25,9 @@ import {
25
25
  import {
26
26
  openclawReplayNormalizer
27
27
  } from "./chunk-H4CKS5B2.js";
28
+ import {
29
+ importMarkdownBundle
30
+ } from "./chunk-HDDRVXX4.js";
28
31
  import {
29
32
  importSqlite
30
33
  } from "./chunk-PYHOAXTI.js";
@@ -36,24 +39,24 @@ import {
36
39
  import {
37
40
  WorkStorage
38
41
  } from "./chunk-MPC7TYTZ.js";
42
+ import {
43
+ importCapsule
44
+ } from "./chunk-KCU2ZWBS.js";
39
45
  import {
40
46
  exportJsonBundle
41
47
  } from "./chunk-UP6MOYCB.js";
42
48
  import {
43
49
  exportOkfBundle,
44
50
  parseIncludeStatus
45
- } from "./chunk-VEPT6DXJ.js";
51
+ } from "./chunk-63MKTHYT.js";
46
52
  import {
47
53
  exportSqlite
48
54
  } from "./chunk-BV2TIZ4F.js";
49
- import {
50
- importMarkdownBundle
51
- } from "./chunk-HDDRVXX4.js";
52
55
  import {
53
56
  SupportPassportAccessSurface,
54
57
  createSupportPassportModelAdapter,
55
58
  supportsSupportPassportPrivateFiles
56
- } from "./chunk-77SYM565.js";
59
+ } from "./chunk-PDVEY4QS.js";
57
60
  import {
58
61
  detectImportFormat
59
62
  } from "./chunk-OZKVVUJB.js";
@@ -62,13 +65,10 @@ import {
62
65
  } from "./chunk-2DL3OFLD.js";
63
66
  import {
64
67
  backupMemoryDir
65
- } from "./chunk-BXLOS5AJ.js";
68
+ } from "./chunk-OWHERGF2.js";
66
69
  import {
67
70
  exportMarkdownBundle
68
71
  } from "./chunk-765K3SAT.js";
69
- import {
70
- importCapsule
71
- } from "./chunk-RHQSAXN3.js";
72
72
  import {
73
73
  isSharedContextWriteInputError,
74
74
  parseSharedWriteOutputControls
@@ -76,7 +76,7 @@ import {
76
76
  import {
77
77
  buildStandup,
78
78
  parseStandupDate
79
- } from "./chunk-RVUD4WN3.js";
79
+ } from "./chunk-G3ZUQZGM.js";
80
80
  import {
81
81
  buildReplayNormalizerRegistry,
82
82
  clampBatchSize,
@@ -89,34 +89,34 @@ import {
89
89
  import {
90
90
  RoutingRulesStore
91
91
  } from "./chunk-TBUEE7XF.js";
92
+ import {
93
+ TailscaleHelper
94
+ } from "./chunk-SZDLX763.js";
95
+ import {
96
+ WebDavServer
97
+ } from "./chunk-PYIFUBRK.js";
92
98
  import {
93
99
  CompressionGuidelineCoordinator
94
100
  } from "./chunk-5PHOU5QI.js";
95
101
  import {
96
102
  ActivityStore,
97
103
  MaintenanceScheduler
98
- } from "./chunk-XUKBX3GO.js";
104
+ } from "./chunk-SV6OLWPF.js";
99
105
  import {
100
106
  runPeerProfileReasoner
101
107
  } from "./chunk-I74SUMNI.js";
108
+ import {
109
+ rebuildObservations
110
+ } from "./chunk-WHCD4Z3D.js";
102
111
  import {
103
112
  migrateFromEngram
104
113
  } from "./chunk-VZAKYDMJ.js";
105
- import {
106
- TailscaleHelper
107
- } from "./chunk-SZDLX763.js";
108
- import {
109
- WebDavServer
110
- } from "./chunk-PYIFUBRK.js";
111
114
  import {
112
115
  migrateObservations
113
116
  } from "./chunk-EDR6CVWZ.js";
114
117
  import {
115
118
  rebuildMemoryLifecycleLedger
116
- } from "./chunk-OYHGCAGQ.js";
117
- import {
118
- rebuildObservations
119
- } from "./chunk-WHCD4Z3D.js";
119
+ } from "./chunk-FZ6QUOTL.js";
120
120
  import {
121
121
  backfillMemoryStorage,
122
122
  runLocationBackfill,
@@ -124,13 +124,13 @@ import {
124
124
  runLocationDay,
125
125
  runLocationStatus,
126
126
  runLocationSync
127
- } from "./chunk-RSRHWNNM.js";
127
+ } from "./chunk-GDREJ32D.js";
128
128
  import {
129
129
  archiveObservations
130
130
  } from "./chunk-7IGMKQWK.js";
131
131
  import {
132
132
  LcmEngine
133
- } from "./chunk-BNQJKWWZ.js";
133
+ } from "./chunk-K3FH3LAQ.js";
134
134
  import {
135
135
  executeResolution,
136
136
  isValidResolutionVerb,
@@ -148,11 +148,14 @@ import {
148
148
  import {
149
149
  CompoundingEngine,
150
150
  defaultTierMigrationCycleBudget
151
- } from "./chunk-POXJ3KXJ.js";
151
+ } from "./chunk-U62EINFH.js";
152
152
  import {
153
153
  SharedContextManager,
154
154
  UNATTRIBUTED_ACCESS_WRITE_ORIGIN
155
155
  } from "./chunk-JVBAPAWZ.js";
156
+ import {
157
+ AdapterRegistry
158
+ } from "./chunk-IJVU4ILJ.js";
156
159
  import {
157
160
  getBulkImportSource,
158
161
  listBulkImportSources,
@@ -190,12 +193,22 @@ import {
190
193
  WriteRateLimiter
191
194
  } from "./chunk-TB6CBZ5V.js";
192
195
  import {
193
- AdapterRegistry
194
- } from "./chunk-WWQMZBDI.js";
196
+ applyUtilityPromotionRuntimePolicy,
197
+ applyUtilityRankingRuntimeDelta,
198
+ loadUtilityRuntimeValues
199
+ } from "./chunk-3Q3XD3NO.js";
200
+ import {
201
+ getUtilityLearningStatus,
202
+ learnUtilityPromotionWeights
203
+ } from "./chunk-WLT6LTQP.js";
204
+ import {
205
+ getUtilityTelemetryStatus,
206
+ recordUtilityTelemetryEvent
207
+ } from "./chunk-EOU6V4IN.js";
195
208
  import {
196
209
  compareVerifiedEpisodeResults,
197
210
  searchVerifiedEpisodes
198
- } from "./chunk-Y6IRNAWT.js";
211
+ } from "./chunk-GQDO6KHO.js";
199
212
  import {
200
213
  WHO_KNOWS_DEFAULT_LIMIT,
201
214
  WHO_KNOWS_MCP_TOOLS,
@@ -203,7 +216,17 @@ import {
203
216
  handleWhoKnowsHttpQuery,
204
217
  loadWhoKnowsEntities,
205
218
  validateWhoKnowsInput
206
- } from "./chunk-JVSHXYOO.js";
219
+ } from "./chunk-E7WMDXAW.js";
220
+ import {
221
+ applyTrustScoreStage,
222
+ buildTrustSignalsForRerank,
223
+ projectTrustForXray,
224
+ trustResultFor,
225
+ trustResultKey
226
+ } from "./chunk-GNVZQ5JN.js";
227
+ import {
228
+ renderEpistemicHedge
229
+ } from "./chunk-YN2UN7N3.js";
207
230
  import {
208
231
  getTrustZoneStoreStatus,
209
232
  isTrustZoneName,
@@ -218,31 +241,11 @@ import {
218
241
  cleanArchivedUserMessage
219
242
  } from "./chunk-47DU4SGJ.js";
220
243
  import {
221
- applyUtilityPromotionRuntimePolicy,
222
- applyUtilityRankingRuntimeDelta,
223
- loadUtilityRuntimeValues
224
- } from "./chunk-3Q3XD3NO.js";
225
- import {
226
- getUtilityLearningStatus,
227
- learnUtilityPromotionWeights
228
- } from "./chunk-WLT6LTQP.js";
229
- import {
230
- getUtilityTelemetryStatus,
231
- recordUtilityTelemetryEvent
232
- } from "./chunk-EOU6V4IN.js";
244
+ TmtBuilder
245
+ } from "./chunk-ECZU5BJH.js";
233
246
  import {
234
247
  extractTopics
235
248
  } from "./chunk-KVDUKH5E.js";
236
- import {
237
- applyTrustScoreStage,
238
- buildTrustSignalsForRerank,
239
- projectTrustForXray,
240
- trustResultFor,
241
- trustResultKey
242
- } from "./chunk-GNVZQ5JN.js";
243
- import {
244
- renderEpistemicHedge
245
- } from "./chunk-YN2UN7N3.js";
246
249
  import {
247
250
  buildTemporalTimelineRecallSection
248
251
  } from "./chunk-VHF73MGU.js";
@@ -259,8 +262,9 @@ import {
259
262
  decideTierTransition
260
263
  } from "./chunk-OBPOIZNR.js";
261
264
  import {
262
- TmtBuilder
263
- } from "./chunk-ECZU5BJH.js";
265
+ HourlySummarizer,
266
+ summarizeHourlyStatus
267
+ } from "./chunk-XIWRF7TG.js";
264
268
  import {
265
269
  buildTargetedFactRecallSection,
266
270
  shouldRecallTargetedFactEvidence
@@ -270,10 +274,6 @@ import {
270
274
  prefixStandingMemoryBlock,
271
275
  renderStandingMemoryBlock
272
276
  } from "./chunk-LJLGH2DE.js";
273
- import {
274
- HourlySummarizer,
275
- summarizeHourlyStatus
276
- } from "./chunk-XF2QQQXO.js";
277
277
  import {
278
278
  SessionObserverState
279
279
  } from "./chunk-ODZKV2F7.js";
@@ -283,11 +283,29 @@ import {
283
283
  } from "./chunk-WWDO7ZWM.js";
284
284
  import {
285
285
  promoteSemanticRuleFromMemory
286
- } from "./chunk-EDGWAJLS.js";
286
+ } from "./chunk-KBMJWNSY.js";
287
287
  import {
288
288
  compareVerifiedSemanticRuleResults,
289
289
  searchVerifiedSemanticRules
290
- } from "./chunk-74BX5NCU.js";
290
+ } from "./chunk-QFBBSKEU.js";
291
+ import {
292
+ buildResponseGuidanceRecallSection,
293
+ shouldRecallResponseGuidance
294
+ } from "./chunk-ZKE4CO6B.js";
295
+ import {
296
+ buildResumeBundleFromState,
297
+ getResumeBundleStatus,
298
+ recordResumeBundle
299
+ } from "./chunk-QCJ7Q5BM.js";
300
+ import {
301
+ getWorkProductLedgerStatus,
302
+ recordWorkProductLedgerEntry,
303
+ searchWorkProductLedgerEntries
304
+ } from "./chunk-B2NXOVZN.js";
305
+ import {
306
+ TranscriptManager,
307
+ utcDayRange
308
+ } from "./chunk-5RONA5FF.js";
291
309
  import {
292
310
  mergeWithAgentResults,
293
311
  runDirectAgent,
@@ -315,41 +333,23 @@ import {
315
333
  import {
316
334
  composeSalvagedEnvelope
317
335
  } from "./chunk-5CO5G4MN.js";
336
+ import {
337
+ RelevanceStore
338
+ } from "./chunk-X7J56GPG.js";
318
339
  import {
319
340
  RerankCache,
320
341
  reorderByRankedKeys,
321
342
  rerankLocalOrNoop
322
343
  } from "./chunk-WBOJMAAV.js";
323
- import {
324
- buildResponseGuidanceRecallSection,
325
- shouldRecallResponseGuidance
326
- } from "./chunk-ZKE4CO6B.js";
327
- import {
328
- buildResumeBundleFromState,
329
- getResumeBundleStatus,
330
- recordResumeBundle
331
- } from "./chunk-LE27GU4M.js";
332
- import {
333
- getWorkProductLedgerStatus,
334
- recordWorkProductLedgerEntry,
335
- searchWorkProductLedgerEntries
336
- } from "./chunk-B2NXOVZN.js";
337
- import {
338
- TranscriptManager,
339
- utcDayRange
340
- } from "./chunk-5RONA5FF.js";
341
344
  import {
342
345
  runRecallWhy
343
- } from "./chunk-N7LYEA3K.js";
346
+ } from "./chunk-JOQZRIL4.js";
344
347
  import {
345
348
  parseXrayCliOptions
346
- } from "./chunk-5IGWEYNV.js";
349
+ } from "./chunk-MVTMKFBW.js";
347
350
  import {
348
351
  findUnresolvedEntityRefs
349
352
  } from "./chunk-X7XN6YU4.js";
350
- import {
351
- RelevanceStore
352
- } from "./chunk-X7J56GPG.js";
353
353
  import {
354
354
  LastRecallStore,
355
355
  RecallHandleHistoryStore,
@@ -366,7 +366,7 @@ import {
366
366
  import {
367
367
  indexStateViewAnnotatedResults,
368
368
  resolveRecallStateViewActive
369
- } from "./chunk-A3EWNU5V.js";
369
+ } from "./chunk-G2TK5YYU.js";
370
370
  import {
371
371
  applyRecallStateViews
372
372
  } from "./chunk-DBB5JPSL.js";
@@ -384,10 +384,16 @@ import {
384
384
  import {
385
385
  renderNavigationResult
386
386
  } from "./chunk-KIW3OOZE.js";
387
+ import {
388
+ planDisclosureStep
389
+ } from "./chunk-6NPLVV6M.js";
387
390
  import {
388
391
  DEFAULT_TRAVERSE_LIMIT,
389
392
  selectTraverseNeighbors
390
393
  } from "./chunk-YE4JBZO5.js";
394
+ import {
395
+ parseNavigateLinkType
396
+ } from "./chunk-7O5EW7KX.js";
391
397
  import {
392
398
  assertIdInNavigationWindow
393
399
  } from "./chunk-5KVT6G5U.js";
@@ -397,12 +403,6 @@ import {
397
403
  import {
398
404
  takeNavigateBudget
399
405
  } from "./chunk-VYDGHJIN.js";
400
- import {
401
- planDisclosureStep
402
- } from "./chunk-LL7WIK2Z.js";
403
- import {
404
- parseNavigateLinkType
405
- } from "./chunk-7O5EW7KX.js";
406
406
  import {
407
407
  decideDisclosureEscalation
408
408
  } from "./chunk-H7XKCNR6.js";
@@ -411,12 +411,12 @@ import {
411
411
  renderRecallExplain,
412
412
  renderXray,
413
413
  toRecallExplainJson
414
- } from "./chunk-I3UBDUHO.js";
414
+ } from "./chunk-OMPX3KLG.js";
415
415
  import {
416
416
  buildXraySnapshot,
417
417
  estimateRecallTokens,
418
418
  summarizeDisclosureTokens
419
- } from "./chunk-PKPW7MXT.js";
419
+ } from "./chunk-7TDJZV2S.js";
420
420
  import {
421
421
  compactRecallContextFromBuckets,
422
422
  decideRecallContextComposition,
@@ -445,12 +445,12 @@ import {
445
445
  runOperatorRepair,
446
446
  runOperatorSetup,
447
447
  summarizeNamespaceMaintenanceHealth
448
- } from "./chunk-6CSWINXA.js";
448
+ } from "./chunk-D3ZISMKY.js";
449
449
  import {
450
450
  NamespaceCatalog,
451
451
  isNamespaceKind,
452
452
  planNamespaceMaintenance
453
- } from "./chunk-FJVWKIDV.js";
453
+ } from "./chunk-MEYPQLXV.js";
454
454
  import {
455
455
  analyzeSessionIntegrity,
456
456
  applySessionRepair,
@@ -467,13 +467,10 @@ import {
467
467
  } from "./chunk-3T74IZB3.js";
468
468
  import {
469
469
  buildEmbeddingAwareSnapshotStream
470
- } from "./chunk-6MEQHJTF.js";
470
+ } from "./chunk-ENPJX3BB.js";
471
471
  import {
472
472
  ReplicaDivergenceMonitor
473
473
  } from "./chunk-7IWRLYFJ.js";
474
- import {
475
- recordMemoryOutcome
476
- } from "./chunk-UD7UNYRD.js";
477
474
  import {
478
475
  NegativeExampleStore
479
476
  } from "./chunk-23L3IXFD.js";
@@ -481,12 +478,22 @@ import {
481
478
  applyMemoryWorthFilter,
482
479
  buildMemoryWorthCounterMap
483
480
  } from "./chunk-3GPTTA4J.js";
481
+ import {
482
+ recordMemoryOutcome
483
+ } from "./chunk-UD7UNYRD.js";
484
+ import {
485
+ applyRecencyBoost,
486
+ collectMtimeFallbackContext
487
+ } from "./chunk-M4DB6ZNN.js";
488
+ import {
489
+ maybeRespondMemoryBrowse
490
+ } from "./chunk-UYHDMCY2.js";
484
491
  import {
485
492
  MEMORY_BROWSE_MCP_TOOLS
486
493
  } from "./chunk-EIB4FJVR.js";
487
494
  import {
488
495
  runMemoryBrowse
489
- } from "./chunk-M43GO34S.js";
496
+ } from "./chunk-HASIFVWH.js";
490
497
  import {
491
498
  filterRecallCandidates,
492
499
  isGenericRecallExcludedPath,
@@ -494,7 +501,7 @@ import {
494
501
  isTopLevelArchivePath,
495
502
  journalPath,
496
503
  writeJournalFile
497
- } from "./chunk-MPQQIHA7.js";
504
+ } from "./chunk-5LL2X5SO.js";
498
505
  import {
499
506
  REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE,
500
507
  REMNIC_CHATGPT_MEMORY_INSPECTOR_TOOL,
@@ -507,12 +514,8 @@ import {
507
514
  MCP_READ_ONLY_TOOL_SUFFIXES
508
515
  } from "./chunk-MZUQVWVC.js";
509
516
  import {
510
- applyRecencyBoost,
511
- collectMtimeFallbackContext
512
- } from "./chunk-M4DB6ZNN.js";
513
- import {
514
- maybeRespondMemoryBrowse
515
- } from "./chunk-UYHDMCY2.js";
517
+ scaleLcmSummarizeBudget
518
+ } from "./chunk-3TKX7ZMV.js";
516
519
  import {
517
520
  GITHUB_CONNECTOR_ID,
518
521
  GMAIL_CONNECTOR_ID,
@@ -531,6 +534,11 @@ import {
531
534
  import {
532
535
  listConnectorStates
533
536
  } from "./chunk-MDPT6QFK.js";
537
+ import {
538
+ isAboveImportanceThreshold,
539
+ rescoreMemoryImportance,
540
+ scoreImportance
541
+ } from "./chunk-UOBPK2OS.js";
534
542
  import {
535
543
  coerceIncludedMemories
536
544
  } from "./chunk-2YA5N2BY.js";
@@ -538,19 +546,18 @@ import {
538
546
  serializeInlineScriptValue
539
547
  } from "./chunk-3HSRWJTC.js";
540
548
  import {
541
- scaleLcmSummarizeBudget
542
- } from "./chunk-3TKX7ZMV.js";
549
+ readProjectedHarmonicGraph,
550
+ searchHarmonicRetrieval
551
+ } from "./chunk-X2FEUBKD.js";
543
552
  import {
544
553
  classifyMemoryKind
545
554
  } from "./chunk-YAZNBMNF.js";
546
555
  import {
547
- isAboveImportanceThreshold,
548
- rescoreMemoryImportance,
549
- scoreImportance
550
- } from "./chunk-UOBPK2OS.js";
556
+ scoreEvidencePathDetail
557
+ } from "./chunk-XXSOVESA.js";
551
558
  import {
552
559
  buildGraphSnapshot
553
- } from "./chunk-YLTU2DC4.js";
560
+ } from "./chunk-IHCXMYSE.js";
554
561
  import {
555
562
  deriveHarmonicRecords,
556
563
  harmonicEntityReferenceMatches,
@@ -558,17 +565,10 @@ import {
558
565
  normalizedHarmonicEntityIdentity,
559
566
  persistHarmonicRecords
560
567
  } from "./chunk-FJEYZSJD.js";
561
- import {
562
- readProjectedHarmonicGraph,
563
- searchHarmonicRetrieval
564
- } from "./chunk-IJBOJJVS.js";
565
568
  import {
566
569
  removeNodeEdgesForRewrite,
567
570
  rollbackNodeEdgeRewrite
568
- } from "./chunk-UH3FPX3L.js";
569
- import {
570
- scoreEvidencePathDetail
571
- } from "./chunk-XXSOVESA.js";
571
+ } from "./chunk-W7K5BP3M.js";
572
572
  import {
573
573
  chunkExtractionWindow,
574
574
  classifyDrainResult,
@@ -578,13 +578,13 @@ import {
578
578
  } from "./chunk-LEO4MQ3S.js";
579
579
  import {
580
580
  ExtractionEngine
581
- } from "./chunk-OYUTSLBU.js";
581
+ } from "./chunk-ODHFX5JX.js";
582
582
  import {
583
583
  wrapWorkLayerContext
584
584
  } from "./chunk-EI6V5UXY.js";
585
585
  import {
586
586
  CONNECTOR_LABEL_MAX_LENGTH
587
- } from "./chunk-CBJRI6VJ.js";
587
+ } from "./chunk-64TIBZPZ.js";
588
588
  import {
589
589
  isValidConnectorId
590
590
  } from "./chunk-YAVIBVCU.js";
@@ -595,13 +595,13 @@ import {
595
595
  import {
596
596
  ModelRegistry
597
597
  } from "./chunk-QNUNAXBE.js";
598
+ import {
599
+ parseMemoryActionEligibilityContext
600
+ } from "./chunk-JHU4EYDV.js";
598
601
  import {
599
602
  buildFocusedListRecallSection,
600
603
  shouldRecallFocusedListEvidence
601
604
  } from "./chunk-BPPUH5JM.js";
602
- import {
603
- parseMemoryActionEligibilityContext
604
- } from "./chunk-JHU4EYDV.js";
605
605
  import {
606
606
  REDACTION_RULES_SUBDIR,
607
607
  contentMatchesRedactionRules,
@@ -624,6 +624,12 @@ import {
624
624
  import {
625
625
  EXTERNAL_WIKI_MCP_TOOLS
626
626
  } from "./chunk-A5KNZSNA.js";
627
+ import {
628
+ buildEventOrderRecallSection
629
+ } from "./chunk-ZDZJNXL6.js";
630
+ import {
631
+ shouldRecallEventOrderEvidence
632
+ } from "./chunk-BUYVPUEM.js";
627
633
  import {
628
634
  pickFactEventTimeAnchor,
629
635
  resolveFactEventTime
@@ -631,36 +637,17 @@ import {
631
637
  import {
632
638
  buildExplicitCueRecallSection
633
639
  } from "./chunk-NED7IR7B.js";
634
- import {
635
- externalWikiSearchOperation
636
- } from "./chunk-3FBAEPCU.js";
637
- import {
638
- planEpisodeWindowsWithFallback
639
- } from "./chunk-T3GIETKV.js";
640
- import {
641
- createEvalBaselineSnapshot,
642
- getEvalHarnessStatus,
643
- importEvalBenchmarkPack,
644
- recordEvalShadowRecall,
645
- runEvalBaselineDeltaReport,
646
- runEvalBenchmarkCiGate,
647
- runEvalStoredBaselineCiGate,
648
- validateEvalBenchmarkPack
649
- } from "./chunk-JKMIGCK6.js";
650
- import {
651
- buildEventOrderRecallSection
652
- } from "./chunk-FAPJG3OG.js";
653
640
  import {
654
641
  lcmEvidenceIdentity
655
642
  } from "./chunk-C37ZRXX7.js";
656
643
  import {
657
- shouldRecallEventOrderEvidence
658
- } from "./chunk-BUYVPUEM.js";
644
+ externalWikiSearchOperation
645
+ } from "./chunk-3FBAEPCU.js";
659
646
  import {
660
647
  buildEntityRecallSection,
661
648
  entityRecentTranscriptLookbackHours,
662
649
  readRecentEntityTranscriptEntries
663
- } from "./chunk-2IMKMMUS.js";
650
+ } from "./chunk-5JW2QIFH.js";
664
651
  import {
665
652
  boundRecallContextComposition,
666
653
  composeMissingMemoryContext,
@@ -670,9 +657,31 @@ import {
670
657
  renderAuthorityBoundContent,
671
658
  selectCuriosityQuestion
672
659
  } from "./chunk-NVKO5YKP.js";
660
+ import {
661
+ planEpisodeWindowsWithFallback
662
+ } from "./chunk-T3GIETKV.js";
663
+ import {
664
+ createEvalBaselineSnapshot,
665
+ getEvalHarnessStatus,
666
+ importEvalBenchmarkPack,
667
+ recordEvalShadowRecall,
668
+ runEvalBaselineDeltaReport,
669
+ runEvalBenchmarkCiGate,
670
+ runEvalStoredBaselineCiGate,
671
+ validateEvalBenchmarkPack
672
+ } from "./chunk-JKMIGCK6.js";
673
+ import {
674
+ tryDirectAnswer
675
+ } from "./chunk-OB72KNMF.js";
673
676
  import {
674
677
  EmbeddingFallback
675
678
  } from "./chunk-SBRUTD5O.js";
679
+ import {
680
+ DEEP_RECALL_MCP_TOOLS
681
+ } from "./chunk-HUSTM6PU.js";
682
+ import {
683
+ callDeepRecallPolicyLlm
684
+ } from "./chunk-SPAKBUJY.js";
676
685
  import {
677
686
  renderDeepRecallResult
678
687
  } from "./chunk-RF2SMMPP.js";
@@ -681,10 +690,19 @@ import {
681
690
  } from "./chunk-3X5OPDPF.js";
682
691
  import {
683
692
  runBudgetedDeepRecall
684
- } from "./chunk-BFPF5N3H.js";
693
+ } from "./chunk-4RASUAN3.js";
685
694
  import {
686
- tryDirectAnswer
687
- } from "./chunk-OB72KNMF.js";
695
+ CorpusWatermarkCache,
696
+ computeServiceCorpusCensus
697
+ } from "./chunk-ETUMOYGL.js";
698
+ import {
699
+ listNamespaces,
700
+ runNamespaceMigration,
701
+ verifyNamespaces
702
+ } from "./chunk-YGPRFYV6.js";
703
+ import {
704
+ NamespaceStorageRouter
705
+ } from "./chunk-UWP6PGWN.js";
688
706
  import {
689
707
  CrossNamespaceBudget,
690
708
  toBudgetWarning
@@ -695,27 +713,21 @@ import {
695
713
  } from "./chunk-FYJYQ65N.js";
696
714
  import {
697
715
  GraphDashboardServer
698
- } from "./chunk-EZ25VE3G.js";
716
+ } from "./chunk-YNDLCWXS.js";
699
717
  import {
700
718
  formatDaySummaryMemories
701
719
  } from "./chunk-7G5NTS7F.js";
702
720
  import {
703
721
  respondDeepRecall
704
- } from "./chunk-MEALRZYB.js";
705
- import {
706
- DEEP_RECALL_MCP_TOOLS
707
- } from "./chunk-HUSTM6PU.js";
708
- import {
709
- callDeepRecallPolicyLlm
710
- } from "./chunk-SPAKBUJY.js";
722
+ } from "./chunk-BKR2YCQ5.js";
711
723
  import {
712
724
  refreshConvergedNamespaces
713
- } from "./chunk-B72X3KWL.js";
725
+ } from "./chunk-7TY5ZHFA.js";
714
726
  import {
715
727
  rebuildMemoryProjection,
716
728
  repairMemoryProjection,
717
729
  verifyMemoryProjection
718
- } from "./chunk-FYH62SF3.js";
730
+ } from "./chunk-GTW6GPQU.js";
719
731
  import {
720
732
  buildProposedActions,
721
733
  buildQualityScore,
@@ -724,24 +736,12 @@ import {
724
736
  readMemoryGovernanceRunArtifact,
725
737
  restoreMemoryGovernanceRun,
726
738
  runMemoryGovernance
727
- } from "./chunk-DLX277NS.js";
739
+ } from "./chunk-DBNZYQCL.js";
728
740
  import {
729
741
  collectNativeKnowledgeChunks,
730
742
  formatNativeKnowledgeSection,
731
743
  searchNativeKnowledge
732
744
  } from "./chunk-2DQ2XREU.js";
733
- import {
734
- CorpusWatermarkCache,
735
- computeServiceCorpusCensus
736
- } from "./chunk-XGDWR2L6.js";
737
- import {
738
- listNamespaces,
739
- runNamespaceMigration,
740
- verifyNamespaces
741
- } from "./chunk-UC3KG7KX.js";
742
- import {
743
- NamespaceStorageRouter
744
- } from "./chunk-2S4XW47C.js";
745
745
  import {
746
746
  buildConnectorRowsFromDefinitions,
747
747
  parseConnectorsListOptions,
@@ -751,6 +751,9 @@ import {
751
751
  renderConnectorsRunResult,
752
752
  runConnectorPollOnce
753
753
  } from "./chunk-OKTXM5H4.js";
754
+ import {
755
+ buildCitationGuidance
756
+ } from "./chunk-D24OXEPB.js";
754
757
  import {
755
758
  applyCommitmentLedgerLifecycle,
756
759
  getCommitmentLedgerStatus,
@@ -766,45 +769,29 @@ import {
766
769
  materializeAfterSemanticConsolidation,
767
770
  parseConsolidationResponse,
768
771
  parseOperatorAwareConsolidationResponse
769
- } from "./chunk-NWS4I4K7.js";
772
+ } from "./chunk-LS5VJO5O.js";
770
773
  import {
771
774
  resolveNamespaceChildRoot
772
775
  } from "./chunk-3UXOZBHV.js";
773
776
  import {
774
777
  GraphIndex,
775
778
  analyzeGraphHealth
776
- } from "./chunk-DC55RIEZ.js";
777
- import {
778
- subscribeGraphEvents
779
- } from "./chunk-DEUNUKTD.js";
779
+ } from "./chunk-M4IEZGCK.js";
780
780
  import {
781
781
  GraphEdgeAppendError
782
782
  } from "./chunk-GKCXTSFF.js";
783
783
  import {
784
- buildCitationGuidance
785
- } from "./chunk-D24OXEPB.js";
786
- import {
787
- isCapsuleImportArchiveInputError,
788
- validateCapsuleImportArchive
789
- } from "./chunk-FKBGK3NC.js";
790
- import {
791
- defaultCapsulesDir
792
- } from "./chunk-ZY2MNJR6.js";
793
- import {
794
- semanticChunkContent
795
- } from "./chunk-2GBFKHBZ.js";
796
- import {
797
- chunkContent
798
- } from "./chunk-6TBIWIAG.js";
784
+ subscribeGraphEvents
785
+ } from "./chunk-DEUNUKTD.js";
799
786
  import {
800
787
  SmartBuffer
801
- } from "./chunk-OV3XHQAB.js";
788
+ } from "./chunk-LYSE5FNF.js";
802
789
  import {
803
790
  ExtractionDeadlineError,
804
791
  ExtractionRunCoordinator,
805
792
  ProviderCircuitBreaker,
806
793
  classifyExtractionOrigin
807
- } from "./chunk-3KQPFIVV.js";
794
+ } from "./chunk-LMFINE37.js";
808
795
  import {
809
796
  ARTIFACT_STATUS_CACHE_TTL_MS,
810
797
  BulkImportBatchPartialFailureError,
@@ -844,7 +831,7 @@ import {
844
831
  throwIfRecallAborted,
845
832
  tokenizeRecallQuery,
846
833
  utcDateKeysForLocalDay
847
- } from "./chunk-AGJJTD3Q.js";
834
+ } from "./chunk-MONIOXEG.js";
848
835
  import {
849
836
  inferIntentFromText,
850
837
  intentCompatibilityScore,
@@ -853,7 +840,20 @@ import {
853
840
  } from "./chunk-CSAKJVXW.js";
854
841
  import {
855
842
  LocalLlmClient
856
- } from "./chunk-AWKD2A73.js";
843
+ } from "./chunk-GB442ZFG.js";
844
+ import {
845
+ isCapsuleImportArchiveInputError,
846
+ validateCapsuleImportArchive
847
+ } from "./chunk-FKBGK3NC.js";
848
+ import {
849
+ defaultCapsulesDir
850
+ } from "./chunk-ZY2MNJR6.js";
851
+ import {
852
+ semanticChunkContent
853
+ } from "./chunk-2GBFKHBZ.js";
854
+ import {
855
+ chunkContent
856
+ } from "./chunk-6TBIWIAG.js";
857
857
  import {
858
858
  FileCalendarSource,
859
859
  buildBriefing,
@@ -862,11 +862,14 @@ import {
862
862
  parseBriefingFocus,
863
863
  parseBriefingWindow,
864
864
  validateBriefingFormat
865
- } from "./chunk-YWXFO7G2.js";
865
+ } from "./chunk-TFHL4WWY.js";
866
866
  import {
867
867
  BriefingTimeoutError,
868
868
  withBriefingDeadline
869
869
  } from "./chunk-FNFURZBZ.js";
870
+ import {
871
+ scopeObserveBufferAdmissionIdempotencyKey
872
+ } from "./chunk-5EP2V675.js";
870
873
  import {
871
874
  ReplayAdmissionRefusedError,
872
875
  StorageTargetRequiredError
@@ -927,7 +930,7 @@ import {
927
930
  validateCorrectionAction,
928
931
  validateCorrectionRequest,
929
932
  validateRedactionPattern
930
- } from "./chunk-B4I37XX6.js";
933
+ } from "./chunk-ADBON4FI.js";
931
934
  import {
932
935
  compileCorrectionRule,
933
936
  correctionsFilePath,
@@ -1017,7 +1020,7 @@ import {
1017
1020
  getCausalTrajectoryStoreStatus,
1018
1021
  readCausalTrajectoryRecords,
1019
1022
  searchCausalTrajectories
1020
- } from "./chunk-VEFGHRKV.js";
1023
+ } from "./chunk-GKL6QYZO.js";
1021
1024
  import {
1022
1025
  QmdResultResolver,
1023
1026
  StorageManager,
@@ -1040,7 +1043,7 @@ import {
1040
1043
  reconstructFusionInputs,
1041
1044
  selfDeps,
1042
1045
  serializeFusionDay
1043
- } from "./chunk-2LQUPEWF.js";
1046
+ } from "./chunk-DCLOMXQL.js";
1044
1047
  import {
1045
1048
  buildRetiredFactTombstoneInputs
1046
1049
  } from "./chunk-QGVCFVX6.js";
@@ -1059,12 +1062,12 @@ import {
1059
1062
  embeddingBacklogExceeds,
1060
1063
  isSearchHealthDegraded,
1061
1064
  namespaceCollectionName
1062
- } from "./chunk-CBTERRF5.js";
1065
+ } from "./chunk-GA3Y7GZR.js";
1063
1066
  import {
1064
1067
  createConversationIndexRuntime,
1065
1068
  createSearchBackend,
1066
1069
  isSearchBackendEnabled
1067
- } from "./chunk-MIG4KRYU.js";
1070
+ } from "./chunk-DK3T3Q6A.js";
1068
1071
  import {
1069
1072
  NoopSearchBackend
1070
1073
  } from "./chunk-CYEPCZN5.js";
@@ -1096,14 +1099,14 @@ import {
1096
1099
  normalizeProjectionPreview,
1097
1100
  normalizeProjectionTags
1098
1101
  } from "./chunk-SCU65EZI.js";
1099
- import {
1100
- checkCorpusReadAbort
1101
- } from "./chunk-P4GUQSK3.js";
1102
1102
  import {
1103
1103
  detectLanguageHint,
1104
1104
  dominantCorpusLanguage,
1105
1105
  planCrossScript
1106
1106
  } from "./chunk-3WU7XOFN.js";
1107
+ import {
1108
+ checkCorpusReadAbort
1109
+ } from "./chunk-P4GUQSK3.js";
1107
1110
  import {
1108
1111
  createVersion,
1109
1112
  getVersion,
@@ -1135,13 +1138,6 @@ import {
1135
1138
  isValidAsOf,
1136
1139
  isValidityExpiredNow
1137
1140
  } from "./chunk-6CIAGZ6X.js";
1138
- import {
1139
- withCaptureWriteLockBackoff
1140
- } from "./chunk-7VLBZKNB.js";
1141
- import {
1142
- buildExplicitCaptureDedupKey,
1143
- normalizeExplicitCaptureContent
1144
- } from "./chunk-Y33KJ556.js";
1145
1141
  import {
1146
1142
  mergeSearchQueryOptions
1147
1143
  } from "./chunk-B7HYXVME.js";
@@ -1152,14 +1148,6 @@ import {
1152
1148
  isUntrustedOrigin,
1153
1149
  parseOriginClass
1154
1150
  } from "./chunk-23G5P7TA.js";
1155
- import {
1156
- bufferTurnsEqual,
1157
- describeError,
1158
- extractionScopeGroupKey,
1159
- groupTurnsByExtractionScope,
1160
- hasPinnedCaptureScope,
1161
- scopeProfilePlanIdentity
1162
- } from "./chunk-AZFQXYIJ.js";
1163
1151
  import {
1164
1152
  FallbackLlmClient,
1165
1153
  gatewayTaskChainOptions
@@ -1167,6 +1155,21 @@ import {
1167
1155
  import {
1168
1156
  fallbackLlmRuntimeContextFromConfig
1169
1157
  } from "./chunk-QSF5SJAM.js";
1158
+ import {
1159
+ withCaptureWriteLockBackoff
1160
+ } from "./chunk-7VLBZKNB.js";
1161
+ import {
1162
+ buildExplicitCaptureDedupKey,
1163
+ normalizeExplicitCaptureContent
1164
+ } from "./chunk-Y33KJ556.js";
1165
+ import {
1166
+ bufferTurnsEqual,
1167
+ describeError,
1168
+ extractionScopeGroupKey,
1169
+ groupTurnsByExtractionScope,
1170
+ hasPinnedCaptureScope,
1171
+ scopeProfilePlanIdentity
1172
+ } from "./chunk-33VVVP57.js";
1170
1173
  import {
1171
1174
  createBoundedCoreSectionRunner,
1172
1175
  createRecallSectionMetricRecorder,
@@ -1202,7 +1205,7 @@ import {
1202
1205
  } from "./chunk-UPE7TJWN.js";
1203
1206
  import {
1204
1207
  splitCanonicalWriteRequest
1205
- } from "./chunk-JY3WATTF.js";
1208
+ } from "./chunk-T3M5KJRV.js";
1206
1209
  import {
1207
1210
  buildWithBriefingLocation,
1208
1211
  daySummaryAutoOptions,
@@ -1245,10 +1248,10 @@ import {
1245
1248
  retainedCategoryAlias,
1246
1249
  suggestionSubmitRequestSchema,
1247
1250
  validateRequest
1248
- } from "./chunk-QJJURIZV.js";
1251
+ } from "./chunk-P4YYUDR5.js";
1249
1252
  import {
1250
1253
  exportCapsule
1251
- } from "./chunk-R45L4TV6.js";
1254
+ } from "./chunk-BUKK5SWA.js";
1252
1255
  import {
1253
1256
  CAPSULE_ID_PATTERN
1254
1257
  } from "./chunk-WEHSQBFR.js";
@@ -1266,7 +1269,7 @@ import {
1266
1269
  } from "./chunk-BJMBJZ2Y.js";
1267
1270
  import {
1268
1271
  createOfflineSyncManifestStream
1269
- } from "./chunk-E23BTVB2.js";
1272
+ } from "./chunk-YIOP7IFD.js";
1270
1273
  import {
1271
1274
  peerManifestRevision
1272
1275
  } from "./chunk-FEUWI5QH.js";
@@ -1335,18 +1338,18 @@ import {
1335
1338
  buildOfflineSyncSnapshotFromBase,
1336
1339
  normalizeOfflineSyncChangeset,
1337
1340
  readOfflineSyncFileContentChunk
1338
- } from "./chunk-WZ55LEUN.js";
1341
+ } from "./chunk-UIFWZMO7.js";
1339
1342
  import {
1340
1343
  storageBackedIndexStoreIo
1341
- } from "./chunk-MFDEEOOZ.js";
1342
- import {
1343
- compileOfflineSyncExcludeGlobs
1344
- } from "./chunk-63LFM77Z.js";
1344
+ } from "./chunk-WN2DASTS.js";
1345
1345
  import {
1346
1346
  assertIsDirectoryNotSymlink,
1347
1347
  assertRealpathInsideRoot,
1348
1348
  validateArchiveRelativePath
1349
1349
  } from "./chunk-GCGJW34D.js";
1350
+ import {
1351
+ compileOfflineSyncExcludeGlobs
1352
+ } from "./chunk-63LFM77Z.js";
1350
1353
  import {
1351
1354
  serializeMutations,
1352
1355
  withHeldFileLock
@@ -1359,7 +1362,7 @@ import {
1359
1362
  RECALL_WHY_MCP_TOOLS,
1360
1363
  handleRecallWhyHttpQuery,
1361
1364
  handleRecallXrayHttpQuery
1362
- } from "./chunk-2VS3DAXE.js";
1365
+ } from "./chunk-V3D2OOVE.js";
1363
1366
  import {
1364
1367
  runContradictionScan
1365
1368
  } from "./chunk-SX4BR26Y.js";
@@ -1373,7 +1376,7 @@ import {
1373
1376
  RECALL_DISCLOSURE_LEVELS,
1374
1377
  confidenceTier,
1375
1378
  isRecallDisclosure
1376
- } from "./chunk-JVNGFQJN.js";
1379
+ } from "./chunk-KJ3Z7JHF.js";
1377
1380
  import {
1378
1381
  extractJsonCandidates
1379
1382
  } from "./chunk-YBA52OKG.js";
@@ -20685,6 +20688,86 @@ var RecallSearchPipelineCoordinator = class {
20685
20688
  // src/orchestration/turn-ingestion.ts
20686
20689
  import { createHash as createHash10, randomBytes } from "crypto";
20687
20690
 
20691
+ // src/orchestration/extraction-task-queueing.ts
20692
+ function queueBufferedCaptureScopeGroups(queueBufferedExtraction, extractionTurns, bufferKey, options) {
20693
+ for (const group of groupTurnsByExtractionScope(extractionTurns)) {
20694
+ const groupIsAccepted = group.turns.some((turn) => turn.acceptedCapture === true);
20695
+ if (!groupIsAccepted) {
20696
+ void queueBufferedExtraction(group.turns, "trigger_mode", {
20697
+ bufferKey,
20698
+ clearMatchingTurns: true,
20699
+ preemptable: true
20700
+ }).catch((err) => log.error(`native trigger extraction failed: ${err}`));
20701
+ continue;
20702
+ }
20703
+ const { promise: extraction, resolve: resolve4, reject } = Promise.withResolvers();
20704
+ void queueBufferedExtraction(group.turns, "trigger_mode", {
20705
+ bufferKey,
20706
+ clearBufferAfterExtraction: true,
20707
+ clearMatchingTurns: true,
20708
+ skipDedupeCheck: true,
20709
+ skipCharThreshold: true,
20710
+ skipUserTurnThreshold: true,
20711
+ abortSignal: options.abortSignal,
20712
+ extractionDeadlineMs: options.deadlineMs,
20713
+ writeNamespaceOverride: group.writeNamespaceOverride,
20714
+ principalOverride: group.principalOverride,
20715
+ scopeProfileWritePlan: group.scopeProfileWritePlan ?? null,
20716
+ preemptable: true,
20717
+ onTaskSettled: (err) => err ? reject(err) : resolve4()
20718
+ }).catch(reject);
20719
+ if (options.onExtractionQueued) options.onExtractionQueued(extraction);
20720
+ else extraction.catch((err) => log.error(`buffered capture extraction failed: ${err}`));
20721
+ }
20722
+ }
20723
+
20724
+ // src/orchestration/turn-ingestion-buffered.ts
20725
+ async function ingestReplayBatchBuffered(deps, bySession, options) {
20726
+ const resolvedWriteTarget = options.writeNamespaceOverride ?? (resolveNamespaceCapabilities(deps.config).namespaces === true ? options.scopeProfileWritePlan?.writeNamespace : deps.config.defaultNamespace);
20727
+ if (!resolvedWriteTarget) {
20728
+ throw new StorageTargetRequiredError(
20729
+ "accepted capture requires an explicit storage target (writeNamespaceOverride or scopeProfileWritePlan.writeNamespace)"
20730
+ );
20731
+ }
20732
+ const pin = (turn) => {
20733
+ const pinned = { ...turn, acceptedCapture: true, writeNamespaceOverride: resolvedWriteTarget };
20734
+ if (options.codingContext) pinned.codingContext = options.codingContext;
20735
+ if (options.principalOverride) pinned.principalOverride = options.principalOverride;
20736
+ if (options.scopeProfileWritePlan) pinned.scopeProfileWritePlan = options.scopeProfileWritePlan;
20737
+ return pinned;
20738
+ };
20739
+ const admissionKey = options.bufferAdmissionIdempotencyKey?.trim();
20740
+ const batches = [...bySession].map(([bufferKey, sessionTurns]) => ({ bufferKey, turns: sessionTurns.map(pin) }));
20741
+ const outcomes = admissionKey ? await deps.buffer.addTurnsBoundedForObserveReplay(batches, admissionKey) : await deps.buffer.addTurnsBounded(batches);
20742
+ if (outcomes === "duplicate") return;
20743
+ if (outcomes === null) {
20744
+ const refusedKey = batches.find((batch) => batch.turns.length > 0)?.bufferKey ?? "unknown";
20745
+ throw new ReplayAdmissionRefusedError(
20746
+ `durable observe capture refused: extraction buffer at entry capacity for batch containing ${refusedKey}`
20747
+ );
20748
+ }
20749
+ await deps.buffer.flushPendingSave({ throwOnFailure: true });
20750
+ if (options.archiveLcm !== false && deps.lcmEngine?.enabled) {
20751
+ for (const [bufferKey, sessionTurns] of bySession) {
20752
+ await deps.lcmEngine.observeMessages(
20753
+ bufferKey,
20754
+ sessionTurns.map((turn) => ({
20755
+ role: turn.role,
20756
+ content: turn.content,
20757
+ parts: turn.parts,
20758
+ rawContent: turn.rawContent,
20759
+ sourceFormat: turn.sourceFormat
20760
+ }))
20761
+ );
20762
+ }
20763
+ }
20764
+ for (const { bufferKey, outcome } of outcomes) {
20765
+ if (outcome.decision !== "keep_buffering" && outcome.extractionTurns) {
20766
+ queueBufferedCaptureScopeGroups(deps.queueBufferedExtraction, outcome.extractionTurns, bufferKey, options);
20767
+ }
20768
+ }
20769
+ }
20770
+
20688
20771
  // src/orchestration/extraction-drain.ts
20689
20772
  import { createHash as createHash9 } from "crypto";
20690
20773
 
@@ -21148,39 +21231,6 @@ function skipClaimedSession(buffer, bufferKey, settle) {
21148
21231
  return true;
21149
21232
  }
21150
21233
 
21151
- // src/orchestration/extraction-task-queueing.ts
21152
- function queueBufferedCaptureScopeGroups(queueBufferedExtraction, extractionTurns, bufferKey, options) {
21153
- for (const group of groupTurnsByExtractionScope(extractionTurns)) {
21154
- const groupIsAccepted = group.turns.some((turn) => turn.acceptedCapture === true);
21155
- if (!groupIsAccepted) {
21156
- void queueBufferedExtraction(group.turns, "trigger_mode", {
21157
- bufferKey,
21158
- clearMatchingTurns: true,
21159
- preemptable: true
21160
- }).catch((err) => log.error(`native trigger extraction failed: ${err}`));
21161
- continue;
21162
- }
21163
- const { promise: extraction, resolve: resolve4, reject } = Promise.withResolvers();
21164
- void queueBufferedExtraction(group.turns, "trigger_mode", {
21165
- bufferKey,
21166
- clearBufferAfterExtraction: true,
21167
- clearMatchingTurns: true,
21168
- skipDedupeCheck: true,
21169
- skipCharThreshold: true,
21170
- skipUserTurnThreshold: true,
21171
- abortSignal: options.abortSignal,
21172
- extractionDeadlineMs: options.deadlineMs,
21173
- writeNamespaceOverride: group.writeNamespaceOverride,
21174
- principalOverride: group.principalOverride,
21175
- scopeProfileWritePlan: group.scopeProfileWritePlan ?? null,
21176
- preemptable: true,
21177
- onTaskSettled: (err) => err ? reject(err) : resolve4()
21178
- }).catch(reject);
21179
- if (options.onExtractionQueued) options.onExtractionQueued(extraction);
21180
- else extraction.catch((err) => log.error(`buffered capture extraction failed: ${err}`));
21181
- }
21182
- }
21183
-
21184
21234
  // src/orchestration/extraction-queue-snapshot-sharing.ts
21185
21235
  function automaticSnapshotSharingEligible(options) {
21186
21236
  return options.execution === void 0 && options.preemptable === true && options.failOnExtractionFailure !== true && options.forceExtractionAttempt !== true && options.preemptRunning !== true;
@@ -21412,7 +21462,7 @@ var TurnIngestionCoordinator = class {
21412
21462
  bySession.set(key, list);
21413
21463
  }
21414
21464
  if (options.extractionMode === "buffered") {
21415
- return this.ingestReplayBatchBuffered(bySession, options);
21465
+ return ingestReplayBatchBuffered(this.deps, bySession, options);
21416
21466
  }
21417
21467
  if (options.abortSignal?.aborted) {
21418
21468
  throw options.abortSignal.reason instanceof Error ? options.abortSignal.reason : new Error("ingestReplayBatch aborted");
@@ -21477,55 +21527,6 @@ var TurnIngestionCoordinator = class {
21477
21527
  }
21478
21528
  }
21479
21529
  }
21480
- /** #3251 buffered capture: durable scope-pinned admission; await settles at durability. */
21481
- async ingestReplayBatchBuffered(bySession, options) {
21482
- const resolvedWriteTarget = options.writeNamespaceOverride ?? (resolveNamespaceCapabilities(this.deps.config).namespaces === true ? options.scopeProfileWritePlan?.writeNamespace : this.deps.config.defaultNamespace);
21483
- if (!resolvedWriteTarget) {
21484
- throw new StorageTargetRequiredError(
21485
- "accepted capture requires an explicit storage target (writeNamespaceOverride or scopeProfileWritePlan.writeNamespace)"
21486
- );
21487
- }
21488
- const pin = (turn) => {
21489
- const pinned = { ...turn, acceptedCapture: true, writeNamespaceOverride: resolvedWriteTarget };
21490
- if (options.codingContext) pinned.codingContext = options.codingContext;
21491
- if (options.principalOverride) pinned.principalOverride = options.principalOverride;
21492
- if (options.scopeProfileWritePlan) pinned.scopeProfileWritePlan = options.scopeProfileWritePlan;
21493
- return pinned;
21494
- };
21495
- const batches = [...bySession].map(([bufferKey, sessionTurns]) => ({ bufferKey, turns: sessionTurns.map(pin) }));
21496
- const outcomes = await this.deps.buffer.addTurnsBounded(batches);
21497
- if (outcomes === null) {
21498
- const refusedKey = batches.find((batch) => batch.turns.length > 0)?.bufferKey ?? "unknown";
21499
- throw new ReplayAdmissionRefusedError(
21500
- `durable observe capture refused: extraction buffer at entry capacity for batch containing ${refusedKey}`
21501
- );
21502
- }
21503
- await this.deps.buffer.flushPendingSave({ throwOnFailure: true });
21504
- if (options.archiveLcm !== false && this.deps.lcmEngine?.enabled) {
21505
- for (const [bufferKey, sessionTurns] of bySession) {
21506
- await this.deps.lcmEngine.observeMessages(
21507
- bufferKey,
21508
- sessionTurns.map((turn) => ({
21509
- role: turn.role,
21510
- content: turn.content,
21511
- parts: turn.parts,
21512
- rawContent: turn.rawContent,
21513
- sourceFormat: turn.sourceFormat
21514
- }))
21515
- );
21516
- }
21517
- }
21518
- for (const { bufferKey, outcome } of outcomes) {
21519
- if (outcome.decision !== "keep_buffering" && outcome.extractionTurns) {
21520
- queueBufferedCaptureScopeGroups(
21521
- this.deps.queueBufferedExtraction,
21522
- outcome.extractionTurns,
21523
- bufferKey,
21524
- options
21525
- );
21526
- }
21527
- }
21528
- }
21529
21530
  /**
21530
21531
  * Ingest a batch of bulk-import turns (#460). Like ingestReplayBatch, this
21531
21532
  * normalizes user/assistant turns into the extraction buffer and awaits
@@ -51111,7 +51112,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51111
51112
  }
51112
51113
  }
51113
51114
  if (sourceArchive.endsWith(".enc")) {
51114
- const { isEncryptedCapsuleFile } = await import("./capsule-crypto-YO5QJ6L3.js");
51115
+ const { isEncryptedCapsuleFile } = await import("./capsule-crypto-GWVG7LGC.js");
51115
51116
  const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
51116
51117
  if (encDetected) {
51117
51118
  throw new Error(
@@ -51274,7 +51275,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51274
51275
  const { parseExportBundle } = await import("./transfer/types.js");
51275
51276
  let decryptedBuf;
51276
51277
  try {
51277
- const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-YO5QJ6L3.js");
51278
+ const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-GWVG7LGC.js");
51278
51279
  decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
51279
51280
  } catch (decErr) {
51280
51281
  const msg = decErr instanceof Error ? decErr.message : String(decErr);
@@ -61542,6 +61543,15 @@ var AccessObserveWriteSurface = class {
61542
61543
  codingContext: this.deps.orchestrator.getCodingContextForSession(request.sessionKey) ?? void 0,
61543
61544
  abortSignal: observeAbortController.signal
61544
61545
  };
61546
+ const clientIdempotencyKey = request.idempotencyKey?.trim();
61547
+ if (clientIdempotencyKey) {
61548
+ ingestOptions.bufferAdmissionIdempotencyKey = scopeObserveBufferAdmissionIdempotencyKey({
61549
+ sessionKey: request.sessionKey,
61550
+ writeNamespace,
61551
+ principal: principalOverride,
61552
+ clientKey: clientIdempotencyKey
61553
+ });
61554
+ }
61545
61555
  if (request.authenticatedPrincipal !== void 0 && request.authenticatedPrincipal.trim().length > 0) {
61546
61556
  ingestOptions.sessionOwnerPrincipal = request.authenticatedPrincipal.trim();
61547
61557
  }
@@ -67512,4 +67522,4 @@ export {
67512
67522
  EngramAccessService,
67513
67523
  AccessAdminOpsSurface
67514
67524
  };
67515
- //# sourceMappingURL=chunk-FWDVW2BD.js.map
67525
+ //# sourceMappingURL=chunk-Z2OKWO35.js.map