@remnic/core 10.0.145 → 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 (291) hide show
  1. package/dist/access-admin-ops-surface.js +151 -147
  2. package/dist/access-cli.js +151 -147
  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 +151 -147
  8. package/dist/access-extraction-force-flush.js +151 -147
  9. package/dist/access-http-briefing.js +151 -147
  10. package/dist/access-http-query.js +151 -147
  11. package/dist/access-http.d.ts.map +1 -1
  12. package/dist/access-http.js +151 -147
  13. package/dist/access-identity-continuity-surface.js +151 -147
  14. package/dist/access-lcm-surface.js +151 -147
  15. package/dist/access-mcp.js +151 -147
  16. package/dist/access-observe-write-category.js +11 -11
  17. package/dist/access-observe-write-surface.js +151 -147
  18. package/dist/access-offline-manifest.js +10 -10
  19. package/dist/access-operations-batch.js +151 -147
  20. package/dist/access-operations.js +151 -147
  21. package/dist/access-recall-concurrency.js +151 -147
  22. package/dist/access-recall-response.js +151 -147
  23. package/dist/access-recall-surface.js +151 -147
  24. package/dist/access-schema.js +7 -7
  25. package/dist/access-service.d.ts.map +1 -1
  26. package/dist/access-service.js +151 -147
  27. package/dist/active-recall.js +28 -28
  28. package/dist/adapters/index.js +7 -7
  29. package/dist/adapters/registry.js +3 -3
  30. package/dist/auto-sync-PSZJHHXB.js +2 -2
  31. package/dist/briefing.js +19 -19
  32. package/dist/buffer.js +1 -1
  33. package/dist/calibration.js +3 -3
  34. package/dist/{capsule-crypto-GWVG7LGC.js → capsule-crypto-7FJQINUR.js} +2 -2
  35. package/dist/causal-behavior.js +2 -2
  36. package/dist/causal-chain.js +2 -2
  37. package/dist/causal-consolidation.js +22 -22
  38. package/dist/causal-retrieval.js +2 -2
  39. package/dist/causal-trajectory-graph.js +2 -2
  40. package/dist/causal-trajectory.js +1 -1
  41. package/dist/{chunk-GB442ZFG.js → chunk-2NGTY22Z.js} +5 -5
  42. package/dist/{chunk-OWHERGF2.js → chunk-2NLLXCJG.js} +2 -2
  43. package/dist/{chunk-KBMJWNSY.js → chunk-2WD2TRTJ.js} +2 -2
  44. package/dist/{chunk-2UOU6CZZ.js → chunk-3MXQ5XJT.js} +2 -2
  45. package/dist/{chunk-ETUMOYGL.js → chunk-3NLBDM7V.js} +2 -2
  46. package/dist/{chunk-XVZA6VXC.js → chunk-3SL52JKD.js} +4 -4
  47. package/dist/chunk-4IJBNRMZ.js +45 -0
  48. package/dist/chunk-4IJBNRMZ.js.map +1 -0
  49. package/dist/{chunk-QCJ7Q5BM.js → chunk-4N4BAO66.js} +2 -2
  50. package/dist/{chunk-YGPRFYV6.js → chunk-4WX32RLU.js} +3 -3
  51. package/dist/{chunk-WN2DASTS.js → chunk-5BE3FLKL.js} +4 -4
  52. package/dist/chunk-5JD4DXQX.js +91 -0
  53. package/dist/chunk-5JD4DXQX.js.map +1 -0
  54. package/dist/{chunk-M4IEZGCK.js → chunk-73TPOGS4.js} +6 -6
  55. package/dist/{chunk-XIWRF7TG.js → chunk-7P72BY4F.js} +2 -2
  56. package/dist/{chunk-SV6OLWPF.js → chunk-7YHU3NJD.js} +15 -15
  57. package/dist/{chunk-D3ZISMKY.js → chunk-AIDFYS4Z.js} +10 -10
  58. package/dist/{chunk-YIOP7IFD.js → chunk-AO5LKFGO.js} +4 -4
  59. package/dist/{chunk-G4NKURT4.js → chunk-C6S353AG.js} +30 -1
  60. package/dist/chunk-C6S353AG.js.map +1 -0
  61. package/dist/{chunk-T3M5KJRV.js → chunk-C6Z3H23R.js} +2 -2
  62. package/dist/{chunk-Z2OKWO35.js → chunk-CAWVPY6E.js} +325 -316
  63. package/dist/chunk-CAWVPY6E.js.map +1 -0
  64. package/dist/{chunk-IBPE3Q5M.js → chunk-CJ2SYU4S.js} +2 -2
  65. package/dist/{chunk-UIFWZMO7.js → chunk-CLVILSBR.js} +7 -7
  66. package/dist/{chunk-7TY5ZHFA.js → chunk-COJBTRTQ.js} +2 -2
  67. package/dist/{chunk-LS5VJO5O.js → chunk-CVCKYMVX.js} +2 -2
  68. package/dist/{chunk-DCLOMXQL.js → chunk-EJ6EPEMP.js} +30 -30
  69. package/dist/{chunk-ENPJX3BB.js → chunk-FMFCQRDM.js} +3 -3
  70. package/dist/{chunk-IJVU4ILJ.js → chunk-GCHM5BYL.js} +7 -7
  71. package/dist/{chunk-KCU2ZWBS.js → chunk-GCQIXPWZ.js} +2 -2
  72. package/dist/{chunk-GKL6QYZO.js → chunk-GMO3BGOF.js} +1 -1
  73. package/dist/{chunk-OMPX3KLG.js → chunk-H6OTEBPK.js} +2 -2
  74. package/dist/{chunk-DK3T3Q6A.js → chunk-HADCITEA.js} +8 -8
  75. package/dist/{chunk-F4ZHKDBW.js → chunk-HLWXCDUQ.js} +2 -2
  76. package/dist/{chunk-E7WMDXAW.js → chunk-HOGSBSCH.js} +2 -2
  77. package/dist/{chunk-4RASUAN3.js → chunk-HXFIILGF.js} +4 -4
  78. package/dist/{chunk-CIEEYVUB.js → chunk-IMULTENA.js} +2 -2
  79. package/dist/{chunk-ADBON4FI.js → chunk-IOMWNBMH.js} +9 -9
  80. package/dist/{chunk-QFBBSKEU.js → chunk-IXR3SNHL.js} +2 -2
  81. package/dist/{chunk-UWP6PGWN.js → chunk-J3EU5H7W.js} +2 -2
  82. package/dist/{chunk-EUL3S3LE.js → chunk-J5WI4QRP.js} +4 -4
  83. package/dist/{chunk-DBNZYQCL.js → chunk-JXAHMR5L.js} +2 -2
  84. package/dist/{chunk-U62EINFH.js → chunk-KG7RO5XU.js} +3 -3
  85. package/dist/{chunk-BUKK5SWA.js → chunk-KQAFEZQX.js} +2 -2
  86. package/dist/{chunk-PDVEY4QS.js → chunk-LD7I5AZW.js} +9 -9
  87. package/dist/{chunk-ODHFX5JX.js → chunk-LKXED2DT.js} +13 -13
  88. package/dist/{chunk-FZ6QUOTL.js → chunk-LYM65HMS.js} +2 -2
  89. package/dist/{chunk-BKR2YCQ5.js → chunk-MKJBZR7J.js} +2 -2
  90. package/dist/{chunk-G3ZUQZGM.js → chunk-ND7ZKKVK.js} +2 -2
  91. package/dist/{chunk-7TDJZV2S.js → chunk-O7CHKXSF.js} +4 -4
  92. package/dist/{chunk-W7K5BP3M.js → chunk-OM5ESBES.js} +2 -2
  93. package/dist/{chunk-GQDO6KHO.js → chunk-OSM5MKAU.js} +2 -2
  94. package/dist/chunk-PXY2B7BG.js +51 -0
  95. package/dist/chunk-PXY2B7BG.js.map +1 -0
  96. package/dist/{chunk-MVTMKFBW.js → chunk-QDY4TSKK.js} +2 -2
  97. package/dist/{chunk-X2FEUBKD.js → chunk-QP6CBFYL.js} +2 -2
  98. package/dist/{chunk-4XINO77L.js → chunk-RB7NXZ2E.js} +2 -2
  99. package/dist/{chunk-MEYPQLXV.js → chunk-RMPHPB6B.js} +2 -2
  100. package/dist/{chunk-SEIFDQ6U.js → chunk-RXXXT5PA.js} +3 -3
  101. package/dist/{chunk-GTW6GPQU.js → chunk-S627NPRV.js} +6 -6
  102. package/dist/{chunk-FBV4QGXT.js → chunk-SXVU57SW.js} +2 -2
  103. package/dist/{chunk-TFHL4WWY.js → chunk-TAUBEJ37.js} +5 -5
  104. package/dist/{chunk-WQUGCOKF.js → chunk-TFA6HPOA.js} +4 -4
  105. package/dist/{chunk-6P7U3HWG.js → chunk-TH6OYP6I.js} +3 -3
  106. package/dist/{chunk-P4YYUDR5.js → chunk-TNACU47L.js} +3 -3
  107. package/dist/{chunk-IHCXMYSE.js → chunk-U2PSE7MB.js} +2 -2
  108. package/dist/{chunk-PCMGMPQZ.js → chunk-X4EF7IG3.js} +4 -4
  109. package/dist/{chunk-UVYI6VIX.js → chunk-X7Y7WX73.js} +1 -1
  110. package/dist/{chunk-GA3Y7GZR.js → chunk-XCJDDXJX.js} +2 -2
  111. package/dist/{chunk-GDREJ32D.js → chunk-XPDMJC5O.js} +3 -3
  112. package/dist/{chunk-KYZFW4LW.js → chunk-XTGQTSZZ.js} +2 -2
  113. package/dist/chunk-YRHBSYQR.js +15 -0
  114. package/dist/chunk-YRHBSYQR.js.map +1 -0
  115. package/dist/{chunk-63MKTHYT.js → chunk-YVK7WZYC.js} +2 -2
  116. package/dist/{chunk-5JW2QIFH.js → chunk-ZDWZYKCL.js} +2 -2
  117. package/dist/{chunk-K3FH3LAQ.js → chunk-ZG4GNPRE.js} +10 -10
  118. package/dist/cli.js +151 -147
  119. package/dist/coding/export-okf-codegraph.js +18 -18
  120. package/dist/coding/pre-action-gate.js +2 -2
  121. package/dist/compounding/engine.js +20 -20
  122. package/dist/config.js +28 -28
  123. package/dist/connectors/codex-materialize-runner.js +19 -19
  124. package/dist/connectors/index.js +19 -19
  125. package/dist/contradiction/index.js +7 -7
  126. package/dist/convergence-refresh.js +21 -21
  127. package/dist/conversation-index/backend.js +2 -2
  128. package/dist/corpus-watermark.js +21 -21
  129. package/dist/deep-recall-http-glue.js +8 -8
  130. package/dist/deep-recall.js +2 -2
  131. package/dist/entity-retrieval.js +20 -20
  132. package/dist/explicit-capture.js +151 -147
  133. package/dist/extraction-span-materialize.js +2 -2
  134. package/dist/extraction.js +25 -25
  135. package/dist/{graph-edge-decay-OEX5OGMI.js → graph-edge-decay-BC3IO2J4.js} +5 -5
  136. package/dist/graph-jsonl.js +3 -3
  137. package/dist/graph-snapshot.js +3 -3
  138. package/dist/graph.js +4 -4
  139. package/dist/harmonic-retrieval.js +19 -19
  140. package/dist/index.js +260 -256
  141. package/dist/lcm/engine.js +4 -4
  142. package/dist/lcm/index.js +10 -10
  143. package/dist/local-llm.js +2 -2
  144. package/dist/location/index.js +20 -20
  145. package/dist/maintenance/memory-governance.js +19 -19
  146. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +19 -19
  147. package/dist/maintenance/rebuild-memory-projection-runner.js +21 -21
  148. package/dist/maintenance/rebuild-memory-projection.js +20 -20
  149. package/dist/memory-browse.js +1 -1
  150. package/dist/memory-subject.js +1 -1
  151. package/dist/namespaces/migrate.js +20 -20
  152. package/dist/namespaces/search.js +7 -7
  153. package/dist/namespaces/storage.js +19 -19
  154. package/dist/offline-sync-changeset-generations.js +3 -3
  155. package/dist/offline-sync-embedding-generation.js +2 -2
  156. package/dist/offline-sync-snapshot-stream.js +5 -5
  157. package/dist/offline-sync.js +7 -7
  158. package/dist/operator-doctor-corpus.js +22 -22
  159. package/dist/operator-toolkit.js +37 -37
  160. package/dist/orchestration/backlog-scheduler.js +152 -148
  161. package/dist/orchestration/backlog-scheduler.js.map +1 -1
  162. package/dist/orchestration/buffer-drain-runner.js +152 -148
  163. package/dist/orchestration/maintenance.js +30 -30
  164. package/dist/orchestration/recall-internal.d.ts.map +1 -1
  165. package/dist/orchestrator.js +151 -147
  166. package/dist/recall-attempt-timing.d.ts +18 -0
  167. package/dist/recall-attempt-timing.d.ts.map +1 -0
  168. package/dist/recall-attempt-timing.js +14 -0
  169. package/dist/recall-attempt-timing.js.map +1 -0
  170. package/dist/recall-enrichment-promise.d.ts +22 -0
  171. package/dist/recall-enrichment-promise.d.ts.map +1 -0
  172. package/dist/recall-enrichment-promise.js +10 -0
  173. package/dist/recall-enrichment-promise.js.map +1 -0
  174. package/dist/recall-explain-renderer.js +3 -3
  175. package/dist/recall-navigation.js +151 -147
  176. package/dist/recall-phase2-timing.d.ts +44 -0
  177. package/dist/recall-phase2-timing.d.ts.map +1 -0
  178. package/dist/recall-phase2-timing.js +22 -0
  179. package/dist/recall-phase2-timing.js.map +1 -0
  180. package/dist/recall-timings.d.ts +35 -0
  181. package/dist/recall-timings.d.ts.map +1 -1
  182. package/dist/recall-timings.js +2 -1
  183. package/dist/recall-why-service.js +2 -2
  184. package/dist/recall-xray-cli.js +4 -4
  185. package/dist/recall-xray-renderer.js +3 -3
  186. package/dist/recall-xray.js +2 -2
  187. package/dist/reconcile/manifest.js +3 -3
  188. package/dist/{resolution-A3NAI3YE.js → resolution-TCO63RRC.js} +8 -8
  189. package/dist/resolution-TCO63RRC.js.map +1 -0
  190. package/dist/resume-bundles.js +29 -29
  191. package/dist/salvage-envelope.js +1 -1
  192. package/dist/search/factory.js +6 -6
  193. package/dist/search/index.js +12 -12
  194. package/dist/semantic-consolidation.js +20 -20
  195. package/dist/semantic-rule-promotion.js +19 -19
  196. package/dist/semantic-rule-verifier.js +19 -19
  197. package/dist/source-agent-qualifier.js +19 -19
  198. package/dist/standup/build.js +19 -19
  199. package/dist/storage.js +18 -18
  200. package/dist/subject-config.js +1 -1
  201. package/dist/summarizer.js +4 -4
  202. package/dist/support-passport/index.js +7 -7
  203. package/dist/transfer/backup.js +2 -2
  204. package/dist/transfer/capsule-export.js +2 -2
  205. package/dist/transfer/capsule-import.js +2 -2
  206. package/dist/transfer/export-okf.js +19 -19
  207. package/dist/verified-recall.js +19 -19
  208. package/dist/who-knows-cli.js +20 -20
  209. package/dist/who-knows.js +19 -19
  210. package/dist/write-envelope.js +1 -1
  211. package/package.json +2 -2
  212. package/src/access-correlation.ts +17 -0
  213. package/src/access-http.ts +7 -8
  214. package/src/access-service.ts +3 -1
  215. package/src/orchestration/recall-internal.ts +63 -75
  216. package/src/recall-attempt-timing.ts +78 -0
  217. package/src/recall-enrichment-promise.ts +62 -0
  218. package/src/recall-phase2-timing.ts +146 -0
  219. package/src/recall-timings-access.test.ts +140 -2
  220. package/src/recall-timings-request-contract.test.ts +488 -0
  221. package/src/recall-timings.ts +70 -0
  222. package/dist/chunk-G4NKURT4.js.map +0 -1
  223. package/dist/chunk-Z2OKWO35.js.map +0 -1
  224. /package/dist/{capsule-crypto-GWVG7LGC.js.map → access-correlation.js.map} +0 -0
  225. /package/dist/{graph-edge-decay-OEX5OGMI.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
  226. /package/dist/{chunk-GB442ZFG.js.map → chunk-2NGTY22Z.js.map} +0 -0
  227. /package/dist/{chunk-OWHERGF2.js.map → chunk-2NLLXCJG.js.map} +0 -0
  228. /package/dist/{chunk-KBMJWNSY.js.map → chunk-2WD2TRTJ.js.map} +0 -0
  229. /package/dist/{chunk-2UOU6CZZ.js.map → chunk-3MXQ5XJT.js.map} +0 -0
  230. /package/dist/{chunk-ETUMOYGL.js.map → chunk-3NLBDM7V.js.map} +0 -0
  231. /package/dist/{chunk-XVZA6VXC.js.map → chunk-3SL52JKD.js.map} +0 -0
  232. /package/dist/{chunk-QCJ7Q5BM.js.map → chunk-4N4BAO66.js.map} +0 -0
  233. /package/dist/{chunk-YGPRFYV6.js.map → chunk-4WX32RLU.js.map} +0 -0
  234. /package/dist/{chunk-WN2DASTS.js.map → chunk-5BE3FLKL.js.map} +0 -0
  235. /package/dist/{chunk-M4IEZGCK.js.map → chunk-73TPOGS4.js.map} +0 -0
  236. /package/dist/{chunk-XIWRF7TG.js.map → chunk-7P72BY4F.js.map} +0 -0
  237. /package/dist/{chunk-SV6OLWPF.js.map → chunk-7YHU3NJD.js.map} +0 -0
  238. /package/dist/{chunk-D3ZISMKY.js.map → chunk-AIDFYS4Z.js.map} +0 -0
  239. /package/dist/{chunk-YIOP7IFD.js.map → chunk-AO5LKFGO.js.map} +0 -0
  240. /package/dist/{chunk-T3M5KJRV.js.map → chunk-C6Z3H23R.js.map} +0 -0
  241. /package/dist/{chunk-IBPE3Q5M.js.map → chunk-CJ2SYU4S.js.map} +0 -0
  242. /package/dist/{chunk-UIFWZMO7.js.map → chunk-CLVILSBR.js.map} +0 -0
  243. /package/dist/{chunk-7TY5ZHFA.js.map → chunk-COJBTRTQ.js.map} +0 -0
  244. /package/dist/{chunk-LS5VJO5O.js.map → chunk-CVCKYMVX.js.map} +0 -0
  245. /package/dist/{chunk-DCLOMXQL.js.map → chunk-EJ6EPEMP.js.map} +0 -0
  246. /package/dist/{chunk-ENPJX3BB.js.map → chunk-FMFCQRDM.js.map} +0 -0
  247. /package/dist/{chunk-IJVU4ILJ.js.map → chunk-GCHM5BYL.js.map} +0 -0
  248. /package/dist/{chunk-KCU2ZWBS.js.map → chunk-GCQIXPWZ.js.map} +0 -0
  249. /package/dist/{chunk-GKL6QYZO.js.map → chunk-GMO3BGOF.js.map} +0 -0
  250. /package/dist/{chunk-OMPX3KLG.js.map → chunk-H6OTEBPK.js.map} +0 -0
  251. /package/dist/{chunk-DK3T3Q6A.js.map → chunk-HADCITEA.js.map} +0 -0
  252. /package/dist/{chunk-F4ZHKDBW.js.map → chunk-HLWXCDUQ.js.map} +0 -0
  253. /package/dist/{chunk-E7WMDXAW.js.map → chunk-HOGSBSCH.js.map} +0 -0
  254. /package/dist/{chunk-4RASUAN3.js.map → chunk-HXFIILGF.js.map} +0 -0
  255. /package/dist/{chunk-CIEEYVUB.js.map → chunk-IMULTENA.js.map} +0 -0
  256. /package/dist/{chunk-ADBON4FI.js.map → chunk-IOMWNBMH.js.map} +0 -0
  257. /package/dist/{chunk-QFBBSKEU.js.map → chunk-IXR3SNHL.js.map} +0 -0
  258. /package/dist/{chunk-UWP6PGWN.js.map → chunk-J3EU5H7W.js.map} +0 -0
  259. /package/dist/{chunk-EUL3S3LE.js.map → chunk-J5WI4QRP.js.map} +0 -0
  260. /package/dist/{chunk-DBNZYQCL.js.map → chunk-JXAHMR5L.js.map} +0 -0
  261. /package/dist/{chunk-U62EINFH.js.map → chunk-KG7RO5XU.js.map} +0 -0
  262. /package/dist/{chunk-BUKK5SWA.js.map → chunk-KQAFEZQX.js.map} +0 -0
  263. /package/dist/{chunk-PDVEY4QS.js.map → chunk-LD7I5AZW.js.map} +0 -0
  264. /package/dist/{chunk-ODHFX5JX.js.map → chunk-LKXED2DT.js.map} +0 -0
  265. /package/dist/{chunk-FZ6QUOTL.js.map → chunk-LYM65HMS.js.map} +0 -0
  266. /package/dist/{chunk-BKR2YCQ5.js.map → chunk-MKJBZR7J.js.map} +0 -0
  267. /package/dist/{chunk-G3ZUQZGM.js.map → chunk-ND7ZKKVK.js.map} +0 -0
  268. /package/dist/{chunk-7TDJZV2S.js.map → chunk-O7CHKXSF.js.map} +0 -0
  269. /package/dist/{chunk-W7K5BP3M.js.map → chunk-OM5ESBES.js.map} +0 -0
  270. /package/dist/{chunk-GQDO6KHO.js.map → chunk-OSM5MKAU.js.map} +0 -0
  271. /package/dist/{chunk-MVTMKFBW.js.map → chunk-QDY4TSKK.js.map} +0 -0
  272. /package/dist/{chunk-X2FEUBKD.js.map → chunk-QP6CBFYL.js.map} +0 -0
  273. /package/dist/{chunk-4XINO77L.js.map → chunk-RB7NXZ2E.js.map} +0 -0
  274. /package/dist/{chunk-MEYPQLXV.js.map → chunk-RMPHPB6B.js.map} +0 -0
  275. /package/dist/{chunk-SEIFDQ6U.js.map → chunk-RXXXT5PA.js.map} +0 -0
  276. /package/dist/{chunk-GTW6GPQU.js.map → chunk-S627NPRV.js.map} +0 -0
  277. /package/dist/{chunk-FBV4QGXT.js.map → chunk-SXVU57SW.js.map} +0 -0
  278. /package/dist/{chunk-TFHL4WWY.js.map → chunk-TAUBEJ37.js.map} +0 -0
  279. /package/dist/{chunk-WQUGCOKF.js.map → chunk-TFA6HPOA.js.map} +0 -0
  280. /package/dist/{chunk-6P7U3HWG.js.map → chunk-TH6OYP6I.js.map} +0 -0
  281. /package/dist/{chunk-P4YYUDR5.js.map → chunk-TNACU47L.js.map} +0 -0
  282. /package/dist/{chunk-IHCXMYSE.js.map → chunk-U2PSE7MB.js.map} +0 -0
  283. /package/dist/{chunk-PCMGMPQZ.js.map → chunk-X4EF7IG3.js.map} +0 -0
  284. /package/dist/{chunk-UVYI6VIX.js.map → chunk-X7Y7WX73.js.map} +0 -0
  285. /package/dist/{chunk-GA3Y7GZR.js.map → chunk-XCJDDXJX.js.map} +0 -0
  286. /package/dist/{chunk-GDREJ32D.js.map → chunk-XPDMJC5O.js.map} +0 -0
  287. /package/dist/{chunk-KYZFW4LW.js.map → chunk-XTGQTSZZ.js.map} +0 -0
  288. /package/dist/{chunk-63MKTHYT.js.map → chunk-YVK7WZYC.js.map} +0 -0
  289. /package/dist/{chunk-5JW2QIFH.js.map → chunk-ZDWZYKCL.js.map} +0 -0
  290. /package/dist/{chunk-K3FH3LAQ.js.map → chunk-ZG4GNPRE.js.map} +0 -0
  291. /package/dist/{resolution-A3NAI3YE.js.map → graph-edge-decay-BC3IO2J4.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runGraphEdgeDecayMaintenanceAcrossNamespaces
3
- } from "./chunk-6P7U3HWG.js";
3
+ } from "./chunk-TH6OYP6I.js";
4
4
  import {
5
5
  normalizeDreamsStatusWindowHours,
6
6
  recordDreamsPhaseRun
@@ -16,21 +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
- importMarkdownBundle
30
- } from "./chunk-HDDRVXX4.js";
31
- import {
32
- importSqlite
33
- } from "./chunk-PYHOAXTI.js";
34
25
  import {
35
26
  exportWorkBoardMarkdown,
36
27
  exportWorkBoardSnapshot,
@@ -40,23 +31,21 @@ import {
40
31
  WorkStorage
41
32
  } from "./chunk-MPC7TYTZ.js";
42
33
  import {
43
- importCapsule
44
- } from "./chunk-KCU2ZWBS.js";
45
- import {
46
- exportJsonBundle
47
- } from "./chunk-UP6MOYCB.js";
34
+ chatgptReplayNormalizer
35
+ } from "./chunk-MMACM5G2.js";
48
36
  import {
49
37
  exportOkfBundle,
50
38
  parseIncludeStatus
51
- } from "./chunk-63MKTHYT.js";
39
+ } from "./chunk-YVK7WZYC.js";
52
40
  import {
53
41
  exportSqlite
54
42
  } from "./chunk-BV2TIZ4F.js";
