@remnic/core 9.69.10 → 9.69.12

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 (580) hide show
  1. package/dist/access-admin-ops-surface.d.ts +15 -13
  2. package/dist/access-admin-ops-surface.js +46 -34
  3. package/dist/access-authorization-probe.d.ts +13 -11
  4. package/dist/access-authorization-probe.js +47 -35
  5. package/dist/access-boundary.d.ts +13 -11
  6. package/dist/access-boundary.js +46 -34
  7. package/dist/access-cli.js +108 -97
  8. package/dist/access-cli.js.map +1 -1
  9. package/dist/access-coding-context-resolution.d.ts +2 -1
  10. package/dist/access-extraction-force-flush.d.ts +13 -11
  11. package/dist/access-extraction-force-flush.js +46 -34
  12. package/dist/access-health-types.d.ts +2 -1
  13. package/dist/access-http-lcm-compaction.d.ts +13 -11
  14. package/dist/access-http-lifecycle-flush.d.ts +13 -11
  15. package/dist/access-http-offline-stream.d.ts +13 -11
  16. package/dist/access-http-query.d.ts +3 -2
  17. package/dist/access-http-query.js +48 -36
  18. package/dist/access-http.d.ts +14 -12
  19. package/dist/access-http.js +67 -53
  20. package/dist/access-identity-continuity-surface.d.ts +10 -9
  21. package/dist/access-identity-continuity-surface.js +46 -34
  22. package/dist/access-lcm-surface.d.ts +13 -11
  23. package/dist/access-lcm-surface.js +46 -34
  24. package/dist/access-mcp-output-schemas.js +1 -1
  25. package/dist/access-mcp.d.ts +13 -11
  26. package/dist/access-mcp.js +58 -45
  27. package/dist/access-memory-search-fanout.d.ts +3 -2
  28. package/dist/{access-namespace-preflight-S8fhQcCo.d.ts → access-namespace-preflight-Cy0yPsaE.d.ts} +1 -1
  29. package/dist/access-namespace-preflight.d.ts +4 -3
  30. package/dist/access-namespace-preflight.js +46 -34
  31. package/dist/access-observe-write-surface.d.ts +15 -13
  32. package/dist/access-observe-write-surface.js +46 -34
  33. package/dist/access-offline-manifest.d.ts +10 -9
  34. package/dist/access-offline-manifest.js +3 -3
  35. package/dist/access-operations-batch.js +49 -37
  36. package/dist/access-operations.d.ts +19 -17
  37. package/dist/access-operations.js +54 -42
  38. package/dist/access-recall-concurrency.d.ts +13 -11
  39. package/dist/access-recall-concurrency.js +46 -34
  40. package/dist/access-recall-response.d.ts +13 -11
  41. package/dist/access-recall-response.js +46 -34
  42. package/dist/access-recall-surface.d.ts +13 -11
  43. package/dist/access-recall-surface.js +46 -34
  44. package/dist/access-schema.d.ts +107 -90
  45. package/dist/access-schema.js +7 -5
  46. package/dist/{access-service-DcfM0Vf0.d.ts → access-service-Baz5xW5X.d.ts} +89 -72
  47. package/dist/access-service-helpers.d.ts +13 -11
  48. package/dist/access-service.d.ts +13 -11
  49. package/dist/access-service.js +46 -34
  50. package/dist/access-surface-catalog.d.ts +13 -11
  51. package/dist/access-surface-catalog.js +50 -36
  52. package/dist/access-surface-catalog.js.map +1 -1
  53. package/dist/access-wearables-meetings-surface.d.ts +4 -3
  54. package/dist/action-confidence.d.ts +2 -1
  55. package/dist/active-memory-bridge.d.ts +2 -1
  56. package/dist/active-recall.d.ts +2 -1
  57. package/dist/active-recall.js +6 -5
  58. package/dist/active-recall.js.map +1 -1
  59. package/dist/adapters/index.js +4 -4
  60. package/dist/adapters/registry.js +2 -2
  61. package/dist/ambient-provenance.d.ts +2 -1
  62. package/dist/artifact-search.d.ts +2 -1
  63. package/dist/behavior-learner.d.ts +2 -1
  64. package/dist/behavior-signals.d.ts +2 -1
  65. package/dist/bootstrap.d.ts +10 -9
  66. package/dist/briefing-window.d.ts +3 -2
  67. package/dist/briefing.d.ts +3 -2
  68. package/dist/briefing.js +13 -13
  69. package/dist/buffer-surprise-report.d.ts +2 -1
  70. package/dist/buffer-turn-helpers.d.ts +2 -1
  71. package/dist/buffer.d.ts +3 -2
  72. package/dist/bulk-import/index.d.ts +4 -3
  73. package/dist/calibration.d.ts +2 -1
  74. package/dist/capabilities.d.ts +2 -1
  75. package/dist/{catalog-BmBXTtOs.d.ts → catalog-9X8WpZNO.d.ts} +1 -1
  76. package/dist/causal-behavior.d.ts +2 -1
  77. package/dist/causal-behavior.js +2 -2
  78. package/dist/causal-chain.js +2 -2
  79. package/dist/causal-consolidation.d.ts +2 -1
  80. package/dist/causal-consolidation.js +16 -16
  81. package/dist/causal-retrieval.js +2 -2
  82. package/dist/causal-trajectory-graph.d.ts +2 -1
  83. package/dist/causal-trajectory-graph.js +2 -2
  84. package/dist/causal-trajectory.js +1 -1
  85. package/dist/{chunk-D5VPIJN3.js → chunk-227WJVPY.js} +2 -2
  86. package/dist/{chunk-Y3BWCIY2.js → chunk-2EHDPHMD.js} +2 -2
  87. package/dist/{chunk-2LKW6OO7.js → chunk-2XJDAEAM.js} +2 -2
  88. package/dist/{chunk-P23JWI3D.js → chunk-3ITTF7YH.js} +52 -52
  89. package/dist/{chunk-3DT2F5OI.js → chunk-3YKOFCKP.js} +11 -6
  90. package/dist/chunk-3YKOFCKP.js.map +1 -0
  91. package/dist/{chunk-NGP2FPB2.js → chunk-4UVDLNHQ.js} +2 -2
  92. package/dist/{chunk-HXWOVCS6.js → chunk-4WIKMOE3.js} +44 -22
  93. package/dist/chunk-4WIKMOE3.js.map +1 -0
  94. package/dist/{chunk-6RPB2TDG.js → chunk-5HO3QBAD.js} +11 -6
  95. package/dist/chunk-5HO3QBAD.js.map +1 -0
  96. package/dist/{chunk-AYWPIH4M.js → chunk-5P2KNFJZ.js} +149 -25
  97. package/dist/chunk-5P2KNFJZ.js.map +1 -0
  98. package/dist/{chunk-FJMIQTMH.js → chunk-5YQ7RFSO.js} +2 -2
  99. package/dist/{chunk-KQAFEZQX.js → chunk-7LCGFUMB.js} +4 -4
  100. package/dist/{chunk-EESYTBXV.js → chunk-7NCUHD5U.js} +2 -2
  101. package/dist/{chunk-X574KX52.js → chunk-7ZMU4XQT.js} +2 -2
  102. package/dist/{chunk-SG3Z67FB.js → chunk-APZXA4WI.js} +2 -2
  103. package/dist/{chunk-2QSZNTDO.js → chunk-AU7Q3LSC.js} +4 -4
  104. package/dist/{chunk-VGMRI4J6.js → chunk-B75VCEX5.js} +4 -4
  105. package/dist/{chunk-D35XLYQ7.js → chunk-BE4Y6GK6.js} +11 -11
  106. package/dist/{chunk-ELKD5PCD.js → chunk-BEXFNGQ3.js} +3 -3
  107. package/dist/{chunk-U5SRTYFS.js → chunk-BFDOBESV.js} +2 -2
  108. package/dist/{chunk-OLT3YTDH.js → chunk-BIJAWZYW.js} +4 -4
  109. package/dist/{chunk-FU2NYFX6.js → chunk-BO4PWIJY.js} +3 -3
  110. package/dist/{chunk-JMAG7WZ7.js → chunk-BX6GW4KC.js} +2 -2
  111. package/dist/chunk-CC37E3QM.js +198 -0
  112. package/dist/chunk-CC37E3QM.js.map +1 -0
  113. package/dist/{chunk-J2R275FN.js → chunk-CTCGHNWN.js} +4 -4
  114. package/dist/{chunk-X5PIDJ3L.js → chunk-DA4ZMCBU.js} +3 -3
  115. package/dist/{chunk-IVAW3HBF.js → chunk-DH3V7RCQ.js} +21 -13
  116. package/dist/chunk-DH3V7RCQ.js.map +1 -0
  117. package/dist/chunk-DXFG2VGN.js +50 -0
  118. package/dist/chunk-DXFG2VGN.js.map +1 -0
  119. package/dist/{chunk-4OFKZAJG.js → chunk-EAARGPWI.js} +2 -1
  120. package/dist/chunk-EAARGPWI.js.map +1 -0
  121. package/dist/{chunk-H6RSANGQ.js → chunk-ETZ7KKOS.js} +2 -2
  122. package/dist/{chunk-K4E3Y3ZX.js → chunk-G7VEQEMG.js} +2 -1
  123. package/dist/chunk-G7VEQEMG.js.map +1 -0
  124. package/dist/{chunk-XZBXINXZ.js → chunk-GIC6BASP.js} +4 -4
  125. package/dist/{chunk-SXQZMC7R.js → chunk-GR4C3FHT.js} +2 -2
  126. package/dist/{chunk-7DYGPGCT.js → chunk-H5IIBGDM.js} +2 -2
  127. package/dist/{chunk-CNNXMIS6.js → chunk-HFRGCNFY.js} +10 -10
  128. package/dist/chunk-HRATODNO.js +28 -0
  129. package/dist/chunk-HRATODNO.js.map +1 -0
  130. package/dist/{chunk-MAG6M3B6.js → chunk-HTOWFFAI.js} +2 -2
  131. package/dist/chunk-HUSTM6PU.js +27 -0
  132. package/dist/chunk-HUSTM6PU.js.map +1 -0
  133. package/dist/{chunk-FOCMJEHH.js → chunk-I4QAH4SY.js} +3 -3
  134. package/dist/{chunk-FSGCXGK6.js → chunk-I6DUKBUI.js} +2 -2
  135. package/dist/{chunk-VI637ILW.js → chunk-IN673LEP.js} +48 -15
  136. package/dist/chunk-IN673LEP.js.map +1 -0
  137. package/dist/{chunk-6FUMA6AA.js → chunk-JGXMA6HL.js} +2 -2
  138. package/dist/{chunk-TA7UZZMW.js → chunk-JHTF22NQ.js} +2 -2
  139. package/dist/{chunk-DZ3CNJPB.js → chunk-LDOQE34V.js} +2 -2
  140. package/dist/{chunk-MEW53VQJ.js → chunk-LDWIPYJ6.js} +7 -7
  141. package/dist/{chunk-227UFSEQ.js → chunk-LEPOP46W.js} +4 -4
  142. package/dist/{chunk-KJTSWJZN.js → chunk-LF6SHWVV.js} +2 -2
  143. package/dist/{chunk-G6OZZX7P.js → chunk-LJAP4KSW.js} +2 -2
  144. package/dist/{chunk-NV6BTBUI.js → chunk-LJNLLNEM.js} +2 -2
  145. package/dist/{chunk-FFFZEF6B.js → chunk-LUDXSSTW.js} +2 -2
  146. package/dist/{chunk-PCH2CVCS.js → chunk-LWBSEYW3.js} +6 -6
  147. package/dist/chunk-M6RORUO5.js +59 -0
  148. package/dist/chunk-M6RORUO5.js.map +1 -0
  149. package/dist/{chunk-FMUJGGKW.js → chunk-M7DGN6JZ.js} +3 -3
  150. package/dist/{chunk-TZIHB2LP.js → chunk-MNH2GM4O.js} +5 -5
  151. package/dist/{chunk-RACZB5HT.js → chunk-N37X5RU7.js} +4 -4
  152. package/dist/{chunk-LK4TOYPU.js → chunk-NF3NMAG7.js} +2 -2
  153. package/dist/{chunk-QL4U3SJA.js → chunk-NHLEFBE2.js} +11 -3
  154. package/dist/chunk-NHLEFBE2.js.map +1 -0
  155. package/dist/chunk-NN5CQTAJ.js +42 -0
  156. package/dist/chunk-NN5CQTAJ.js.map +1 -0
  157. package/dist/{chunk-AG46P24C.js → chunk-NNBZS3DY.js} +4 -4
  158. package/dist/{chunk-LZ2JTO7N.js → chunk-OASGWNYL.js} +2 -2
  159. package/dist/chunk-OEDW4ER7.js +62 -0
  160. package/dist/chunk-OEDW4ER7.js.map +1 -0
  161. package/dist/{chunk-C2JCVZWX.js → chunk-OLBZ2WGG.js} +2 -2
  162. package/dist/{chunk-Z3SQEEB6.js → chunk-OUKBMQ2O.js} +2 -2
  163. package/dist/{chunk-XXW32OL7.js → chunk-OYV6RKPM.js} +1 -1
  164. package/dist/chunk-OYV6RKPM.js.map +1 -0
  165. package/dist/{chunk-2Z3DG5CQ.js → chunk-P6GKRT2H.js} +1 -1
  166. package/dist/{chunk-UGA6PZTX.js → chunk-P7LVYPIX.js} +3 -3
  167. package/dist/{chunk-26JWBSWD.js → chunk-PGCZLHRB.js} +11 -3
  168. package/dist/chunk-PGCZLHRB.js.map +1 -0
  169. package/dist/{chunk-VE45LRCE.js → chunk-QRDSXR3V.js} +2 -2
  170. package/dist/{chunk-KS67VHXA.js → chunk-QUVWFZOU.js} +2 -2
  171. package/dist/{chunk-AI4QFDPR.js → chunk-R7FXPG4T.js} +2 -2
  172. package/dist/chunk-RF2SMMPP.js +37 -0
  173. package/dist/chunk-RF2SMMPP.js.map +1 -0
  174. package/dist/{chunk-X66BHMAU.js → chunk-RJ57OOCD.js} +2 -2
  175. package/dist/chunk-S5G2LAL7.js +354 -0
  176. package/dist/chunk-S5G2LAL7.js.map +1 -0
  177. package/dist/{chunk-VXMKW7YN.js → chunk-TRLCMLX7.js} +2 -2
  178. package/dist/{chunk-ELCMVOQT.js → chunk-V3HUBF7T.js} +2 -2
  179. package/dist/{chunk-KMIAD7JR.js → chunk-VHAKBUBD.js} +2 -2
  180. package/dist/{chunk-GS5IFIVE.js → chunk-VYD63IFH.js} +3 -3
  181. package/dist/chunk-VZIAVM72.js +49 -0
  182. package/dist/chunk-VZIAVM72.js.map +1 -0
  183. package/dist/chunk-WTWQA7BB.js +28 -0
  184. package/dist/chunk-WTWQA7BB.js.map +1 -0
  185. package/dist/{chunk-TBRG2SYY.js → chunk-X4FIZAVQ.js} +94 -52
  186. package/dist/chunk-X4FIZAVQ.js.map +1 -0
  187. package/dist/{chunk-WSFPNCRA.js → chunk-XFPHV65N.js} +2 -2
  188. package/dist/{chunk-JCUG7AXZ.js → chunk-XJJYSX6F.js} +4 -4
  189. package/dist/{chunk-I6DURYZI.js → chunk-XMIAU4CO.js} +2 -2
  190. package/dist/{chunk-PJIGYPO5.js → chunk-XQGFIAG7.js} +2 -2
  191. package/dist/{chunk-B2URC6LJ.js → chunk-YWN3GYI2.js} +2 -2
  192. package/dist/{chunk-TG6JEJDV.js → chunk-Z33VUMKY.js} +3 -3
  193. package/dist/{cli-CFpMhqz5.d.ts → cli-CMtkGBdz.d.ts} +5 -5
  194. package/dist/cli.d.ts +15 -13
  195. package/dist/cli.js +88 -77
  196. package/dist/coding/export-okf-codegraph.d.ts +2 -1
  197. package/dist/coding/export-okf-codegraph.js +13 -13
  198. package/dist/coding/pre-action-gate.d.ts +2 -1
  199. package/dist/coding/pre-action-gate.js +2 -2
  200. package/dist/compounding/engine.d.ts +3 -2
  201. package/dist/compounding/engine.js +15 -14
  202. package/dist/compounding/preference-consolidator.d.ts +2 -1
  203. package/dist/compression-optimizer.d.ts +2 -1
  204. package/dist/config.d.ts +2 -1
  205. package/dist/config.js +6 -5
  206. package/dist/connectors/codex-materialize-runner.d.ts +2 -1
  207. package/dist/connectors/codex-materialize-runner.js +13 -13
  208. package/dist/connectors/codex-materialize.d.ts +2 -1
  209. package/dist/connectors/index.d.ts +2 -1
  210. package/dist/connectors/index.js +13 -13
  211. package/dist/consolidation-provenance-check.d.ts +3 -2
  212. package/dist/consolidation-undo.d.ts +3 -2
  213. package/dist/contradiction/index.d.ts +4 -3
  214. package/dist/converge-config.d.ts +2 -1
  215. package/dist/convergence-refresh.d.ts +3 -2
  216. package/dist/convergence-refresh.js +15 -15
  217. package/dist/conversation-index/backend.d.ts +2 -1
  218. package/dist/conversation-index/backend.js +2 -2
  219. package/dist/conversation-index/chunker.d.ts +2 -1
  220. package/dist/conversation-index/faiss-adapter.d.ts +2 -1
  221. package/dist/conversation-index/indexer.d.ts +2 -1
  222. package/dist/conversation-index/search.d.ts +2 -1
  223. package/dist/corpus-watermark.d.ts +2 -1
  224. package/dist/corpus-watermark.js +15 -15
  225. package/dist/cross-lingual-recall.d.ts +2 -1
  226. package/dist/day-summary.d.ts +2 -1
  227. package/dist/deep-recall-config.d.ts +32 -0
  228. package/dist/deep-recall-config.js +12 -0
  229. package/dist/deep-recall-http-glue.d.ts +170 -0
  230. package/dist/deep-recall-http-glue.js +31 -0
  231. package/dist/deep-recall-http-glue.js.map +1 -0
  232. package/dist/deep-recall-mcp-tools.d.ts +144 -0
  233. package/dist/deep-recall-mcp-tools.js +8 -0
  234. package/dist/deep-recall-mcp-tools.js.map +1 -0
  235. package/dist/deep-recall-policy-llm.d.ts +37 -0
  236. package/dist/deep-recall-policy-llm.js +19 -0
  237. package/dist/deep-recall-policy-llm.js.map +1 -0
  238. package/dist/deep-recall-renderer.d.ts +16 -0
  239. package/dist/deep-recall-renderer.js +8 -0
  240. package/dist/deep-recall-renderer.js.map +1 -0
  241. package/dist/deep-recall-seeds.d.ts +83 -0
  242. package/dist/deep-recall-seeds.js +8 -0
  243. package/dist/deep-recall-seeds.js.map +1 -0
  244. package/dist/deep-recall.d.ts +97 -0
  245. package/dist/deep-recall.js +13 -0
  246. package/dist/deep-recall.js.map +1 -0
  247. package/dist/delinearize.d.ts +2 -1
  248. package/dist/dependency-propagation-config.d.ts +2 -1
  249. package/dist/{dependency-propagation-delivery-BC3bCEet.d.ts → dependency-propagation-delivery-BZGUecZf.d.ts} +1 -1
  250. package/dist/direct-answer-wiring.d.ts +2 -1
  251. package/dist/direct-answer.d.ts +2 -1
  252. package/dist/embedding-fallback.d.ts +2 -1
  253. package/dist/enrichment/index.d.ts +2 -1
  254. package/dist/entity-origin-fields.d.ts +2 -1
  255. package/dist/entity-retrieval.d.ts +3 -2
  256. package/dist/entity-retrieval.js +13 -13
  257. package/dist/entity-schema.d.ts +2 -1
  258. package/dist/episodic-context.d.ts +2 -1
  259. package/dist/eval-trajectory-contracts.d.ts +2 -1
  260. package/dist/eval-trajectory-store.d.ts +2 -1
  261. package/dist/eval-trajectory.d.ts +2 -1
  262. package/dist/explicit-capture.d.ts +10 -9
  263. package/dist/external-wiki-access.d.ts +13 -11
  264. package/dist/external-wiki-access.js +47 -35
  265. package/dist/external-wiki-collection-registration.d.ts +2 -1
  266. package/dist/external-wiki-collection.d.ts +2 -1
  267. package/dist/external-wiki-mcp-tools.d.ts +13 -11
  268. package/dist/extraction-error-classification.d.ts +2 -1
  269. package/dist/extraction-faithfulness.d.ts +2 -1
  270. package/dist/extraction-judge-telemetry.d.ts +2 -1
  271. package/dist/extraction-judge-training.d.ts +2 -1
  272. package/dist/extraction-judge.d.ts +2 -1
  273. package/dist/extraction-liveness.d.ts +2 -1
  274. package/dist/extraction-normalization.d.ts +2 -1
  275. package/dist/extraction-prompt.d.ts +2 -1
  276. package/dist/extraction-source-grounding-rules.d.ts +2 -1
  277. package/dist/extraction-source-grounding.d.ts +2 -1
  278. package/dist/extraction.d.ts +2 -1
  279. package/dist/extraction.js +15 -15
  280. package/dist/fallback-llm.d.ts +2 -1
  281. package/dist/graph-dashboard-diff.d.ts +2 -1
  282. package/dist/graph-dashboard-key.d.ts +2 -1
  283. package/dist/graph-dashboard-parser.d.ts +2 -1
  284. package/dist/{graph-edge-decay-DGTBFALQ.js → graph-edge-decay-FXGELBFA.js} +4 -4
  285. package/dist/graph-edge-decay-FXGELBFA.js.map +1 -0
  286. package/dist/graph-edge-reinforcement.d.ts +2 -1
  287. package/dist/graph-path-reconstruction.d.ts +2 -1
  288. package/dist/graph-path-scoring.d.ts +2 -1
  289. package/dist/graph-snapshot.d.ts +2 -1
  290. package/dist/graph-snapshot.js +3 -3
  291. package/dist/graph.d.ts +2 -1
  292. package/dist/graph.js +2 -2
  293. package/dist/harmonic-construction.js +3 -3
  294. package/dist/harmonic-retrieval.d.ts +38 -2
  295. package/dist/harmonic-retrieval.js +12 -3
  296. package/dist/importance.d.ts +2 -1
  297. package/dist/importers/index.d.ts +2 -1
  298. package/dist/in-flight-reads.d.ts +2 -1
  299. package/dist/{index-D4hS9uxK.d.ts → index-B4iTvT-w.d.ts} +2 -2
  300. package/dist/index.d.ts +701 -699
  301. package/dist/index.js +126 -115
  302. package/dist/intent.d.ts +2 -1
  303. package/dist/lcm/engine.d.ts +2 -1
  304. package/dist/lcm/index.d.ts +2 -1
  305. package/dist/lcm/tools.d.ts +2 -1
  306. package/dist/lifecycle.d.ts +2 -1
  307. package/dist/live-connectors-runner.d.ts +2 -1
  308. package/dist/local-llm.d.ts +2 -1
  309. package/dist/local-model-endpoint.d.ts +2 -1
  310. package/dist/location/index.d.ts +4 -3
  311. package/dist/location/index.js +15 -15
  312. package/dist/maintenance/memory-governance.d.ts +2 -1
  313. package/dist/maintenance/memory-governance.js +13 -13
  314. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
  315. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +13 -13
  316. package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
  317. package/dist/maintenance/rebuild-memory-projection.js +14 -14
  318. package/dist/{maintenance-BRcc3Hx8.d.ts → maintenance-BBpNqEeJ.d.ts} +3 -3
  319. package/dist/mcp-memory-inspector-app.d.ts +13 -11
  320. package/dist/mcp-read-only-tools.js +1 -1
  321. package/dist/memory-action-policy.d.ts +2 -1
  322. package/dist/memory-cache.d.ts +2 -1
  323. package/dist/memory-controller.d.ts +2 -1
  324. package/dist/memory-lifecycle-ledger-utils.d.ts +2 -1
  325. package/dist/memory-projection-store.d.ts +2 -1
  326. package/dist/memory-provenance.d.ts +2 -1
  327. package/dist/memory-snapshot.d.ts +2 -1
  328. package/dist/memory-subject-cli.d.ts +13 -11
  329. package/dist/memory-subject.d.ts +13 -11
  330. package/dist/memory-worth-outcomes.d.ts +3 -2
  331. package/dist/models-json.d.ts +2 -1
  332. package/dist/namespaces/migrate.d.ts +4 -3
  333. package/dist/namespaces/migrate.js +14 -14
  334. package/dist/namespaces/principal.d.ts +2 -1
  335. package/dist/namespaces/search.d.ts +2 -1
  336. package/dist/namespaces/search.js +9 -9
  337. package/dist/namespaces/storage.d.ts +4 -3
  338. package/dist/namespaces/storage.js +13 -13
  339. package/dist/native-knowledge.d.ts +2 -1
  340. package/dist/offline-sync-impression-drain.d.ts +2 -1
  341. package/dist/offline-sync.js +2 -2
  342. package/dist/operator-doctor-corpus.d.ts +2 -1
  343. package/dist/operator-doctor-corpus.js +16 -16
  344. package/dist/operator-doctor-replica.d.ts +2 -1
  345. package/dist/operator-toolkit.d.ts +4 -3
  346. package/dist/operator-toolkit.js +29 -28
  347. package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
  348. package/dist/orchestration/maintenance.d.ts +5 -4
  349. package/dist/orchestration/maintenance.js +21 -21
  350. package/dist/{orchestrator-Btq9lzAN.d.ts → orchestrator-DglY1H0w.d.ts} +8 -8
  351. package/dist/orchestrator.d.ts +10 -9
  352. package/dist/orchestrator.js +108 -97
  353. package/dist/patterns-cli.d.ts +2 -1
  354. package/dist/{pipeline-CZoNdFb5.d.ts → pipeline-C7qRsy6g.d.ts} +1 -1
  355. package/dist/policy-runtime.d.ts +2 -1
  356. package/dist/proactive-contention.d.ts +2 -1
  357. package/dist/provenance.d.ts +2 -1
  358. package/dist/{public-http-C9-CHc40.d.ts → public-http-CU-Cwwdb.d.ts} +1 -1
  359. package/dist/{qmd-VIjSCKIE.d.ts → qmd-YRLTa3AE.d.ts} +1 -1
  360. package/dist/qmd-preflight.d.ts +3 -2
  361. package/dist/qmd-recall-cache.d.ts +2 -1
  362. package/dist/qmd.d.ts +3 -2
  363. package/dist/recall-concurrency-config.d.ts +2 -1
  364. package/dist/recall-deep-expand-select.js +4 -44
  365. package/dist/recall-deep-expand-select.js.map +1 -1
  366. package/dist/recall-deep-frontier.js +4 -23
  367. package/dist/recall-deep-frontier.js.map +1 -1
  368. package/dist/recall-deep-rewrite.js +4 -23
  369. package/dist/recall-deep-rewrite.js.map +1 -1
  370. package/dist/recall-disclosure-escalation.d.ts +2 -1
  371. package/dist/recall-explain-renderer.d.ts +2 -1
  372. package/dist/recall-explain-renderer.js +3 -3
  373. package/dist/recall-memory-map.d.ts +2 -1
  374. package/dist/recall-navigate-access.d.ts +2 -1
  375. package/dist/recall-navigate-access.js +2 -2
  376. package/dist/recall-navigate-disclosure.d.ts +2 -1
  377. package/dist/recall-navigate-disclosure.js +1 -1
  378. package/dist/recall-navigate.d.ts +2 -1
  379. package/dist/recall-navigate.js +2 -2
  380. package/dist/recall-planner-llm.d.ts +2 -1
  381. package/dist/recall-state.d.ts +2 -1
  382. package/dist/recall-tag-filter.d.ts +2 -1
  383. package/dist/recall-timings.d.ts +2 -1
  384. package/dist/recall-xray-cli.d.ts +2 -1
  385. package/dist/recall-xray-cli.js +4 -4
  386. package/dist/recall-xray-renderer.d.ts +2 -1
  387. package/dist/recall-xray-renderer.js +3 -3
  388. package/dist/recall-xray.d.ts +2 -1
  389. package/dist/recall-xray.js +2 -2
  390. package/dist/reconcile/cursor.d.ts +2 -1
  391. package/dist/reconcile/manifest.d.ts +2 -1
  392. package/dist/reconcile/plan.d.ts +2 -1
  393. package/dist/replay/normalizers/chatgpt.d.ts +2 -1
  394. package/dist/replay/normalizers/claude.d.ts +2 -1
  395. package/dist/replay/normalizers/openclaw.d.ts +2 -1
  396. package/dist/replay/normalizers/shared.d.ts +2 -1
  397. package/dist/replay/runner.d.ts +2 -1
  398. package/dist/replay/types.d.ts +2 -1
  399. package/dist/replica-divergence.d.ts +2 -1
  400. package/dist/replica-peers-config.d.ts +2 -1
  401. package/dist/resolve-auth-token.d.ts +2 -1
  402. package/dist/resume-bundles.js +7 -6
  403. package/dist/retrieval-agents.d.ts +3 -2
  404. package/dist/retrieval-tiers.d.ts +2 -1
  405. package/dist/routing/engine.d.ts +2 -1
  406. package/dist/routing/store.d.ts +2 -1
  407. package/dist/salvage-envelope.d.ts +2 -1
  408. package/dist/schemas.d.ts +176 -176
  409. package/dist/{scope-profiles-DqbxQXIS.d.ts → scope-profiles-BVvqVzJX.d.ts} +1 -1
  410. package/dist/search/embed-helper.d.ts +2 -1
  411. package/dist/search/factory.d.ts +2 -1
  412. package/dist/search/factory.js +8 -8
  413. package/dist/search/index.d.ts +2 -1
  414. package/dist/search/index.js +13 -13
  415. package/dist/search/lancedb-backend.d.ts +2 -1
  416. package/dist/search/lancedb-backend.js +2 -2
  417. package/dist/search/meilisearch-backend.d.ts +2 -1
  418. package/dist/search/meilisearch-backend.js +2 -2
  419. package/dist/search/noop-backend.d.ts +2 -1
  420. package/dist/search/orama-backend.d.ts +2 -1
  421. package/dist/search/orama-backend.js +2 -2
  422. package/dist/search/port.d.ts +2 -1
  423. package/dist/search/remote-backend.d.ts +2 -1
  424. package/dist/{semantic-consolidation-DW3rEUoW.d.ts → semantic-consolidation-BzCI6Kuu.d.ts} +1 -1
  425. package/dist/semantic-consolidation.d.ts +3 -2
  426. package/dist/semantic-consolidation.js +14 -14
  427. package/dist/semantic-rule-promotion.js +13 -13
  428. package/dist/semantic-rule-verifier.d.ts +2 -1
  429. package/dist/semantic-rule-verifier.js +13 -13
  430. package/dist/{service-B2vJU_Bx.d.ts → service-DQ3Gscy5.d.ts} +2 -2
  431. package/dist/session-observer-bands.d.ts +2 -1
  432. package/dist/session-observer-state.d.ts +2 -1
  433. package/dist/shared-context/manager.d.ts +43 -7
  434. package/dist/shared-context/manager.js +2 -1
  435. package/dist/signal.d.ts +2 -1
  436. package/dist/source-agent-qualifier.d.ts +2 -1
  437. package/dist/source-agent-qualifier.js +13 -13
  438. package/dist/standup/build.js +13 -13
  439. package/dist/{storage-6fn7BPmb.d.ts → storage-DmTbQdD0.d.ts} +1 -1
  440. package/dist/storage.d.ts +3 -2
  441. package/dist/storage.js +12 -12
  442. package/dist/subject-config.d.ts +2 -1
  443. package/dist/summarizer.d.ts +2 -1
  444. package/dist/summary-snapshot.d.ts +2 -1
  445. package/dist/support-passport/index.d.ts +16 -14
  446. package/dist/support-passport/index.js +49 -37
  447. package/dist/temporal-supersession.d.ts +3 -2
  448. package/dist/temporal-timeline-recall.d.ts +2 -1
  449. package/dist/temporal-validity.d.ts +2 -1
  450. package/dist/threading.d.ts +2 -1
  451. package/dist/tier-migration.d.ts +3 -2
  452. package/dist/tier-routing.d.ts +2 -1
  453. package/dist/topics.d.ts +2 -1
  454. package/dist/transcript.d.ts +2 -1
  455. package/dist/transfer/capsule-export.js +2 -2
  456. package/dist/transfer/capsule-import.js +2 -2
  457. package/dist/transfer/export-okf.d.ts +2 -1
  458. package/dist/transfer/export-okf.js +14 -14
  459. package/dist/transfer/types.d.ts +78 -78
  460. package/dist/trust-score-stage.d.ts +2 -1
  461. package/dist/trust-score.d.ts +2 -1
  462. package/dist/{types-eM7QIcX2.d.ts → types-CLRTESSD.d.ts} +3 -1
  463. package/dist/types.d.ts +2 -1
  464. package/dist/types.js +1 -1
  465. package/dist/utility-runtime.d.ts +2 -1
  466. package/dist/verified-recall.js +13 -13
  467. package/dist/who-knows-cli.d.ts +13 -11
  468. package/dist/who-knows-cli.js +14 -14
  469. package/dist/who-knows.d.ts +13 -11
  470. package/dist/who-knows.js +13 -13
  471. package/dist/write-envelope.d.ts +2 -1
  472. package/package.json +2 -2
  473. package/src/access-boundary.ts +1 -0
  474. package/src/access-http.ts +5 -5
  475. package/src/access-mcp-output-schemas.ts +1 -0
  476. package/src/access-mcp.ts +3 -3
  477. package/src/access-operations-batch.ts +3 -1
  478. package/src/access-schema.ts +12 -0
  479. package/src/access-service.ts +162 -5
  480. package/src/access-surface-catalog.ts +2 -0
  481. package/src/cli/deep-recall-commands.ts +60 -0
  482. package/src/cli.ts +2 -2
  483. package/src/config.test.ts +19 -0
  484. package/src/config.ts +7 -0
  485. package/src/deep-recall-config.ts +83 -0
  486. package/src/deep-recall-http-glue.ts +75 -0
  487. package/src/deep-recall-mcp-tools.ts +33 -0
  488. package/src/deep-recall-policy-llm.ts +65 -0
  489. package/src/deep-recall-renderer.ts +41 -0
  490. package/src/deep-recall-seeds.ts +134 -0
  491. package/src/deep-recall-surface.test.ts +902 -0
  492. package/src/deep-recall.test.ts +348 -0
  493. package/src/deep-recall.ts +572 -0
  494. package/src/harmonic-retrieval.ts +78 -25
  495. package/src/mcp-read-only-tools.ts +1 -0
  496. package/src/shared-context/envelope-at.test.ts +23 -0
  497. package/src/shared-context/envelope-at.ts +12 -6
  498. package/src/shared-context/envelope-io.ts +184 -0
  499. package/src/shared-context/envelope-wiring.test.ts +193 -0
  500. package/src/shared-context/governance.ts +28 -9
  501. package/src/shared-context/iso-instant.ts +43 -0
  502. package/src/shared-context/manager.ts +74 -15
  503. package/src/shared-context/provenance.ts +3 -26
  504. package/src/shared-context/write-origin.test.ts +145 -0
  505. package/src/types.ts +3 -1
  506. package/dist/chunk-26JWBSWD.js.map +0 -1
  507. package/dist/chunk-3DT2F5OI.js.map +0 -1
  508. package/dist/chunk-4OFKZAJG.js.map +0 -1
  509. package/dist/chunk-6RPB2TDG.js.map +0 -1
  510. package/dist/chunk-AYWPIH4M.js.map +0 -1
  511. package/dist/chunk-HXWOVCS6.js.map +0 -1
  512. package/dist/chunk-IVAW3HBF.js.map +0 -1
  513. package/dist/chunk-K4E3Y3ZX.js.map +0 -1
  514. package/dist/chunk-QL4U3SJA.js.map +0 -1
  515. package/dist/chunk-TBRG2SYY.js.map +0 -1
  516. package/dist/chunk-VI637ILW.js.map +0 -1
  517. package/dist/chunk-XXW32OL7.js.map +0 -1
  518. /package/dist/{chunk-D5VPIJN3.js.map → chunk-227WJVPY.js.map} +0 -0
  519. /package/dist/{chunk-Y3BWCIY2.js.map → chunk-2EHDPHMD.js.map} +0 -0
  520. /package/dist/{chunk-2LKW6OO7.js.map → chunk-2XJDAEAM.js.map} +0 -0
  521. /package/dist/{chunk-P23JWI3D.js.map → chunk-3ITTF7YH.js.map} +0 -0
  522. /package/dist/{chunk-NGP2FPB2.js.map → chunk-4UVDLNHQ.js.map} +0 -0
  523. /package/dist/{chunk-FJMIQTMH.js.map → chunk-5YQ7RFSO.js.map} +0 -0
  524. /package/dist/{chunk-KQAFEZQX.js.map → chunk-7LCGFUMB.js.map} +0 -0
  525. /package/dist/{chunk-EESYTBXV.js.map → chunk-7NCUHD5U.js.map} +0 -0
  526. /package/dist/{chunk-X574KX52.js.map → chunk-7ZMU4XQT.js.map} +0 -0
  527. /package/dist/{chunk-SG3Z67FB.js.map → chunk-APZXA4WI.js.map} +0 -0
  528. /package/dist/{chunk-2QSZNTDO.js.map → chunk-AU7Q3LSC.js.map} +0 -0
  529. /package/dist/{chunk-VGMRI4J6.js.map → chunk-B75VCEX5.js.map} +0 -0
  530. /package/dist/{chunk-D35XLYQ7.js.map → chunk-BE4Y6GK6.js.map} +0 -0
  531. /package/dist/{chunk-ELKD5PCD.js.map → chunk-BEXFNGQ3.js.map} +0 -0
  532. /package/dist/{chunk-U5SRTYFS.js.map → chunk-BFDOBESV.js.map} +0 -0
  533. /package/dist/{chunk-OLT3YTDH.js.map → chunk-BIJAWZYW.js.map} +0 -0
  534. /package/dist/{chunk-FU2NYFX6.js.map → chunk-BO4PWIJY.js.map} +0 -0
  535. /package/dist/{chunk-JMAG7WZ7.js.map → chunk-BX6GW4KC.js.map} +0 -0
  536. /package/dist/{chunk-J2R275FN.js.map → chunk-CTCGHNWN.js.map} +0 -0
  537. /package/dist/{chunk-X5PIDJ3L.js.map → chunk-DA4ZMCBU.js.map} +0 -0
  538. /package/dist/{chunk-H6RSANGQ.js.map → chunk-ETZ7KKOS.js.map} +0 -0
  539. /package/dist/{chunk-XZBXINXZ.js.map → chunk-GIC6BASP.js.map} +0 -0
  540. /package/dist/{chunk-SXQZMC7R.js.map → chunk-GR4C3FHT.js.map} +0 -0
  541. /package/dist/{chunk-7DYGPGCT.js.map → chunk-H5IIBGDM.js.map} +0 -0
  542. /package/dist/{chunk-CNNXMIS6.js.map → chunk-HFRGCNFY.js.map} +0 -0
  543. /package/dist/{chunk-MAG6M3B6.js.map → chunk-HTOWFFAI.js.map} +0 -0
  544. /package/dist/{chunk-FOCMJEHH.js.map → chunk-I4QAH4SY.js.map} +0 -0
  545. /package/dist/{chunk-FSGCXGK6.js.map → chunk-I6DUKBUI.js.map} +0 -0
  546. /package/dist/{chunk-6FUMA6AA.js.map → chunk-JGXMA6HL.js.map} +0 -0
  547. /package/dist/{chunk-TA7UZZMW.js.map → chunk-JHTF22NQ.js.map} +0 -0
  548. /package/dist/{chunk-DZ3CNJPB.js.map → chunk-LDOQE34V.js.map} +0 -0
  549. /package/dist/{chunk-MEW53VQJ.js.map → chunk-LDWIPYJ6.js.map} +0 -0
  550. /package/dist/{chunk-227UFSEQ.js.map → chunk-LEPOP46W.js.map} +0 -0
  551. /package/dist/{chunk-KJTSWJZN.js.map → chunk-LF6SHWVV.js.map} +0 -0
  552. /package/dist/{chunk-G6OZZX7P.js.map → chunk-LJAP4KSW.js.map} +0 -0
  553. /package/dist/{chunk-NV6BTBUI.js.map → chunk-LJNLLNEM.js.map} +0 -0
  554. /package/dist/{chunk-FFFZEF6B.js.map → chunk-LUDXSSTW.js.map} +0 -0
  555. /package/dist/{chunk-PCH2CVCS.js.map → chunk-LWBSEYW3.js.map} +0 -0
  556. /package/dist/{chunk-FMUJGGKW.js.map → chunk-M7DGN6JZ.js.map} +0 -0
  557. /package/dist/{chunk-TZIHB2LP.js.map → chunk-MNH2GM4O.js.map} +0 -0
  558. /package/dist/{chunk-RACZB5HT.js.map → chunk-N37X5RU7.js.map} +0 -0
  559. /package/dist/{chunk-LK4TOYPU.js.map → chunk-NF3NMAG7.js.map} +0 -0
  560. /package/dist/{chunk-AG46P24C.js.map → chunk-NNBZS3DY.js.map} +0 -0
  561. /package/dist/{chunk-LZ2JTO7N.js.map → chunk-OASGWNYL.js.map} +0 -0
  562. /package/dist/{chunk-C2JCVZWX.js.map → chunk-OLBZ2WGG.js.map} +0 -0
  563. /package/dist/{chunk-Z3SQEEB6.js.map → chunk-OUKBMQ2O.js.map} +0 -0
  564. /package/dist/{chunk-2Z3DG5CQ.js.map → chunk-P6GKRT2H.js.map} +0 -0
  565. /package/dist/{chunk-UGA6PZTX.js.map → chunk-P7LVYPIX.js.map} +0 -0
  566. /package/dist/{chunk-VE45LRCE.js.map → chunk-QRDSXR3V.js.map} +0 -0
  567. /package/dist/{chunk-KS67VHXA.js.map → chunk-QUVWFZOU.js.map} +0 -0
  568. /package/dist/{chunk-AI4QFDPR.js.map → chunk-R7FXPG4T.js.map} +0 -0
  569. /package/dist/{chunk-X66BHMAU.js.map → chunk-RJ57OOCD.js.map} +0 -0
  570. /package/dist/{chunk-VXMKW7YN.js.map → chunk-TRLCMLX7.js.map} +0 -0
  571. /package/dist/{chunk-ELCMVOQT.js.map → chunk-V3HUBF7T.js.map} +0 -0
  572. /package/dist/{chunk-KMIAD7JR.js.map → chunk-VHAKBUBD.js.map} +0 -0
  573. /package/dist/{chunk-GS5IFIVE.js.map → chunk-VYD63IFH.js.map} +0 -0
  574. /package/dist/{chunk-WSFPNCRA.js.map → chunk-XFPHV65N.js.map} +0 -0
  575. /package/dist/{chunk-JCUG7AXZ.js.map → chunk-XJJYSX6F.js.map} +0 -0
  576. /package/dist/{chunk-I6DURYZI.js.map → chunk-XMIAU4CO.js.map} +0 -0
  577. /package/dist/{chunk-PJIGYPO5.js.map → chunk-XQGFIAG7.js.map} +0 -0
  578. /package/dist/{chunk-B2URC6LJ.js.map → chunk-YWN3GYI2.js.map} +0 -0
  579. /package/dist/{chunk-TG6JEJDV.js.map → chunk-Z33VUMKY.js.map} +0 -0
  580. /package/dist/{graph-edge-decay-DGTBFALQ.js.map → deep-recall-config.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isNamespaceKind
3
- } from "./chunk-Y3BWCIY2.js";
3
+ } from "./chunk-2EHDPHMD.js";
4
4
  import {
5
5
  EngramAccessInputError
6
6
  } from "./chunk-2Z24E5W2.js";
