@remnic/core 10.0.144 → 10.0.146

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 (385) hide show
  1. package/dist/access-admin-ops-surface.js +189 -183
  2. package/dist/access-cli.js +189 -183
  3. package/dist/access-cli.js.map +1 -1
  4. package/dist/access-correlation.d.ts +4 -0
  5. package/dist/access-correlation.d.ts.map +1 -0
  6. package/dist/access-correlation.js +10 -0
  7. package/dist/access-extraction-force-flush-preempt.js +189 -183
  8. package/dist/access-extraction-force-flush.js +189 -183
  9. package/dist/access-http-briefing.js +189 -183
  10. package/dist/access-http-query.js +189 -183
  11. package/dist/access-http.d.ts.map +1 -1
  12. package/dist/access-http.js +189 -183
  13. package/dist/access-identity-continuity-surface.js +189 -183
  14. package/dist/access-lcm-surface.js +189 -183
  15. package/dist/access-mcp.js +189 -183
  16. package/dist/access-observe-write-category.js +13 -13
  17. package/dist/access-observe-write-surface.d.ts.map +1 -1
  18. package/dist/access-observe-write-surface.js +189 -183
  19. package/dist/access-offline-manifest.js +11 -11
  20. package/dist/access-operations-batch.js +189 -183
  21. package/dist/access-operations.js +189 -183
  22. package/dist/access-recall-concurrency.js +189 -183
  23. package/dist/access-recall-diagnostics.js +2 -2
  24. package/dist/access-recall-response.js +189 -183
  25. package/dist/access-recall-surface.js +189 -183
  26. package/dist/access-schema.js +9 -9
  27. package/dist/access-service.d.ts.map +1 -1
  28. package/dist/access-service.js +189 -183
  29. package/dist/active-recall.js +33 -33
  30. package/dist/adapters/index.js +4 -4
  31. package/dist/adapters/registry.js +2 -2
  32. package/dist/auto-sync-PSZJHHXB.js +2 -2
  33. package/dist/briefing.js +22 -22
  34. package/dist/buffer-add-turns-bounded.d.ts +27 -0
  35. package/dist/buffer-add-turns-bounded.d.ts.map +1 -0
  36. package/dist/buffer-add-turns-bounded.js +13 -0
  37. package/dist/buffer-admission-idempotency.d.ts +18 -0
  38. package/dist/buffer-admission-idempotency.d.ts.map +1 -0
  39. package/dist/buffer-admission-idempotency.js +18 -0
  40. package/dist/buffer-persistence.d.ts +4 -0
  41. package/dist/buffer-persistence.d.ts.map +1 -1
  42. package/dist/buffer-persistence.js +1 -1
  43. package/dist/buffer-turn-helpers.d.ts.map +1 -1
  44. package/dist/buffer-turn-helpers.js +1 -1
  45. package/dist/buffer-types.d.ts.map +1 -1
  46. package/dist/buffer.d.ts +11 -0
  47. package/dist/buffer.d.ts.map +1 -1
  48. package/dist/buffer.js +15 -10
  49. package/dist/calibration.js +4 -4
  50. package/dist/{capsule-crypto-YO5QJ6L3.js → capsule-crypto-7FJQINUR.js} +2 -2
  51. package/dist/capsule-crypto-7FJQINUR.js.map +1 -0
  52. package/dist/causal-behavior.js +2 -2
  53. package/dist/causal-chain.js +2 -2
  54. package/dist/causal-consolidation.js +25 -25
  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-AWKD2A73.js → chunk-2NGTY22Z.js} +12 -12
  59. package/dist/{chunk-BXLOS5AJ.js → chunk-2NLLXCJG.js} +2 -2
  60. package/dist/{chunk-EDGWAJLS.js → chunk-2WD2TRTJ.js} +2 -2
  61. package/dist/{chunk-AZFQXYIJ.js → chunk-33VVVP57.js} +9 -2
  62. package/dist/{chunk-AZFQXYIJ.js.map → chunk-33VVVP57.js.map} +1 -1
  63. package/dist/{chunk-AOZYOS4G.js → chunk-3MXQ5XJT.js} +2 -2
  64. package/dist/{chunk-XGDWR2L6.js → chunk-3NLBDM7V.js} +2 -2
  65. package/dist/{chunk-XVZA6VXC.js → chunk-3SL52JKD.js} +4 -4
  66. package/dist/chunk-4IJBNRMZ.js +45 -0
  67. package/dist/chunk-4IJBNRMZ.js.map +1 -0
  68. package/dist/{chunk-LE27GU4M.js → chunk-4N4BAO66.js} +2 -2
  69. package/dist/{chunk-UC3KG7KX.js → chunk-4WX32RLU.js} +3 -3
  70. package/dist/{chunk-WVV54HL2.js → chunk-4Y4LPKFV.js} +7 -7
  71. package/dist/{chunk-MFDEEOOZ.js → chunk-5BE3FLKL.js} +4 -4
  72. package/dist/chunk-5EP2V675.js +60 -0
  73. package/dist/chunk-5EP2V675.js.map +1 -0
  74. package/dist/chunk-5JD4DXQX.js +91 -0
  75. package/dist/chunk-5JD4DXQX.js.map +1 -0
  76. package/dist/{chunk-MPQQIHA7.js → chunk-5LL2X5SO.js} +2 -2
  77. package/dist/{chunk-CBJRI6VJ.js → chunk-64TIBZPZ.js} +2 -2
  78. package/dist/{chunk-LL7WIK2Z.js → chunk-6NPLVV6M.js} +2 -2
  79. package/dist/{chunk-DC55RIEZ.js → chunk-73TPOGS4.js} +9 -9
  80. package/dist/{chunk-XF2QQQXO.js → chunk-7P72BY4F.js} +2 -2
  81. package/dist/{chunk-XUKBX3GO.js → chunk-7YHU3NJD.js} +15 -15
  82. package/dist/chunk-7ZFB4VZS.js +73 -0
  83. package/dist/chunk-7ZFB4VZS.js.map +1 -0
  84. package/dist/{chunk-6CSWINXA.js → chunk-AIDFYS4Z.js} +14 -14
  85. package/dist/{chunk-E23BTVB2.js → chunk-AO5LKFGO.js} +4 -4
  86. package/dist/{chunk-G4NKURT4.js → chunk-C6S353AG.js} +30 -1
  87. package/dist/chunk-C6S353AG.js.map +1 -0
  88. package/dist/{chunk-JY3WATTF.js → chunk-C6Z3H23R.js} +2 -2
  89. package/dist/{chunk-FWDVW2BD.js → chunk-CAWVPY6E.js} +499 -480
  90. package/dist/chunk-CAWVPY6E.js.map +1 -0
  91. package/dist/{chunk-VAVCFMMQ.js → chunk-CJ2SYU4S.js} +2 -2
  92. package/dist/{chunk-WZ55LEUN.js → chunk-CLVILSBR.js} +22 -22
  93. package/dist/{chunk-B72X3KWL.js → chunk-COJBTRTQ.js} +2 -2
  94. package/dist/{chunk-NWS4I4K7.js → chunk-CVCKYMVX.js} +2 -2
  95. package/dist/{chunk-2LQUPEWF.js → chunk-EJ6EPEMP.js} +36 -33
  96. package/dist/chunk-EJ6EPEMP.js.map +1 -0
  97. package/dist/{chunk-6MEQHJTF.js → chunk-FMFCQRDM.js} +3 -3
  98. package/dist/{chunk-A3EWNU5V.js → chunk-G2TK5YYU.js} +2 -2
  99. package/dist/{chunk-WWQMZBDI.js → chunk-GCHM5BYL.js} +4 -4
  100. package/dist/{chunk-RHQSAXN3.js → chunk-GCQIXPWZ.js} +2 -2
  101. package/dist/{chunk-VEFGHRKV.js → chunk-GMO3BGOF.js} +1 -1
  102. package/dist/{chunk-I3UBDUHO.js → chunk-H6OTEBPK.js} +2 -2
  103. package/dist/{chunk-MIG4KRYU.js → chunk-HADCITEA.js} +8 -8
  104. package/dist/{chunk-M43GO34S.js → chunk-HASIFVWH.js} +2 -2
  105. package/dist/{chunk-RQBYC7EK.js → chunk-HLWXCDUQ.js} +2 -2
  106. package/dist/{chunk-JVSHXYOO.js → chunk-HOGSBSCH.js} +2 -2
  107. package/dist/{chunk-BFPF5N3H.js → chunk-HXFIILGF.js} +4 -4
  108. package/dist/{chunk-2JAT4S7N.js → chunk-IMULTENA.js} +2 -2
  109. package/dist/{chunk-B4I37XX6.js → chunk-IOMWNBMH.js} +15 -15
  110. package/dist/{chunk-74BX5NCU.js → chunk-IXR3SNHL.js} +2 -2
  111. package/dist/{chunk-2S4XW47C.js → chunk-J3EU5H7W.js} +2 -2
  112. package/dist/{chunk-EUL3S3LE.js → chunk-J5WI4QRP.js} +4 -4
  113. package/dist/{chunk-N7LYEA3K.js → chunk-JOQZRIL4.js} +2 -2
  114. package/dist/{chunk-DLX277NS.js → chunk-JXAHMR5L.js} +2 -2
  115. package/dist/{chunk-POXJ3KXJ.js → chunk-KG7RO5XU.js} +3 -3
  116. package/dist/{chunk-JVNGFQJN.js → chunk-KJ3Z7JHF.js} +1 -1
  117. package/dist/{chunk-JVNGFQJN.js.map → chunk-KJ3Z7JHF.js.map} +1 -1
  118. package/dist/{chunk-R45L4TV6.js → chunk-KQAFEZQX.js} +6 -6
  119. package/dist/{chunk-L6CMR5OI.js → chunk-L2DACC2T.js} +2 -2
  120. package/dist/{chunk-77SYM565.js → chunk-LD7I5AZW.js} +9 -9
  121. package/dist/{chunk-OYUTSLBU.js → chunk-LKXED2DT.js} +14 -14
  122. package/dist/{chunk-3KQPFIVV.js → chunk-LMFINE37.js} +2 -2
  123. package/dist/{chunk-OYHGCAGQ.js → chunk-LYM65HMS.js} +2 -2
  124. package/dist/{chunk-OV3XHQAB.js → chunk-LYSE5FNF.js} +43 -48
  125. package/dist/chunk-LYSE5FNF.js.map +1 -0
  126. package/dist/{chunk-MEALRZYB.js → chunk-MKJBZR7J.js} +2 -2
  127. package/dist/{chunk-AGJJTD3Q.js → chunk-MONIOXEG.js} +2 -2
  128. package/dist/{chunk-RVUD4WN3.js → chunk-ND7ZKKVK.js} +2 -2
  129. package/dist/{chunk-PKPW7MXT.js → chunk-O7CHKXSF.js} +4 -4
  130. package/dist/{chunk-UH3FPX3L.js → chunk-OM5ESBES.js} +2 -2
  131. package/dist/{chunk-Y6IRNAWT.js → chunk-OSM5MKAU.js} +2 -2
  132. package/dist/chunk-PXY2B7BG.js +51 -0
  133. package/dist/chunk-PXY2B7BG.js.map +1 -0
  134. package/dist/{chunk-5IGWEYNV.js → chunk-QDY4TSKK.js} +3 -3
  135. package/dist/{chunk-IJBOJJVS.js → chunk-QP6CBFYL.js} +2 -2
  136. package/dist/{chunk-MZCGHPIJ.js → chunk-RB7NXZ2E.js} +2 -2
  137. package/dist/{chunk-FJVWKIDV.js → chunk-RMPHPB6B.js} +2 -2
  138. package/dist/{chunk-QPOWOQYH.js → chunk-RXXXT5PA.js} +6 -6
  139. package/dist/{chunk-FYH62SF3.js → chunk-S627NPRV.js} +6 -6
  140. package/dist/{chunk-YCNSMVWG.js → chunk-SDGD6MYV.js} +64 -3
  141. package/dist/chunk-SDGD6MYV.js.map +1 -0
  142. package/dist/{chunk-6DHSEJIO.js → chunk-SXVU57SW.js} +2 -2
  143. package/dist/{chunk-YWXFO7G2.js → chunk-TAUBEJ37.js} +5 -5
  144. package/dist/{chunk-GOZXQNIM.js → chunk-TH6OYP6I.js} +3 -3
  145. package/dist/{chunk-QJJURIZV.js → chunk-TNACU47L.js} +3 -3
  146. package/dist/{chunk-4Y26S76X.js → chunk-TRFSTCQK.js} +14 -2
  147. package/dist/chunk-TRFSTCQK.js.map +1 -0
  148. package/dist/{chunk-YLTU2DC4.js → chunk-U2PSE7MB.js} +2 -2
  149. package/dist/{chunk-2VS3DAXE.js → chunk-V3D2OOVE.js} +2 -2
  150. package/dist/{chunk-PCMGMPQZ.js → chunk-X4EF7IG3.js} +4 -4
  151. package/dist/{chunk-DQEMWVMT.js → chunk-X7Y7WX73.js} +1 -1
  152. package/dist/{chunk-CBTERRF5.js → chunk-XCJDDXJX.js} +2 -2
  153. package/dist/{chunk-RSRHWNNM.js → chunk-XPDMJC5O.js} +3 -3
  154. package/dist/{chunk-NLSMLRH4.js → chunk-XTGQTSZZ.js} +2 -2
  155. package/dist/{chunk-EZ25VE3G.js → chunk-YNDLCWXS.js} +4 -4
  156. package/dist/chunk-YRHBSYQR.js +15 -0
  157. package/dist/chunk-YRHBSYQR.js.map +1 -0
  158. package/dist/{chunk-VEPT6DXJ.js → chunk-YVK7WZYC.js} +5 -5
  159. package/dist/{chunk-2IMKMMUS.js → chunk-ZDWZYKCL.js} +11 -11
  160. package/dist/{chunk-FAPJG3OG.js → chunk-ZDZJNXL6.js} +4 -4
  161. package/dist/{chunk-BNQJKWWZ.js → chunk-ZG4GNPRE.js} +8 -8
  162. package/dist/cli.js +189 -183
  163. package/dist/coding/export-okf-codegraph.js +21 -21
  164. package/dist/coding/pre-action-gate.js +2 -2
  165. package/dist/compounding/engine.js +23 -23
  166. package/dist/config.js +33 -33
  167. package/dist/connectors/codex-materialize-runner.js +22 -22
  168. package/dist/connectors/index.js +22 -22
  169. package/dist/contradiction/index.js +7 -7
  170. package/dist/convergence-refresh.js +24 -24
  171. package/dist/corpus-watermark.js +24 -24
  172. package/dist/dashboard-runtime.js +2 -2
  173. package/dist/deep-recall-http-glue.js +10 -10
  174. package/dist/deep-recall.js +2 -2
  175. package/dist/entity-retrieval.js +25 -25
  176. package/dist/event-order-recall.js +4 -4
  177. package/dist/explicit-capture.js +189 -183
  178. package/dist/extraction-span-materialize.js +2 -2
  179. package/dist/extraction.js +32 -32
  180. package/dist/{graph-edge-decay-EKWXRBWF.js → graph-edge-decay-BC3IO2J4.js} +6 -6
  181. package/dist/graph-edge-decay-BC3IO2J4.js.map +1 -0
  182. package/dist/graph-jsonl.js +4 -4
  183. package/dist/graph-snapshot.js +4 -4
  184. package/dist/graph.js +5 -5
  185. package/dist/harmonic-retrieval.js +22 -22
  186. package/dist/index.js +324 -318
  187. package/dist/lcm/engine.js +3 -3
  188. package/dist/lcm/index.js +9 -9
  189. package/dist/local-llm.js +3 -3
  190. package/dist/location/index.js +23 -23
  191. package/dist/maintenance/memory-governance.js +22 -22
  192. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +22 -22
  193. package/dist/maintenance/rebuild-memory-projection-runner.js +24 -24
  194. package/dist/maintenance/rebuild-memory-projection.js +23 -23
  195. package/dist/memory-browse.js +7 -7
  196. package/dist/memory-subject.js +1 -1
  197. package/dist/namespaces/migrate.js +23 -23
  198. package/dist/namespaces/search.js +7 -7
  199. package/dist/namespaces/storage.js +22 -22
  200. package/dist/offline-sync-changeset-generations.js +3 -3
  201. package/dist/offline-sync-embedding-generation.js +2 -2
  202. package/dist/offline-sync-snapshot-stream.js +6 -6
  203. package/dist/offline-sync.js +7 -7
  204. package/dist/operator-doctor-corpus.js +25 -25
  205. package/dist/operator-toolkit.js +43 -43
  206. package/dist/orchestration/backlog-scheduler.js +190 -184
  207. package/dist/orchestration/backlog-scheduler.js.map +1 -1
  208. package/dist/orchestration/buffer-drain-runner.js +190 -184
  209. package/dist/orchestration/maintenance.js +34 -34
  210. package/dist/orchestration/recall-internal.d.ts.map +1 -1
  211. package/dist/orchestration/turn-ingestion-buffered.d.ts +13 -0
  212. package/dist/orchestration/turn-ingestion-buffered.d.ts.map +1 -0
  213. package/dist/orchestration/turn-ingestion.d.ts +2 -2
  214. package/dist/orchestration/turn-ingestion.d.ts.map +1 -1
  215. package/dist/orchestrator.js +189 -183
  216. package/dist/qmd.js +3 -3
  217. package/dist/recall-attempt-timing.d.ts +18 -0
  218. package/dist/recall-attempt-timing.d.ts.map +1 -0
  219. package/dist/recall-attempt-timing.js +14 -0
  220. package/dist/recall-attempt-timing.js.map +1 -0
  221. package/dist/recall-enrichment-promise.d.ts +22 -0
  222. package/dist/recall-enrichment-promise.d.ts.map +1 -0
  223. package/dist/recall-enrichment-promise.js +10 -0
  224. package/dist/recall-enrichment-promise.js.map +1 -0
  225. package/dist/recall-explain-renderer.js +3 -3
  226. package/dist/recall-navigate-access.js +2 -2
  227. package/dist/recall-navigate-disclosure.js +2 -2
  228. package/dist/recall-navigate.js +2 -2
  229. package/dist/recall-navigation.js +189 -183
  230. package/dist/recall-phase2-timing.d.ts +44 -0
  231. package/dist/recall-phase2-timing.d.ts.map +1 -0
  232. package/dist/recall-phase2-timing.js +22 -0
  233. package/dist/recall-phase2-timing.js.map +1 -0
  234. package/dist/recall-state-view-admission.js +6 -6
  235. package/dist/recall-timings.d.ts +35 -0
  236. package/dist/recall-timings.d.ts.map +1 -1
  237. package/dist/recall-timings.js +2 -1
  238. package/dist/recall-why-service.js +8 -8
  239. package/dist/recall-xray-cli.js +4 -4
  240. package/dist/recall-xray-renderer.js +3 -3
  241. package/dist/recall-xray.js +2 -2
  242. package/dist/reconcile/manifest.js +3 -3
  243. package/dist/{resolution-A3NAI3YE.js → resolution-TCO63RRC.js} +8 -8
  244. package/dist/resolution-TCO63RRC.js.map +1 -0
  245. package/dist/resume-bundles.js +34 -34
  246. package/dist/salvage-envelope.js +1 -1
  247. package/dist/search/factory.js +6 -6
  248. package/dist/search/index.js +10 -10
  249. package/dist/semantic-consolidation.js +23 -23
  250. package/dist/semantic-rule-promotion.js +22 -22
  251. package/dist/semantic-rule-verifier.js +22 -22
  252. package/dist/source-agent-qualifier.js +25 -25
  253. package/dist/standup/build.js +22 -22
  254. package/dist/storage/buffer-drain-claims.js +2 -2
  255. package/dist/storage/buffer-session-files.d.ts +4 -0
  256. package/dist/storage/buffer-session-files.d.ts.map +1 -1
  257. package/dist/storage/buffer-session-files.js +2 -2
  258. package/dist/storage.d.ts +1 -0
  259. package/dist/storage.d.ts.map +1 -1
  260. package/dist/storage.js +22 -22
  261. package/dist/subject-config.js +1 -1
  262. package/dist/summarizer.js +5 -5
  263. package/dist/support-passport/index.js +8 -8
  264. package/dist/transfer/autodetect.js +1 -1
  265. package/dist/transfer/backup.js +2 -2
  266. package/dist/transfer/capsule-export.js +3 -3
  267. package/dist/transfer/capsule-import.js +2 -2
  268. package/dist/transfer/export-okf.js +23 -23
  269. package/dist/types.d.ts +2 -0
  270. package/dist/types.d.ts.map +1 -1
  271. package/dist/types.js +1 -1
  272. package/dist/verified-recall.js +22 -22
  273. package/dist/who-knows-cli.js +23 -23
  274. package/dist/who-knows.js +22 -22
  275. package/dist/write-envelope.js +1 -1
  276. package/package.json +2 -2
  277. package/src/access-correlation.ts +17 -0
  278. package/src/access-http.ts +7 -8
  279. package/src/access-observe-write-surface.ts +10 -0
  280. package/src/access-service.ts +3 -1
  281. package/src/buffer-add-turns-bounded.ts +97 -0
  282. package/src/buffer-admission-idempotency.test.ts +297 -0
  283. package/src/buffer-admission-idempotency.ts +67 -0
  284. package/src/buffer-drain-handover.test.ts +1 -0
  285. package/src/buffer-persistence.ts +19 -1
  286. package/src/buffer-turn-helpers.ts +8 -1
  287. package/src/buffer-types.ts +1 -0
  288. package/src/buffer.ts +40 -43
  289. package/src/orchestration/recall-internal.ts +63 -75
  290. package/src/orchestration/turn-ingestion-buffered.ts +74 -0
  291. package/src/orchestration/turn-ingestion.ts +4 -78
  292. package/src/recall-attempt-timing.ts +78 -0
  293. package/src/recall-enrichment-promise.ts +62 -0
  294. package/src/recall-phase2-timing.ts +146 -0
  295. package/src/recall-timings-access.test.ts +140 -2
  296. package/src/recall-timings-request-contract.test.ts +488 -0
  297. package/src/recall-timings.ts +70 -0
  298. package/src/storage/buffer-session-files.ts +71 -0
  299. package/src/storage.ts +1 -0
  300. package/src/types.ts +2 -0
  301. package/dist/chunk-2LQUPEWF.js.map +0 -1
  302. package/dist/chunk-4Y26S76X.js.map +0 -1
  303. package/dist/chunk-FWDVW2BD.js.map +0 -1
  304. package/dist/chunk-G4NKURT4.js.map +0 -1
  305. package/dist/chunk-OV3XHQAB.js.map +0 -1
  306. package/dist/chunk-YCNSMVWG.js.map +0 -1
  307. /package/dist/{capsule-crypto-YO5QJ6L3.js.map → access-correlation.js.map} +0 -0
  308. /package/dist/{graph-edge-decay-EKWXRBWF.js.map → buffer-add-turns-bounded.js.map} +0 -0
  309. /package/dist/{resolution-A3NAI3YE.js.map → buffer-admission-idempotency.js.map} +0 -0
  310. /package/dist/{chunk-AWKD2A73.js.map → chunk-2NGTY22Z.js.map} +0 -0
  311. /package/dist/{chunk-BXLOS5AJ.js.map → chunk-2NLLXCJG.js.map} +0 -0
  312. /package/dist/{chunk-EDGWAJLS.js.map → chunk-2WD2TRTJ.js.map} +0 -0
  313. /package/dist/{chunk-AOZYOS4G.js.map → chunk-3MXQ5XJT.js.map} +0 -0
  314. /package/dist/{chunk-XGDWR2L6.js.map → chunk-3NLBDM7V.js.map} +0 -0
  315. /package/dist/{chunk-XVZA6VXC.js.map → chunk-3SL52JKD.js.map} +0 -0
  316. /package/dist/{chunk-LE27GU4M.js.map → chunk-4N4BAO66.js.map} +0 -0
  317. /package/dist/{chunk-UC3KG7KX.js.map → chunk-4WX32RLU.js.map} +0 -0
  318. /package/dist/{chunk-WVV54HL2.js.map → chunk-4Y4LPKFV.js.map} +0 -0
  319. /package/dist/{chunk-MFDEEOOZ.js.map → chunk-5BE3FLKL.js.map} +0 -0
  320. /package/dist/{chunk-MPQQIHA7.js.map → chunk-5LL2X5SO.js.map} +0 -0
  321. /package/dist/{chunk-CBJRI6VJ.js.map → chunk-64TIBZPZ.js.map} +0 -0
  322. /package/dist/{chunk-LL7WIK2Z.js.map → chunk-6NPLVV6M.js.map} +0 -0
  323. /package/dist/{chunk-DC55RIEZ.js.map → chunk-73TPOGS4.js.map} +0 -0
  324. /package/dist/{chunk-XF2QQQXO.js.map → chunk-7P72BY4F.js.map} +0 -0
  325. /package/dist/{chunk-XUKBX3GO.js.map → chunk-7YHU3NJD.js.map} +0 -0
  326. /package/dist/{chunk-6CSWINXA.js.map → chunk-AIDFYS4Z.js.map} +0 -0
  327. /package/dist/{chunk-E23BTVB2.js.map → chunk-AO5LKFGO.js.map} +0 -0
  328. /package/dist/{chunk-JY3WATTF.js.map → chunk-C6Z3H23R.js.map} +0 -0
  329. /package/dist/{chunk-VAVCFMMQ.js.map → chunk-CJ2SYU4S.js.map} +0 -0
  330. /package/dist/{chunk-WZ55LEUN.js.map → chunk-CLVILSBR.js.map} +0 -0
  331. /package/dist/{chunk-B72X3KWL.js.map → chunk-COJBTRTQ.js.map} +0 -0
  332. /package/dist/{chunk-NWS4I4K7.js.map → chunk-CVCKYMVX.js.map} +0 -0
  333. /package/dist/{chunk-6MEQHJTF.js.map → chunk-FMFCQRDM.js.map} +0 -0
  334. /package/dist/{chunk-A3EWNU5V.js.map → chunk-G2TK5YYU.js.map} +0 -0
  335. /package/dist/{chunk-WWQMZBDI.js.map → chunk-GCHM5BYL.js.map} +0 -0
  336. /package/dist/{chunk-RHQSAXN3.js.map → chunk-GCQIXPWZ.js.map} +0 -0
  337. /package/dist/{chunk-VEFGHRKV.js.map → chunk-GMO3BGOF.js.map} +0 -0
  338. /package/dist/{chunk-I3UBDUHO.js.map → chunk-H6OTEBPK.js.map} +0 -0
  339. /package/dist/{chunk-MIG4KRYU.js.map → chunk-HADCITEA.js.map} +0 -0
  340. /package/dist/{chunk-M43GO34S.js.map → chunk-HASIFVWH.js.map} +0 -0
  341. /package/dist/{chunk-RQBYC7EK.js.map → chunk-HLWXCDUQ.js.map} +0 -0
  342. /package/dist/{chunk-JVSHXYOO.js.map → chunk-HOGSBSCH.js.map} +0 -0
  343. /package/dist/{chunk-BFPF5N3H.js.map → chunk-HXFIILGF.js.map} +0 -0
  344. /package/dist/{chunk-2JAT4S7N.js.map → chunk-IMULTENA.js.map} +0 -0
  345. /package/dist/{chunk-B4I37XX6.js.map → chunk-IOMWNBMH.js.map} +0 -0
  346. /package/dist/{chunk-74BX5NCU.js.map → chunk-IXR3SNHL.js.map} +0 -0
  347. /package/dist/{chunk-2S4XW47C.js.map → chunk-J3EU5H7W.js.map} +0 -0
  348. /package/dist/{chunk-EUL3S3LE.js.map → chunk-J5WI4QRP.js.map} +0 -0
  349. /package/dist/{chunk-N7LYEA3K.js.map → chunk-JOQZRIL4.js.map} +0 -0
  350. /package/dist/{chunk-DLX277NS.js.map → chunk-JXAHMR5L.js.map} +0 -0
  351. /package/dist/{chunk-POXJ3KXJ.js.map → chunk-KG7RO5XU.js.map} +0 -0
  352. /package/dist/{chunk-R45L4TV6.js.map → chunk-KQAFEZQX.js.map} +0 -0
  353. /package/dist/{chunk-L6CMR5OI.js.map → chunk-L2DACC2T.js.map} +0 -0
  354. /package/dist/{chunk-77SYM565.js.map → chunk-LD7I5AZW.js.map} +0 -0
  355. /package/dist/{chunk-OYUTSLBU.js.map → chunk-LKXED2DT.js.map} +0 -0
  356. /package/dist/{chunk-3KQPFIVV.js.map → chunk-LMFINE37.js.map} +0 -0
  357. /package/dist/{chunk-OYHGCAGQ.js.map → chunk-LYM65HMS.js.map} +0 -0
  358. /package/dist/{chunk-MEALRZYB.js.map → chunk-MKJBZR7J.js.map} +0 -0
  359. /package/dist/{chunk-AGJJTD3Q.js.map → chunk-MONIOXEG.js.map} +0 -0
  360. /package/dist/{chunk-RVUD4WN3.js.map → chunk-ND7ZKKVK.js.map} +0 -0
  361. /package/dist/{chunk-PKPW7MXT.js.map → chunk-O7CHKXSF.js.map} +0 -0
  362. /package/dist/{chunk-UH3FPX3L.js.map → chunk-OM5ESBES.js.map} +0 -0
  363. /package/dist/{chunk-Y6IRNAWT.js.map → chunk-OSM5MKAU.js.map} +0 -0
  364. /package/dist/{chunk-5IGWEYNV.js.map → chunk-QDY4TSKK.js.map} +0 -0
  365. /package/dist/{chunk-IJBOJJVS.js.map → chunk-QP6CBFYL.js.map} +0 -0
  366. /package/dist/{chunk-MZCGHPIJ.js.map → chunk-RB7NXZ2E.js.map} +0 -0
  367. /package/dist/{chunk-FJVWKIDV.js.map → chunk-RMPHPB6B.js.map} +0 -0
  368. /package/dist/{chunk-QPOWOQYH.js.map → chunk-RXXXT5PA.js.map} +0 -0
  369. /package/dist/{chunk-FYH62SF3.js.map → chunk-S627NPRV.js.map} +0 -0
  370. /package/dist/{chunk-6DHSEJIO.js.map → chunk-SXVU57SW.js.map} +0 -0
  371. /package/dist/{chunk-YWXFO7G2.js.map → chunk-TAUBEJ37.js.map} +0 -0
  372. /package/dist/{chunk-GOZXQNIM.js.map → chunk-TH6OYP6I.js.map} +0 -0
  373. /package/dist/{chunk-QJJURIZV.js.map → chunk-TNACU47L.js.map} +0 -0
  374. /package/dist/{chunk-YLTU2DC4.js.map → chunk-U2PSE7MB.js.map} +0 -0
  375. /package/dist/{chunk-2VS3DAXE.js.map → chunk-V3D2OOVE.js.map} +0 -0
  376. /package/dist/{chunk-PCMGMPQZ.js.map → chunk-X4EF7IG3.js.map} +0 -0
  377. /package/dist/{chunk-DQEMWVMT.js.map → chunk-X7Y7WX73.js.map} +0 -0
  378. /package/dist/{chunk-CBTERRF5.js.map → chunk-XCJDDXJX.js.map} +0 -0
  379. /package/dist/{chunk-RSRHWNNM.js.map → chunk-XPDMJC5O.js.map} +0 -0
  380. /package/dist/{chunk-NLSMLRH4.js.map → chunk-XTGQTSZZ.js.map} +0 -0
  381. /package/dist/{chunk-EZ25VE3G.js.map → chunk-YNDLCWXS.js.map} +0 -0
  382. /package/dist/{chunk-VEPT6DXJ.js.map → chunk-YVK7WZYC.js.map} +0 -0
  383. /package/dist/{chunk-2IMKMMUS.js.map → chunk-ZDWZYKCL.js.map} +0 -0
  384. /package/dist/{chunk-FAPJG3OG.js.map → chunk-ZDZJNXL6.js.map} +0 -0
  385. /package/dist/{chunk-BNQJKWWZ.js.map → chunk-ZG4GNPRE.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runGraphEdgeDecayMaintenanceAcrossNamespaces
3
- } from "./chunk-GOZXQNIM.js";
3
+ } from "./chunk-TH6OYP6I.js";
4
4
  import {
5
5
  normalizeDreamsStatusWindowHours,
6
6
  recordDreamsPhaseRun
@@ -16,18 +16,12 @@ import {
16
16
  syncWearableSource,
17
17
  wearableSourceLabel
18
18
  } from "./chunk-ZZYJNT2J.js";
19
- import {
20
- chatgptReplayNormalizer
21
- } from "./chunk-MMACM5G2.js";
22
19
  import {
23
20
  claudeReplayNormalizer
24
21
  } from "./chunk-54BGIBCR.js";
25
22
  import {
26
23
  openclawReplayNormalizer
27
24
  } from "./chunk-H4CKS5B2.js";
28
- import {
29
- importSqlite
30
- } from "./chunk-PYHOAXTI.js";
31
25
  import {
32
26
  exportWorkBoardMarkdown,
33
27
  exportWorkBoardSnapshot,
@@ -37,12 +31,12 @@ import {
37
31
  WorkStorage
38
32
  } from "./chunk-MPC7TYTZ.js";
39
33
  import {
40
- exportJsonBundle
41
- } from "./chunk-UP6MOYCB.js";
34
+ chatgptReplayNormalizer
35
+ } from "./chunk-MMACM5G2.js";
42
36
  import {
43
37
  exportOkfBundle,
44
38
  parseIncludeStatus
45
- } from "./chunk-VEPT6DXJ.js";
39
+ } from "./chunk-YVK7WZYC.js";
46
40
  import {
47
41
  exportSqlite
48
42
  } from "./chunk-BV2TIZ4F.js";
