@remnic/core 9.69.60 → 9.69.63

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 (360) hide show
  1. package/dist/access-admin-ops-surface.js +38 -38
  2. package/dist/access-authorization-probe.js +39 -39
  3. package/dist/access-boundary.js +38 -38
  4. package/dist/access-cli.js +95 -95
  5. package/dist/access-extraction-force-flush.js +38 -38
  6. package/dist/access-http-briefing.js +39 -39
  7. package/dist/access-http-query.js +40 -40
  8. package/dist/access-http.js +56 -56
  9. package/dist/access-identity-continuity-surface.js +38 -38
  10. package/dist/access-lcm-surface.js +38 -38
  11. package/dist/access-mcp.js +49 -49
  12. package/dist/access-memory-search-fanout.js +3 -3
  13. package/dist/access-namespace-preflight.js +38 -38
  14. package/dist/access-observe-write-surface.js +38 -38
  15. package/dist/access-offline-manifest.js +6 -6
  16. package/dist/access-operations-batch.js +40 -40
  17. package/dist/access-operations.js +47 -47
  18. package/dist/access-recall-concurrency.js +38 -38
  19. package/dist/access-recall-diagnostics.js +5 -5
  20. package/dist/access-recall-response.js +38 -38
  21. package/dist/access-recall-surface.js +38 -38
  22. package/dist/access-service.js +38 -38
  23. package/dist/access-surface-catalog.js +40 -40
  24. package/dist/active-memory-bridge.js +3 -3
  25. package/dist/active-recall.js +9 -9
  26. package/dist/{auto-sync-CWSZDLLW.js → auto-sync-QJNIKZHV.js} +5 -5
  27. package/dist/briefing.js +8 -8
  28. package/dist/buffer-turn-helpers.d.ts.map +1 -1
  29. package/dist/buffer-turn-helpers.js +1 -1
  30. package/dist/buffer.d.ts.map +1 -1
  31. package/dist/buffer.js +7 -7
  32. package/dist/calibration.js +2 -2
  33. package/dist/capabilities.d.ts +6 -7
  34. package/dist/capabilities.d.ts.map +1 -1
  35. package/dist/capabilities.js +1 -1
  36. package/dist/causal-consolidation.js +9 -9
  37. package/dist/{chunk-6Q3ZTEF6.js → chunk-23G5P7TA.js} +9 -1
  38. package/dist/chunk-23G5P7TA.js.map +1 -0
  39. package/dist/{chunk-RP7TZEI6.js → chunk-24TJ77TT.js} +2 -2
  40. package/dist/{chunk-ZLVUWROW.js → chunk-2OUSWDY6.js} +2 -2
  41. package/dist/{chunk-M5IJP3YW.js → chunk-2PKGJPQL.js} +2 -2
  42. package/dist/{chunk-FJMYMJLR.js → chunk-3JDA3XF5.js} +2 -2
  43. package/dist/{chunk-JGT7M3BA.js → chunk-3MSMBVA3.js} +6 -6
  44. package/dist/{chunk-6JYYSDHH.js → chunk-4EEDRKRT.js} +4 -4
  45. package/dist/{chunk-YUHGJBQK.js → chunk-5LWVTSF7.js} +2 -2
  46. package/dist/{chunk-WLZYGLJ4.js → chunk-5MA7ZLPD.js} +5 -7
  47. package/dist/chunk-5MA7ZLPD.js.map +1 -0
  48. package/dist/{chunk-2T2RF5ZK.js → chunk-5QZHDS4X.js} +5 -5
  49. package/dist/{chunk-64JK4TL7.js → chunk-5WXJE5TV.js} +4 -4
  50. package/dist/{chunk-DJ4CKWAD.js → chunk-5Y7VCE3A.js} +2 -2
  51. package/dist/{chunk-G2XZFGYN.js → chunk-62JTOLEX.js} +2 -2
  52. package/dist/{chunk-LVXBC6YB.js → chunk-65I2LZEK.js} +2 -2
  53. package/dist/{chunk-NZLFVLLJ.js → chunk-7CRUDH7G.js} +2 -2
  54. package/dist/{chunk-B4EGAHHS.js → chunk-7DE2NOON.js} +2 -2
  55. package/dist/{chunk-BSDBDFKZ.js → chunk-7JFQI6DQ.js} +3 -3
  56. package/dist/{chunk-BOADKFN4.js → chunk-7LNHRQKR.js} +2 -2
  57. package/dist/{chunk-IV6APZJS.js → chunk-7OC3Q5X4.js} +2 -2
  58. package/dist/{chunk-X2QPKLPL.js → chunk-ACX55QDO.js} +3 -3
  59. package/dist/{chunk-YLPCEUXP.js → chunk-AEGQ5PJ7.js} +2 -2
  60. package/dist/{chunk-GK6NOQE6.js → chunk-AERXJCOG.js} +2 -2
  61. package/dist/{chunk-HW2QYZEV.js → chunk-B5GMOOY2.js} +5 -5
  62. package/dist/{chunk-NLE6TSLG.js → chunk-BLVHDY2U.js} +5 -7
  63. package/dist/chunk-BLVHDY2U.js.map +1 -0
  64. package/dist/{chunk-JUOZ62Y7.js → chunk-BMXEBWBT.js} +2 -1
  65. package/dist/chunk-BMXEBWBT.js.map +1 -0
  66. package/dist/{chunk-YHGRA7CK.js → chunk-CDQO5DCD.js} +2 -2
  67. package/dist/{chunk-ENUI3IO7.js → chunk-D433RXFJ.js} +2 -2
  68. package/dist/{chunk-IK63WA5A.js → chunk-D4SPMHEW.js} +2 -2
  69. package/dist/{chunk-42DJ235G.js → chunk-DINRT75P.js} +2 -2
  70. package/dist/{chunk-LELJRLPY.js → chunk-DQFZOPDL.js} +2 -2
  71. package/dist/{chunk-WN4HFL4K.js → chunk-DQISIT63.js} +2 -2
  72. package/dist/{chunk-Q7KQ5YHT.js → chunk-EIU642TN.js} +2 -2
  73. package/dist/{chunk-EN2YX5SF.js → chunk-F4PEETM4.js} +3 -3
  74. package/dist/{chunk-FNQEXI3D.js → chunk-F5O6WEDO.js} +1 -1
  75. package/dist/{chunk-FNQEXI3D.js.map → chunk-F5O6WEDO.js.map} +1 -1
  76. package/dist/{chunk-Q6C5PIBW.js → chunk-F5ZCNJ3V.js} +3 -3
  77. package/dist/{chunk-KR5SZNNF.js → chunk-FEHVG4C4.js} +2 -2
  78. package/dist/{chunk-42G4FIKQ.js → chunk-FG5QU7A2.js} +4 -4
  79. package/dist/{chunk-IRGQYQQ7.js → chunk-FM5HN7LL.js} +4 -4
  80. package/dist/{chunk-FF2XYADH.js → chunk-FQGY7XB2.js} +6 -6
  81. package/dist/{chunk-FF2XYADH.js.map → chunk-FQGY7XB2.js.map} +1 -1
  82. package/dist/{chunk-IDBLAGIM.js → chunk-FTNV5476.js} +14 -14
  83. package/dist/{chunk-R4Y5PF25.js → chunk-FWVDTLRK.js} +1 -1
  84. package/dist/{chunk-C6FQJ52H.js → chunk-G2XTGEGL.js} +65 -18
  85. package/dist/chunk-G2XTGEGL.js.map +1 -0
  86. package/dist/{chunk-Q5FL3MEH.js → chunk-G4WZDQ32.js} +3 -3
  87. package/dist/{chunk-4HNY6ORZ.js → chunk-GMHWCPLP.js} +2 -2
  88. package/dist/{chunk-ZWWKKAJL.js → chunk-GYNCJSQ7.js} +4 -4
  89. package/dist/{chunk-BJI2D4SU.js → chunk-GZBNEZIU.js} +3 -3
  90. package/dist/{chunk-NYVECYCF.js → chunk-HNOKNHFO.js} +2 -2
  91. package/dist/{chunk-XLXYARWC.js → chunk-HXCJF4XU.js} +2 -2
  92. package/dist/{chunk-RMF763SX.js → chunk-IDRSTHVR.js} +5 -5
  93. package/dist/{chunk-UXREWVW4.js → chunk-IW3RMBPB.js} +2 -2
  94. package/dist/{chunk-W6YK672C.js → chunk-JTTLH646.js} +3 -3
  95. package/dist/{chunk-BQB5ZMYO.js → chunk-KKNZ7PUZ.js} +2 -2
  96. package/dist/{chunk-AAMFQHKI.js → chunk-KRPMISWO.js} +3 -3
  97. package/dist/{chunk-XX2IGMCB.js → chunk-KV44HTMJ.js} +2 -2
  98. package/dist/{chunk-FKFTPFUG.js → chunk-KXJ7XYUT.js} +2 -2
  99. package/dist/{chunk-2NZ7KWRW.js → chunk-LAEW4S43.js} +2 -2
  100. package/dist/{chunk-5SV2GFZX.js → chunk-LDP6LBDS.js} +2 -2
  101. package/dist/{chunk-F6WCOXTF.js → chunk-LMLPLIT4.js} +2 -2
  102. package/dist/{chunk-QJTFMH5Y.js → chunk-LVGVXG22.js} +2 -2
  103. package/dist/{chunk-OINFRHLR.js → chunk-NRTVZSPO.js} +2 -2
  104. package/dist/{chunk-IAZPYX6W.js → chunk-NRVGODSE.js} +3 -3
  105. package/dist/{chunk-IHOXK2I6.js → chunk-NVKO5YKP.js} +2 -2
  106. package/dist/{chunk-OQQXGYMX.js → chunk-OWYHHW67.js} +4 -4
  107. package/dist/{chunk-KPKGDQR3.js → chunk-PZEXA6CM.js} +2 -2
  108. package/dist/{chunk-DXODYQ7J.js → chunk-Q3THVX75.js} +2 -2
  109. package/dist/{chunk-TAC5WFJC.js → chunk-QEGKMZNQ.js} +4 -4
  110. package/dist/{chunk-VRF2KFI2.js → chunk-RA3C46VX.js} +2 -2
  111. package/dist/{chunk-V2HHAAPI.js → chunk-RB776UH3.js} +2 -2
  112. package/dist/{chunk-TAIIC5OM.js → chunk-SEHKTE4F.js} +3 -3
  113. package/dist/{chunk-3JLWSFTV.js → chunk-SVWYZXIL.js} +8 -5
  114. package/dist/{chunk-3JLWSFTV.js.map → chunk-SVWYZXIL.js.map} +1 -1
  115. package/dist/{chunk-G6E7XJYL.js → chunk-SZAWZPY6.js} +10 -10
  116. package/dist/{chunk-2AD5SXO4.js → chunk-T5IF2ZCE.js} +5 -2
  117. package/dist/chunk-T5IF2ZCE.js.map +1 -0
  118. package/dist/{chunk-TYZK56OA.js → chunk-TPRBJF46.js} +9 -9
  119. package/dist/{chunk-7DNMX7SA.js → chunk-TQC6ELJO.js} +2 -2
  120. package/dist/{chunk-OVJFS5P5.js → chunk-U6HXB2OG.js} +2 -2
  121. package/dist/{chunk-7WSQZJPC.js → chunk-V3JM4XEI.js} +4 -4
  122. package/dist/{chunk-36S7UHAW.js → chunk-VEBYLZQQ.js} +2 -2
  123. package/dist/{chunk-IMJPJY7V.js → chunk-VHF73MGU.js} +2 -2
  124. package/dist/{chunk-TDULASPE.js → chunk-VKDWYDFQ.js} +7 -7
  125. package/dist/{chunk-NKXHCCLB.js → chunk-VTPASHTO.js} +2 -2
  126. package/dist/{chunk-4B5S3VWD.js → chunk-VXGB766B.js} +29 -29
  127. package/dist/{chunk-ADP2VCP6.js → chunk-W5UAB6EH.js} +5 -5
  128. package/dist/{chunk-L3R24OLZ.js → chunk-W65KK3X6.js} +2 -2
  129. package/dist/{chunk-BJX6G726.js → chunk-WAR75CRY.js} +67 -64
  130. package/dist/chunk-WAR75CRY.js.map +1 -0
  131. package/dist/{chunk-MNIPH6LD.js → chunk-WBYQA3VN.js} +3 -3
  132. package/dist/{chunk-WD2JD2UB.js → chunk-WEQZ5OYK.js} +2 -2
  133. package/dist/{chunk-AJW2K7K3.js → chunk-WKNWC46C.js} +2 -2
  134. package/dist/{chunk-UD6J2LIA.js → chunk-XDH5MO6L.js} +2 -2
  135. package/dist/{chunk-MRV7VSQK.js → chunk-Y23L4YJV.js} +2 -2
  136. package/dist/{chunk-6ISP2EN2.js → chunk-YF3JERFZ.js} +2 -2
  137. package/dist/{chunk-C5CPYMLX.js → chunk-YR6A6ZK7.js} +2 -2
  138. package/dist/{chunk-EJO2NWW7.js → chunk-Z3YQOV45.js} +2 -2
  139. package/dist/{chunk-6KTXE6A3.js → chunk-Z4TXB4K7.js} +2 -2
  140. package/dist/{chunk-Y76HXF3F.js → chunk-ZDZJ2PG4.js} +393 -41
  141. package/dist/{chunk-Y76HXF3F.js.map → chunk-ZDZJ2PG4.js.map} +1 -1
  142. package/dist/{chunk-6VITOSPL.js → chunk-ZFUPRODV.js} +2 -2
  143. package/dist/cli.js +70 -70
  144. package/dist/coding/export-okf-codegraph.js +7 -7
  145. package/dist/compounding/engine.js +9 -9
  146. package/dist/config-security.d.ts +4 -0
  147. package/dist/config-security.d.ts.map +1 -1
  148. package/dist/config-security.js +2 -2
  149. package/dist/config.js +9 -9
  150. package/dist/connectors/codex-materialize-runner.js +8 -8
  151. package/dist/connectors/index.js +9 -9
  152. package/dist/contradiction/index.js +3 -3
  153. package/dist/{contradiction-scan-GVD4JJ7B.js → contradiction-scan-5EJYRKD3.js} +3 -3
  154. package/dist/convergence-refresh.js +10 -10
  155. package/dist/corpus-watermark.js +10 -10
  156. package/dist/day-summary.js +2 -2
  157. package/dist/embedding-fallback.js +2 -2
  158. package/dist/entity-retrieval.js +9 -9
  159. package/dist/explicit-capture.js +2 -2
  160. package/dist/external-wiki-access.js +39 -39
  161. package/dist/extraction-judge.js +3 -3
  162. package/dist/extraction-normalization.js +3 -3
  163. package/dist/extraction-prompt.js +2 -2
  164. package/dist/extraction.js +21 -21
  165. package/dist/{first-start-migration-L3UFX5CU.js → first-start-migration-7OATHJKB.js} +2 -2
  166. package/dist/harmonic-retrieval.js +1 -1
  167. package/dist/index.d.ts +3 -3
  168. package/dist/index.d.ts.map +1 -1
  169. package/dist/index.js +99 -95
  170. package/dist/local-llm.js +2 -2
  171. package/dist/location/index.js +10 -10
  172. package/dist/maintenance/memory-governance.js +8 -8
  173. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +8 -8
  174. package/dist/maintenance/rebuild-memory-projection.js +9 -9
  175. package/dist/memory-browse-operations.js +39 -39
  176. package/dist/model-registry.d.ts.map +1 -1
  177. package/dist/model-registry.js +1 -1
  178. package/dist/namespaces/migrate.js +9 -9
  179. package/dist/namespaces/principal.js +2 -2
  180. package/dist/namespaces/search.js +4 -4
  181. package/dist/namespaces/storage.js +8 -8
  182. package/dist/offline-sync-impression-drain.js +5 -5
  183. package/dist/operator-doctor-corpus.js +11 -11
  184. package/dist/operator-toolkit.js +21 -21
  185. package/dist/orchestration/compression-guideline-coordinator.js +2 -2
  186. package/dist/orchestration/extraction-injection-gate.d.ts +5 -4
  187. package/dist/orchestration/extraction-injection-gate.d.ts.map +1 -1
  188. package/dist/orchestration/maintenance.js +20 -20
  189. package/dist/orchestration/turn-ingestion.d.ts.map +1 -1
  190. package/dist/orchestrator.js +95 -95
  191. package/dist/profiling.d.ts.map +1 -1
  192. package/dist/profiling.js +1 -1
  193. package/dist/recall-composition-decision.js +3 -3
  194. package/dist/recall-context-composition.js +2 -2
  195. package/dist/recall-explain-renderer.js +3 -3
  196. package/dist/recall-navigate-access.js +2 -2
  197. package/dist/recall-navigate-disclosure.js +2 -2
  198. package/dist/recall-navigate.js +2 -2
  199. package/dist/recall-navigation-operations.js +39 -39
  200. package/dist/recall-navigation.js +38 -38
  201. package/dist/recall-why-service.js +5 -5
  202. package/dist/recall-why.js +3 -3
  203. package/dist/recall-xray-cli.js +4 -4
  204. package/dist/recall-xray-renderer.js +3 -3
  205. package/dist/recall-xray.js +2 -2
  206. package/dist/{resolution-CHNISQJB.js → resolution-UYJU5JUA.js} +4 -4
  207. package/dist/resume-bundles.js +10 -10
  208. package/dist/search/embed-helper.js +2 -2
  209. package/dist/search/factory.js +3 -3
  210. package/dist/search/index.js +3 -3
  211. package/dist/security/audit-memory-cli.d.ts.map +1 -1
  212. package/dist/security/audit-memory.d.ts +13 -0
  213. package/dist/security/audit-memory.d.ts.map +1 -1
  214. package/dist/security/injection-screen.d.ts +2 -2
  215. package/dist/security/injection-screen.d.ts.map +1 -1
  216. package/dist/security/origin-authority.d.ts +3 -0
  217. package/dist/security/origin-authority.d.ts.map +1 -1
  218. package/dist/security/types.d.ts +5 -0
  219. package/dist/security/types.d.ts.map +1 -1
  220. package/dist/semantic-consolidation.js +9 -9
  221. package/dist/semantic-rule-promotion.js +8 -8
  222. package/dist/semantic-rule-verifier.js +8 -8
  223. package/dist/shared-context/manager.js +2 -2
  224. package/dist/source-agent-qualifier.js +14 -14
  225. package/dist/standup/build.js +8 -8
  226. package/dist/storage.js +7 -7
  227. package/dist/summarizer.js +4 -4
  228. package/dist/support-passport/index.js +41 -41
  229. package/dist/temporal-timeline-recall.js +3 -3
  230. package/dist/{tier-stats-VK5PCO2L.js → tier-stats-VF6DS52E.js} +2 -2
  231. package/dist/transfer/export-okf.js +8 -8
  232. package/dist/types.d.ts +4 -3
  233. package/dist/types.d.ts.map +1 -1
  234. package/dist/types.js +1 -1
  235. package/dist/verified-recall.js +8 -8
  236. package/dist/who-knows-cli.js +9 -9
  237. package/dist/who-knows.js +8 -8
  238. package/package.json +12 -2
  239. package/src/buffer-turn-helpers.ts +4 -0
  240. package/src/buffer.ts +3 -0
  241. package/src/capabilities.test.ts +4 -1
  242. package/src/capabilities.ts +7 -7
  243. package/src/config-security.ts +103 -16
  244. package/src/config.test.ts +58 -1
  245. package/src/connector-provenance-lifecycle.test.ts +19 -0
  246. package/src/index.ts +3 -3
  247. package/src/model-registry.test.ts +22 -1
  248. package/src/model-registry.ts +7 -6
  249. package/src/orchestration/extraction-injection-gate.ts +11 -7
  250. package/src/orchestration/extraction-origin-context.ts +1 -1
  251. package/src/orchestration/extraction-persist.ts +8 -8
  252. package/src/orchestration/extraction-security.test.ts +12 -0
  253. package/src/orchestration/turn-ingestion.ts +2 -0
  254. package/src/profiling.test.ts +20 -1
  255. package/src/profiling.ts +7 -7
  256. package/src/security/audit-memory-cli.test.ts +90 -0
  257. package/src/security/audit-memory-cli.ts +7 -0
  258. package/src/security/audit-memory.test.ts +21 -10
  259. package/src/security/audit-memory.ts +20 -2
  260. package/src/security/injection-screen.test.ts +301 -0
  261. package/src/security/injection-screen.ts +414 -11
  262. package/src/security/origin-authority.ts +10 -0
  263. package/src/security/types.ts +11 -0
  264. package/src/types.ts +4 -3
  265. package/dist/chunk-2AD5SXO4.js.map +0 -1
  266. package/dist/chunk-6Q3ZTEF6.js.map +0 -1
  267. package/dist/chunk-BJX6G726.js.map +0 -1
  268. package/dist/chunk-C6FQJ52H.js.map +0 -1
  269. package/dist/chunk-JUOZ62Y7.js.map +0 -1
  270. package/dist/chunk-NLE6TSLG.js.map +0 -1
  271. package/dist/chunk-WLZYGLJ4.js.map +0 -1
  272. /package/dist/{auto-sync-CWSZDLLW.js.map → auto-sync-QJNIKZHV.js.map} +0 -0
  273. /package/dist/{chunk-RP7TZEI6.js.map → chunk-24TJ77TT.js.map} +0 -0
  274. /package/dist/{chunk-ZLVUWROW.js.map → chunk-2OUSWDY6.js.map} +0 -0
  275. /package/dist/{chunk-M5IJP3YW.js.map → chunk-2PKGJPQL.js.map} +0 -0
  276. /package/dist/{chunk-FJMYMJLR.js.map → chunk-3JDA3XF5.js.map} +0 -0
  277. /package/dist/{chunk-JGT7M3BA.js.map → chunk-3MSMBVA3.js.map} +0 -0
  278. /package/dist/{chunk-6JYYSDHH.js.map → chunk-4EEDRKRT.js.map} +0 -0
  279. /package/dist/{chunk-YUHGJBQK.js.map → chunk-5LWVTSF7.js.map} +0 -0
  280. /package/dist/{chunk-2T2RF5ZK.js.map → chunk-5QZHDS4X.js.map} +0 -0
  281. /package/dist/{chunk-64JK4TL7.js.map → chunk-5WXJE5TV.js.map} +0 -0
  282. /package/dist/{chunk-DJ4CKWAD.js.map → chunk-5Y7VCE3A.js.map} +0 -0
  283. /package/dist/{chunk-G2XZFGYN.js.map → chunk-62JTOLEX.js.map} +0 -0
  284. /package/dist/{chunk-LVXBC6YB.js.map → chunk-65I2LZEK.js.map} +0 -0
  285. /package/dist/{chunk-NZLFVLLJ.js.map → chunk-7CRUDH7G.js.map} +0 -0
  286. /package/dist/{chunk-B4EGAHHS.js.map → chunk-7DE2NOON.js.map} +0 -0
  287. /package/dist/{chunk-BSDBDFKZ.js.map → chunk-7JFQI6DQ.js.map} +0 -0
  288. /package/dist/{chunk-BOADKFN4.js.map → chunk-7LNHRQKR.js.map} +0 -0
  289. /package/dist/{chunk-IV6APZJS.js.map → chunk-7OC3Q5X4.js.map} +0 -0
  290. /package/dist/{chunk-X2QPKLPL.js.map → chunk-ACX55QDO.js.map} +0 -0
  291. /package/dist/{chunk-YLPCEUXP.js.map → chunk-AEGQ5PJ7.js.map} +0 -0
  292. /package/dist/{chunk-GK6NOQE6.js.map → chunk-AERXJCOG.js.map} +0 -0
  293. /package/dist/{chunk-HW2QYZEV.js.map → chunk-B5GMOOY2.js.map} +0 -0
  294. /package/dist/{chunk-YHGRA7CK.js.map → chunk-CDQO5DCD.js.map} +0 -0
  295. /package/dist/{chunk-ENUI3IO7.js.map → chunk-D433RXFJ.js.map} +0 -0
  296. /package/dist/{chunk-IK63WA5A.js.map → chunk-D4SPMHEW.js.map} +0 -0
  297. /package/dist/{chunk-42DJ235G.js.map → chunk-DINRT75P.js.map} +0 -0
  298. /package/dist/{chunk-LELJRLPY.js.map → chunk-DQFZOPDL.js.map} +0 -0
  299. /package/dist/{chunk-WN4HFL4K.js.map → chunk-DQISIT63.js.map} +0 -0
  300. /package/dist/{chunk-Q7KQ5YHT.js.map → chunk-EIU642TN.js.map} +0 -0
  301. /package/dist/{chunk-EN2YX5SF.js.map → chunk-F4PEETM4.js.map} +0 -0
  302. /package/dist/{chunk-Q6C5PIBW.js.map → chunk-F5ZCNJ3V.js.map} +0 -0
  303. /package/dist/{chunk-KR5SZNNF.js.map → chunk-FEHVG4C4.js.map} +0 -0
  304. /package/dist/{chunk-42G4FIKQ.js.map → chunk-FG5QU7A2.js.map} +0 -0
  305. /package/dist/{chunk-IRGQYQQ7.js.map → chunk-FM5HN7LL.js.map} +0 -0
  306. /package/dist/{chunk-IDBLAGIM.js.map → chunk-FTNV5476.js.map} +0 -0
  307. /package/dist/{chunk-R4Y5PF25.js.map → chunk-FWVDTLRK.js.map} +0 -0
  308. /package/dist/{chunk-Q5FL3MEH.js.map → chunk-G4WZDQ32.js.map} +0 -0
  309. /package/dist/{chunk-4HNY6ORZ.js.map → chunk-GMHWCPLP.js.map} +0 -0
  310. /package/dist/{chunk-ZWWKKAJL.js.map → chunk-GYNCJSQ7.js.map} +0 -0
  311. /package/dist/{chunk-BJI2D4SU.js.map → chunk-GZBNEZIU.js.map} +0 -0
  312. /package/dist/{chunk-NYVECYCF.js.map → chunk-HNOKNHFO.js.map} +0 -0
  313. /package/dist/{chunk-XLXYARWC.js.map → chunk-HXCJF4XU.js.map} +0 -0
  314. /package/dist/{chunk-RMF763SX.js.map → chunk-IDRSTHVR.js.map} +0 -0
  315. /package/dist/{chunk-UXREWVW4.js.map → chunk-IW3RMBPB.js.map} +0 -0
  316. /package/dist/{chunk-W6YK672C.js.map → chunk-JTTLH646.js.map} +0 -0
  317. /package/dist/{chunk-BQB5ZMYO.js.map → chunk-KKNZ7PUZ.js.map} +0 -0
  318. /package/dist/{chunk-AAMFQHKI.js.map → chunk-KRPMISWO.js.map} +0 -0
  319. /package/dist/{chunk-XX2IGMCB.js.map → chunk-KV44HTMJ.js.map} +0 -0
  320. /package/dist/{chunk-FKFTPFUG.js.map → chunk-KXJ7XYUT.js.map} +0 -0
  321. /package/dist/{chunk-2NZ7KWRW.js.map → chunk-LAEW4S43.js.map} +0 -0
  322. /package/dist/{chunk-5SV2GFZX.js.map → chunk-LDP6LBDS.js.map} +0 -0
  323. /package/dist/{chunk-F6WCOXTF.js.map → chunk-LMLPLIT4.js.map} +0 -0
  324. /package/dist/{chunk-QJTFMH5Y.js.map → chunk-LVGVXG22.js.map} +0 -0
  325. /package/dist/{chunk-OINFRHLR.js.map → chunk-NRTVZSPO.js.map} +0 -0
  326. /package/dist/{chunk-IAZPYX6W.js.map → chunk-NRVGODSE.js.map} +0 -0
  327. /package/dist/{chunk-IHOXK2I6.js.map → chunk-NVKO5YKP.js.map} +0 -0
  328. /package/dist/{chunk-OQQXGYMX.js.map → chunk-OWYHHW67.js.map} +0 -0
  329. /package/dist/{chunk-KPKGDQR3.js.map → chunk-PZEXA6CM.js.map} +0 -0
  330. /package/dist/{chunk-DXODYQ7J.js.map → chunk-Q3THVX75.js.map} +0 -0
  331. /package/dist/{chunk-TAC5WFJC.js.map → chunk-QEGKMZNQ.js.map} +0 -0
  332. /package/dist/{chunk-VRF2KFI2.js.map → chunk-RA3C46VX.js.map} +0 -0
  333. /package/dist/{chunk-V2HHAAPI.js.map → chunk-RB776UH3.js.map} +0 -0
  334. /package/dist/{chunk-TAIIC5OM.js.map → chunk-SEHKTE4F.js.map} +0 -0
  335. /package/dist/{chunk-G6E7XJYL.js.map → chunk-SZAWZPY6.js.map} +0 -0
  336. /package/dist/{chunk-TYZK56OA.js.map → chunk-TPRBJF46.js.map} +0 -0
  337. /package/dist/{chunk-7DNMX7SA.js.map → chunk-TQC6ELJO.js.map} +0 -0
  338. /package/dist/{chunk-OVJFS5P5.js.map → chunk-U6HXB2OG.js.map} +0 -0
  339. /package/dist/{chunk-7WSQZJPC.js.map → chunk-V3JM4XEI.js.map} +0 -0
  340. /package/dist/{chunk-36S7UHAW.js.map → chunk-VEBYLZQQ.js.map} +0 -0
  341. /package/dist/{chunk-IMJPJY7V.js.map → chunk-VHF73MGU.js.map} +0 -0
  342. /package/dist/{chunk-TDULASPE.js.map → chunk-VKDWYDFQ.js.map} +0 -0
  343. /package/dist/{chunk-NKXHCCLB.js.map → chunk-VTPASHTO.js.map} +0 -0
  344. /package/dist/{chunk-4B5S3VWD.js.map → chunk-VXGB766B.js.map} +0 -0
  345. /package/dist/{chunk-ADP2VCP6.js.map → chunk-W5UAB6EH.js.map} +0 -0
  346. /package/dist/{chunk-L3R24OLZ.js.map → chunk-W65KK3X6.js.map} +0 -0
  347. /package/dist/{chunk-MNIPH6LD.js.map → chunk-WBYQA3VN.js.map} +0 -0
  348. /package/dist/{chunk-WD2JD2UB.js.map → chunk-WEQZ5OYK.js.map} +0 -0
  349. /package/dist/{chunk-AJW2K7K3.js.map → chunk-WKNWC46C.js.map} +0 -0
  350. /package/dist/{chunk-UD6J2LIA.js.map → chunk-XDH5MO6L.js.map} +0 -0
  351. /package/dist/{chunk-MRV7VSQK.js.map → chunk-Y23L4YJV.js.map} +0 -0
  352. /package/dist/{chunk-6ISP2EN2.js.map → chunk-YF3JERFZ.js.map} +0 -0
  353. /package/dist/{chunk-C5CPYMLX.js.map → chunk-YR6A6ZK7.js.map} +0 -0
  354. /package/dist/{chunk-EJO2NWW7.js.map → chunk-Z3YQOV45.js.map} +0 -0
  355. /package/dist/{chunk-6KTXE6A3.js.map → chunk-Z4TXB4K7.js.map} +0 -0
  356. /package/dist/{chunk-6VITOSPL.js.map → chunk-ZFUPRODV.js.map} +0 -0
  357. /package/dist/{contradiction-scan-GVD4JJ7B.js.map → contradiction-scan-5EJYRKD3.js.map} +0 -0
  358. /package/dist/{first-start-migration-L3UFX5CU.js.map → first-start-migration-7OATHJKB.js.map} +0 -0
  359. /package/dist/{resolution-CHNISQJB.js.map → resolution-UYJU5JUA.js.map} +0 -0
  360. /package/dist/{tier-stats-VK5PCO2L.js.map → tier-stats-VF6DS52E.js.map} +0 -0
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-UHVXE24Y.js";
18
18
  import {
19
19
  normalizeQmdResultPath
20
- } from "./chunk-W6YK672C.js";
20
+ } from "./chunk-JTTLH646.js";
21
21
  import {
22
22
  withholdToolScopedFromSharedNamespace
23
23
  } from "./chunk-S2V7RUCL.js";