@@ -40,4 +40,4 @@ export {
40
40
  positiveIntQueryParam,
41
41
  optionalNamespaceKindQueryParam
42
42
  };
43
- //# sourceMappingURL=chunk-FJMIQTMH.js.map
43
+ //# sourceMappingURL=chunk-5YQ7RFSO.js.map
@@ -1,12 +1,12 @@
1
+ import {
2
+ encryptCapsuleFile
3
+ } from "./chunk-X7Y7WX73.js";
1
4
  import {
2
5
  CAPSULE_ID_PATTERN,
3
6
  CapsuleBlockSchema,
4
7
  ExportBundleV2Schema,
5
8
  ExportManifestV2Schema
6
9
  } from "./chunk-WEHSQBFR.js";
7
- import {
8
- encryptCapsuleFile
9
- } from "./chunk-X7Y7WX73.js";
10
10
  import {
11
11
  CAPSULE_SCHEMA_VERSION,
12
12
  EXPORT_FORMAT
@@ -261,4 +261,4 @@ export {
261
261
  exportCapsule,
262
262
  isValidCapsuleSince
263
263
  };
264
- //# sourceMappingURL=chunk-KQAFEZQX.js.map
264
+ //# sourceMappingURL=chunk-7LCGFUMB.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseFrontmatter
3
- } from "./chunk-GS5IFIVE.js";
3
+ } from "./chunk-VYD63IFH.js";
4
4
  import {
5
5
  activityDigestPath,
6
6
  isValidActivityDate
@@ -199,4 +199,4 @@ export {
199
199
  buildStandup,
200
200
  standupHelp
201
201
  };
202
- //# sourceMappingURL=chunk-EESYTBXV.js.map
202
+ //# sourceMappingURL=chunk-7NCUHD5U.js.map
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  computeCorpusWatermarks,
6
6
  resolveCorpusNamespaceRoots
7
- } from "./chunk-I6DURYZI.js";
7
+ } from "./chunk-XMIAU4CO.js";
8
8
 