@@ -50,10 +44,8 @@ import {
50
44
  importMarkdownBundle
51
45
  } from "./chunk-HDDRVXX4.js";
52
46
  import {
53
- SupportPassportAccessSurface,
54
- createSupportPassportModelAdapter,
55
- supportsSupportPassportPrivateFiles
56
- } from "./chunk-77SYM565.js";
47
+ importSqlite
48
+ } from "./chunk-PYHOAXTI.js";
57
49
  import {
58
50
  detectImportFormat
59
51
  } from "./chunk-OZKVVUJB.js";
@@ -62,13 +54,16 @@ import {
62
54
  } from "./chunk-2DL3OFLD.js";
63
55
  import {
64
56
  backupMemoryDir
65
- } from "./chunk-BXLOS5AJ.js";
57
+ } from "./chunk-2NLLXCJG.js";
66
58
  import {
67
59
  exportMarkdownBundle
68
60
  } from "./chunk-765K3SAT.js";
69
61
  import {
70
62
  importCapsule
71
- } from "./chunk-RHQSAXN3.js";
63
+ } from "./chunk-GCQIXPWZ.js";
64
+ import {
65
+ exportJsonBundle
66
+ } from "./chunk-UP6MOYCB.js";
72
67
  import {
73
68
  isSharedContextWriteInputError,
74
69
  parseSharedWriteOutputControls
@@ -76,16 +71,12 @@ import {
76
71
  import {
77
72
  buildStandup,
78
73
  parseStandupDate
79
- } from "./chunk-RVUD4WN3.js";
80
- import {
81
- buildReplayNormalizerRegistry,
82
- clampBatchSize,
83
- runReplay
84
- } from "./chunk-FGDKJJZS.js";
74
+ } from "./chunk-ND7ZKKVK.js";
85
75
  import {
86
- isReplaySource,
87
- normalizeReplaySessionKey
88
- } from "./chunk-AJVLDJU6.js";
76
+ SupportPassportAccessSurface,
77
+ createSupportPassportModelAdapter,
78
+ supportsSupportPassportPrivateFiles
79
+ } from "./chunk-LD7I5AZW.js";
89
80
  import {
90
81
  RoutingRulesStore
91
82
  } from "./chunk-TBUEE7XF.js";