@@ -135,7 +135,7 @@ import {
135
135
  } from "./chunk-C64XATK7.js";
136
136
  import {
137
137
  parseOriginClass
138
- } from "./chunk-6Q3ZTEF6.js";
138
+ } from "./chunk-23G5P7TA.js";
139
139
  import {
140
140
  archive_mutation_version_exports,
141
141
  bumpArchiveMutationIfChanged,
@@ -205,7 +205,7 @@ import {
205
205
  import {
206
206
  SPECULATIVE_TTL_DAYS,
207
207
  confidenceTier
208
- } from "./chunk-FNQEXI3D.js";
208
+ } from "./chunk-F5O6WEDO.js";
209
209
  import {
210
210
  isSupportPassportPrivateMemory
211
211
  } from "./chunk-PWPIERBM.js";
@@ -225,7 +225,7 @@ import {
225
225
  } from "./chunk-VUFL7X3H.js";
226
226
  import {
227
227
  resolveNamespaceCapabilities
228
- } from "./chunk-JUOZ62Y7.js";
228
+ } from "./chunk-BMXEBWBT.js";
229
229
  import {
230
230
  isAbortError,
231
231
  raceAbort
@@ -11348,4 +11348,4 @@ export {
11348
11348
  isValidBufferSurpriseEvent,
11349
11349
  StorageManager3 as StorageManager
11350
11350
  };
11351
- //# sourceMappingURL=chunk-2T2RF5ZK.js.map
11351
+ //# sourceMappingURL=chunk-5QZHDS4X.js.map
@@ -8,10 +8,10 @@ import {
8
8
  } from "./chunk-S4DDLTPX.js";
9
9
  import {
10
10
  ModelRegistry
11
- } from "./chunk-WLZYGLJ4.js";
11
+ } from "./chunk-5MA7ZLPD.js";
12
12
  import {
13
13
  LocalLlmClient
14
- } from "./chunk-G2XZFGYN.js";
14
+ } from "./chunk-62JTOLEX.js";
15
15
  import {
16
16
  completeBackgroundGeneration,
17
17
  parseBackgroundGenerationJson
@@ -29,7 +29,7 @@ import {
29
29
  import {
30
30
  resolveLocalLlmCapabilities,
31
31
  resolvePipelineProcessingCapabilities
32
- } from "./chunk-JUOZ62Y7.js";
32
+ } from "./chunk-BMXEBWBT.js";
33
33
  import {
34
34
  encodeStoragePathSegment,
35
35
  resolveSafeStoragePath
@@ -798,4 +798,4 @@ export {
798
798
  summarizeHourlyStatus,
799
799
  HourlySummarizer
800
800
  };
801
- //# sourceMappingURL=chunk-64JK4TL7.js.map
801
+ //# sourceMappingURL=chunk-5WXJE5TV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-2T2RF5ZK.js";
3
+ } from "./chunk-5QZHDS4X.js";
4
4
  import {
5
5
  composeMemoryEnvelope
6
6
  } from "./chunk-GDYU6VF4.js";
@@ -546,4 +546,4 @@ export {
546
546
  setSemanticRulePromotionTestHooks,
547
547
  promoteSemanticRuleFromMemory
548
548
  };
549
- //# sourceMappingURL=chunk-DJ4CKWAD.js.map
549
+ //# sourceMappingURL=chunk-5Y7VCE3A.js.map
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  resolveLocalLlmCapabilities,
19
19
  resolvePipelineProcessingCapabilities
20
- } from "./chunk-JUOZ62Y7.js";
20
+ } from "./chunk-BMXEBWBT.js";
21
21
  import {
22
22
  launchProcessSync
23
23
  } from "./chunk-ZEFVK7XC.js";
