@remnic/core 9.54.8 → 9.55.0

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 (574) hide show
  1. package/dist/access-admin-ops-surface.d.ts +11 -11
  2. package/dist/access-admin-ops-surface.js +44 -43
  3. package/dist/access-authorization-probe.d.ts +11 -11
  4. package/dist/access-authorization-probe.js +45 -44
  5. package/dist/access-boundary.d.ts +11 -11
  6. package/dist/access-boundary.js +44 -43
  7. package/dist/access-cli.js +114 -112
  8. package/dist/access-cli.js.map +1 -1
  9. package/dist/access-coding-context-resolution.d.ts +1 -1
  10. package/dist/access-extraction-force-flush.d.ts +11 -11
  11. package/dist/access-extraction-force-flush.js +44 -43
  12. package/dist/access-health-types.d.ts +1 -1
  13. package/dist/access-http-lcm-compaction.d.ts +11 -11
  14. package/dist/access-http-lifecycle-flush.d.ts +11 -11
  15. package/dist/access-http-offline-stream.d.ts +11 -11
  16. package/dist/access-http-query.js +44 -43
  17. package/dist/access-http.d.ts +12 -12
  18. package/dist/access-http.js +58 -57
  19. package/dist/access-identity-continuity-surface.d.ts +9 -9
  20. package/dist/access-identity-continuity-surface.js +44 -43
  21. package/dist/access-lcm-surface.d.ts +11 -11
  22. package/dist/access-lcm-surface.js +44 -43
  23. package/dist/access-mcp.d.ts +11 -11
  24. package/dist/access-mcp.js +53 -52
  25. package/dist/access-memory-search-fanout.d.ts +2 -2
  26. package/dist/access-memory-search-fanout.js +3 -3
  27. package/dist/{access-namespace-preflight-CCNn_6NE.d.ts → access-namespace-preflight-Bpt-SYP0.d.ts} +1 -1
  28. package/dist/access-namespace-preflight.d.ts +3 -3
  29. package/dist/access-namespace-preflight.js +44 -43
  30. package/dist/access-observe-write-surface.d.ts +11 -11
  31. package/dist/access-observe-write-surface.js +44 -43
  32. package/dist/access-offline-manifest.d.ts +9 -9
  33. package/dist/access-offline-manifest.js +9 -9
  34. package/dist/access-operations-batch.js +48 -47
  35. package/dist/access-operations.d.ts +14 -14
  36. package/dist/access-operations.js +52 -51
  37. package/dist/access-recall-concurrency.d.ts +11 -11
  38. package/dist/access-recall-concurrency.js +44 -43
  39. package/dist/access-recall-response.d.ts +11 -11
  40. package/dist/access-recall-response.js +44 -43
  41. package/dist/access-recall-surface.d.ts +11 -11
  42. package/dist/access-recall-surface.js +44 -43
  43. package/dist/access-schema.d.ts +88 -88
  44. package/dist/access-schema.js +3 -3
  45. package/dist/{access-service-PEduVt8q.d.ts → access-service-4DO8XMq6.d.ts} +71 -71
  46. package/dist/access-service-helpers.d.ts +11 -11
  47. package/dist/access-service.d.ts +11 -11
  48. package/dist/access-service.js +44 -43
  49. package/dist/access-surface-catalog.d.ts +11 -11
  50. package/dist/access-surface-catalog.js +46 -45
  51. package/dist/access-surface-catalog.js.map +1 -1
  52. package/dist/access-wearables-meetings-surface.d.ts +3 -3
  53. package/dist/action-confidence.d.ts +1 -1
  54. package/dist/active-memory-bridge.d.ts +1 -1
  55. package/dist/active-memory-bridge.js +3 -3
  56. package/dist/active-recall.d.ts +1 -1
  57. package/dist/active-recall.js +4 -2
  58. package/dist/active-recall.js.map +1 -1
  59. package/dist/ambient-provenance.d.ts +1 -1
  60. package/dist/artifact-search.d.ts +1 -1
  61. package/dist/{auto-sync-NR3GPCOA.js → auto-sync-5HVRCMGZ.js} +3 -3
  62. package/dist/behavior-learner.d.ts +1 -1
  63. package/dist/behavior-signals.d.ts +1 -1
  64. package/dist/bootstrap.d.ts +9 -9
  65. package/dist/briefing-window.d.ts +2 -2
  66. package/dist/briefing.d.ts +2 -2
  67. package/dist/briefing.js +14 -13
  68. package/dist/buffer-surprise-report.d.ts +1 -1
  69. package/dist/buffer-turn-helpers.d.ts +1 -1
  70. package/dist/buffer.d.ts +2 -2
  71. package/dist/buffer.js +6 -5
  72. package/dist/bulk-import/index.d.ts +3 -3
  73. package/dist/calibration.d.ts +1 -1
  74. package/dist/capabilities.d.ts +8 -8
  75. package/dist/capabilities.js +1 -1
  76. package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-YO5QJ6L3.js} +2 -2
  77. package/dist/{catalog-DGFf8mD9.d.ts → catalog-BasnO3Bw.d.ts} +1 -1
  78. package/dist/causal-behavior.d.ts +1 -1
  79. package/dist/causal-behavior.js +2 -2
  80. package/dist/causal-chain.js +2 -2
  81. package/dist/causal-consolidation.d.ts +1 -1
  82. package/dist/causal-consolidation.js +17 -16
  83. package/dist/causal-consolidation.js.map +1 -1
  84. package/dist/causal-retrieval.js +2 -2
  85. package/dist/causal-trajectory-graph.d.ts +1 -1
  86. package/dist/causal-trajectory-graph.js +2 -2
  87. package/dist/causal-trajectory.js +1 -1
  88. package/dist/{chunk-I6WYQSX4.js → chunk-2NKY7OC6.js} +14 -2
  89. package/dist/chunk-2NKY7OC6.js.map +1 -0
  90. package/dist/{chunk-E2GZSFR5.js → chunk-2YREVL4T.js} +2 -2
  91. package/dist/{chunk-PG4QBPVG.js → chunk-3VFVQDZO.js} +8 -4
  92. package/dist/chunk-3VFVQDZO.js.map +1 -0
  93. package/dist/{chunk-KM55SMLG.js → chunk-4KM3V6VS.js} +2 -2
  94. package/dist/{chunk-HAEU3ZW7.js → chunk-4OW2T32G.js} +2 -2
  95. package/dist/{chunk-PCRHFB75.js → chunk-4QFCAKNM.js} +1 -1
  96. package/dist/{chunk-OS5DYALF.js → chunk-4THNU7OF.js} +422 -47
  97. package/dist/chunk-4THNU7OF.js.map +1 -0
  98. package/dist/{chunk-76JJSXK7.js → chunk-5QHDXMXP.js} +1 -1
  99. package/dist/chunk-5QHDXMXP.js.map +1 -0
  100. package/dist/{chunk-OWC42MDT.js → chunk-5ZIWRMZM.js} +2 -2
  101. package/dist/{chunk-GWFSVJ4P.js → chunk-6KTXE6A3.js} +2 -2
  102. package/dist/{chunk-5V64M56S.js → chunk-6P2NUVM5.js} +26 -24
  103. package/dist/chunk-6P2NUVM5.js.map +1 -0
  104. package/dist/chunk-6Q3ZTEF6.js +54 -0
  105. package/dist/chunk-6Q3ZTEF6.js.map +1 -0
  106. package/dist/{chunk-P2FA65P2.js → chunk-7NSC4IVA.js} +2 -2
  107. package/dist/{chunk-QC6BILS7.js → chunk-7PKNOXYB.js} +11 -11
  108. package/dist/{chunk-AHVEHR6K.js → chunk-7ZNJN5WZ.js} +13 -1
  109. package/dist/chunk-7ZNJN5WZ.js.map +1 -0
  110. package/dist/{chunk-RZRUV6N2.js → chunk-ANMIOQPU.js} +2 -2
  111. package/dist/{chunk-RPSYDM6C.js → chunk-BPWZDHFM.js} +2 -2
  112. package/dist/{chunk-JKW663ZN.js → chunk-BVRREV3N.js} +2 -2
  113. package/dist/{chunk-XXRRHING.js → chunk-BWJMBJCY.js} +24 -15
  114. package/dist/chunk-BWJMBJCY.js.map +1 -0
  115. package/dist/{chunk-2NLLXCJG.js → chunk-BXLOS5AJ.js} +2 -2
  116. package/dist/{chunk-ELXP665P.js → chunk-CKSEJD7K.js} +2 -2
  117. package/dist/{chunk-4GE3NA5I.js → chunk-CME347TM.js} +2 -2
  118. package/dist/{chunk-BGLY7EEM.js → chunk-CMRUIKVA.js} +3 -3
  119. package/dist/{chunk-HGJ6NJ4E.js → chunk-D4LVHPOA.js} +2 -2
  120. package/dist/{chunk-YK6BDDHP.js → chunk-DFEODULB.js} +2 -2
  121. package/dist/{chunk-X7Y7WX73.js → chunk-DQEMWVMT.js} +1 -1
  122. package/dist/{chunk-XWZ6KOL6.js → chunk-E57E5SCS.js} +2 -2
  123. package/dist/{chunk-M23RF3LJ.js → chunk-ER4BLWI6.js} +2 -2
  124. package/dist/{chunk-47J4EDGR.js → chunk-F7M36OG2.js} +3 -3
  125. package/dist/{chunk-MTF5EFFF.js → chunk-FK7T55BA.js} +60 -41
  126. package/dist/{chunk-MTF5EFFF.js.map → chunk-FK7T55BA.js.map} +1 -1
  127. package/dist/{chunk-ZUJW327U.js → chunk-FONW766A.js} +2 -2
  128. package/dist/{chunk-FEBHRT2I.js → chunk-FR3FNPCJ.js} +3 -3
  129. package/dist/{chunk-G6DFSS6A.js → chunk-GUNIXT36.js} +2 -2
  130. package/dist/{chunk-K2UGPTYY.js → chunk-H6ZXNH5I.js} +2 -2
  131. package/dist/{chunk-Z463UYI6.js → chunk-HC55YCNK.js} +2 -2
  132. package/dist/{chunk-IEQCHXUS.js → chunk-HQ2VGCGP.js} +14 -14
  133. package/dist/{chunk-ZXGKQQ3L.js → chunk-HXXGZ4KV.js} +1 -1
  134. package/dist/{chunk-YZFPEHXF.js → chunk-HYVBJLEK.js} +5 -5
  135. package/dist/{chunk-FPKKFDO4.js → chunk-IFFW25NG.js} +246 -118
  136. package/dist/chunk-IFFW25NG.js.map +1 -0
  137. package/dist/{chunk-3GD2HFR6.js → chunk-IGWVMA4Y.js} +2 -2
  138. package/dist/{chunk-FONWBCVY.js → chunk-IKT6ZVO7.js} +3 -3
  139. package/dist/{chunk-KMWYZTIE.js → chunk-ION47U3Z.js} +3 -3
  140. package/dist/{chunk-OCIP6YMD.js → chunk-IXGQP4RZ.js} +3 -3
  141. package/dist/{chunk-FYZKFLKY.js → chunk-JFPZEWY3.js} +3 -3
  142. package/dist/{chunk-SMNYAMJD.js → chunk-JKL53MOY.js} +4 -4
  143. package/dist/{chunk-2T5AWWMF.js → chunk-JOA4Q765.js} +3 -3
  144. package/dist/{chunk-2XRE6FLM.js → chunk-JUOZ62Y7.js} +3 -1
  145. package/dist/chunk-JUOZ62Y7.js.map +1 -0
  146. package/dist/{chunk-MLPTFODV.js → chunk-KHQ57QLJ.js} +4 -4
  147. package/dist/{chunk-NSVDUN76.js → chunk-LCU5R6TQ.js} +8 -3
  148. package/dist/chunk-LCU5R6TQ.js.map +1 -0
  149. package/dist/{chunk-OTUFRUV3.js → chunk-LYPG7GOO.js} +4 -4
  150. package/dist/{chunk-OTUFRUV3.js.map → chunk-LYPG7GOO.js.map} +1 -1
  151. package/dist/{chunk-KRTY3ENI.js → chunk-MDVBCPOS.js} +2 -2
  152. package/dist/{chunk-M3UYE6PS.js → chunk-N655QIA2.js} +4 -4
  153. package/dist/{chunk-5NB726GV.js → chunk-NFQB6RJT.js} +3 -3
  154. package/dist/{chunk-OIOV4RJE.js → chunk-NP7FLVZW.js} +2 -2
  155. package/dist/{chunk-CX5SW2EW.js → chunk-NRFU5MVH.js} +4 -4
  156. package/dist/{chunk-QDWDVNWU.js → chunk-O4TTIMOP.js} +2 -2
  157. package/dist/{chunk-XCO2NXPZ.js → chunk-O54B5YNM.js} +3 -3
  158. package/dist/{chunk-UQWUDD7E.js → chunk-ONCWJBWV.js} +3 -3
  159. package/dist/{chunk-Z3SQEEB6.js → chunk-PD66CVSD.js} +2 -2
  160. package/dist/{chunk-QYN5PXDZ.js → chunk-PPUTUOC3.js} +2 -2
  161. package/dist/{chunk-TPWBUKS3.js → chunk-PSH3VFZ7.js} +4 -4
  162. package/dist/{chunk-MK5VEWCR.js → chunk-QKPDN325.js} +2 -2
  163. package/dist/{chunk-EVWWT3KE.js → chunk-QP2IZTUR.js} +2 -2
  164. package/dist/{chunk-4ESX4WX2.js → chunk-QSDPVZPD.js} +5 -5
  165. package/dist/{chunk-LHIBA4G7.js → chunk-QV7OEHFN.js} +2 -2
  166. package/dist/{chunk-3DVG3GRQ.js → chunk-QZR3WT3L.js} +2 -2
  167. package/dist/{chunk-EEAMSNSG.js → chunk-R7TZ2HCS.js} +2 -2
  168. package/dist/{chunk-IOYXIY7W.js → chunk-R7UHWPYI.js} +2 -2
  169. package/dist/{chunk-L6Z5OAS4.js → chunk-RL3EGL7A.js} +2 -2
  170. package/dist/{chunk-7SF5BAWF.js → chunk-S6AH7WSF.js} +3 -3
  171. package/dist/{chunk-QGKCM7C4.js → chunk-SFCJCMZQ.js} +5 -5
  172. package/dist/{chunk-K44N3CFW.js → chunk-T3HC7RJ7.js} +2 -2
  173. package/dist/chunk-T3JQTCCO.js +94 -0
  174. package/dist/chunk-T3JQTCCO.js.map +1 -0
  175. package/dist/{chunk-6PCND4O2.js → chunk-T6EQPZ6E.js} +4 -4
  176. package/dist/{chunk-G7YUH4WT.js → chunk-TAMY4NKO.js} +2 -2
  177. package/dist/{chunk-XDBFSUHX.js → chunk-TAPFJ3ET.js} +2 -2
  178. package/dist/{chunk-MANCJV6J.js → chunk-TF3LMM5E.js} +2 -2
  179. package/dist/{chunk-2GD6MLXD.js → chunk-TFXYQNBH.js} +12 -12
  180. package/dist/{chunk-7DISPKXT.js → chunk-THACANBI.js} +4 -4
  181. package/dist/{chunk-6G4D222J.js → chunk-TLVLJSWS.js} +2 -2
  182. package/dist/{chunk-6QPI2ITJ.js → chunk-TVKWT2CY.js} +4 -4
  183. package/dist/{chunk-H7NAZ3UB.js → chunk-U7BMN33M.js} +2 -2
  184. package/dist/{chunk-BXIMH7MC.js → chunk-UTDMY476.js} +49 -5
  185. package/dist/chunk-UTDMY476.js.map +1 -0
  186. package/dist/{chunk-6LKEUCEM.js → chunk-UXREWVW4.js} +2 -2
  187. package/dist/{chunk-SUPEYLH2.js → chunk-UYCIS6V5.js} +2 -2
  188. package/dist/{chunk-F2BOUJUS.js → chunk-V3IT3XNG.js} +9 -9
  189. package/dist/{chunk-KQAFEZQX.js → chunk-VDX2J7OX.js} +2 -2
  190. package/dist/{chunk-NUA4VM46.js → chunk-VWP5DEHU.js} +2 -2
  191. package/dist/{chunk-NQMSEB5D.js → chunk-X5OIPQME.js} +2 -2
  192. package/dist/{chunk-RBII7637.js → chunk-XRPPHIRI.js} +2 -2
  193. package/dist/{chunk-OLT3YTDH.js → chunk-YMOPYG3K.js} +4 -4
  194. package/dist/{cli-DNvGlD4i.d.ts → cli-CQdYilcx.d.ts} +61 -11
  195. package/dist/cli.d.ts +18 -18
  196. package/dist/cli.js +84 -80
  197. package/dist/coding/pre-action-gate.d.ts +1 -1
  198. package/dist/coding/pre-action-gate.js +2 -2
  199. package/dist/compounding/engine.d.ts +2 -2
  200. package/dist/compounding/engine.js +16 -15
  201. package/dist/compounding/preference-consolidator.d.ts +1 -1
  202. package/dist/compression-optimizer.d.ts +1 -1
  203. package/dist/config-security.d.ts +7 -0
  204. package/dist/config-security.js +12 -0
  205. package/dist/config.d.ts +1 -1
  206. package/dist/config.js +4 -2
  207. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  208. package/dist/connectors/codex-materialize-runner.js +14 -13
  209. package/dist/connectors/codex-materialize.d.ts +1 -1
  210. package/dist/connectors/index.d.ts +1 -1
  211. package/dist/connectors/index.js +15 -14
  212. package/dist/consolidation-provenance-check.d.ts +2 -2
  213. package/dist/consolidation-undo.d.ts +2 -2
  214. package/dist/contradiction/index.d.ts +2 -2
  215. package/dist/contradiction/index.js +4 -4
  216. package/dist/{contradiction-scan-JDTBXRGW.js → contradiction-scan-522AYLQC.js} +3 -3
  217. package/dist/converge-config.d.ts +1 -1
  218. package/dist/convergence-refresh.d.ts +2 -2
  219. package/dist/convergence-refresh.js +16 -15
  220. package/dist/conversation-index/backend.d.ts +1 -1
  221. package/dist/conversation-index/chunker.d.ts +1 -1
  222. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  223. package/dist/conversation-index/indexer.d.ts +1 -1
  224. package/dist/conversation-index/search.d.ts +1 -1
  225. package/dist/corpus-watermark.d.ts +1 -1
  226. package/dist/corpus-watermark.js +16 -15
  227. package/dist/day-summary.d.ts +1 -1
  228. package/dist/day-summary.js +2 -2
  229. package/dist/delinearize.d.ts +1 -1
  230. package/dist/dependency-propagation-config.d.ts +1 -1
  231. package/dist/{dependency-propagation-delivery-CzEfB31P.d.ts → dependency-propagation-delivery-C_K_AHcv.d.ts} +1 -1
  232. package/dist/direct-answer-wiring.d.ts +1 -1
  233. package/dist/direct-answer.d.ts +1 -1
  234. package/dist/embedding-fallback.d.ts +1 -1
  235. package/dist/embedding-fallback.js +2 -2
  236. package/dist/enrichment/index.d.ts +1 -1
  237. package/dist/entity-retrieval.d.ts +4 -2
  238. package/dist/entity-retrieval.js +15 -13
  239. package/dist/entity-schema.d.ts +1 -1
  240. package/dist/explicit-capture.d.ts +9 -9
  241. package/dist/explicit-capture.js +6 -6
  242. package/dist/external-wiki-access.d.ts +11 -11
  243. package/dist/external-wiki-access.js +45 -44
  244. package/dist/external-wiki-collection-registration.d.ts +1 -1
  245. package/dist/external-wiki-collection.d.ts +1 -1
  246. package/dist/external-wiki-mcp-tools.d.ts +11 -11
  247. package/dist/extraction-error-classification.d.ts +1 -1
  248. package/dist/extraction-faithfulness.d.ts +1 -1
  249. package/dist/extraction-judge-telemetry.d.ts +1 -1
  250. package/dist/extraction-judge-training.d.ts +1 -1
  251. package/dist/extraction-judge.d.ts +1 -1
  252. package/dist/extraction-liveness.d.ts +1 -1
  253. package/dist/extraction-normalization.d.ts +1 -1
  254. package/dist/extraction-normalization.js +3 -3
  255. package/dist/extraction-prompt.d.ts +1 -1
  256. package/dist/extraction-prompt.js +2 -2
  257. package/dist/extraction-source-grounding-rules.d.ts +1 -1
  258. package/dist/extraction-source-grounding.d.ts +1 -1
  259. package/dist/extraction.d.ts +1 -1
  260. package/dist/extraction.js +25 -24
  261. package/dist/fallback-llm.d.ts +1 -1
  262. package/dist/{first-start-migration-CRZCZAJN.js → first-start-migration-HZ4VPRFQ.js} +2 -2
  263. package/dist/{forget-EHGGJZLX.js → forget-5TWK7CZT.js} +3 -3
  264. package/dist/graph-dashboard-diff.d.ts +1 -1
  265. package/dist/graph-dashboard-key.d.ts +1 -1
  266. package/dist/graph-dashboard-parser.d.ts +1 -1
  267. package/dist/{graph-edge-decay-JI2XDCTY.js → graph-edge-decay-ZXGBXNPW.js} +4 -4
  268. package/dist/graph-edge-reinforcement.d.ts +1 -1
  269. package/dist/graph-path-reconstruction.d.ts +1 -1
  270. package/dist/graph-path-scoring.d.ts +1 -1
  271. package/dist/graph-snapshot.d.ts +1 -1
  272. package/dist/graph-snapshot.js +3 -3
  273. package/dist/graph.d.ts +1 -1
  274. package/dist/graph.js +2 -2
  275. package/dist/harmonic-retrieval.js +1 -1
  276. package/dist/importance.d.ts +1 -1
  277. package/dist/importers/index.d.ts +1 -1
  278. package/dist/in-flight-reads.d.ts +1 -1
  279. package/dist/index.d.ts +755 -706
  280. package/dist/index.js +158 -133
  281. package/dist/intent.d.ts +1 -1
  282. package/dist/lcm/engine.d.ts +1 -1
  283. package/dist/lcm/index.d.ts +1 -1
  284. package/dist/lcm/index.js +3 -3
  285. package/dist/lcm/tools.d.ts +1 -1
  286. package/dist/lifecycle.d.ts +1 -1
  287. package/dist/live-connectors-runner.d.ts +1 -1
  288. package/dist/local-llm.d.ts +1 -1
  289. package/dist/local-llm.js +2 -2
  290. package/dist/local-model-endpoint.d.ts +1 -1
  291. package/dist/maintenance/memory-governance.d.ts +1 -1
  292. package/dist/maintenance/memory-governance.js +14 -13
  293. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
  294. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +14 -13
  295. package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
  296. package/dist/maintenance/rebuild-memory-projection.js +15 -14
  297. package/dist/{maintenance-laHYTo0s.d.ts → maintenance-DdP931i9.d.ts} +3 -3
  298. package/dist/mcp-memory-inspector-app.d.ts +11 -11
  299. package/dist/memory-action-policy.d.ts +1 -1
  300. package/dist/memory-cache.d.ts +1 -1
  301. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  302. package/dist/memory-projection-store.d.ts +1 -1
  303. package/dist/memory-provenance.d.ts +1 -1
  304. package/dist/memory-snapshot.d.ts +1 -1
  305. package/dist/memory-worth-outcomes.d.ts +2 -2
  306. package/dist/models-json.d.ts +1 -1
  307. package/dist/namespaces/migrate.d.ts +3 -3
  308. package/dist/namespaces/migrate.js +15 -14
  309. package/dist/namespaces/principal.d.ts +1 -1
  310. package/dist/namespaces/principal.js +2 -2
  311. package/dist/namespaces/search.d.ts +1 -1
  312. package/dist/namespaces/search.js +4 -4
  313. package/dist/namespaces/storage.d.ts +3 -3
  314. package/dist/namespaces/storage.js +14 -13
  315. package/dist/native-knowledge.d.ts +1 -1
  316. package/dist/offline-sync-impression-drain.d.ts +1 -1
  317. package/dist/offline-sync-impression-drain.js +5 -5
  318. package/dist/operator-doctor-corpus.d.ts +1 -1
  319. package/dist/operator-doctor-corpus.js +17 -16
  320. package/dist/operator-doctor-replica.d.ts +1 -1
  321. package/dist/operator-toolkit.d.ts +3 -3
  322. package/dist/operator-toolkit.js +29 -27
  323. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  324. package/dist/orchestration/compression-guideline-coordinator.js +2 -2
  325. package/dist/orchestration/maintenance.d.ts +4 -4
  326. package/dist/orchestration/maintenance.js +22 -21
  327. package/dist/{orchestrator-Cz2QmqsN.d.ts → orchestrator-DxUWX7gs.d.ts} +26 -20
  328. package/dist/orchestrator.d.ts +9 -9
  329. package/dist/orchestrator.js +114 -112
  330. package/dist/patterns-cli.d.ts +1 -1
  331. package/dist/{pipeline-DPcUifCO.d.ts → pipeline-BKUMU1vU.d.ts} +1 -1
  332. package/dist/policy-runtime.d.ts +1 -1
  333. package/dist/proactive-contention.d.ts +1 -1
  334. package/dist/provenance.d.ts +1 -1
  335. package/dist/{public-http-Dq2iqtcI.d.ts → public-http-Dw0bJhcC.d.ts} +1 -1
  336. package/dist/{qmd-dFCHp1r0.d.ts → qmd-DJP-GLFe.d.ts} +1 -1
  337. package/dist/qmd-preflight.d.ts +2 -2
  338. package/dist/qmd-recall-cache.d.ts +1 -1
  339. package/dist/qmd.d.ts +2 -2
  340. package/dist/recall-concurrency-config.d.ts +1 -1
  341. package/dist/recall-context-composition.d.ts +11 -1
  342. package/dist/recall-context-composition.js +4 -1
  343. package/dist/recall-disclosure-escalation.d.ts +1 -1
  344. package/dist/recall-explain-renderer.d.ts +1 -1
  345. package/dist/recall-explain-renderer.js +3 -3
  346. package/dist/recall-memory-map.d.ts +1 -1
  347. package/dist/recall-planner-llm.d.ts +1 -1
  348. package/dist/recall-state.d.ts +1 -1
  349. package/dist/recall-tag-filter.d.ts +1 -1
  350. package/dist/recall-timings.d.ts +1 -1
  351. package/dist/recall-xray-cli.d.ts +1 -1
  352. package/dist/recall-xray-cli.js +4 -4
  353. package/dist/recall-xray-renderer.d.ts +1 -1
  354. package/dist/recall-xray-renderer.js +3 -3
  355. package/dist/recall-xray.d.ts +1 -1
  356. package/dist/recall-xray.js +2 -2
  357. package/dist/reconcile/cursor.d.ts +1 -1
  358. package/dist/reconcile/manifest.d.ts +1 -1
  359. package/dist/reconcile/manifest.js +3 -3
  360. package/dist/reconcile/plan.d.ts +1 -1
  361. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  362. package/dist/replay/normalizers/claude.d.ts +1 -1
  363. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  364. package/dist/replay/normalizers/shared.d.ts +1 -1
  365. package/dist/replay/runner.d.ts +1 -1
  366. package/dist/replay/types.d.ts +1 -1
  367. package/dist/replica-divergence.d.ts +1 -1
  368. package/dist/replica-peers-config.d.ts +1 -1
  369. package/dist/{resolution-MMOD5WC4.js → resolution-DKMBPXHI.js} +3 -3
  370. package/dist/resolution-DKMBPXHI.js.map +1 -0
  371. package/dist/resolve-auth-token.d.ts +1 -1
  372. package/dist/resume-bundles.js +5 -3
  373. package/dist/retrieval-agents.d.ts +2 -2
  374. package/dist/retrieval-tiers.d.ts +1 -1
  375. package/dist/routing/engine.d.ts +1 -1
  376. package/dist/routing/store.d.ts +1 -1
  377. package/dist/salvage-envelope.d.ts +1 -1
  378. package/dist/salvage-envelope.js +2 -2
  379. package/dist/schemas.d.ts +138 -138
  380. package/dist/{scope-profiles-DICK7GtN.d.ts → scope-profiles-CaKcnB-6.d.ts} +1 -1
  381. package/dist/search/embed-helper.d.ts +1 -1
  382. package/dist/search/embed-helper.js +2 -2
  383. package/dist/search/factory.d.ts +1 -1
  384. package/dist/search/factory.js +3 -3
  385. package/dist/search/index.d.ts +1 -1
  386. package/dist/search/index.js +3 -3
  387. package/dist/search/lancedb-backend.d.ts +1 -1
  388. package/dist/search/meilisearch-backend.d.ts +1 -1
  389. package/dist/search/noop-backend.d.ts +1 -1
  390. package/dist/search/orama-backend.d.ts +1 -1
  391. package/dist/search/port.d.ts +1 -1
  392. package/dist/search/remote-backend.d.ts +1 -1
  393. package/dist/{semantic-consolidation-BP7NAX0N.d.ts → semantic-consolidation-P0eMWqh-.d.ts} +1 -1
  394. package/dist/semantic-consolidation.d.ts +2 -2
  395. package/dist/semantic-consolidation.js +15 -14
  396. package/dist/semantic-rule-promotion.js +14 -13
  397. package/dist/semantic-rule-verifier.d.ts +1 -1
  398. package/dist/semantic-rule-verifier.js +14 -13
  399. package/dist/{service-D_ddZmpI.d.ts → service-D5GQLxq_.d.ts} +2 -2
  400. package/dist/session-observer-bands.d.ts +1 -1
  401. package/dist/session-observer-state.d.ts +1 -1
  402. package/dist/shared-context/manager.d.ts +9 -9
  403. package/dist/shared-context/manager.js +2 -2
  404. package/dist/signal.d.ts +1 -1
  405. package/dist/source-agent-qualifier.d.ts +1 -1
  406. package/dist/source-agent-qualifier.js +20 -19
  407. package/dist/{storage-Cdz7jb9t.d.ts → storage-DIyil2ll.d.ts} +5 -2
  408. package/dist/storage.d.ts +2 -2
  409. package/dist/storage.js +13 -12
  410. package/dist/summarizer.d.ts +1 -1
  411. package/dist/summarizer.js +3 -3
  412. package/dist/summary-snapshot.d.ts +1 -1
  413. package/dist/support-passport/index.d.ts +14 -14
  414. package/dist/support-passport/index.js +47 -46
  415. package/dist/temporal-supersession.d.ts +2 -2
  416. package/dist/temporal-timeline-recall.d.ts +3 -1
  417. package/dist/temporal-timeline-recall.js +3 -1
  418. package/dist/temporal-validity.d.ts +1 -1
  419. package/dist/threading.d.ts +1 -1
  420. package/dist/tier-migration.d.ts +2 -2
  421. package/dist/tier-routing.d.ts +1 -1
  422. package/dist/{tier-stats-EXYSKSVN.js → tier-stats-7E6OBUSD.js} +2 -2
  423. package/dist/topics.d.ts +1 -1
  424. package/dist/transcript.d.ts +1 -1
  425. package/dist/transfer/backup.js +2 -2
  426. package/dist/transfer/capsule-export.js +2 -2
  427. package/dist/transfer/capsule-import.js +2 -2
  428. package/dist/transfer/types.d.ts +66 -66
  429. package/dist/trust-score-stage.d.ts +1 -1
  430. package/dist/trust-score.d.ts +1 -1
  431. package/dist/{types-ed-SvS2t.d.ts → types-CbXieHKr.d.ts} +15 -3
  432. package/dist/types.d.ts +1 -1
  433. package/dist/types.js +1 -1
  434. package/dist/utility-runtime.d.ts +1 -1
  435. package/dist/verified-recall.js +14 -13
  436. package/dist/write-envelope.d.ts +5 -2
  437. package/dist/write-envelope.js +1 -1
  438. package/package.json +2 -2
  439. package/src/bitemporal-frontmatter.test.ts +20 -1
  440. package/src/capabilities.test.ts +2 -0
  441. package/src/capabilities.ts +17 -17
  442. package/src/cli.ts +14 -0
  443. package/src/config-security.ts +131 -0
  444. package/src/config.test.ts +61 -0
  445. package/src/config.ts +2 -1
  446. package/src/entity-retrieval.ts +31 -24
  447. package/src/index.ts +4 -6
  448. package/src/orchestration/conversation-index-coordinator.ts +13 -2
  449. package/src/orchestration/extraction-injection-gate.ts +154 -0
  450. package/src/orchestration/extraction-origin-context.ts +90 -0
  451. package/src/orchestration/extraction-persist.ts +66 -64
  452. package/src/orchestration/extraction-run.ts +4 -2
  453. package/src/orchestration/extraction-security.test.ts +271 -0
  454. package/src/orchestration/graph-recall-coordinator.ts +2 -0
  455. package/src/orchestration/namespace-read-fanout.ts +1 -0
  456. package/src/orchestration/qmd-result-resolver.ts +1 -0
  457. package/src/orchestration/recall-internal.ts +17 -11
  458. package/src/orchestration/recall-result-formatter.ts +35 -6
  459. package/src/orchestration/recall-search-pipeline.ts +3 -5
  460. package/src/orchestration/recall-search-prefilter.ts +1 -0
  461. package/src/orchestrator.ts +2 -1
  462. package/src/procedural/procedure-recall.ts +11 -1
  463. package/src/recall-authority-fence.test.ts +180 -0
  464. package/src/recall-context-composition.ts +28 -0
  465. package/src/security/audit-memory-cli.ts +42 -0
  466. package/src/security/audit-memory.test.ts +252 -0
  467. package/src/security/audit-memory.ts +318 -0
  468. package/src/security/injection-screen.test.ts +77 -0
  469. package/src/security/injection-screen.ts +158 -0
  470. package/src/security/origin-authority.test.ts +61 -0
  471. package/src/security/origin-authority.ts +88 -0
  472. package/src/security/types.ts +14 -0
  473. package/src/semantic-rule-promotion.ts +1 -1
  474. package/src/storage.ts +10 -2
  475. package/src/temporal-timeline-recall.test.ts +18 -0
  476. package/src/temporal-timeline-recall.ts +12 -1
  477. package/src/types.ts +4 -4
  478. package/src/write-envelope.test.ts +1 -0
  479. package/src/write-envelope.ts +9 -0
  480. package/dist/chunk-2XRE6FLM.js.map +0 -1
  481. package/dist/chunk-5V64M56S.js.map +0 -1
  482. package/dist/chunk-76JJSXK7.js.map +0 -1
  483. package/dist/chunk-AHVEHR6K.js.map +0 -1
  484. package/dist/chunk-BXIMH7MC.js.map +0 -1
  485. package/dist/chunk-FPKKFDO4.js.map +0 -1
  486. package/dist/chunk-I6WYQSX4.js.map +0 -1
  487. package/dist/chunk-NSVDUN76.js.map +0 -1
  488. package/dist/chunk-OS5DYALF.js.map +0 -1
  489. package/dist/chunk-PG4QBPVG.js.map +0 -1
  490. package/dist/chunk-XXRRHING.js.map +0 -1
  491. /package/dist/{auto-sync-NR3GPCOA.js.map → auto-sync-5HVRCMGZ.js.map} +0 -0
  492. /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-YO5QJ6L3.js.map} +0 -0
  493. /package/dist/{chunk-E2GZSFR5.js.map → chunk-2YREVL4T.js.map} +0 -0
  494. /package/dist/{chunk-KM55SMLG.js.map → chunk-4KM3V6VS.js.map} +0 -0
  495. /package/dist/{chunk-HAEU3ZW7.js.map → chunk-4OW2T32G.js.map} +0 -0
  496. /package/dist/{chunk-PCRHFB75.js.map → chunk-4QFCAKNM.js.map} +0 -0
  497. /package/dist/{chunk-OWC42MDT.js.map → chunk-5ZIWRMZM.js.map} +0 -0
  498. /package/dist/{chunk-GWFSVJ4P.js.map → chunk-6KTXE6A3.js.map} +0 -0
  499. /package/dist/{chunk-P2FA65P2.js.map → chunk-7NSC4IVA.js.map} +0 -0
  500. /package/dist/{chunk-QC6BILS7.js.map → chunk-7PKNOXYB.js.map} +0 -0
  501. /package/dist/{chunk-RZRUV6N2.js.map → chunk-ANMIOQPU.js.map} +0 -0
  502. /package/dist/{chunk-RPSYDM6C.js.map → chunk-BPWZDHFM.js.map} +0 -0
  503. /package/dist/{chunk-JKW663ZN.js.map → chunk-BVRREV3N.js.map} +0 -0
  504. /package/dist/{chunk-2NLLXCJG.js.map → chunk-BXLOS5AJ.js.map} +0 -0
  505. /package/dist/{chunk-ELXP665P.js.map → chunk-CKSEJD7K.js.map} +0 -0
  506. /package/dist/{chunk-4GE3NA5I.js.map → chunk-CME347TM.js.map} +0 -0
  507. /package/dist/{chunk-BGLY7EEM.js.map → chunk-CMRUIKVA.js.map} +0 -0
  508. /package/dist/{chunk-HGJ6NJ4E.js.map → chunk-D4LVHPOA.js.map} +0 -0
  509. /package/dist/{chunk-YK6BDDHP.js.map → chunk-DFEODULB.js.map} +0 -0
  510. /package/dist/{chunk-X7Y7WX73.js.map → chunk-DQEMWVMT.js.map} +0 -0
  511. /package/dist/{chunk-XWZ6KOL6.js.map → chunk-E57E5SCS.js.map} +0 -0
  512. /package/dist/{chunk-M23RF3LJ.js.map → chunk-ER4BLWI6.js.map} +0 -0
  513. /package/dist/{chunk-47J4EDGR.js.map → chunk-F7M36OG2.js.map} +0 -0
  514. /package/dist/{chunk-ZUJW327U.js.map → chunk-FONW766A.js.map} +0 -0
  515. /package/dist/{chunk-FEBHRT2I.js.map → chunk-FR3FNPCJ.js.map} +0 -0
  516. /package/dist/{chunk-G6DFSS6A.js.map → chunk-GUNIXT36.js.map} +0 -0
  517. /package/dist/{chunk-K2UGPTYY.js.map → chunk-H6ZXNH5I.js.map} +0 -0
  518. /package/dist/{chunk-Z463UYI6.js.map → chunk-HC55YCNK.js.map} +0 -0
  519. /package/dist/{chunk-IEQCHXUS.js.map → chunk-HQ2VGCGP.js.map} +0 -0
  520. /package/dist/{chunk-ZXGKQQ3L.js.map → chunk-HXXGZ4KV.js.map} +0 -0
  521. /package/dist/{chunk-YZFPEHXF.js.map → chunk-HYVBJLEK.js.map} +0 -0
  522. /package/dist/{chunk-3GD2HFR6.js.map → chunk-IGWVMA4Y.js.map} +0 -0
  523. /package/dist/{chunk-FONWBCVY.js.map → chunk-IKT6ZVO7.js.map} +0 -0
  524. /package/dist/{chunk-KMWYZTIE.js.map → chunk-ION47U3Z.js.map} +0 -0
  525. /package/dist/{chunk-OCIP6YMD.js.map → chunk-IXGQP4RZ.js.map} +0 -0
  526. /package/dist/{chunk-FYZKFLKY.js.map → chunk-JFPZEWY3.js.map} +0 -0
  527. /package/dist/{chunk-SMNYAMJD.js.map → chunk-JKL53MOY.js.map} +0 -0
  528. /package/dist/{chunk-2T5AWWMF.js.map → chunk-JOA4Q765.js.map} +0 -0
  529. /package/dist/{chunk-MLPTFODV.js.map → chunk-KHQ57QLJ.js.map} +0 -0
  530. /package/dist/{chunk-KRTY3ENI.js.map → chunk-MDVBCPOS.js.map} +0 -0
  531. /package/dist/{chunk-M3UYE6PS.js.map → chunk-N655QIA2.js.map} +0 -0
  532. /package/dist/{chunk-5NB726GV.js.map → chunk-NFQB6RJT.js.map} +0 -0
  533. /package/dist/{chunk-OIOV4RJE.js.map → chunk-NP7FLVZW.js.map} +0 -0
  534. /package/dist/{chunk-CX5SW2EW.js.map → chunk-NRFU5MVH.js.map} +0 -0
  535. /package/dist/{chunk-QDWDVNWU.js.map → chunk-O4TTIMOP.js.map} +0 -0
  536. /package/dist/{chunk-XCO2NXPZ.js.map → chunk-O54B5YNM.js.map} +0 -0
  537. /package/dist/{chunk-UQWUDD7E.js.map → chunk-ONCWJBWV.js.map} +0 -0
  538. /package/dist/{chunk-Z3SQEEB6.js.map → chunk-PD66CVSD.js.map} +0 -0
  539. /package/dist/{chunk-QYN5PXDZ.js.map → chunk-PPUTUOC3.js.map} +0 -0
  540. /package/dist/{chunk-TPWBUKS3.js.map → chunk-PSH3VFZ7.js.map} +0 -0
  541. /package/dist/{chunk-MK5VEWCR.js.map → chunk-QKPDN325.js.map} +0 -0
  542. /package/dist/{chunk-EVWWT3KE.js.map → chunk-QP2IZTUR.js.map} +0 -0
  543. /package/dist/{chunk-4ESX4WX2.js.map → chunk-QSDPVZPD.js.map} +0 -0
  544. /package/dist/{chunk-LHIBA4G7.js.map → chunk-QV7OEHFN.js.map} +0 -0
  545. /package/dist/{chunk-3DVG3GRQ.js.map → chunk-QZR3WT3L.js.map} +0 -0
  546. /package/dist/{chunk-EEAMSNSG.js.map → chunk-R7TZ2HCS.js.map} +0 -0
  547. /package/dist/{chunk-IOYXIY7W.js.map → chunk-R7UHWPYI.js.map} +0 -0
  548. /package/dist/{chunk-L6Z5OAS4.js.map → chunk-RL3EGL7A.js.map} +0 -0
  549. /package/dist/{chunk-7SF5BAWF.js.map → chunk-S6AH7WSF.js.map} +0 -0
  550. /package/dist/{chunk-QGKCM7C4.js.map → chunk-SFCJCMZQ.js.map} +0 -0
  551. /package/dist/{chunk-K44N3CFW.js.map → chunk-T3HC7RJ7.js.map} +0 -0
  552. /package/dist/{chunk-6PCND4O2.js.map → chunk-T6EQPZ6E.js.map} +0 -0
  553. /package/dist/{chunk-G7YUH4WT.js.map → chunk-TAMY4NKO.js.map} +0 -0
  554. /package/dist/{chunk-XDBFSUHX.js.map → chunk-TAPFJ3ET.js.map} +0 -0
  555. /package/dist/{chunk-MANCJV6J.js.map → chunk-TF3LMM5E.js.map} +0 -0
  556. /package/dist/{chunk-2GD6MLXD.js.map → chunk-TFXYQNBH.js.map} +0 -0
  557. /package/dist/{chunk-7DISPKXT.js.map → chunk-THACANBI.js.map} +0 -0
  558. /package/dist/{chunk-6G4D222J.js.map → chunk-TLVLJSWS.js.map} +0 -0
  559. /package/dist/{chunk-6QPI2ITJ.js.map → chunk-TVKWT2CY.js.map} +0 -0
  560. /package/dist/{chunk-H7NAZ3UB.js.map → chunk-U7BMN33M.js.map} +0 -0
  561. /package/dist/{chunk-6LKEUCEM.js.map → chunk-UXREWVW4.js.map} +0 -0
  562. /package/dist/{chunk-SUPEYLH2.js.map → chunk-UYCIS6V5.js.map} +0 -0
  563. /package/dist/{chunk-F2BOUJUS.js.map → chunk-V3IT3XNG.js.map} +0 -0
  564. /package/dist/{chunk-KQAFEZQX.js.map → chunk-VDX2J7OX.js.map} +0 -0
  565. /package/dist/{chunk-NUA4VM46.js.map → chunk-VWP5DEHU.js.map} +0 -0
  566. /package/dist/{chunk-NQMSEB5D.js.map → chunk-X5OIPQME.js.map} +0 -0
  567. /package/dist/{chunk-RBII7637.js.map → chunk-XRPPHIRI.js.map} +0 -0
  568. /package/dist/{chunk-OLT3YTDH.js.map → chunk-YMOPYG3K.js.map} +0 -0
  569. /package/dist/{contradiction-scan-JDTBXRGW.js.map → config-security.js.map} +0 -0
  570. /package/dist/{graph-edge-decay-JI2XDCTY.js.map → contradiction-scan-522AYLQC.js.map} +0 -0
  571. /package/dist/{first-start-migration-CRZCZAJN.js.map → first-start-migration-HZ4VPRFQ.js.map} +0 -0
  572. /package/dist/{forget-EHGGJZLX.js.map → forget-5TWK7CZT.js.map} +0 -0
  573. /package/dist/{resolution-MMOD5WC4.js.map → graph-edge-decay-ZXGBXNPW.js.map} +0 -0
  574. /package/dist/{tier-stats-EXYSKSVN.js.map → tier-stats-7E6OBUSD.js.map} +0 -0