@@ -95,13 +86,19 @@ import {
95
86
  import {
96
87
  ActivityStore,
97
88
  MaintenanceScheduler
98
- } from "./chunk-XUKBX3GO.js";
89
+ } from "./chunk-7YHU3NJD.js";
99
90
  import {
100
91
  runPeerProfileReasoner
101
92
  } from "./chunk-I74SUMNI.js";
102
93
  import {
103
- migrateFromEngram
104
- } from "./chunk-VZAKYDMJ.js";
94
+ buildReplayNormalizerRegistry,
95
+ clampBatchSize,
96
+ runReplay
97
+ } from "./chunk-FGDKJJZS.js";
98
+ import {
99
+ isReplaySource,
100
+ normalizeReplaySessionKey
101
+ } from "./chunk-AJVLDJU6.js";
105
102
  import {
106
103
  TailscaleHelper
107
104
  } from "./chunk-SZDLX763.js";
@@ -113,10 +110,13 @@ import {
113
110
  } from "./chunk-EDR6CVWZ.js";
114
111
  import {
115
112
  rebuildMemoryLifecycleLedger
116
- } from "./chunk-OYHGCAGQ.js";
113
+ } from "./chunk-LYM65HMS.js";
117
114
  import {
118
115
  rebuildObservations
119
116
  } from "./chunk-WHCD4Z3D.js";
117
+ import {
118
+ migrateFromEngram
119
+ } from "./chunk-VZAKYDMJ.js";
120
120
  import {
121
121
  backfillMemoryStorage,
122
122
  runLocationBackfill,
@@ -124,35 +124,32 @@ import {
124
124
  runLocationDay,
125
125
  runLocationStatus,
126
126
  runLocationSync
127
- } from "./chunk-RSRHWNNM.js";
127
+ } from "./chunk-XPDMJC5O.js";
128
128
  import {
129
129
  archiveObservations
130
130
  } from "./chunk-7IGMKQWK.js";
131
131
  import {
132
132
  LcmEngine
133
- } from "./chunk-BNQJKWWZ.js";
134
- import {
135
- executeResolution,
136
- isValidResolutionVerb,
137
- runPreferenceDriftScan
138
- } from "./chunk-PCMGMPQZ.js";
133
+ } from "./chunk-ZG4GNPRE.js";
139
134
  import {
140
135
  chunkTranscriptEntries
141
136
  } from "./chunk-TECVW3JP.js";
142
137
  import {
143
138
  cleanupConversationChunks
144
139
  } from "./chunk-C5JF6EZ7.js";
145
- import {
146
- runCompatChecks
147
- } from "./chunk-2524MOWK.js";
148
140
  import {
149
141
  CompoundingEngine,
150
142
  defaultTierMigrationCycleBudget
151
- } from "./chunk-POXJ3KXJ.js";
143
+ } from "./chunk-KG7RO5XU.js";
152
144
  import {
153
145
  SharedContextManager,
154
146
  UNATTRIBUTED_ACCESS_WRITE_ORIGIN
155
147
  } from "./chunk-JVBAPAWZ.js";
148
+ import {
149
+ executeResolution,
150
+ isValidResolutionVerb,
151
+ runPreferenceDriftScan
152
+ } from "./chunk-X4EF7IG3.js";
156
153
  import {
157
154
  getBulkImportSource,
158
155
  listBulkImportSources,
@@ -184,18 +181,11 @@ import {
184
181
  isCodingGraphInstalled
185
182
  } from "./chunk-VQ7B2Q6M.js";
186
183
  import {
187
- WriteQuarantineStore
188
- } from "./chunk-BANSBRNX.js";
189
- import {
190
- WriteRateLimiter
191
- } from "./chunk-TB6CBZ5V.js";
184
+ runCompatChecks
185
+ } from "./chunk-2524MOWK.js";
192
186
  import {
193
187
  AdapterRegistry
194
- } from "./chunk-WWQMZBDI.js";
195
- import {
196
- compareVerifiedEpisodeResults,
197
- searchVerifiedEpisodes
198
- } from "./chunk-Y6IRNAWT.js";
188
+ } from "./chunk-GCHM5BYL.js";
199
189
  import {
200
190
  WHO_KNOWS_DEFAULT_LIMIT,
201
191
  WHO_KNOWS_MCP_TOOLS,
@@ -203,17 +193,13 @@ import {
203
193
  handleWhoKnowsHttpQuery,
204
194
  loadWhoKnowsEntities,
205
195
  validateWhoKnowsInput
206
- } from "./chunk-JVSHXYOO.js";
196
+ } from "./chunk-HOGSBSCH.js";
207
197
  import {
208
- getTrustZoneStoreStatus,
209
- isTrustZoneName,
210
- listTrustZoneRecords,
211
- promoteTrustZoneRecord,
212
- scoreTrustZoneProvenance,
213
- searchTrustZoneRecords,
214
- seedTrustZoneDemoDataset,
215
- summarizeTrustZonePromotionReadiness
216
- } from "./chunk-JWX2Q6HS.js";
198
+ WriteQuarantineStore
199
+ } from "./chunk-BANSBRNX.js";
200
+ import {
201
+ WriteRateLimiter
202
+ } from "./chunk-TB6CBZ5V.js";
217
203
  import {
218
204
  cleanArchivedUserMessage
219
205
  } from "./chunk-47DU4SGJ.js";
@@ -230,6 +216,10 @@ import {
230
216
  getUtilityTelemetryStatus,
231
217
  recordUtilityTelemetryEvent
232
218
  } from "./chunk-EOU6V4IN.js";
219
+ import {
220
+ compareVerifiedEpisodeResults,
221
+ searchVerifiedEpisodes
222
+ } from "./chunk-OSM5MKAU.js";
233
223
  import {
234
224
  extractTopics
235
225
  } from "./chunk-KVDUKH5E.js";
@@ -244,8 +234,15 @@ import {
244
234
  renderEpistemicHedge
245
235
  } from "./chunk-YN2UN7N3.js";
