@remnic/core 9.64.1 → 9.64.3

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 (462) hide show
  1. package/dist/access-admin-ops-surface.d.ts +12 -11
  2. package/dist/access-admin-ops-surface.js +23 -22
  3. package/dist/access-authorization-probe.d.ts +12 -11
  4. package/dist/access-authorization-probe.js +24 -23
  5. package/dist/access-boundary.d.ts +13 -12
  6. package/dist/access-boundary.js +23 -22
  7. package/dist/access-cli.js +70 -68
  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 +12 -11
  11. package/dist/access-extraction-force-flush.js +23 -22
  12. package/dist/access-health-types.d.ts +1 -1
  13. package/dist/access-http-lcm-compaction.d.ts +12 -11
  14. package/dist/access-http-lifecycle-flush.d.ts +12 -11
  15. package/dist/access-http-offline-stream.d.ts +12 -11
  16. package/dist/access-http-query.d.ts +2 -2
  17. package/dist/access-http-query.js +25 -24
  18. package/dist/access-http.d.ts +13 -12
  19. package/dist/access-http.js +40 -39
  20. package/dist/access-identity-continuity-surface.d.ts +9 -9
  21. package/dist/access-identity-continuity-surface.js +23 -22
  22. package/dist/access-lcm-surface.d.ts +12 -11
  23. package/dist/access-lcm-surface.js +23 -22
  24. package/dist/access-mcp-output-schemas.js +1 -1
  25. package/dist/access-mcp.d.ts +12 -186
  26. package/dist/access-mcp.js +32 -31
  27. package/dist/access-memory-search-fanout.d.ts +2 -2
  28. package/dist/{access-namespace-preflight-Dj9uR4Cq.d.ts → access-namespace-preflight-CYeI1R2_.d.ts} +1 -1
  29. package/dist/access-namespace-preflight.d.ts +3 -3
  30. package/dist/access-namespace-preflight.js +23 -22
  31. package/dist/access-observe-write-surface.d.ts +12 -11
  32. package/dist/access-observe-write-surface.js +23 -22
  33. package/dist/access-offline-manifest.d.ts +9 -9
  34. package/dist/access-operations-batch.js +26 -25
  35. package/dist/access-operations.d.ts +16 -15
  36. package/dist/access-operations.js +29 -28
  37. package/dist/access-recall-concurrency.d.ts +12 -11
  38. package/dist/access-recall-concurrency.js +23 -22
  39. package/dist/access-recall-response.d.ts +12 -11
  40. package/dist/access-recall-response.js +23 -22
  41. package/dist/access-recall-surface.d.ts +12 -11
  42. package/dist/access-recall-surface.js +23 -22
  43. package/dist/access-schema.d.ts +88 -88
  44. package/dist/access-schema.js +3 -3
  45. package/dist/{access-service-Bd0lzaHp.d.ts → access-service-BKtdXnyk.d.ts} +358 -76
  46. package/dist/access-service-helpers.d.ts +12 -11
  47. package/dist/access-service.d.ts +12 -11
  48. package/dist/access-service.js +23 -22
  49. package/dist/access-surface-catalog.d.ts +12 -11
  50. package/dist/access-surface-catalog.js +27 -24
  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-recall.d.ts +1 -1
  56. package/dist/active-recall.js +1 -1
  57. package/dist/adapters/index.js +4 -4
  58. package/dist/adapters/registry.js +2 -2
  59. package/dist/ambient-provenance.d.ts +1 -1
  60. package/dist/artifact-search.d.ts +1 -1
  61. package/dist/behavior-learner.d.ts +1 -1
  62. package/dist/behavior-signals.d.ts +1 -1
  63. package/dist/bootstrap.d.ts +9 -9
  64. package/dist/briefing-window.d.ts +2 -2
  65. package/dist/briefing.d.ts +2 -2
  66. package/dist/briefing.js +10 -10
  67. package/dist/buffer-surprise-report.d.ts +1 -1
  68. package/dist/buffer-turn-helpers.d.ts +1 -1
  69. package/dist/buffer.d.ts +2 -2
  70. package/dist/bulk-import/index.d.ts +3 -3
  71. package/dist/calibration.d.ts +1 -1
  72. package/dist/capabilities.d.ts +1 -1
  73. package/dist/{capsule-crypto-GWVG7LGC.js → capsule-crypto-7FJQINUR.js} +2 -2
  74. package/dist/{catalog-rKYbN7zF.d.ts → catalog-CLAqQO2L.d.ts} +1 -1
  75. package/dist/causal-behavior.d.ts +1 -1
  76. package/dist/causal-consolidation.d.ts +1 -1
  77. package/dist/causal-consolidation.js +11 -11
  78. package/dist/causal-trajectory-graph.d.ts +1 -1
  79. package/dist/{chunk-D267K4V5.js → chunk-246HFJVG.js} +2 -2
  80. package/dist/{chunk-OWHERGF2.js → chunk-2NLLXCJG.js} +2 -2
  81. package/dist/{chunk-2RZCOG63.js → chunk-2QI2JBLQ.js} +359 -238
  82. package/dist/chunk-2QI2JBLQ.js.map +1 -0
  83. package/dist/{chunk-WNO5W2TP.js → chunk-3A46U7XG.js} +2 -2
  84. package/dist/{chunk-XFAWGUNX.js → chunk-3LOQN3TO.js} +10 -5
  85. package/dist/chunk-3LOQN3TO.js.map +1 -0
  86. package/dist/{chunk-5Q5BEWJ3.js → chunk-44DSGZFF.js} +2 -2
  87. package/dist/{chunk-VENMDW4U.js → chunk-55SJFHVD.js} +6 -6
  88. package/dist/{chunk-VCBG52MM.js → chunk-5HERQ5FX.js} +7 -7
  89. package/dist/{chunk-IRXMJLTW.js → chunk-5HK3CJAR.js} +2 -2
  90. package/dist/{chunk-VSKA2ATE.js → chunk-6LTCUN3T.js} +2 -2
  91. package/dist/{chunk-IHPYTG6F.js → chunk-7BVO64UC.js} +2 -2
  92. package/dist/{chunk-ZUIVJ3BB.js → chunk-7V3AZWWZ.js} +4 -4
  93. package/dist/{chunk-Y5ZIQFWH.js → chunk-A2IBK3TG.js} +2 -2
  94. package/dist/{chunk-6I6IOMKS.js → chunk-C6AKYOFO.js} +2 -2
  95. package/dist/{chunk-ZGGTIBWN.js → chunk-CKZHKFY3.js} +3 -3
  96. package/dist/{chunk-FMGTFMT3.js → chunk-DA2O3F5V.js} +25 -11
  97. package/dist/chunk-DA2O3F5V.js.map +1 -0
  98. package/dist/{chunk-GSQDPL45.js → chunk-DC4FJY2G.js} +22 -7
  99. package/dist/{chunk-GSQDPL45.js.map → chunk-DC4FJY2G.js.map} +1 -1
  100. package/dist/{chunk-JE3AKPOO.js → chunk-DG6MJD7W.js} +2 -2
  101. package/dist/{chunk-P4SD7BSA.js → chunk-DHKV6E4A.js} +2 -2
  102. package/dist/{chunk-KOE3RLNN.js → chunk-EJDLQRUO.js} +2 -2
  103. package/dist/{chunk-VD2OT77P.js → chunk-GEULB2VI.js} +2 -1
  104. package/dist/chunk-GEULB2VI.js.map +1 -0
  105. package/dist/{chunk-DRS3OX77.js → chunk-GVRLED7R.js} +2 -2
  106. package/dist/{chunk-EAWJSY2Z.js → chunk-H5CGAD7L.js} +1 -1
  107. package/dist/{chunk-DLZBOEJY.js → chunk-IFK3PVM7.js} +2 -2
  108. package/dist/{chunk-E7MYSCSL.js → chunk-IJXECCUV.js} +2 -2
  109. package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
  110. package/dist/{chunk-NMQXUGTU.js → chunk-JCSUNXYJ.js} +3 -3
  111. package/dist/{chunk-5W7CTZ2E.js → chunk-KQAFEZQX.js} +4 -4
  112. package/dist/{chunk-YY63AMGP.js → chunk-KRPE7ANR.js} +2 -2
  113. package/dist/{chunk-AGC3Q53R.js → chunk-LOETWOEB.js} +2 -2
  114. package/dist/{chunk-7X35RPN3.js → chunk-LZKCMK3U.js} +2 -2
  115. package/dist/{chunk-4KKVDOCD.js → chunk-MJRVF7SF.js} +26 -25
  116. package/dist/chunk-MJRVF7SF.js.map +1 -0
  117. package/dist/{chunk-K547KS3X.js → chunk-ML3U4KPR.js} +4 -4
  118. package/dist/{chunk-HIEWDJ2O.js → chunk-MSTNSVXI.js} +2 -1
  119. package/dist/chunk-MSTNSVXI.js.map +1 -0
  120. package/dist/{chunk-CI6YIT5S.js → chunk-NO7B6DRB.js} +2 -2
  121. package/dist/{chunk-Q3IRE6E4.js → chunk-ON2P3SHG.js} +2 -2
  122. package/dist/{chunk-2Q4UAPLD.js → chunk-OQIRBGUU.js} +4 -4
  123. package/dist/{chunk-WDFXRHOZ.js → chunk-PE76XIDM.js} +3 -3
  124. package/dist/{chunk-MVIYRRVJ.js → chunk-PMVPCZJZ.js} +5 -5
  125. package/dist/{chunk-VCNGVU62.js → chunk-PVIXAMWM.js} +2 -2
  126. package/dist/{chunk-QHNO6AND.js → chunk-RWLRKMZK.js} +2 -2
  127. package/dist/{chunk-UWSETW6O.js → chunk-SB6YBB2V.js} +2 -2
  128. package/dist/{chunk-DTQ3OB7O.js → chunk-SHQFYZTD.js} +2 -2
  129. package/dist/chunk-TKI2WOL5.js +256 -0
  130. package/dist/chunk-TKI2WOL5.js.map +1 -0
  131. package/dist/chunk-TY35YQ6E.js +77 -0
  132. package/dist/chunk-TY35YQ6E.js.map +1 -0
  133. package/dist/{chunk-AL43367I.js → chunk-UMDZXW5J.js} +23 -1
  134. package/dist/chunk-UMDZXW5J.js.map +1 -0
  135. package/dist/{chunk-G5OB4XZX.js → chunk-VANZKHTN.js} +4 -4
  136. package/dist/{chunk-IPUUMLSM.js → chunk-VLES5S4K.js} +271 -62
  137. package/dist/chunk-VLES5S4K.js.map +1 -0
  138. package/dist/{chunk-DPPTG6VJ.js → chunk-VRYEXPRX.js} +1 -1
  139. package/dist/chunk-VRYEXPRX.js.map +1 -0
  140. package/dist/{chunk-3CYVTO6A.js → chunk-VUP47UJI.js} +3 -3
  141. package/dist/{chunk-OTVHRZZD.js → chunk-WBM5NR4E.js} +2 -2
  142. package/dist/{chunk-UVYI6VIX.js → chunk-X7Y7WX73.js} +1 -1
  143. package/dist/{chunk-7D3TTGHY.js → chunk-XACYILRA.js} +38 -12
  144. package/dist/chunk-XACYILRA.js.map +1 -0
  145. package/dist/{chunk-B2GICNOJ.js → chunk-XH4IQVTN.js} +2 -2
  146. package/dist/{chunk-OWAYQK5V.js → chunk-XZUCNVGE.js} +8 -8
  147. package/dist/{chunk-4FSCGYTQ.js → chunk-YFQTDE7N.js} +2 -2
  148. package/dist/{chunk-RMB22Q3R.js → chunk-YXGU3MDQ.js} +2 -2
  149. package/dist/{chunk-XSPRZZEX.js → chunk-Z6CJLYXT.js} +4 -4
  150. package/dist/{chunk-DZ2AVS2H.js → chunk-ZSYE2QVJ.js} +2 -2
  151. package/dist/{cli-0dDmOsJ8.d.ts → cli-CLvBewKf.d.ts} +5 -5
  152. package/dist/cli.d.ts +13 -13
  153. package/dist/cli.js +56 -55
  154. package/dist/coding/pre-action-gate.d.ts +1 -1
  155. package/dist/compounding/engine.d.ts +2 -2
  156. package/dist/compounding/engine.js +10 -10
  157. package/dist/compounding/preference-consolidator.d.ts +1 -1
  158. package/dist/compression-optimizer.d.ts +1 -1
  159. package/dist/config.d.ts +1 -1
  160. package/dist/config.js +1 -1
  161. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  162. package/dist/connectors/codex-materialize-runner.js +10 -10
  163. package/dist/connectors/codex-materialize.d.ts +1 -1
  164. package/dist/connectors/index.d.ts +1 -1
  165. package/dist/connectors/index.js +10 -10
  166. package/dist/consolidation-provenance-check.d.ts +2 -2
  167. package/dist/consolidation-undo.d.ts +2 -2
  168. package/dist/contradiction/index.d.ts +2 -2
  169. package/dist/contradiction/index.js +4 -4
  170. package/dist/converge-config.d.ts +1 -1
  171. package/dist/convergence-refresh.d.ts +2 -2
  172. package/dist/convergence-refresh.js +12 -12
  173. package/dist/conversation-index/backend.d.ts +1 -1
  174. package/dist/conversation-index/chunker.d.ts +1 -1
  175. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  176. package/dist/conversation-index/indexer.d.ts +1 -1
  177. package/dist/conversation-index/search.d.ts +1 -1
  178. package/dist/corpus-watermark.d.ts +1 -1
  179. package/dist/corpus-watermark.js +12 -12
  180. package/dist/day-summary.d.ts +1 -1
  181. package/dist/delinearize.d.ts +1 -1
  182. package/dist/dependency-propagation-config.d.ts +1 -1
  183. package/dist/{dependency-propagation-delivery-Cr8u-XwC.d.ts → dependency-propagation-delivery-DMqIw9Zh.d.ts} +1 -1
  184. package/dist/direct-answer-wiring.d.ts +1 -1
  185. package/dist/direct-answer.d.ts +1 -1
  186. package/dist/embedding-fallback.d.ts +1 -1
  187. package/dist/enrichment/index.d.ts +1 -1
  188. package/dist/entity-origin-fields.d.ts +1 -1
  189. package/dist/entity-retrieval.d.ts +2 -2
  190. package/dist/entity-retrieval.js +10 -10
  191. package/dist/entity-schema.d.ts +1 -1
  192. package/dist/episodic-context.d.ts +1 -1
  193. package/dist/explicit-capture.d.ts +9 -9
  194. package/dist/external-wiki-access.d.ts +12 -11
  195. package/dist/external-wiki-access.js +24 -23
  196. package/dist/external-wiki-collection-registration.d.ts +1 -1
  197. package/dist/external-wiki-collection.d.ts +1 -1
  198. package/dist/external-wiki-mcp-tools.d.ts +12 -13
  199. package/dist/extraction-error-classification.d.ts +1 -1
  200. package/dist/extraction-faithfulness.d.ts +1 -1
  201. package/dist/extraction-judge-telemetry.d.ts +1 -1
  202. package/dist/extraction-judge-training.d.ts +1 -1
  203. package/dist/extraction-judge.d.ts +1 -1
  204. package/dist/extraction-liveness.d.ts +1 -1
  205. package/dist/extraction-normalization.d.ts +1 -1
  206. package/dist/extraction-prompt.d.ts +1 -1
  207. package/dist/extraction-source-grounding-rules.d.ts +1 -1
  208. package/dist/extraction-source-grounding.d.ts +1 -1
  209. package/dist/extraction.d.ts +1 -1
  210. package/dist/extraction.js +10 -10
  211. package/dist/fallback-llm.d.ts +1 -1
  212. package/dist/graph-dashboard-diff.d.ts +1 -1
  213. package/dist/graph-dashboard-key.d.ts +1 -1
  214. package/dist/graph-dashboard-parser.d.ts +1 -1
  215. package/dist/graph-edge-reinforcement.d.ts +1 -1
  216. package/dist/graph-path-reconstruction.d.ts +1 -1
  217. package/dist/graph-path-scoring.d.ts +1 -1
  218. package/dist/graph-snapshot.d.ts +1 -1
  219. package/dist/graph.d.ts +1 -1
  220. package/dist/harmonic-retrieval.js +1 -1
  221. package/dist/importance.d.ts +1 -1
  222. package/dist/importers/index.d.ts +1 -1
  223. package/dist/in-flight-reads.d.ts +1 -1
  224. package/dist/index.d.ts +709 -700
  225. package/dist/index.js +116 -80
  226. package/dist/intent.d.ts +1 -1
  227. package/dist/lcm/engine.d.ts +1 -1
  228. package/dist/lcm/engine.js +3 -3
  229. package/dist/lcm/index.d.ts +1 -1
  230. package/dist/lcm/index.js +11 -11
  231. package/dist/lcm/tools.d.ts +1 -1
  232. package/dist/lifecycle.d.ts +1 -1
  233. package/dist/live-connectors-runner.d.ts +1 -1
  234. package/dist/local-llm.d.ts +1 -1
  235. package/dist/local-model-endpoint.d.ts +1 -1
  236. package/dist/maintenance/memory-governance.d.ts +1 -1
  237. package/dist/maintenance/memory-governance.js +10 -10
  238. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +2 -2
  239. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +10 -10
  240. package/dist/maintenance/rebuild-memory-projection.d.ts +2 -2
  241. package/dist/maintenance/rebuild-memory-projection.js +11 -11
  242. package/dist/{maintenance-BpNjuZk4.d.ts → maintenance-DITiehFX.d.ts} +3 -3
  243. package/dist/mcp-memory-inspector-app.d.ts +12 -11
  244. package/dist/mcp-read-only-tools.js +1 -1
  245. package/dist/memory-action-policy.d.ts +1 -1
  246. package/dist/memory-cache.d.ts +1 -1
  247. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  248. package/dist/memory-projection-store.d.ts +1 -1
  249. package/dist/memory-provenance.d.ts +1 -1
  250. package/dist/memory-snapshot.d.ts +1 -1
  251. package/dist/memory-worth-outcomes.d.ts +2 -2
  252. package/dist/models-json.d.ts +1 -1
  253. package/dist/namespaces/migrate.d.ts +3 -3
  254. package/dist/namespaces/migrate.js +11 -11
  255. package/dist/namespaces/principal.d.ts +1 -1
  256. package/dist/namespaces/search.d.ts +1 -1
  257. package/dist/namespaces/search.js +7 -7
  258. package/dist/namespaces/storage.d.ts +3 -3
  259. package/dist/namespaces/storage.js +10 -10
  260. package/dist/native-knowledge.d.ts +1 -1
  261. package/dist/offline-sync-impression-drain.d.ts +1 -1
  262. package/dist/operator-doctor-corpus.d.ts +1 -1
  263. package/dist/operator-doctor-corpus.js +13 -13
  264. package/dist/operator-doctor-replica.d.ts +1 -1
  265. package/dist/operator-toolkit.d.ts +3 -3
  266. package/dist/operator-toolkit.js +19 -19
  267. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  268. package/dist/orchestration/maintenance.d.ts +4 -4
  269. package/dist/orchestration/maintenance.js +16 -16
  270. package/dist/{orchestrator-B3ZQ8CTJ.d.ts → orchestrator-6fPa2l9x.d.ts} +8 -8
  271. package/dist/orchestrator.d.ts +9 -9
  272. package/dist/orchestrator.js +70 -68
  273. package/dist/patterns-cli.d.ts +1 -1
  274. package/dist/{pipeline-q5emoXD6.d.ts → pipeline-DHpYtfM3.d.ts} +1 -1
  275. package/dist/policy-runtime.d.ts +1 -1
  276. package/dist/proactive-contention.d.ts +1 -1
  277. package/dist/provenance.d.ts +1 -1
  278. package/dist/{public-http-CQN-i7Ai.d.ts → public-http-BT36aBb-.d.ts} +1 -1
  279. package/dist/{qmd-YC6YGphs.d.ts → qmd-BaX31tM0.d.ts} +1 -1
  280. package/dist/qmd-preflight.d.ts +2 -2
  281. package/dist/qmd-recall-cache.d.ts +1 -1
  282. package/dist/qmd.d.ts +2 -2
  283. package/dist/recall-concurrency-config.d.ts +1 -1
  284. package/dist/recall-disclosure-escalation.d.ts +1 -1
  285. package/dist/recall-explain-renderer.d.ts +1 -1
  286. package/dist/recall-explain-renderer.js +3 -3
  287. package/dist/recall-memory-map.d.ts +1 -1
  288. package/dist/recall-planner-llm.d.ts +1 -1
  289. package/dist/recall-state.d.ts +1 -1
  290. package/dist/recall-tag-filter.d.ts +1 -1
  291. package/dist/recall-timings.d.ts +1 -1
  292. package/dist/recall-xray-cli.d.ts +1 -1
  293. package/dist/recall-xray-cli.js +4 -4
  294. package/dist/recall-xray-renderer.d.ts +1 -1
  295. package/dist/recall-xray-renderer.js +3 -3
  296. package/dist/recall-xray.d.ts +1 -1
  297. package/dist/recall-xray.js +2 -2
  298. package/dist/reconcile/cursor.d.ts +1 -1
  299. package/dist/reconcile/manifest.d.ts +1 -1
  300. package/dist/reconcile/plan.d.ts +1 -1
  301. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  302. package/dist/replay/normalizers/claude.d.ts +1 -1
  303. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  304. package/dist/replay/normalizers/shared.d.ts +1 -1
  305. package/dist/replay/runner.d.ts +1 -1
  306. package/dist/replay/types.d.ts +1 -1
  307. package/dist/replica-divergence.d.ts +1 -1
  308. package/dist/replica-peers-config.d.ts +1 -1
  309. package/dist/resolve-auth-token.d.ts +1 -1
  310. package/dist/resume-bundles.js +2 -2
  311. package/dist/retrieval-agents.d.ts +2 -2
  312. package/dist/retrieval-tiers.d.ts +1 -1
  313. package/dist/routing/engine.d.ts +1 -1
  314. package/dist/routing/store.d.ts +1 -1
  315. package/dist/salvage-envelope.d.ts +1 -1
  316. package/dist/schemas.d.ts +108 -108
  317. package/dist/{scope-profiles-De8F7YQ6.d.ts → scope-profiles-1hYWJ9bM.d.ts} +1 -1
  318. package/dist/search/embed-helper.d.ts +1 -1
  319. package/dist/search/factory.d.ts +1 -1
  320. package/dist/search/factory.js +6 -6
  321. package/dist/search/index.d.ts +1 -1
  322. package/dist/search/index.js +10 -10
  323. package/dist/search/lancedb-backend.d.ts +1 -1
  324. package/dist/search/lancedb-backend.js +2 -2
  325. package/dist/search/meilisearch-backend.d.ts +1 -1
  326. package/dist/search/meilisearch-backend.js +2 -2
  327. package/dist/search/noop-backend.d.ts +1 -1
  328. package/dist/search/orama-backend.d.ts +1 -1
  329. package/dist/search/orama-backend.js +2 -2
  330. package/dist/search/port.d.ts +1 -1
  331. package/dist/search/remote-backend.d.ts +1 -1
  332. package/dist/{semantic-consolidation-Bf-hm2LQ.d.ts → semantic-consolidation-Chmddvcg.d.ts} +1 -1
  333. package/dist/semantic-consolidation.d.ts +2 -2
  334. package/dist/semantic-consolidation.js +11 -11
  335. package/dist/semantic-rule-promotion.js +10 -10
  336. package/dist/semantic-rule-verifier.d.ts +1 -1
  337. package/dist/semantic-rule-verifier.js +10 -10
  338. package/dist/{service-D83osSRn.d.ts → service-DMs_dCCg.d.ts} +2 -2
  339. package/dist/session-observer-bands.d.ts +1 -1
  340. package/dist/session-observer-state.d.ts +1 -1
  341. package/dist/shared-context/manager.d.ts +9 -9
  342. package/dist/signal.d.ts +1 -1
  343. package/dist/source-agent-qualifier.d.ts +1 -1
  344. package/dist/source-agent-qualifier.js +10 -10
  345. package/dist/{storage-BHWbpbhj.d.ts → storage-CzorrpcN.d.ts} +12 -3
  346. package/dist/storage.d.ts +2 -2
  347. package/dist/storage.js +9 -9
  348. package/dist/summarizer.d.ts +1 -1
  349. package/dist/summary-snapshot.d.ts +1 -1
  350. package/dist/support-passport/index.d.ts +15 -14
  351. package/dist/support-passport/index.js +26 -25
  352. package/dist/temporal-supersession.d.ts +2 -2
  353. package/dist/temporal-timeline-recall.d.ts +1 -1
  354. package/dist/temporal-validity.d.ts +1 -1
  355. package/dist/threading.d.ts +1 -1
  356. package/dist/tier-migration.d.ts +2 -2
  357. package/dist/tier-routing.d.ts +1 -1
  358. package/dist/topics.d.ts +1 -1
  359. package/dist/transcript.d.ts +1 -1
  360. package/dist/transfer/backup.js +2 -2
  361. package/dist/transfer/capsule-export.js +2 -2
  362. package/dist/transfer/capsule-import.js +2 -2
  363. package/dist/transfer/types.d.ts +66 -66
  364. package/dist/trust-score-stage.d.ts +1 -1
  365. package/dist/trust-score.d.ts +1 -1
  366. package/dist/{types-CpgsN-Gb.d.ts → types-BP5MC8UU.d.ts} +10 -5
  367. package/dist/types.d.ts +1 -1
  368. package/dist/types.js +1 -1
  369. package/dist/utility-runtime.d.ts +1 -1
  370. package/dist/verified-recall.js +10 -10
  371. package/dist/who-knows-cli.d.ts +155 -0
  372. package/dist/who-knows-cli.js +109 -0
  373. package/dist/who-knows-cli.js.map +1 -0
  374. package/dist/who-knows.d.ts +127 -0
  375. package/dist/who-knows.js +118 -0
  376. package/dist/who-knows.js.map +1 -0
  377. package/dist/write-envelope.d.ts +1 -1
  378. package/package.json +2 -2
  379. package/src/access-boundary.ts +1 -0
  380. package/src/access-http.ts +15 -0
  381. package/src/access-mcp-output-schemas.ts +1 -0
  382. package/src/access-mcp.ts +3 -2
  383. package/src/access-operations-batch.ts +8 -0
  384. package/src/access-service.ts +26 -0
  385. package/src/access-surface-catalog.ts +2 -0
  386. package/src/cli/okf-commands.ts +23 -0
  387. package/src/cli.ts +2 -1
  388. package/src/config.ts +2 -1
  389. package/src/index.ts +3 -0
  390. package/src/mcp-read-only-tools.ts +1 -0
  391. package/src/okf/cli.ts +42 -0
  392. package/src/okf/config.ts +34 -0
  393. package/src/okf/lint.ts +110 -0
  394. package/src/okf/sweep.ts +63 -0
  395. package/src/okf/type-mapping.test.ts +207 -0
  396. package/src/okf/type-mapping.ts +79 -0
  397. package/src/orchestrator.ts +2 -0
  398. package/src/storage/entity-store.ts +9 -5
  399. package/src/storage/profile-header.ts +33 -9
  400. package/src/storage/questions-file.ts +50 -0
  401. package/src/storage.ts +76 -63
  402. package/src/types.ts +4 -5
  403. package/src/who-knows-cli.ts +96 -0
  404. package/src/who-knows.test.ts +257 -0
  405. package/src/who-knows.ts +364 -0
  406. package/dist/chunk-2RZCOG63.js.map +0 -1
  407. package/dist/chunk-4KKVDOCD.js.map +0 -1
  408. package/dist/chunk-7D3TTGHY.js.map +0 -1
  409. package/dist/chunk-AL43367I.js.map +0 -1
  410. package/dist/chunk-DPPTG6VJ.js.map +0 -1
  411. package/dist/chunk-FMGTFMT3.js.map +0 -1
  412. package/dist/chunk-HIEWDJ2O.js.map +0 -1
  413. package/dist/chunk-IPUUMLSM.js.map +0 -1
  414. package/dist/chunk-VD2OT77P.js.map +0 -1
  415. package/dist/chunk-XFAWGUNX.js.map +0 -1
  416. /package/dist/{capsule-crypto-GWVG7LGC.js.map → capsule-crypto-7FJQINUR.js.map} +0 -0
  417. /package/dist/{chunk-D267K4V5.js.map → chunk-246HFJVG.js.map} +0 -0
  418. /package/dist/{chunk-OWHERGF2.js.map → chunk-2NLLXCJG.js.map} +0 -0
  419. /package/dist/{chunk-WNO5W2TP.js.map → chunk-3A46U7XG.js.map} +0 -0
  420. /package/dist/{chunk-5Q5BEWJ3.js.map → chunk-44DSGZFF.js.map} +0 -0
  421. /package/dist/{chunk-VENMDW4U.js.map → chunk-55SJFHVD.js.map} +0 -0
  422. /package/dist/{chunk-VCBG52MM.js.map → chunk-5HERQ5FX.js.map} +0 -0
  423. /package/dist/{chunk-IRXMJLTW.js.map → chunk-5HK3CJAR.js.map} +0 -0
  424. /package/dist/{chunk-VSKA2ATE.js.map → chunk-6LTCUN3T.js.map} +0 -0
  425. /package/dist/{chunk-IHPYTG6F.js.map → chunk-7BVO64UC.js.map} +0 -0
  426. /package/dist/{chunk-ZUIVJ3BB.js.map → chunk-7V3AZWWZ.js.map} +0 -0
  427. /package/dist/{chunk-Y5ZIQFWH.js.map → chunk-A2IBK3TG.js.map} +0 -0
  428. /package/dist/{chunk-6I6IOMKS.js.map → chunk-C6AKYOFO.js.map} +0 -0
  429. /package/dist/{chunk-ZGGTIBWN.js.map → chunk-CKZHKFY3.js.map} +0 -0
  430. /package/dist/{chunk-JE3AKPOO.js.map → chunk-DG6MJD7W.js.map} +0 -0
  431. /package/dist/{chunk-P4SD7BSA.js.map → chunk-DHKV6E4A.js.map} +0 -0
  432. /package/dist/{chunk-KOE3RLNN.js.map → chunk-EJDLQRUO.js.map} +0 -0
  433. /package/dist/{chunk-DRS3OX77.js.map → chunk-GVRLED7R.js.map} +0 -0
  434. /package/dist/{chunk-EAWJSY2Z.js.map → chunk-H5CGAD7L.js.map} +0 -0
  435. /package/dist/{chunk-DLZBOEJY.js.map → chunk-IFK3PVM7.js.map} +0 -0
  436. /package/dist/{chunk-E7MYSCSL.js.map → chunk-IJXECCUV.js.map} +0 -0
  437. /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
  438. /package/dist/{chunk-NMQXUGTU.js.map → chunk-JCSUNXYJ.js.map} +0 -0
  439. /package/dist/{chunk-5W7CTZ2E.js.map → chunk-KQAFEZQX.js.map} +0 -0
  440. /package/dist/{chunk-YY63AMGP.js.map → chunk-KRPE7ANR.js.map} +0 -0
  441. /package/dist/{chunk-AGC3Q53R.js.map → chunk-LOETWOEB.js.map} +0 -0
  442. /package/dist/{chunk-7X35RPN3.js.map → chunk-LZKCMK3U.js.map} +0 -0
  443. /package/dist/{chunk-K547KS3X.js.map → chunk-ML3U4KPR.js.map} +0 -0
  444. /package/dist/{chunk-CI6YIT5S.js.map → chunk-NO7B6DRB.js.map} +0 -0
  445. /package/dist/{chunk-Q3IRE6E4.js.map → chunk-ON2P3SHG.js.map} +0 -0
  446. /package/dist/{chunk-2Q4UAPLD.js.map → chunk-OQIRBGUU.js.map} +0 -0
  447. /package/dist/{chunk-WDFXRHOZ.js.map → chunk-PE76XIDM.js.map} +0 -0
  448. /package/dist/{chunk-MVIYRRVJ.js.map → chunk-PMVPCZJZ.js.map} +0 -0
  449. /package/dist/{chunk-VCNGVU62.js.map → chunk-PVIXAMWM.js.map} +0 -0
  450. /package/dist/{chunk-QHNO6AND.js.map → chunk-RWLRKMZK.js.map} +0 -0
  451. /package/dist/{chunk-UWSETW6O.js.map → chunk-SB6YBB2V.js.map} +0 -0
  452. /package/dist/{chunk-DTQ3OB7O.js.map → chunk-SHQFYZTD.js.map} +0 -0
  453. /package/dist/{chunk-G5OB4XZX.js.map → chunk-VANZKHTN.js.map} +0 -0
  454. /package/dist/{chunk-3CYVTO6A.js.map → chunk-VUP47UJI.js.map} +0 -0
  455. /package/dist/{chunk-OTVHRZZD.js.map → chunk-WBM5NR4E.js.map} +0 -0
  456. /package/dist/{chunk-UVYI6VIX.js.map → chunk-X7Y7WX73.js.map} +0 -0
  457. /package/dist/{chunk-B2GICNOJ.js.map → chunk-XH4IQVTN.js.map} +0 -0
  458. /package/dist/{chunk-OWAYQK5V.js.map → chunk-XZUCNVGE.js.map} +0 -0
  459. /package/dist/{chunk-4FSCGYTQ.js.map → chunk-YFQTDE7N.js.map} +0 -0
  460. /package/dist/{chunk-RMB22Q3R.js.map → chunk-YXGU3MDQ.js.map} +0 -0
  461. /package/dist/{chunk-XSPRZZEX.js.map → chunk-Z6CJLYXT.js.map} +0 -0
  462. /package/dist/{chunk-DZ2AVS2H.js.map → chunk-ZSYE2QVJ.js.map} +0 -0