55
43
  import {
56
- SupportPassportAccessSurface,
57
- createSupportPassportModelAdapter,
58
- supportsSupportPassportPrivateFiles
59
- } from "./chunk-PDVEY4QS.js";
44
+ importMarkdownBundle
45
+ } from "./chunk-HDDRVXX4.js";
46
+ import {
47
+ importSqlite
48
+ } from "./chunk-PYHOAXTI.js";
60
49
  import {
61
50
  detectImportFormat
62
51
  } from "./chunk-OZKVVUJB.js";
@@ -65,10 +54,16 @@ import {
65
54
  } from "./chunk-2DL3OFLD.js";
66
55
  import {
67
56
  backupMemoryDir
68
- } from "./chunk-OWHERGF2.js";
57
+ } from "./chunk-2NLLXCJG.js";
69
58
  import {
70
59
  exportMarkdownBundle
71
60
  } from "./chunk-765K3SAT.js";
61
+ import {
62
+ importCapsule
63
+ } from "./chunk-GCQIXPWZ.js";
64
+ import {
65
+ exportJsonBundle
66
+ } from "./chunk-UP6MOYCB.js";
72
67
  import {
73
68
  isSharedContextWriteInputError,
74
69
  parseSharedWriteOutputControls
@@ -76,7 +71,25 @@ import {
76
71
  import {
77
72
  buildStandup,
78
73
  parseStandupDate
79
- } from "./chunk-G3ZUQZGM.js";
74
+ } from "./chunk-ND7ZKKVK.js";
75
+ import {
76
+ SupportPassportAccessSurface,
77
+ createSupportPassportModelAdapter,
78
+ supportsSupportPassportPrivateFiles
79
+ } from "./chunk-LD7I5AZW.js";
80
+ import {
81
+ RoutingRulesStore
82
+ } from "./chunk-TBUEE7XF.js";
83
+ import {
84
+ CompressionGuidelineCoordinator
85
+ } from "./chunk-5PHOU5QI.js";
86
+ import {
87
+ ActivityStore,
88
+ MaintenanceScheduler
89
+ } from "./chunk-7YHU3NJD.js";
90
+ import {
91
+ runPeerProfileReasoner
92
+ } from "./chunk-I74SUMNI.js";
80
93
  import {
81
94
  buildReplayNormalizerRegistry,
82
95
  clampBatchSize,
@@ -86,9 +99,6 @@ import {
86
99
  isReplaySource,
87
100
  normalizeReplaySessionKey
88
101
  } from "./chunk-AJVLDJU6.js";
89
- import {
90
- RoutingRulesStore
91
- } from "./chunk-TBUEE7XF.js";
92
102
  import {
93
103
  TailscaleHelper
94
104
  } from "./chunk-SZDLX763.js";
@@ -96,27 +106,17 @@ import {
96
106
  WebDavServer
97
107
  } from "./chunk-PYIFUBRK.js";
98
108
  import {
99
- CompressionGuidelineCoordinator
100
- } from "./chunk-5PHOU5QI.js";
101
- import {
102
- ActivityStore,
103
- MaintenanceScheduler
104
- } from "./chunk-SV6OLWPF.js";
109
+ migrateObservations
110
+ } from "./chunk-EDR6CVWZ.js";
105
111
  import {
106
- runPeerProfileReasoner
107
- } from "./chunk-I74SUMNI.js";
112
+ rebuildMemoryLifecycleLedger
113
+ } from "./chunk-LYM65HMS.js";
108
114
  import {
109
115
  rebuildObservations
110
116
  } from "./chunk-WHCD4Z3D.js";