@@ -1100,4 +1100,4 @@ var LocalLlmClient = class _LocalLlmClient {
1100
1100
  export {
1101
1101
  LocalLlmClient
1102
1102
  };
1103
- //# sourceMappingURL=chunk-G2XZFGYN.js.map
1103
+ //# sourceMappingURL=chunk-62JTOLEX.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-5JMAGU26.js";
6
6
  import {
7
7
  resolvePipelineProcessingCapabilities
8
- } from "./chunk-JUOZ62Y7.js";
8
+ } from "./chunk-BMXEBWBT.js";
9
9
  import {
10
10
  log
11
11
  } from "./chunk-3WCASNQZ.js";
@@ -121,4 +121,4 @@ export {
121
121
  formatDaySummaryMemories,
122
122
  buildExtensionsFooterForSummary
123
123
  };
124
- //# sourceMappingURL=chunk-LVXBC6YB.js.map
124
+ //# sourceMappingURL=chunk-65I2LZEK.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-OGXXGHW6.js";
10
10
  import {
11
11
  resolveConversationContextCapabilities
12
- } from "./chunk-JUOZ62Y7.js";
12
+ } from "./chunk-BMXEBWBT.js";
13
13
  import {
14
14
  expandTildePath
15
15
  } from "./chunk-6KH5NLQS.js";
@@ -915,4 +915,4 @@ export {
915
915
  resolveSharedContextDir,
916
916
  SharedContextManager
917
917
  };
918
- //# sourceMappingURL=chunk-NZLFVLLJ.js.map
918
+ //# sourceMappingURL=chunk-7CRUDH7G.js.map
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-PCXDUHQH.js";
19
19
  import {
20
20
  resolveNamespaceCapabilities
21
- } from "./chunk-JUOZ62Y7.js";
21
+ } from "./chunk-BMXEBWBT.js";
22
22
  import {
23
23
  log
24
24
  } from "./chunk-3WCASNQZ.js";
@@ -787,4 +787,4 @@ export {
787
787
  shouldProcessInlineExplicitCapture,
788
788
  InlineExplicitCaptureProcessor
789
789
  };
790
- //# sourceMappingURL=chunk-B4EGAHHS.js.map
790
+ //# sourceMappingURL=chunk-7DE2NOON.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  RecallWhyInputError
3
- } from "./chunk-DXODYQ7J.js";
3
+ } from "./chunk-Q3THVX75.js";
4
4
  import {
5
5
  isRecallDisclosure
6
- } from "./chunk-FNQEXI3D.js";
6
+ } from "./chunk-F5O6WEDO.js";
7
7
  import {
8
8
  EngramAccessInputError
9
9
  } from "./chunk-3MUKQQ7A.js";
@@ -165,4 +165,4 @@ export {
165
165
  handleRecallWhyHttpQuery,
166
166
  handleRecallXrayHttpQuery
167
167
  };
168
- //# sourceMappingURL=chunk-BSDBDFKZ.js.map
168
+ //# sourceMappingURL=chunk-7JFQI6DQ.js.map
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  resolveMemoryLifecycleCapabilities,
7
7
  resolveRecallAuxiliaryCapabilities
8
- } from "./chunk-JUOZ62Y7.js";
8
+ } from "./chunk-BMXEBWBT.js";
9
9
 
10
10
  // src/extraction-prompt.ts