@@ -1,22 +1,22 @@
1
- import { b as NamespaceRecord } from './catalog-rKYbN7zF.js';
2
- import { P as PluginConfig, C as CodingContext, x as MemoryCategory, G as GatewayConfig, aG as DaySummaryResult, o as RecallDisclosure, R as RecallPlanMode, M as MemoryFile, K as MemoryLifecycleEvent, E as EntityFile, z as MemoryStatus, p as SourceConnectorProvenance, bd as DreamsStatusResult, D as DreamsPhase, a as DreamsRunResult } from './types-CpgsN-Gb.js';
3
- import { S as ScopePlan, E as EngramAccessNamespaceWritableRequest, W as WritableNamespaceResult } from './access-namespace-preflight-Dj9uR4Cq.js';
4
- import { S as StorageManager } from './storage-BHWbpbhj.js';
1
+ import { b as NamespaceRecord } from './catalog-CLAqQO2L.js';
2
+ import { P as PluginConfig, C as CodingContext, x as MemoryCategory, G as GatewayConfig, M as MemoryFile, aG as DaySummaryResult, o as RecallDisclosure, R as RecallPlanMode, K as MemoryLifecycleEvent, E as EntityFile, z as MemoryStatus, p as SourceConnectorProvenance, bd as DreamsStatusResult, D as DreamsPhase, a as DreamsRunResult } from './types-BP5MC8UU.js';
3
+ import { S as ScopePlan, E as EngramAccessNamespaceWritableRequest, W as WritableNamespaceResult } from './access-namespace-preflight-CYeI1R2_.js';
4
+ import { S as StorageManager } from './storage-CzorrpcN.js';
5
5
  import { a as Peer, b as PeerProfile } from './types-B1VHaf2w.js';