9
9
  // src/operator-doctor-corpus.ts
10
10
  var DIGEST_PREFIX_LENGTH = 12;
@@ -78,4 +78,4 @@ export {
78
78
  corpusWatermarksFromCheck,
79
79
  summarizeCorpusAndReplica
80
80
  };
81
- //# sourceMappingURL=chunk-X574KX52.js.map
81
+ //# sourceMappingURL=chunk-7ZMU4XQT.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-GS5IFIVE.js";
3
+ } from "./chunk-VYD63IFH.js";
4
4
  import {
5
5
  getCachedRuleMemories,
6
6
  setCachedRuleMemories
@@ -119,4 +119,4 @@ export {
119
119
  compareVerifiedSemanticRuleResults,
120
120
  searchVerifiedSemanticRules
121
121
  };
122
- //# sourceMappingURL=chunk-SG3Z67FB.js.map
122
+ //# sourceMappingURL=chunk-APZXA4WI.js.map
@@ -1,6 +1,3 @@
1
- import {
2
- CodexAdapter
3
- } from "./chunk-RSUYKGGZ.js";
4
1
  import {
5
2
  HermesAdapter
6
3
  } from "./chunk-42NQ7AVG.js";
@@ -10,6 +7,9 @@ import {
10
7
  import {
11
8
  ClaudeCodeAdapter
12
9
  } from "./chunk-J64TK33U.js";
10
+ import {
11
+ CodexAdapter
12
+ } from "./chunk-RSUYKGGZ.js";
13
13
 
14
14
  // src/adapters/registry.ts
15
15
  var AdapterRegistry = class {
@@ -53,4 +53,4 @@ var AdapterRegistry = class {
53
53
  export {
54
54
  AdapterRegistry
55
55
  };
56
- //# sourceMappingURL=chunk-2QSZNTDO.js.map
56
+ //# sourceMappingURL=chunk-AU7Q3LSC.js.map
@@ -37,14 +37,14 @@ import {
37
37
  classifyExtractionThrownError,
38
38
  classifyFallbackParseFailure
39
39
  } from "./chunk-BLDBT6HZ.js";
40
+ import {
41
+ delinearize
42
+ } from "./chunk-VEWZZM3H.js";
40
43
  import {
41
44
  buildExtensionsFooterForSummary,
42
45
  formatDaySummaryMemories,
43
46
  loadDaySummaryPrompt
44
47
  } from "./chunk-LVXBC6YB.js";
45
- import {
46
- delinearize
47
- } from "./chunk-VEWZZM3H.js";
48
48
  import {
49
49
  CONSOLIDATION_RESPONSE_SCHEMA,
50
50
  CUE_ANCHOR_PROMPT_INSTRUCTION,
@@ -2387,4 +2387,4 @@ export {
2387
2387
  shouldEnableLocalExtractionThinking,
2388
2388
  ExtractionEngine
2389
2389
  };
2390
- //# sourceMappingURL=chunk-VGMRI4J6.js.map
2390
+ //# sourceMappingURL=chunk-B75VCEX5.js.map
@@ -1,24 +1,24 @@
1
- import {
2
- RemoteSearchBackend
3
- } from "./chunk-YQNNHLCG.js";
4
- import {
5
- EmbedHelper
6
- } from "./chunk-6KTXE6A3.js";
7
1
  import {
8
2
  LanceDbBackend
9
- } from "./chunk-RACZB5HT.js";
3
+ } from "./chunk-N37X5RU7.js";
10
4
  import {
11
5
  MeilisearchBackend
12
- } from "./chunk-AG46P24C.js";
6
+ } from "./chunk-NNBZS3DY.js";
13
7
  import {
14
8
  NoopSearchBackend
15
9
  } from "./chunk-CYEPCZN5.js";
16
10
  import {
17
11
  OramaBackend
18
- } from "./chunk-XZBXINXZ.js";
12
+ } from "./chunk-GIC6BASP.js";
13
+ import {
14
+ RemoteSearchBackend
15
+ } from "./chunk-YQNNHLCG.js";
16
+ import {
17
+ EmbedHelper
18
+ } from "./chunk-6KTXE6A3.js";
19
19
  import {
20
20
  createConversationIndexBackend
21
- } from "./chunk-227UFSEQ.js";
21
+ } from "./chunk-LEPOP46W.js";
22
22
  import {
23
23
  FaissConversationIndexAdapter
24
24
  } from "./chunk-ET356KSB.js";
@@ -179,4 +179,4 @@ export {
179
179
  createConversationSearchBackend,
180
180
  createConversationIndexRuntime
181
181
  };
182
- //# sourceMappingURL=chunk-D35XLYQ7.js.map
182
+ //# sourceMappingURL=chunk-BE4Y6GK6.js.map
@@ -7,10 +7,10 @@ import {
7
7
  import {
8
8
  listMemoryGovernanceRuns,
9
9
  readMemoryGovernanceRunArtifact
10
- } from "./chunk-DZ3CNJPB.js";
10
+ } from "./chunk-LDOQE34V.js";
11
11
  import {
12
12
  StorageManager
13
- } from "./chunk-GS5IFIVE.js";
13
+ } from "./chunk-VYD63IFH.js";
14
14
  import {
15
15
  normalizeProjectionPreview,
16
16
  normalizeProjectionTags
@@ -1005,4 +1005,4 @@ export {
1005
1005
  verifyMemoryProjection,
1006
1006
  repairMemoryProjection
1007
1007
  };
1008
- //# sourceMappingURL=chunk-ELKD5PCD.js.map
1008
+ //# sourceMappingURL=chunk-BEXFNGQ3.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-GS5IFIVE.js";
3
+ } from "./chunk-VYD63IFH.js";
4
4
  import {
5
5
  composeMemoryEnvelope
6
6
  } from "./chunk-WKAXBXVA.js";