246
236
  import {
247
- buildTemporalTimelineRecallSection
248
- } from "./chunk-VHF73MGU.js";
237
+ getTrustZoneStoreStatus,
238
+ isTrustZoneName,
239
+ listTrustZoneRecords,
240
+ promoteTrustZoneRecord,
241
+ scoreTrustZoneProvenance,
242
+ searchTrustZoneRecords,
243
+ seedTrustZoneDemoDataset,
244
+ summarizeTrustZonePromotionReadiness
245
+ } from "./chunk-JWX2Q6HS.js";
249
246
  import {
250
247
  CODEX_THREAD_KEY_PREFIX
251
248
  } from "./chunk-4EX5WZ4M.js";
@@ -262,53 +259,35 @@ import {
262
259
  TmtBuilder
263
260
  } from "./chunk-ECZU5BJH.js";
264
261
  import {
265
- buildTargetedFactRecallSection,
266
- shouldRecallTargetedFactEvidence
267
- } from "./chunk-77NTFICT.js";
268
- import {
269
- memoriesToStandingEntries,
270
- prefixStandingMemoryBlock,
271
- renderStandingMemoryBlock
272
- } from "./chunk-LJLGH2DE.js";
262
+ buildTemporalTimelineRecallSection
263
+ } from "./chunk-VHF73MGU.js";
273
264
  import {
274
265
  HourlySummarizer,
275
266
  summarizeHourlyStatus
276
- } from "./chunk-XF2QQQXO.js";
267
+ } from "./chunk-7P72BY4F.js";
277
268
  import {
278
- SessionObserverState
279
- } from "./chunk-ODZKV2F7.js";
269
+ buildTargetedFactRecallSection,
270
+ shouldRecallTargetedFactEvidence
271
+ } from "./chunk-77NTFICT.js";
280
272
  import {
281
273
  migrateSessionTranscripts,
282
274
  planSessionTranscriptMigration
283
275
  } from "./chunk-WWDO7ZWM.js";
276
+ import {
277
+ memoriesToStandingEntries,
278
+ prefixStandingMemoryBlock,
279
+ renderStandingMemoryBlock
280
+ } from "./chunk-LJLGH2DE.js";
284
281
  import {
285
282
  promoteSemanticRuleFromMemory
286
- } from "./chunk-EDGWAJLS.js";
283
+ } from "./chunk-2WD2TRTJ.js";
287
284
  import {
288
285
  compareVerifiedSemanticRuleResults,
289
286
  searchVerifiedSemanticRules
290
- } from "./chunk-74BX5NCU.js";
291
- import {
292
- mergeWithAgentResults,
293
- runDirectAgent,
294
- runTemporalAgent,
295
- shouldRunAgent
296
- } from "./chunk-XMYWYJM2.js";
287
+ } from "./chunk-IXR3SNHL.js";
297
288
  import {
298
- clearIndexesAsync,
299
- deindexMemoriesBatchAsync,
300
- deindexMemoryAsync,
301
- extractTagsFromPrompt,
302
- indexMemoriesBatchAsync,
303
- indexesExistAsync,
304
- isTemporalQuery,
305
- queryByDateRangeAsync,
306
- queryByTagsAsync,
307
- queryTemporalTimelineAsync,
308
- readIndexSnapshotAsync,
309
- recencyWindowFromPrompt,
310
- resolvePromptTagPrefilterAsync
311
- } from "./chunk-ZOKZIR5K.js";
289
+ SessionObserverState
290
+ } from "./chunk-ODZKV2F7.js";
312
291
  import {
313
292
  applyRuntimeRetrievalPolicy
314
293
  } from "./chunk-5IZL4DCV.js";
@@ -328,7 +307,7 @@ import {
328
307
  buildResumeBundleFromState,
329
308
  getResumeBundleStatus,
330
309
  recordResumeBundle
331
- } from "./chunk-LE27GU4M.js";
310
+ } from "./chunk-4N4BAO66.js";
332
311
  import {
333
312
  getWorkProductLedgerStatus,
334
313
  recordWorkProductLedgerEntry,
@@ -339,11 +318,29 @@ import {
339
318
  utcDayRange
340
319
  } from "./chunk-5RONA5FF.js";
341
320
  import {
342
- runRecallWhy
343
- } from "./chunk-N7LYEA3K.js";
321
+ mergeWithAgentResults,
322
+ runDirectAgent,
323
+ runTemporalAgent,
324
+ shouldRunAgent
325
+ } from "./chunk-XMYWYJM2.js";
326
+ import {
327
+ clearIndexesAsync,
328
+ deindexMemoriesBatchAsync,
329
+ deindexMemoryAsync,
330
+ extractTagsFromPrompt,
331
+ indexMemoriesBatchAsync,
332
+ indexesExistAsync,
333
+ isTemporalQuery,
334
+ queryByDateRangeAsync,
335
+ queryByTagsAsync,
336
+ queryTemporalTimelineAsync,
337
+ readIndexSnapshotAsync,
338
+ recencyWindowFromPrompt,
339
+ resolvePromptTagPrefilterAsync
340
+ } from "./chunk-ZOKZIR5K.js";
344
341
  import {
345
342
  parseXrayCliOptions
346
- } from "./chunk-5IGWEYNV.js";
343
+ } from "./chunk-QDY4TSKK.js";
347
344
  import {
348
345
  findUnresolvedEntityRefs
349
346
  } from "./chunk-X7XN6YU4.js";
@@ -357,16 +354,12 @@ import {
357
354
  clampGraphRecallExpandedEntries
358
355
  } from "./chunk-VT75USBD.js";
359
356
  import {
360
- foldQueueWaitTiming,
361
- getRecallTimingStatus,
362
- isRecallTimingsOperator,
363
- lastRecallTimingsFor,
364
- recordRecallTiming
365
- } from "./chunk-G4NKURT4.js";
357
+ runRecallWhy
358
+ } from "./chunk-JOQZRIL4.js";
366
359
  import {
367
360
  indexStateViewAnnotatedResults,
368
361
  resolveRecallStateViewActive
369
- } from "./chunk-A3EWNU5V.js";
362
+ } from "./chunk-G2TK5YYU.js";
370
363
  import {
371
364
  applyRecallStateViews
372
365
  } from "./chunk-DBB5JPSL.js";
@@ -375,12 +368,6 @@ import {
375
368
  filterRecentScanMemories,
376
369
  stateViewPacketActive
377
370
  } from "./chunk-G2DF5MI7.js";
378
- import {
379
- maybeRespondRecallNavigation
380
- } from "./chunk-WXDTOE6F.js";
381
- import {
382
- RECALL_NAVIGATION_MCP_TOOLS
383
- } from "./chunk-TE6S7KDF.js";
384
371
  import {
385
372
  renderNavigationResult
386
373
  } from "./chunk-KIW3OOZE.js";
@@ -392,31 +379,54 @@ import {
392
379
  assertIdInNavigationWindow
393
380
  } from "./chunk-5KVT6G5U.js";
394
381
  import {
395
- reorderRecallResultsWithMmr
396
- } from "./chunk-IIK2PD3F.js";
382
+ maybeRespondRecallNavigation
383
+ } from "./chunk-WXDTOE6F.js";
384
+ import {
385
+ RECALL_NAVIGATION_MCP_TOOLS
386
+ } from "./chunk-TE6S7KDF.js";
397
387
  import {
398
388
  takeNavigateBudget
399
389
  } from "./chunk-VYDGHJIN.js";
400
390
  import {
401
391
  planDisclosureStep
402
- } from "./chunk-LL7WIK2Z.js";
392
+ } from "./chunk-6NPLVV6M.js";
403
393
  import {
404
394
  parseNavigateLinkType
405
395
  } from "./chunk-7O5EW7KX.js";
406
396
  import {
407
397
  decideDisclosureEscalation
408
398
  } from "./chunk-H7XKCNR6.js";
399
+ import {
400
+ createEnrichmentAbortHandle,
401
+ observeEnrichmentPromise
402
+ } from "./chunk-4IJBNRMZ.js";
409
403
  import {
410
404
  parseRecallExplainFormat,
411
405
  renderRecallExplain,
412
406
  renderXray,
413
407
  toRecallExplainJson
414
- } from "./chunk-I3UBDUHO.js";
408
+ } from "./chunk-H6OTEBPK.js";
415
409
  import {
416
410
  buildXraySnapshot,
417
411
  estimateRecallTokens,
418
412
  summarizeDisclosureTokens
419
- } from "./chunk-PKPW7MXT.js";
413
+ } from "./chunk-O7CHKXSF.js";
414
+ import {
415
+ reorderRecallResultsWithMmr
416
+ } from "./chunk-IIK2PD3F.js";
417
+ import {
418
+ emitRecallTiming,
419
+ recordRecallAttempt
420
+ } from "./chunk-PXY2B7BG.js";
421
+ import {
422
+ foldQueueWaitTiming,
423
+ getRecallTimingStatus,
424
+ isRecallTimingsOperator,
425
+ lastRecallTimingsFor
426
+ } from "./chunk-C6S353AG.js";
427
+ import {
428
+ createPhase2Timer
429
+ } from "./chunk-5JD4DXQX.js";
420
430
  import {
421
431
  compactRecallContextFromBuckets,
422
432
  decideRecallContextComposition,
@@ -426,6 +436,15 @@ import {
426
436
  import {
427
437
  applyReasoningTraceBoost
428
438
  } from "./chunk-EVWDNKQA.js";
439
+ import {
440
+ collectPatternMemories,
441
+ explainPatternMemory,
442
+ parsePatternsExplainOptions,
443
+ parsePatternsListOptions,
444
+ parseStrictCliDate,
445
+ renderPatternExplain,
446
+ renderPatternsList
447
+ } from "./chunk-3T74IZB3.js";
429
448
  import {
430
449
  PolicyRuntimeManager,
431
450
  readRuntimePolicySnapshot,
@@ -445,35 +464,23 @@ import {
445
464
  runOperatorRepair,
446
465
  runOperatorSetup,
447
466
  summarizeNamespaceMaintenanceHealth
448
- } from "./chunk-6CSWINXA.js";
467
+ } from "./chunk-AIDFYS4Z.js";
449
468
  import {
450
469
  NamespaceCatalog,
451
470
  isNamespaceKind,
452
471
  planNamespaceMaintenance
453
- } from "./chunk-FJVWKIDV.js";
472
+ } from "./chunk-RMPHPB6B.js";
454
473
  import {
455
474
  analyzeSessionIntegrity,
456
475
  applySessionRepair,
457
476
  planSessionRepair
458
477
  } from "./chunk-KFY3SGN7.js";
459
- import {
460
- collectPatternMemories,
461
- explainPatternMemory,
462
- parsePatternsExplainOptions,
463
- parsePatternsListOptions,
464
- parseStrictCliDate,
465
- renderPatternExplain,
466
- renderPatternsList
467
- } from "./chunk-3T74IZB3.js";
468
- import {
469
- buildEmbeddingAwareSnapshotStream
470
- } from "./chunk-6MEQHJTF.js";
471
478
  import {
472
479
  ReplicaDivergenceMonitor
473
480
  } from "./chunk-7IWRLYFJ.js";
474
481
  import {
475
- recordMemoryOutcome
476
- } from "./chunk-UD7UNYRD.js";
482
+ buildEmbeddingAwareSnapshotStream
483
+ } from "./chunk-FMFCQRDM.js";
477
484
  import {
478
485
  NegativeExampleStore
479
486
  } from "./chunk-23L3IXFD.js";
@@ -481,12 +488,22 @@ import {
481
488
  applyMemoryWorthFilter,
482
489
  buildMemoryWorthCounterMap
483
490
  } from "./chunk-3GPTTA4J.js";
491
+ import {
492
+ recordMemoryOutcome
493
+ } from "./chunk-UD7UNYRD.js";
494
+ import {
495
+ applyRecencyBoost,
496
+ collectMtimeFallbackContext
497
+ } from "./chunk-M4DB6ZNN.js";
498
+ import {
499
+ maybeRespondMemoryBrowse
500
+ } from "./chunk-UYHDMCY2.js";
484
501
  import {
485
502
  MEMORY_BROWSE_MCP_TOOLS
486
503
  } from "./chunk-EIB4FJVR.js";
487
504
  import {
488
505
  runMemoryBrowse
489
- } from "./chunk-M43GO34S.js";
506
+ } from "./chunk-HASIFVWH.js";
490
507
  import {
491
508
  filterRecallCandidates,
492
509
  isGenericRecallExcludedPath,
@@ -494,7 +511,7 @@ import {
494
511
  isTopLevelArchivePath,
495
512
  journalPath,
496
513
  writeJournalFile
497
- } from "./chunk-MPQQIHA7.js";
514
+ } from "./chunk-5LL2X5SO.js";
498
515
  import {
499
516
  REMNIC_CHATGPT_MEMORY_INSPECTOR_MIME_TYPE,
500
517
  REMNIC_CHATGPT_MEMORY_INSPECTOR_TOOL,
@@ -507,12 +524,8 @@ import {
507
524
  MCP_READ_ONLY_TOOL_SUFFIXES
508
525
  } from "./chunk-MZUQVWVC.js";
509
526
  import {
510
- applyRecencyBoost,
511
- collectMtimeFallbackContext
512
- } from "./chunk-M4DB6ZNN.js";
513
- import {
514
- maybeRespondMemoryBrowse
515
- } from "./chunk-UYHDMCY2.js";
527
+ scaleLcmSummarizeBudget
528
+ } from "./chunk-3TKX7ZMV.js";
516
529
  import {
517
530
  GITHUB_CONNECTOR_ID,
518
531
  GMAIL_CONNECTOR_ID,
@@ -531,26 +544,17 @@ import {
531
544
  import {
532
545
  listConnectorStates
533
546
  } from "./chunk-MDPT6QFK.js";
534
- import {
535
- coerceIncludedMemories
536
- } from "./chunk-2YA5N2BY.js";
537
- import {
538
- serializeInlineScriptValue
539
- } from "./chunk-3HSRWJTC.js";
540
- import {
541
- scaleLcmSummarizeBudget
542
- } from "./chunk-3TKX7ZMV.js";
543
- import {
544
- classifyMemoryKind
545
- } from "./chunk-YAZNBMNF.js";
546
547
  import {
547
548
  isAboveImportanceThreshold,
548
549
  rescoreMemoryImportance,
549
550
  scoreImportance
550
551
  } from "./chunk-UOBPK2OS.js";
551
552
  import {
552
- buildGraphSnapshot
553
- } from "./chunk-YLTU2DC4.js";
553
+ coerceIncludedMemories
554
+ } from "./chunk-2YA5N2BY.js";
555
+ import {
556
+ serializeInlineScriptValue
557
+ } from "./chunk-3HSRWJTC.js";
554
558
  import {
555
559
  deriveHarmonicRecords,
556
560
  harmonicEntityReferenceMatches,
@@ -561,14 +565,24 @@ import {
561
565
  import {
562
566
  readProjectedHarmonicGraph,
563
567
  searchHarmonicRetrieval
564
- } from "./chunk-IJBOJJVS.js";
568
+ } from "./chunk-QP6CBFYL.js";
565
569
  import {
566
- removeNodeEdgesForRewrite,
567
- rollbackNodeEdgeRewrite
568
- } from "./chunk-UH3FPX3L.js";
570
+ classifyMemoryKind
571
+ } from "./chunk-YAZNBMNF.js";
569
572
  import {
570
573
  scoreEvidencePathDetail
571
574
  } from "./chunk-XXSOVESA.js";
575
+ import {
576
+ buildGraphSnapshot
577
+ } from "./chunk-U2PSE7MB.js";
578
+ import {
579
+ buildFocusedListRecallSection,
580
+ shouldRecallFocusedListEvidence
581
+ } from "./chunk-BPPUH5JM.js";
582
+ import {
583
+ removeNodeEdgesForRewrite,
584
+ rollbackNodeEdgeRewrite
585
+ } from "./chunk-OM5ESBES.js";
572
586
  import {
573
587
  chunkExtractionWindow,
574
588
  classifyDrainResult,
@@ -578,13 +592,13 @@ import {
578
592
  } from "./chunk-LEO4MQ3S.js";
579
593
  import {
580
594
  ExtractionEngine
581
- } from "./chunk-OYUTSLBU.js";
595
+ } from "./chunk-LKXED2DT.js";
582
596
  import {
583
597
  wrapWorkLayerContext
584
598
  } from "./chunk-EI6V5UXY.js";
585
599
  import {
586
600
  CONNECTOR_LABEL_MAX_LENGTH
587
- } from "./chunk-CBJRI6VJ.js";
601
+ } from "./chunk-64TIBZPZ.js";
588
602
  import {
589
603
  isValidConnectorId
590
604
  } from "./chunk-YAVIBVCU.js";