@@ -6,14 +6,14 @@ import {
6
6
  loadSyncState,
7
7
  syncWearableSource,
8
8
  wearableSourceLabel
9
- } from "./chunk-L6Z5OAS4.js";
9
+ } from "./chunk-RL3EGL7A.js";
10
10
  import {
11
11
  CompressionGuidelineCoordinator
12
- } from "./chunk-6LKEUCEM.js";
12
+ } from "./chunk-UXREWVW4.js";
13
13
  import {
14
14
  ActivityStore,
15
15
  MaintenanceScheduler
16
- } from "./chunk-4ESX4WX2.js";
16
+ } from "./chunk-QSDPVZPD.js";
17
17
  import {
18
18
  runPeerProfileReasoner
19
19
  } from "./chunk-I74SUMNI.js";
@@ -23,24 +23,27 @@ import {
23
23
  import {
24
24
  LcmEngine
25
25
  } from "./chunk-Z54EM5YZ.js";
26
- import {
27
- chunkTranscriptEntries
28
- } from "./chunk-TECVW3JP.js";
29
26
  import {
30
27
  cleanupConversationChunks
31
28
  } from "./chunk-C5JF6EZ7.js";
32
29
  import {
33
30
  CompoundingEngine,
34
31
  defaultTierMigrationCycleBudget
35
- } from "./chunk-YZFPEHXF.js";
32
+ } from "./chunk-HYVBJLEK.js";
36
33
  import {
37
34
  SharedContextManager
38
- } from "./chunk-M23RF3LJ.js";
35
+ } from "./chunk-ER4BLWI6.js";
36
+ import {
37
+ chunkTranscriptEntries
38
+ } from "./chunk-TECVW3JP.js";
39
39
  import {
40
40
  applyUtilityPromotionRuntimePolicy,
41
41
  applyUtilityRankingRuntimeDelta,
42
42
  loadUtilityRuntimeValues
43
43
  } from "./chunk-SEF4IOFE.js";