@@ -546,4 +546,4 @@ export {
546
546
  setSemanticRulePromotionTestHooks,
547
547
  promoteSemanticRuleFromMemory
548
548
  };
549
- //# sourceMappingURL=chunk-U5SRTYFS.js.map
549
+ //# sourceMappingURL=chunk-BFDOBESV.js.map
@@ -1,6 +1,3 @@
1
- import {
2
- emitGraphEvent
3
- } from "./chunk-DEUNUKTD.js";
4
1
  import {
5
2
  ActivationPathTracker,
6
3
  compareActivationPathCandidates,
@@ -9,6 +6,9 @@ import {
9
6
  import {
10
7
  readEdgeConfidence
11
8
  } from "./chunk-2LSZVONP.js";
9
+ import {
10
+ emitGraphEvent
11
+ } from "./chunk-DEUNUKTD.js";
12
12
 
13
13
  // src/graph.ts
14
14
  import { appendFile, mkdir, readFile, stat } from "fs/promises";
@@ -745,4 +745,4 @@ export {
745
745
  applyPageRankRefinement,
746
746
  applyLateralInhibition
747
747
  };
748
- //# sourceMappingURL=chunk-OLT3YTDH.js.map
748
+ //# sourceMappingURL=chunk-BIJAWZYW.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  hasMemoryData
3
- } from "./chunk-Y3BWCIY2.js";
3
+ } from "./chunk-2EHDPHMD.js";
4
4
  import {
5
5
  resolveNamespaceStorageRoot
6
- } from "./chunk-NGP2FPB2.js";
6
+ } from "./chunk-4UVDLNHQ.js";
7
7
  import {
8
8
  getConfiguredNamespaces
9
9
  } from "./chunk-EGALNSZ4.js";