@@ -595,10 +609,6 @@ import {
595
609
  import {
596
610
  ModelRegistry
597
611
  } from "./chunk-QNUNAXBE.js";
598
- import {
599
- buildFocusedListRecallSection,
600
- shouldRecallFocusedListEvidence
601
- } from "./chunk-BPPUH5JM.js";
602
612
  import {
603
613
  parseMemoryActionEligibilityContext
604
614
  } from "./chunk-JHU4EYDV.js";
@@ -624,6 +634,12 @@ import {
624
634
  import {
625
635
  EXTERNAL_WIKI_MCP_TOOLS
626
636
  } from "./chunk-A5KNZSNA.js";
637
+ import {
638
+ buildEventOrderRecallSection
639
+ } from "./chunk-ZDZJNXL6.js";
640
+ import {
641
+ shouldRecallEventOrderEvidence
642
+ } from "./chunk-BUYVPUEM.js";
627
643
  import {
628
644
  pickFactEventTimeAnchor,
629
645
  resolveFactEventTime
@@ -631,9 +647,26 @@ import {
631
647
  import {
632
648
  buildExplicitCueRecallSection
633
649
  } from "./chunk-NED7IR7B.js";
650
+ import {
651
+ lcmEvidenceIdentity
652
+ } from "./chunk-C37ZRXX7.js";
634
653
  import {
635
654
  externalWikiSearchOperation
636
655
  } from "./chunk-3FBAEPCU.js";
656
+ import {
657
+ buildEntityRecallSection,
658
+ entityRecentTranscriptLookbackHours,
659
+ readRecentEntityTranscriptEntries
660
+ } from "./chunk-ZDWZYKCL.js";
661
+ import {
662
+ boundRecallContextComposition,
663
+ composeMissingMemoryContext,
664
+ composeRecallContext,
665
+ contextBudgetForFooter,
666
+ formatCuriosityFooter,
667
+ renderAuthorityBoundContent,
668
+ selectCuriosityQuestion
669
+ } from "./chunk-NVKO5YKP.js";
637
670
  import {
638
671
  planEpisodeWindowsWithFallback
639
672
  } from "./chunk-T3GIETKV.js";
@@ -648,31 +681,20 @@ import {
648
681
  validateEvalBenchmarkPack
649
682
  } from "./chunk-JKMIGCK6.js";
650
683
  import {
651
- buildEventOrderRecallSection
652
- } from "./chunk-FAPJG3OG.js";
653
- import {
654
- lcmEvidenceIdentity
655
- } from "./chunk-C37ZRXX7.js";
684
+ tryDirectAnswer
685
+ } from "./chunk-OB72KNMF.js";
656
686
  import {
657
- shouldRecallEventOrderEvidence
658
- } from "./chunk-BUYVPUEM.js";
687
+ EmbeddingFallback
688
+ } from "./chunk-SBRUTD5O.js";
659
689
  import {
660
- buildEntityRecallSection,
661
- entityRecentTranscriptLookbackHours,
662
- readRecentEntityTranscriptEntries
663
- } from "./chunk-2IMKMMUS.js";
690
+ respondDeepRecall
691
+ } from "./chunk-MKJBZR7J.js";
664
692
  import {
665
- boundRecallContextComposition,
666
- composeMissingMemoryContext,
667
- composeRecallContext,
668
- contextBudgetForFooter,
669
- formatCuriosityFooter,
670
- renderAuthorityBoundContent,
671
- selectCuriosityQuestion
672
- } from "./chunk-NVKO5YKP.js";
693
+ DEEP_RECALL_MCP_TOOLS
694
+ } from "./chunk-HUSTM6PU.js";
673
695
  import {
674
- EmbeddingFallback
675
- } from "./chunk-SBRUTD5O.js";
696
+ callDeepRecallPolicyLlm
697
+ } from "./chunk-SPAKBUJY.js";
676
698
  import {
677
699
  renderDeepRecallResult
678
700
  } from "./chunk-RF2SMMPP.js";
@@ -681,10 +703,19 @@ import {
681
703
  } from "./chunk-3X5OPDPF.js";
682
704
  import {
683
705
  runBudgetedDeepRecall
684
- } from "./chunk-BFPF5N3H.js";
706
+ } from "./chunk-HXFIILGF.js";
685
707
  import {
686
- tryDirectAnswer
687
- } from "./chunk-OB72KNMF.js";
708
+ CorpusWatermarkCache,
709
+ computeServiceCorpusCensus
710
+ } from "./chunk-3NLBDM7V.js";
711
+ import {
712
+ listNamespaces,
713
+ runNamespaceMigration,
714
+ verifyNamespaces
715
+ } from "./chunk-4WX32RLU.js";
716
+ import {
717
+ NamespaceStorageRouter
718
+ } from "./chunk-J3EU5H7W.js";
688
719
  import {
689
720
  CrossNamespaceBudget,
690
721
  toBudgetWarning
@@ -695,27 +726,18 @@ import {
695
726
  } from "./chunk-FYJYQ65N.js";
696
727
  import {
697
728
  GraphDashboardServer
698
- } from "./chunk-EZ25VE3G.js";
729
+ } from "./chunk-YNDLCWXS.js";
699
730
  import {
700
731
  formatDaySummaryMemories
701
732
  } from "./chunk-7G5NTS7F.js";
702
- import {
703
- 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";
711
733
  import {
712
734
  refreshConvergedNamespaces
713
- } from "./chunk-B72X3KWL.js";
735
+ } from "./chunk-COJBTRTQ.js";
714
736
  import {
715
737
  rebuildMemoryProjection,
716
738
  repairMemoryProjection,
717
739
  verifyMemoryProjection
718
- } from "./chunk-FYH62SF3.js";
740
+ } from "./chunk-S627NPRV.js";
719
741
  import {
720
742
  buildProposedActions,
721
743
  buildQualityScore,
@@ -724,24 +746,12 @@ import {
724
746
  readMemoryGovernanceRunArtifact,
725
747
  restoreMemoryGovernanceRun,
726
748
  runMemoryGovernance
727
- } from "./chunk-DLX277NS.js";
749
+ } from "./chunk-JXAHMR5L.js";
728
750
  import {
729
751
  collectNativeKnowledgeChunks,
730
752
  formatNativeKnowledgeSection,
731
753
  searchNativeKnowledge
732
754
  } 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
755
  import {
746
756
  buildConnectorRowsFromDefinitions,
747
757
  parseConnectorsListOptions,
@@ -751,6 +761,9 @@ import {
751
761
  renderConnectorsRunResult,
752
762
  runConnectorPollOnce
753
763
  } from "./chunk-OKTXM5H4.js";
764
+ import {
765
+ buildCitationGuidance
766
+ } from "./chunk-D24OXEPB.js";
754
767
  import {
755
768
  applyCommitmentLedgerLifecycle,
756
769
  getCommitmentLedgerStatus,
@@ -766,45 +779,29 @@ import {
766
779
  materializeAfterSemanticConsolidation,
767
780
  parseConsolidationResponse,
768
781
  parseOperatorAwareConsolidationResponse
769
- } from "./chunk-NWS4I4K7.js";
782
+ } from "./chunk-CVCKYMVX.js";
770
783
  import {
771
784
  resolveNamespaceChildRoot
772
785
  } from "./chunk-3UXOZBHV.js";
773
786
  import {
774
787
  GraphIndex,
775
788
  analyzeGraphHealth
776
- } from "./chunk-DC55RIEZ.js";
777
- import {
778
- subscribeGraphEvents
779
- } from "./chunk-DEUNUKTD.js";
789
+ } from "./chunk-73TPOGS4.js";
780
790
  import {
781
791
  GraphEdgeAppendError
782
792
  } from "./chunk-GKCXTSFF.js";
783
793
  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";
794
+ subscribeGraphEvents
795
+ } from "./chunk-DEUNUKTD.js";
799
796
  import {
800
797
  SmartBuffer
801
- } from "./chunk-OV3XHQAB.js";
798
+ } from "./chunk-LYSE5FNF.js";
802
799
  import {
803
800
  ExtractionDeadlineError,
804
801
  ExtractionRunCoordinator,
805
802
  ProviderCircuitBreaker,
806
803
  classifyExtractionOrigin
807
- } from "./chunk-3KQPFIVV.js";
804
+ } from "./chunk-LMFINE37.js";
808
805
  import {
809
806
  ARTIFACT_STATUS_CACHE_TTL_MS,
810
807
  BulkImportBatchPartialFailureError,
@@ -844,7 +841,7 @@ import {
844
841
  throwIfRecallAborted,
845
842
  tokenizeRecallQuery,
846
843
  utcDateKeysForLocalDay
847
- } from "./chunk-AGJJTD3Q.js";
844
+ } from "./chunk-MONIOXEG.js";
848
845
  import {
849
846
  inferIntentFromText,
850
847
  intentCompatibilityScore,
@@ -853,7 +850,23 @@ import {
853
850
  } from "./chunk-CSAKJVXW.js";
854
851
  import {
855
852
  LocalLlmClient
856
- } from "./chunk-AWKD2A73.js";
853
+ } from "./chunk-2NGTY22Z.js";
854
+ import {
855
+ isCapsuleImportArchiveInputError,
856
+ validateCapsuleImportArchive
857
+ } from "./chunk-FKBGK3NC.js";
858
+ import {
859
+ defaultCapsulesDir
860
+ } from "./chunk-ZY2MNJR6.js";
861
+ import {
862
+ semanticChunkContent
863
+ } from "./chunk-2GBFKHBZ.js";
864
+ import {
865
+ chunkContent
866
+ } from "./chunk-6TBIWIAG.js";
867
+ import {
868
+ BoxBuilder
869
+ } from "./chunk-B7RWBZXW.js";
857
870
  import {
858
871
  FileCalendarSource,
859
872
  buildBriefing,
@@ -862,11 +875,14 @@ import {
862
875
  parseBriefingFocus,
863
876
  parseBriefingWindow,
864
877
  validateBriefingFormat
865
- } from "./chunk-YWXFO7G2.js";
878
+ } from "./chunk-TAUBEJ37.js";
866
879
  import {
867
880
  BriefingTimeoutError,
868
881
  withBriefingDeadline
869
882
  } from "./chunk-FNFURZBZ.js";
883
+ import {
884
+ scopeObserveBufferAdmissionIdempotencyKey
885
+ } from "./chunk-5EP2V675.js";
870
886
  import {
871
887
  ReplayAdmissionRefusedError,
872
888
  StorageTargetRequiredError
@@ -888,9 +904,6 @@ import {
888
904
  import {
889
905
  isDisagreementPrompt
890
906
  } from "./chunk-H3FZVNRN.js";
891
- import {
892
- BoxBuilder
893
- } from "./chunk-B7RWBZXW.js";
894
907
  import {
895
908
  meetingsBuild,
896
909
  meetingsGet,
@@ -927,7 +940,7 @@ import {
927
940
  validateCorrectionAction,
928
941
  validateCorrectionRequest,
929
942
  validateRedactionPattern
930
- } from "./chunk-B4I37XX6.js";
943
+ } from "./chunk-IOMWNBMH.js";
931
944
  import {
932
945
  compileCorrectionRule,
933
946
  correctionsFilePath,
@@ -944,7 +957,7 @@ import {
944
957
  resolveJournalSource,
945
958
  resolveVaultNotePath,
946
959
  validateRegionName
947
- } from "./chunk-EUL3S3LE.js";
960
+ } from "./chunk-J5WI4QRP.js";
948
961
  import {
949
962
  isCodingKnowledgeFeatureEnabled
950
963
  } from "./chunk-FEHIOYML.js";
@@ -1017,7 +1030,7 @@ import {
1017
1030
  getCausalTrajectoryStoreStatus,
1018
1031
  readCausalTrajectoryRecords,
1019
1032
  searchCausalTrajectories
1020
- } from "./chunk-VEFGHRKV.js";
1033
+ } from "./chunk-GMO3BGOF.js";
1021
1034
  import {
1022
1035
  QmdResultResolver,
1023
1036
  StorageManager,
@@ -1040,7 +1053,7 @@ import {
1040
1053
  reconstructFusionInputs,
1041
1054
  selfDeps,
1042
1055
  serializeFusionDay
1043
- } from "./chunk-2LQUPEWF.js";
1056
+ } from "./chunk-EJ6EPEMP.js";
1044
1057
  import {
1045
1058
  buildRetiredFactTombstoneInputs
1046
1059
  } from "./chunk-QGVCFVX6.js";
@@ -1059,12 +1072,12 @@ import {
1059
1072
  embeddingBacklogExceeds,
1060
1073
  isSearchHealthDegraded,
1061
1074
  namespaceCollectionName
1062
- } from "./chunk-CBTERRF5.js";
1075
+ } from "./chunk-XCJDDXJX.js";
1063
1076
  import {
1064
1077
  createConversationIndexRuntime,
1065
1078
  createSearchBackend,
1066
1079
  isSearchBackendEnabled
1067
- } from "./chunk-MIG4KRYU.js";
1080
+ } from "./chunk-HADCITEA.js";
1068
1081
  import {
1069
1082
  NoopSearchBackend
1070
1083
  } from "./chunk-CYEPCZN5.js";