44
+ import {
45
+ CODEX_THREAD_KEY_PREFIX
46
+ } from "./chunk-4EX5WZ4M.js";
44
47
  import {
45
48
  TierMigrationExecutor
46
49
  } from "./chunk-YRFAYOFQ.js";
@@ -53,19 +56,16 @@ import {
53
56
  import {
54
57
  extractTopics
55
58
  } from "./chunk-UHGBNIOS.js";
56
- import {
57
- buildTemporalTimelineRecallSection
58
- } from "./chunk-I6WYQSX4.js";
59
- import {
60
- CODEX_THREAD_KEY_PREFIX
61
- } from "./chunk-4EX5WZ4M.js";
62
- import {
63
- HourlySummarizer
64
- } from "./chunk-2T5AWWMF.js";
65
59
  import {
66
60
  buildTargetedFactRecallSection,
67
61
  shouldRecallTargetedFactEvidence
68
62
  } from "./chunk-T67LUYCR.js";
63
+ import {
64
+ buildTemporalTimelineRecallSection
65
+ } from "./chunk-2NKY7OC6.js";
66
+ import {
67
+ HourlySummarizer
68
+ } from "./chunk-JOA4Q765.js";
69
69
  import {
70
70
  SessionObserverState
71
71
  } from "./chunk-QFN4U7AG.js";
@@ -131,13 +131,13 @@ import {
131
131
  import {
132
132
  installPrioritizedEmbedding
133
133
  } from "./chunk-ROI7BK7H.js";
134
+ import {
135
+ NegativeExampleStore
136
+ } from "./chunk-23L3IXFD.js";
134
137
  import {
135
138
  applyMemoryWorthFilter,
136
139
  buildMemoryWorthCounterMap
137
140
  } from "./chunk-3GPTTA4J.js";
138
- import {
139
- NegativeExampleStore
140
- } from "./chunk-23L3IXFD.js";
141
141
  import {
142
142
  evaluateMemoryActionPolicy
143
143
  } from "./chunk-H63EDPFJ.js";
@@ -159,7 +159,7 @@ import {
159
159
  } from "./chunk-XXSOVESA.js";
160
160
  import {
161
161
  ExtractionEngine
162
- } from "./chunk-QC6BILS7.js";
162
+ } from "./chunk-7PKNOXYB.js";
163
163
  import {
164
164
  parseMemoryActionEligibilityContext
165
165
  } from "./chunk-WFLBP5GC.js";
@@ -170,6 +170,9 @@ import {
170
170
  buildFocusedListRecallSection,
171
171
  shouldRecallFocusedListEvidence
172
172
  } from "./chunk-OH7QLI6W.js";
173
+ import {
174
+ recordJudgeTrainingPair
175
+ } from "./chunk-PWFCHOB3.js";
173
176
  import {
174
177
  createDeferCountMap,
175
178
  createVerdictCache,
@@ -178,8 +181,9 @@ import {
178
181
  validateProcedureExtraction
179
182
  } from "./chunk-TWTUGCTY.js";
180
183
  import {
181
- recordJudgeTrainingPair
182
- } from "./chunk-PWFCHOB3.js";
184
+ pickFactEventTimeAnchor,
185
+ resolveFactEventTime
186
+ } from "./chunk-IAIPNEHD.js";
183
187
  import {
184
188
  buildExplicitCueRecallSection
185
189
  } from "./chunk-TVIVY7KU.js";
@@ -187,33 +191,30 @@ import {
187
191
  buildEntityRecallSection,
188
192
  entityRecentTranscriptLookbackHours,
189
193
  readRecentEntityTranscriptEntries
190
- } from "./chunk-5V64M56S.js";
194
+ } from "./chunk-6P2NUVM5.js";
191
195
  import {
192
196
  buildEventOrderRecallSection,
193
197
  shouldRecallEventOrderEvidence
194
198
  } from "./chunk-DEOYTFA6.js";