@@ -724,4 +724,4 @@ export {
724
724
  runNamespaceMaintenancePlan,
725
725
  runNamespaceMaintenanceBatchPlan
726
726
  };
727
- //# sourceMappingURL=chunk-FU2NYFX6.js.map
727
+ //# sourceMappingURL=chunk-BO4PWIJY.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-B7RWBZXW.js";
4
4
  import {
5
5
  resolveCausalTrajectoryStoreDir
6
- } from "./chunk-2Z3DG5CQ.js";
6
+ } from "./chunk-P6GKRT2H.js";
7
7
  import {
8
8
  normalizeRecallTokens
9
9
  } from "./chunk-YCVB7X56.js";
@@ -339,4 +339,4 @@ export {
339
339
  scoreStitchCandidate,
340
340
  stitchCausalChain
341
341
  };
342
- //# sourceMappingURL=chunk-JMAG7WZ7.js.map
342
+ //# sourceMappingURL=chunk-BX6GW4KC.js.map
@@ -0,0 +1,198 @@
1
+ // src/shared-context/governance.ts
2
+ var SHARED_AUTHORITIES = ["informational", "advisory", "binding"];
3
+ function isSharedAuthority(value) {
4
+ return SHARED_AUTHORITIES.includes(value);
5
+ }
6
+ function optionalString(value) {
7
+ if (typeof value !== "string") return void 0;
8
+ const trimmed = value.trim();
9
+ return trimmed.length > 0 ? trimmed : void 0;
10
+ }
11
+ function readExactAuthority(value) {
12
+ if (typeof value !== "string" || value.length === 0) return { kind: "absent" };
13
+ if (!isSharedAuthority(value)) return { kind: "invalid", raw: value };
14
+ return { kind: "valid", authority: value };
15
+ }
16
+ function withOptionalFields(authority, source) {
17
+ const envelope = { authority };
18
+ const sharedBy = optionalString(source.sharedBy);
19
+ const expiresAt = optionalString(source.expiresAt);
20
+ const supersedes = optionalString(source.supersedes);
21
+ if (sharedBy) envelope.sharedBy = sharedBy;
22
+ if (expiresAt) envelope.expiresAt = expiresAt;
23
+ if (supersedes) envelope.supersedes = supersedes;
24
+ return envelope;
25
+ }
26
+ function applyDefaultEnvelope(input = {}, options = {}) {
27
+ const requested = readExactAuthority(input.authority);
28
+ if (requested.kind === "invalid") {
29
+ throw new Error(
30
+ `applyDefaultEnvelope: authority must be informational, advisory, or binding; got ${JSON.stringify(requested.raw)}`
31
+ );
32
+ }
33
+ if (requested.kind === "valid" && requested.authority === "binding" && options.binding !== true) {
34
+ throw new Error('applyDefaultEnvelope: authority "binding" requires an explicit binding flag');
35
+ }
36
+ return withOptionalFields(requested.kind === "valid" ? requested.authority : "informational", input);
37
+ }
38
+ function parseSharedEnvelope(raw) {
39
+ if (typeof raw !== "object" || raw === null || Array.isArray(raw)) {
40
+ return { authority: "informational" };
41
+ }
42
+ const record = raw;
43
+ const requested = readExactAuthority(record.authority);
44
+ const authority = requested.kind === "valid" ? requested.authority : "informational";
45
+ return withOptionalFields(authority, record);
46
+ }
47
+
48
+ // src/shared-context/authority-precedence.ts
49
+ function isKnownAuthority(value) {
50
+ return SHARED_AUTHORITIES.includes(value);
51
+ }
52
+ function resolveSharedAuthority(input) {
53
+ const allowBinding = input.allowBinding;
54
+ if (allowBinding !== void 0 && typeof allowBinding !== "boolean") {
55
+ throw new TypeError(
56
+ `resolveSharedAuthority: allowBinding must be a boolean when supplied, got ${typeof allowBinding}`
57
+ );
58
+ }
59
+ const authority = input.authority;
60
+ if (typeof authority !== "string") return "informational";
61
+ if (!isKnownAuthority(authority)) return "informational";
62
+ if (authority === "binding" && allowBinding !== true) {
63
+ return "advisory";
64
+ }
65
+ return authority;
66
+ }
67
+
68
+ // src/shared-context/envelope-actor.ts
69
+ function parseEnvelopeActor(value) {
70
+ const actor = value.trim();
71
+ if (actor.length === 0) return { ok: false, error: "missing_actor" };
72
+ if (actor.includes("\n")) return { ok: false, error: "invalid_actor" };
73
+ return { ok: true, actor };
74
+ }
75
+
76
+ // src/shared-context/iso-instant.ts
77
+ var ISO_INSTANT = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})$/;
78
+ function isStrictIsoInstant(value) {
79
+ if (typeof value !== "string") return false;
80
+ const match = ISO_INSTANT.exec(value);
81
+ if (!match) return false;
82
+ const year = Number(match[1]);
83
+ const month = Number(match[2]);
84
+ const day = Number(match[3]);
85
+ const hour = Number(match[4]);
86
+ const minute = Number(match[5]);
87
+ const second = Number(match[6]);
88
+ const utc = new Date(Date.UTC(year, month - 1, day, hour, minute, second));
89
+ return Number.isFinite(Date.parse(value)) && utc.getUTCFullYear() === year && utc.getUTCMonth() === month - 1 && utc.getUTCDate() === day && utc.getUTCHours() === hour && utc.getUTCMinutes() === minute && utc.getUTCSeconds() === second;
90
+ }
91
+
92
+ // src/shared-context/envelope-at.ts
93
+ function parseEnvelopeAt(value) {
94
+ if (typeof value !== "string") return { ok: false, error: "invalid_at" };
95
+ if (value.trim().length === 0) return { ok: false, error: "missing_at" };
96
+ if (!isStrictIsoInstant(value)) return { ok: false, error: "invalid_at" };
97
+ return { ok: true, at: new Date(Date.parse(value)).toISOString() };
98
+ }
99
+
100
+ // src/shared-context/envelope-id.ts
101
+ function parseEnvelopeId(value) {
102
+ const id = value.trim();
103
+ if (id.length === 0) return { ok: false, error: "missing_id" };
104
+ if (id.includes("\n")) return { ok: false, error: "invalid_id" };
105
+ return { ok: true, id };
106
+ }
107
+
108
+ // src/shared-context/envelope-io.ts
109
+ function requireEnvelopeActor(agentId) {
110
+ const parsed = parseEnvelopeActor(agentId);
111
+ if (!parsed.ok) {
112
+ throw new Error(`composeWriteEnvelope: agentId must be a non-blank single-line string (${parsed.error})`);
113
+ }
114
+ return parsed.actor;
115
+ }
116
+ function optionalEnvelopeAt(expiresAt) {
117
+ if (expiresAt === void 0) return void 0;
118
+ const parsed = parseEnvelopeAt(expiresAt);
119
+ if (!parsed.ok) {
120
+ throw new Error(`composeWriteEnvelope: expiresAt must be a valid ISO-8601 timestamp (${parsed.error})`);
121
+ }
122
+ return parsed.at;
123
+ }
124
+ function optionalEnvelopeId(supersedes) {
125
+ if (supersedes === void 0) return void 0;
126
+ const parsed = parseEnvelopeId(supersedes);
127
+ if (!parsed.ok) {
128
+ throw new Error(`composeWriteEnvelope: supersedes must be a non-blank single-line id (${parsed.error})`);
129
+ }
130
+ return parsed.id;
131
+ }
132
+ var UNATTRIBUTED_ACCESS_WRITE_ORIGIN = "unattributed:access-surface";
133
+ function resolveWriteOrigin(input) {
134
+ const identity = input.authenticatedIdentity?.trim() ?? "";
135
+ if (identity.length > 0) {
136
+ const requested = input.agentId.trim();
137
+ if (requested.length > 0 && requested !== identity) {
138
+ throw new Error(
139
+ `shared-context write origin mismatch: authenticated identity ${JSON.stringify(identity)} cannot publish as ${JSON.stringify(requested)}`
140
+ );
141
+ }
142
+ return { agent: identity, origin: identity };
143
+ }
144
+ const unattributed = input.unattributedOrigin?.trim() ?? "";
145
+ if (unattributed.length > 0) {
146
+ const label = input.agentId.trim();
147
+ return {
148
+ agent: label.length > 0 ? requireProducer(label) : requireProducer(unattributed),
149
+ origin: requireProducer(unattributed)
150
+ };
151
+ }
152
+ const actor = requireProducer(input.agentId);
153
+ return { agent: actor, origin: actor };
154
+ }
155
+ function requireProducer(value) {
156
+ const parsed = parseEnvelopeActor(value);
157
+ if (!parsed.ok) {
158
+ throw new Error(`shared-context write producer must be a non-blank single-line string (${parsed.error})`);
159
+ }
160
+ return parsed.actor;
161
+ }
162
+ function composeWriteEnvelope(input) {
163
+ const sharedBy = requireEnvelopeActor(input.origin);
164
+ const expiresAt = optionalEnvelopeAt(input.expiresAt);
165
+ const supersedes = optionalEnvelopeId(input.supersedes);
166
+ return applyDefaultEnvelope(
167
+ { sharedBy, authority: input.authority, expiresAt, supersedes },
168
+ { binding: input.allowBinding }
169
+ );
170
+ }
171
+ function envelopeToFrontmatterLines(envelope) {
172
+ const line = (key, value) => `${key}: ${JSON.stringify(value)}`;
173
+ const lines = [line("sharedBy", envelope.sharedBy ?? ""), line("authority", envelope.authority)];
174
+ if (envelope.expiresAt !== void 0) lines.push(line("expiresAt", envelope.expiresAt));
175
+ if (envelope.supersedes !== void 0) lines.push(line("supersedes", envelope.supersedes));
176
+ return lines;
177
+ }
178
+ function envelopeFromScalars(scalars) {
179
+ const record = {};
180
+ if (scalars.sharedBy !== null) record.sharedBy = scalars.sharedBy;
181
+ if (scalars.authority !== null) record.authority = scalars.authority;
182
+ if (scalars.expiresAt !== null) record.expiresAt = scalars.expiresAt;
183
+ if (scalars.supersedes !== null) record.supersedes = scalars.supersedes;
184
+ return parseSharedEnvelope(record);
185
+ }
186
+ function resolveReadAuthority(envelope, allowBinding) {
187
+ return resolveSharedAuthority({ authority: envelope.authority, allowBinding });
188
+ }
189
+
190
+ export {
191
+ UNATTRIBUTED_ACCESS_WRITE_ORIGIN,
192
+ resolveWriteOrigin,
193
+ composeWriteEnvelope,
194
+ envelopeToFrontmatterLines,
195
+ envelopeFromScalars,
196
+ resolveReadAuthority
197
+ };
198
+ //# sourceMappingURL=chunk-CC37E3QM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/shared-context/governance.ts","../src/shared-context/authority-precedence.ts","../src/shared-context/envelope-actor.ts","../src/shared-context/iso-instant.ts","../src/shared-context/envelope-at.ts","../src/shared-context/envelope-id.ts","../src/shared-context/envelope-io.ts"],"sourcesContent":["/**\n * Shared-item authority envelope (issue #1957).\n *\n * Pure parse/default/expiry helpers over the authority classes. Binding is\n * never inferred, and the authority token is validated exactly as supplied\n * or stored — a padded value never resolves to a privileged class.\n */\n\nexport const SHARED_AUTHORITIES = [\"informational\", \"advisory\", \"binding\"] as const;\nexport type SharedAuthority = (typeof SHARED_AUTHORITIES)[number];\n\nexport interface SharedEnvelope {\n sharedBy?: string;\n authority: SharedAuthority;\n expiresAt?: string;\n supersedes?: string;\n}\n\nexport interface SharedEnvelopeInput {\n sharedBy?: string;\n authority?: string;\n expiresAt?: string;\n supersedes?: string;\n}\n\nexport interface ApplyDefaultEnvelopeOptions {\n binding?: boolean;\n}\n\nfunction isSharedAuthority(value: string): value is SharedAuthority {\n return (SHARED_AUTHORITIES as readonly string[]).includes(value);\n}\n\nfunction optionalString(value: unknown): string | undefined {\n if (typeof value !== \"string\") return undefined;\n const trimmed = value.trim();\n return trimmed.length > 0 ? trimmed : undefined;\n}\n\ntype AuthorityToken =\n | { kind: \"absent\" }\n | { kind: \"invalid\"; raw: string }\n | { kind: \"valid\"; authority: SharedAuthority };\n\n/**\n * Read the authority token EXACTLY as supplied or stored. A padded value\n * such as `\" binding \"` is malformed data, never a normalized match for a\n * privileged class: trimming first would let stored whitespace resolve as\n * binding/advisory (AGENTS.md rule 45). Only the empty string counts as\n * \"unspecified\"; whitespace-only is invalid.\n */\nfunction readExactAuthority(value: unknown): AuthorityToken {\n if (typeof value !== \"string\" || value.length === 0) return { kind: \"absent\" };\n if (!isSharedAuthority(value)) return { kind: \"invalid\", raw: value };\n return { kind: \"valid\", authority: value };\n}\n\nfunction withOptionalFields(\n authority: SharedAuthority,\n source: { sharedBy?: unknown; expiresAt?: unknown; supersedes?: unknown },\n): SharedEnvelope {\n const envelope: SharedEnvelope = { authority };\n const sharedBy = optionalString(source.sharedBy);\n const expiresAt = optionalString(source.expiresAt);\n const supersedes = optionalString(source.supersedes);\n if (sharedBy) envelope.sharedBy = sharedBy;\n if (expiresAt) envelope.expiresAt = expiresAt;\n if (supersedes) envelope.supersedes = supersedes;\n return envelope;\n}\n\nexport function applyDefaultEnvelope(\n input: SharedEnvelopeInput = {},\n options: ApplyDefaultEnvelopeOptions = {},\n): SharedEnvelope {\n const requested = readExactAuthority(input.authority);\n if (requested.kind === \"invalid\") {\n throw new Error(\n `applyDefaultEnvelope: authority must be informational, advisory, or binding; got ${JSON.stringify(requested.raw)}`,\n );\n }\n if (requested.kind === \"valid\" && requested.authority === \"binding\" && options.binding !== true) {\n throw new Error(\"applyDefaultEnvelope: authority \\\"binding\\\" requires an explicit binding flag\");\n }\n return withOptionalFields(requested.kind === \"valid\" ? requested.authority : \"informational\", input);\n}\n\nexport function parseSharedEnvelope(raw: unknown): SharedEnvelope {\n if (typeof raw !== \"object\" || raw === null || Array.isArray(raw)) {\n return { authority: \"informational\" };\n }\n const record = raw as Record<string, unknown>;\n const requested = readExactAuthority(record.authority);\n const authority = requested.kind === \"valid\" ? requested.authority : \"informational\";\n return withOptionalFields(authority, record);\n}\n\nexport function isExpired(envelope: Pick<SharedEnvelope, \"expiresAt\">, nowMs: number): boolean {\n if (!Number.isFinite(nowMs)) return false;\n const expiresAt = envelope.expiresAt?.trim();\n if (!expiresAt) return false;\n const expiresAtMs = Date.parse(expiresAt);\n if (!Number.isFinite(expiresAtMs)) return false;\n return expiresAtMs <= nowMs;\n}\n","/**\n * Shared-item authority precedence (issue #1957).\n *\n * Pure helpers over the authority classes owned by `governance.ts`\n * (`SHARED_AUTHORITIES`). Resolution is least-privilege: an absent,\n * malformed, or unrecognized authority never resolves above\n * `informational`, and `binding` additionally requires the explicit\n * `allowBinding` flag. The helpers are exported for callers; wiring them\n * into the shared-context read and write paths is a later slice.\n */\n\nimport { SHARED_AUTHORITIES, type SharedAuthority } from \"./governance.js\";\n\nexport { SHARED_AUTHORITIES as SHARED_AUTHORITY_CLASSES };\nexport type { SharedAuthority as SharedAuthorityClass };\n\nexport interface ResolveSharedAuthorityInput {\n /** Raw authority value from an item's envelope, if any. */\n authority?: unknown;\n /** Explicit opt-in required before \"binding\" is honored. */\n allowBinding?: boolean;\n}\n\nconst AUTHORITY_RANK: Readonly<Record<SharedAuthority, number>> = {\n informational: 0,\n advisory: 1,\n binding: 2,\n};\n\nfunction isKnownAuthority(value: string): value is SharedAuthority {\n return (SHARED_AUTHORITIES as readonly string[]).includes(value);\n}\n\n\nexport function resolveSharedAuthority(input: ResolveSharedAuthorityInput): SharedAuthority {\n // Read the security switch ONCE. A getter (or a Proxy) can return undefined\n // during validation and true at the decision, which would let binding\n // through without a validated opt-in.\n const allowBinding = input.allowBinding;\n if (allowBinding !== undefined && typeof allowBinding !== \"boolean\") {\n // The flag is the security switch, so a truthy string or number must\n // not enable binding: reject it instead of coercing.\n throw new TypeError(\n `resolveSharedAuthority: allowBinding must be a boolean when supplied, got ${typeof allowBinding}`,\n );\n }\n const authority = input.authority;\n // Absent (missing key, undefined, null) and present-but-invalid both land\n // on informational — the least-privileged class — so an unmarked or\n // malformed legacy item can never be treated as binding. Validate the\n // exact value: no trim, no case-fold, because \" binding\" and \"BINDING\"\n // are unrecognized data, not normalized matches for a known class.\n if (typeof authority !== \"string\") return \"informational\";\n if (!isKnownAuthority(authority)) return \"informational\";\n if (authority === \"binding\" && allowBinding !== true) {\n // Downgrade rather than throw: a legacy item already carrying \"binding\"\n // is stored data, not a caller bug, so it resolves to the highest class\n // that does not require the explicit opt-in.\n return \"advisory\";\n }\n return authority;\n}\n\nexport function compareSharedAuthority(a: string, b: string): number {\n const rankA = isKnownAuthority(a) ? AUTHORITY_RANK[a] : AUTHORITY_RANK.informational;\n const rankB = isKnownAuthority(b) ? AUTHORITY_RANK[b] : AUTHORITY_RANK.informational;\n return Math.sign(rankA - rankB);\n}\n","/**\n * Shared-item envelope actor parse (issue #1957 leftover).\n *\n * Pure. Empty is missing_actor. Newline is invalid_actor.\n */\n\nexport type ParseEnvelopeActorResult =\n | { ok: true; actor: string }\n | { ok: false; error: \"missing_actor\" | \"invalid_actor\" };\n\nexport function parseEnvelopeActor(value: string): ParseEnvelopeActorResult {\n const actor = value.trim();\n if (actor.length === 0) return { ok: false, error: \"missing_actor\" };\n if (actor.includes(\"\\n\")) return { ok: false, error: \"invalid_actor\" };\n return { ok: true, actor };\n}\n","/**\n * Strict ISO-8601 instant validation for shared-context envelopes\n * (issue #1957 review round 3).\n *\n * `Date.parse` is permissive: under the supported Node runtime it reads\n * `\"2026-02-30\"` as March 2 and `\"1\"` as January 1 2001. A caller-supplied\n * expiry would therefore be silently reinterpreted into a governance deadline\n * the caller never asked for. Validate the ISO shape AND the calendar\n * components against the exact input, and reject rather than normalize.\n *\n * Extracted from `provenance.ts` so the envelope write path and the\n * provenance stamp share one validator instead of two copies.\n */\n\n// Linear ISO instant. No nested quantifiers.\nconst ISO_INSTANT =\n /^(\\d{4})-(\\d{2})-(\\d{2})T(\\d{2}):(\\d{2}):(\\d{2})(?:\\.\\d+)?(?:Z|[+-]\\d{2}:\\d{2})$/;\n\n/**\n * True only for a calendar-valid ISO-8601 instant carrying an explicit zone.\n * Non-strings and non-finite parses are rejected explicitly, never coerced.\n */\nexport function isStrictIsoInstant(value: unknown): boolean {\n if (typeof value !== \"string\") return false;\n const match = ISO_INSTANT.exec(value);\n if (!match) return false;\n const year = Number(match[1]);\n const month = Number(match[2]);\n const day = Number(match[3]);\n const hour = Number(match[4]);\n const minute = Number(match[5]);\n const second = Number(match[6]);\n const utc = new Date(Date.UTC(year, month - 1, day, hour, minute, second));\n return (\n Number.isFinite(Date.parse(value)) &&\n utc.getUTCFullYear() === year &&\n utc.getUTCMonth() === month - 1 &&\n utc.getUTCDate() === day &&\n utc.getUTCHours() === hour &&\n utc.getUTCMinutes() === minute &&\n utc.getUTCSeconds() === second\n );\n}\n","/**\n * Shared-item envelope at parse (issue #1957 leftover).\n *\n * Pure. Blank is missing_at. Anything that is not a calendar-valid ISO-8601\n * instant is invalid_at — including values permissive `Date.parse` would\n * silently reinterpret (`\"2026-02-30\"` -> March 2, `\"1\"` -> January 1 2001),\n * a whitespace-padded timestamp, and any non-string or non-finite input\n * (review round 3). `trim()` only detects blankness; validation reads the\n * exact value, so normalization can never widen what passes.\n */\n\nimport { isStrictIsoInstant } from \"./iso-instant.js\";\n\nexport type ParseEnvelopeAtResult =\n | { ok: true; at: string }\n | { ok: false; error: \"missing_at\" | \"invalid_at\" };\n\nexport function parseEnvelopeAt(value: string): ParseEnvelopeAtResult {\n if (typeof value !== \"string\") return { ok: false, error: \"invalid_at\" };\n if (value.trim().length === 0) return { ok: false, error: \"missing_at\" };\n if (!isStrictIsoInstant(value)) return { ok: false, error: \"invalid_at\" };\n return { ok: true, at: new Date(Date.parse(value)).toISOString() };\n}\n","/**\n * Shared-item envelope id parse (issue #1957 leftover).\n *\n * Pure. Empty is missing_id. Newline is invalid_id.\n */\n\nexport type ParseEnvelopeIdResult =\n | { ok: true; id: string }\n | { ok: false; error: \"missing_id\" | \"invalid_id\" };\n\nexport function parseEnvelopeId(value: string): ParseEnvelopeIdResult {\n const id = value.trim();\n if (id.length === 0) return { ok: false, error: \"missing_id\" };\n if (id.includes(\"\\n\")) return { ok: false, error: \"invalid_id\" };\n return { ok: true, id };\n}\n","/**\n * Shared-item envelope wiring (issue #1957, control 1: origin + authority).\n *\n * Bridges the pure envelope helpers onto the markdown frontmatter the\n * shared-context manager reads and writes.\n *\n * Write side rejects invalid input (an unrecognized authority or a binding\n * request without the config opt-in throws — never silently reinterpreted).\n * Read side resolves least privilege: a missing, malformed, or unrecognized\n * authority never resolves above informational, and stored binding\n * downgrades to advisory unless config opted in.\n */\n\nimport { applyDefaultEnvelope, parseSharedEnvelope, type SharedEnvelope } from \"./governance.js\";\nimport { resolveSharedAuthority } from \"./authority-precedence.js\";\nimport type { SharedAuthority } from \"./governance.js\";\nimport { parseEnvelopeActor } from \"./envelope-actor.js\";\nimport { parseEnvelopeAt } from \"./envelope-at.js\";\nimport { parseEnvelopeId } from \"./envelope-id.js\";\n\nexport interface ComposeWriteEnvelopeInput {\n /** Governance origin. Becomes the envelope's `sharedBy`. */\n origin: string;\n /** Requested authority class. Unrecognized values throw. */\n authority?: string;\n /** Optional ISO-8601 expiry. Invalid timestamps throw. */\n expiresAt?: string;\n /** Optional id of the item this one supersedes. */\n supersedes?: string;\n /** Config opt-in (`sharedContextAllowBindingAuthority`). Binding throws without it. */\n allowBinding: boolean;\n}\n\nfunction requireEnvelopeActor(agentId: string): string {\n const parsed = parseEnvelopeActor(agentId);\n if (!parsed.ok) {\n throw new Error(`composeWriteEnvelope: agentId must be a non-blank single-line string (${parsed.error})`);\n }\n return parsed.actor;\n}\n\nfunction optionalEnvelopeAt(expiresAt: string | undefined): string | undefined {\n if (expiresAt === undefined) return undefined;\n const parsed = parseEnvelopeAt(expiresAt);\n if (!parsed.ok) {\n throw new Error(`composeWriteEnvelope: expiresAt must be a valid ISO-8601 timestamp (${parsed.error})`);\n }\n return parsed.at;\n}\n\nfunction optionalEnvelopeId(supersedes: string | undefined): string | undefined {\n if (supersedes === undefined) return undefined;\n const parsed = parseEnvelopeId(supersedes);\n if (!parsed.ok) {\n throw new Error(`composeWriteEnvelope: supersedes must be a non-blank single-line id (${parsed.error})`);\n }\n return parsed.id;\n}\n\n/**\n * Reserved governance origin for an authenticated external access write that\n * resolved no principal (`agentAccessHttp.principal` unset, no adapter\n * identity). Server-owned: the caller cannot mint or influence it, and the\n * caller-supplied `agentId` never becomes audit metadata on that path.\n */\nexport const UNATTRIBUTED_ACCESS_WRITE_ORIGIN = \"unattributed:access-surface\";\n\nexport interface ResolvedWriteIdentity {\n /**\n * Producer identity: frontmatter `agent`, on-disk segment, and the\n * cross-signals grouping key. Self-declared by the caller only on\n * surfaces that resolved no server identity; never decides authority.\n */\n agent: string;\n /** Governance origin stamped as the envelope's `sharedBy`. */\n origin: string;\n}\n\n/**\n * Resolve the producer identity and governance origin for a shared-context\n * write. They are different fields with different trust requirements:\n *\n * - The origin (`sharedBy`) is audit metadata and is always server-derived.\n * When the surface resolved an authenticated identity, that identity IS the\n * origin; when it resolved none but the write crosses an external\n * boundary, the caller-supplied `unattributedOrigin` token is stamped\n * instead — never the caller's value. Only a trusted in-process caller\n * (no identity, no token) may stamp its own id as the origin.\n * - The producer (`agent`) drives grouping and display only. When an\n * authenticated identity exists it is also the producer, and a\n * caller-supplied `agentId` naming a different agent is REJECTED, so a\n * caller can never publish an item attributed to another agent. Without a\n * server identity the caller's label stands as the producer — collapsing\n * it instead would merge every writer into one agent and erase\n * multi-agent overlaps from `synthesizeCrossSignals`.\n */\nexport function resolveWriteOrigin(input: {\n agentId: string;\n authenticatedIdentity?: string;\n unattributedOrigin?: string;\n}): ResolvedWriteIdentity {\n const identity = input.authenticatedIdentity?.trim() ?? \"\";\n if (identity.length > 0) {\n const requested = input.agentId.trim();\n if (requested.length > 0 && requested !== identity) {\n throw new Error(\n `shared-context write origin mismatch: authenticated identity ${JSON.stringify(identity)} cannot publish as ${JSON.stringify(requested)}`,\n );\n }\n return { agent: identity, origin: identity };\n }\n const unattributed = input.unattributedOrigin?.trim() ?? \"\";\n if (unattributed.length > 0) {\n const label = input.agentId.trim();\n return {\n agent: label.length > 0 ? requireProducer(label) : requireProducer(unattributed),\n origin: requireProducer(unattributed),\n };\n }\n const actor = requireProducer(input.agentId);\n return { agent: actor, origin: actor };\n}\n\nfunction requireProducer(value: string): string {\n const parsed = parseEnvelopeActor(value);\n if (!parsed.ok) {\n throw new Error(`shared-context write producer must be a non-blank single-line string (${parsed.error})`);\n }\n return parsed.actor;\n}\n\n/**\n * Validate and compose the envelope for a shared-context write.\n * `sharedBy` is stamped from the server-derived origin — provenance is\n * never injected through item content or the caller's producer label.\n */\nexport function composeWriteEnvelope(input: ComposeWriteEnvelopeInput): SharedEnvelope {\n const sharedBy = requireEnvelopeActor(input.origin);\n const expiresAt = optionalEnvelopeAt(input.expiresAt);\n const supersedes = optionalEnvelopeId(input.supersedes);\n return applyDefaultEnvelope(\n { sharedBy, authority: input.authority, expiresAt, supersedes },\n { binding: input.allowBinding },\n );\n}\n\n/** Serialize an envelope into frontmatter lines (caller adds the `---` fences). */\nexport function envelopeToFrontmatterLines(envelope: SharedEnvelope): string[] {\n const line = (key: string, value: string) => `${key}: ${JSON.stringify(value)}`;\n const lines = [line(\"sharedBy\", envelope.sharedBy ?? \"\"), line(\"authority\", envelope.authority)];\n if (envelope.expiresAt !== undefined) lines.push(line(\"expiresAt\", envelope.expiresAt));\n if (envelope.supersedes !== undefined) lines.push(line(\"supersedes\", envelope.supersedes));\n return lines;\n}\n\n/**\n * Build an envelope from frontmatter scalars already read off a stored item.\n * Missing scalars (legacy items) compose to informational with no expiry.\n */\nexport function envelopeFromScalars(scalars: {\n sharedBy: string | null;\n authority: string | null;\n expiresAt: string | null;\n supersedes: string | null;\n}): SharedEnvelope {\n const record: Record<string, string> = {};\n if (scalars.sharedBy !== null) record.sharedBy = scalars.sharedBy;\n if (scalars.authority !== null) record.authority = scalars.authority;\n if (scalars.expiresAt !== null) record.expiresAt = scalars.expiresAt;\n if (scalars.supersedes !== null) record.supersedes = scalars.supersedes;\n return parseSharedEnvelope(record);\n}\n\n/**\n * Resolve a stored envelope's authority for read-side consumption.\n * Least privilege: unrecognized/missing stays informational; binding\n * requires the config opt-in or downgrades to advisory.\n */\nexport function resolveReadAuthority(\n envelope: Pick<SharedEnvelope, \"authority\">,\n allowBinding: boolean,\n): SharedAuthority {\n return resolveSharedAuthority({ authority: envelope.authority, allowBinding });\n}\n"],"mappings":"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","names":[]}
@@ -13,13 +13,13 @@ import {
13
13
  requestEntityCanonicalIdReconcile,
14
14
  withRawEntityPageMutation
15
15
  } from "./chunk-NNZFPYYX.js";