@@ -1096,14 +1109,14 @@ import {
1096
1109
  normalizeProjectionPreview,
1097
1110
  normalizeProjectionTags
1098
1111
  } from "./chunk-SCU65EZI.js";
1099
- import {
1100
- checkCorpusReadAbort
1101
- } from "./chunk-P4GUQSK3.js";
1102
1112
  import {
1103
1113
  detectLanguageHint,
1104
1114
  dominantCorpusLanguage,
1105
1115
  planCrossScript
1106
1116
  } from "./chunk-3WU7XOFN.js";
1117
+ import {
1118
+ checkCorpusReadAbort
1119
+ } from "./chunk-P4GUQSK3.js";
1107
1120
  import {
1108
1121
  createVersion,
1109
1122
  getVersion,
@@ -1135,9 +1148,6 @@ import {
1135
1148
  isValidAsOf,
1136
1149
  isValidityExpiredNow
1137
1150
  } from "./chunk-6CIAGZ6X.js";
1138
- import {
1139
- withCaptureWriteLockBackoff
1140
- } from "./chunk-7VLBZKNB.js";
1141
1151
  import {
1142
1152
  buildExplicitCaptureDedupKey,
1143
1153
  normalizeExplicitCaptureContent
@@ -1152,14 +1162,6 @@ import {
1152
1162
  isUntrustedOrigin,
1153
1163
  parseOriginClass
1154
1164
  } from "./chunk-23G5P7TA.js";
1155
- import {
1156
- bufferTurnsEqual,
1157
- describeError,
1158
- extractionScopeGroupKey,
1159
- groupTurnsByExtractionScope,
1160
- hasPinnedCaptureScope,
1161
- scopeProfilePlanIdentity
1162
- } from "./chunk-AZFQXYIJ.js";
1163
1165
  import {
1164
1166
  FallbackLlmClient,
1165
1167
  gatewayTaskChainOptions
@@ -1167,6 +1169,17 @@ import {
1167
1169
  import {
1168
1170
  fallbackLlmRuntimeContextFromConfig
1169
1171
  } from "./chunk-QSF5SJAM.js";
1172
+ import {
1173
+ withCaptureWriteLockBackoff
1174
+ } from "./chunk-7VLBZKNB.js";
1175
+ import {
1176
+ bufferTurnsEqual,
1177
+ describeError,
1178
+ extractionScopeGroupKey,
1179
+ groupTurnsByExtractionScope,
1180
+ hasPinnedCaptureScope,
1181
+ scopeProfilePlanIdentity
1182
+ } from "./chunk-33VVVP57.js";
1170
1183
  import {
1171
1184
  createBoundedCoreSectionRunner,
1172
1185
  createRecallSectionMetricRecorder,
@@ -1187,6 +1200,28 @@ import {
1187
1200
  AMBIENT_CAPTURE_PROMPT_RULE,
1188
1201
  isHighImpactPersonalFact
1189
1202
  } from "./chunk-QW27DOHG.js";
1203
+ import {
1204
+ RECALL_WHY_MCP_TOOLS,
1205
+ handleRecallWhyHttpQuery,
1206
+ handleRecallXrayHttpQuery
1207
+ } from "./chunk-V3D2OOVE.js";
1208
+ import {
1209
+ runContradictionScan
1210
+ } from "./chunk-SX4BR26Y.js";
1211
+ import {
1212
+ isDefaultReviewNamespace,
1213
+ listPairs,
1214
+ readPair
1215
+ } from "./chunk-CTVWELNK.js";
1216
+ import {
1217
+ DEFAULT_RECALL_DISCLOSURE,
1218
+ RECALL_DISCLOSURE_LEVELS,
1219
+ confidenceTier,
1220
+ isRecallDisclosure
1221
+ } from "./chunk-KJ3Z7JHF.js";
1222
+ import {
1223
+ extractJsonCandidates
1224
+ } from "./chunk-YBA52OKG.js";
1190
1225
  import {
1191
1226
  engramRecallSearchOptionsMcpProperty
1192
1227
  } from "./chunk-CQ3IG3GZ.js";
@@ -1200,9 +1235,13 @@ import {
1200
1235
  SupportPassportError,
1201
1236
  buildSupportPassportPublicRequestHandler
1202
1237
  } from "./chunk-UPE7TJWN.js";
1238
+ import {
1239
+ ObserveTranscriptPersister,
1240
+ observeTranscriptSessionKey
1241
+ } from "./chunk-EAHNSQ7H.js";
1203
1242
  import {
1204
1243
  splitCanonicalWriteRequest
1205
- } from "./chunk-JY3WATTF.js";
1244
+ } from "./chunk-C6Z3H23R.js";
1206
1245
  import {
1207
1246
  buildWithBriefingLocation,
1208
1247
  daySummaryAutoOptions,
@@ -1245,10 +1284,10 @@ import {
1245
1284
  retainedCategoryAlias,
1246
1285
  suggestionSubmitRequestSchema,
1247
1286
  validateRequest
1248
- } from "./chunk-QJJURIZV.js";
1287
+ } from "./chunk-TNACU47L.js";
1249
1288
  import {
1250
1289
  exportCapsule
1251
- } from "./chunk-R45L4TV6.js";
1290
+ } from "./chunk-KQAFEZQX.js";
1252
1291
  import {
1253
1292
  CAPSULE_ID_PATTERN
1254
1293
  } from "./chunk-WEHSQBFR.js";
@@ -1266,7 +1305,7 @@ import {
1266
1305
  } from "./chunk-BJMBJZ2Y.js";
1267
1306
  import {
1268
1307
  createOfflineSyncManifestStream
1269
- } from "./chunk-E23BTVB2.js";
1308
+ } from "./chunk-AO5LKFGO.js";
1270
1309
  import {
1271
1310
  peerManifestRevision
1272
1311
  } from "./chunk-FEUWI5QH.js";
@@ -1315,6 +1354,14 @@ import {
1315
1354
  import {
1316
1355
  isTombstoneBlockedCaptureWriteLockBusy
1317
1356
  } from "./chunk-YET735EZ.js";
1357
+ import {
1358
+ createSupportPassportPrivateFileExclusion,
1359
+ excludeSupportPassportPrivateMemories,
1360
+ isSupportPassportPrivateMemory
1361
+ } from "./chunk-TSUSHXBW.js";
1362
+ import {
1363
+ SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH
1364
+ } from "./chunk-LEII44QG.js";
1318
1365
  import {
1319
1366
  ContentHashIndex
1320
1367
  } from "./chunk-HLUHEMN4.js";
@@ -1324,6 +1371,21 @@ import {
1324
1371
  import {
1325
1372
  writeFileAtomically
1326
1373
  } from "./chunk-BTNNL7ZW.js";
1374
+ import {
1375
+ normalizeAttributePairs,
1376
+ stripAttributesSuffix
1377
+ } from "./chunk-JDSVLVCG.js";
1378
+ import {
1379
+ sanitizeMemoryContent
1380
+ } from "./chunk-5GKPFL3S.js";
1381
+ import {
1382
+ MEMORY_ID_PATTERN,
1383
+ buildHandleIndexForResults,
1384
+ isHandleToken,
1385
+ parseIdOrHandle,
1386
+ resolveHandle,
1387
+ stripHandles
1388
+ } from "./chunk-JAKIDQB2.js";
1327
1389
  import {
1328
1390
  OFFLINE_SYNC_APPLY_MAX_BODY_BYTES,
1329
1391
  OFFLINE_SYNC_FILE_CONTENT_MAX_CHUNK_BYTES,
@@ -1335,10 +1397,10 @@ import {
1335
1397
  buildOfflineSyncSnapshotFromBase,
1336
1398
  normalizeOfflineSyncChangeset,
1337
1399
  readOfflineSyncFileContentChunk
1338
- } from "./chunk-WZ55LEUN.js";
1400
+ } from "./chunk-CLVILSBR.js";
1339
1401
  import {
1340
1402
  storageBackedIndexStoreIo
1341
- } from "./chunk-MFDEEOOZ.js";
1403
+ } from "./chunk-5BE3FLKL.js";
1342
1404
  import {
1343
1405
  compileOfflineSyncExcludeGlobs
1344
1406
  } from "./chunk-63LFM77Z.js";
@@ -1351,58 +1413,22 @@ import {
1351
1413
  serializeMutations,
1352
1414
  withHeldFileLock
1353
1415
  } from "./chunk-EBV6VXKF.js";
1416
+ import {
1417
+ parseFlexibleIsoTimestamp
1418
+ } from "./chunk-P7FMDTKL.js";
1354
1419
  import {
1355
1420
  createRecallCorpusVersionCapture,
1356
1421
  mergeRecallCorpusVersions
1357
1422
  } from "./chunk-YVRQ5JRA.js";
1358
1423
  import {
1359
- RECALL_WHY_MCP_TOOLS,
1360
- handleRecallWhyHttpQuery,
1361
- handleRecallXrayHttpQuery
1362
- } from "./chunk-2VS3DAXE.js";
1363
- import {
1364
- runContradictionScan
1365
- } from "./chunk-SX4BR26Y.js";
1366
- import {
1367
- isDefaultReviewNamespace,
1368
- listPairs,
1369
- readPair
1370
- } from "./chunk-CTVWELNK.js";
1371
- import {
1372
- DEFAULT_RECALL_DISCLOSURE,
1373
- RECALL_DISCLOSURE_LEVELS,
1374
- confidenceTier,
1375
- isRecallDisclosure
1376
- } from "./chunk-JVNGFQJN.js";
1377
- import {
1378
- extractJsonCandidates
1379
- } from "./chunk-YBA52OKG.js";
1380
- import {
1381
- createSupportPassportPrivateFileExclusion,
1382
- excludeSupportPassportPrivateMemories,
1383
- isSupportPassportPrivateMemory
1384
- } from "./chunk-TSUSHXBW.js";
1385
- import {
1386
- SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH
1387
- } from "./chunk-LEII44QG.js";
1388
- import {
1389
- normalizeAttributePairs,
1390
- stripAttributesSuffix
1391
- } from "./chunk-JDSVLVCG.js";
1392
- import {
1393
- sanitizeMemoryContent
1394
- } from "./chunk-5GKPFL3S.js";
1395
- import {
1396
- MEMORY_ID_PATTERN,
1397
- buildHandleIndexForResults,
1398
- isHandleToken,
1399
- parseIdOrHandle,
1400
- resolveHandle,
1401
- stripHandles
1402
- } from "./chunk-JAKIDQB2.js";
1403
- import {
1404
- parseFlexibleIsoTimestamp
1405
- } from "./chunk-P7FMDTKL.js";
1424
+ CANONICAL_MCP_PREFIX,
1425
+ LEGACY_MCP_PREFIX,
1426
+ toCanonicalToolName,
1427
+ toDottedRemnicName,
1428
+ toLegacyToolName,
1429
+ toolNameSuffix,
1430
+ withToolAliases
1431
+ } from "./chunk-ZQUVBZI4.js";
1406
1432
  import {
1407
1433
  defaultNamespaceAtFlatRoot,
1408
1434
  memorySearchThroughScope,
@@ -1474,10 +1500,6 @@ import {
1474
1500
  import {
1475
1501
  createObserveStageTimer
1476
1502
  } from "./chunk-WZU5AGO6.js";
1477
- import {
1478
- ObserveTranscriptPersister,
1479
- observeTranscriptSessionKey
1480
- } from "./chunk-EAHNSQ7H.js";
1481
1503
  import {
1482
1504
  MCP_ADMIN_OPS_MIGRATED_OPERATIONS,
1483
1505
  MCP_ADMIN_OPS_TOOLS,
@@ -1498,15 +1520,6 @@ import {
1498
1520
  import {
1499
1521
  handleMcpGetSse
1500
1522
  } from "./chunk-SRT6SHVZ.js";
1501
- import {
1502
- CANONICAL_MCP_PREFIX,
1503
- LEGACY_MCP_PREFIX,
1504
- toCanonicalToolName,
1505
- toDottedRemnicName,
1506
- toLegacyToolName,
1507
- toolNameSuffix,
1508
- withToolAliases
1509
- } from "./chunk-ZQUVBZI4.js";
1510
1523
  import {
1511
1524
  maybeHandleLifecycleFlush
1512
1525
  } from "./chunk-2BPPGNAQ.js";
@@ -1537,6 +1550,10 @@ import {
1537
1550
  sanitizeFragment,
1538
1551
  sharedNonRepoGitContextCache
1539
1552
  } from "./chunk-5HFCXTGY.js";
1553
+ import {
1554
+ currentCorrelationId,
1555
+ runWithCorrelationId
1556
+ } from "./chunk-YRHBSYQR.js";
1540
1557
  import {
1541
1558
  respondBufferAdmissionError
1542
1559
  } from "./chunk-SRDWJPET.js";
@@ -15439,6 +15456,8 @@ var RecallInternalCoordinator = class {
15439
15456
  if (Number.isFinite(parsed)) asOfMs = parsed;
15440
15457
  }
15441
15458
  const timings = foldQueueWaitTiming(options.queueWaitMs);
15459
+ const phase2Timings = {};
15460
+ const phase2Timer = createPhase2Timer(phase2Timings, () => options.abortSignal?.aborted === true);
15442
15461
  const profileTraceId = this.deps.profiler.startTrace("recall", sessionKey, {
15443
15462
  qmdEnabled: resolveQmdCapabilities(this.deps.config).qmd,
15444
15463
  rerankEnabled: caps.rerank,
@@ -15455,43 +15474,6 @@ var RecallInternalCoordinator = class {
15455
15474
  const recallOuterTimeoutMs = this.deps.config.recallOuterTimeoutMs ?? 75e3;
15456
15475
  const enrichmentSectionDeadlineMs = this.deps.config.recallEnrichmentDeadlineMs ?? 6e4;
15457
15476
  try {
15458
- const createEnrichmentAbortHandle = (parentSignal) => {
15459
- const controller = new AbortController();
15460
- const onAbort = () => controller.abort();
15461
- if (parentSignal?.aborted) {
15462
- controller.abort();
15463
- } else if (parentSignal) {
15464
- parentSignal.addEventListener("abort", onAbort, { once: true });
15465
- }
15466
- let disposed = false;
15467
- const dispose = () => {
15468
- if (disposed) return;
15469
- disposed = true;
15470
- parentSignal?.removeEventListener("abort", onAbort);
15471
- };
15472
- return {
15473
- signal: controller.signal,
15474
- cancel: () => {
15475
- controller.abort();
15476
- dispose();
15477
- },
15478
- dispose
15479
- };
15480
- };
15481
- const observeEnrichmentPromise = (promise, cancel = () => {
15482
- }) => {
15483
- let settledOutcome;
15484
- const observed = promise.then(
15485
- (value) => ({ status: "resolved", value }),
15486
- (error) => ({ status: "rejected", error })
15487
- ).then((outcome) => {
15488
- settledOutcome = outcome;
15489
- return outcome;
15490
- });
15491
- observed.getSettledOutcome = () => settledOutcome;
15492
- observed.cancel = cancel;
15493
- return observed;
15494
- };
15495
15477
  const recordRecallSectionMetric = createRecallSectionMetricRecorder({
15496
15478
  timings,
15497
15479
  logger: log
@@ -15695,7 +15677,7 @@ var RecallInternalCoordinator = class {
15695
15677
  const earlySessionKey = sessionKey ?? "default";
15696
15678
  this.deps._recallWorkspaceOverrides.delete(earlySessionKey);
15697
15679
  timings.total = `${Date.now() - recallStart}ms`;
15698
- recordRecallTiming(this.deps.config, {
15680
+ emitRecallTiming(this.deps.config, {
15699
15681
  ...timings,
15700
15682
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
15701
15683
  namespace: selfNamespace,
@@ -16442,6 +16424,7 @@ ${rows.join("\n")}
16442
16424
  });
16443
16425
  return results.length > 0 ? this.deps.formatTrustZoneResults(results) : null;
16444
16426
  })();
16427
+ const harmonicStartedMs = performance.now();
16445
16428
  const harmonicRetrievalAbort = createEnrichmentAbortHandle(
16446
16429
  options.abortSignal
16447
16430
  );
@@ -16737,6 +16720,7 @@ ${rows.join("\n")}
16737
16720
  });
16738
16721
  return results.length > 0 ? this.deps.formatWorkProductResults(results) : null;
16739
16722
  })();
16723
+ const prefilterStartedMs = performance.now();
16740
16724
  const queryAwarePrefilterPromise = (async () => {
16741
16725
  const t0 = Date.now();
16742
16726
  if (!resolveIndexingCapabilities(this.deps.config).queryAwareIndexing || !prompt.trim()) {
@@ -17429,6 +17413,7 @@ ${formatted}`;
17429
17413
  return null;
17430
17414
  }
17431
17415
  })();
17416
+ const compoundingStartedMs = performance.now();
17432
17417
  const compoundingPromise = observeEnrichmentPromise(
17433
17418
  (async () => {
17434
17419
  const t0 = Date.now();
@@ -17566,23 +17551,26 @@ ${formatted}`;
17566
17551
  );
17567
17552
  throwIfRecallAborted(options.abortSignal);
17568
17553
  const enrichmentAssemblyDeadlineAtMs = enrichmentSectionDeadlineMs > 0 ? this.deps.recallAssemblyClockMs() + enrichmentSectionDeadlineMs : null;
17569
- const awaitEnrichmentSection = async (name, promise) => {
17554
+ const awaitEnrichmentSection = async (name, promise, onStatus) => {
17570
17555
  const finalizeEnrichmentOutcome = (outcome2) => {
17571
17556
  if (outcome2.status === "resolved") {
17572
17557
  log.debug(
17573
17558
  `recall phase-1 enrichment [${name}]: resolved at +${Date.now() - phase1Start}ms`
17574
17559
  );
17560
+ onStatus?.("ok");
17575
17561
  return outcome2.value;
17576
17562
  }
17577
17563
  if (options.abortSignal?.aborted) {
17578
17564
  log.debug(
17579
17565
  `recall phase-1 enrichment [${name}]: skipped after abort at +${Date.now() - phase1Start}ms`
17580
17566
  );
17567
+ onStatus?.("skipped");
17581
17568
  return null;
17582
17569
  }
17583
17570
  log.warn(
17584
17571
  `recall phase-1 enrichment [${name}] failed open: ${outcome2.error instanceof Error ? outcome2.error.message : String(outcome2.error)}`
17585
17572
  );
17573
+ onStatus?.("error");
17586
17574
  return null;
17587
17575
  };
17588
17576
  if (options.abortSignal?.aborted) {
@@ -17590,6 +17578,7 @@ ${formatted}`;
17590
17578
  log.debug(
17591
17579
  `recall phase-1 enrichment [${name}]: skipped after abort at +${Date.now() - phase1Start}ms`
17592
17580
  );
17581
+ onStatus?.("skipped");
17593
17582
  return null;
17594
17583
  }
17595
17584
  let timeoutHandle;
@@ -17606,6 +17595,7 @@ ${formatted}`;
17606
17595
  `recall phase-1 enrichment [${name}]: skipped after shared ${enrichmentSectionDeadlineMs}ms budget expired at +${Date.now() - phase1Start}ms`
17607
17596
  );
17608
17597
  promise.cancel();
17598
+ onStatus?.("timeout");
17609
17599
  return null;
17610
17600
  }
17611
17601
  const outcome = await (timeoutMs !== null ? Promise.race([
@@ -17623,6 +17613,7 @@ ${formatted}`;
17623
17613
  `recall phase-1 enrichment [${name}]: timed out within shared ${enrichmentSectionDeadlineMs}ms budget at +${Date.now() - phase1Start}ms`
17624
17614
  );
17625
17615
  promise.cancel();
17616
+ onStatus?.("timeout");
17626
17617
  return null;
17627
17618
  }
17628
17619
  return finalizeEnrichmentOutcome(outcome);
@@ -19013,9 +19004,11 @@ ${tmtNode.summary}`
19013
19004
  }
19014
19005
  }
19015
19006
  const phase2AfterQmdMs = Date.now() - recallStart;
19016
- const harmonicRetrievalSection = await awaitEnrichmentSection(
19017
- "harmonic",
19018
- harmonicRetrievalPromise
19007
+ const harmonicRetrievalSection = await phase2Timer.enrichment(
19008
+ "Harmonic",
19009
+ harmonicStartedMs,
19010
+ () => timings.harmonicRetrieval?.startsWith("skip") === true,
19011
+ (onStatus) => awaitEnrichmentSection("harmonic", harmonicRetrievalPromise, onStatus)
19019
19012
  );
19020
19013
  if (harmonicRetrievalSection) {
19021
19014
  this.deps.appendRecallSection(
@@ -19037,31 +19030,38 @@ ${tmtNode.summary}`
19037
19030
  if (!graphDecisionReason) {
19038
19031
  graphDecisionReason = graphSnapshotReason;
19039
19032
  }
19040
- await this.deps.recordLastGraphRecallSnapshot({
19033
+ const persistedGraphSnapshotStatus = graphSnapshotStatus;
19034
+ await phase2Timer.step("GraphSnapshot", () => this.deps.recordLastGraphRecallSnapshot({
19041
19035
  storage: profileStorage,
19042
19036
  prompt: retrievalQuery,
19043
19037
  recallMode,
19044
19038
  recallNamespaces,
19045
19039
  seedPaths: graphSnapshotSeedPaths,
19046
19040
  expandedPaths: graphSnapshotExpandedPaths,
19047
- status: graphSnapshotStatus,
19041
+ status: persistedGraphSnapshotStatus,
19048
19042
  reason: graphSnapshotReason,
19049
19043
  shadowMode: graphDecisionShadowMode,
19050
19044
  queryIntent,
19051
19045
  seedResults: graphSnapshotSeedResults,
19052
19046
  finalResults: graphSnapshotFinalResults,
19053
19047
  shadowComparison: graphSnapshotShadowComparison
19054
- });
19048
+ }));
19049
+ } else {
19050
+ phase2Timer.skipped("GraphSnapshot");
19055
19051
  }
19056
- await this.deps.recordLastIntentSnapshot({
19052
+ await phase2Timer.step("IntentSnapshot", () => this.deps.recordLastIntentSnapshot({
19057
19053
  storage: profileStorage,
19058
19054
  snapshot: buildIntentDebugSnapshot()
19059
- });
19060
- if (this.deps.isRecallSectionEnabled(
19055
+ }));
19056
+ const compressionEnabled = this.deps.isRecallSectionEnabled(
19061
19057
  "compression-guidelines",
19062
19058
  resolveCompressionCapabilities(this.deps.config).compressionGuidelineLearning === true
19063
- )) {
19064
- const compressionGuidelineSection = await this.deps.buildCompressionGuidelineRecallSection();
19059
+ );
19060
+ if (compressionEnabled) {
19061
+ const compressionGuidelineSection = await phase2Timer.step(
19062
+ "Compression",
19063
+ () => this.deps.buildCompressionGuidelineRecallSection()
19064
+ );
19065
19065
  if (compressionGuidelineSection) {
19066
19066
  this.deps.appendRecallSection(
19067
19067
  sectionBuckets,
@@ -19069,6 +19069,8 @@ ${tmtNode.summary}`
19069
19069
  compressionGuidelineSection
19070
19070
  );
19071
19071
  }
19072
+ } else {
19073
+ phase2Timer.skipped("Compression");
19072
19074
  }
19073
19075
  if (transcriptSection) {
19074
19076
  this.deps.appendRecallSection(sectionBuckets, "transcript", transcriptSection);
@@ -19090,9 +19092,11 @@ ${tmtNode.summary}`
19090
19092
  conversationRecallSection
19091
19093
  );
19092
19094
  }
19093
- const compoundingSection = await awaitEnrichmentSection(
19094
- "compounding",
19095
- compoundingPromise
19095
+ const compoundingSection = await phase2Timer.enrichment(
19096
+ "Compounding",
19097
+ compoundingStartedMs,
19098
+ () => timings.compounding?.startsWith("skip") === true,
19099
+ (onStatus) => awaitEnrichmentSection("compounding", compoundingPromise, onStatus)
19096
19100
  );
19097
19101
  if (compoundingSection) {
19098
19102
  this.deps.appendRecallSection(
@@ -19102,7 +19106,11 @@ ${tmtNode.summary}`
19102
19106
  );
19103
19107
  }
19104
19108
  let curiosityFooter, curiosityQuestionSelected = false, curiosityFooterTruncated = false;
19105
- const topQuestion = this.deps.config.injectQuestions && this.deps.isRecallSectionEnabled("questions", true) ? selectCuriosityQuestion(await profileStorage.readQuestions({ unresolvedOnly: true })) : void 0;
19109
+ const questionsEnabled = this.deps.config.injectQuestions && this.deps.isRecallSectionEnabled("questions", true);
19110
+ const topQuestion = questionsEnabled ? selectCuriosityQuestion(
19111
+ await phase2Timer.step("Questions", () => profileStorage.readQuestions({ unresolvedOnly: true }))
19112
+ ) : void 0;
19113
+ if (!questionsEnabled) phase2Timer.skipped("Questions");
19106
19114
  if (topQuestion) {
19107
19115
  curiosityQuestionSelected = true;
19108
19116
  const formattedFooter = formatCuriosityFooter(topQuestion);
@@ -19113,7 +19121,12 @@ ${tmtNode.summary}`
19113
19121
  }
19114
19122
  }
19115
19123
  const phase2QuestionsDoneMs = Date.now() - recallStart;
19116
- const finalizedQueryAwarePrefilter = await queryAwarePrefilterPromise;
19124
+ const finalizedQueryAwarePrefilter = await phase2Timer.enrichment(
19125
+ "Prefilter",
19126
+ prefilterStartedMs,
19127
+ () => timings.queryAware?.startsWith("skip") === true,
19128
+ () => queryAwarePrefilterPromise
19129
+ );
19117
19130
  const phase2QapDoneMs = Date.now() - recallStart;
19118
19131
  throwIfRecallAborted(options.abortSignal);
19119
19132
  if (timings.queryAware && finalizedQueryAwarePrefilter.candidatePaths?.size) {
@@ -19129,8 +19142,9 @@ ${tmtNode.summary}`
19129
19142
  );
19130
19143
  const timingParts = Object.entries(timings).map(([k, v]) => `${k}=${v}`).join(", ");
19131
19144
  log.info(`recall timings: ${timingParts}`);
19132
- recordRecallTiming(this.deps.config, {
19145
+ emitRecallTiming(this.deps.config, {
19133
19146
  ...timings,
19147
+ ...phase2Timings,
19134
19148
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
19135
19149
  namespace: selfNamespace,
19136
19150
  total: timings.total,
@@ -20685,6 +20699,86 @@ var RecallSearchPipelineCoordinator = class {
20685
20699
  // src/orchestration/turn-ingestion.ts
20686
20700
  import { createHash as createHash10, randomBytes } from "crypto";
20687
20701
 
20702
+ // src/orchestration/extraction-task-queueing.ts
20703
+ function queueBufferedCaptureScopeGroups(queueBufferedExtraction, extractionTurns, bufferKey, options) {
20704
+ for (const group of groupTurnsByExtractionScope(extractionTurns)) {
20705
+ const groupIsAccepted = group.turns.some((turn) => turn.acceptedCapture === true);
20706
+ if (!groupIsAccepted) {
20707
+ void queueBufferedExtraction(group.turns, "trigger_mode", {
20708
+ bufferKey,
20709
+ clearMatchingTurns: true,
20710
+ preemptable: true
20711
+ }).catch((err) => log.error(`native trigger extraction failed: ${err}`));
20712
+ continue;
20713
+ }
20714
+ const { promise: extraction, resolve: resolve4, reject } = Promise.withResolvers();
20715
+ void queueBufferedExtraction(group.turns, "trigger_mode", {
20716
+ bufferKey,
20717
+ clearBufferAfterExtraction: true,
20718
+ clearMatchingTurns: true,
20719
+ skipDedupeCheck: true,
20720
+ skipCharThreshold: true,
20721
+ skipUserTurnThreshold: true,
20722
+ abortSignal: options.abortSignal,
20723
+ extractionDeadlineMs: options.deadlineMs,
20724
+ writeNamespaceOverride: group.writeNamespaceOverride,
20725
+ principalOverride: group.principalOverride,
20726
+ scopeProfileWritePlan: group.scopeProfileWritePlan ?? null,
20727
+ preemptable: true,
20728
+ onTaskSettled: (err) => err ? reject(err) : resolve4()
20729
+ }).catch(reject);
20730
+ if (options.onExtractionQueued) options.onExtractionQueued(extraction);
20731
+ else extraction.catch((err) => log.error(`buffered capture extraction failed: ${err}`));
20732
+ }
20733
+ }
20734
+
20735
+ // src/orchestration/turn-ingestion-buffered.ts
20736
+ async function ingestReplayBatchBuffered(deps, bySession, options) {
20737
+ const resolvedWriteTarget = options.writeNamespaceOverride ?? (resolveNamespaceCapabilities(deps.config).namespaces === true ? options.scopeProfileWritePlan?.writeNamespace : deps.config.defaultNamespace);
20738
+ if (!resolvedWriteTarget) {
20739
+ throw new StorageTargetRequiredError(
20740
+ "accepted capture requires an explicit storage target (writeNamespaceOverride or scopeProfileWritePlan.writeNamespace)"
20741
+ );
20742
+ }
20743
+ const pin = (turn) => {
20744
+ const pinned = { ...turn, acceptedCapture: true, writeNamespaceOverride: resolvedWriteTarget };
20745
+ if (options.codingContext) pinned.codingContext = options.codingContext;
20746
+ if (options.principalOverride) pinned.principalOverride = options.principalOverride;
20747
+ if (options.scopeProfileWritePlan) pinned.scopeProfileWritePlan = options.scopeProfileWritePlan;
20748
+ return pinned;
20749
+ };
20750
+ const admissionKey = options.bufferAdmissionIdempotencyKey?.trim();
20751
+ const batches = [...bySession].map(([bufferKey, sessionTurns]) => ({ bufferKey, turns: sessionTurns.map(pin) }));
20752
+ const outcomes = admissionKey ? await deps.buffer.addTurnsBoundedForObserveReplay(batches, admissionKey) : await deps.buffer.addTurnsBounded(batches);
20753
+ if (outcomes === "duplicate") return;
20754
+ if (outcomes === null) {
20755
+ const refusedKey = batches.find((batch) => batch.turns.length > 0)?.bufferKey ?? "unknown";
20756
+ throw new ReplayAdmissionRefusedError(
20757
+ `durable observe capture refused: extraction buffer at entry capacity for batch containing ${refusedKey}`
20758
+ );
20759
+ }
20760
+ await deps.buffer.flushPendingSave({ throwOnFailure: true });
20761
+ if (options.archiveLcm !== false && deps.lcmEngine?.enabled) {
20762
+ for (const [bufferKey, sessionTurns] of bySession) {
20763
+ await deps.lcmEngine.observeMessages(
20764
+ bufferKey,
20765
+ sessionTurns.map((turn) => ({
20766
+ role: turn.role,
20767
+ content: turn.content,
20768
+ parts: turn.parts,
20769
+ rawContent: turn.rawContent,
20770
+ sourceFormat: turn.sourceFormat
20771
+ }))
20772
+ );
20773
+ }
20774
+ }
20775
+ for (const { bufferKey, outcome } of outcomes) {
20776
+ if (outcome.decision !== "keep_buffering" && outcome.extractionTurns) {
20777
+ queueBufferedCaptureScopeGroups(deps.queueBufferedExtraction, outcome.extractionTurns, bufferKey, options);
20778
+ }
20779
+ }
20780
+ }
20781
+
20688
20782
  // src/orchestration/extraction-drain.ts
20689
20783
  import { createHash as createHash9 } from "crypto";
20690
20784
 
@@ -21148,39 +21242,6 @@ function skipClaimedSession(buffer, bufferKey, settle) {
21148
21242
  return true;
21149
21243
  }
21150
21244
 
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
21245
  // src/orchestration/extraction-queue-snapshot-sharing.ts
21185
21246
  function automaticSnapshotSharingEligible(options) {
21186
21247
  return options.execution === void 0 && options.preemptable === true && options.failOnExtractionFailure !== true && options.forceExtractionAttempt !== true && options.preemptRunning !== true;
@@ -21412,7 +21473,7 @@ var TurnIngestionCoordinator = class {
21412
21473
  bySession.set(key, list);
21413
21474
  }
21414
21475
  if (options.extractionMode === "buffered") {
21415
- return this.ingestReplayBatchBuffered(bySession, options);
21476
+ return ingestReplayBatchBuffered(this.deps, bySession, options);
21416
21477
  }
21417
21478
  if (options.abortSignal?.aborted) {
21418
21479
  throw options.abortSignal.reason instanceof Error ? options.abortSignal.reason : new Error("ingestReplayBatch aborted");
@@ -21477,55 +21538,6 @@ var TurnIngestionCoordinator = class {
21477
21538
  }
21478
21539
  }
21479
21540
  }
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
21541
  /**
21530
21542
  * Ingest a batch of bulk-import turns (#460). Like ingestReplayBatch, this
21531
21543
  * normalizes user/assistant turns into the extraction buffer and awaits
@@ -31074,7 +31086,6 @@ function formatAuditMemoryReport(report) {
31074
31086
  // src/access-http.ts
31075
31087
  import { createServer } from "http";
31076
31088
  import { randomUUID as randomUUID6, timingSafeEqual } from "crypto";
31077
- import { AsyncLocalStorage } from "async_hooks";
31078
31089
  import { existsSync as existsSync2 } from "fs";
31079
31090
  import { readFile as readFile14 } from "fs/promises";
31080
31091
  import path32 from "path";
@@ -37922,7 +37933,6 @@ function resolveDefaultAdminConsolePublicDir(sourceUrl = import.meta.url) {
37922
37933
  return candidates.find((candidate) => existsSync2(candidate)) ?? candidates[0];
37923
37934
  }
37924
37935
  var defaultAdminConsolePublicDir = resolveDefaultAdminConsolePublicDir();
37925
- var correlationIdStore = new AsyncLocalStorage();
37926
37936
  var RELAY_ADMIN_CONSOLE_ASSETS = /* @__PURE__ */ new Map([
37927
37937
  ["relay.css", "text/css; charset=utf-8"],
37928
37938
  ["relay-model.js", "application/javascript; charset=utf-8"],
@@ -38161,7 +38171,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
38161
38171
  };
38162
38172
  req.once("aborted", abortDisconnectedRequest);
38163
38173
  res.once("close", abortDisconnectedRequest);
38164
- correlationIdStore.run(correlationId, () => {
38174
+ runWithCorrelationId(correlationId, () => {
38165
38175
  void this.handle(req, res, correlationId, abortController.signal).catch((err) => {
38166
38176
  if (err instanceof BriefingTimeoutError) {
38167
38177
  this.respondJson(res, 504, { error: err.message, code: "briefing_timeout" });
@@ -38758,7 +38768,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
38758
38768
  includeContent: false,
38759
38769
  signal: this.createRequestAbortSignal(req, res)
38760
38770
  });
38761
- await respondOfflineSnapshotStream(res, result, correlationIdStore.getStore());
38771
+ await respondOfflineSnapshotStream(res, result, currentCorrelationId());
38762
38772
  return;
38763
38773
  }
38764
38774
  if (req.method === "GET" && (pathname === "/engram/v1/offline-sync/manifest-stream" || pathname === "/remnic/v1/offline-sync/manifest-stream")) {
@@ -38783,7 +38793,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
38783
38793
  includeTranscripts: includeTranscriptsRaw !== "false",
38784
38794
  signal: this.createRequestAbortSignal(req, res)
38785
38795
  });
38786
- await respondOfflineManifestStream(res, result, correlationIdStore.getStore());
38796
+ await respondOfflineManifestStream(res, result, currentCorrelationId());
38787
38797
  return;
38788
38798
  }
38789
38799
  if (req.method === "POST" && (pathname === "/engram/v1/offline-sync/snapshot" || pathname === "/remnic/v1/offline-sync/snapshot")) {
@@ -40387,7 +40397,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
40387
40397
  const raw = req.headers["mcp-session-id"];
40388
40398
  return typeof raw === "string" ? raw.trim() : void 0;
40389
40399
  })();
40390
- const mcpCorrelationId = correlationIdStore.getStore() ?? randomUUID6();
40400
+ const mcpCorrelationId = currentCorrelationId() ?? randomUUID6();
40391
40401
  const requestIdentity = this.resolveRequestIdentity(req);
40392
40402
  if (request.method === "tools/call" && this.mcpServer.toolAcceptsNamespace(toolName)) {
40393
40403
  const mcpExplicitNamespace = toolArgs !== null && typeof toolArgs === "object" && !Array.isArray(toolArgs) && typeof toolArgs.namespace === "string" && toolArgs.namespace.length > 0 ? toolArgs.namespace : void 0;
@@ -40447,7 +40457,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
40447
40457
  res.statusCode = status;
40448
40458
  res.setHeader("content-type", "application/json; charset=utf-8");
40449
40459
  res.setHeader("content-length", String(Buffer.byteLength(body)));
40450
- const cid = correlationIdStore.getStore();
40460
+ const cid = currentCorrelationId();
40451
40461
  if (cid) {
40452
40462
  res.setHeader("x-request-id", cid);
40453
40463
  }
@@ -40460,7 +40470,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
40460
40470
  for (const [key, value] of Object.entries(headers)) {
40461
40471
  res.setHeader(key, value);
40462
40472
  }
40463
- const cid = correlationIdStore.getStore();
40473
+ const cid = currentCorrelationId();
40464
40474
  if (cid) {
40465
40475
  res.setHeader("x-request-id", cid);
40466
40476
  }
@@ -51111,7 +51121,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51111
51121
  }
51112
51122
  }
51113
51123
  if (sourceArchive.endsWith(".enc")) {
51114
- const { isEncryptedCapsuleFile } = await import("./capsule-crypto-YO5QJ6L3.js");
51124
+ const { isEncryptedCapsuleFile } = await import("./capsule-crypto-7FJQINUR.js");
51115
51125
  const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
51116
51126
  if (encDetected) {
51117
51127
  throw new Error(
@@ -51274,7 +51284,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51274
51284
  const { parseExportBundle } = await import("./transfer/types.js");
51275
51285
  let decryptedBuf;
51276
51286
  try {
51277
- const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-YO5QJ6L3.js");
51287
+ const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-7FJQINUR.js");
51278
51288
  decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
51279
51289
  } catch (decErr) {
51280
51290
  const msg = decErr instanceof Error ? decErr.message : String(decErr);
@@ -53765,7 +53775,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
53765
53775
  console.error("--verb is required. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context");
53766
53776
  process.exit(1);
53767
53777
  }
53768
- const { isValidResolutionVerb: isValidResolutionVerb2, executeResolution: executeResolution2 } = await import("./resolution-A3NAI3YE.js");
53778
+ const { isValidResolutionVerb: isValidResolutionVerb2, executeResolution: executeResolution2 } = await import("./resolution-TCO63RRC.js");
53769
53779
  if (!isValidResolutionVerb2(verb)) {
53770
53780
  console.error(`Invalid verb: ${verb}. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context`);
53771
53781
  process.exit(1);
@@ -61542,6 +61552,15 @@ var AccessObserveWriteSurface = class {
61542
61552
  codingContext: this.deps.orchestrator.getCodingContextForSession(request.sessionKey) ?? void 0,
61543
61553
  abortSignal: observeAbortController.signal
61544
61554
  };
61555
+ const clientIdempotencyKey = request.idempotencyKey?.trim();
61556
+ if (clientIdempotencyKey) {
61557
+ ingestOptions.bufferAdmissionIdempotencyKey = scopeObserveBufferAdmissionIdempotencyKey({
61558
+ sessionKey: request.sessionKey,
61559
+ writeNamespace,
61560
+ principal: principalOverride,
61561
+ clientKey: clientIdempotencyKey
61562
+ });
61563
+ }
61545
61564
  if (request.authenticatedPrincipal !== void 0 && request.authenticatedPrincipal.trim().length > 0) {
61546
61565
  ingestOptions.sessionOwnerPrincipal = request.authenticatedPrincipal.trim();
61547
61566
  }
@@ -64482,7 +64501,7 @@ var EngramAccessService = class extends SupportPassportAccessServiceBase {
64482
64501
  );
64483
64502
  }
64484
64503
  async executeRecall(request) {
64485
- return this.accessRecallSurface.executeRecall(request);
64504
+ return recordRecallAttempt(this.orchestrator.config, request.abortSignal, () => this.accessRecallSurface.executeRecall(request));
64486
64505
  }
64487
64506
  async recallExplain(request = {}) {
64488
64507
  const requestedNamespace = request.namespace?.trim() ? this.resolveNamespace(request.namespace) : void 0;
@@ -67512,4 +67531,4 @@ export {
67512
67531
  EngramAccessService,
67513
67532
  AccessAdminOpsSurface
67514
67533
  };
67515
- //# sourceMappingURL=chunk-FWDVW2BD.js.map
67534
+ //# sourceMappingURL=chunk-CAWVPY6E.js.map