6
6
  import { RecallExplainJsonPayload } from './recall-explain-renderer.js';
7
7
  import { CitationUsageRequest, CitationUsageResult } from './access-citation.js';
8
8
  import { EngramAccessHealthResponse } from './access-health-types.js';
9
9
  import { ResolveSecretRefFn } from './resolve-auth-token.js';
10
- import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, P as PatternReinforcementResult } from './orchestrator-B3ZQ8CTJ.js';
10
+ import { O as Orchestrator, I as IntentDebugSnapshot, G as GraphRecallSnapshot, P as PatternReinforcementResult } from './orchestrator-6fPa2l9x.js';
11
11
  import { BudgetWarning } from './cross-namespace-budget.js';
12
12
  import { ExplicitCaptureInput } from './explicit-capture.js';
13
13
  import { LiveConnectorsRunSummary } from './live-connectors-runner.js';
14
14
  import { readMemoryGovernanceRunArtifact } from './maintenance/memory-governance.js';
15
- import { W as WearablesService, c as MeetingsListResult, b as MeetingsGetResult, a as MeetingsDayBuildSummary } from './service-D83osSRn.js';
15
+ import { W as WearablesService, c as MeetingsListResult, b as MeetingsGetResult, a as MeetingsDayBuildSummary } from './service-DMs_dCCg.js';
16
16
  import { AnomalyDetectorResult } from './recall-audit-anomaly.js';