195
- import {
196
- pickFactEventTimeAnchor,
197
- resolveFactEventTime
198
- } from "./chunk-IAIPNEHD.js";
199
199
  import {
200
200
  formatDaySummaryMemories
201
- } from "./chunk-RPSYDM6C.js";
201
+ } from "./chunk-BPWZDHFM.js";
202
202
  import {
203
203
  tryDirectAnswer
204
204
  } from "./chunk-CSOYVTRX.js";
205
205
  import {
206
206
  EmbeddingFallback
207
- } from "./chunk-YK6BDDHP.js";
207
+ } from "./chunk-DFEODULB.js";
208
208
  import {
209
209
  refreshConvergedNamespaces
210
- } from "./chunk-NUA4VM46.js";
210
+ } from "./chunk-VWP5DEHU.js";
211
211
  import {
212
212
  builtInConnectorPackageSpecifier,
213
213
  ensureBuiltInWearableConnectors,
214
214
  getWearableConnector,
215
- listWearableConnectors
216
- } from "./chunk-OS5DYALF.js";
215
+ listWearableConnectors,
216
+ screenCandidateFact
217
+ } from "./chunk-4THNU7OF.js";
217
218
  import {
218
219
  RoutingRulesStore
219
220
  } from "./chunk-XL24QQ63.js";