11
11
  var EXTRACTION_RESPONSE_SHAPE = `{
@@ -219,4 +219,4 @@ export {
219
219
  buildConsolidationSystemPrompt,
220
220
  buildProfileConsolidationSystemPrompt
221
221
  };
222
- //# sourceMappingURL=chunk-BOADKFN4.js.map
222
+ //# sourceMappingURL=chunk-7LNHRQKR.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runLocationSync
3
- } from "./chunk-ZWWKKAJL.js";
3
+ } from "./chunk-GYNCJSQ7.js";
4
4
  import {
5
5
  log
6
6
  } from "./chunk-3WCASNQZ.js";
@@ -58,4 +58,4 @@ export {
58
58
  LOCATION_SYNC_DEFAULT_INTERVAL_MS,
59
59
  startLocationAutoSync
60
60
  };
61
- //# sourceMappingURL=chunk-IV6APZJS.js.map
61
+ //# sourceMappingURL=chunk-7OC3Q5X4.js.map
@@ -12,10 +12,10 @@ import {
12
12
  canReadNamespace,
13
13
  defaultNamespaceForPrincipal,
14
14
  resolvePrincipal
15
- } from "./chunk-MRV7VSQK.js";
15
+ } from "./chunk-Y23L4YJV.js";
16
16
  import {
17
17
  resolveNamespaceCapabilities
18
- } from "./chunk-JUOZ62Y7.js";
18
+ } from "./chunk-BMXEBWBT.js";
19
19
 
20
20
  // src/active-memory-bridge.ts
21
21
  function isArtifactPath(value) {
@@ -189,4 +189,4 @@ export {
189
189
  recallForActiveMemory,
190
190
  getMemoryForActiveMemory
191
191
  };
192
- //# sourceMappingURL=chunk-X2QPKLPL.js.map
192
+ //# sourceMappingURL=chunk-ACX55QDO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getVerdictKind
3
- } from "./chunk-WN4HFL4K.js";
3
+ } from "./chunk-DQISIT63.js";
4
4
  import {
5
5
  scoreImportance
6
6
  } from "./chunk-UOBPK2OS.js";
@@ -1329,4 +1329,4 @@ export {
1329
1329
  syncWearableSource,
1330
1330
  defaultTimezone
1331
1331
  };
1332
- //# sourceMappingURL=chunk-YLPCEUXP.js.map
1332
+ //# sourceMappingURL=chunk-AEGQ5PJ7.js.map
@@ -19,7 +19,7 @@ import {
19
19
  } from "./chunk-C5C7IJ4Q.js";
20
20
  import {
21
21
  resolveConversationContextCapabilities
22
- } from "./chunk-JUOZ62Y7.js";
22
+ } from "./chunk-BMXEBWBT.js";
23
23
  import {
24
24
  launchProcessSync
25
25
  } from "./chunk-ZEFVK7XC.js";
@@ -3397,4 +3397,4 @@ export {
3397
3397
  resolveWeCloneProxyConfigPath,
3398
3398
  buildWeCloneProxyConfig
3399
3399
  };
3400
- //# sourceMappingURL=chunk-GK6NOQE6.js.map
3400
+ //# sourceMappingURL=chunk-AERXJCOG.js.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  hasMemoryData
3
- } from "./chunk-EN2YX5SF.js";
3
+ } from "./chunk-F4PEETM4.js";
4
4
  import {
5
5
  resolveNamespaceStorageRoot
6
- } from "./chunk-Q5FL3MEH.js";
6
+ } from "./chunk-G4WZDQ32.js";
7
7
  import {
8
8
  getConfiguredNamespaces
9
- } from "./chunk-OQQXGYMX.js";
9
+ } from "./chunk-OWYHHW67.js";
10
10
  import {
11
11
  displayErrorDetail
12
12
  } from "./chunk-RL6NEVXT.js";
@@ -16,7 +16,7 @@ import {
16
16
  import {
17
17
  resolveConversationContextCapabilities,
18
18
  resolveNamespaceCapabilities
19
- } from "./chunk-JUOZ62Y7.js";
19
+ } from "./chunk-BMXEBWBT.js";
20
20
 
21
21
  // src/maintenance/namespace-planner.ts
22
22
  import { createHash, randomUUID } from "crypto";
@@ -724,4 +724,4 @@ export {
724
724
  runNamespaceMaintenancePlan,
725
725
  runNamespaceMaintenanceBatchPlan
726
726
  };
727
- //# sourceMappingURL=chunk-HW2QYZEV.js.map
727
+ //# sourceMappingURL=chunk-B5GMOOY2.js.map
@@ -42,12 +42,6 @@ var ProfilingCollector = class {
42
42
  this.enabled = config.enabled;
43
43
  this.storageDir = config.storageDir;
44
44
  this.maxTraces = Math.max(0, config.maxTraces);
45
- if (this.enabled) {
46
- if (!existsSync(this.storageDir)) {
47
- mkdirSync(this.storageDir, { recursive: true });
48
- log.debug(`profiling: created storage dir ${this.storageDir}`);
49
- }
50
- }
51
45
  }
52
46
  get isEnabled() {
53
47
  return this.enabled;
@@ -224,6 +218,10 @@ var ProfilingCollector = class {
224
218
  const filename = `${trace.kind}-${trace.traceId}.jsonl`;
225
219
  const filepath = join(this.storageDir, filename);
226
220
  try {
221
+ if (!existsSync(this.storageDir)) {
222
+ mkdirSync(this.storageDir, { recursive: true });
223
+ log.debug(`profiling: created storage dir ${this.storageDir}`);
224
+ }
227
225
  writeFileSync(filepath, JSON.stringify(trace) + "\n", "utf-8");
228
226
  log.debug(`profiling: persisted ${filename}`);
229
227
  } catch (err) {
@@ -308,4 +306,4 @@ export {
308
306
  ProfilingCollector,
309
307
  formatProfileTraceAscii
310
308
  };
311
- //# sourceMappingURL=chunk-NLE6TSLG.js.map
309
+ //# sourceMappingURL=chunk-BLVHDY2U.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/profiling.ts"],"sourcesContent":["// Performance profiling collector for recall and extraction traces.\n// Zero external dependencies — uses only node:fs and node:path.\n\nimport {\n existsSync,\n mkdirSync,\n writeFileSync,\n promises as fsp,\n} from \"node:fs\";\nimport { join } from \"node:path\";\n\nimport { log } from \"./logger.js\";\n\n// ---------------------------------------------------------------------------\n// Types\n// ---------------------------------------------------------------------------\n\nexport interface ProfileSpan {\n name: string;\n startOffsetMs: number;\n durationMs: number;\n}\n\nexport interface ProfileParallelGroupMember {\n name: string;\n durationMs: number;\n resolvedIndex: number;\n}\n\nexport interface ProfileParallelGroup {\n name: string;\n startOffsetMs: number;\n wallMs: number;\n members: ProfileParallelGroupMember[];\n}\n\nexport interface ProfileTrace {\n ts: string;\n kind: \"recall\" | \"extraction\";\n traceId: string;\n sessionKey?: string;\n totalMs: number;\n spans: ProfileSpan[];\n parallelGroups?: ProfileParallelGroup[];\n configSnapshot?: Record<string, unknown>;\n}\n\nexport interface ProfilingConfig {\n enabled: boolean;\n storageDir: string;\n maxTraces: number;\n}\n\nexport interface ParallelGroupHandle {\n name: string;\n startOffsetMs: number;\n traceId?: string;\n}\n\nexport interface ProfilingStats {\n byKind: Record<string, { count: number; avgMs: number; p50Ms: number; p95Ms: number; maxMs: number }>;\n bySpan: Record<string, { count: number; avgMs: number; p50Ms: number; p95Ms: number; maxMs: number }>;\n}\n\n// ---------------------------------------------------------------------------\n// Helpers\n// ---------------------------------------------------------------------------\n\nfunction percentile(sorted: number[], p: number): number {\n if (sorted.length === 0) return 0;\n const idx = Math.ceil((p / 100) * sorted.length) - 1;\n return sorted[Math.max(0, Math.min(idx, sorted.length - 1))];\n}\n\nfunction aggregateStats(values: number[]): { count: number; avgMs: number; p50Ms: number; p95Ms: number; maxMs: number } {\n const count = values.length;\n if (count === 0) return { count: 0, avgMs: 0, p50Ms: 0, p95Ms: 0, maxMs: 0 };\n const sorted = [...values].sort((a, b) => a - b);\n const sum = sorted.reduce((s, v) => s + v, 0);\n return {\n count,\n avgMs: Math.round(sum / count),\n p50Ms: Math.round(percentile(sorted, 50)),\n p95Ms: Math.round(percentile(sorted, 95)),\n maxMs: sorted[sorted.length - 1],\n };\n}\n\nlet traceCounter = 0;\n\n// ---------------------------------------------------------------------------\n// ProfilingCollector\n// ---------------------------------------------------------------------------\n\nexport class ProfilingCollector {\n private enabled: boolean;\n private storageDir: string;\n private maxTraces: number;\n private traces: ProfileTrace[] = [];\n private prunePromise: Promise<void> | null = null;\n\n // Active trace state — keyed by traceId so concurrent pipelines are isolated.\n private activeTraces = new Map<\n string,\n {\n kind: \"recall\" | \"extraction\";\n start: number;\n sessionKey?: string;\n configSnapshot?: Record<string, unknown>;\n spans: ProfileSpan[];\n spanStarts: Map<string, number>;\n parallelGroups: ProfileParallelGroup[];\n }\n >();\n private latestTraceId = \"\";\n\n constructor(config: ProfilingConfig) {\n this.enabled = config.enabled;\n this.storageDir = config.storageDir;\n this.maxTraces = Math.max(0, config.maxTraces);\n }\n\n get isEnabled(): boolean {\n return this.enabled;\n }\n\n // ---- Trace lifecycle ---------------------------------------------------\n\n startTrace(kind: \"recall\" | \"extraction\", sessionKey?: string, configSnapshot?: Record<string, unknown>): string {\n if (!this.enabled) return \"\";\n traceCounter++;\n const traceId = `t${traceCounter}-${Date.now().toString(36)}`;\n this.activeTraces.set(traceId, {\n kind,\n start: Date.now(),\n sessionKey,\n configSnapshot,\n spans: [],\n spanStarts: new Map(),\n parallelGroups: [],\n });\n this.latestTraceId = traceId;\n log.debug(`profiling: started trace ${traceId} kind=${kind}`);\n return traceId;\n }\n\n startSpan(name: string, traceId?: string): void {\n const tid = traceId ?? this.latestTraceId;\n const t = tid ? this.activeTraces.get(tid) : undefined;\n if (!t) return;\n const offset = Date.now() - t.start;\n t.spanStarts.set(name, Date.now());\n log.debug(`profiling: span ${name} started at +${offset}ms (trace=${tid})`);\n }\n\n endSpan(name: string, traceId?: string): void {\n const tid = traceId ?? this.latestTraceId;\n const t = tid ? this.activeTraces.get(tid) : undefined;\n if (!t) return;\n const start = t.spanStarts.get(name);\n if (start === undefined) return;\n const duration = Date.now() - start;\n const startOffset = start - t.start;\n t.spans.push({ name, startOffsetMs: startOffset, durationMs: duration });\n t.spanStarts.delete(name);\n log.debug(`profiling: span ${name} ended ${duration}ms (trace=${tid})`);\n }\n\n endTrace(traceId?: string): ProfileTrace | null {\n const tid = traceId ?? this.latestTraceId;\n const t = tid ? this.activeTraces.get(tid) : undefined;\n if (!t) return null;\n\n // Auto-close any spans still open when the trace finalizes.\n const now = Date.now();\n for (const [name, start] of t.spanStarts) {\n const duration = now - start;\n const startOffset = start - t.start;\n t.spans.push({ name, startOffsetMs: startOffset, durationMs: duration });\n log.debug(`profiling: auto-closed span ${name} at trace end (${duration}ms, trace=${tid})`);\n }\n t.spanStarts.clear();\n\n const trace: ProfileTrace = {\n ts: new Date().toISOString(),\n kind: t.kind,\n traceId: tid,\n totalMs: Date.now() - t.start,\n spans: t.spans,\n configSnapshot: t.configSnapshot,\n };\n\n if (t.sessionKey) {\n trace.sessionKey = t.sessionKey;\n }\n if (t.parallelGroups.length > 0) {\n trace.parallelGroups = t.parallelGroups;\n }\n\n // Remove from active map.\n this.activeTraces.delete(tid);\n\n if (!this.enabled) {\n log.debug(\"profiling: trace discarded (disabled)\");\n return null;\n }\n\n // Persist.\n this.persistTrace(trace);\n\n // Buffer in memory (FIFO).\n this.traces.push(trace);\n if (this.traces.length > this.maxTraces) {\n this.traces.shift();\n }\n\n // Single-flight: if a prune is already running, piggyback on it;\n // otherwise start one. This prevents concurrent prunes from racing\n // on stale directory snapshots.\n if (!this.prunePromise) {\n this.prunePromise = this.pruneFiles().finally(() => {\n this.prunePromise = null;\n });\n }\n log.debug(`profiling: trace ${trace.traceId} finalized totalMs=${trace.totalMs}`);\n return trace;\n }\n\n // ---- Parallel group tracking -------------------------------------------\n\n startParallelGroup(name: string, traceId?: string): ParallelGroupHandle {\n const tid = traceId ?? this.latestTraceId;\n const t = tid ? this.activeTraces.get(tid) : undefined;\n const startOffsetMs = t ? Date.now() - t.start : 0;\n return { name, startOffsetMs, traceId: tid };\n }\n\n async endParallelGroup(\n handle: ParallelGroupHandle,\n members: Array<{ name: string; promise: Promise<unknown> }>,\n ): Promise<void> {\n const wallStart = Date.now();\n\n let nextResolvedIndex = 0;\n const resolutionOrder = new Map<string, number>();\n\n const timed = members.map(async (m) => {\n const t0 = Date.now();\n try {\n await m.promise;\n } catch {\n // settled — still record order\n }\n resolutionOrder.set(m.name, nextResolvedIndex++);\n return { name: m.name, durationMs: Date.now() - t0 };\n });\n const timedResults = await Promise.allSettled(timed);\n\n const tid = handle.traceId ?? this.latestTraceId;\n const t = tid ? this.activeTraces.get(tid) : undefined;\n if (!t) return;\n\n const wallMs = Date.now() - wallStart;\n\n const groupMembers: ProfileParallelGroupMember[] = members.map((m, i) => {\n const timedResult = timedResults[i].status === \"fulfilled\"\n ? timedResults[i].value\n : { name: m.name, durationMs: wallMs };\n return {\n name: timedResult.name,\n durationMs: timedResult.durationMs,\n resolvedIndex: resolutionOrder.get(m.name) ?? i,\n };\n });\n\n t.parallelGroups.push({\n name: handle.name,\n startOffsetMs: handle.startOffsetMs,\n wallMs,\n members: groupMembers,\n });\n\n log.debug(`profiling: parallel group ${handle.name} wallMs=${wallMs} (trace=${tid})`);\n }\n\n // ---- Query methods -----------------------------------------------------\n\n getRecentTraces(limit?: number): ProfileTrace[] {\n if (limit === undefined || limit === Infinity) {\n return [...this.traces];\n }\n if (!Number.isFinite(limit)) {\n return [];\n }\n const n = Math.floor(limit);\n if (n <= 0) {\n return [];\n }\n return this.traces.slice(-n);\n }\n\n getStats(): ProfilingStats {\n const byKind: Record<string, number[]> = {};\n const bySpan: Record<string, number[]> = {};\n\n for (const trace of this.traces) {\n if (!byKind[trace.kind]) byKind[trace.kind] = [];\n byKind[trace.kind].push(trace.totalMs);\n\n for (const span of trace.spans) {\n if (!bySpan[span.name]) bySpan[span.name] = [];\n bySpan[span.name].push(span.durationMs);\n }\n }\n\n const result: ProfilingStats = { byKind: {}, bySpan: {} };\n for (const [k, v] of Object.entries(byKind)) {\n result.byKind[k] = aggregateStats(v);\n }\n for (const [k, v] of Object.entries(bySpan)) {\n result.bySpan[k] = aggregateStats(v);\n }\n return result;\n }\n\n identifyBottleneck(): string | null {\n if (this.traces.length === 0) return null;\n const latest = this.traces[this.traces.length - 1];\n if (latest.spans.length === 0) return null;\n let slowest = latest.spans[0];\n for (const span of latest.spans) {\n if (span.durationMs > slowest.durationMs) slowest = span;\n }\n return slowest.name;\n }\n\n // ---- Persistence -------------------------------------------------------\n\n private persistTrace(trace: ProfileTrace): void {\n const filename = `${trace.kind}-${trace.traceId}.jsonl`;\n const filepath = join(this.storageDir, filename);\n try {\n // Created on first persist, never at construction: constructing a\n // collector (plugin registration, a discovery pass, CLI metadata) must\n // not touch the operator's memory dir when no trace is ever written.\n if (!existsSync(this.storageDir)) {\n mkdirSync(this.storageDir, { recursive: true });\n log.debug(`profiling: created storage dir ${this.storageDir}`);\n }\n writeFileSync(filepath, JSON.stringify(trace) + \"\\n\", \"utf-8\");\n log.debug(`profiling: persisted ${filename}`);\n } catch (err) {\n log.warn(`profiling: failed to persist ${filename}`, err);\n }\n }\n\n async pruneFiles(): Promise<void> {\n try {\n const dir = this.storageDir;\n const entries = await fsp.readdir(dir);\n const jsonlFiles = entries.filter((f) => f.endsWith(\".jsonl\"));\n const withMtime = await Promise.all(\n jsonlFiles.map(async (f) => ({\n name: f,\n mtime: (await fsp.stat(join(dir, f))).mtimeMs,\n })),\n );\n const files = withMtime.sort((a, b) => a.mtime - b.mtime).map((f) => f.name);\n\n while (files.length > this.maxTraces) {\n const oldest = files.shift()!;\n await fsp.unlink(join(dir, oldest));\n log.debug(`profiling: pruned ${oldest}`);\n }\n } catch (err) {\n log.warn(\"profiling: prune failed\", err);\n }\n }\n}\n\n// ---------------------------------------------------------------------------\n// ASCII formatter\n// ---------------------------------------------------------------------------\n\nexport function formatProfileTraceAscii(trace: ProfileTrace): string {\n const lines: string[] = [];\n const BAR_WIDTH = 40;\n\n lines.push(`=== Profile: ${trace.kind} ===`);\n lines.push(`Trace ID : ${trace.traceId}`);\n lines.push(`Total : ${trace.totalMs}ms`);\n if (trace.sessionKey) lines.push(`Session : ${trace.sessionKey}`);\n lines.push(\"\");\n\n // Identify bottleneck.\n let bottleneckName: string | null = null;\n if (trace.spans.length > 0) {\n let slowest = trace.spans[0];\n for (const s of trace.spans) {\n if (s.durationMs > slowest.durationMs) slowest = s;\n }\n bottleneckName = slowest.name;\n }\n\n // Spans.\n if (trace.spans.length > 0) {\n const maxDuration = Math.max(...trace.spans.map((s) => s.durationMs), 1);\n lines.push(\"Spans:\");\n for (const span of trace.spans) {\n const barLen = Math.max(1, Math.round((span.durationMs / maxDuration) * BAR_WIDTH));\n const bar = \"\\u2588\".repeat(barLen);\n const suffix = span.name === bottleneckName ? \" \\u2190 bottleneck\" : \"\";\n lines.push(` ${span.name.padEnd(30)} ${String(span.durationMs).padStart(6)}ms ${bar}${suffix}`);\n }\n lines.push(\"\");\n }\n\n // Parallel groups.\n if (trace.parallelGroups && trace.parallelGroups.length > 0) {\n lines.push(\"Parallel Groups:\");\n for (const group of trace.parallelGroups) {\n lines.push(` ${group.name}:`);\n lines.push(` Wall time : ${group.wallMs}ms`);\n const efficiency = parallelEfficiency(group);\n if (efficiency !== null) {\n lines.push(` Efficiency : ${efficiency}%`);\n }\n for (const member of group.members) {\n lines.push(` [${String(member.resolvedIndex).padStart(2)}] ${member.name.padEnd(28)} ${String(member.durationMs).padStart(6)}ms`);\n }\n }\n lines.push(\"\");\n }\n\n lines.push(\"---\");\n return lines.join(\"\\n\");\n}\n\nfunction parallelEfficiency(group: ProfileParallelGroup): number | null {\n if (group.members.length <= 1) return null;\n const idealMs = Math.max(...group.members.map((m) => m.durationMs));\n if (group.wallMs === 0) return null;\n return Math.round((idealMs / group.wallMs) * 100);\n}\n"],"mappings":";;;;;AAGA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,OACP;AACP,SAAS,YAAY;AA2DrB,SAAS,WAAW,QAAkB,GAAmB;AACvD,MAAI,OAAO,WAAW,EAAG,QAAO;AAChC,QAAM,MAAM,KAAK,KAAM,IAAI,MAAO,OAAO,MAAM,IAAI;AACnD,SAAO,OAAO,KAAK,IAAI,GAAG,KAAK,IAAI,KAAK,OAAO,SAAS,CAAC,CAAC,CAAC;AAC7D;AAEA,SAAS,eAAe,QAAiG;AACvH,QAAM,QAAQ,OAAO;AACrB,MAAI,UAAU,EAAG,QAAO,EAAE,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,EAAE;AAC3E,QAAM,SAAS,CAAC,GAAG,MAAM,EAAE,KAAK,CAAC,GAAG,MAAM,IAAI,CAAC;AAC/C,QAAM,MAAM,OAAO,OAAO,CAAC,GAAG,MAAM,IAAI,GAAG,CAAC;AAC5C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AM,QAAQ,UAAU,EAAG,QAAO;AACtC,QAAM,UAAU,KAAK,IAAI,GAAG,MAAM,QAAQ,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC;AAClE,MAAI,MAAM,WAAW,EAAG,QAAO;AAC/B,SAAO,KAAK,MAAO,UAAU,MAAM,SAAU,GAAG;AAClD;","names":[]}
@@ -111,6 +111,7 @@ function resolveSecurityCapabilities(config) {
111
111
  memoryPoisoningDefense: config.memoryPoisoningDefenseEnabled,
112
112
  originAuthority: config.originAuthorityEnabled,
113
113
  injectionScreen: config.injectionScreenEnabled,
114
+ injectionScreenProfile: config.injectionScreenProfile,
114
115
  trustZoneRecall: config.trustZoneRecallEnabled
115
116
  });
116
117
  }
@@ -276,4 +277,4 @@ export {
276
277
  resolvePipelineProcessingCapabilities,
277
278
  resolveConversationContextCapabilities
278
279
  };
279
- //# sourceMappingURL=chunk-JUOZ62Y7.js.map
280
+ //# sourceMappingURL=chunk-BMXEBWBT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/capabilities.ts"],"sourcesContent":["/**\n * CapabilitySet — recall-operation feature gates resolved once, then threaded.\n *\n * Issue #1523 (Phase 1 of epic #1520). Root cause this addresses: 161+\n * scattered `config.<flag>Enabled` reads mean each gate is re-derived at every\n * call site, and reviews keep finding parallel code paths where one branch\n * checks a gate the other forgot (CLAUDE.md rule 39 — the \"gate divergence\"\n * defect class). The fix is to resolve a frozen capability projection ONCE at\n * the top of the recall operation and pass it down explicitly.\n *\n * Scope of THIS module (first migration PR): only the recall-operation-scoped\n * flags below. Flags that are also read in graph construction, writes, CLI, or\n * the summarizer are deliberately deferred to a follow-up so we never leave a\n * single flag half-migrated (some sites on `caps.`, some on `config.`).\n *\n * Field naming: each field is the config flag name with the trailing `Enabled`\n * removed (`recallMmrEnabled` → `recallMmr`).\n *\n * This is plumbing, not a feature — there is deliberately NO `enabled` gate for\n * the CapabilitySet itself (rule 30 governs behavior changes; resolving and\n * threading a capability projection must stay behavior-preserving).\n *\n * Flag-retirement audit (#1780, 2026-07-08): all projected fields verified for\n * live consumers; dead projections removed.\n */\n\nimport type { PluginConfig } from \"./types.js\";\nimport type { InjectionScreenProfile } from \"./security/injection-screen.js\";\n\n/**\n * Frozen projection of recall-operation feature gates.\n *\n * Every field is `readonly boolean`. The composition that maps a config flag to\n * a capability (including default-when-undefined semantics for optional flags)\n * lives ONLY in {@link resolveCapabilities} — call sites must read the\n * capability, never re-derive it from raw config.\n */\nexport interface CapabilitySet {\n /** `rerankCacheEnabled` — cache reranker scores across recall passes. */\n readonly rerankCache: boolean;\n /** `recallDirectAnswerEnabled` — observation-mode direct-answer tier. */\n readonly recallDirectAnswer: boolean;\n /** `recallMemoryWorthFilterEnabled` — Memory-Worth score reweighting. */\n readonly recallMemoryWorthFilter: boolean;\n /** `trustScoreEnabled` — unified TrustScore recall stage (issue #1577). */\n readonly recallTrustScore: boolean;\n /** `recallMmrEnabled` — maximal-marginal-relevance diversification. */\n readonly recallMmr: boolean;\n /** `recallReasoningTraceBoostEnabled` — boost reasoning-trace memories. */\n readonly recallReasoningTraceBoost: boolean;\n /** `recallPlannerLlmEnabled` — LLM-backed recall-mode planner. */\n readonly recallPlannerLlm: boolean;\n /** `recallPlannerEnabled` — recall-mode planner (heuristic + optional LLM). */\n readonly recallPlanner: boolean;\n /** `recallConfidenceGateEnabled` — Synapse-style confidence gate. */\n readonly recallConfidenceGate: boolean;\n /** `graphRecallEnabled` — graph-mode recall tier (gates planner graph mode). */\n readonly graphRecall: boolean;\n /** `graphAssistInFullModeEnabled` — graph-assist overlay in full mode. */\n readonly graphAssistInFullMode: boolean;\n /** `graphExpandedIntentEnabled` — promote broad-intent asks to graph mode. */\n readonly graphExpandedIntent: boolean;\n // --- Issue #1566 Cluster C: mixed-operation flags (recall + summarizer/CLI/writes) ---\n /** `rerankEnabled` — optional LLM reranking of recall candidates. */\n readonly rerank: boolean;\n /** `harmonicRetrievalEnabled` — abstraction-node harmonic retrieval tier. */\n readonly harmonicRetrieval: boolean;\n /** `parallelRetrievalEnabled` — three-agent parallel retrieval (DirectFact + Contextual + Temporal). */\n readonly parallelRetrieval: boolean;\n}\n\n/**\n * Resolve the recall-operation {@link CapabilitySet} from parsed config.\n *\n * Call this ONCE per recall operation (at the `recall()` / `recallInternal`\n * entry) and thread the result down. Composition lives here and only here.\n *\n * Session toggles are intentionally not a parameter yet: `session-toggles.ts`\n * is agent-scoped (per session/agent enable-disable of the whole plugin), not\n * flag-scoped — none of the flags projected here have a per-session override,\n * so there is nothing for a toggle argument to compose at this layer.\n */\nexport function resolveCapabilities(config: PluginConfig): CapabilitySet {\n return Object.freeze({\n rerankCache: config.rerankCacheEnabled,\n recallDirectAnswer: config.recallDirectAnswerEnabled,\n recallMemoryWorthFilter: config.recallMemoryWorthFilterEnabled,\n // Issue #1577: TrustScore subsumes the Memory Worth multiplier when on;\n // the orchestrator runs exactly one of the two (mutual exclusion, rule 39).\n recallTrustScore: config.trustScoreEnabled === true,\n recallMmr: config.recallMmrEnabled,\n recallReasoningTraceBoost: config.recallReasoningTraceBoostEnabled,\n recallPlannerLlm: config.recallPlannerLlmEnabled,\n recallPlanner: config.recallPlannerEnabled,\n recallConfidenceGate: config.recallConfidenceGateEnabled,\n graphRecall: config.graphRecallEnabled,\n // Optional flags: preserve the exact default-when-undefined semantics the\n // migrated call sites used (`!== false` = default-on, `=== true` = default-off).\n graphAssistInFullMode: config.graphAssistInFullModeEnabled !== false,\n graphExpandedIntent: config.graphExpandedIntentEnabled === true,\n // Issue #1566 Cluster C: mixed-operation flags resolved once per recall op.\n rerank: config.rerankEnabled,\n harmonicRetrieval: config.harmonicRetrievalEnabled,\n parallelRetrieval: config.parallelRetrievalEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Graph-construction capability set (issue #1566 Cluster A).\n//\n// The recall CapabilitySet above covers flags whose EVERY read site lives on\n// the recall call chain. The five flags below are read on graph-construction,\n// write/extraction, AND recall paths — so they cannot join the recall set\n// without leaving some sites on `caps.` and others on `config.` (the exact\n// divergence #1523 forbade). They get their own projection, resolved at graph\n// build/write entry (and alongside `caps` when recall reads them).\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of graph-construction feature gates.\n *\n * Every field is `readonly boolean`. Composition (including default-when-\n * undefined semantics for the optional `graphWriteSessionAdjacencyEnabled`)\n * lives ONLY in {@link resolveGraphConstructionCapabilities}.\n */\nexport interface GraphConstructionCapabilitySet {\n /** `entityGraphEnabled` — maintain entity co-reference graph edges. */\n readonly entityGraph: boolean;\n /** `timeGraphEnabled` — maintain thread-adjacency graph edges. */\n readonly timeGraph: boolean;\n /** `causalGraphEnabled` — maintain causal-language graph edges. */\n readonly causalGraph: boolean;\n /** `multiGraphMemoryEnabled` — master switch for multi-graph writes/traversal. */\n readonly multiGraphMemory: boolean;\n /** `graphWriteSessionAdjacencyEnabled` — session-adjacency fallback for time edges (default-on). */\n readonly graphWriteSessionAdjacency: boolean;\n}\n\n/**\n * Resolve the {@link GraphConstructionCapabilitySet} from parsed config.\n *\n * Call this ONCE at graph build/write entry (extraction, recall graph\n * expansion, graph-health/repair) and thread the result down — exactly the\n * pattern {@link resolveCapabilities} established for recall.\n */\nexport type GraphConstructionConfigProjection = Pick<\n PluginConfig,\n | \"entityGraphEnabled\"\n | \"timeGraphEnabled\"\n | \"causalGraphEnabled\"\n | \"multiGraphMemoryEnabled\"\n | \"graphWriteSessionAdjacencyEnabled\"\n>;\n\nexport function resolveGraphConstructionCapabilities(\n config: GraphConstructionConfigProjection,\n): GraphConstructionCapabilitySet {\n return Object.freeze({\n entityGraph: config.entityGraphEnabled,\n timeGraph: config.timeGraphEnabled,\n causalGraph: config.causalGraphEnabled,\n multiGraphMemory: config.multiGraphMemoryEnabled,\n // Optional flag: preserve the exact default-when-undefined semantics the\n // migrated call site used (`!== false` = default-on).\n graphWriteSessionAdjacency: config.graphWriteSessionAdjacencyEnabled !== false,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Access-setup capability set (issue #1566 Cluster B).\n//\n// These two flags gate cross-namespace recall budgeting and anomaly-detection\n// auditing. Resolved once at access-service handler entry (and the operator\n// doctor check) rather than re-derived from raw config at each site.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of access-setup feature gates (issue #1566 Cluster B).\n *\n * Every field is `readonly boolean`. Composition (including the default-off\n * semantics for the optional `recallAuditAnomalyDetectionEnabled`) lives ONLY\n * in {@link resolveAccessSetupCapabilities}.\n */\nexport interface AccessSetupCapabilitySet {\n /** `recallCrossNamespaceBudgetEnabled` — rolling cross-namespace recall budget. */\n readonly recallCrossNamespaceBudget: boolean;\n /** `recallAuditAnomalyDetectionEnabled` — access-audit anomaly detection (default-off). */\n readonly recallAuditAnomalyDetection: boolean;\n readonly recallSingleFlight: boolean;\n}\n\n/** Resolve the {@link AccessSetupCapabilitySet} from parsed config. Call ONCE at\n * access-service handler entry and thread the result down. */\nexport type AccessSetupConfigProjection = Pick<\n PluginConfig,\n \"recallCrossNamespaceBudgetEnabled\" | \"recallAuditAnomalyDetectionEnabled\" | \"recallSingleFlightEnabled\"\n>;\n\nexport function resolveAccessSetupCapabilities(\n config: AccessSetupConfigProjection,\n): AccessSetupCapabilitySet {\n return Object.freeze({\n recallCrossNamespaceBudget: config.recallCrossNamespaceBudgetEnabled,\n // Optional/default-off flag: preserve `=== true` semantics.\n recallAuditAnomalyDetection: config.recallAuditAnomalyDetectionEnabled === true,\n recallSingleFlight: config.recallSingleFlightEnabled === true,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Memory-lifecycle capability set (issue #1523 batch 3).\n//\n// The flags below gate memory WRITE/EXTRACTION (extraction judge, scope\n// classification, dedupe, telemetry prefilter), temporal supersession of\n// stored facts, and the lifecycle policy pass (promotion / decay / stale\n// filtering). They are read on the persistExtraction write path, the recall\n// candidate-filter path, and the maintenance / lifecycle-pass path — so, like\n// the graph-construction set above, they get their own projection resolved\n// ONCE at each operation entry that reads them (never re-derived from raw\n// config mid-operation — the gate-divergence defect class #1523 targets).\n//\n// Every field projects from an already-resolved PluginConfig boolean (defaults\n// are applied at the config-parse boundary, rule 36), so the resolver is a\n// pure projection — no `!== false` / `=== true` re-coercion here.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of memory-lifecycle feature gates (issue #1523 batch 3).\n *\n * Resolved once per write / recall-filter / maintenance operation and threaded\n * down. Composition lives ONLY in {@link resolveMemoryLifecycleCapabilities}.\n */\nexport interface MemoryLifecycleCapabilitySet {\n /** `temporalSupersessionEnabled` — supersede stale structured facts on write, filter on recall. */\n readonly temporalSupersession: boolean;\n /** `temporalMemoryTreeEnabled` — temporal-memory-tree build + recall tier. */\n readonly temporalMemoryTree: boolean;\n /** `lifecyclePolicyEnabled` — lifecycle promotion / decay metadata pass. */\n readonly lifecyclePolicy: boolean;\n /** `lifecycleFilterStaleEnabled` — filter stale-lifecycle memories from recall. */\n readonly lifecycleFilterStale: boolean;\n /** `lifecycleMetricsEnabled` — emit lifecycle-pass metrics. */\n readonly lifecycleMetrics: boolean;\n /** `extractionScopeClassificationEnabled` — LLM classifies each fact's scope. */\n readonly extractionScopeClassification: boolean;\n /** `extractionJudgeEnabled` — LLM-as-judge fact-worthiness gate. */\n readonly extractionJudge: boolean;\n /** `extractionDedupeEnabled` — dedupe against recent extractions. */\n readonly extractionDedupe: boolean;\n /** `extractionTelemetryPrefilterEnabled` — skip mechanical-telemetry transcripts. */\n readonly extractionTelemetryPrefilter: boolean;\n /** `extractionJudgeTelemetryEnabled` — collect judge verdict telemetry. */\n readonly extractionJudgeTelemetry: boolean;\n /** `embeddingFallbackEnabled` — semantic-dedup / archive-search embedding fallback. */\n readonly embeddingFallback: boolean;\n /** `extractionRetryEnabled` — per-fingerprint backoff + provider circuit breaker on the extraction retry path. */\n readonly extractionRetry: boolean; /** `projectionRebuildEnabled` — scheduled memory-projection rebuild (#2119). */\n readonly projectionRebuild: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveMemoryLifecycleCapabilities}.\n */\nexport type MemoryLifecycleConfigProjection = Pick<\n PluginConfig,\n | \"temporalSupersessionEnabled\"\n | \"temporalMemoryTreeEnabled\"\n | \"lifecyclePolicyEnabled\"\n | \"lifecycleFilterStaleEnabled\"\n | \"lifecycleMetricsEnabled\"\n | \"extractionScopeClassificationEnabled\"\n | \"extractionJudgeEnabled\"\n | \"extractionDedupeEnabled\"\n | \"extractionTelemetryPrefilterEnabled\"\n | \"extractionJudgeTelemetryEnabled\"\n | \"embeddingFallbackEnabled\"\n | \"extractionRetryEnabled\"\n | \"projectionRebuildEnabled\"\n>;\n\n/**\n * Resolve the {@link MemoryLifecycleCapabilitySet} from parsed config.\n *\n * Call this ONCE per write / recall-filter / maintenance operation entry and\n * thread the result down — exactly the pattern {@link resolveCapabilities}\n * established for recall.\n */\nexport function resolveMemoryLifecycleCapabilities(\n config: MemoryLifecycleConfigProjection,\n): MemoryLifecycleCapabilitySet {\n return Object.freeze({\n temporalSupersession: config.temporalSupersessionEnabled,\n temporalMemoryTree: config.temporalMemoryTreeEnabled,\n lifecyclePolicy: config.lifecyclePolicyEnabled,\n lifecycleFilterStale: config.lifecycleFilterStaleEnabled,\n lifecycleMetrics: config.lifecycleMetricsEnabled,\n extractionScopeClassification: config.extractionScopeClassificationEnabled,\n extractionJudge: config.extractionJudgeEnabled,\n extractionDedupe: config.extractionDedupeEnabled,\n extractionTelemetryPrefilter: config.extractionTelemetryPrefilterEnabled,\n extractionJudgeTelemetry: config.extractionJudgeTelemetryEnabled,\n embeddingFallback: config.embeddingFallbackEnabled,\n extractionRetry: config.extractionRetryEnabled,\n projectionRebuild: config.projectionRebuildEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Indexing capability set (issue #1523 batch 4).\n//\n// The flags below gate query-aware indexing (temporal/tag index build +\n// prefilter) and the conversation index (QMD/FAISS backend selection). They\n// are read on the recall path, the extraction/persist path, and the\n// maintenance/invalidation path — so they get their own projection resolved\n// ONCE at each operation entry that reads them.\n//\n// Every field projects from an already-resolved PluginConfig boolean (defaults\n// applied at the parse boundary), so the resolver is a pure projection.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of indexing feature gates (issue #1523 batch 4).\n *\n * Resolved once per recall / extraction / maintenance operation and threaded\n * down. Composition lives ONLY in {@link resolveIndexingCapabilities}.\n */\nexport interface IndexingCapabilitySet {\n /** `queryAwareIndexingEnabled` — build + use temporal/tag index for recall prefilter. */\n readonly queryAwareIndexing: boolean;\n /** `conversationIndexEnabled` — conversation-index backend (QMD / FAISS). */\n readonly conversationIndex: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveIndexingCapabilities}.\n */\nexport type IndexingConfigProjection = Pick<\n PluginConfig,\n \"queryAwareIndexingEnabled\" | \"conversationIndexEnabled\"\n>;\n\n/**\n * Resolve the {@link IndexingCapabilitySet} from parsed config.\n *\n * Call this ONCE per recall / extraction / maintenance operation entry and\n * thread the result down — exactly the pattern {@link resolveCapabilities}\n * established for recall.\n */\nexport function resolveIndexingCapabilities(\n config: IndexingConfigProjection,\n): IndexingCapabilitySet {\n return Object.freeze({\n queryAwareIndexing: config.queryAwareIndexingEnabled,\n conversationIndex: config.conversationIndexEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Creation-memory capability set (issue #1523 batch 4).\n//\n// The flags below gate the creation-memory subsystem: resume-bundle handoff,\n// commitment ledger, commitment lifecycle, and the master creation-memory\n// switch. They are read on the extraction/persist path, the recall\n// enrichment path, and the CLI command surface — so they get their own\n// projection resolved ONCE at each operation entry that reads them.\n//\n// Every field projects from an already-resolved PluginConfig boolean (defaults\n// applied at the parse boundary), so the resolver is a pure projection.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of creation-memory feature gates (issue #1523 batch 4).\n *\n * Resolved once per creation-memory operation (CLI command, extraction,\n * recall enrichment) and threaded down. Composition lives ONLY in\n * {@link resolveCreationMemoryCapabilities}.\n */\nexport interface CreationMemoryCapabilitySet {\n /** `creationMemoryEnabled` — master switch for creation-memory subsystem. */\n readonly creationMemory: boolean;\n /** `commitmentLedgerEnabled` — commitment-ledger read/write. */\n readonly commitmentLedger: boolean;\n /** `resumeBundlesEnabled` — resume-bundle handoff bundles. */\n readonly resumeBundles: boolean;\n /** `commitmentLifecycleEnabled` — commitment lifecycle (promotion / decay). */\n readonly commitmentLifecycle: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveCreationMemoryCapabilities}.\n */\nexport type CreationMemoryConfigProjection = Pick<\n PluginConfig,\n | \"creationMemoryEnabled\"\n | \"commitmentLedgerEnabled\"\n | \"resumeBundlesEnabled\"\n | \"commitmentLifecycleEnabled\"\n>;\n\n/**\n * Resolve the {@link CreationMemoryCapabilitySet} from parsed config.\n *\n * Call this ONCE per creation-memory operation entry and thread the result\n * down — exactly the pattern {@link resolveCapabilities} established for\n * recall.\n */\nexport function resolveCreationMemoryCapabilities(\n config: CreationMemoryConfigProjection,\n): CreationMemoryCapabilitySet {\n return Object.freeze({\n creationMemory: config.creationMemoryEnabled,\n commitmentLedger: config.commitmentLedgerEnabled,\n resumeBundles: config.resumeBundlesEnabled,\n commitmentLifecycle: config.commitmentLifecycleEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Namespace capability set (issue #1523 batch 5).\n//\n// `namespacesEnabled` is the single most-scattered config flag in the codebase\n// (101 read sites outside config.ts across 18 files — orchestrator, access-service,\n// namespace modules, maintenance, CLI, admin). It gates whether the multi-namespace\n// system is active at all: every namespace resolution, storage path, recall budget,\n// and maintenance fanout checks it. Like the other projections above it gets its own\n// resolver invoked ONCE per operation entry rather than re-derived at each site.\n//\n// The field is a non-optional boolean in PluginConfig, so no coercion is needed.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of namespace feature gates (issue #1523 batch 5).\n *\n * Every field is `readonly boolean`. Composition lives ONLY in\n * {@link resolveNamespaceCapabilities}.\n */\nexport interface NamespaceCapabilitySet {\n /** `namespacesEnabled` — multi-namespace system master switch. */\n readonly namespaces: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveNamespaceCapabilities}.\n */\nexport type NamespaceConfigProjection = Pick<PluginConfig, \"namespacesEnabled\">;\n\n/**\n * Resolve the {@link NamespaceCapabilitySet} from parsed config.\n *\n * Call this ONCE at operation entry and thread the result down. The flag is a\n * non-optional boolean so the projection is a pure pass-through.\n */\nexport function resolveNamespaceCapabilities(\n config: NamespaceConfigProjection,\n): NamespaceCapabilitySet {\n return Object.freeze({\n namespaces: config.namespacesEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// QMD capability set (issue #1523 batch 6).\n//\n// The twelve QMD (query-managed database) flags are the largest remaining\n// scattered cluster after batch 5. They gate every aspect of the tiered\n// memory system: master switch, tier migration, cold tier, daemon, auto-embed,\n// maintenance, query rerank, intent hints, explain, auto-upgrade, and parity\n// graph. Read sites span orchestrator, operator-toolkit, access-service, and\n// search/factory. All flags are non-optional booleans on PluginConfig (defaults\n// resolved at the parse boundary), so the projection is pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of QMD feature gates (issue #1523 batch 6).\n *\n * Every field is `readonly boolean`. Composition lives ONLY in\n * {@link resolveQmdCapabilities}.\n */\nexport interface QmdCapabilitySet {\n /** `qmdEnabled` — QMD tiered-memory master switch. */\n readonly qmd: boolean;\n /** `qmdTierMigrationEnabled` — automatic tier promotion/demotion. */\n readonly qmdTierMigration: boolean;\n /** `qmdTierAutoBackfillEnabled` — backfill stale tier entries. */\n readonly qmdTierAutoBackfill: boolean;\n /** `qmdAutoEmbedEnabled` — auto-embed documents on write. */\n readonly qmdAutoEmbed: boolean;\n /** `qmdMaintenanceEnabled` — QMD maintenance pass runner. */\n readonly qmdMaintenance: boolean;\n /** `qmdColdTierEnabled` — cold-tier storage. */\n readonly qmdColdTier: boolean;\n /** `qmdDaemonEnabled` — background QMD daemon. */\n readonly qmdDaemon: boolean;\n /** `qmdTierParityGraphEnabled` — tier parity graph. */\n readonly qmdTierParityGraph: boolean;\n /** `qmdQueryRerankEnabled` — QMD query reranking. */\n readonly qmdQueryRerank: boolean;\n /** `qmdIntentHintsEnabled` — QMD intent hint extraction. */\n readonly qmdIntentHints: boolean;\n /** `qmdExplainEnabled` — QMD explain output. */\n readonly qmdExplain: boolean;\n /** `qmdAutoUpgradeEnabled` — QMD auto-upgrade tiers. */\n readonly qmdAutoUpgrade: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveQmdCapabilities}.\n */\nexport type QmdConfigProjection = Pick<\n PluginConfig,\n | \"qmdEnabled\"\n | \"qmdTierMigrationEnabled\"\n | \"qmdTierAutoBackfillEnabled\"\n | \"qmdAutoEmbedEnabled\"\n | \"qmdMaintenanceEnabled\"\n | \"qmdColdTierEnabled\"\n | \"qmdDaemonEnabled\"\n | \"qmdTierParityGraphEnabled\"\n | \"qmdQueryRerankEnabled\"\n | \"qmdIntentHintsEnabled\"\n | \"qmdExplainEnabled\"\n | \"qmdAutoUpgradeEnabled\"\n>;\n\n/**\n * Resolve the {@link QmdCapabilitySet} from parsed config.\n *\n * Call this ONCE at operation entry and thread the result down. Eleven flags\n * are non-optional booleans (pure pass-through); `qmdColdTierEnabled` is\n * optional and coerced with `=== true` (matching the pre-migration call sites).\n */\nexport function resolveQmdCapabilities(config: QmdConfigProjection): QmdCapabilitySet {\n return Object.freeze({\n qmd: config.qmdEnabled,\n qmdTierMigration: config.qmdTierMigrationEnabled,\n qmdTierAutoBackfill: config.qmdTierAutoBackfillEnabled,\n qmdAutoEmbed: config.qmdAutoEmbedEnabled,\n qmdMaintenance: config.qmdMaintenanceEnabled,\n qmdColdTier: config.qmdColdTierEnabled === true,\n qmdDaemon: config.qmdDaemonEnabled,\n qmdTierParityGraph: config.qmdTierParityGraphEnabled,\n qmdQueryRerank: config.qmdQueryRerankEnabled,\n qmdIntentHints: config.qmdIntentHintsEnabled,\n qmdExplain: config.qmdExplainEnabled,\n qmdAutoUpgrade: config.qmdAutoUpgradeEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Identity-continuity capability set (issue #1523 batch 6).\n//\n// `identityContinuityEnabled` gates the identity/continuity system (agent\n// identity tracking, continuity incident logging). Its 13 read sites span\n// orchestrator, access-service, and CLI. The flag is a non-optional boolean\n// on PluginConfig, so the projection is a pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of identity-continuity feature gates (issue #1523 batch 6).\n */\nexport interface IdentityContinuityCapabilitySet {\n /** `identityContinuityEnabled` — identity-continuity master switch. */\n readonly identityContinuity: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveIdentityContinuityCapabilities}.\n */\nexport type IdentityContinuityConfigProjection = Pick<PluginConfig, \"identityContinuityEnabled\">;\n\n/**\n * Resolve the {@link IdentityContinuityCapabilitySet} from parsed config.\n */\nexport function resolveIdentityContinuityCapabilities(\n config: IdentityContinuityConfigProjection,\n): IdentityContinuityCapabilitySet {\n return Object.freeze({\n identityContinuity: config.identityContinuityEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Local-LLM capability set (issue #1523 batch 6).\n//\n// `localLlmEnabled` gates whether a local (on-device) LLM is used for\n// summarization, embedding fallback, extraction, and search. Its 11 read\n// sites span orchestrator, extraction, embedding-fallback, local-llm,\n// search/embed-helper, and summarizer. The flag is a non-optional boolean.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of local-LLM feature gates (issue #1523 batch 6).\n */\nexport interface LocalLlmCapabilitySet {\n /** `localLlmEnabled` — local (on-device) LLM master switch. */\n readonly localLlm: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveLocalLlmCapabilities}.\n */\nexport type LocalLlmConfigProjection = Pick<PluginConfig, \"localLlmEnabled\">;\n\n/**\n * Resolve the {@link LocalLlmCapabilitySet} from parsed config.\n */\nexport function resolveLocalLlmCapabilities(\n config: LocalLlmConfigProjection,\n): LocalLlmCapabilitySet {\n return Object.freeze({\n localLlm: config.localLlmEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Security capability set (issue #1523 batch 7). The six security/trust-zone\n// flags gate quarantine promotion, poisoning defense, origin authority,\n// injection screening, and trust-zone recall. Read sites span orchestrator,\n// access-service, CLI, and research-status commands. All flags are\n// non-optional booleans on PluginConfig (defaults resolved at the parse\n// boundary), so the projection is a pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of security/trust-zone feature gates (issue #1523 batch 7).\n */\nexport interface SecurityCapabilitySet {\n /** `trustZonesEnabled` — master switch for trust-zone enforcement. */\n readonly trustZones: boolean;\n /** `quarantinePromotionEnabled` — promote quarantined memories after review. */\n readonly quarantinePromotion: boolean;\n /** `memoryPoisoningDefenseEnabled` — detect and defend against memory poisoning. */\n readonly memoryPoisoningDefense: boolean;\n /** `originAuthorityEnabled` — preserve origin-bound write authority. */\n readonly originAuthority: boolean;\n /** `injectionScreenEnabled` — quarantine deterministic injection findings. */\n readonly injectionScreen: boolean;\n /** Injection-screen profile weighting (#1962). */\n readonly injectionScreenProfile: InjectionScreenProfile;\n /** `trustZoneRecallEnabled` — restrict recall to trusted zones. */\n readonly trustZoneRecall: boolean;\n}\n\n/** Config projection consumed by {@link resolveSecurityCapabilities}. */\nexport type SecurityConfigProjection = Pick<PluginConfig,\n | \"trustZonesEnabled\" | \"quarantinePromotionEnabled\" | \"memoryPoisoningDefenseEnabled\"\n | \"originAuthorityEnabled\" | \"injectionScreenEnabled\" | \"injectionScreenProfile\" | \"trustZoneRecallEnabled\">;\n\n/** Resolve the {@link SecurityCapabilitySet} from parsed config. */\nexport function resolveSecurityCapabilities(config: SecurityConfigProjection): SecurityCapabilitySet {\n return Object.freeze({\n trustZones: config.trustZonesEnabled,\n quarantinePromotion: config.quarantinePromotionEnabled,\n memoryPoisoningDefense: config.memoryPoisoningDefenseEnabled,\n originAuthority: config.originAuthorityEnabled,\n injectionScreen: config.injectionScreenEnabled,\n injectionScreenProfile: config.injectionScreenProfile,\n trustZoneRecall: config.trustZoneRecallEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Eval/benchmark capability set (issue #1523 batch 7).\n//\n// The five eval/benchmark flags gate the evaluation harness, shadow mode,\n// baseline snapshot management, delta reporting, and red-team benchmarking.\n// Read sites span orchestrator, CLI, and operator-toolkit. All flags are\n// non-optional booleans on PluginConfig.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of eval/benchmark feature gates (issue #1523 batch 7).\n */\nexport interface EvalCapabilitySet {\n /** `evalHarnessEnabled` — master switch for the eval harness. */\n readonly evalHarness: boolean;\n /** `evalShadowModeEnabled` — run evaluations in shadow mode. */\n readonly evalShadowMode: boolean;\n /** `benchmarkBaselineSnapshotsEnabled` — manage baseline snapshots. */\n readonly benchmarkBaselineSnapshots: boolean;\n /** `benchmarkDeltaReporterEnabled` — report benchmark deltas. */\n readonly benchmarkDeltaReporter: boolean;\n /** `memoryRedTeamBenchEnabled` — red-team benchmarking of memory. */\n readonly memoryRedTeamBench: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveEvalCapabilities}.\n */\nexport type EvalConfigProjection = Pick<\n PluginConfig,\n \"evalHarnessEnabled\" | \"evalShadowModeEnabled\" | \"benchmarkBaselineSnapshotsEnabled\" | \"benchmarkDeltaReporterEnabled\" | \"memoryRedTeamBenchEnabled\"\n>;\n\n/**\n * Resolve the {@link EvalCapabilitySet} from parsed config.\n */\nexport function resolveEvalCapabilities(config: EvalConfigProjection): EvalCapabilitySet {\n return Object.freeze({\n evalHarness: config.evalHarnessEnabled,\n evalShadowMode: config.evalShadowModeEnabled,\n benchmarkBaselineSnapshots: config.benchmarkBaselineSnapshotsEnabled,\n benchmarkDeltaReporter: config.benchmarkDeltaReporterEnabled,\n memoryRedTeamBench: config.memoryRedTeamBenchEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Utility-learning capability set (issue #1523 batch 7).\n//\n// The two utility-learning flags gate memory utility learning and\n// promotion-by-outcome. Read sites span orchestrator, CLI research-status\n// commands, and maintenance files. Both flags are non-optional booleans.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of utility-learning feature gates (issue #1523 batch 7).\n */\nexport interface UtilityLearningCapabilitySet {\n /** `memoryUtilityLearningEnabled` — learn memory utility weights from outcomes. */\n readonly memoryUtilityLearning: boolean;\n /** `promotionByOutcomeEnabled` — promote memories by outcome tracking. */\n readonly promotionByOutcome: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveUtilityLearningCapabilities}.\n */\nexport type UtilityLearningConfigProjection = Pick<\n PluginConfig,\n \"memoryUtilityLearningEnabled\" | \"promotionByOutcomeEnabled\"\n>;\n\n/**\n * Resolve the {@link UtilityLearningCapabilitySet} from parsed config.\n */\nexport function resolveUtilityLearningCapabilities(config: UtilityLearningConfigProjection): UtilityLearningCapabilitySet {\n return Object.freeze({\n memoryUtilityLearning: config.memoryUtilityLearningEnabled,\n promotionByOutcome: config.promotionByOutcomeEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Objective-state capability set (issue #1523 batch 7).\n//\n// The three objective-state flags gate objective-state memory, snapshot\n// writes, and recall. Read sites span orchestrator, access-service, CLI\n// creation-ledger commands, and research-status commands. All flags are\n// non-optional booleans.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of objective-state feature gates (issue #1523 batch 7).\n */\nexport interface ObjectiveStateCapabilitySet {\n /** `objectiveStateMemoryEnabled` — store objective-state memories. */\n readonly objectiveStateMemory: boolean;\n /** `objectiveStateSnapshotWritesEnabled` — write objective-state snapshots. */\n readonly objectiveStateSnapshotWrites: boolean;\n /** `objectiveStateRecallEnabled` — recall objective-state memories. */\n readonly objectiveStateRecall: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveObjectiveStateCapabilities}.\n */\nexport type ObjectiveStateConfigProjection = Pick<\n PluginConfig,\n \"objectiveStateMemoryEnabled\" | \"objectiveStateSnapshotWritesEnabled\" | \"objectiveStateRecallEnabled\"\n>;\n\n/**\n * Resolve the {@link ObjectiveStateCapabilitySet} from parsed config.\n */\nexport function resolveObjectiveStateCapabilities(config: ObjectiveStateConfigProjection): ObjectiveStateCapabilitySet {\n return Object.freeze({\n objectiveStateMemory: config.objectiveStateMemoryEnabled,\n objectiveStateSnapshotWrites: config.objectiveStateSnapshotWritesEnabled,\n objectiveStateRecall: config.objectiveStateRecallEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Compression capability set (issue #1523 batch 7).\n//\n// The three compression flags gate guideline learning, semantic refinement,\n// and context-compression actions. Read sites span orchestrator,\n// access-service, and the compression-guideline coordinator. All flags are\n// non-optional booleans.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of compression feature gates (issue #1523 batch 7).\n */\nexport interface CompressionCapabilitySet {\n /** `compressionGuidelineLearningEnabled` — learn compression guidelines. */\n readonly compressionGuidelineLearning: boolean;\n /** `compressionGuidelineSemanticRefinementEnabled` — semantically refine guidelines. */\n readonly compressionGuidelineSemanticRefinement: boolean;\n /** `contextCompressionActionsEnabled` — apply context-compression actions. */\n readonly contextCompressionActions: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveCompressionCapabilities}.\n */\nexport type CompressionConfigProjection = Pick<\n PluginConfig,\n \"compressionGuidelineLearningEnabled\" | \"compressionGuidelineSemanticRefinementEnabled\" | \"contextCompressionActionsEnabled\"\n>;\n\n/**\n * Resolve the {@link CompressionCapabilitySet} from parsed config.\n */\nexport function resolveCompressionCapabilities(config: CompressionConfigProjection): CompressionCapabilitySet {\n return Object.freeze({\n compressionGuidelineLearning: config.compressionGuidelineLearningEnabled,\n compressionGuidelineSemanticRefinement: config.compressionGuidelineSemanticRefinementEnabled,\n contextCompressionActions: config.contextCompressionActionsEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Presentation capability set (issue #1523 batch 8).\n//\n// These flags gate output formatting and presentation across the orchestrator, extraction\n// pipeline, consolidation engine, and related modules. Resolved ONCE per\n// operation entry rather than re-derived from raw config at each read site.\n// All flags are non-optional booleans on PluginConfig (defaults applied at\n// the parse boundary), so the projection is a pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of output formatting and presentation feature gates (issue #1523 batch 8).\n */\nexport interface PresentationCapabilitySet {\n /** `verbatimArtifactsEnabled` — verbatim-artifact rendering in recall output. */\n readonly verbatimArtifacts: boolean;\n /** `memoryBoxesEnabled` — memory-box rendering in recall output. */\n readonly memoryBoxes: boolean;\n /** `bufferSurpriseTriggerEnabled` — buffer surprise-detection trigger. */\n readonly bufferSurpriseTrigger: boolean;\n /** `threadingEnabled` — conversation threading in output. */\n readonly threading: boolean;\n /** `episodeNoteModeEnabled` — episode note-mode formatting. */\n readonly episodeNoteMode: boolean;\n /** `transcriptEnabled` — transcript-mode output. */\n readonly transcript: boolean;\n /** `entitySummaryEnabled` — entity summary generation. */\n readonly entitySummary: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolvePresentationCapabilities}.\n */\nexport type PresentationConfigProjection = Pick<\n PluginConfig,\n \"verbatimArtifactsEnabled\" |\n \"memoryBoxesEnabled\" |\n \"bufferSurpriseTriggerEnabled\" |\n \"threadingEnabled\" |\n \"episodeNoteModeEnabled\" |\n \"transcriptEnabled\" |\n \"entitySummaryEnabled\"\n>;\n\n/**\n * Resolve the {@link PresentationCapabilitySet} from parsed config.\n */\nexport function resolvePresentationCapabilities(config: PresentationConfigProjection): PresentationCapabilitySet {\n return Object.freeze({\n verbatimArtifacts: config.verbatimArtifactsEnabled,\n memoryBoxes: config.memoryBoxesEnabled,\n bufferSurpriseTrigger: config.bufferSurpriseTriggerEnabled,\n threading: config.threadingEnabled,\n episodeNoteMode: config.episodeNoteModeEnabled,\n transcript: config.transcriptEnabled,\n entitySummary: config.entitySummaryEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// Consolidation capability set (issue #1523 batch 8).\n//\n// These flags gate memory consolidation, compounding, and abstraction across the orchestrator, extraction\n// pipeline, consolidation engine, and related modules. Resolved ONCE per\n// operation entry rather than re-derived from raw config at each read site.\n// All flags are non-optional booleans on PluginConfig (defaults applied at\n// the parse boundary), so the projection is a pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of memory consolidation, compounding, and abstraction feature gates (issue #1523 batch 8).\n */\nexport interface ConsolidationCapabilitySet {\n /** `compoundingSemanticEnabled` — semantic compounding of memories. */\n readonly compoundingSemantic: boolean;\n /** `abstractionAnchorsEnabled` — abstraction-anchor extraction. */\n readonly abstractionAnchors: boolean;\n /** `compoundingEnabled` — master compounding switch. */\n readonly compounding: boolean;\n /** `calibrationEnabled` — memory calibration pass. */\n readonly calibration: boolean;\n /** `semanticConsolidationEnabled` — semantic consolidation pass. */\n readonly semanticConsolidation: boolean;\n /** `patternReinforcementEnabled` — pattern reinforcement in consolidation. */\n readonly patternReinforcement: boolean;\n /** `continuityAuditEnabled` — continuity audit during consolidation. */\n readonly continuityAudit: boolean;\n /** `graphEdgeDecayEnabled` — graph edge decay in maintenance. */\n readonly graphEdgeDecay: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveConsolidationCapabilities}.\n */\nexport type ConsolidationConfigProjection = Pick<\n PluginConfig,\n \"compoundingSemanticEnabled\" |\n \"abstractionAnchorsEnabled\" |\n \"compoundingEnabled\" |\n \"calibrationEnabled\" |\n \"semanticConsolidationEnabled\" |\n \"patternReinforcementEnabled\" |\n \"continuityAuditEnabled\" |\n \"graphEdgeDecayEnabled\"\n>;\n\n/**\n * Resolve the {@link ConsolidationCapabilitySet} from parsed config.\n */\nexport function resolveConsolidationCapabilities(config: ConsolidationConfigProjection): ConsolidationCapabilitySet {\n return Object.freeze({\n compoundingSemantic: config.compoundingSemanticEnabled,\n abstractionAnchors: config.abstractionAnchorsEnabled,\n compounding: config.compoundingEnabled,\n calibration: config.calibrationEnabled,\n semanticConsolidation: config.semanticConsolidationEnabled,\n patternReinforcement: config.patternReinforcementEnabled,\n continuityAudit: config.continuityAuditEnabled,\n graphEdgeDecay: config.graphEdgeDecayEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// RecallAuxiliary capability set (issue #1523 batch 8).\n//\n// These flags gate extraction pipeline details and auxiliary recall enrichment across the orchestrator, extraction\n// pipeline, consolidation engine, and related modules. Resolved ONCE per\n// operation entry rather than re-derived from raw config at each read site.\n// All flags are non-optional booleans on PluginConfig (defaults applied at\n// the parse boundary), so the projection is a pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of extraction pipeline details and auxiliary recall enrichment feature gates (issue #1523 batch 8).\n */\nexport interface RecallAuxiliaryCapabilitySet {\n /** `causalRuleExtractionEnabled` — causal-rule extraction in pipeline. */\n readonly causalRuleExtraction: boolean;\n /** `correctionEnabled` — memory correction subsystem. */\n readonly correction: boolean;\n /** `continuityIncidentLoggingEnabled` — continuity incident logging. */\n readonly continuityIncidentLogging: boolean;\n /** `daySummaryEnabled` — day-summary generation. */\n readonly daySummary: boolean;\n /** `versioningEnabled` — memory versioning. */\n readonly versioning: boolean;\n /** `verifiedRecallEnabled` — verified-recall tier. */\n readonly verifiedRecall: boolean;\n /** `semanticRuleVerificationEnabled` — semantic-rule verification. */\n readonly semanticRuleVerification: boolean;\n /** `workProductRecallEnabled` — work-product recall tier. */\n readonly workProductRecall: boolean;\n /** `secureStoreEnabled` — secure storage mode. */\n readonly secureStore: boolean;\n /** `knowledgeIndexEnabled` — knowledge index in recall. */\n readonly knowledgeIndex: boolean;\n /** `factDeduplicationEnabled` — fact deduplication in recall. */\n readonly factDeduplication: boolean;\n /** `compactionResetEnabled` — compaction reset on re-ingest. */\n readonly compactionReset: boolean;\n /** `entityRetrievalEnabled` — entity retrieval tier. */\n readonly entityRetrieval: boolean;\n /** `cronRecallPolicyEnabled` — cron-based recall policy. */\n readonly cronRecallPolicy: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveRecallAuxiliaryCapabilities}.\n */\nexport type RecallAuxiliaryConfigProjection = Pick<\n PluginConfig,\n \"causalRuleExtractionEnabled\" |\n \"correctionEnabled\" |\n \"continuityIncidentLoggingEnabled\" |\n \"daySummaryEnabled\" |\n \"versioningEnabled\" |\n \"verifiedRecallEnabled\" |\n \"semanticRuleVerificationEnabled\" |\n \"workProductRecallEnabled\" |\n \"secureStoreEnabled\" |\n \"knowledgeIndexEnabled\" |\n \"factDeduplicationEnabled\" |\n \"compactionResetEnabled\" |\n \"entityRetrievalEnabled\" |\n \"cronRecallPolicyEnabled\"\n>;\n\n/**\n * Resolve the {@link RecallAuxiliaryCapabilitySet} from parsed config.\n */\nexport function resolveRecallAuxiliaryCapabilities(config: RecallAuxiliaryConfigProjection): RecallAuxiliaryCapabilitySet {\n return Object.freeze({\n causalRuleExtraction: config.causalRuleExtractionEnabled,\n correction: config.correctionEnabled,\n continuityIncidentLogging: config.continuityIncidentLoggingEnabled,\n daySummary: config.daySummaryEnabled,\n versioning: config.versioningEnabled,\n verifiedRecall: config.verifiedRecallEnabled,\n semanticRuleVerification: config.semanticRuleVerificationEnabled,\n workProductRecall: config.workProductRecallEnabled,\n secureStore: config.secureStoreEnabled,\n knowledgeIndex: config.knowledgeIndexEnabled,\n factDeduplication: config.factDeduplicationEnabled,\n compactionReset: config.compactionResetEnabled,\n entityRetrieval: config.entityRetrievalEnabled,\n cronRecallPolicy: config.cronRecallPolicyEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// RecallEnhancement capability set (issue #1523 batch 9).\n//\n// These 24 flags gate recall enrichment, memory reconstruction, entity\n// relationships, causal trajectory recall, CMC retrieval, and related\n// enhancement paths. Read sites span orchestrator, access-service, graph-recall,\n// and CLI research-status commands. All flags are non-optional booleans on\n// PluginConfig (defaults resolved at the parse boundary), so the projection\n// is a pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of recall-enhancement feature gates (issue #1523 batch 9).\n */\nexport interface RecallEnhancementCapabilitySet {\n readonly explicitCueRecall: boolean;\n readonly targetedFactRecall: boolean;\n readonly focusedListRecall: boolean;\n readonly responseGuidanceRecall: boolean;\n readonly eventOrderRecall: boolean;\n readonly reinforcementRecallBoost: boolean;\n readonly recallPlannerTelemetry: boolean;\n readonly peerProfileRecall: boolean;\n readonly graphAssistShadowEval: boolean;\n readonly memoryReconstruction: boolean;\n readonly memoryLinking: boolean;\n readonly causalTrajectoryRecall: boolean;\n readonly causalTrajectoryMemory: boolean;\n readonly cmcRetrieval: boolean;\n readonly contradictionDetection: boolean;\n readonly factArchival: boolean;\n readonly entityRelationships: boolean;\n readonly entityActivityLog: boolean;\n readonly compoundingInject: boolean;\n readonly accessTracking: boolean;\n readonly autoPromoteToShared: boolean;\n readonly feedback: boolean;\n readonly identity: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveRecallEnhancementCapabilities}.\n */\nexport type RecallEnhancementConfigProjection = Pick<\n PluginConfig,\n | \"explicitCueRecallEnabled\"\n | \"targetedFactRecallEnabled\"\n | \"focusedListRecallEnabled\"\n | \"responseGuidanceRecallEnabled\"\n | \"eventOrderRecallEnabled\"\n | \"reinforcementRecallBoostEnabled\"\n | \"recallPlannerTelemetryEnabled\"\n | \"peerProfileRecallEnabled\"\n | \"graphAssistShadowEvalEnabled\"\n | \"memoryReconstructionEnabled\"\n | \"memoryLinkingEnabled\"\n | \"causalTrajectoryRecallEnabled\"\n | \"causalTrajectoryMemoryEnabled\"\n | \"cmcRetrievalEnabled\"\n | \"contradictionDetectionEnabled\"\n | \"factArchivalEnabled\"\n | \"entityRelationshipsEnabled\"\n | \"entityActivityLogEnabled\"\n | \"compoundingInjectEnabled\"\n | \"accessTrackingEnabled\"\n | \"autoPromoteToSharedEnabled\"\n | \"feedbackEnabled\"\n | \"identityEnabled\"\n>;\n\n/**\n * Resolve the {@link RecallEnhancementCapabilitySet} from parsed config.\n */\nexport function resolveRecallEnhancementCapabilities(config: RecallEnhancementConfigProjection): RecallEnhancementCapabilitySet {\n return Object.freeze({\n explicitCueRecall: config.explicitCueRecallEnabled,\n targetedFactRecall: config.targetedFactRecallEnabled,\n focusedListRecall: config.focusedListRecallEnabled,\n responseGuidanceRecall: config.responseGuidanceRecallEnabled,\n eventOrderRecall: config.eventOrderRecallEnabled,\n reinforcementRecallBoost: config.reinforcementRecallBoostEnabled,\n recallPlannerTelemetry: config.recallPlannerTelemetryEnabled,\n peerProfileRecall: config.peerProfileRecallEnabled,\n graphAssistShadowEval: config.graphAssistShadowEvalEnabled === true,\n memoryReconstruction: config.memoryReconstructionEnabled,\n memoryLinking: config.memoryLinkingEnabled,\n causalTrajectoryRecall: config.causalTrajectoryRecallEnabled,\n causalTrajectoryMemory: config.causalTrajectoryMemoryEnabled,\n cmcRetrieval: config.cmcRetrievalEnabled,\n contradictionDetection: config.contradictionDetectionEnabled,\n factArchival: config.factArchivalEnabled,\n entityRelationships: config.entityRelationshipsEnabled,\n entityActivityLog: config.entityActivityLogEnabled,\n compoundingInject: config.compoundingInjectEnabled,\n accessTracking: config.accessTrackingEnabled,\n autoPromoteToShared: config.autoPromoteToSharedEnabled,\n feedback: config.feedbackEnabled,\n identity: config.identityEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// PipelineProcessing capability set (issue #1523 batch 9). These 23 flags gate\n// extraction/chunking/summarization and LLM infrastructure across orchestrator,\n// extraction, summarizer, embedding-fallback, local-llm, search, day-summary, and\n// semantic-consolidation. Defaults resolve at parse boundary, so pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of pipeline-processing feature gates (issue #1523 batch 9).\n */\nexport interface PipelineProcessingCapabilitySet {\n readonly chunking: boolean;\n readonly semanticChunking: boolean;\n readonly semanticDedup: boolean;\n readonly summarization: boolean;\n readonly topicExtraction: boolean;\n readonly sessionObserver: boolean;\n readonly profiling: boolean;\n readonly checkpoint: boolean;\n readonly traceWeaver: boolean;\n readonly routingRules: boolean;\n readonly inlineSourceAttribution: boolean;\n readonly negativeExamples: boolean;\n readonly hourlySummaries: boolean;\n readonly lcm: boolean;\n readonly localLlmFast: boolean;\n readonly proactiveExtraction: boolean;\n readonly sourceGrounding: boolean;\n readonly delinearize: boolean;\n readonly slowLog: boolean;\n readonly hostEmbeddingProvider: boolean;\n readonly memoryExtensions: boolean;\n readonly hourlySummariesExtended: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolvePipelineProcessingCapabilities}.\n */\nexport type PipelineProcessingConfigProjection = Pick<\n PluginConfig,\n | \"chunkingEnabled\"\n | \"semanticChunkingEnabled\"\n | \"semanticDedupEnabled\"\n | \"summarizationEnabled\"\n | \"topicExtractionEnabled\"\n | \"sessionObserverEnabled\"\n | \"profilingEnabled\"\n | \"checkpointEnabled\"\n | \"traceWeaverEnabled\"\n | \"routingRulesEnabled\"\n | \"inlineSourceAttributionEnabled\"\n | \"negativeExamplesEnabled\"\n | \"hourlySummariesEnabled\"\n | \"lcmEnabled\"\n | \"localLlmFastEnabled\"\n | \"proactiveExtractionEnabled\"\n | \"extractionSourceGroundingEnabled\"\n | \"delinearizeEnabled\"\n | \"slowLogEnabled\"\n | \"hostEmbeddingProviderEnabled\"\n | \"memoryExtensionsEnabled\"\n | \"hourlySummariesExtendedEnabled\"\n>;\n\n/**\n * Resolve the {@link PipelineProcessingCapabilitySet} from parsed config.\n */\nexport function resolvePipelineProcessingCapabilities(config: PipelineProcessingConfigProjection): PipelineProcessingCapabilitySet {\n return Object.freeze({\n chunking: config.chunkingEnabled,\n semanticChunking: config.semanticChunkingEnabled,\n semanticDedup: config.semanticDedupEnabled,\n summarization: config.summarizationEnabled,\n topicExtraction: config.topicExtractionEnabled,\n sessionObserver: config.sessionObserverEnabled === true,\n profiling: config.profilingEnabled,\n checkpoint: config.checkpointEnabled,\n traceWeaver: config.traceWeaverEnabled,\n routingRules: config.routingRulesEnabled,\n inlineSourceAttribution: config.inlineSourceAttributionEnabled,\n negativeExamples: config.negativeExamplesEnabled,\n hourlySummaries: config.hourlySummariesEnabled,\n lcm: config.lcmEnabled,\n localLlmFast: config.localLlmFastEnabled,\n proactiveExtraction: config.proactiveExtractionEnabled,\n sourceGrounding: config.extractionSourceGroundingEnabled,\n delinearize: config.delinearizeEnabled,\n slowLog: config.slowLogEnabled,\n hostEmbeddingProvider: config.hostEmbeddingProviderEnabled,\n memoryExtensions: config.memoryExtensionsEnabled,\n hourlySummariesExtended: config.hourlySummariesExtendedEnabled,\n });\n}\n\n// ---------------------------------------------------------------------------\n// ConversationContext capability set (issue #1523 batch 9).\n//\n// These 12 flags gate conversation context, shared signals, intent routing,\n// operator-aware consolidation, CMC consolidation, maintenance fanout, CLI\n// presentation, and code connectors. Read sites span orchestrator, CLI,\n// shared-context/manager, semantic-consolidation-coordinator, compounding/engine,\n// maintenance modules, procedural stats, connectors, and wearables. All flags\n// are non-optional booleans on PluginConfig (defaults resolved at the parse\n// boundary), so the projection is a pure pass-through.\n// ---------------------------------------------------------------------------\n\n/**\n * Frozen projection of conversation/context feature gates (issue #1523 batch 9).\n */\nexport interface ConversationContextCapabilitySet {\n readonly sharedContext: boolean;\n readonly intentRouting: boolean;\n readonly crossSignalsSemantic: boolean;\n readonly sharedCrossSignalSemantic: boolean;\n readonly operatorAwareConsolidation: boolean;\n readonly peerProfileReasoner: boolean;\n readonly cmcConsolidation: boolean;\n readonly maintenanceNamespaceFanout: boolean;\n readonly citations: boolean;\n readonly semanticRulePromotion: boolean;\n readonly codexMarketplace: boolean;\n}\n\n/**\n * Config projection consumed by {@link resolveConversationContextCapabilities}.\n */\nexport type ConversationContextConfigProjection = Pick<\n PluginConfig,\n | \"sharedContextEnabled\"\n | \"intentRoutingEnabled\"\n | \"crossSignalsSemanticEnabled\"\n | \"sharedCrossSignalSemanticEnabled\"\n | \"operatorAwareConsolidationEnabled\"\n | \"peerProfileReasonerEnabled\"\n | \"cmcConsolidationEnabled\"\n | \"maintenanceNamespaceFanoutEnabled\"\n | \"citationsEnabled\"\n | \"semanticRulePromotionEnabled\"\n | \"codexMarketplaceEnabled\"\n>;\n\n/**\n * Resolve the {@link ConversationContextCapabilitySet} from parsed config.\n */\nexport function resolveConversationContextCapabilities(config: ConversationContextConfigProjection): ConversationContextCapabilitySet {\n return Object.freeze({\n sharedContext: config.sharedContextEnabled,\n intentRouting: config.intentRoutingEnabled,\n crossSignalsSemantic: config.crossSignalsSemanticEnabled,\n sharedCrossSignalSemantic: config.sharedCrossSignalSemanticEnabled === true,\n operatorAwareConsolidation: config.operatorAwareConsolidationEnabled,\n peerProfileReasoner: config.peerProfileReasonerEnabled,\n cmcConsolidation: config.cmcConsolidationEnabled,\n maintenanceNamespaceFanout: config.maintenanceNamespaceFanoutEnabled,\n citations: config.citationsEnabled,\n semanticRulePromotion: config.semanticRulePromotionEnabled,\n codexMarketplace: config.codexMarketplaceEnabled,\n });\n}\n"],"mappings":";AAkFO,SAAS,oBAAoB,QAAqC;AACvE,SAAO,OAAO,OAAO;AAAA,IACnB,aAAa,OAAO;AAAA,IACpB,oBAAoB,OAAO;AAAA,IAC3B,yBAAyB,OAAO;AAAA;AAAA;AAAA,IAGhC,kBAAkB,OAAO,sBAAsB;AAAA,IAC/C,WAAW,OAAO;AAAA,IAClB,2BAA2B,OAAO;AAAA,IAClC,kBAAkB,OAAO;AAAA,IACzB,eAAe,OAAO;AAAA,IACtB,sBAAsB,OAAO;AAAA,IAC7B,aAAa,OAAO;AAAA;AAAA;AAAA,IAGpB,uBAAuB,OAAO,iCAAiC;AAAA,IAC/D,qBAAqB,OAAO,+BAA+B;AAAA;AAAA,IAE3D,QAAQ,OAAO;AAAA,IACf,mBAAmB,OAAO;AAAA,IAC1B,mBAAmB,OAAO;AAAA,EAC5B,CAAC;AACH;AAiDO,SAAS,qCACd,QACgC;AAChC,SAAO,OAAO,OAAO;AAAA,IACnB,aAAa,OAAO;AAAA,IACpB,WAAW,OAAO;AAAA,IAClB,aAAa,OAAO;AAAA,IACpB,kBAAkB,OAAO;AAAA;AAAA;AAAA,IAGzB,4BAA4B,OAAO,sCAAsC;AAAA,EAC3E,CAAC;AACH;AAgCO,SAAS,+BACd,QAC0B;AAC1B,SAAO,OAAO,OAAO;AAAA,IACnB,4BAA4B,OAAO;AAAA;AAAA,IAEnC,6BAA6B,OAAO,uCAAuC;AAAA,IAC3E,oBAAoB,OAAO,8BAA8B;AAAA,EAC3D,CAAC;AACH;AAgFO,SAAS,mCACd,QAC8B;AAC9B,SAAO,OAAO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AuB,OAAO;AAAA,IAC9B,kBAAkB,OAAO;AAAA,EAC3B,CAAC;AACH;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  listNamespaces
3
- } from "./chunk-TAC5WFJC.js";
3
+ } from "./chunk-QEGKMZNQ.js";
4
4
  import {
5
5
  capabilityAllowsNamespace
6
6
  } from "./chunk-IG747LRN.js";
@@ -282,4 +282,4 @@ export {
282
282
  computeServiceCorpusWatermarks,
283
283
  computeServiceCorpusCensus
284
284
  };
285
- //# sourceMappingURL=chunk-YHGRA7CK.js.map
285
+ //# sourceMappingURL=chunk-CDQO5DCD.js.map
@@ -11,7 +11,7 @@ import {
11
11
  } from "./chunk-NHLLKEKK.js";
12
12
  import {
13
13
  parseConfig
14
- } from "./chunk-M5IJP3YW.js";
14
+ } from "./chunk-2PKGJPQL.js";
15
15
  import {
16
16
  resolveObjectiveStateStoreDir,
17
17
  validateObjectiveStateSnapshot
@@ -268,4 +268,4 @@ export {
268
268
  recordResumeBundle,
269
269
  getResumeBundleStatus
270
270
  };
271
- //# sourceMappingURL=chunk-ENUI3IO7.js.map
271
+ //# sourceMappingURL=chunk-D433RXFJ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RECALL_DISCLOSURE_LEVELS,
3
3
  isRecallDisclosure
4
- } from "./chunk-FNQEXI3D.js";
4
+ } from "./chunk-F5O6WEDO.js";
5
5
 
6
6
  // src/recall-navigate-disclosure.ts
7
7
  function disclosureRank(level) {
@@ -27,4 +27,4 @@ export {
27
27
  disclosureRank,
28
28
  planDisclosureStep
29
29
  };
30
- //# sourceMappingURL=chunk-IK63WA5A.js.map
30
+ //# sourceMappingURL=chunk-D4SPMHEW.js.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-PWPIERBM.js";
16
16
  import {
17
17
  resolveNamespaceCapabilities
18
- } from "./chunk-JUOZ62Y7.js";
18
+ } from "./chunk-BMXEBWBT.js";
19
19
  import {
20
20
  log
21
21
  } from "./chunk-3WCASNQZ.js";
@@ -551,4 +551,4 @@ export {
551
551
  runContradictionScan,
552
552
  resolveScanStorage
553
553
  };
554
- //# sourceMappingURL=chunk-42DJ235G.js.map
554
+ //# sourceMappingURL=chunk-DINRT75P.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-S3YM4SZQ.js";
9
9
  import {
10
10
  offlineSyncStorageForSnapshot
11
- } from "./chunk-YUHGJBQK.js";
11
+ } from "./chunk-5LWVTSF7.js";
12
12
  import {
13
13
  iterateOfflineSyncSnapshotFileRecords
14
14
  } from "./chunk-WQZZDN5M.js";
@@ -250,4 +250,4 @@ export {
250
250
  retainExcludedClassifications,
251
251
  createOfflineSyncManifestStream
252
252
  };
253
- //# sourceMappingURL=chunk-LELJRLPY.js.map
253
+ //# sourceMappingURL=chunk-DQFZOPDL.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  OUTPUT_LANGUAGE_POLICY
3
- } from "./chunk-BOADKFN4.js";
3
+ } from "./chunk-7LNHRQKR.js";
4
4
  import {
5
5
  normalizeProcedureSteps
6
6
  } from "./chunk-QDW3E4RD.js";
@@ -491,4 +491,4 @@ export {
491
491
  createVerdictCache,
492
492
  createDeferCountMap
493
493
  };
494
- //# sourceMappingURL=chunk-WN4HFL4K.js.map
494
+ //# sourceMappingURL=chunk-DQISIT63.js.map