17
17
  import { WearablesMeetingsScope } from './access-wearables-meetings-surface.js';
18
18
  import { GraphSnapshotRequest, GraphSnapshotResponse } from './graph-snapshot.js';
19
- import { S as ScopeProfileLayerResolution, a as ScopeProfilePromotionResolution, R as ResolvedScopeProfilePlan } from './scope-profiles-De8F7YQ6.js';
19
+ import { S as ScopeProfileLayerResolution, a as ScopeProfilePromotionResolution, R as ResolvedScopeProfilePlan } from './scope-profiles-1hYWJ9bM.js';
20
20
  import { RecallContextComposition } from './recall-context-composition.js';
21
21
  import { LastRecallSnapshot } from './recall-state.js';
22
22
  import { TrustZoneStoreStatus, TrustZoneName, TrustZoneRecordKind, TrustZoneSourceClass, TrustZoneProvenanceScore, TrustZonePromotionResult, TrustZoneDemoSeedResult } from './trust-zones.js';
@@ -32,6 +32,7 @@ import { LcmMessagePartInput, MessagePartSourceFormat } from './message-parts/in
32
32
  import { RecallRequest, ObserveRequest } from './access-schema.js';
33
33
  import { OfflineSyncFileState, OfflineSyncSnapshot, OfflineSyncFileRecord, OfflineSyncFileContentChunk, OfflineSyncApplyFileContentChunkResult, OfflineSyncApplyChangesetResult } from './offline-sync.js';
34
34
  import { RecallXraySnapshot } from './recall-xray.js';
35
+ import { Readable, Writable } from 'node:stream';
35
36
  import { withHeldFileLock } from './utils/serialize-mutations.js';
36
37
  import { ExportCapsuleOptions, ExportCapsuleResult } from './transfer/capsule-export.js';
37
38
  import { ImportCapsuleOptions, ImportCapsuleResult } from './transfer/capsule-import.js';
@@ -932,24 +933,24 @@ declare const SupportPassportDraftCardSchema: z.ZodEffects<z.ZodObject<{
932
933
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
933
934
  sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
934
935
  }, "strict", z.ZodTypeAny, {
935
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
936
936
  title: string;
937
937
  sourceMemoryIds: string[];
938
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
938
939
  statement: string;
939
940
  }, {
940
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
941
941
  title: string;
942
942
  sourceMemoryIds: string[];
943
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
943
944
  statement: string;
944
945
  }>, {
945
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
946
946
  title: string;
947
947
  sourceMemoryIds: string[];
948
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
948
949
  statement: string;
949
950
  }, {
950
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
951
951
  title: string;
952
952
  sourceMemoryIds: string[];
953
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
953
954
  statement: string;
954
955
  }>;
955
956
  declare const SupportPassportDraftOutputSchema: z.ZodObject<{
@@ -959,38 +960,38 @@ declare const SupportPassportDraftOutputSchema: z.ZodObject<{
959
960
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
960
961
  sourceMemoryIds: z.ZodArray<z.ZodString, "many">;
961
962
  }, "strict", z.ZodTypeAny, {
962
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
963
963
  title: string;
964
964
  sourceMemoryIds: string[];
965
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
965
966
  statement: string;
966
967
  }, {
967
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
968
968
  title: string;
969
969
  sourceMemoryIds: string[];
970
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
970
971
  statement: string;
971
972
  }>, {
972
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
973
973
  title: string;
974
974
  sourceMemoryIds: string[];
975
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
975
976
  statement: string;
976
977
  }, {
977
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
978
978
  title: string;
979
979
  sourceMemoryIds: string[];
980
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
980
981
  statement: string;
981
982
  }>, "many">;
982
983
  }, "strict", z.ZodTypeAny, {
983
984
  cards: {
984
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
985
985
  title: string;
986
986
  sourceMemoryIds: string[];
987
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
987
988
  statement: string;
988
989
  }[];
989
990
  }, {
990
991
  cards: {
991
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
992
992
  title: string;
993
993
  sourceMemoryIds: string[];
994
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
994
995
  statement: string;
995
996
  }[];
996
997
  }>;
@@ -1000,34 +1001,34 @@ declare const SupportPassportDraftModelInputSchema: z.ZodEffects<z.ZodObject<{
1000
1001
  memoryId: z.ZodString;
1001
1002
  content: z.ZodString;
1002
1003
  }, "strict", z.ZodTypeAny, {
1003
- content: string;
1004
1004
  memoryId: string;
1005
- }, {
1006
1005
  content: string;
1006
+ }, {
1007
1007
  memoryId: string;
1008
+ content: string;
1008
1009
  }>, "many">;
1009
1010
  }, "strict", z.ZodTypeAny, {
1010
1011
  memories: {
1011
- content: string;
1012
1012
  memoryId: string;
1013
+ content: string;
1013
1014
  }[];
1014
1015
  consent: true;
1015
1016
  }, {
1016
1017
  memories: {
1017
- content: string;
1018
1018
  memoryId: string;
1019
+ content: string;
1019
1020
  }[];
1020
1021
  consent: true;
1021
1022
  }>, {
1022
1023
  memories: {
1023
- content: string;
1024
1024
  memoryId: string;
1025
+ content: string;
1025
1026
  }[];
1026
1027
  consent: true;
1027
1028
  }, {
1028
1029
  memories: {
1029
- content: string;
1030
1030
  memoryId: string;
1031
+ content: string;
1031
1032
  }[];
1032
1033
  consent: true;
1033
1034
  }>;
@@ -1065,38 +1066,38 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
1065
1066
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1066
1067
  updatedAt: z.ZodEffects<z.ZodString, string, string>;
1067
1068
  }, "strict", z.ZodTypeAny, {
1068
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1069
1069
  title: string;
1070
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1070
1071
  updatedAt: string;
1071
1072
  cardId: string;
1072
1073
  statement: string;
1073
1074
  }, {
1074
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1075
1075
  title: string;
1076
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1076
1077
  updatedAt: string;
1077
1078
  cardId: string;
1078
1079
  statement: string;
1079
1080
  }>, "many">;