111
117
  import {
112
118
  migrateFromEngram
113
119
  } from "./chunk-VZAKYDMJ.js";
114
- import {
115
- migrateObservations
116
- } from "./chunk-EDR6CVWZ.js";
117
- import {
118
- rebuildMemoryLifecycleLedger
119
- } from "./chunk-FZ6QUOTL.js";
120
120
  import {
121
121
  backfillMemoryStorage,
122
122
  runLocationBackfill,
@@ -124,38 +124,32 @@ import {
124
124
  runLocationDay,
125
125
  runLocationStatus,
126
126
  runLocationSync
127
- } from "./chunk-GDREJ32D.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-K3FH3LAQ.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-U62EINFH.js";
143
+ } from "./chunk-KG7RO5XU.js";
152
144
  import {
153
145
  SharedContextManager,
154
146
  UNATTRIBUTED_ACCESS_WRITE_ORIGIN
155
147
  } from "./chunk-JVBAPAWZ.js";
156
148
  import {
157
- AdapterRegistry
158
- } from "./chunk-IJVU4ILJ.js";
149
+ executeResolution,
150
+ isValidResolutionVerb,
151
+ runPreferenceDriftScan
152
+ } from "./chunk-X4EF7IG3.js";
159
153
  import {
160
154
  getBulkImportSource,
161
155
  listBulkImportSources,
@@ -186,12 +180,29 @@ import {
186
180
  import {
187
181
  isCodingGraphInstalled
188
182
  } from "./chunk-VQ7B2Q6M.js";
183
+ import {
184
+ runCompatChecks
185
+ } from "./chunk-2524MOWK.js";
186
+ import {
187
+ AdapterRegistry
188
+ } from "./chunk-GCHM5BYL.js";
189
+ import {
190
+ WHO_KNOWS_DEFAULT_LIMIT,
191
+ WHO_KNOWS_MCP_TOOLS,
192
+ computeWhoKnows,
193
+ handleWhoKnowsHttpQuery,
194
+ loadWhoKnowsEntities,
195
+ validateWhoKnowsInput
196
+ } from "./chunk-HOGSBSCH.js";
189
197
  import {
190
198
  WriteQuarantineStore
191
199
  } from "./chunk-BANSBRNX.js";
192
200
  import {
193
201
  WriteRateLimiter
194
202
  } from "./chunk-TB6CBZ5V.js";
203
+ import {
204
+ cleanArchivedUserMessage
205
+ } from "./chunk-47DU4SGJ.js";
195
206
  import {
196
207
  applyUtilityPromotionRuntimePolicy,
197
208
  applyUtilityRankingRuntimeDelta,
@@ -208,15 +219,10 @@ import {
208
219
  import {
209
220
  compareVerifiedEpisodeResults,
210
221
  searchVerifiedEpisodes
211
- } from "./chunk-GQDO6KHO.js";
222
+ } from "./chunk-OSM5MKAU.js";
212
223
  import {
213
- WHO_KNOWS_DEFAULT_LIMIT,
214
- WHO_KNOWS_MCP_TOOLS,
215
- computeWhoKnows,
216
- handleWhoKnowsHttpQuery,
217
- loadWhoKnowsEntities,
218
- validateWhoKnowsInput
219
- } from "./chunk-E7WMDXAW.js";
224
+ extractTopics
225
+ } from "./chunk-KVDUKH5E.js";
220
226
  import {
221
227
  applyTrustScoreStage,
222
228
  buildTrustSignalsForRerank,
@@ -237,18 +243,6 @@ import {
237
243
  seedTrustZoneDemoDataset,
238
244
  summarizeTrustZonePromotionReadiness
239
245
  } from "./chunk-JWX2Q6HS.js";
240
- import {
241
- cleanArchivedUserMessage
242
- } from "./chunk-47DU4SGJ.js";
243
- import {
244
- TmtBuilder
245
- } from "./chunk-ECZU5BJH.js";
246
- import {
247
- extractTopics
248
- } from "./chunk-KVDUKH5E.js";
249
- import {
250
- buildTemporalTimelineRecallSection
251
- } from "./chunk-VHF73MGU.js";
252
246
  import {
253
247
  CODEX_THREAD_KEY_PREFIX
254
248
  } from "./chunk-4EX5WZ4M.js";
@@ -261,33 +255,50 @@ import {
261
255
  import {
262
256
  decideTierTransition
263
257
  } from "./chunk-OBPOIZNR.js";
258
+ import {
259
+ TmtBuilder
260
+ } from "./chunk-ECZU5BJH.js";
261
+ import {
262
+ buildTemporalTimelineRecallSection
263
+ } from "./chunk-VHF73MGU.js";
264
264
  import {
265
265
  HourlySummarizer,
266
266
  summarizeHourlyStatus
267
- } from "./chunk-XIWRF7TG.js";
267
+ } from "./chunk-7P72BY4F.js";
268
268
  import {
269
269
  buildTargetedFactRecallSection,
270
270
  shouldRecallTargetedFactEvidence
271
271
  } from "./chunk-77NTFICT.js";
272
+ import {
273
+ migrateSessionTranscripts,
274
+ planSessionTranscriptMigration
275
+ } from "./chunk-WWDO7ZWM.js";
272
276
  import {
273
277
  memoriesToStandingEntries,
274
278
  prefixStandingMemoryBlock,
275
279
  renderStandingMemoryBlock
276
280
  } from "./chunk-LJLGH2DE.js";
281
+ import {
282
+ promoteSemanticRuleFromMemory
283
+ } from "./chunk-2WD2TRTJ.js";
284
+ import {
285
+ compareVerifiedSemanticRuleResults,
286
+ searchVerifiedSemanticRules
287
+ } from "./chunk-IXR3SNHL.js";
277
288
  import {
278
289
  SessionObserverState
279
290
  } from "./chunk-ODZKV2F7.js";
280
291
  import {
281
- migrateSessionTranscripts,
282
- planSessionTranscriptMigration
283
- } from "./chunk-WWDO7ZWM.js";
292
+ applyRuntimeRetrievalPolicy
293
+ } from "./chunk-5IZL4DCV.js";
284
294
  import {
285
- promoteSemanticRuleFromMemory
286
- } from "./chunk-KBMJWNSY.js";
295
+ composeSalvagedEnvelope
296
+ } from "./chunk-5CO5G4MN.js";
287
297
  import {
288
- compareVerifiedSemanticRuleResults,
289
- searchVerifiedSemanticRules
290
- } from "./chunk-QFBBSKEU.js";
298
+ RerankCache,
299
+ reorderByRankedKeys,
300
+ rerankLocalOrNoop
301
+ } from "./chunk-WBOJMAAV.js";
291
302
  import {
292
303
  buildResponseGuidanceRecallSection,
293
304
  shouldRecallResponseGuidance
@@ -296,7 +307,7 @@ import {
296
307
  buildResumeBundleFromState,
297
308
  getResumeBundleStatus,
298
309
  recordResumeBundle
299
- } from "./chunk-QCJ7Q5BM.js";
310
+ } from "./chunk-4N4BAO66.js";
300
311
  import {
301
312
  getWorkProductLedgerStatus,
302
313
  recordWorkProductLedgerEntry,
@@ -327,29 +338,15 @@ import {
327
338
  recencyWindowFromPrompt,
328
339
  resolvePromptTagPrefilterAsync
329
340
  } from "./chunk-ZOKZIR5K.js";
330
- import {
331
- applyRuntimeRetrievalPolicy
332
- } from "./chunk-5IZL4DCV.js";
333
- import {
334
- composeSalvagedEnvelope
335
- } from "./chunk-5CO5G4MN.js";
336
- import {
337
- RelevanceStore
338
- } from "./chunk-X7J56GPG.js";
339
- import {
340
- RerankCache,
341
- reorderByRankedKeys,
342
- rerankLocalOrNoop
343
- } from "./chunk-WBOJMAAV.js";
344
- import {
345
- runRecallWhy
346
- } from "./chunk-JOQZRIL4.js";
347
341
  import {
348
342
  parseXrayCliOptions
349
- } from "./chunk-MVTMKFBW.js";
343
+ } from "./chunk-QDY4TSKK.js";
350
344
  import {
351
345
  findUnresolvedEntityRefs
352
346
  } from "./chunk-X7XN6YU4.js";