@@ -223,14 +224,14 @@ import {
223
224
  import {
224
225
  compareVerifiedEpisodeResults,
225
226
  searchVerifiedEpisodes
226
- } from "./chunk-ZUJW327U.js";
227
+ } from "./chunk-FONW766A.js";
227
228
  import {
228
229
  ThreadingManager
229
230
  } from "./chunk-OJP3N7UK.js";
230
231
  import {
231
232
  compareVerifiedSemanticRuleResults,
232
233
  searchVerifiedSemanticRules
233
- } from "./chunk-G7YUH4WT.js";
234
+ } from "./chunk-TAMY4NKO.js";
234
235
  import {
235
236
  searchWorkProductLedgerEntries
236
237
  } from "./chunk-WT6UL3UA.js";
@@ -243,14 +244,14 @@ import {
243
244
  import {
244
245
  runNamespaceMaintenanceFanout,
245
246
  summarizeNamespaceMaintenanceHealth
246
- } from "./chunk-2GD6MLXD.js";
247
+ } from "./chunk-TFXYQNBH.js";
247
248
  import {
248
249
  NamespaceCatalog,
249
250
  planNamespaceMaintenance
250
- } from "./chunk-6PCND4O2.js";
251
+ } from "./chunk-T6EQPZ6E.js";
251
252
  import {
252
253
  searchHarmonicRetrieval
253
- } from "./chunk-PCRHFB75.js";
254
+ } from "./chunk-4QFCAKNM.js";
254
255
  import {
255
256
  isAboveImportanceThreshold,
256
257
  scoreImportance
@@ -275,7 +276,7 @@ import {
275
276
  } from "./chunk-NOB2T2FC.js";
276
277
  import {
277
278
  SmartBuffer
278
- } from "./chunk-M3UYE6PS.js";
279
+ } from "./chunk-N655QIA2.js";
279
280
  import {
280
281
  buildConsolidationPrompt,
281
282
  buildExtensionsBlockForConsolidation,
@@ -285,7 +286,7 @@ import {
285
286
  materializeAfterSemanticConsolidation,
286
287
  parseConsolidationResponse,
287
288
  parseOperatorAwareConsolidationResponse
288
- } from "./chunk-UQWUDD7E.js";
289
+ } from "./chunk-ONCWJBWV.js";
289
290
  import {
290
291
  BootstrapEngine
291
292
  } from "./chunk-MYVPLJOO.js";
@@ -303,7 +304,7 @@ import {
303
304
  } from "./chunk-UQ7RN5HK.js";
304
305
  import {
305
306
  detectMeetings
306
- } from "./chunk-PG4QBPVG.js";
307
+ } from "./chunk-3VFVQDZO.js";
307
308
  import {
308
309
  compileCorrectionRule,
309
310
  correctionsFilePath,
@@ -328,7 +329,7 @@ import {
328
329
  } from "./chunk-KD3QD3A5.js";
329
330
  import {
330
331
  MeetingsInputError
331
- } from "./chunk-IEQCHXUS.js";
332
+ } from "./chunk-HQ2VGCGP.js";
332
333
  import {
333
334
  WearablesInputError,
334
335
  describeErrorForOperator
@@ -349,10 +350,10 @@ import {
349
350
  filterRecallCandidates,
350
351
  isGenericRecallExcludedPath,
351
352
  isTopLevelArchivePath
352
- } from "./chunk-MTF5EFFF.js";
353
+ } from "./chunk-FK7T55BA.js";
353
354
  import {
354
355
  importCapsule
355
- } from "./chunk-QYN5PXDZ.js";
356
+ } from "./chunk-PPUTUOC3.js";
356
357
  import {
357
358
  isCodingGraphInstalled
358
359
  } from "./chunk-VQ7B2Q6M.js";
@@ -369,14 +370,7 @@ import {
369
370
  } from "./chunk-KQS72GCR.js";
370
371
  import {
371
372
  buildXraySnapshot
372
- } from "./chunk-MK5VEWCR.js";
373
- import {
374
- boundRecallContextComposition,
375
- composeRecallContext,
376
- contextBudgetForFooter,
377
- formatCuriosityFooter,
378
- selectCuriosityQuestion
379
- } from "./chunk-AHVEHR6K.js";
373
+ } from "./chunk-QKPDN325.js";
380
374
  import {
381
375
  objectiveStateStoreOverrideForNamespace,
382
376
  searchObjectiveStateSnapshots
@@ -386,7 +380,7 @@ import {
386
380
  } from "./chunk-NLE6TSLG.js";
387
381
  import {
388
382
  LocalLlmClient
389
- } from "./chunk-OWC42MDT.js";
383
+ } from "./chunk-5ZIWRMZM.js";
390
384
  import {
391
385
  buildProcedurePersistBody
392
386
  } from "./chunk-QDW3E4RD.js";
@@ -396,13 +390,21 @@ import {
396
390
  } from "./chunk-LTHVM4XN.js";