1080
1081
  }, "strict", z.ZodTypeAny, {
1081
- expiresAt: string;
1082
1082
  schemaVersion: 1;
1083
+ expiresAt: string;
1083
1084
  updatedAt: string;
1084
1085
  grantId: string;
1085
1086
  cards: {
1086
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1087
1087
  title: string;
1088
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1088
1089
  updatedAt: string;
1089
1090
  cardId: string;
1090
1091
  statement: string;
1091
1092
  }[];
1092
1093
  }, {
1093
- expiresAt: string;
1094
1094
  schemaVersion: 1;
1095
+ expiresAt: string;
1095
1096
  updatedAt: string;
1096
1097
  grantId: string;
1097
1098
  cards: {
1098
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1099
1099
  title: string;
1100
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1100
1101
  updatedAt: string;
1101
1102
  cardId: string;
1102
1103
  statement: string;
@@ -1106,13 +1107,13 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
1106
1107
  }, "strict", z.ZodTypeAny, {
1107
1108
  question: string;
1108
1109
  guide: {
1109
- expiresAt: string;
1110
1110
  schemaVersion: 1;
1111
+ expiresAt: string;
1111
1112
  updatedAt: string;
1112
1113
  grantId: string;
1113
1114
  cards: {
1114
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1115
1115
  title: string;
1116
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1116
1117
  updatedAt: string;
1117
1118
  cardId: string;
1118
1119
  statement: string;
@@ -1121,13 +1122,13 @@ declare const SupportPassportAnswerModelInputSchema: z.ZodObject<{
1121
1122
  }, {
1122
1123
  question: string;
1123
1124
  guide: {
1124
- expiresAt: string;
1125
1125
  schemaVersion: 1;
1126
+ expiresAt: string;
1126
1127
  updatedAt: string;
1127
1128
  grantId: string;
1128
1129
  cards: {
1129
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1130
1130
  title: string;
1131
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1131
1132
  updatedAt: string;
1132
1133
  cardId: string;
1133
1134
  statement: string;
@@ -1244,18 +1245,18 @@ declare const SupportPassportCardSchema: z.ZodObject<{
1244
1245
  reviewBy: z.ZodEffects<z.ZodString, string, string>;
1245
1246
  revision: z.ZodString;
1246
1247
  }, "strict", z.ZodTypeAny, {
1247
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1248
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1249
1248
  title: string;
1249
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1250
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1250
1251
  updatedAt: string;
1251
1252
  cardId: string;
1252
1253
  statement: string;
1253
1254
  reviewBy: string;
1254
1255
  revision: string;
1255
1256
  }, {
1256
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1257
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1258
1257
  title: string;
1258
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1259
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1259
1260
  updatedAt: string;
1260
1261
  cardId: string;
1261
1262
  statement: string;
@@ -1272,36 +1273,36 @@ declare const SupportPassportCardListSchema: z.ZodEffects<z.ZodArray<z.ZodObject
1272
1273
  reviewBy: z.ZodEffects<z.ZodString, string, string>;
1273
1274
  revision: z.ZodString;
1274
1275
  }, "strict", z.ZodTypeAny, {
1275
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1276
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1277
1276
  title: string;
1277
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1278
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1278
1279
  updatedAt: string;
1279
1280
  cardId: string;
1280
1281
  statement: string;
1281
1282
  reviewBy: string;
1282
1283
  revision: string;
1283
1284
  }, {
1284
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1285
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1286
1285
  title: string;
1286
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1287
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1287
1288
  updatedAt: string;
1288
1289
  cardId: string;
1289
1290
  statement: string;
1290
1291
  reviewBy: string;
1291
1292
  revision: string;
1292
1293
  }>, "many">, {
1293
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1294
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1295
1294
  title: string;
1295
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1296
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1296
1297
  updatedAt: string;
1297
1298
  cardId: string;
1298
1299
  statement: string;
1299
1300
  reviewBy: string;
1300
1301
  revision: string;
1301
1302
  }[], {
1302
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1303
- status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1304
1303
  title: string;
1304
+ status: "active" | "pending_review" | "rejected" | "superseded" | "archived";
1305
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1305
1306
  updatedAt: string;
1306
1307
  cardId: string;
1307
1308
  statement: string;
@@ -1322,14 +1323,14 @@ declare const SupportPassportManualDraftInputSchema: z.ZodObject<{
1322
1323
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1323
1324
  reviewBy: z.ZodEffects<z.ZodString, string, string>;
1324
1325
  }, "strict", z.ZodTypeAny, {
1325
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1326
1326
  title: string;
1327
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1327
1328
  statement: string;
1328
1329
  reviewBy: string;
1329
1330
  principal: string;
1330
1331
  }, {
1331
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1332
1332
  title: string;
1333
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1333
1334
  statement: string;
1334
1335
  reviewBy: string;
1335
1336
  principal: string;
@@ -1361,8 +1362,8 @@ declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
1361
1362
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1362
1363
  reviewBy: z.ZodEffects<z.ZodString, string, string>;
1363
1364
  }, "strict", z.ZodTypeAny, {
1364
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1365
1365
  title: string;
1366
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1366
1367
  cardId: string;
1367
1368
  statement: string;
1368
1369
  reviewBy: string;
@@ -1370,8 +1371,8 @@ declare const SupportPassportReplaceCardInputSchema: z.ZodObject<{
1370
1371
  expectedRevision: string;
1371
1372
  reasonCode?: string | undefined;
1372
1373
  }, {
1373
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1374
1374
  title: string;
1375
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1375
1376
  cardId: string;
1376
1377
  statement: string;
1377
1378
  reviewBy: string;
@@ -1430,10 +1431,10 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1430
1431
  expiresAt: z.ZodEffects<z.ZodString, string, string>;
1431
1432
  revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1432
1433
  }, "strict", z.ZodTypeAny, {
1433
- namespace: string;
1434
+ schemaVersion: 1;
1434
1435
  createdAt: string;
1435
1436
  expiresAt: string;
1436
- schemaVersion: 1;
1437
+ namespace: string;
1437
1438
  stateVersion: number;
1438
1439
  grantId: string;
1439
1440
  principalHash: string;
@@ -1445,10 +1446,10 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1445
1446
  }[];
1446
1447
  revokedAt?: string | undefined;
1447
1448
  }, {
1448
- namespace: string;
1449
+ schemaVersion: 1;
1449
1450
  createdAt: string;
1450
1451
  expiresAt: string;
1451
- schemaVersion: 1;
1452
+ namespace: string;
1452
1453
  stateVersion: number;
1453
1454
  grantId: string;
1454
1455
  principalHash: string;
@@ -1460,10 +1461,10 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1460
1461
  }[];
1461
1462
  revokedAt?: string | undefined;
1462
1463
  }>, {
1463
- namespace: string;
1464
+ schemaVersion: 1;
1464
1465
  createdAt: string;
1465
1466
  expiresAt: string;
1466
- schemaVersion: 1;
1467
+ namespace: string;
1467
1468
  stateVersion: number;
1468
1469
  grantId: string;
1469
1470
  principalHash: string;
@@ -1475,10 +1476,10 @@ declare const SupportPassportGrantStateSchema: z.ZodEffects<z.ZodObject<{
1475
1476
  }[];
1476
1477
  revokedAt?: string | undefined;
1477
1478
  }, {
1478
- namespace: string;
1479
+ schemaVersion: 1;
1479
1480
  createdAt: string;
1480
1481
  expiresAt: string;
1481
- schemaVersion: 1;
1482
+ namespace: string;
1482
1483
  stateVersion: number;
1483
1484
  grantId: string;
1484
1485
  principalHash: string;
@@ -1649,9 +1650,9 @@ declare const SupportPassportOwnerGrantSchema: z.ZodObject<{
1649
1650
  revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1650
1651
  status: z.ZodEnum<["active", "expired", "revoked"]>;
1651
1652
  }, "strict", z.ZodTypeAny, {
1653
+ status: "active" | "expired" | "revoked";
1652
1654
  createdAt: string;
1653
1655
  expiresAt: string;
1654
- status: "active" | "expired" | "revoked";
1655
1656
  stateVersion: number;
1656
1657
  grantId: string;
1657
1658
  cards: {
@@ -1660,9 +1661,9 @@ declare const SupportPassportOwnerGrantSchema: z.ZodObject<{
1660
1661
  }[];
1661
1662
  revokedAt?: string | undefined;
1662
1663
  }, {
1664
+ status: "active" | "expired" | "revoked";
1663
1665
  createdAt: string;
1664
1666
  expiresAt: string;
1665
- status: "active" | "expired" | "revoked";
1666
1667
  stateVersion: number;
1667
1668
  grantId: string;
1668
1669
  cards: {
@@ -1690,9 +1691,9 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
1690
1691
  revokedAt: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
1691
1692
  status: z.ZodEnum<["active", "expired", "revoked"]>;
1692
1693
  }, "strict", z.ZodTypeAny, {
1694
+ status: "active" | "expired" | "revoked";
1693
1695
  createdAt: string;
1694
1696
  expiresAt: string;
1695
- status: "active" | "expired" | "revoked";
1696
1697
  stateVersion: number;
1697
1698
  grantId: string;
1698
1699
  cards: {
@@ -1701,9 +1702,9 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
1701
1702
  }[];
1702
1703
  revokedAt?: string | undefined;
1703
1704
  }, {
1705
+ status: "active" | "expired" | "revoked";
1704
1706
  createdAt: string;
1705
1707
  expiresAt: string;
1706
- status: "active" | "expired" | "revoked";
1707
1708
  stateVersion: number;
1708
1709
  grantId: string;
1709
1710
  cards: {
@@ -1716,9 +1717,9 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
1716
1717
  }, "strict", z.ZodTypeAny, {
1717
1718
  secret: string;
1718
1719
  grant: {
1720
+ status: "active" | "expired" | "revoked";
1719
1721
  createdAt: string;
1720
1722
  expiresAt: string;
1721
- status: "active" | "expired" | "revoked";
1722
1723
  stateVersion: number;
1723
1724
  grantId: string;
1724
1725
  cards: {
@@ -1730,9 +1731,9 @@ declare const SupportPassportCreatedGrantSchema: z.ZodObject<{
1730
1731
  }, {
1731
1732
  secret: string;
1732
1733
  grant: {
1734
+ status: "active" | "expired" | "revoked";
1733
1735
  createdAt: string;
1734
1736
  expiresAt: string;
1735
- status: "active" | "expired" | "revoked";
1736
1737
  stateVersion: number;
1737
1738
  grantId: string;
1738
1739
  cards: {
@@ -1749,14 +1750,14 @@ declare const SupportPassportPublicCardSchema: z.ZodObject<{
1749
1750
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1750
1751
  updatedAt: z.ZodEffects<z.ZodString, string, string>;
1751
1752
  }, "strict", z.ZodTypeAny, {
1752
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1753
1753
  title: string;
1754
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1754
1755
  updatedAt: string;
1755
1756
  cardId: string;
1756
1757
  statement: string;
1757
1758
  }, {
1758
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1759
1759
  title: string;
1760
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1760
1761
  updatedAt: string;
1761
1762
  cardId: string;
1762
1763
  statement: string;
@@ -1773,38 +1774,38 @@ declare const SupportPassportPublicGuideSchema: z.ZodObject<{
1773
1774
  category: z.ZodEnum<["communication", "environment", "transitions", "sensory", "regulation", "interests", "other"]>;
1774
1775
  updatedAt: z.ZodEffects<z.ZodString, string, string>;
1775
1776
  }, "strict", z.ZodTypeAny, {
1776
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1777
1777
  title: string;
1778
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1778
1779
  updatedAt: string;
1779
1780
  cardId: string;
1780
1781
  statement: string;
1781
1782
  }, {
1782
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1783
1783
  title: string;
1784
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1784
1785
  updatedAt: string;
1785
1786
  cardId: string;
1786
1787
  statement: string;
1787
1788
  }>, "many">;
1788
1789
  }, "strict", z.ZodTypeAny, {
1789
- expiresAt: string;
1790
1790
  schemaVersion: 1;
1791
+ expiresAt: string;
1791
1792
  updatedAt: string;
1792
1793
  grantId: string;
1793
1794
  cards: {
1794
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1795
1795
  title: string;
1796
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1796
1797
  updatedAt: string;
1797
1798
  cardId: string;
1798
1799
  statement: string;
1799
1800
  }[];
1800
1801
  }, {
1801
- expiresAt: string;
1802
1802
  schemaVersion: 1;
1803
+ expiresAt: string;
1803
1804
  updatedAt: string;
1804
1805
  grantId: string;
1805
1806
  cards: {
1806
- category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1807
1807
  title: string;
1808
+ category: "other" | "communication" | "environment" | "transitions" | "sensory" | "regulation" | "interests";
1808
1809
  updatedAt: string;
1809
1810
  cardId: string;
1810
1811
  statement: string;
@@ -1872,10 +1873,10 @@ declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
1872
1873
  operation: "draft_cards" | "answer_question";
1873
1874
  route: "unavailable" | "direct" | "local" | "gateway";
1874
1875
  latencyMs: number;
1876
+ occurredAt: string;
1875
1877
  actorHash: string;
1876
1878
  subjectIdsHash: string;
1877
1879
  outputSchemaVersion: 1;
1878
- occurredAt: string;
1879
1880
  usage?: {
1880
1881
  inputTokens?: number | undefined;
1881
1882
  outputTokens?: number | undefined;
@@ -1889,10 +1890,10 @@ declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
1889
1890
  operation: "draft_cards" | "answer_question";
1890
1891
  route: "unavailable" | "direct" | "local" | "gateway";
1891
1892
  latencyMs: number;
1893
+ occurredAt: string;
1892
1894
  actorHash: string;
1893
1895
  subjectIdsHash: string;
1894
1896
  outputSchemaVersion: 1;
1895
- occurredAt: string;
1896
1897
  usage?: {
1897
1898
  inputTokens?: number | undefined;
1898
1899
  outputTokens?: number | undefined;
@@ -1906,10 +1907,10 @@ declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
1906
1907
  operation: "draft_cards" | "answer_question";
1907
1908
  route: "unavailable" | "direct" | "local" | "gateway";
1908
1909
  latencyMs: number;
1910
+ occurredAt: string;
1909
1911
  actorHash: string;
1910
1912
  subjectIdsHash: string;
1911
1913
  outputSchemaVersion: 1;
1912
- occurredAt: string;
1913
1914
  usage?: {
1914
1915
  inputTokens?: number | undefined;
1915
1916
  outputTokens?: number | undefined;
@@ -1923,10 +1924,10 @@ declare const SupportPassportModelAuditRecordSchema: z.ZodEffects<z.ZodObject<{
1923
1924
  operation: "draft_cards" | "answer_question";
1924
1925
  route: "unavailable" | "direct" | "local" | "gateway";
1925
1926
  latencyMs: number;
1927
+ occurredAt: string;
1926
1928
  actorHash: string;
1927
1929
  subjectIdsHash: string;
1928
1930
  outputSchemaVersion: 1;
1929
- occurredAt: string;
1930
1931
  usage?: {
1931
1932
  inputTokens?: number | undefined;
1932
1933
  outputTokens?: number | undefined;
@@ -2063,6 +2064,274 @@ declare class SupportPassportAccessSurface {
2063
2064
  private invalidGrantInput;
2064
2065
  }
2065
2066
 
2067
+ type JsonRpcId = string | number | null;
2068
+ type JsonRpcRequest = {
2069
+ jsonrpc?: string;
2070
+ id?: JsonRpcId;
2071
+ method?: string;
2072
+ params?: Record<string, unknown>;
2073
+ };
2074
+ type McpRequestOptions = {
2075
+ principalOverride?: string;
2076
+ namespaceOverride?: string;
2077
+ sessionKeyOverride?: string;
2078
+ sessionId?: string;
2079
+ correlationId?: string;
2080
+ /**
2081
+ * Write-quota enforcer forwarded into observe's idempotency lock
2082
+ * (issue #1649). Only the MCP-over-HTTP transport supplies this (it owns
2083
+ * the write-rate-limit window); the standalone MCP server has no quota.
2084
+ */
2085
+ enforceWriteQuota?: () => void | Promise<void>;
2086
+ /**
2087
+ * Called once when a lifecycle write reaches its durable commit boundary.
2088
+ * HTTP transports use this to account writes even when post-commit work
2089
+ * fails or the client disconnects before a response is available.
2090
+ */
2091
+ recordWriteCommit?: () => void;
2092
+ /**
2093
+ * Server-resolved connector identity (Phase 1 provenance). Set by the HTTP
2094
+ * auth boundary from the matched token entry's connector; threaded into
2095
+ * the operation context so write handlers stamp it onto frontmatter.
2096
+ */
2097
+ sourceConnector?: string;
2098
+ /** HTTP request lifetime; absent for the standalone stdio transport. */
2099
+ abortSignal?: AbortSignal;
2100
+ };
2101
+ type McpTool = {
2102
+ name: string;
2103
+ title?: string;
2104
+ description: string;
2105
+ inputSchema: Record<string, unknown>;
2106
+ outputSchema?: Record<string, unknown>;
2107
+ annotations?: Record<string, unknown>;
2108
+ _meta?: Record<string, unknown>;
2109
+ };
2110
+ /**
2111
+ * MCP protocol versions this server understands, ordered newest → oldest.
2112
+ * Exported so the HTTP transport can validate the `MCP-Protocol-Version`
2113
+ * header and reject requests advertising an unknown version.
2114
+ */
2115
+ declare const MCP_SUPPORTED_PROTOCOL_VERSIONS: readonly string[];
2116
+ declare class EngramMcpServer {
2117
+ private readonly service;
2118
+ private buffer;
2119
+ private flushTask;
2120
+ private readonly tools;
2121
+ private readonly resources;
2122
+ private readonly resourceTextByUri;
2123
+ private readonly authenticatedPrincipal?;
2124
+ /**
2125
+ * MCP client info keyed by server-assigned session ID. On each `initialize`
2126
+ * handshake the server generates a UUID, stores the client's clientInfo
2127
+ * against it, and returns the ID as `Mcp-Session-Id` in the response
2128
+ * metadata. Subsequent requests from the same client include this header,
2129
+ * allowing per-session clientInfo lookup without cross-session leaks.
2130
+ */
2131
+ private clientInfoBySession;
2132
+ /**
2133
+ * Session IDs generated during initialize, keyed by caller-supplied correlation
2134
+ * ID (unique per HTTP request) to avoid collisions when multiple clients send
2135
+ * initialize with the same JSON-RPC id concurrently.
2136
+ */
2137
+ private initSessionIds;
2138
+ /**
2139
+ * Whether oai-mem-citation guidance is explicitly enabled via config.
2140
+ */
2141
+ private readonly citationsEnabled;
2142
+ /** Whether to auto-enable citations for Codex adapter connections. */
2143
+ private readonly citationsAutoDetect;
2144
+ /**
2145
+ * Whether to advertise legacy `engram.*` tool aliases alongside the canonical
2146
+ * `remnic.*` names (issue #1427). Defaults to true for backward compatibility;
2147
+ * set false to halve the advertised `tools/list` surface.
2148
+ */
2149
+ private readonly emitLegacyTools;
2150
+ /**
2151
+ * Whether the `coding_decision` tool should appear in `tools/list`. Gated on
2152
+ * `codingKnowledge.enabled && codingKnowledge.decisionRecords` (issue #1548
2153
+ * Track A PR 2, rule 39). When false the tools array is byte-identical to
2154
+ * pre-feature.
2155
+ */
2156
+ private readonly codingDecisionVisible;
2157
+ /**
2158
+ * Whether the `coding_architecture` tool should appear in `tools/list`.
2159
+ * Gated on `codingKnowledge.enabled && codingKnowledge.architectureCard`
2160
+ * (issue #1548 Track A PR 3, rule 39).
2161
+ */
2162
+ private readonly architectureCardVisible;
2163
+ /**
2164
+ * Whether the 14 codegraph parity tools should appear in `tools/list`
2165
+ * (issue #1554). Config-only -- runtime availability is checked at call
2166
+ * time. When false the tools array is byte-identical to pre-feature.
2167
+ */
2168
+ private readonly codegraphVisible;
2169
+ private readonly sessionDeltaVisible;
2170
+ /**
2171
+ * Whether the two correction tools (memory_correct_plan / memory_correct_apply)
2172
+ * should appear in `tools/list` (issue #1580). Gated on `correction.enabled`
2173
+ * (default true — plan is read-only; safe on). When false the tools array is
2174
+ * byte-identical to pre-feature.
2175
+ */
2176
+ private readonly correctionVisible;
2177
+ /**
2178
+ * Whether the `memory_chat` tool should appear in `tools/list` (issue
2179
+ * #1583). Gated on `chat.enabled`. When false the tools array is
2180
+ * byte-identical to pre-feature (rule 39).
2181
+ */
2182
+ private readonly chatVisible;
2183
+ constructor(service: EngramAccessService, options?: {
2184
+ principal?: string;
2185
+ citationsEnabled?: boolean;
2186
+ citationsAutoDetect?: boolean;
2187
+ emitLegacyTools?: boolean;
2188
+ codingDecisionVisible?: boolean;
2189
+ architectureCardVisible?: boolean;
2190
+ codegraphVisible?: boolean;
2191
+ sessionDeltaVisible?: boolean;
2192
+ correctionVisible?: boolean;
2193
+ chatVisible?: boolean;
2194
+ });
2195
+ /** Get clientInfo for a specific MCP session. Returns undefined for non-MCP requests. */
2196
+ getClientInfo(sessionId?: string): {
2197
+ name: string;
2198
+ version?: string;
2199
+ } | undefined;
2200
+ /** Pop the session ID generated during an initialize handshake, keyed by correlation ID. */
2201
+ popInitSessionId(correlationId: string): string | undefined;
2202
+ handleRequest(request: JsonRpcRequest, options?: McpRequestOptions): Promise<Record<string, unknown> | null>;
2203
+ runStdio(input: Readable, output: Writable): Promise<void>;
2204
+ private scheduleFlush;
2205
+ private flushBuffer;
2206
+ private writeMessage;
2207
+ private toolAcceptsArgument;
2208
+ /**
2209
+ * Whether a tool accepts a `namespace` argument — i.e. it is a
2210
+ * namespace-scoped operation whose effective namespace MUST be gated by the
2211
+ * per-token allow-list. Exposed (public) so the HTTP MCP transport can run
2212
+ * the SAME effective-namespace enforcement the REST surface runs, without
2213
+ * duplicating the tool-schema introspection (issue #1850). Namespace-
2214
+ * agnostic tools (peer/wearables/etc.) return false and stay ungated,
2215
+ * matching the REST surface where those routes never call resolveNamespace.
2216
+ */
2217
+ toolAcceptsNamespace(name: string): boolean;
2218
+ /**
2219
+ * Determine whether oai-mem-citation guidance should be appended to recall.
2220
+ * Returns true when explicitly enabled via config OR when auto-detect is
2221
+ * active and the current MCP session belongs to a Codex adapter client.
2222
+ *
2223
+ * When no sessionId is provided (e.g., stdio transport where there are no
2224
+ * HTTP headers carrying mcp-session-id), fall back to checking if there is
2225
+ * exactly one known session whose clientInfo matches the Codex pattern.
2226
+ * This covers the common stdio case where a single client connection exists.
2227
+ */
2228
+ private shouldEmitCitations;
2229
+ /** Check whether a clientInfo record identifies a Codex adapter client. */
2230
+ private isCodexClient;
2231
+ /**
2232
+ * Build citation metadata for each recall result that has a path.
2233
+ * Line range defaults to 1-1 when not determinable from the summary.
2234
+ */
2235
+ private buildRecallCitations;
2236
+ private callTool;
2237
+ }
2238
+
2239
+ /**
2240
+ * `who_knows` — rank entities by demonstrated expertise for a topic
2241
+ * (issue #2057).
2242
+ *
2243
+ * Deterministic scoring over existing entity + fact data. No LLM, no QMD:
2244
+ * a single pass over the namespace-scoped corpus (`readAllMemories`) plus
2245
+ * entity files. Signals:
2246
+ *
2247
+ * 1. Entity mentions co-occurring with topic tokens (entityRef + name/alias
2248
+ * mention in matching memory content).
2249
+ * 2. Speaker/authorship attribution ("Alice said/explained/…") when present —
2250
+ * small multiplicative bonus.
2251
+ * 3. Recency as a tie-break only (per the issue): newer evidence ranks higher
2252
+ * when scores tie; entity id is the final stable key (total order).
2253
+ * 4. Existing importance + confidence frontmatter weight each evidence item.
2254
+ *
2255
+ * Pure functions live here so tests can exercise scoring without booting an
2256
+ * orchestrator; the access service supplies namespace-scoped data. MCP tool
2257
+ * definitions are exported for access-mcp.ts to spread into `tools/list`
2258
+ * (same pattern as `meetings/mcp-tools.ts`).
2259
+ */
2260
+
2261
+ /** Default result count (issue #2057: "small ranked list"). */
2262
+ declare const WHO_KNOWS_DEFAULT_LIMIT = 5;
2263
+ /** Upper bound for `limit`. Rejects unbounded fan-out without silently clamping. */
2264
+ declare const WHO_KNOWS_MAX_LIMIT = 50;
2265
+ /** Evidence refs retained per hit. Independent of the result limit. */
2266
+ declare const WHO_KNOWS_MAX_EVIDENCE = 50;
2267
+ /** Multiplicative bonus for evidence with direct speaker attribution. */
2268
+ declare const WHO_KNOWS_AUTHORSHIP_BONUS = 1.5;
2269
+ /** Minimal storage surface `who_knows` needs — satisfied by `StorageManager`. */
2270
+ interface WhoKnowsStorage {
2271
+ readAllMemories(): Promise<MemoryFile[]>;
2272
+ listEntityNames(): Promise<string[]>;
2273
+ readEntity(name: string): Promise<string>;
2274
+ }
2275
+ /** Flattened entity input for scoring. `id` is the entity key (file stem). */
2276
+ interface WhoKnowsEntity {
2277
+ id: string;
2278
+ name: string;
2279
+ aliases: readonly string[];
2280
+ }
2281
+ /** Evidence reference — ids/paths/timestamps only, no raw content. */
2282
+ interface WhoKnowsEvidence {
2283
+ id: string;
2284
+ path: string;
2285
+ updated: string;
2286
+ }
2287
+ interface WhoKnowsHit {
2288
+ entityId: string;
2289
+ entityName: string | null;
2290
+ /** Normalized 0–1 relative to the top hit (top = 1). */
2291
+ score: number;
2292
+ rationale: string;
2293
+ evidenceCount: number;
2294
+ lastSeen: string | null;
2295
+ evidence: WhoKnowsEvidence[];
2296
+ }
2297
+ interface WhoKnowsResult {
2298
+ topic: string;
2299
+ results: WhoKnowsHit[];
2300
+ }
2301
+ /** Load all entities for a namespace-scoped storage as scoring input. */
2302
+ declare function loadWhoKnowsEntities(storage: WhoKnowsStorage, entitySchemas?: PluginConfig["entitySchemas"]): Promise<WhoKnowsEntity[]>;
2303
+ /** Validate topic + limit at every entrypoint. Shared by service/CLI/HTTP. */
2304
+ declare function validateWhoKnowsInput(topic: string, limit: number): void;
2305
+ /** Lowercase alphanumeric topic tokens, stopwords dropped, deduplicated. */
2306
+ declare function tokenizeTopic(topic: string): string[];
2307
+ /**
2308
+ * Deterministic ranking. Pure: same inputs → same output, total order via
2309
+ * (score desc, lastSeen desc, entityId asc) so ties never depend on scan
2310
+ * order (sort-stability rule).
2311
+ */
2312
+ declare function computeWhoKnows(input: {
2313
+ topic: string;
2314
+ limit: number;
2315
+ memories: readonly MemoryFile[];
2316
+ entities: readonly WhoKnowsEntity[];
2317
+ }): WhoKnowsResult;
2318
+ declare const WHO_KNOWS_MCP_TOOLS: McpTool[];
2319
+ interface WhoKnowsHttpOutcome {
2320
+ status: number;
2321
+ body: unknown;
2322
+ }
2323
+ declare function handleWhoKnowsHttpQuery(deps: {
2324
+ getParam: (name: string) => string | null;
2325
+ resolveNamespace: (namespace: string | undefined) => string | undefined;
2326
+ principal?: string;
2327
+ run: (request: {
2328
+ topic: string;
2329
+ limit?: number;
2330
+ namespace?: string;
2331
+ authenticatedPrincipal?: string;
2332
+ }) => Promise<WhoKnowsResult>;
2333
+ }): Promise<WhoKnowsHttpOutcome>;
2334
+
2066
2335
  declare abstract class SupportPassportAccessServiceBase {
2067
2336
  private _supportPassportSurface;
2068
2337
  abstract get configRef(): PluginConfig;
@@ -2982,6 +3251,19 @@ declare class EngramAccessService extends SupportPassportAccessServiceBase {
2982
3251
  snapshot?: RecallXraySnapshot;
2983
3252
  recall?: EngramAccessRecallResponse;
2984
3253
  }>;
3254
+ /**
3255
+ * Rank entities by demonstrated expertise for a topic (issue #2057).
3256
+ * Deterministic — no LLM, no QMD. Reads the namespace-scoped corpus and
3257
+ * entity files only; namespace resolution + ACL mirror recall semantics
3258
+ * (`resolveReadableNamespace`), so a principal cannot rank outside a
3259
+ * namespace it cannot read.
3260
+ */
3261
+ whoKnows(request: {
3262
+ topic: string;
3263
+ limit?: number;
3264
+ namespace?: string;
3265
+ authenticatedPrincipal?: string;
3266
+ }): Promise<WhoKnowsResult>;
2985
3267
  memoryStore(request: EngramAccessMemoryStoreRequest, hooks?: {
2986
3268
  enforceWriteQuota?: () => void | Promise<void>;
2987
3269
  }): Promise<EngramAccessWriteResponse>;
@@ -3803,4 +4085,4 @@ declare class EngramAccessService extends SupportPassportAccessServiceBase {
3803
4085
  }): Promise<MemoryPromotionResult>;
3804
4086
  }
3805
4087
 
3806
- export { type SupportPassportCard as $, type AccessProfilingReportRequest as A, type CodegraphSurfaceResponse as B, type CodingScopedWriteInput as C, type DecisionSurfaceRequest as D, type EngramAccessReviewQueueResponse as E, type EngramAccessRecallResponse as F, type EngramAccessRecallRequest as G, type EngramAccessMemorySummary as H, type EngramAccessSetCodingContextRequest as I, type ProcedureStatsRecent as J, type ProcedureStatsReport as K, type ProcedureStatusCounts as L, type MemoryPromotionTargetKind as M, SUPPORT_PASSPORT_CARD_STATUSES as N, SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS as O, type ProcedureStatsConfigSnapshot as P, SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES as Q, SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER as R, SUPPORT_PASSPORT_CARD_CATEGORIES as S, SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH as T, SupportPassportAccessSurface as U, type SupportPassportAccessSurfaceDependencies as V, type SupportPassportAnswerModelInput as W, SupportPassportAnswerModelInputSchema as X, type SupportPassportAnswerOutput as Y, SupportPassportAnswerOutputSchema as Z, type SupportPassportAnswerResult as _, type AccessProfilingReportResponse as a, type SupportPassportRevokeGrantResult as a$, type SupportPassportCardCategory as a0, SupportPassportCardCategorySchema as a1, SupportPassportCardListSchema as a2, type SupportPassportCardMutationInput as a3, SupportPassportCardMutationInputSchema as a4, SupportPassportCardSchema as a5, type SupportPassportCardServiceDependencies as a6, type SupportPassportCardStatus as a7, SupportPassportCardStatusSchema as a8, SupportPassportCardTitleSchema as a9, type SupportPassportModelAdapterOptions as aA, type SupportPassportModelAuditRecord as aB, SupportPassportModelAuditRecordSchema as aC, type SupportPassportModelAuditSink as aD, SupportPassportModelAuditStore as aE, SupportPassportModelCallError as aF, type SupportPassportModelClients as aG, type SupportPassportModelFailureMetadata as aH, type SupportPassportModelMessage as aI, type SupportPassportModelResultMetadata as aJ, type SupportPassportModelRoute as aK, type SupportPassportModelRouteKind as aL, type SupportPassportModelRouteResult as aM, type SupportPassportModelUsage as aN, SupportPassportNamespaceSchema as aO, type SupportPassportOwnerCreateGrantRequest as aP, SupportPassportOwnerCreateGrantRequestSchema as aQ, type SupportPassportOwnerGrant as aR, SupportPassportOwnerGrantSchema as aS, type SupportPassportOwnerScope as aT, SupportPassportPublicCardSchema as aU, type SupportPassportPublicGuide as aV, SupportPassportPublicGuideSchema as aW, type SupportPassportReplaceCardInput as aX, SupportPassportReplaceCardInputSchema as aY, type SupportPassportRevokeGrantInput as aZ, SupportPassportRevokeGrantInputSchema as a_, type SupportPassportCreateGrantInput as aa, SupportPassportCreateGrantInputSchema as ab, type SupportPassportCreateGrantRequest as ac, SupportPassportCreateGrantRequestSchema as ad, type SupportPassportCreateGrantResult as ae, type SupportPassportCreatedGrant as af, SupportPassportCreatedGrantSchema as ag, type SupportPassportDraftCard as ah, SupportPassportDraftCardSchema as ai, type SupportPassportDraftModelInput as aj, SupportPassportDraftModelInputSchema as ak, SupportPassportDraftOutputSchema as al, type SupportPassportDraftResult as am, SupportPassportError as an, type SupportPassportErrorCode as ao, type SupportPassportGrantCardRef as ap, SupportPassportGrantCardRefSchema as aq, type SupportPassportGrantState as ar, SupportPassportGrantStateSchema as as, SupportPassportListCardsInputSchema as at, SupportPassportListGrantsInputSchema as au, type SupportPassportManualDraftInput as av, SupportPassportManualDraftInputSchema as aw, SupportPassportMemoryIdSchema as ax, type SupportPassportMemoryPreview as ay, SupportPassportModelAdapter as az, type EngramAccessCapsuleListResponse as b, SupportPassportSourceMemoryIdSchema as b0, acceptsSupportPassportModelResponse as b1, buildSupportPassportDirectGatewayConfig as b2, computeProcedureStats as b3, computeSupportPassportCardRevision as b4, createSupportPassportModelAdapter as b5, formatProcedureStatsText as b6, hashSupportPassportAuditValues as b7, resolveSupportPassportModelRoutePlan as b8, type EngramAccessLcmCompactionFlushRequest as b9, type EngramAccessOfflineSyncManifestRequest as bA, type EngramAccessOfflineSyncSnapshotRequest as bB, type EngramAccessOfflineSyncSnapshotResponse as bC, type EngramAccessQualityResponse as bD, type EngramAccessRecallExplainRequest as bE, type EngramAccessRecallExplainResponse as bF, type EngramAccessReviewDispositionRequest as bG, type EngramAccessReviewDispositionResponse as bH, type EngramAccessScopeDebug as bI, type EngramAccessTimelineResponse as bJ, type EngramAccessTrustZoneBrowseRequest as bK, type EngramAccessTrustZoneBrowseResponse as bL, type EngramAccessTrustZoneDemoSeedRequest as bM, type EngramAccessTrustZoneDemoSeedResponse as bN, type EngramAccessTrustZonePromoteRequest as bO, type EngramAccessTrustZonePromoteResponse as bP, type EngramAccessTrustZoneRecordSummary as bQ, type EngramAccessTrustZoneStatusResponse as bR, type EngramAccessWriteEnvelope as bS, buildProjectedGovernanceProposedActions as bT, hasGroupedGovernanceActions as bU, shapeMemorySummary as bV, type ExtractionForceFlushDelegate as ba, delegateExtractionForceFlush as bb, ENGRAM_ACCESS_WRITE_SCHEMA_VERSION as bc, type EngramAccessActionConfidenceRequest as bd, type EngramAccessActionConfidenceResponse as be, type EngramAccessDaySummaryRequest as bf, type EngramAccessEntityListResponse as bg, type EngramAccessEntityResponse as bh, type EngramAccessEntitySummary as bi, type EngramAccessLcmCompactionRecordRequest as bj, type EngramAccessLcmStatusResponse as bk, type EngramAccessMaintenanceResponse as bl, type EngramAccessMemoryBrowseRequest as bm, type EngramAccessMemoryBrowseResponse as bn, type EngramAccessMemoryRecord as bo, type EngramAccessObserveMessage as bp, type EngramAccessOfflineSyncApplyFileContentRequest as bq, type EngramAccessOfflineSyncApplyFileContentResponse as br, type EngramAccessOfflineSyncApplyRequest as bs, type EngramAccessOfflineSyncApplyResponse as bt, type EngramAccessOfflineSyncFileContentRequest as bu, type EngramAccessOfflineSyncFileContentResponse as bv, type EngramAccessOfflineSyncFilesRequest as bw, type EngramAccessOfflineSyncFilesResponse as bx, type EngramAccessOfflineSyncFinalizeConvergenceRequest as by, type EngramAccessOfflineSyncFinalizeConvergenceResponse as bz, type MemoryPromotionResult as c, type EngramAccessExtractionForceFlushRequest as d, type EngramAccessExtractionForceFlushResponse as e, EngramAccessService as f, type EngramAccessLcmCompactionFlushResponse as g, type EngramAccessLcmCompactionRecordResponse as h, type EngramAccessOfflineSyncSnapshotStreamResponse as i, type EngramAccessLcmSearchRequest as j, type EngramAccessLcmSearchResponse as k, type MemoryScopePlan as l, type EngramAccessMemoryStoreRequest as m, type EngramAccessSuggestionSubmitRequest as n, type EngramAccessBriefingRequest as o, type EngramAccessBriefingResponse as p, type EngramAccessWriteResponse as q, type EngramAccessObserveRequest as r, type EngramAccessObserveResponse as s, type ArchitectureSurfaceRequest as t, type ArchitectureSurfaceResponse as u, type DecisionSurfaceResponse as v, type DeltaSurfaceRequest as w, type DeltaSurfaceResponse as x, type EngramAccessMemoryResponse as y, type CodegraphSurfaceRequest as z };
4088
+ export { type SupportPassportAnswerOutput as $, type AccessProfilingReportRequest as A, type CodegraphSurfaceResponse as B, type CodingScopedWriteInput as C, type DecisionSurfaceRequest as D, type EngramAccessReviewQueueResponse as E, type EngramAccessRecallResponse as F, type EngramAccessRecallRequest as G, type EngramAccessMemorySummary as H, type EngramAccessSetCodingContextRequest as I, type McpTool as J, EngramMcpServer as K, type ProcedureStatsRecent as L, type MemoryPromotionTargetKind as M, type ProcedureStatsReport as N, type ProcedureStatusCounts as O, type ProcedureStatsConfigSnapshot as P, SUPPORT_PASSPORT_CARD_STATUSES as Q, SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS as R, SUPPORT_PASSPORT_CARD_CATEGORIES as S, SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES as T, SUPPORT_PASSPORT_NOT_IN_GUIDE_ANSWER as U, SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH as V, type WhoKnowsResult as W, SupportPassportAccessSurface as X, type SupportPassportAccessSurfaceDependencies as Y, type SupportPassportAnswerModelInput as Z, SupportPassportAnswerModelInputSchema as _, type AccessProfilingReportResponse as a, SupportPassportReplaceCardInputSchema as a$, SupportPassportAnswerOutputSchema as a0, type SupportPassportAnswerResult as a1, type SupportPassportCard as a2, type SupportPassportCardCategory as a3, SupportPassportCardCategorySchema as a4, SupportPassportCardListSchema as a5, type SupportPassportCardMutationInput as a6, SupportPassportCardMutationInputSchema as a7, SupportPassportCardSchema as a8, type SupportPassportCardServiceDependencies as a9, SupportPassportMemoryIdSchema as aA, type SupportPassportMemoryPreview as aB, SupportPassportModelAdapter as aC, type SupportPassportModelAdapterOptions as aD, type SupportPassportModelAuditRecord as aE, SupportPassportModelAuditRecordSchema as aF, type SupportPassportModelAuditSink as aG, SupportPassportModelAuditStore as aH, SupportPassportModelCallError as aI, type SupportPassportModelClients as aJ, type SupportPassportModelFailureMetadata as aK, type SupportPassportModelMessage as aL, type SupportPassportModelResultMetadata as aM, type SupportPassportModelRoute as aN, type SupportPassportModelRouteKind as aO, type SupportPassportModelRouteResult as aP, type SupportPassportModelUsage as aQ, SupportPassportNamespaceSchema as aR, type SupportPassportOwnerCreateGrantRequest as aS, SupportPassportOwnerCreateGrantRequestSchema as aT, type SupportPassportOwnerGrant as aU, SupportPassportOwnerGrantSchema as aV, type SupportPassportOwnerScope as aW, SupportPassportPublicCardSchema as aX, type SupportPassportPublicGuide as aY, SupportPassportPublicGuideSchema as aZ, type SupportPassportReplaceCardInput as a_, type SupportPassportCardStatus as aa, SupportPassportCardStatusSchema as ab, SupportPassportCardTitleSchema as ac, type SupportPassportCreateGrantInput as ad, SupportPassportCreateGrantInputSchema as ae, type SupportPassportCreateGrantRequest as af, SupportPassportCreateGrantRequestSchema as ag, type SupportPassportCreateGrantResult as ah, type SupportPassportCreatedGrant as ai, SupportPassportCreatedGrantSchema as aj, type SupportPassportDraftCard as ak, SupportPassportDraftCardSchema as al, type SupportPassportDraftModelInput as am, SupportPassportDraftModelInputSchema as an, SupportPassportDraftOutputSchema as ao, type SupportPassportDraftResult as ap, SupportPassportError as aq, type SupportPassportErrorCode as ar, type SupportPassportGrantCardRef as as, SupportPassportGrantCardRefSchema as at, type SupportPassportGrantState as au, SupportPassportGrantStateSchema as av, SupportPassportListCardsInputSchema as aw, SupportPassportListGrantsInputSchema as ax, type SupportPassportManualDraftInput as ay, SupportPassportManualDraftInputSchema as az, type EngramAccessCapsuleListResponse as b, type EngramAccessScopeDebug as b$, type SupportPassportRevokeGrantInput as b0, SupportPassportRevokeGrantInputSchema as b1, type SupportPassportRevokeGrantResult as b2, SupportPassportSourceMemoryIdSchema as b3, WHO_KNOWS_AUTHORSHIP_BONUS as b4, WHO_KNOWS_DEFAULT_LIMIT as b5, WHO_KNOWS_MAX_EVIDENCE as b6, WHO_KNOWS_MAX_LIMIT as b7, WHO_KNOWS_MCP_TOOLS as b8, type WhoKnowsEntity as b9, type EngramAccessEntityResponse as bA, type EngramAccessEntitySummary as bB, type EngramAccessLcmCompactionRecordRequest as bC, type EngramAccessLcmStatusResponse as bD, type EngramAccessMaintenanceResponse as bE, type EngramAccessMemoryBrowseRequest as bF, type EngramAccessMemoryBrowseResponse as bG, type EngramAccessMemoryRecord as bH, type EngramAccessObserveMessage as bI, type EngramAccessOfflineSyncApplyFileContentRequest as bJ, type EngramAccessOfflineSyncApplyFileContentResponse as bK, type EngramAccessOfflineSyncApplyRequest as bL, type EngramAccessOfflineSyncApplyResponse as bM, type EngramAccessOfflineSyncFileContentRequest as bN, type EngramAccessOfflineSyncFileContentResponse as bO, type EngramAccessOfflineSyncFilesRequest as bP, type EngramAccessOfflineSyncFilesResponse as bQ, type EngramAccessOfflineSyncFinalizeConvergenceRequest as bR, type EngramAccessOfflineSyncFinalizeConvergenceResponse as bS, type EngramAccessOfflineSyncManifestRequest as bT, type EngramAccessOfflineSyncSnapshotRequest as bU, type EngramAccessOfflineSyncSnapshotResponse as bV, type EngramAccessQualityResponse as bW, type EngramAccessRecallExplainRequest as bX, type EngramAccessRecallExplainResponse as bY, type EngramAccessReviewDispositionRequest as bZ, type EngramAccessReviewDispositionResponse as b_, type WhoKnowsEvidence as ba, type WhoKnowsHit as bb, type WhoKnowsHttpOutcome as bc, type WhoKnowsStorage as bd, acceptsSupportPassportModelResponse as be, buildSupportPassportDirectGatewayConfig as bf, computeProcedureStats as bg, computeSupportPassportCardRevision as bh, computeWhoKnows as bi, createSupportPassportModelAdapter as bj, formatProcedureStatsText as bk, handleWhoKnowsHttpQuery as bl, hashSupportPassportAuditValues as bm, loadWhoKnowsEntities as bn, resolveSupportPassportModelRoutePlan as bo, tokenizeTopic as bp, validateWhoKnowsInput as bq, type EngramAccessLcmCompactionFlushRequest as br, type ExtractionForceFlushDelegate as bs, delegateExtractionForceFlush as bt, MCP_SUPPORTED_PROTOCOL_VERSIONS as bu, ENGRAM_ACCESS_WRITE_SCHEMA_VERSION as bv, type EngramAccessActionConfidenceRequest as bw, type EngramAccessActionConfidenceResponse as bx, type EngramAccessDaySummaryRequest as by, type EngramAccessEntityListResponse as bz, type MemoryPromotionResult as c, type EngramAccessTimelineResponse as c0, type EngramAccessTrustZoneBrowseRequest as c1, type EngramAccessTrustZoneBrowseResponse as c2, type EngramAccessTrustZoneDemoSeedRequest as c3, type EngramAccessTrustZoneDemoSeedResponse as c4, type EngramAccessTrustZonePromoteRequest as c5, type EngramAccessTrustZonePromoteResponse as c6, type EngramAccessTrustZoneRecordSummary as c7, type EngramAccessTrustZoneStatusResponse as c8, type EngramAccessWriteEnvelope as c9, buildProjectedGovernanceProposedActions as ca, hasGroupedGovernanceActions as cb, shapeMemorySummary as cc, type EngramAccessExtractionForceFlushRequest as d, type EngramAccessExtractionForceFlushResponse as e, EngramAccessService as f, type EngramAccessLcmCompactionFlushResponse as g, type EngramAccessLcmCompactionRecordResponse as h, type EngramAccessOfflineSyncSnapshotStreamResponse as i, type EngramAccessLcmSearchRequest as j, type EngramAccessLcmSearchResponse as k, type MemoryScopePlan as l, type EngramAccessMemoryStoreRequest as m, type EngramAccessSuggestionSubmitRequest as n, type EngramAccessBriefingRequest as o, type EngramAccessBriefingResponse as p, type EngramAccessWriteResponse as q, type EngramAccessObserveRequest as r, type EngramAccessObserveResponse as s, type ArchitectureSurfaceRequest as t, type ArchitectureSurfaceResponse as u, type DecisionSurfaceResponse as v, type DeltaSurfaceRequest as w, type DeltaSurfaceResponse as x, type EngramAccessMemoryResponse as y, type CodegraphSurfaceRequest as z };