347
+ import {
348
+ RelevanceStore
349
+ } from "./chunk-X7J56GPG.js";
353
350
  import {
354
351
  LastRecallStore,
355
352
  RecallHandleHistoryStore,
@@ -357,12 +354,8 @@ 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
@@ -375,48 +368,65 @@ 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";
387
- import {
388
- planDisclosureStep
389
- } from "./chunk-6NPLVV6M.js";
390
374
  import {
391
375
  DEFAULT_TRAVERSE_LIMIT,
392
376
  selectTraverseNeighbors
393
377
  } from "./chunk-YE4JBZO5.js";
394
- import {
395
- parseNavigateLinkType
396
- } from "./chunk-7O5EW7KX.js";
397
378
  import {
398
379
  assertIdInNavigationWindow
399
380
  } from "./chunk-5KVT6G5U.js";
400
381
  import {
401
- reorderRecallResultsWithMmr
402
- } from "./chunk-IIK2PD3F.js";
382
+ maybeRespondRecallNavigation
383
+ } from "./chunk-WXDTOE6F.js";
384
+ import {
385
+ RECALL_NAVIGATION_MCP_TOOLS
386
+ } from "./chunk-TE6S7KDF.js";
403
387
  import {
404
388
  takeNavigateBudget
405
389
  } from "./chunk-VYDGHJIN.js";
390
+ import {
391
+ planDisclosureStep
392
+ } from "./chunk-6NPLVV6M.js";
393
+ import {
394
+ parseNavigateLinkType
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-OMPX3KLG.js";
408
+ } from "./chunk-H6OTEBPK.js";
415
409
  import {
416
410
  buildXraySnapshot,
417
411
  estimateRecallTokens,
418
412
  summarizeDisclosureTokens
419
- } from "./chunk-7TDJZV2S.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,32 +464,23 @@ import {
445
464
  runOperatorRepair,
446
465
  runOperatorSetup,
447
466
  summarizeNamespaceMaintenanceHealth
448
- } from "./chunk-D3ZISMKY.js";
467
+ } from "./chunk-AIDFYS4Z.js";
449
468
  import {
450
469
  NamespaceCatalog,
451
470
  isNamespaceKind,
452
471
  planNamespaceMaintenance
453
- } from "./chunk-MEYPQLXV.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-ENPJX3BB.js";
471
478
  import {
472
479
  ReplicaDivergenceMonitor
473
480
  } from "./chunk-7IWRLYFJ.js";
481
+ import {
482
+ buildEmbeddingAwareSnapshotStream
483
+ } from "./chunk-FMFCQRDM.js";
474
484
  import {
475
485
  NegativeExampleStore
476
486
  } from "./chunk-23L3IXFD.js";