397
391
  import {
398
392
  shouldSkipImplicitExtraction
399
- } from "./chunk-SMNYAMJD.js";
393
+ } from "./chunk-JKL53MOY.js";
394
+ import {
395
+ boundRecallContextComposition,
396
+ composeRecallContext,
397
+ contextBudgetForFooter,
398
+ formatCuriosityFooter,
399
+ renderAuthorityBoundContent,
400
+ selectCuriosityQuestion
401
+ } from "./chunk-7ZNJN5WZ.js";
400
402
  import {
401
403
  NamespaceStorageRouter
402
- } from "./chunk-FYZKFLKY.js";
404
+ } from "./chunk-JFPZEWY3.js";
403
405
  import {
404
406
  GraphIndex
405
- } from "./chunk-OLT3YTDH.js";
407
+ } from "./chunk-YMOPYG3K.js";
406
408
  import {
407
409
  BulkImportBatchPartialFailureError,
408
410
  COMPACTION_SIGNAL_MAX_AGE_MS,
@@ -413,6 +415,7 @@ import {
413
415
  applyQueryAwareCandidateFilter,
414
416
  buildMemoryPathById,
415
417
  buildQmdIntentHint,
418
+ classifyExtractionOrigin,
416
419
  computeArtifactCandidateFetchLimit,
417
420
  computeArtifactRecallLimit,
418
421
  computeQmdHybridFetchLimit,
@@ -442,7 +445,7 @@ import {
442
445
  throwIfRecallAborted,
443
446
  tokenizeRecallQuery,
444
447
  utcDateKeysForLocalDay
445
- } from "./chunk-BXIMH7MC.js";
448
+ } from "./chunk-UTDMY476.js";
446
449
  import {
447
450
  inferIntentFromText,
448
451
  intentCompatibilityScore,
@@ -451,10 +454,10 @@ import {
451
454
  } from "./chunk-PD6O7AXF.js";
452
455
  import {
453
456
  searchCausalTrajectories
454
- } from "./chunk-ZXGKQQ3L.js";
457
+ } from "./chunk-HXXGZ4KV.js";
455
458
  import {
456
459
  buildChainFollowupGenerator
457
- } from "./chunk-MANCJV6J.js";
460
+ } from "./chunk-TF3LMM5E.js";
458
461
  import {
459
462
  QmdResultResolver,
460
463
  StorageManager,
@@ -473,7 +476,7 @@ import {
473
476
  reconstructFusionInputs,
474
477
  selfDeps,
475
478
  serializeFusionDay
476
- } from "./chunk-XXRRHING.js";
479
+ } from "./chunk-BWJMBJCY.js";
477
480
  import {
478
481
  bodyIsEscaped,
479
482
  decodeTranscriptBody,
@@ -486,16 +489,16 @@ import {
486
489
  } from "./chunk-UHVXE24Y.js";
487
490
  import {
488
491
  buildRetiredFactTombstoneInputs
489
- } from "./chunk-MLPTFODV.js";
492
+ } from "./chunk-KHQ57QLJ.js";
490
493
  import {
491
494
  NamespaceSearchRouter,
492
495
  namespaceCollectionName
493
- } from "./chunk-KMWYZTIE.js";
496
+ } from "./chunk-ION47U3Z.js";
494
497
  import {
495
498
  createConversationIndexRuntime,
496
499
  createSearchBackend,
497
500
  isSearchBackendEnabled
498
- } from "./chunk-47J4EDGR.js";
501
+ } from "./chunk-F7M36OG2.js";
499
502
  import {
500
503
  NoopSearchBackend
501
504
  } from "./chunk-CYEPCZN5.js";
@@ -509,7 +512,7 @@ import {
509
512
  } from "./chunk-S2V7RUCL.js";
510
513
  import {
511
514
  confidenceTier
512
- } from "./chunk-76JJSXK7.js";
515
+ } from "./chunk-5QHDXMXP.js";
513
516
  import {
514
517
  lintWorkspaceFiles,
515
518
  rotateMarkdownFileToArchive
@@ -523,7 +526,7 @@ import {
523
526
  TAG_LIMITS,
524
527
  composeMemoryEnvelope,
525
528
  isMemoryCategory
526
- } from "./chunk-NSVDUN76.js";
529
+ } from "./chunk-LCU5R6TQ.js";
527
530
  import {
528
531
  normalizeTags
529
532
  } from "./chunk-BT7NVCML.js";
@@ -597,7 +600,7 @@ import {
597
600
  getConfiguredNamespaces,
598
601
  resolveNamespaceFromStorageDir,
599
602
  resolveScopePlan
600
- } from "./chunk-6QPI2ITJ.js";
603
+ } from "./chunk-TVKWT2CY.js";
601
604
  import {
602
605
  attachCitation,
603
606
  hasCitationForTemplate,
@@ -613,7 +616,7 @@ import {
613
616
  } from "./chunk-7RJUVTVF.js";
614
617
  import {
615
618
  ContentHashIndex
616
- } from "./chunk-CX5SW2EW.js";
619
+ } from "./chunk-NRFU5MVH.js";
617
620
  import {
618
621
  excludeSupportPassportPrivateMemories,
619
622
  isSupportPassportPrivateMemory
@@ -644,7 +647,7 @@ import {
644
647
  canReadNamespace,
645
648
  defaultNamespaceForPrincipal,
646
649
  resolvePrincipal
647
- } from "./chunk-3GD2HFR6.js";
650
+ } from "./chunk-IGWVMA4Y.js";
648
651
  import {
649
652
  isSafeRouteNamespace,
650
653
  selectRouteRule
@@ -670,7 +673,7 @@ import {
670
673
  resolveRecallEnhancementCapabilities,
671
674
  resolveSecurityCapabilities,
672
675
  resolveUtilityLearningCapabilities
673
- } from "./chunk-2XRE6FLM.js";
676
+ } from "./chunk-JUOZ62Y7.js";
674
677
  import {
675
678
  resolveCodingNamespaceOverlay
676
679
  } from "./chunk-J2WC5LF4.js";
@@ -1806,12 +1809,14 @@ import { readdir } from "fs/promises";
1806
1809
  import path3 from "path";