16
- import {
17
- parseExportBundle
18
- } from "./chunk-WEHSQBFR.js";
19
16
  import {
20
17
  decryptCapsuleFileInMemory,
21
18
  isEncryptedCapsuleFile
22
19
  } from "./chunk-X7Y7WX73.js";
20
+ import {
21
+ parseExportBundle
22
+ } from "./chunk-WEHSQBFR.js";
23
23
  import {
24
24
  assertIsDirectoryNotSymlink,
25
25
  assertRealpathInsideRoot,
@@ -294,4 +294,4 @@ function mintForkId(capsuleId, originalId, now) {
294
294
  export {
295
295
  importCapsule
296
296
  };
297
- //# sourceMappingURL=chunk-J2R275FN.js.map
297
+ //# sourceMappingURL=chunk-CTCGHNWN.js.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  parseXrayFormat
3
- } from "./chunk-H6RSANGQ.js";
3
+ } from "./chunk-ETZ7KKOS.js";
4
4
  import {
5
5
  RECALL_DISCLOSURE_LEVELS,
6
6
  isRecallDisclosure
7
- } from "./chunk-XXW32OL7.js";
7
+ } from "./chunk-OYV6RKPM.js";
8
8
 
9
9
  // src/recall-xray-cli.ts
10
10
  function parseXrayDisclosureFlag(value) {
@@ -50,4 +50,4 @@ export {
50
50
  parseXrayBudgetFlag,
51
51
  parseXrayCliOptions
52
52
  };
53
- //# sourceMappingURL=chunk-X5PIDJ3L.js.map
53
+ //# sourceMappingURL=chunk-DA4ZMCBU.js.map
@@ -3,19 +3,22 @@ import {
3
3
  } from "./chunk-V7IZKJI3.js";
4
4
  import {
5
5
  AdapterRegistry
6
- } from "./chunk-2QSZNTDO.js";
6
+ } from "./chunk-AU7Q3LSC.js";
7
7
  import {
8
8
  WriteRateLimiter
9
9
  } from "./chunk-TB6CBZ5V.js";