@@ -545,10 +555,17 @@ import {
545
555
  import {
546
556
  serializeInlineScriptValue
547
557
  } from "./chunk-3HSRWJTC.js";
558
+ import {
559
+ deriveHarmonicRecords,
560
+ harmonicEntityReferenceMatches,
561
+ harmonicEntitySegment,
562
+ normalizedHarmonicEntityIdentity,
563
+ persistHarmonicRecords
564
+ } from "./chunk-FJEYZSJD.js";
548
565
  import {
549
566
  readProjectedHarmonicGraph,
550
567
  searchHarmonicRetrieval
551
- } from "./chunk-X2FEUBKD.js";
568
+ } from "./chunk-QP6CBFYL.js";
552
569
  import {
553
570
  classifyMemoryKind
554
571
  } from "./chunk-YAZNBMNF.js";
@@ -557,18 +574,15 @@ import {
557
574
  } from "./chunk-XXSOVESA.js";
558
575
  import {
559
576
  buildGraphSnapshot
560
- } from "./chunk-IHCXMYSE.js";
577
+ } from "./chunk-U2PSE7MB.js";
561
578
  import {
562
- deriveHarmonicRecords,
563
- harmonicEntityReferenceMatches,
564
- harmonicEntitySegment,
565
- normalizedHarmonicEntityIdentity,
566
- persistHarmonicRecords
567
- } from "./chunk-FJEYZSJD.js";
579
+ buildFocusedListRecallSection,
580
+ shouldRecallFocusedListEvidence
581
+ } from "./chunk-BPPUH5JM.js";
568
582
  import {
569
583
  removeNodeEdgesForRewrite,
570
584
  rollbackNodeEdgeRewrite
571
- } from "./chunk-W7K5BP3M.js";
585
+ } from "./chunk-OM5ESBES.js";
572
586
  import {
573
587
  chunkExtractionWindow,
574
588
  classifyDrainResult,
@@ -578,7 +592,7 @@ import {
578
592
  } from "./chunk-LEO4MQ3S.js";
579
593
  import {
580
594
  ExtractionEngine
581
- } from "./chunk-ODHFX5JX.js";
595
+ } from "./chunk-LKXED2DT.js";
582
596
  import {
583
597
  wrapWorkLayerContext
584
598
  } from "./chunk-EI6V5UXY.js";
@@ -598,10 +612,6 @@ import {
598
612
  import {
599
613
  parseMemoryActionEligibilityContext
600
614
  } from "./chunk-JHU4EYDV.js";
601
- import {
602
- buildFocusedListRecallSection,
603
- shouldRecallFocusedListEvidence
604
- } from "./chunk-BPPUH5JM.js";
605
615
  import {
606
616
  REDACTION_RULES_SUBDIR,
607
617
  contentMatchesRedactionRules,
@@ -647,7 +657,7 @@ import {
647
657
  buildEntityRecallSection,
648
658
  entityRecentTranscriptLookbackHours,
649
659
  readRecentEntityTranscriptEntries
650
- } from "./chunk-5JW2QIFH.js";
660
+ } from "./chunk-ZDWZYKCL.js";
651
661
  import {
652
662
  boundRecallContextComposition,
653
663
  composeMissingMemoryContext,
@@ -676,6 +686,9 @@ import {
676
686
  import {
677
687
  EmbeddingFallback
678
688
  } from "./chunk-SBRUTD5O.js";
689
+ import {
690
+ respondDeepRecall
691
+ } from "./chunk-MKJBZR7J.js";
679
692
  import {
680
693
  DEEP_RECALL_MCP_TOOLS
681
694
  } from "./chunk-HUSTM6PU.js";
@@ -690,19 +703,19 @@ import {
690
703
  } from "./chunk-3X5OPDPF.js";
691
704
  import {
692
705
  runBudgetedDeepRecall
693
- } from "./chunk-4RASUAN3.js";
706
+ } from "./chunk-HXFIILGF.js";
694
707
  import {
695
708
  CorpusWatermarkCache,
696
709
  computeServiceCorpusCensus
697
- } from "./chunk-ETUMOYGL.js";
710
+ } from "./chunk-3NLBDM7V.js";
698
711
  import {
699
712
  listNamespaces,
700
713
  runNamespaceMigration,
701
714
  verifyNamespaces
702
- } from "./chunk-YGPRFYV6.js";
715
+ } from "./chunk-4WX32RLU.js";
703
716
  import {
704
717
  NamespaceStorageRouter
705
- } from "./chunk-UWP6PGWN.js";
718
+ } from "./chunk-J3EU5H7W.js";
706
719
  import {
707
720
  CrossNamespaceBudget,
708
721
  toBudgetWarning
@@ -717,17 +730,14 @@ import {
717
730
  import {
718
731
  formatDaySummaryMemories
719
732
  } from "./chunk-7G5NTS7F.js";
720
- import {
721
- respondDeepRecall
722
- } from "./chunk-BKR2YCQ5.js";
723
733
  import {
724
734
  refreshConvergedNamespaces
725
- } from "./chunk-7TY5ZHFA.js";
735
+ } from "./chunk-COJBTRTQ.js";
726
736
  import {
727
737
  rebuildMemoryProjection,
728
738
  repairMemoryProjection,
729
739
  verifyMemoryProjection
730
- } from "./chunk-GTW6GPQU.js";
740
+ } from "./chunk-S627NPRV.js";
731
741
  import {
732
742
  buildProposedActions,
733
743
  buildQualityScore,
@@ -736,7 +746,7 @@ import {
736
746
  readMemoryGovernanceRunArtifact,
737
747
  restoreMemoryGovernanceRun,
738
748
  runMemoryGovernance
739
- } from "./chunk-DBNZYQCL.js";
749
+ } from "./chunk-JXAHMR5L.js";
740
750
  import {
741
751
  collectNativeKnowledgeChunks,
742
752
  formatNativeKnowledgeSection,
@@ -769,14 +779,14 @@ import {
769
779
  materializeAfterSemanticConsolidation,
770
780
  parseConsolidationResponse,
771
781
  parseOperatorAwareConsolidationResponse
772
- } from "./chunk-LS5VJO5O.js";
782
+ } from "./chunk-CVCKYMVX.js";
773
783
  import {
774
784
  resolveNamespaceChildRoot
775
785
  } from "./chunk-3UXOZBHV.js";
776
786
  import {
777
787
  GraphIndex,
778
788
  analyzeGraphHealth
779
- } from "./chunk-M4IEZGCK.js";
789
+ } from "./chunk-73TPOGS4.js";
780
790
  import {
781
791
  GraphEdgeAppendError
782
792
  } from "./chunk-GKCXTSFF.js";
@@ -840,7 +850,7 @@ import {
840
850
  } from "./chunk-CSAKJVXW.js";