1807
1810
  var ConversationIndexCoordinator = class {
1808
1811
  config;
1812
+ originAuthorityEnabled;
1809
1813
  getTranscript;
1810
1814
  getBackend;
1811
1815
  indexDir;
1812
1816
  lastUpdateAtMs = /* @__PURE__ */ new Map();
1813
1817
  constructor(options) {
1814
1818
  this.config = options.config;
1819
+ this.originAuthorityEnabled = resolveSecurityCapabilities(this.config).originAuthority;
1815
1820
  this.getTranscript = options.getTranscript;
1816
1821
  this.getBackend = options.getBackend;
1817
1822
  this.indexDir = options.indexDir;
@@ -1831,10 +1836,18 @@ var ConversationIndexCoordinator = class {
1831
1836
  let used = 0;
1832
1837
  for (const r of results) {
1833
1838
  if (!r?.snippet) continue;
1839
+ const body = renderAuthorityBoundContent(
1840
+ r.snippet.trim(),
1841
+ void 0,
1842
+ {
1843
+ enabled: this.originAuthorityEnabled,
1844
+ untrustedOrigins: this.config.untrustedOrigins
1845
+ }
1846
+ );
1834
1847
  const chunk = `### ${r.path}
1835
1848
  Score: ${r.score.toFixed(3)}
1836
1849
 
1837
- ${r.snippet.trim()}
1850
+ ${body}
1838
1851
  `;
1839
1852
  if (used + chunk.length > maxChars) break;
1840
1853
  lines.push(chunk);
@@ -4425,6 +4438,77 @@ ${texts.map((t, i) => `[${i + 1}] ${t}`).join("\n\n")}`;
4425
4438
  }
4426
4439
  };
4427
4440
 
4441
+ // src/orchestration/extraction-injection-gate.ts
4442
+ function serializeInjectionScreenCandidate(candidate) {
4443
+ const body = candidate.category === "procedure" ? buildProcedurePersistBody(candidate.content, candidate.procedureSteps) : candidate.content;
4444
+ const attrs = Object.fromEntries(
4445
+ Object.entries(candidate.structuredAttributes ?? {}).flatMap(([key, value]) => {
4446
+ if (typeof value === "string") return [[key, value]];
4447
+ if (typeof value === "number" || typeof value === "boolean") return [[key, String(value)]];
4448
+ return [];
4449
+ })
4450
+ );
4451
+ return Object.keys(attrs).length > 0 ? `${body}
4452
+ [Attributes: ${normalizeAttributePairs(attrs)}]` : body;
4453
+ }
4454
+ function evaluateInjectionScreen(candidate, enabled) {
4455
+ if (!enabled) return { tags: [] };
4456
+ const content = typeof candidate === "string" ? candidate : serializeInjectionScreenCandidate(candidate);
4457
+ const result = screenCandidateFact(content);
4458
+ return {
4459
+ status: result.quarantine === true ? "pending_review" : void 0,
4460
+ tags: result.quarantine === true ? result.findings.map((finding) => `injection-screen:${finding.rule}`) : []
4461
+ };
4462
+ }
4463
+ function withholdScreenedStrings(values, enabled) {
4464
+ const kept = [];
4465
+ const withheldRules = [];
4466
+ for (const value of values) {
4467
+ if (typeof value !== "string") continue;
4468
+ if (!enabled) {
4469
+ kept.push(value);
4470
+ continue;
4471
+ }
4472
+ const screened = screenCandidateFact(value);
4473
+ if (screened.quarantine) {
4474
+ withheldRules.push(...screened.findings.map((finding) => `injection-screen:${finding.rule}`));
4475
+ } else {
4476
+ kept.push(value);
4477
+ }
4478
+ }
4479
+ return { kept, withheldRules };
4480
+ }
4481
+ function screenEntityForIndex(entity, enabled) {
4482
+ const record = entity;
4483
+ const name = record?.name;
4484
+ const type = record?.type;
4485
+ if (typeof name !== "string" || !name.trim() || typeof type !== "string" || !type.trim()) return null;
4486
+ const nameScreen = withholdScreenedStrings([name], enabled);
4487
+ const factScreen = withholdScreenedStrings(Array.isArray(record?.facts) ? record.facts : [], enabled);
4488
+ const rawSections = Array.isArray(record?.structuredSections) ? record.structuredSections : void 0;
4489
+ const sectionScreens = enabled && rawSections ? rawSections.map((section) => ({ section, screen: withholdScreenedStrings(section?.facts ?? [], true) })) : void 0;
4490
+ return {
4491
+ name,
4492
+ type,
4493
+ source: typeof record?.source === "string" ? record.source : "extraction",
4494
+ facts: factScreen.kept,
4495
+ ...sectionScreens ? { structuredSections: sectionScreens.map(({ section, screen }) => ({ ...section, facts: screen.kept })) } : rawSections ? { structuredSections: rawSections } : {},
4496
+ withheldRules: [
4497
+ ...nameScreen.withheldRules,
4498
+ ...factScreen.withheldRules,
4499
+ ...(sectionScreens ?? []).flatMap(({ screen }) => screen.withheldRules)
4500
+ ],
4501
+ withheld: nameScreen.withheldRules.length > 0
4502
+ };
4503
+ }
4504
+ function screenPersistStrings(values, enabled) {
4505
+ const screen = withholdScreenedStrings(values, enabled);
4506
+ return {
4507
+ kept: screen.kept,
4508
+ ...screen.withheldRules.length > 0 ? { warning: `injection screen withheld ${values.length - screen.kept.length} candidate(s) [${screen.withheldRules.join(", ")}]` } : {}
4509
+ };
4510
+ }
4511
+
4428
4512
  // src/orchestration/extraction-envelope.ts
4429
4513
  function composeSalvagedExtractionEnvelope(input, ctx) {
4430
4514
  const envelope = composeMemoryEnvelope(input, ctx, { salvage: true });
@@ -4844,6 +4928,7 @@ var ExtractionPersistCoordinator = class {
4844
4928
  );
4845
4929
  const namespacesEnabled = resolveNamespaceCapabilities(this.deps.config).namespaces;
4846
4930
  const sourceConnector = sourceContext?.sourceConnector;
4931
+ const origin = classifyExtractionOrigin(sourceContext);
4847
4932
  const promoteMemoryToProfileTargets = async (options) => {
4848
4933
  if (!scopeProfileWritePlan || !profileAutoPromotionAllows(scopeProfileWritePlan, options.category, options.confidence))
4849
4934
  return;
@@ -4864,6 +4949,7 @@ var ExtractionPersistCoordinator = class {
4864
4949
  {
4865
4950
  content: citedContent,
4866
4951
  category: options.category,
4952
+ origin,
4867
4953
  confidence: options.confidence,
4868
4954
  tags: withReservedMarkerTag(options.tags, `${target.target}-promotion`),
4869
4955
  entityRef: options.entityRef,
@@ -5005,6 +5091,7 @@ var ExtractionPersistCoordinator = class {
5005
5091
  {
5006
5092
  content: citedContent,
5007
5093
  category: options.category,
5094
+ origin,
5008
5095
  confidence: options.confidence,
5009
5096
  tags: withReservedMarkerTag(options.tags, "shared-promotion"),
5010
5097
  entityRef: options.entityRef,
@@ -5579,6 +5666,7 @@ var ExtractionPersistCoordinator = class {
5579
5666
  entityRef: fact.entityRef,
5580
5667
  validAt: biTemporal?.validFrom ?? sourceContext?.validAt
5581
5668
  };
5669
+ const { status: injectionScreenStatus, tags: injectionScreenTags } = evaluateInjectionScreen({ content: fact.content, category: writeCategory, structuredAttributes: fact.structuredAttributes, procedureSteps: fact.procedureSteps }, resolveSecurityCapabilities(this.deps.config).injectionScreen);
5582
5670
  try {
5583
5671
  const redactionRules = await redactionRulesFor(sourceStorageDir, targetStorage.dir);
5584
5672
  const redactionCandidate = fact.content + (fact.structuredAttributes ? " " + JSON.stringify(fact.structuredAttributes) : "") + (fact.procedureSteps ? " " + fact.procedureSteps.map((s) => `${s.intent} ${s.expectedOutcome ?? ""} ${s.toolCall ? `${s.toolCall.kind} ${s.toolCall.signature}` : ""}`.trim()).join(" ") : "");
@@ -5635,7 +5723,7 @@ var ExtractionPersistCoordinator = class {
5635
5723
  exactDuplicate = false;
5636
5724
  }
5637
5725
  }
5638
- if (exactDuplicate) {
5726
+ if (exactDuplicate && injectionScreenStatus !== "pending_review") {
5639
5727
  if (biTemporal && writeCategory === "fact" && (biTemporal.validUntil || biTemporal.validFrom)) {
5640
5728
  const fr = faithfulnessResultsByFactIndex?.get(factLoopIndex);
5641
5729
  const faithfulnessWouldPending = faithfulnessMode === "enforce" && fr?.ok === true && (fr.verdict === "unsupported" || fr.verdict === "contradicted");
@@ -5679,11 +5767,11 @@ var ExtractionPersistCoordinator = class {
5679
5767
  dedupedCount++;
5680
5768
  continue;
5681
5769
  }
5682
- if (writeCategory === "procedure" && this.deps.config.procedural?.enabled !== true) {
5770
+ if (writeCategory === "procedure" && this.deps.config.procedural?.enabled !== true && injectionScreenStatus !== "pending_review") {
5683
5771
  log.debug("persistExtraction: skip procedure memory (procedural.enabled is false)");
5684
5772
  continue;
5685
5773
  }
5686
- if (!isAboveImportanceThreshold(
5774
+ if (injectionScreenStatus !== "pending_review" && !isAboveImportanceThreshold(
5687
5775
  importance.level,
5688
5776
  this.deps.config.extractionMinImportanceLevel
5689
5777
  )) {
@@ -5695,7 +5783,7 @@ var ExtractionPersistCoordinator = class {
5695
5783
  );
5696
5784
  continue;
5697
5785
  }
5698
- if (judgeVerdictsByFactIndex) {
5786
+ if (judgeVerdictsByFactIndex && injectionScreenStatus !== "pending_review") {
5699
5787
  const verdict = judgeVerdictsByFactIndex.get(factLoopIndex);
5700
5788
  if (verdict && !verdict.durable) {
5701
5789
  const verdictKind = getVerdictKind(verdict);
@@ -5718,7 +5806,7 @@ var ExtractionPersistCoordinator = class {
5718
5806
  }
5719
5807
  }
5720
5808
  }
5721
- if (writeCategory === "procedure") {
5809
+ if (writeCategory === "procedure" && injectionScreenStatus !== "pending_review") {
5722
5810
  const procGate = validateProcedureExtraction({
5723
5811
  content: fact.content,
5724
5812
  procedureSteps: fact.procedureSteps
@@ -5738,9 +5826,9 @@ var ExtractionPersistCoordinator = class {
5738
5826
  this.deps.getFaithfulnessCounters()
5739
5827
  );
5740
5828
  const requireSpansPendingStatus = this.deps.config.provenance?.requireSpans === true && fact.requireSpansPending === true ? "pending_review" : void 0;
5741
- const faithfulnessEnforceStatus = faithfulnessGateStatus ?? requireSpansPendingStatus;
5829
+ const faithfulnessEnforceStatus = faithfulnessGateStatus ?? requireSpansPendingStatus ?? injectionScreenStatus;
5742
5830
  let pendingSemanticSkip = null;
5743
- if (resolvePipelineProcessingCapabilities(this.deps.config).semanticDedup) {
5831
+ if (resolvePipelineProcessingCapabilities(this.deps.config).semanticDedup && injectionScreenStatus !== "pending_review") {
5744
5832
  let semanticDecision;
5745
5833
  if (batchBackendUnavailable) {
5746
5834
  semanticDecision = { action: "keep", reason: "backend_unavailable" };
@@ -5856,8 +5944,9 @@ var ExtractionPersistCoordinator = class {
5856
5944
  {
5857
5945
  content: citedChunkedContent,
5858
5946
  category: writeCategory,
5947
+ origin,
5859
5948
  confidence: fact.confidence,
5860
- tags: withReservedMarkerTag(fact.tags, "chunked"),
5949
+ tags: withReservedMarkerTag([...fact.tags, ...injectionScreenTags], "chunked"),
5861
5950
  entityRef: fact.entityRef,
5862
5951
  structuredAttributes: fact.structuredAttributes,
5863
5952
  validAt: biTemporal ? biTemporal.validFrom : sourceContext?.validAt,
@@ -5948,6 +6037,7 @@ var ExtractionPersistCoordinator = class {
5948
6037
  ...fact.sources && fact.sources.length > 0 ? { sources: fact.sources } : {},
5949
6038
  ...fact.provenance ? { provenance: fact.provenance } : {},
5950
6039
  ...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
6040
+ ...origin ? { origin } : {},
5951
6041
  ...factToolScoped ? { toolScoped: true } : {}
5952
6042
  }
5953
6043
  );
@@ -6050,6 +6140,7 @@ var ExtractionPersistCoordinator = class {
6050
6140
  intentActionType: inferredIntent?.actionType,
6051
6141
  intentEntityTypes: inferredIntent?.entityTypes,
6052
6142
  ...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
6143
+ ...origin ? { origin } : {},
6053
6144
  ...factToolScoped ? { toolScoped: true } : {}
6054
6145
  });
6055
6146
  }
@@ -6123,8 +6214,9 @@ var ExtractionPersistCoordinator = class {
6123
6214
  {
6124
6215
  content: citedFactContent,
6125
6216
  category: writeCategory,
6217
+ origin,
6126
6218
  confidence: fact.confidence,
6127
- tags: fact.tags,
6219
+ tags: [...fact.tags, ...injectionScreenTags],
6128
6220
  entityRef: typeof fact.entityRef === "string" ? fact.entityRef : void 0,
6129
6221
  structuredAttributes: fact.structuredAttributes,
6130
6222
  validAt: biTemporal ? biTemporal.validFrom : sourceContext?.validAt,
@@ -6293,6 +6385,7 @@ var ExtractionPersistCoordinator = class {
6293
6385
  intentActionType: inferredIntent?.actionType,
6294
6386
  intentEntityTypes: inferredIntent?.entityTypes,
6295
6387
  ...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
6388
+ ...origin ? { origin } : {},
6296
6389
  ...factToolScoped ? { toolScoped: true } : {}
6297
6390
  });
6298
6391
  }
@@ -6324,20 +6417,19 @@ var ExtractionPersistCoordinator = class {
6324
6417
  durableNonFactTouchRecorded = true;
6325
6418
  touchBaseNonFactNamespace();
6326
6419
  };
6420
+ const entityScreenOn = resolveSecurityCapabilities(this.deps.config).injectionScreen;
6327
6421
  for (const entity of entities) {
6328
6422
  try {
6329
- const name = entity?.name;
6330
- const type = entity?.type;
6331
- if (typeof name !== "string" || !name.trim() || typeof type !== "string" || !type.trim()) {
6332
- continue;
6333
- }
6334
- const safeFacts = Array.isArray(entity?.facts) ? entity.facts.filter((f) => typeof f === "string") : [];
6335
- const id = await storage.writeEntity(name, type, safeFacts, {
6336
- source: typeof entity?.source === "string" ? entity.source : "extraction",
6423
+ const screened = screenEntityForIndex(entity, entityScreenOn);
6424
+ if (!screened) continue;
6425
+ if (screened.withheldRules.length > 0) log.warn(`persistExtraction: injection screen withheld ${screened.withheldRules.length} entity field(s) for "${screened.name}" [${screened.withheldRules.join(", ")}]`);
6426
+ if (screened.withheld) continue;
6427
+ const id = await storage.writeEntity(screened.name, screened.type, screened.facts, {
6428
+ source: screened.source,
6337
6429
  timestamp: sourceContext?.validAt,
6338
6430
  sessionKey: sourceContext?.sessionKey,
6339
6431
  principal: sourceContext?.principal,
6340
- structuredSections: Array.isArray(entity?.structuredSections) ? entity.structuredSections : void 0
6432
+ structuredSections: screened.structuredSections
6341
6433
  });
6342
6434
  if (id) {
6343
6435
  trackPersistedId(storage, id);
@@ -6350,16 +6442,22 @@ var ExtractionPersistCoordinator = class {
6350
6442
  if (resolveRecallEnhancementCapabilities(this.deps.config).entityRelationships && Array.isArray(result.relationships)) {
6351
6443
  for (const rel of result.relationships.slice(0, 5)) {
6352
6444
  if (!rel.source || !rel.target || !rel.label) continue;
6445
+ const relScreen = screenPersistStrings([
6446
+ `${rel.source}
6447
+ ${rel.label}
6448
+ ${rel.target}`,
6449
+ `${rel.target}
6450
+ ${rel.label} (reverse)
6451
+ ${rel.source}`
6452
+ ], entityScreenOn);
6453
+ if (relScreen.warning) {
6454
+ log.warn(`persistExtraction(relationship): ${relScreen.warning}`);
6455
+ continue;
6456
+ }
6353
6457
  try {
6354
- await storage.addEntityRelationship(rel.source, {
6355
- target: rel.target,
6356
- label: rel.label
6357
- });
6458
+ await storage.addEntityRelationship(rel.source, { target: rel.target, label: rel.label });
6358
6459
  recordDurableNonFactWrite();
6359
- await storage.addEntityRelationship(rel.target, {
6360
- target: rel.source,
6361
- label: `${rel.label} (reverse)`
6362
- });
6460
+ await storage.addEntityRelationship(rel.target, { target: rel.source, label: `${rel.label} (reverse)` });
6363
6461
  recordDurableNonFactWrite();
6364
6462
  } catch (err) {
6365
6463
  log.debug(`relationship persist failed: ${err}`);
@@ -6384,11 +6482,19 @@ var ExtractionPersistCoordinator = class {
6384
6482
  }
6385
6483
  }
6386
6484
  }
6387
- if (profileUpdates.length > 0) {
6388
- await storage.appendToProfile(profileUpdates);
6485
+ const profileScreen = screenPersistStrings(profileUpdates, entityScreenOn);
6486
+ if (profileScreen.warning) log.warn(`persistExtraction(profile): ${profileScreen.warning}`);
6487
+ if (profileScreen.kept.length > 0) {
6488
+ await storage.appendToProfile(profileScreen.kept);
6389
6489
  recordDurableNonFactWrite();
6390
6490
  }
6391
6491
  for (const q of questions) {
6492
+ const qScreen = screenPersistStrings([`${q.question}
6493
+ ${q.context ?? ""}`], entityScreenOn);
6494
+ if (qScreen.warning) {
6495
+ log.warn(`persistExtraction(question): ${qScreen.warning}`);
6496
+ continue;
6497
+ }
6392
6498
  const id = await storage.writeQuestion(q.question, q.context, q.priority);
6393
6499
  if (id) {
6394
6500
  trackPersistedId(storage, id);
@@ -6396,11 +6502,15 @@ var ExtractionPersistCoordinator = class {
6396
6502
  }
6397
6503
  }
6398
6504
  if (resolveRecallEnhancementCapabilities(this.deps.config).identity && result.identityReflection) {
6399
- try {
6400
- await storage.appendIdentityReflection(result.identityReflection);
6401
- recordDurableNonFactWrite();
6402
- } catch (err) {
6403
- log.debug(`identity reflection write failed: ${err}`);
6505
+ const idScreen = screenPersistStrings([result.identityReflection], entityScreenOn);
6506
+ if (idScreen.warning) log.warn(`persistExtraction(identity): ${idScreen.warning}`);
6507
+ else {
6508
+ try {
6509
+ await storage.appendIdentityReflection(result.identityReflection);
6510
+ recordDurableNonFactWrite();
6511
+ } catch (err) {
6512
+ log.debug(`identity reflection write failed: ${err}`);
6513
+ }
6404
6514
  }
6405
6515
  }
6406
6516
  if (durableNonFactWritten) {
@@ -7989,7 +8099,8 @@ var GraphRecallCoordinator = class {
7989
8099
  path: memory.path,
7990
8100
  namespace,
7991
8101
  snippet: memory.content.slice(0, 400),
7992
- score
8102
+ score,
8103
+ ...memory.frontmatter.origin !== void 0 ? { origin: memory.frontmatter.origin } : {}
7993
8104
  });
7994
8105
  expandedPaths.push({
7995
8106
  path: memory.path,
@@ -8089,6 +8200,7 @@ var GraphRecallCoordinator = class {
8089
8200
  namespace,
8090
8201
  snippet: memory.content.slice(0, 400),
8091
8202
  score,
8203
+ ...memory.frontmatter.origin !== void 0 ? { origin: memory.frontmatter.origin } : {},
8092
8204
  pathPenaltyApplied: pathScoreDetail.pathPenaltyApplied,
8093
8205
  ...config.graphPathScoring.includePathInProvenance && candidate.activationPath ? { pathNodeIds: candidate.activationPath.nodeIds } : {}
8094
8206
  },
@@ -8221,14 +8333,19 @@ async function buildProcedureRecallSection(storage, prompt, config, options) {
8221
8333
  (m) => m.frontmatter.category === "procedure" && isActiveMemoryStatus(m.frontmatter.status) && (options?.partitionToolScoped !== true || canRecallToolScopedMemory(m.frontmatter, options.requestingConnector))
8222
8334
  ).map((m) => ({ m, score: scoreProcedureForPrompt(m, trimmed, queryIntent) })).filter((x) => x.score > 0.04).sort((a, b) => b.score - a.score).slice(0, maxN);
8223
8335
  if (scored.length === 0) return null;
8336
+ const security = resolveSecurityCapabilities(config);
8224
8337
  const blocks = scored.map(({ m, score }) => {
8225
8338
  const id = m.frontmatter.id;
8226
8339
  const flat = m.content.replace(/\s+/g, " ").trim();
8227
8340
  const preview = flat.slice(0, 320);
8228
8341
  const suffix = flat.length > 320 ? "\u2026" : "";
8342
+ const body = renderAuthorityBoundContent(`${preview}${suffix}`, m.frontmatter.origin, {
8343
+ enabled: security.originAuthority,
8344
+ untrustedOrigins: config.untrustedOrigins
8345
+ });
8229
8346
  return `### ${id} (match ${score.toFixed(2)})
8230
8347
 
8231
- ${preview}${suffix}`;
8348
+ ${body}`;
8232
8349
  });
8233
8350
  return `## Relevant procedures
8234
8351
 
@@ -8391,8 +8508,10 @@ function resolveCompositeProfileStorage(options) {
8391
8508
  var RecallInternalCoordinator = class {
8392
8509
  constructor(deps) {
8393
8510
  this.deps = deps;
8511
+ this.securityCapabilities = resolveSecurityCapabilities(deps.config);
8394
8512
  }
8395
8513
  deps;
8514
+ securityCapabilities;
8396
8515
  async recallInternal(prompt, sessionKey, options = {}, caps = resolveCapabilities(this.deps.config), graphCaps = resolveGraphConstructionCapabilities(this.deps.config), lifecycleCaps = resolveMemoryLifecycleCapabilities(this.deps.config)) {
8397
8516
  const recallStart = Date.now();
8398
8517
  const backendDegradations = [];
@@ -9003,6 +9122,8 @@ ${lines.join("\n\n")}`;
9003
9122
  maxRelatedEntities,
9004
9123
  maxChars,
9005
9124
  transcriptEntries,
9125
+ originAuthorityEnabled: this.securityCapabilities.originAuthority,
9126
+ untrustedOrigins: this.deps.config.untrustedOrigins,
9006
9127
  abortSignal: sectionSignal
9007
9128
  }).catch((err) => {
9008
9129
  if (isAbortError(err)) throw err;
@@ -10783,7 +10904,9 @@ ${formatted}`;
10783
10904
  items: timelineItems,
10784
10905
  query: retrievalQuery,
10785
10906
  maxChars: eventOrderMaxChars,
10786
- maxItems
10907
+ maxItems,
10908
+ originAuthorityEnabled: this.securityCapabilities.originAuthority,
10909
+ untrustedOrigins: this.deps.config.untrustedOrigins
10787
10910
  });
10788
10911
  }
10789
10912
  if (!eventOrderSection && this.deps.lcmEngine?.enabled) {
@@ -10862,11 +10985,8 @@ ${profile}`
10862
10985
  );
10863
10986
  }