10
10
  import {
11
11
  serializeInlineScriptValue
12
12
  } from "./chunk-3HSRWJTC.js";
13
+ import {
14
+ respondDeepRecall
15
+ } from "./chunk-NN5CQTAJ.js";
13
16
  import {
14
17
  handleSupportPassportOwnerHttp
15
- } from "./chunk-D5VPIJN3.js";
18
+ } from "./chunk-227WJVPY.js";
16
19
  import {
17
20
  buildSupportPassportPublicRequestHandler
18
- } from "./chunk-WSFPNCRA.js";
21
+ } from "./chunk-XFPHV65N.js";
19
22
  import {
20
23
  EngramMcpServer,
21
24
  MCP_SUPPORTED_PROTOCOL_VERSIONS,
@@ -25,10 +28,10 @@ import {
25
28
  processChatMessage,
26
29
  sessionBelongsToPrincipal,
27
30
  subscribeChatTranscript
28
- } from "./chunk-6RPB2TDG.js";
31
+ } from "./chunk-5HO3QBAD.js";
29
32
  import {
30
33
  RelayMissionStoreError
31
- } from "./chunk-PCH2CVCS.js";
34
+ } from "./chunk-LWBSEYW3.js";
32
35
  import {
33
36
  toDottedRemnicName
34
37
  } from "./chunk-ZQUVBZI4.js";