841
851
  import {
842
852
  LocalLlmClient
843
- } from "./chunk-GB442ZFG.js";
853
+ } from "./chunk-2NGTY22Z.js";
844
854
  import {
845
855
  isCapsuleImportArchiveInputError,
846
856
  validateCapsuleImportArchive
@@ -854,6 +864,9 @@ import {
854
864
  import {
855
865
  chunkContent
856
866
  } from "./chunk-6TBIWIAG.js";
867
+ import {
868
+ BoxBuilder
869
+ } from "./chunk-B7RWBZXW.js";
857
870
  import {
858
871
  FileCalendarSource,
859
872
  buildBriefing,
@@ -862,7 +875,7 @@ import {
862
875
  parseBriefingFocus,
863
876
  parseBriefingWindow,
864
877
  validateBriefingFormat
865
- } from "./chunk-TFHL4WWY.js";
878
+ } from "./chunk-TAUBEJ37.js";
866
879
  import {
867
880
  BriefingTimeoutError,
868
881
  withBriefingDeadline
@@ -891,9 +904,6 @@ import {
891
904
  import {
892
905
  isDisagreementPrompt
893
906
  } from "./chunk-H3FZVNRN.js";
894
- import {
895
- BoxBuilder
896
- } from "./chunk-B7RWBZXW.js";
897
907
  import {
898
908
  meetingsBuild,
899
909
  meetingsGet,
@@ -930,7 +940,7 @@ import {
930
940
  validateCorrectionAction,
931
941
  validateCorrectionRequest,
932
942
  validateRedactionPattern
933
- } from "./chunk-ADBON4FI.js";
943
+ } from "./chunk-IOMWNBMH.js";
934
944
  import {
935
945
  compileCorrectionRule,
936
946
  correctionsFilePath,
@@ -947,7 +957,7 @@ import {
947
957
  resolveJournalSource,
948
958
  resolveVaultNotePath,
949
959
  validateRegionName
950
- } from "./chunk-EUL3S3LE.js";
960
+ } from "./chunk-J5WI4QRP.js";
951
961
  import {
952
962
  isCodingKnowledgeFeatureEnabled
953
963
  } from "./chunk-FEHIOYML.js";
@@ -1020,7 +1030,7 @@ import {
1020
1030
  getCausalTrajectoryStoreStatus,
1021
1031
  readCausalTrajectoryRecords,
1022
1032
  searchCausalTrajectories
1023
- } from "./chunk-GKL6QYZO.js";
1033
+ } from "./chunk-GMO3BGOF.js";
1024
1034
  import {
1025
1035
  QmdResultResolver,
1026
1036
  StorageManager,
@@ -1043,7 +1053,7 @@ import {
1043
1053
  reconstructFusionInputs,
1044
1054
  selfDeps,
1045
1055
  serializeFusionDay
1046
- } from "./chunk-DCLOMXQL.js";
1056
+ } from "./chunk-EJ6EPEMP.js";
1047
1057
  import {
1048
1058
  buildRetiredFactTombstoneInputs
1049
1059
  } from "./chunk-QGVCFVX6.js";
@@ -1062,12 +1072,12 @@ import {
1062
1072
  embeddingBacklogExceeds,
1063
1073
  isSearchHealthDegraded,
1064
1074
  namespaceCollectionName
1065
- } from "./chunk-GA3Y7GZR.js";
1075
+ } from "./chunk-XCJDDXJX.js";
1066
1076
  import {
1067
1077
  createConversationIndexRuntime,
1068
1078
  createSearchBackend,
1069
1079
  isSearchBackendEnabled
1070
- } from "./chunk-DK3T3Q6A.js";
1080
+ } from "./chunk-HADCITEA.js";
1071
1081
  import {
1072
1082
  NoopSearchBackend
1073
1083
  } from "./chunk-CYEPCZN5.js";
@@ -1138,6 +1148,10 @@ import {
1138
1148
  isValidAsOf,
1139
1149
  isValidityExpiredNow
1140
1150
  } from "./chunk-6CIAGZ6X.js";
1151
+ import {
1152
+ buildExplicitCaptureDedupKey,
1153
+ normalizeExplicitCaptureContent
1154
+ } from "./chunk-Y33KJ556.js";
1141
1155
  import {
1142
1156
  mergeSearchQueryOptions
1143
1157
  } from "./chunk-B7HYXVME.js";
@@ -1158,10 +1172,6 @@ import {
1158
1172
  import {
1159
1173
  withCaptureWriteLockBackoff
1160
1174
  } from "./chunk-7VLBZKNB.js";
1161
- import {
1162
- buildExplicitCaptureDedupKey,
1163
- normalizeExplicitCaptureContent
1164
- } from "./chunk-Y33KJ556.js";
1165
1175
  import {
1166
1176
  bufferTurnsEqual,
1167
1177
  describeError,
@@ -1190,6 +1200,28 @@ import {
1190
1200
  AMBIENT_CAPTURE_PROMPT_RULE,
1191
1201
  isHighImpactPersonalFact
1192
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";
1193
1225
  import {
1194
1226
  engramRecallSearchOptionsMcpProperty
1195
1227
  } from "./chunk-CQ3IG3GZ.js";
@@ -1203,9 +1235,13 @@ import {
1203
1235
  SupportPassportError,
1204
1236
  buildSupportPassportPublicRequestHandler
1205
1237
  } from "./chunk-UPE7TJWN.js";
1238
+ import {
1239
+ ObserveTranscriptPersister,
1240
+ observeTranscriptSessionKey
1241
+ } from "./chunk-EAHNSQ7H.js";
1206
1242
  import {
1207
1243
  splitCanonicalWriteRequest
1208
- } from "./chunk-T3M5KJRV.js";
1244
+ } from "./chunk-C6Z3H23R.js";
1209
1245
  import {
1210
1246
  buildWithBriefingLocation,
1211
1247
  daySummaryAutoOptions,
@@ -1248,10 +1284,10 @@ import {
1248
1284
  retainedCategoryAlias,
1249
1285
  suggestionSubmitRequestSchema,
1250
1286
  validateRequest
1251
- } from "./chunk-P4YYUDR5.js";
1287
+ } from "./chunk-TNACU47L.js";
1252
1288
  import {
1253
1289
  exportCapsule
1254
- } from "./chunk-BUKK5SWA.js";
1290
+ } from "./chunk-KQAFEZQX.js";
1255
1291
  import {
1256
1292
  CAPSULE_ID_PATTERN
1257
1293
  } from "./chunk-WEHSQBFR.js";
@@ -1269,7 +1305,7 @@ import {
1269
1305
  } from "./chunk-BJMBJZ2Y.js";
1270
1306
  import {
1271
1307
  createOfflineSyncManifestStream
1272
- } from "./chunk-YIOP7IFD.js";
1308
+ } from "./chunk-AO5LKFGO.js";
1273
1309
  import {
1274
1310
  peerManifestRevision
1275
1311
  } from "./chunk-FEUWI5QH.js";
@@ -1318,6 +1354,14 @@ import {
1318
1354
  import {
1319
1355
  isTombstoneBlockedCaptureWriteLockBusy
1320
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";
1321
1365
  import {
1322
1366
  ContentHashIndex
1323
1367
  } from "./chunk-HLUHEMN4.js";
@@ -1327,6 +1371,21 @@ import {
1327
1371
  import {
1328
1372
  writeFileAtomically
1329
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";
1330
1389
  import {
1331
1390
  OFFLINE_SYNC_APPLY_MAX_BODY_BYTES,
1332
1391
  OFFLINE_SYNC_FILE_CONTENT_MAX_CHUNK_BYTES,
@@ -1338,74 +1397,38 @@ import {
1338
1397
  buildOfflineSyncSnapshotFromBase,
1339
1398
  normalizeOfflineSyncChangeset,
1340
1399
  readOfflineSyncFileContentChunk
1341
- } from "./chunk-UIFWZMO7.js";
1400
+ } from "./chunk-CLVILSBR.js";
1342
1401
  import {
1343
1402
  storageBackedIndexStoreIo
1344
- } from "./chunk-WN2DASTS.js";
1403
+ } from "./chunk-5BE3FLKL.js";
1404
+ import {
1405
+ compileOfflineSyncExcludeGlobs
1406
+ } from "./chunk-63LFM77Z.js";
1345
1407
  import {
1346
1408
  assertIsDirectoryNotSymlink,
1347
1409
  assertRealpathInsideRoot,
1348
1410
  validateArchiveRelativePath
1349
1411
  } from "./chunk-GCGJW34D.js";
1350
- import {
1351
- compileOfflineSyncExcludeGlobs
1352
- } from "./chunk-63LFM77Z.js";
1353
1412
  import {
1354
1413
  serializeMutations,
1355
1414
  withHeldFileLock
1356
1415
  } from "./chunk-EBV6VXKF.js";
1416
+ import {
1417
+ parseFlexibleIsoTimestamp
1418
+ } from "./chunk-P7FMDTKL.js";
1357
1419
  import {
1358
1420
  createRecallCorpusVersionCapture,
1359
1421
  mergeRecallCorpusVersions
1360
1422
  } from "./chunk-YVRQ5JRA.js";
1361
1423
  import {
1362
- RECALL_WHY_MCP_TOOLS,
1363
- handleRecallWhyHttpQuery,
1364
- handleRecallXrayHttpQuery
1365
- } from "./chunk-V3D2OOVE.js";
1366
- import {
1367
- runContradictionScan
1368
- } from "./chunk-SX4BR26Y.js";
1369
- import {
1370
- isDefaultReviewNamespace,
1371
- listPairs,
1372
- readPair
1373
- } from "./chunk-CTVWELNK.js";
1374
- import {
1375
- DEFAULT_RECALL_DISCLOSURE,
1376
- RECALL_DISCLOSURE_LEVELS,
1377
- confidenceTier,
1378
- isRecallDisclosure
1379
- } from "./chunk-KJ3Z7JHF.js";
1380
- import {
1381
- extractJsonCandidates
1382
- } from "./chunk-YBA52OKG.js";
1383
- import {
1384
- createSupportPassportPrivateFileExclusion,
1385
- excludeSupportPassportPrivateMemories,
1386
- isSupportPassportPrivateMemory
1387
- } from "./chunk-TSUSHXBW.js";
1388
- import {
1389
- SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH
1390
- } from "./chunk-LEII44QG.js";
1391
- import {
1392
- normalizeAttributePairs,
1393
- stripAttributesSuffix
1394
- } from "./chunk-JDSVLVCG.js";
1395
- import {
1396
- sanitizeMemoryContent
1397
- } from "./chunk-5GKPFL3S.js";
1398
- import {
1399
- MEMORY_ID_PATTERN,
1400
- buildHandleIndexForResults,
1401
- isHandleToken,
1402
- parseIdOrHandle,
1403
- resolveHandle,
1404
- stripHandles
1405
- } from "./chunk-JAKIDQB2.js";
1406
- import {
1407
- parseFlexibleIsoTimestamp
1408
- } 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";
1409
1432
  import {
1410
1433
  defaultNamespaceAtFlatRoot,
1411
1434
  memorySearchThroughScope,
@@ -1477,10 +1500,6 @@ import {
1477
1500
  import {
1478
1501
  createObserveStageTimer
1479
1502
  } from "./chunk-WZU5AGO6.js";
1480
- import {
1481
- ObserveTranscriptPersister,
1482
- observeTranscriptSessionKey
1483
- } from "./chunk-EAHNSQ7H.js";
1484
1503
  import {
1485
1504
  MCP_ADMIN_OPS_MIGRATED_OPERATIONS,
1486
1505
  MCP_ADMIN_OPS_TOOLS,
@@ -1501,15 +1520,6 @@ import {
1501
1520
  import {
1502
1521
  handleMcpGetSse
1503
1522
  } from "./chunk-SRT6SHVZ.js";
1504
- import {
1505
- CANONICAL_MCP_PREFIX,
1506
- LEGACY_MCP_PREFIX,
1507
- toCanonicalToolName,
1508
- toDottedRemnicName,
1509
- toLegacyToolName,
1510
- toolNameSuffix,
1511
- withToolAliases
1512
- } from "./chunk-ZQUVBZI4.js";
1513
1523
  import {
1514
1524
  maybeHandleLifecycleFlush
1515
1525
  } from "./chunk-2BPPGNAQ.js";
@@ -1540,6 +1550,10 @@ import {
1540
1550
  sanitizeFragment,
1541
1551
  sharedNonRepoGitContextCache
1542
1552
  } from "./chunk-5HFCXTGY.js";
1553
+ import {
1554
+ currentCorrelationId,
1555
+ runWithCorrelationId
1556
+ } from "./chunk-YRHBSYQR.js";
1543
1557
  import {
1544
1558
  respondBufferAdmissionError
1545
1559
  } from "./chunk-SRDWJPET.js";
@@ -15442,6 +15456,8 @@ var RecallInternalCoordinator = class {
15442
15456
  if (Number.isFinite(parsed)) asOfMs = parsed;
15443
15457
  }
15444
15458
  const timings = foldQueueWaitTiming(options.queueWaitMs);
15459
+ const phase2Timings = {};
15460
+ const phase2Timer = createPhase2Timer(phase2Timings, () => options.abortSignal?.aborted === true);
15445
15461
  const profileTraceId = this.deps.profiler.startTrace("recall", sessionKey, {
15446
15462
  qmdEnabled: resolveQmdCapabilities(this.deps.config).qmd,
15447
15463
  rerankEnabled: caps.rerank,
@@ -15458,43 +15474,6 @@ var RecallInternalCoordinator = class {
15458
15474
  const recallOuterTimeoutMs = this.deps.config.recallOuterTimeoutMs ?? 75e3;
15459
15475
  const enrichmentSectionDeadlineMs = this.deps.config.recallEnrichmentDeadlineMs ?? 6e4;
15460
15476
  try {
15461
- const createEnrichmentAbortHandle = (parentSignal) => {
15462
- const controller = new AbortController();
15463
- const onAbort = () => controller.abort();
15464
- if (parentSignal?.aborted) {
15465
- controller.abort();
15466
- } else if (parentSignal) {
15467
- parentSignal.addEventListener("abort", onAbort, { once: true });
15468
- }
15469
- let disposed = false;
15470
- const dispose = () => {
15471
- if (disposed) return;
15472
- disposed = true;
15473
- parentSignal?.removeEventListener("abort", onAbort);
15474
- };
15475
- return {
15476
- signal: controller.signal,
15477
- cancel: () => {
15478
- controller.abort();
15479
- dispose();
15480
- },
15481
- dispose
15482
- };
15483
- };
15484
- const observeEnrichmentPromise = (promise, cancel = () => {
15485
- }) => {
15486
- let settledOutcome;
15487
- const observed = promise.then(
15488
- (value) => ({ status: "resolved", value }),
15489
- (error) => ({ status: "rejected", error })
15490
- ).then((outcome) => {
15491
- settledOutcome = outcome;
15492
- return outcome;
15493
- });
15494
- observed.getSettledOutcome = () => settledOutcome;
15495
- observed.cancel = cancel;
15496
- return observed;
15497
- };
15498
15477
  const recordRecallSectionMetric = createRecallSectionMetricRecorder({
15499
15478
  timings,
15500
15479
  logger: log
@@ -15698,7 +15677,7 @@ var RecallInternalCoordinator = class {
15698
15677
  const earlySessionKey = sessionKey ?? "default";
15699
15678
  this.deps._recallWorkspaceOverrides.delete(earlySessionKey);
15700
15679
  timings.total = `${Date.now() - recallStart}ms`;
15701
- recordRecallTiming(this.deps.config, {
15680
+ emitRecallTiming(this.deps.config, {
15702
15681
  ...timings,
15703
15682
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
15704
15683
  namespace: selfNamespace,
@@ -16445,6 +16424,7 @@ ${rows.join("\n")}
16445
16424
  });
16446
16425
  return results.length > 0 ? this.deps.formatTrustZoneResults(results) : null;
16447
16426
  })();
16427
+ const harmonicStartedMs = performance.now();
16448
16428
  const harmonicRetrievalAbort = createEnrichmentAbortHandle(
16449
16429
  options.abortSignal
16450
16430
  );
@@ -16740,6 +16720,7 @@ ${rows.join("\n")}
16740
16720
  });
16741
16721
  return results.length > 0 ? this.deps.formatWorkProductResults(results) : null;
16742
16722
  })();
16723
+ const prefilterStartedMs = performance.now();
16743
16724
  const queryAwarePrefilterPromise = (async () => {
16744
16725
  const t0 = Date.now();
16745
16726
  if (!resolveIndexingCapabilities(this.deps.config).queryAwareIndexing || !prompt.trim()) {
@@ -17432,6 +17413,7 @@ ${formatted}`;
17432
17413
  return null;
17433
17414
  }
17434
17415
  })();
17416
+ const compoundingStartedMs = performance.now();
17435
17417
  const compoundingPromise = observeEnrichmentPromise(
17436
17418
  (async () => {
17437
17419
  const t0 = Date.now();
@@ -17569,23 +17551,26 @@ ${formatted}`;
17569
17551
  );
17570
17552
  throwIfRecallAborted(options.abortSignal);
17571
17553
  const enrichmentAssemblyDeadlineAtMs = enrichmentSectionDeadlineMs > 0 ? this.deps.recallAssemblyClockMs() + enrichmentSectionDeadlineMs : null;
17572
- const awaitEnrichmentSection = async (name, promise) => {
17554
+ const awaitEnrichmentSection = async (name, promise, onStatus) => {
17573
17555
  const finalizeEnrichmentOutcome = (outcome2) => {
17574
17556
  if (outcome2.status === "resolved") {
17575
17557
  log.debug(
17576
17558
  `recall phase-1 enrichment [${name}]: resolved at +${Date.now() - phase1Start}ms`
17577
17559
  );
17560
+ onStatus?.("ok");
17578
17561
  return outcome2.value;
17579
17562
  }
17580
17563
  if (options.abortSignal?.aborted) {
17581
17564
  log.debug(
17582
17565
  `recall phase-1 enrichment [${name}]: skipped after abort at +${Date.now() - phase1Start}ms`
17583
17566
  );
17567
+ onStatus?.("skipped");
17584
17568
  return null;
17585
17569
  }
17586
17570
  log.warn(
17587
17571
  `recall phase-1 enrichment [${name}] failed open: ${outcome2.error instanceof Error ? outcome2.error.message : String(outcome2.error)}`
17588
17572
  );
17573
+ onStatus?.("error");
17589
17574
  return null;
17590
17575
  };
17591
17576
  if (options.abortSignal?.aborted) {
@@ -17593,6 +17578,7 @@ ${formatted}`;
17593
17578
  log.debug(
17594
17579
  `recall phase-1 enrichment [${name}]: skipped after abort at +${Date.now() - phase1Start}ms`
17595
17580
  );
17581
+ onStatus?.("skipped");
17596
17582
  return null;
17597
17583
  }
17598
17584
  let timeoutHandle;
@@ -17609,6 +17595,7 @@ ${formatted}`;
17609
17595
  `recall phase-1 enrichment [${name}]: skipped after shared ${enrichmentSectionDeadlineMs}ms budget expired at +${Date.now() - phase1Start}ms`
17610
17596
  );
17611
17597
  promise.cancel();
17598
+ onStatus?.("timeout");
17612
17599
  return null;
17613
17600
  }
17614
17601
  const outcome = await (timeoutMs !== null ? Promise.race([
@@ -17626,6 +17613,7 @@ ${formatted}`;
17626
17613
  `recall phase-1 enrichment [${name}]: timed out within shared ${enrichmentSectionDeadlineMs}ms budget at +${Date.now() - phase1Start}ms`
17627
17614
  );
17628
17615
  promise.cancel();
17616
+ onStatus?.("timeout");
17629
17617
  return null;
17630
17618
  }
17631
17619
  return finalizeEnrichmentOutcome(outcome);
@@ -19016,9 +19004,11 @@ ${tmtNode.summary}`
19016
19004
  }
19017
19005
  }
19018
19006
  const phase2AfterQmdMs = Date.now() - recallStart;
19019
- const harmonicRetrievalSection = await awaitEnrichmentSection(
19020
- "harmonic",
19021
- harmonicRetrievalPromise
19007
+ const harmonicRetrievalSection = await phase2Timer.enrichment(
19008
+ "Harmonic",
19009
+ harmonicStartedMs,
19010
+ () => timings.harmonicRetrieval?.startsWith("skip") === true,
19011
+ (onStatus) => awaitEnrichmentSection("harmonic", harmonicRetrievalPromise, onStatus)
19022
19012
  );
19023
19013
  if (harmonicRetrievalSection) {
19024
19014
  this.deps.appendRecallSection(
@@ -19040,31 +19030,38 @@ ${tmtNode.summary}`
19040
19030
  if (!graphDecisionReason) {
19041
19031
  graphDecisionReason = graphSnapshotReason;
19042
19032
  }
19043
- await this.deps.recordLastGraphRecallSnapshot({
19033
+ const persistedGraphSnapshotStatus = graphSnapshotStatus;
19034
+ await phase2Timer.step("GraphSnapshot", () => this.deps.recordLastGraphRecallSnapshot({
19044
19035
  storage: profileStorage,
19045
19036
  prompt: retrievalQuery,
19046
19037
  recallMode,
19047
19038
  recallNamespaces,
19048
19039
  seedPaths: graphSnapshotSeedPaths,
19049
19040
  expandedPaths: graphSnapshotExpandedPaths,
19050
- status: graphSnapshotStatus,
19041
+ status: persistedGraphSnapshotStatus,
19051
19042
  reason: graphSnapshotReason,
19052
19043
  shadowMode: graphDecisionShadowMode,
19053
19044
  queryIntent,
19054
19045
  seedResults: graphSnapshotSeedResults,
19055
19046
  finalResults: graphSnapshotFinalResults,
19056
19047
  shadowComparison: graphSnapshotShadowComparison
19057
- });
19048
+ }));
19049
+ } else {
19050
+ phase2Timer.skipped("GraphSnapshot");
19058
19051
  }
19059
- await this.deps.recordLastIntentSnapshot({
19052
+ await phase2Timer.step("IntentSnapshot", () => this.deps.recordLastIntentSnapshot({
19060
19053
  storage: profileStorage,
19061
19054
  snapshot: buildIntentDebugSnapshot()
19062
- });
19063
- if (this.deps.isRecallSectionEnabled(
19055
+ }));
19056
+ const compressionEnabled = this.deps.isRecallSectionEnabled(
19064
19057
  "compression-guidelines",
19065
19058
  resolveCompressionCapabilities(this.deps.config).compressionGuidelineLearning === true
19066
- )) {
19067
- const compressionGuidelineSection = await this.deps.buildCompressionGuidelineRecallSection();
19059
+ );
19060
+ if (compressionEnabled) {
19061
+ const compressionGuidelineSection = await phase2Timer.step(
19062
+ "Compression",
19063
+ () => this.deps.buildCompressionGuidelineRecallSection()
19064
+ );
19068
19065
  if (compressionGuidelineSection) {
19069
19066
  this.deps.appendRecallSection(
19070
19067
  sectionBuckets,
@@ -19072,6 +19069,8 @@ ${tmtNode.summary}`
19072
19069
  compressionGuidelineSection
19073
19070
  );
19074
19071
  }
19072
+ } else {
19073
+ phase2Timer.skipped("Compression");
19075
19074
  }
19076
19075
  if (transcriptSection) {
19077
19076
  this.deps.appendRecallSection(sectionBuckets, "transcript", transcriptSection);
@@ -19093,9 +19092,11 @@ ${tmtNode.summary}`
19093
19092
  conversationRecallSection
19094
19093
  );
19095
19094
  }
19096
- const compoundingSection = await awaitEnrichmentSection(
19097
- "compounding",
19098
- compoundingPromise
19095
+ const compoundingSection = await phase2Timer.enrichment(
19096
+ "Compounding",
19097
+ compoundingStartedMs,
19098
+ () => timings.compounding?.startsWith("skip") === true,
19099
+ (onStatus) => awaitEnrichmentSection("compounding", compoundingPromise, onStatus)
19099
19100
  );
19100
19101
  if (compoundingSection) {
19101
19102
  this.deps.appendRecallSection(
@@ -19105,7 +19106,11 @@ ${tmtNode.summary}`
19105
19106
  );
19106
19107
  }
19107
19108
  let curiosityFooter, curiosityQuestionSelected = false, curiosityFooterTruncated = false;
19108
- 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");
19109
19114
  if (topQuestion) {
19110
19115
  curiosityQuestionSelected = true;
19111
19116
  const formattedFooter = formatCuriosityFooter(topQuestion);
@@ -19116,7 +19121,12 @@ ${tmtNode.summary}`
19116
19121
  }
19117
19122
  }
19118
19123
  const phase2QuestionsDoneMs = Date.now() - recallStart;
19119
- const finalizedQueryAwarePrefilter = await queryAwarePrefilterPromise;
19124
+ const finalizedQueryAwarePrefilter = await phase2Timer.enrichment(
19125
+ "Prefilter",
19126
+ prefilterStartedMs,
19127
+ () => timings.queryAware?.startsWith("skip") === true,
19128
+ () => queryAwarePrefilterPromise
19129
+ );
19120
19130
  const phase2QapDoneMs = Date.now() - recallStart;
19121
19131
  throwIfRecallAborted(options.abortSignal);
19122
19132
  if (timings.queryAware && finalizedQueryAwarePrefilter.candidatePaths?.size) {
@@ -19132,8 +19142,9 @@ ${tmtNode.summary}`
19132
19142
  );
19133
19143
  const timingParts = Object.entries(timings).map(([k, v]) => `${k}=${v}`).join(", ");
19134
19144
  log.info(`recall timings: ${timingParts}`);
19135
- recordRecallTiming(this.deps.config, {
19145
+ emitRecallTiming(this.deps.config, {
19136
19146
  ...timings,
19147
+ ...phase2Timings,
19137
19148
  timestamp: (/* @__PURE__ */ new Date()).toISOString(),
19138
19149
  namespace: selfNamespace,
19139
19150
  total: timings.total,
@@ -31075,7 +31086,6 @@ function formatAuditMemoryReport(report) {
31075
31086
  // src/access-http.ts
31076
31087
  import { createServer } from "http";
31077
31088
  import { randomUUID as randomUUID6, timingSafeEqual } from "crypto";
31078
- import { AsyncLocalStorage } from "async_hooks";
31079
31089
  import { existsSync as existsSync2 } from "fs";
31080
31090
  import { readFile as readFile14 } from "fs/promises";
31081
31091
  import path32 from "path";
@@ -37923,7 +37933,6 @@ function resolveDefaultAdminConsolePublicDir(sourceUrl = import.meta.url) {
37923
37933
  return candidates.find((candidate) => existsSync2(candidate)) ?? candidates[0];
37924
37934
  }
37925
37935
  var defaultAdminConsolePublicDir = resolveDefaultAdminConsolePublicDir();
37926
- var correlationIdStore = new AsyncLocalStorage();
37927
37936
  var RELAY_ADMIN_CONSOLE_ASSETS = /* @__PURE__ */ new Map([
37928
37937
  ["relay.css", "text/css; charset=utf-8"],
37929
37938
  ["relay-model.js", "application/javascript; charset=utf-8"],
@@ -38162,7 +38171,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
38162
38171
  };
38163
38172
  req.once("aborted", abortDisconnectedRequest);
38164
38173
  res.once("close", abortDisconnectedRequest);
38165
- correlationIdStore.run(correlationId, () => {
38174
+ runWithCorrelationId(correlationId, () => {
38166
38175
  void this.handle(req, res, correlationId, abortController.signal).catch((err) => {
38167
38176
  if (err instanceof BriefingTimeoutError) {
38168
38177
  this.respondJson(res, 504, { error: err.message, code: "briefing_timeout" });
@@ -38759,7 +38768,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
38759
38768
  includeContent: false,
38760
38769
  signal: this.createRequestAbortSignal(req, res)
38761
38770
  });
38762
- await respondOfflineSnapshotStream(res, result, correlationIdStore.getStore());
38771
+ await respondOfflineSnapshotStream(res, result, currentCorrelationId());
38763
38772
  return;
38764
38773
  }
38765
38774
  if (req.method === "GET" && (pathname === "/engram/v1/offline-sync/manifest-stream" || pathname === "/remnic/v1/offline-sync/manifest-stream")) {
@@ -38784,7 +38793,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
38784
38793
  includeTranscripts: includeTranscriptsRaw !== "false",
38785
38794
  signal: this.createRequestAbortSignal(req, res)
38786
38795
  });
38787
- await respondOfflineManifestStream(res, result, correlationIdStore.getStore());
38796
+ await respondOfflineManifestStream(res, result, currentCorrelationId());
38788
38797
  return;
38789
38798
  }
38790
38799
  if (req.method === "POST" && (pathname === "/engram/v1/offline-sync/snapshot" || pathname === "/remnic/v1/offline-sync/snapshot")) {
@@ -40388,7 +40397,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
40388
40397
  const raw = req.headers["mcp-session-id"];
40389
40398
  return typeof raw === "string" ? raw.trim() : void 0;
40390
40399
  })();
40391
- const mcpCorrelationId = correlationIdStore.getStore() ?? randomUUID6();
40400
+ const mcpCorrelationId = currentCorrelationId() ?? randomUUID6();
40392
40401
  const requestIdentity = this.resolveRequestIdentity(req);
40393
40402
  if (request.method === "tools/call" && this.mcpServer.toolAcceptsNamespace(toolName)) {
40394
40403
  const mcpExplicitNamespace = toolArgs !== null && typeof toolArgs === "object" && !Array.isArray(toolArgs) && typeof toolArgs.namespace === "string" && toolArgs.namespace.length > 0 ? toolArgs.namespace : void 0;
@@ -40448,7 +40457,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
40448
40457
  res.statusCode = status;
40449
40458
  res.setHeader("content-type", "application/json; charset=utf-8");
40450
40459
  res.setHeader("content-length", String(Buffer.byteLength(body)));
40451
- const cid = correlationIdStore.getStore();
40460
+ const cid = currentCorrelationId();
40452
40461
  if (cid) {
40453
40462
  res.setHeader("x-request-id", cid);
40454
40463
  }
@@ -40461,7 +40470,7 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
40461
40470
  for (const [key, value] of Object.entries(headers)) {
40462
40471
  res.setHeader(key, value);
40463
40472
  }
40464
- const cid = correlationIdStore.getStore();
40473
+ const cid = currentCorrelationId();
40465
40474
  if (cid) {
40466
40475
  res.setHeader("x-request-id", cid);
40467
40476
  }
@@ -51112,7 +51121,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51112
51121
  }
51113
51122
  }
51114
51123
  if (sourceArchive.endsWith(".enc")) {
51115
- const { isEncryptedCapsuleFile } = await import("./capsule-crypto-GWVG7LGC.js");
51124
+ const { isEncryptedCapsuleFile } = await import("./capsule-crypto-7FJQINUR.js");
51116
51125
  const encDetected = await isEncryptedCapsuleFile(sourceArchive).catch(() => true);
51117
51126
  if (encDetected) {
51118
51127
  throw new Error(
@@ -51275,7 +51284,7 @@ function registerCli(api, orchestrator, registerOptions = {}) {
51275
51284
  const { parseExportBundle } = await import("./transfer/types.js");
51276
51285
  let decryptedBuf;
51277
51286
  try {
51278
- const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-GWVG7LGC.js");
51287
+ const { decryptCapsuleFileInMemory } = await import("./capsule-crypto-7FJQINUR.js");
51279
51288
  decryptedBuf = await decryptCapsuleFileInMemory(archivePath, memoryDir);
51280
51289
  } catch (decErr) {
51281
51290
  const msg = decErr instanceof Error ? decErr.message : String(decErr);
@@ -53766,7 +53775,7 @@ Semantic consolidation complete. clusters=${result.clustersFound}, consolidated=
53766
53775
  console.error("--verb is required. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context");
53767
53776
  process.exit(1);
53768
53777
  }
53769
- const { isValidResolutionVerb: isValidResolutionVerb2, executeResolution: executeResolution2 } = await import("./resolution-A3NAI3YE.js");
53778
+ const { isValidResolutionVerb: isValidResolutionVerb2, executeResolution: executeResolution2 } = await import("./resolution-TCO63RRC.js");
53770
53779
  if (!isValidResolutionVerb2(verb)) {
53771
53780
  console.error(`Invalid verb: ${verb}. Must be one of: keep-a, keep-b, merge, both-valid, needs-more-context`);
53772
53781
  process.exit(1);
@@ -64492,7 +64501,7 @@ var EngramAccessService = class extends SupportPassportAccessServiceBase {
64492
64501
  );
64493
64502
  }
64494
64503
  async executeRecall(request) {
64495
- return this.accessRecallSurface.executeRecall(request);
64504
+ return recordRecallAttempt(this.orchestrator.config, request.abortSignal, () => this.accessRecallSurface.executeRecall(request));
64496
64505
  }
64497
64506
  async recallExplain(request = {}) {
64498
64507
  const requestedNamespace = request.namespace?.trim() ? this.resolveNamespace(request.namespace) : void 0;
@@ -67522,4 +67531,4 @@ export {
67522
67531
  EngramAccessService,
67523
67532
  AccessAdminOpsSurface
67524
67533
  };
67525
- //# sourceMappingURL=chunk-Z2OKWO35.js.map
67534
+ //# sourceMappingURL=chunk-CAWVPY6E.js.map