10864
10987
  if (kiResult?.result) {
10865
- this.deps.appendRecallSection(
10866
- sectionBuckets,
10867
- "knowledge-index",
10868
- kiResult.result
10869
- );
10988
+ const kiBody = this.securityCapabilities.originAuthority ? renderAuthorityBoundContent(kiResult.result, void 0, { enabled: true, untrustedOrigins: this.deps.config.untrustedOrigins }) : kiResult.result;
10989
+ this.deps.appendRecallSection(sectionBuckets, "knowledge-index", kiBody);
10870
10990
  log.debug(
10871
10991
  `Knowledge Index: ${kiResult.result.split("\n").length - 4} entities, ${kiResult.result.length} chars${kiResult.cached ? " (cached)" : ""}`
10872
10992
  );
@@ -10887,7 +11007,11 @@ ${profile}`
10887
11007
  const artifactType = a.frontmatter.artifactType ?? "fact";
10888
11008
  const createdRaw = typeof a.frontmatter.created === "string" ? a.frontmatter.created : "";
10889
11009
  const created = createdRaw ? createdRaw.slice(0, 19).replace("T", " ") : "unknown-time";
10890
- return `- [${artifactType}] "${this.deps.truncateArtifactForRecall(a.content)}" (${created})`;
11010
+ const content = renderAuthorityBoundContent(this.deps.truncateArtifactForRecall(a.content), a.frontmatter.origin, {
11011
+ enabled: this.securityCapabilities.originAuthority,
11012
+ untrustedOrigins: this.deps.config.untrustedOrigins
11013
+ });
11014
+ return `- [${artifactType}] "${content}" (${created})`;
10891
11015
  });
10892
11016
  this.deps.appendRecallSection(
10893
11017
  sectionBuckets,
@@ -11728,7 +11852,8 @@ ${tmtNode.summary}`
11728
11852
  path: m.path,
11729
11853
  namespace: this.deps.namespaceFromPath(m.path),
11730
11854
  snippet: m.content,
11731
- score: 1 - i / Math.max(recentSorted.length, 1)
11855
+ score: 1 - i / Math.max(recentSorted.length, 1),
11856
+ origin: m.frontmatter.origin
11732
11857
  })
11733
11858
  );
11734
11859
  const boostedRecent = (await this.deps.boostSearchResults(
@@ -12512,7 +12637,8 @@ async function searchEmbeddingFallback(deps, query, limit) {
12512
12637
  docid: hit.id,
12513
12638
  path: fullPath,
12514
12639
  score: hit.score,
12515
- snippet: memory.content.slice(0, 400).replace(/\n/g, " ")
12640
+ snippet: memory.content.slice(0, 400).replace(/\n/g, " "),
12641
+ origin: memory.frontmatter.origin
12516
12642
  });
12517
12643
  }
12518
12644
  return results;
@@ -13217,7 +13343,8 @@ var RecallSearchPipelineCoordinator = class {
13217
13343
  }
13218
13344
  filtered.push({
13219
13345
  ...r,
13220
- sourceConnector: memory ? memory.frontmatter.sourceConnector : void 0
13346
+ sourceConnector: memory ? memory.frontmatter.sourceConnector : void 0,
13347
+ origin: memory ? memory.frontmatter.origin : void 0
13221
13348
  });
13222
13349
  }
13223
13350
  if (connectorPartitionFilteredCount > 0) {
@@ -15021,7 +15148,7 @@ var OrchestratorInitCoordinator = class {
15021
15148
  if (signal.aborted) return;
15022
15149
  if (lifecycleCaps.lifecyclePolicy && resolveQmdCapabilities(this.deps.config).qmdTierMigration) {
15023
15150
  try {
15024
- const { runFirstStartMigration } = await import("./first-start-migration-CRZCZAJN.js");
15151
+ const { runFirstStartMigration } = await import("./first-start-migration-HZ4VPRFQ.js");
15025
15152
  const result = await runFirstStartMigration({
15026
15153
  storage: this.deps.storage,
15027
15154
  config: this.deps.config,
@@ -15044,7 +15171,7 @@ var OrchestratorInitCoordinator = class {
15044
15171
  if (signal.aborted) return;
15045
15172
  if (!this.deps.wearablesAutoSyncHandle && this.deps.config.wearables.enabled && this.deps.config.wearables.autoSyncEnabled && Object.values(this.deps.config.wearables.sources).some((source) => source.enabled)) {
15046
15173
  try {
15047
- const { startWearablesAutoSync } = await import("./auto-sync-NR3GPCOA.js");
15174
+ const { startWearablesAutoSync } = await import("./auto-sync-5HVRCMGZ.js");
15048
15175
  if (signal.aborted) return;
15049
15176
  this.deps.wearablesAutoSyncHandle = startWearablesAutoSync(
15050
15177
  {
@@ -18370,6 +18497,7 @@ var NamespaceReadFanoutCoordinator = class {
18370
18497
  path: memory.path,
18371
18498
  score,
18372
18499
  snippet: memory.content.slice(0, 400).replace(/\n/g, " "),
18500
+ origin: memory.frontmatter.origin,
18373
18501
  transport: "scoped_prefilter"
18374
18502
  });
18375
18503
  }
@@ -26999,4 +27127,4 @@ export {
26999
27127
  blendGraphExpandedRecallScore,
27000
27128
  Orchestrator
27001
27129
  };
27002
- //# sourceMappingURL=chunk-FPKKFDO4.js.map
27130
+ //# sourceMappingURL=chunk-IFFW25NG.js.map