@@ -43,13 +46,13 @@ import {
43
46
  } from "./chunk-CTVWELNK.js";
44
47
  import {
45
48
  validateRequest
46
- } from "./chunk-QL4U3SJA.js";
49
+ } from "./chunk-NHLEFBE2.js";
47
50
  import {
48
51
  nonEmptyQueryParam,
49
52
  optionalNamespaceKindQueryParam,
50
53
  optionalQueryString,
51
54
  positiveIntQueryParam
52
- } from "./chunk-FJMIQTMH.js";
55
+ } from "./chunk-5YQ7RFSO.js";
53
56
  import {
54
57
  handleMcpGetSse
55
58
  } from "./chunk-SRT6SHVZ.js";
@@ -67,15 +70,15 @@ import {
67
70
  authorizationProbeNamespaces,
68
71
  authorizationProbeRequiresPrincipalNamespace,
69
72
  probeOperationAuthorization
70
- } from "./chunk-KMIAD7JR.js";
73
+ } from "./chunk-VHAKBUBD.js";
71
74
  import {
72
75
  CorrectionContractError,
73
76
  getOperation,
74
77
  resolveQueryNamespaceWritablePreflight
75
- } from "./chunk-AYWPIH4M.js";
78
+ } from "./chunk-5P2KNFJZ.js";
76
79
  import {
77
80
  handleWhoKnowsHttpQuery
78
- } from "./chunk-FFFZEF6B.js";
81
+ } from "./chunk-LUDXSSTW.js";
79
82
  import {
80
83
  isTrustZoneName
81
84
  } from "./chunk-5QZR2RA3.js";
@@ -84,7 +87,7 @@ import {
84
87
  } from "./chunk-DEUNUKTD.js";
85
88
  import {
86
89
  isRecallDisclosure
87
- } from "./chunk-XXW32OL7.js";
90
+ } from "./chunk-OYV6RKPM.js";
88
91
  import {
89
92
  assertOperationAllowed,
90
93
  capabilityAllowsOp,
@@ -96,7 +99,7 @@ import {
96
99
  OFFLINE_SYNC_APPLY_MAX_BODY_BYTES,
97
100
  OFFLINE_SYNC_FILE_CONTENT_MAX_CHUNK_BYTES,
98
101
  OFFLINE_SYNC_SNAPSHOT_BASE_MAX_BODY_BYTES
99
- } from "./chunk-JCUG7AXZ.js";
102
+ } from "./chunk-XJJYSX6F.js";
100
103
  import {
101
104
  projectTagProjectId
102
105
  } from "./chunk-QBC33MPY.js";
@@ -1809,6 +1812,11 @@ var EngramAccessHttpServer = class extends ReviewDeckAccessHttpBase {
1809
1812
  await respondMeetingsGet(res, this.respondJson.bind(this), this.service, meetingGetRemnic[1] ?? "", this.wearablesScope(req, parsed.searchParams.get("namespace") ?? void 0, parsed.searchParams.get("sessionKey") ?? void 0));
1810
1813
  return;
1811
1814
  }
1815
+ if (req.method === "POST" && (pathname === "/engram/v1/recall/deep" || pathname === "/remnic/v1/recall/deep")) {
1816
+ this.enforceTokenOp("deep_recall");
1817
+ await respondDeepRecall(req, res, this.respondJson.bind(this), this.readJsonBody.bind(this), this.service, (ns, sk) => this.wearablesScope(req, ns ?? parsed.searchParams.get("namespace") ?? void 0, sk ?? parsed.searchParams.get("sessionKey") ?? void 0));
1818
+ return;
1819
+ }
1812
1820
  if (req.method === "GET" && (pathname === "/engram/v1/location/status" || pathname === "/remnic/v1/location/status")) {
1813
1821
  this.enforceTokenOp("location_status");
1814
1822
  await respondLocationStatus(res, this.respondJson.bind(this), this.service);
@@ -3579,4 +3587,4 @@ export {
3579
3587
  resolveDefaultAdminConsolePublicDir,
3580
3588
  EngramAccessHttpServer
3581
3589
  };
3582
- //# sourceMappingURL=chunk-IVAW3HBF.js.map
3590
+ //# sourceMappingURL=chunk-DH3V7RCQ.js.map