@remnic/core 9.65.2 → 9.65.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 (449) hide show
  1. package/dist/access-admin-ops-surface.d.ts +44 -44
  2. package/dist/access-admin-ops-surface.js +14 -14
  3. package/dist/access-authorization-probe.d.ts +38 -38
  4. package/dist/access-authorization-probe.js +15 -15
  5. package/dist/access-boundary.d.ts +40 -40
  6. package/dist/access-boundary.js +14 -14
  7. package/dist/access-cli.js +52 -52
  8. package/dist/access-coding-context-resolution.d.ts +3 -1
  9. package/dist/access-extraction-force-flush.d.ts +25 -25
  10. package/dist/access-extraction-force-flush.js +14 -14
  11. package/dist/access-health-types.d.ts +3 -1
  12. package/dist/access-http-lcm-compaction.d.ts +39 -39
  13. package/dist/access-http-lifecycle-flush.d.ts +39 -39
  14. package/dist/access-http-offline-stream.d.ts +25 -25
  15. package/dist/access-http-query.d.ts +4 -2
  16. package/dist/access-http-query.js +16 -16
  17. package/dist/access-http.d.ts +51 -44
  18. package/dist/access-http.js +30 -30
  19. package/dist/access-identity-continuity-surface.d.ts +12 -12
  20. package/dist/access-identity-continuity-surface.js +14 -14
  21. package/dist/access-lcm-surface.d.ts +27 -27
  22. package/dist/access-lcm-surface.js +14 -14
  23. package/dist/access-mcp-admin-tools.d.ts +9 -1
  24. package/dist/access-mcp-admin-tools.js +3 -1
  25. package/dist/access-mcp-output-schemas.js +1 -1
  26. package/dist/access-mcp.d.ts +39 -39
  27. package/dist/access-mcp.js +24 -24
  28. package/dist/access-memory-search-fanout.d.ts +4 -2
  29. package/dist/{access-namespace-preflight-Dhvcl-T0.d.ts → access-namespace-preflight-B7Usyz-K.d.ts} +1 -1
  30. package/dist/access-namespace-preflight.d.ts +5 -3
  31. package/dist/access-namespace-preflight.js +14 -14
  32. package/dist/access-observe-write-surface.d.ts +39 -39
  33. package/dist/access-observe-write-surface.js +14 -14
  34. package/dist/access-offline-manifest.d.ts +12 -12
  35. package/dist/access-operations-batch.js +18 -18
  36. package/dist/access-operations.d.ts +40 -40
  37. package/dist/access-operations.js +21 -21
  38. package/dist/access-recall-concurrency.d.ts +40 -40
  39. package/dist/access-recall-concurrency.js +14 -14
  40. package/dist/access-recall-response.d.ts +24 -24
  41. package/dist/access-recall-response.js +14 -14
  42. package/dist/access-recall-surface.d.ts +24 -24
  43. package/dist/access-recall-surface.js +14 -14
  44. package/dist/access-schema.d.ts +45 -45
  45. package/dist/{access-service-Bke1alZO.d.ts → access-service-DkaIG3n8.d.ts} +219 -75
  46. package/dist/access-service-helpers.d.ts +40 -40
  47. package/dist/access-service.d.ts +47 -47
  48. package/dist/access-service.js +14 -14
  49. package/dist/access-surface-catalog.d.ts +40 -40
  50. package/dist/access-surface-catalog.js +20 -16
  51. package/dist/access-surface-catalog.js.map +1 -1
  52. package/dist/access-wearables-meetings-surface.d.ts +5 -3
  53. package/dist/action-confidence.d.ts +3 -1
  54. package/dist/active-memory-bridge.d.ts +3 -1
  55. package/dist/active-recall.d.ts +3 -1
  56. package/dist/active-recall.js +6 -1
  57. package/dist/active-recall.js.map +1 -1
  58. package/dist/ambient-provenance.d.ts +3 -1
  59. package/dist/artifact-search.d.ts +3 -1
  60. package/dist/behavior-learner.d.ts +3 -1
  61. package/dist/behavior-signals.d.ts +3 -1
  62. package/dist/bootstrap.d.ts +12 -12
  63. package/dist/briefing-window.d.ts +4 -2
  64. package/dist/briefing.d.ts +4 -2
  65. package/dist/briefing.js +3 -3
  66. package/dist/buffer-surprise-report.d.ts +3 -1
  67. package/dist/buffer-turn-helpers.d.ts +3 -1
  68. package/dist/buffer.d.ts +4 -2
  69. package/dist/bulk-import/index.d.ts +5 -3
  70. package/dist/calibration.d.ts +3 -1
  71. package/dist/capabilities.d.ts +3 -1
  72. package/dist/{catalog-DV6qnbr7.d.ts → catalog-CX2BZEJh.d.ts} +1 -1
  73. package/dist/causal-behavior.d.ts +1 -1
  74. package/dist/causal-consolidation.d.ts +3 -1
  75. package/dist/causal-consolidation.js +7 -7
  76. package/dist/causal-trajectory-graph.d.ts +1 -1
  77. package/dist/{chunk-R7JAM2XF.js → chunk-2VXWFYJE.js} +3 -3
  78. package/dist/{chunk-UXO5IMBK.js → chunk-4XDGYCZI.js} +2 -2
  79. package/dist/{chunk-OTHZWLUD.js → chunk-57HVIG5U.js} +2 -2
  80. package/dist/{chunk-EILZG5VC.js → chunk-6TAX66IA.js} +2 -2
  81. package/dist/{chunk-NKKD4ZAU.js → chunk-6VALIZKG.js} +2 -2
  82. package/dist/{chunk-BWLRUMOG.js → chunk-76PL4XLG.js} +435 -1
  83. package/dist/chunk-76PL4XLG.js.map +1 -0
  84. package/dist/{chunk-2E36UXVW.js → chunk-7KFIMGMP.js} +2 -2
  85. package/dist/{chunk-LGO6A7GJ.js → chunk-7QOO4LGC.js} +28 -28
  86. package/dist/{chunk-TBOJ76ER.js → chunk-AB3A7EFH.js} +18 -2
  87. package/dist/{chunk-TBOJ76ER.js.map → chunk-AB3A7EFH.js.map} +1 -1
  88. package/dist/{chunk-DZUJ46DO.js → chunk-AUO2LJ3K.js} +2 -2
  89. package/dist/{chunk-ZO6AXLEH.js → chunk-AYDDB3XI.js} +2 -2
  90. package/dist/{chunk-NTWN6HB2.js → chunk-AYYGRVRP.js} +2 -2
  91. package/dist/{chunk-7YQ4IYS2.js → chunk-AZAA5DNP.js} +2 -2
  92. package/dist/{chunk-4KYOLI6M.js → chunk-BKYPJUQL.js} +120 -14
  93. package/dist/chunk-BKYPJUQL.js.map +1 -0
  94. package/dist/{chunk-Z7PBQPJ4.js → chunk-BQUEAVNW.js} +2 -2
  95. package/dist/{chunk-35NN3ZFA.js → chunk-CTVWELNK.js} +21 -3
  96. package/dist/chunk-CTVWELNK.js.map +1 -0
  97. package/dist/{chunk-5YQ63T4B.js → chunk-D27J626P.js} +2 -2
  98. package/dist/{chunk-LZH5FR2W.js → chunk-DHTQP334.js} +2 -2
  99. package/dist/{chunk-Y7DK7HHJ.js → chunk-E4MVQQVX.js} +2 -2
  100. package/dist/{chunk-JYYBA7TF.js → chunk-EIVIB73I.js} +2 -2
  101. package/dist/{chunk-S2DPMJXH.js → chunk-EV3YFLCB.js} +2 -2
  102. package/dist/{chunk-TZNQUNKL.js → chunk-FC7TIRFS.js} +15 -1
  103. package/dist/chunk-FC7TIRFS.js.map +1 -0
  104. package/dist/{chunk-3I7ASZN3.js → chunk-G57LQRP6.js} +2 -2
  105. package/dist/{chunk-UIN2BWDD.js → chunk-GN55KU2P.js} +2 -2
  106. package/dist/{chunk-PE255F4T.js → chunk-GUXS322H.js} +2 -2
  107. package/dist/{chunk-V3MXUL3D.js → chunk-H5FW4S5Q.js} +319 -643
  108. package/dist/chunk-H5FW4S5Q.js.map +1 -0
  109. package/dist/chunk-I32NKXE2.js +879 -0
  110. package/dist/chunk-I32NKXE2.js.map +1 -0
  111. package/dist/{chunk-YB42WZCY.js → chunk-IQSC3V2E.js} +2 -2
  112. package/dist/{chunk-MN4KB2A4.js → chunk-MBDJJTAT.js} +3 -3
  113. package/dist/{chunk-SQI57UCJ.js → chunk-MRTUN665.js} +2 -2
  114. package/dist/{chunk-SBDCZ2AX.js → chunk-NXKJHSDN.js} +1 -1
  115. package/dist/chunk-NXKJHSDN.js.map +1 -0
  116. package/dist/{chunk-SPUJNJJC.js → chunk-NZWEEALH.js} +2 -2
  117. package/dist/{chunk-2XDWWPTN.js → chunk-OJD4WS2E.js} +2 -2
  118. package/dist/{chunk-ZWXJBFZU.js → chunk-OLWTCWQ2.js} +8 -8
  119. package/dist/{chunk-XRYZRW54.js → chunk-P4DHENRE.js} +2 -2
  120. package/dist/{chunk-J275IYMG.js → chunk-PAYGC3BD.js} +29 -2
  121. package/dist/chunk-PAYGC3BD.js.map +1 -0
  122. package/dist/{chunk-IID2CMUU.js → chunk-PDVQ5JU3.js} +2 -2
  123. package/dist/{chunk-7BY7V4YX.js → chunk-Q4WONDMJ.js} +4 -3
  124. package/dist/{chunk-7BY7V4YX.js.map → chunk-Q4WONDMJ.js.map} +1 -1
  125. package/dist/{chunk-5NM4OH4P.js → chunk-QFMO32TO.js} +3 -3
  126. package/dist/{chunk-SIHSCCUQ.js → chunk-QXIQPCCN.js} +1 -1
  127. package/dist/{chunk-2YI72KM3.js → chunk-R47WINCY.js} +2 -2
  128. package/dist/{chunk-ZQHI2BZB.js → chunk-RK4WXUI2.js} +2 -2
  129. package/dist/{chunk-QOS5LBZN.js → chunk-S7Q5CM7E.js} +2 -2
  130. package/dist/{chunk-GDFVPUJ5.js → chunk-TDKSCV62.js} +2 -2
  131. package/dist/{chunk-OCZIYAE5.js → chunk-TYUS5TLG.js} +3 -3
  132. package/dist/{chunk-GNCCUR6K.js → chunk-URHCUXKI.js} +2 -2
  133. package/dist/{chunk-TF77C7SV.js → chunk-VA5KMSAE.js} +7 -5
  134. package/dist/chunk-VA5KMSAE.js.map +1 -0
  135. package/dist/{chunk-SB7D4BT7.js → chunk-WN5FSGLE.js} +1545 -105
  136. package/dist/chunk-WN5FSGLE.js.map +1 -0
  137. package/dist/{chunk-YLDXWCZP.js → chunk-YF6UHWOV.js} +14 -9
  138. package/dist/chunk-YF6UHWOV.js.map +1 -0
  139. package/dist/{chunk-CT56C22C.js → chunk-Z4RPXHJH.js} +4 -4
  140. package/dist/{cli-cShQ13XG.d.ts → cli-ChKeYMZv.d.ts} +5 -5
  141. package/dist/cli.d.ts +25 -25
  142. package/dist/cli.js +44 -43
  143. package/dist/coding/pre-action-gate.d.ts +2 -60
  144. package/dist/compounding/engine.d.ts +4 -2
  145. package/dist/compounding/engine.js +3 -3
  146. package/dist/compounding/preference-consolidator.d.ts +3 -1
  147. package/dist/compression-optimizer.d.ts +3 -1
  148. package/dist/config.d.ts +3 -1
  149. package/dist/config.js +6 -1
  150. package/dist/connectors/codex-materialize-runner.d.ts +3 -1
  151. package/dist/connectors/codex-materialize-runner.js +3 -3
  152. package/dist/connectors/codex-materialize.d.ts +3 -1
  153. package/dist/connectors/index.d.ts +3 -1
  154. package/dist/connectors/index.js +3 -3
  155. package/dist/consolidation-provenance-check.d.ts +4 -2
  156. package/dist/consolidation-undo.d.ts +4 -2
  157. package/dist/contradiction/index.d.ts +10 -270
  158. package/dist/contradiction/index.js +11 -6
  159. package/dist/{contradiction-review-QKJH5DKD.js → contradiction-review-WRVLRWHS.js} +6 -2
  160. package/dist/{contradiction-scan-VOTQRRSX.js → contradiction-scan-AKUWPX5N.js} +5 -3
  161. package/dist/converge-config.d.ts +3 -1
  162. package/dist/convergence-refresh.d.ts +4 -2
  163. package/dist/convergence-refresh.js +5 -5
  164. package/dist/conversation-index/backend.d.ts +3 -1
  165. package/dist/conversation-index/chunker.d.ts +3 -1
  166. package/dist/conversation-index/faiss-adapter.d.ts +3 -1
  167. package/dist/conversation-index/indexer.d.ts +3 -1
  168. package/dist/conversation-index/search.d.ts +3 -1
  169. package/dist/corpus-watermark.d.ts +3 -1
  170. package/dist/corpus-watermark.js +5 -5
  171. package/dist/cross-lingual-recall.d.ts +3 -1
  172. package/dist/day-summary.d.ts +3 -1
  173. package/dist/delinearize.d.ts +3 -1
  174. package/dist/dependency-propagation-config.d.ts +3 -1
  175. package/dist/{dependency-propagation-delivery-CsGg-VwS.d.ts → dependency-propagation-delivery-B8ZMBBCY.d.ts} +1 -1
  176. package/dist/direct-answer-wiring.d.ts +3 -1
  177. package/dist/direct-answer.d.ts +3 -1
  178. package/dist/embedding-fallback.d.ts +3 -1
  179. package/dist/enrichment/index.d.ts +3 -1
  180. package/dist/entity-origin-fields.d.ts +3 -1
  181. package/dist/entity-retrieval.d.ts +4 -2
  182. package/dist/entity-retrieval.js +3 -3
  183. package/dist/entity-schema.d.ts +3 -1
  184. package/dist/episodic-context.d.ts +3 -1
  185. package/dist/explicit-capture.d.ts +12 -12
  186. package/dist/external-wiki-access.d.ts +40 -40
  187. package/dist/external-wiki-access.js +15 -15
  188. package/dist/external-wiki-collection-registration.d.ts +3 -1
  189. package/dist/external-wiki-collection.d.ts +3 -1
  190. package/dist/external-wiki-mcp-tools.d.ts +40 -40
  191. package/dist/extraction-error-classification.d.ts +3 -1
  192. package/dist/extraction-faithfulness.d.ts +3 -1
  193. package/dist/extraction-judge-telemetry.d.ts +3 -1
  194. package/dist/extraction-judge-training.d.ts +3 -1
  195. package/dist/extraction-judge.d.ts +3 -1
  196. package/dist/extraction-liveness.d.ts +3 -1
  197. package/dist/extraction-normalization.d.ts +3 -1
  198. package/dist/extraction-prompt.d.ts +3 -1
  199. package/dist/extraction-source-grounding-rules.d.ts +3 -1
  200. package/dist/extraction-source-grounding.d.ts +3 -1
  201. package/dist/extraction.d.ts +3 -1
  202. package/dist/extraction.js +3 -3
  203. package/dist/fallback-llm.d.ts +3 -1
  204. package/dist/graph-dashboard-diff.d.ts +3 -1
  205. package/dist/graph-dashboard-key.d.ts +3 -1
  206. package/dist/graph-dashboard-parser.d.ts +3 -1
  207. package/dist/graph-edge-reinforcement.d.ts +3 -1
  208. package/dist/graph-path-reconstruction.d.ts +3 -1
  209. package/dist/graph-path-scoring.d.ts +3 -1
  210. package/dist/graph-snapshot.d.ts +3 -1
  211. package/dist/graph.d.ts +3 -1
  212. package/dist/harmonic-retrieval.js +1 -1
  213. package/dist/importance.d.ts +3 -1
  214. package/dist/importers/index.d.ts +3 -1
  215. package/dist/in-flight-reads.d.ts +3 -1
  216. package/dist/index-CexDrJzC.d.ts +284 -0
  217. package/dist/index.d.ts +251 -29
  218. package/dist/index.js +129 -75
  219. package/dist/intent.d.ts +3 -1
  220. package/dist/lcm/engine.d.ts +3 -1
  221. package/dist/lcm/index.d.ts +3 -1
  222. package/dist/lcm/tools.d.ts +3 -1
  223. package/dist/lifecycle.d.ts +3 -1
  224. package/dist/live-connectors-runner.d.ts +3 -1
  225. package/dist/local-llm.d.ts +3 -1
  226. package/dist/local-model-endpoint.d.ts +3 -1
  227. package/dist/maintenance/memory-governance.d.ts +3 -1
  228. package/dist/maintenance/memory-governance.js +3 -3
  229. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +4 -2
  230. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
  231. package/dist/maintenance/rebuild-memory-projection.d.ts +4 -2
  232. package/dist/maintenance/rebuild-memory-projection.js +4 -4
  233. package/dist/{maintenance-jhMpeGne.d.ts → maintenance-nkdtSrVr.d.ts} +3 -3
  234. package/dist/mcp-memory-inspector-app.d.ts +37 -37
  235. package/dist/memory-action-policy.d.ts +3 -1
  236. package/dist/memory-cache.d.ts +3 -1
  237. package/dist/memory-lifecycle-ledger-utils.d.ts +3 -1
  238. package/dist/memory-projection-store.d.ts +3 -1
  239. package/dist/memory-provenance.d.ts +3 -1
  240. package/dist/memory-snapshot.d.ts +3 -1
  241. package/dist/memory-subject-cli.d.ts +40 -40
  242. package/dist/memory-subject.d.ts +42 -42
  243. package/dist/memory-worth-outcomes.d.ts +4 -2
  244. package/dist/models-json.d.ts +3 -1
  245. package/dist/namespaces/migrate.d.ts +5 -3
  246. package/dist/namespaces/migrate.js +4 -4
  247. package/dist/namespaces/principal.d.ts +3 -1
  248. package/dist/namespaces/search.d.ts +3 -1
  249. package/dist/namespaces/storage.d.ts +5 -3
  250. package/dist/namespaces/storage.js +3 -3
  251. package/dist/native-knowledge.d.ts +3 -1
  252. package/dist/offline-sync-impression-drain.d.ts +3 -1
  253. package/dist/operator-doctor-corpus.d.ts +3 -1
  254. package/dist/operator-doctor-corpus.js +6 -6
  255. package/dist/operator-doctor-replica.d.ts +3 -1
  256. package/dist/operator-toolkit.d.ts +5 -3
  257. package/dist/operator-toolkit.js +15 -12
  258. package/dist/orchestration/compression-guideline-coordinator.d.ts +4 -2
  259. package/dist/orchestration/maintenance.d.ts +6 -4
  260. package/dist/orchestration/maintenance.js +9 -9
  261. package/dist/{orchestrator-DyGUC7re.d.ts → orchestrator-Bvq1-RQs.d.ts} +23 -9
  262. package/dist/orchestrator.d.ts +12 -12
  263. package/dist/orchestrator.js +52 -52
  264. package/dist/patterns-cli.d.ts +3 -1
  265. package/dist/{pipeline-C25Oxtp1.d.ts → pipeline-C8vfIiTX.d.ts} +1 -1
  266. package/dist/policy-runtime.d.ts +3 -1
  267. package/dist/proactive-contention.d.ts +3 -1
  268. package/dist/provenance.d.ts +3 -1
  269. package/dist/{public-http-CMe7NQzj.d.ts → public-http-Cy0aYbys.d.ts} +1 -1
  270. package/dist/{qmd-DkDVCbgF.d.ts → qmd-B9p1SZTZ.d.ts} +1 -1
  271. package/dist/qmd-preflight.d.ts +4 -2
  272. package/dist/qmd-recall-cache.d.ts +3 -1
  273. package/dist/qmd.d.ts +4 -2
  274. package/dist/recall-concurrency-config.d.ts +3 -1
  275. package/dist/recall-disclosure-escalation.d.ts +3 -1
  276. package/dist/recall-explain-renderer.d.ts +3 -1
  277. package/dist/recall-explain-renderer.js +3 -3
  278. package/dist/recall-memory-map.d.ts +3 -1
  279. package/dist/recall-planner-llm.d.ts +3 -1
  280. package/dist/recall-state.d.ts +3 -1
  281. package/dist/recall-tag-filter.d.ts +3 -1
  282. package/dist/recall-timings.d.ts +3 -1
  283. package/dist/recall-xray-cli.d.ts +3 -1
  284. package/dist/recall-xray-cli.js +4 -4
  285. package/dist/recall-xray-renderer.d.ts +3 -1
  286. package/dist/recall-xray-renderer.js +3 -3
  287. package/dist/recall-xray.d.ts +3 -1
  288. package/dist/recall-xray.js +2 -2
  289. package/dist/reconcile/cursor.d.ts +3 -1
  290. package/dist/reconcile/manifest.d.ts +3 -1
  291. package/dist/reconcile/plan.d.ts +3 -1
  292. package/dist/replay/normalizers/chatgpt.d.ts +3 -1
  293. package/dist/replay/normalizers/claude.d.ts +3 -1
  294. package/dist/replay/normalizers/openclaw.d.ts +3 -1
  295. package/dist/replay/normalizers/shared.d.ts +3 -1
  296. package/dist/replay/runner.d.ts +3 -1
  297. package/dist/replay/types.d.ts +3 -1
  298. package/dist/replica-divergence.d.ts +3 -1
  299. package/dist/replica-peers-config.d.ts +3 -1
  300. package/dist/{resolution-MFY72STR.js → resolution-4552BNRV.js} +13 -3
  301. package/dist/resolve-auth-token.d.ts +3 -1
  302. package/dist/resume-bundles.js +4 -2
  303. package/dist/retrieval-agents.d.ts +4 -2
  304. package/dist/retrieval-tiers.d.ts +3 -1
  305. package/dist/routing/engine.d.ts +3 -1
  306. package/dist/routing/store.d.ts +3 -1
  307. package/dist/salvage-envelope.d.ts +3 -1
  308. package/dist/schemas.d.ts +44 -44
  309. package/dist/{scope-profiles-B9xMoFO-.d.ts → scope-profiles-DLrRxFWR.d.ts} +1 -1
  310. package/dist/search/embed-helper.d.ts +3 -1
  311. package/dist/search/factory.d.ts +3 -1
  312. package/dist/search/index.d.ts +3 -1
  313. package/dist/search/lancedb-backend.d.ts +3 -1
  314. package/dist/search/meilisearch-backend.d.ts +3 -1
  315. package/dist/search/noop-backend.d.ts +3 -1
  316. package/dist/search/orama-backend.d.ts +3 -1
  317. package/dist/search/port.d.ts +3 -1
  318. package/dist/search/remote-backend.d.ts +3 -1
  319. package/dist/{semantic-TddhF0y7.d.ts → semantic-BalR6EXU.d.ts} +1 -1
  320. package/dist/{semantic-consolidation-C4uykW84.d.ts → semantic-consolidation-DlN6xe20.d.ts} +1 -1
  321. package/dist/semantic-consolidation.d.ts +4 -2
  322. package/dist/semantic-consolidation.js +4 -4
  323. package/dist/semantic-rule-promotion.js +3 -3
  324. package/dist/semantic-rule-verifier.d.ts +3 -1
  325. package/dist/semantic-rule-verifier.js +3 -3
  326. package/dist/{service-DCZDZNcV.d.ts → service-GkYyVfm9.d.ts} +2 -2
  327. package/dist/session-observer-bands.d.ts +3 -1
  328. package/dist/session-observer-state.d.ts +3 -1
  329. package/dist/shared-context/manager.d.ts +3 -1
  330. package/dist/signal.d.ts +3 -1
  331. package/dist/source-agent-qualifier.d.ts +3 -1
  332. package/dist/source-agent-qualifier.js +3 -3
  333. package/dist/{storage-CcKmEjL8.d.ts → storage-BIDzuKIn.d.ts} +1 -1
  334. package/dist/storage.d.ts +4 -2
  335. package/dist/storage.js +2 -2
  336. package/dist/subject-config.d.ts +3 -1
  337. package/dist/summarizer.d.ts +3 -1
  338. package/dist/summary-snapshot.d.ts +3 -1
  339. package/dist/support-passport/index.d.ts +43 -43
  340. package/dist/support-passport/index.js +17 -17
  341. package/dist/temporal-supersession.d.ts +4 -2
  342. package/dist/temporal-timeline-recall.d.ts +3 -1
  343. package/dist/temporal-validity.d.ts +3 -1
  344. package/dist/threading.d.ts +3 -1
  345. package/dist/tier-migration.d.ts +4 -2
  346. package/dist/tier-routing.d.ts +3 -1
  347. package/dist/topics.d.ts +3 -1
  348. package/dist/transcript.d.ts +3 -1
  349. package/dist/transfer/types.d.ts +20 -20
  350. package/dist/trust-score-stage.d.ts +3 -1
  351. package/dist/trust-score.d.ts +3 -1
  352. package/dist/{types-Pi0lfaEt.d.ts → types-BxAcOl5Q.d.ts} +323 -4
  353. package/dist/types.d.ts +3 -1
  354. package/dist/types.js +1 -1
  355. package/dist/utility-runtime.d.ts +3 -1
  356. package/dist/verified-recall.js +3 -3
  357. package/dist/who-knows-cli.d.ts +40 -40
  358. package/dist/who-knows-cli.js +4 -4
  359. package/dist/who-knows.d.ts +42 -42
  360. package/dist/who-knows.js +3 -3
  361. package/dist/write-envelope.d.ts +3 -1
  362. package/package.json +2 -2
  363. package/src/access-boundary.ts +4 -0
  364. package/src/access-http.ts +6 -5
  365. package/src/access-mcp-admin-tools.ts +24 -0
  366. package/src/access-mcp-output-schemas.ts +14 -0
  367. package/src/access-mcp.ts +2 -2
  368. package/src/access-operations-batch.ts +5 -0
  369. package/src/access-service.ts +27 -0
  370. package/src/access-surface-catalog.test.ts +24 -0
  371. package/src/access-surface-catalog.ts +4 -0
  372. package/src/coding/action-gate.test.ts +341 -0
  373. package/src/coding/action-gate.ts +556 -0
  374. package/src/config.ts +5 -0
  375. package/src/contradiction/contradiction-review.ts +50 -4
  376. package/src/contradiction/contradiction-scan.ts +14 -3
  377. package/src/contradiction/resolution.ts +50 -2
  378. package/src/index.ts +4 -3
  379. package/src/orchestration/recall-rerank-coordinator.ts +123 -4
  380. package/src/orchestration/recall-result-formatter.ts +6 -2
  381. package/src/orchestration/recall-search-pipeline.ts +14 -1
  382. package/src/preferences/drift-config.ts +118 -0
  383. package/src/preferences/drift-recall.ts +133 -0
  384. package/src/preferences/drift-types.ts +87 -0
  385. package/src/preferences/index.ts +12 -0
  386. package/src/preferences/preference-drift.test.ts +690 -0
  387. package/src/preferences/preference-drift.ts +724 -0
  388. package/src/review/review-deck-access.test.ts +325 -0
  389. package/src/review/review-deck-http-base.ts +133 -0
  390. package/src/review/review-deck-mutation.test.ts +417 -0
  391. package/src/review/review-deck-mutation.ts +677 -0
  392. package/src/review/review-deck-snapshot.ts +196 -0
  393. package/src/review/review-deck-surface.ts +117 -0
  394. package/src/review/review-deck.test.ts +347 -0
  395. package/src/review/review-deck.ts +311 -0
  396. package/src/storage.ts +4 -6
  397. package/src/types.ts +7 -3
  398. package/dist/chunk-35NN3ZFA.js.map +0 -1
  399. package/dist/chunk-4KYOLI6M.js.map +0 -1
  400. package/dist/chunk-BWLRUMOG.js.map +0 -1
  401. package/dist/chunk-J275IYMG.js.map +0 -1
  402. package/dist/chunk-SB7D4BT7.js.map +0 -1
  403. package/dist/chunk-SBDCZ2AX.js.map +0 -1
  404. package/dist/chunk-TF77C7SV.js.map +0 -1
  405. package/dist/chunk-TZNQUNKL.js.map +0 -1
  406. package/dist/chunk-V3MXUL3D.js.map +0 -1
  407. package/dist/chunk-XCTXS7VY.js +0 -402
  408. package/dist/chunk-XCTXS7VY.js.map +0 -1
  409. package/dist/chunk-YLDXWCZP.js.map +0 -1
  410. /package/dist/{chunk-R7JAM2XF.js.map → chunk-2VXWFYJE.js.map} +0 -0
  411. /package/dist/{chunk-UXO5IMBK.js.map → chunk-4XDGYCZI.js.map} +0 -0
  412. /package/dist/{chunk-OTHZWLUD.js.map → chunk-57HVIG5U.js.map} +0 -0
  413. /package/dist/{chunk-EILZG5VC.js.map → chunk-6TAX66IA.js.map} +0 -0
  414. /package/dist/{chunk-NKKD4ZAU.js.map → chunk-6VALIZKG.js.map} +0 -0
  415. /package/dist/{chunk-2E36UXVW.js.map → chunk-7KFIMGMP.js.map} +0 -0
  416. /package/dist/{chunk-LGO6A7GJ.js.map → chunk-7QOO4LGC.js.map} +0 -0
  417. /package/dist/{chunk-DZUJ46DO.js.map → chunk-AUO2LJ3K.js.map} +0 -0
  418. /package/dist/{chunk-ZO6AXLEH.js.map → chunk-AYDDB3XI.js.map} +0 -0
  419. /package/dist/{chunk-NTWN6HB2.js.map → chunk-AYYGRVRP.js.map} +0 -0
  420. /package/dist/{chunk-7YQ4IYS2.js.map → chunk-AZAA5DNP.js.map} +0 -0
  421. /package/dist/{chunk-Z7PBQPJ4.js.map → chunk-BQUEAVNW.js.map} +0 -0
  422. /package/dist/{chunk-5YQ63T4B.js.map → chunk-D27J626P.js.map} +0 -0
  423. /package/dist/{chunk-LZH5FR2W.js.map → chunk-DHTQP334.js.map} +0 -0
  424. /package/dist/{chunk-Y7DK7HHJ.js.map → chunk-E4MVQQVX.js.map} +0 -0
  425. /package/dist/{chunk-JYYBA7TF.js.map → chunk-EIVIB73I.js.map} +0 -0
  426. /package/dist/{chunk-S2DPMJXH.js.map → chunk-EV3YFLCB.js.map} +0 -0
  427. /package/dist/{chunk-3I7ASZN3.js.map → chunk-G57LQRP6.js.map} +0 -0
  428. /package/dist/{chunk-UIN2BWDD.js.map → chunk-GN55KU2P.js.map} +0 -0
  429. /package/dist/{chunk-PE255F4T.js.map → chunk-GUXS322H.js.map} +0 -0
  430. /package/dist/{chunk-YB42WZCY.js.map → chunk-IQSC3V2E.js.map} +0 -0
  431. /package/dist/{chunk-MN4KB2A4.js.map → chunk-MBDJJTAT.js.map} +0 -0
  432. /package/dist/{chunk-SQI57UCJ.js.map → chunk-MRTUN665.js.map} +0 -0
  433. /package/dist/{chunk-SPUJNJJC.js.map → chunk-NZWEEALH.js.map} +0 -0
  434. /package/dist/{chunk-2XDWWPTN.js.map → chunk-OJD4WS2E.js.map} +0 -0
  435. /package/dist/{chunk-ZWXJBFZU.js.map → chunk-OLWTCWQ2.js.map} +0 -0
  436. /package/dist/{chunk-XRYZRW54.js.map → chunk-P4DHENRE.js.map} +0 -0
  437. /package/dist/{chunk-IID2CMUU.js.map → chunk-PDVQ5JU3.js.map} +0 -0
  438. /package/dist/{chunk-5NM4OH4P.js.map → chunk-QFMO32TO.js.map} +0 -0
  439. /package/dist/{chunk-SIHSCCUQ.js.map → chunk-QXIQPCCN.js.map} +0 -0
  440. /package/dist/{chunk-2YI72KM3.js.map → chunk-R47WINCY.js.map} +0 -0
  441. /package/dist/{chunk-ZQHI2BZB.js.map → chunk-RK4WXUI2.js.map} +0 -0
  442. /package/dist/{chunk-QOS5LBZN.js.map → chunk-S7Q5CM7E.js.map} +0 -0
  443. /package/dist/{chunk-GDFVPUJ5.js.map → chunk-TDKSCV62.js.map} +0 -0
  444. /package/dist/{chunk-OCZIYAE5.js.map → chunk-TYUS5TLG.js.map} +0 -0
  445. /package/dist/{chunk-GNCCUR6K.js.map → chunk-URHCUXKI.js.map} +0 -0
  446. /package/dist/{chunk-CT56C22C.js.map → chunk-Z4RPXHJH.js.map} +0 -0
  447. /package/dist/{contradiction-review-QKJH5DKD.js.map → contradiction-review-WRVLRWHS.js.map} +0 -0
  448. /package/dist/{contradiction-scan-VOTQRRSX.js.map → contradiction-scan-AKUWPX5N.js.map} +0 -0
  449. /package/dist/{resolution-MFY72STR.js.map → resolution-4552BNRV.js.map} +0 -0
@@ -11,12 +11,12 @@ declare const ExportManifestV1Schema: z.ZodObject<{
11
11
  sha256: z.ZodString;
12
12
  bytes: z.ZodNumber;
13
13
  }, "strip", z.ZodTypeAny, {
14
- path: string;
15
14
  sha256: string;
15
+ path: string;
16
16
  bytes: number;
17
17
  }, {
18
- path: string;
19
18
  sha256: string;
19
+ path: string;
20
20
  bytes: number;
21
21
  }>, "many">;
22
22
  }, "strip", z.ZodTypeAny, {
@@ -24,8 +24,8 @@ declare const ExportManifestV1Schema: z.ZodObject<{
24
24
  createdAt: string;
25
25
  pluginVersion: string;
26
26
  files: {
27
- path: string;
28
27
  sha256: string;
28
+ path: string;
29
29
  bytes: number;
30
30
  }[];
31
31
  schemaVersion: 1;
@@ -35,8 +35,8 @@ declare const ExportManifestV1Schema: z.ZodObject<{
35
35
  createdAt: string;
36
36
  pluginVersion: string;
37
37
  files: {
38
- path: string;
39
38
  sha256: string;
39
+ path: string;
40
40
  bytes: number;
41
41
  }[];
42
42
  schemaVersion: 1;
@@ -66,12 +66,12 @@ declare const ExportBundleV1Schema: z.ZodObject<{
66
66
  sha256: z.ZodString;
67
67
  bytes: z.ZodNumber;
68
68
  }, "strip", z.ZodTypeAny, {
69
- path: string;
70
69
  sha256: string;
70
+ path: string;
71
71
  bytes: number;
72
72
  }, {
73
- path: string;
74
73
  sha256: string;
74
+ path: string;
75
75
  bytes: number;
76
76
  }>, "many">;
77
77
  }, "strip", z.ZodTypeAny, {
@@ -79,8 +79,8 @@ declare const ExportBundleV1Schema: z.ZodObject<{
79
79
  createdAt: string;
80
80
  pluginVersion: string;
81
81
  files: {
82
- path: string;
83
82
  sha256: string;
83
+ path: string;
84
84
  bytes: number;
85
85
  }[];
86
86
  schemaVersion: 1;
@@ -90,8 +90,8 @@ declare const ExportBundleV1Schema: z.ZodObject<{
90
90
  createdAt: string;
91
91
  pluginVersion: string;
92
92
  files: {
93
- path: string;
94
93
  sha256: string;
94
+ path: string;
95
95
  bytes: number;
96
96
  }[];
97
97
  schemaVersion: 1;
@@ -113,8 +113,8 @@ declare const ExportBundleV1Schema: z.ZodObject<{
113
113
  createdAt: string;
114
114
  pluginVersion: string;
115
115
  files: {
116
- path: string;
117
116
  sha256: string;
117
+ path: string;
118
118
  bytes: number;
119
119
  }[];
120
120
  schemaVersion: 1;
@@ -130,8 +130,8 @@ declare const ExportBundleV1Schema: z.ZodObject<{
130
130
  createdAt: string;
131
131
  pluginVersion: string;
132
132
  files: {
133
- path: string;
134
133
  sha256: string;
134
+ path: string;
135
135
  bytes: number;
136
136
  }[];
137
137
  schemaVersion: 1;
@@ -367,12 +367,12 @@ declare const ExportManifestV2Schema: z.ZodObject<{
367
367
  sha256: z.ZodString;
368
368
  bytes: z.ZodNumber;
369
369
  }, "strip", z.ZodTypeAny, {
370
- path: string;
371
370
  sha256: string;
371
+ path: string;
372
372
  bytes: number;
373
373
  }, {
374
- path: string;
375
374
  sha256: string;
375
+ path: string;
376
376
  bytes: number;
377
377
  }>, "many">;
378
378
  capsule: z.ZodObject<{
@@ -511,8 +511,8 @@ declare const ExportManifestV2Schema: z.ZodObject<{
511
511
  createdAt: string;
512
512
  pluginVersion: string;
513
513
  files: {
514
- path: string;
515
514
  sha256: string;
515
+ path: string;
516
516
  bytes: number;
517
517
  }[];
518
518
  capsule: {
@@ -544,8 +544,8 @@ declare const ExportManifestV2Schema: z.ZodObject<{
544
544
  createdAt: string;
545
545
  pluginVersion: string;
546
546
  files: {
547
- path: string;
548
547
  sha256: string;
548
+ path: string;
549
549
  bytes: number;
550
550
  }[];
551
551
  capsule: {
@@ -586,12 +586,12 @@ declare const ExportBundleV2Schema: z.ZodObject<{
586
586
  sha256: z.ZodString;
587
587
  bytes: z.ZodNumber;
588
588
  }, "strip", z.ZodTypeAny, {
589
- path: string;
590
589
  sha256: string;
590
+ path: string;
591
591
  bytes: number;
592
592
  }, {
593
- path: string;
594
593
  sha256: string;
594
+ path: string;
595
595
  bytes: number;
596
596
  }>, "many">;
597
597
  capsule: z.ZodObject<{
@@ -730,8 +730,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
730
730
  createdAt: string;
731
731
  pluginVersion: string;
732
732
  files: {
733
- path: string;
734
733
  sha256: string;
734
+ path: string;
735
735
  bytes: number;
736
736
  }[];
737
737
  capsule: {
@@ -763,8 +763,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
763
763
  createdAt: string;
764
764
  pluginVersion: string;
765
765
  files: {
766
- path: string;
767
766
  sha256: string;
767
+ path: string;
768
768
  bytes: number;
769
769
  }[];
770
770
  capsule: {
@@ -808,8 +808,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
808
808
  createdAt: string;
809
809
  pluginVersion: string;
810
810
  files: {
811
- path: string;
812
811
  sha256: string;
812
+ path: string;
813
813
  bytes: number;
814
814
  }[];
815
815
  capsule: {
@@ -847,8 +847,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
847
847
  createdAt: string;
848
848
  pluginVersion: string;
849
849
  files: {
850
- path: string;
851
850
  sha256: string;
851
+ path: string;
852
852
  bytes: number;
853
853
  }[];
854
854
  capsule: {
@@ -1,4 +1,4 @@
1
- import { F as FaithfulnessFrontmatter, O as ProvenanceSource, U as TrustWeights, Q as QmdSearchResult } from './types-Pi0lfaEt.js';
1
+ import { F as FaithfulnessFrontmatter, O as ProvenanceSource, U as TrustWeights, Q as QmdSearchResult } from './types-BxAcOl5Q.js';
2
2
  import { TrustScoreResult, TrustSignals, TrustBand, TrustScoreComponent } from './trust-score.js';
3
3
  import './message-parts/index.js';
4
4
  import './bounded-jsonl-state.js';
@@ -7,6 +7,8 @@ import './operator-doctor-types.js';
7
7
  import './external-wiki-config.js';
8
8
  import './contradiction-config.js';
9
9
  import './graph-path-scoring-config.js';
10
+ import './causal-trajectory.js';
11
+ import './objective-state.js';
10
12
  import './types-continuity.js';
11
13
 
12
14
  /** Stable key for a recall result whose path may repeat across namespaces. */
@@ -1,4 +1,4 @@
1
- import { U as TrustWeights } from './types-Pi0lfaEt.js';
1
+ import { U as TrustWeights } from './types-BxAcOl5Q.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
4
  import './types-CM86alG1.js';
@@ -6,6 +6,8 @@ import './operator-doctor-types.js';
6
6
  import './external-wiki-config.js';
7
7
  import './contradiction-config.js';
8
8
  import './graph-path-scoring-config.js';
9
+ import './causal-trajectory.js';
10
+ import './objective-state.js';
9
11
  import './types-continuity.js';
10
12
 
11
13
  /**
@@ -5,6 +5,7 @@ import { OperatorDoctorCheck } from './operator-doctor-types.js';
5
5
  import { ExternalWikiRoot } from './external-wiki-config.js';
6
6
  import { ContradictionScanConfig, ContradictionLocalizationConfig } from './contradiction-config.js';
7
7
  import { GraphPathScoringConfig } from './graph-path-scoring-config.js';
8
+ import { ActionStrategyId, CausalTrajectoryStrictReadResult, ActionIntent } from './causal-trajectory.js';
8
9
  import './types-continuity.js';
9
10
 
10
11
  interface BulkImportSource {
@@ -1174,6 +1175,92 @@ declare function parseReplicaPeersConfig(cfg: Record<string, unknown>): ReplicaP
1174
1175
  */
1175
1176
  declare function resolveReplicaPeersConfig(block: unknown): ReplicaPeersConfig;
1176
1177
 
1178
+ /**
1179
+ * Preference drift detection config (issue #2371).
1180
+ *
1181
+ * Standalone top-level block, parsed the same way `contradictionScan` and
1182
+ * `procedural.maintenance` are: shape-validated, string-coercion safe (§24),
1183
+ * and honoring documented zero/no-op values (§33) rather than clamping them
1184
+ * to something non-zero.
1185
+ */
1186
+ interface DriftDetectionConfig {
1187
+ /** Master switch for drift classification and its apply mode. Default false. */
1188
+ enabled: boolean;
1189
+ /** A preference younger than this is never a scan candidate. Default 60. */
1190
+ minAgeDays: number;
1191
+ /** Evidence-gathering window, in days back from the run instant. Default 45. */
1192
+ lookbackDays: number;
1193
+ /** Cap on preferences classified per run. `0` disables the scan entirely. Default 25. */
1194
+ maxCandidatesPerRun: number;
1195
+ /** When true, recall damps `driftState: stale` preferences. Default false. */
1196
+ recallDamping: boolean;
1197
+ /** Multiplier applied to stale preferences in (0, 1]; `1` is a documented no-op. Default 0.8. */
1198
+ stalePenalty: number;
1199
+ /** Annotate injected preferences uncorroborated for this many days. `0` = off. Default 0. */
1200
+ annotateAfterDays: number;
1201
+ }
1202
+ declare const DRIFT_DETECTION_DEFAULTS: DriftDetectionConfig;
1203
+ declare function parseDriftDetectionConfig(raw: unknown): DriftDetectionConfig;
1204
+
1205
+ /**
1206
+ * Shared preference-drift type surfaces (issue #2371).
1207
+ *
1208
+ * These live in the preferences module rather than in `types.ts` so the
1209
+ * cross-cutting fields drift detection introduces are declared next to the
1210
+ * subsystem that owns them, and `types.ts` composes them through `extends`
1211
+ * instead of growing another inline block.
1212
+ */
1213
+
1214
+ /**
1215
+ * Drift verdict persisted on `preference` memories. `corroborated` is
1216
+ * deliberately NOT a member: a corroborated preference clears `driftState` and
1217
+ * stamps `lastCorroborated`, so the stored enum only carries a negative
1218
+ * verdict.
1219
+ */
1220
+ type MemoryDriftState = "stale" | "drifted";
1221
+ /**
1222
+ * Derived drift provenance stamped by the scan AFTER a memory exists — never
1223
+ * supplied at compose time, which is why these fields stay outside the sealed
1224
+ * write envelope for exactly the reason `mw_success` / `mw_fail` do.
1225
+ *
1226
+ * Mixed into `MemoryFrontmatter`.
1227
+ */
1228
+ interface MemoryDriftProvenance {
1229
+ /**
1230
+ * `stale` means the lookback window held no corroborating evidence either
1231
+ * way; `drifted` means recent evidence pointed away from the preference and
1232
+ * a review item was opened. Absent means "not classified".
1233
+ */
1234
+ driftState?: MemoryDriftState;
1235
+ /** ISO 8601 timestamp of the last run that found corroborating evidence. */
1236
+ lastCorroborated?: string;
1237
+ }
1238
+ /**
1239
+ * Per-recall render hint, mixed into `QmdSearchResult`. Set by the
1240
+ * preference-drift recall stage when `driftDetection.annotateAfterDays` is on
1241
+ * and absent otherwise. Never persisted — this annotates one injection, it is
1242
+ * not memory state.
1243
+ */
1244
+ interface RecallDriftAnnotation {
1245
+ driftNote?: string;
1246
+ }
1247
+ /** Mixed into `PluginConfig`. */
1248
+ interface DriftDetectionSettings {
1249
+ driftDetection: DriftDetectionConfig;
1250
+ }
1251
+ /**
1252
+ * Frontmatter codec for the drift stamps. Lives here, beside the interface it
1253
+ * serializes, so `storage.ts` stays a caller rather than growing another
1254
+ * field-specific block.
1255
+ */
1256
+ declare function serializeDriftProvenance(fm: MemoryDriftProvenance): string[];
1257
+ /**
1258
+ * Read the drift stamps back. A hand-edited or unrecognized stored verdict
1259
+ * round-trips to `undefined` rather than poisoning recall damping — the same
1260
+ * policy the Memory Worth counters use for corrupt values.
1261
+ */
1262
+ declare function parseDriftProvenance(fm: Record<string, string | undefined>): MemoryDriftProvenance;
1263
+
1177
1264
  interface ProceduralMaintenanceConfig {
1178
1265
  enabled: boolean;
1179
1266
  retireIdleDays: number;
@@ -1182,6 +1269,236 @@ interface ProceduralMaintenanceConfig {
1182
1269
  mergeEnabled: boolean;
1183
1270
  }
1184
1271
 
1272
+ declare const PRE_ACTION_FINGERPRINT_VERSION = 1;
1273
+ declare const PRE_ACTION_WARNING_VERSION = 1;
1274
+ declare const PRE_ACTION_GATE_DEFAULT_TIMEOUT_MS = 50;
1275
+ type PreActionGateStatus = "NO_MATCH" | "MATCH_WARN" | "ERROR_FAIL_OPEN";
1276
+ interface PreActionGateRequest {
1277
+ sessionKey: string;
1278
+ strategyId: ActionStrategyId;
1279
+ intent: ActionIntent;
1280
+ codingContext: CodingContext;
1281
+ memoryDir?: string;
1282
+ causalTrajectoryStoreDir?: string;
1283
+ signal?: AbortSignal;
1284
+ }
1285
+ interface PreActionGateResult {
1286
+ status: PreActionGateStatus;
1287
+ reason?: string;
1288
+ advisoryText?: string;
1289
+ fingerprint?: string;
1290
+ matchedTrajectoryId?: string;
1291
+ revision?: string;
1292
+ }
1293
+ interface NormalizedActionIntent {
1294
+ kind: "command" | "edit";
1295
+ strategyId: ActionStrategyId;
1296
+ fingerprint: string;
1297
+ }
1298
+ interface PreActionGateDependencies {
1299
+ readStrict?: (options: {
1300
+ memoryDir: string;
1301
+ causalTrajectoryStoreDir?: string;
1302
+ signal?: AbortSignal;
1303
+ }) => Promise<CausalTrajectoryStrictReadResult>;
1304
+ getRevision?: (options: {
1305
+ memoryDir: string;
1306
+ causalTrajectoryStoreDir?: string;
1307
+ }) => Promise<string>;
1308
+ clock?: () => number;
1309
+ maxCacheSize?: number;
1310
+ timeoutMs?: number;
1311
+ }
1312
+ declare function sanitizePayloadString(input: string): string;
1313
+ declare function normalizeActionIntent(intent: ActionIntent, strategyId: ActionStrategyId, codingContext: CodingContext): NormalizedActionIntent;
1314
+ declare class PreActionFailureGate {
1315
+ private readonly cache;
1316
+ private readonly maxCacheSize;
1317
+ private readonly readStrict;
1318
+ private readonly getRevision;
1319
+ private readonly clock;
1320
+ private readonly timeoutMs;
1321
+ constructor(deps?: PreActionGateDependencies);
1322
+ clearCache(): void;
1323
+ evaluate(request: PreActionGateRequest): Promise<PreActionGateResult>;
1324
+ private evaluateInternal;
1325
+ private setCache;
1326
+ }
1327
+
1328
+ /**
1329
+ * Action-site failure gate (issue #2382, slice 1 — core contract).
1330
+ *
1331
+ * The H6 study (#1963) measured that a failure memory delivered in the prompt
1332
+ * preamble barely changes behaviour, while the same memory delivered at the
1333
+ * moment the agent proposes the matched action removes the repeated failure.
1334
+ * This module productionises that delivery point: `ActionGateService` wraps the
1335
+ * experimental `PreActionFailureGate` primitive, adds failure-class memory
1336
+ * candidates, a per-turn budget, cross-channel suppression, and telemetry.
1337
+ *
1338
+ * Scope, per the study's honest limit: the gate removes a known failure mode.
1339
+ * It does not improve task completion. It is advisory only — it never blocks an
1340
+ * action, never outruns its deadline, and fails open on every error path.
1341
+ */
1342
+
1343
+ declare const ACTION_GATE_DEFAULT_MAX_ADVISORIES_PER_TURN = 3;
1344
+ interface ActionGateConfig {
1345
+ /**
1346
+ * Master gate. Default `false`: when disabled no lookup, no matching, and no
1347
+ * suppression bookkeeping runs on any path.
1348
+ */
1349
+ enabled: boolean;
1350
+ /** Hard latency cap for a whole gate evaluation. Overrun fails open. */
1351
+ timeoutMs: number;
1352
+ /** Advisories injected per turn. `0` disables injection and all lookups. */
1353
+ maxAdvisoriesPerTurn: number;
1354
+ }
1355
+ declare const ACTION_GATE_DEFAULTS: ActionGateConfig;
1356
+ declare function parseActionGateConfig(raw: unknown): ActionGateConfig;
1357
+ type ActionGateStatus = "DISABLED" | "NO_MATCH" | "MATCH_WARN" | "ERROR_FAIL_OPEN";
1358
+ interface ActionGateRequest {
1359
+ sessionKey: string;
1360
+ /** Turn identity: the per-turn budget and dedupe reset when this changes. */
1361
+ turnId: string;
1362
+ strategyId: ActionStrategyId;
1363
+ intent: ActionIntent;
1364
+ codingContext: CodingContext;
1365
+ /** Memory directory ALREADY resolved for the caller's readable namespace. */
1366
+ memoryDir: string;
1367
+ /** Resolved readable namespace, passed verbatim to candidate sources. */
1368
+ namespace?: string;
1369
+ causalTrajectoryStoreDir?: string;
1370
+ signal?: AbortSignal;
1371
+ }
1372
+ interface ActionGateAdvisory {
1373
+ /** Trajectory id or memory id — the unit of dedupe and suppression. */
1374
+ memoryId: string;
1375
+ sourceId: string;
1376
+ text: string;
1377
+ }
1378
+ interface ActionGateDecision {
1379
+ status: ActionGateStatus;
1380
+ advisories: ActionGateAdvisory[];
1381
+ /** Candidates withheld: already delivered this turn/session, or over budget. */
1382
+ suppressedIds: string[];
1383
+ /** Source failures, kept distinct from "no candidates" (rule 22). */
1384
+ degradations: string[];
1385
+ fingerprint?: string;
1386
+ reason?: string;
1387
+ latencyMs: number;
1388
+ }
1389
+ interface ActionGateCandidate {
1390
+ memoryId: string;
1391
+ advisoryText: string;
1392
+ /** Deterministic ranking key; higher wins, ties break on `memoryId`. */
1393
+ score?: number;
1394
+ }
1395
+ interface ActionGateCandidateQuery {
1396
+ sessionKey: string;
1397
+ fingerprint: string;
1398
+ /** Normalized, deduplicated lexical terms describing the proposed action. */
1399
+ actionTerms: string[];
1400
+ strategyId: ActionStrategyId;
1401
+ intent: ActionIntent;
1402
+ codingContext: CodingContext;
1403
+ memoryDir: string;
1404
+ namespace?: string;
1405
+ causalTrajectoryStoreDir?: string;
1406
+ signal?: AbortSignal;
1407
+ }
1408
+ type ActionGateSourceResult = {
1409
+ ok: true;
1410
+ candidates: ActionGateCandidate[];
1411
+ } | {
1412
+ ok: false;
1413
+ reason: string;
1414
+ };
1415
+ interface ActionGateCandidateSource {
1416
+ readonly id: string;
1417
+ find(query: ActionGateCandidateQuery): Promise<ActionGateSourceResult>;
1418
+ }
1419
+ interface ActionGateAuditRecord {
1420
+ ts: string;
1421
+ sessionKey: string;
1422
+ turnId: string;
1423
+ status: ActionGateStatus;
1424
+ latencyMs: number;
1425
+ fingerprint?: string;
1426
+ deliveredIds: string[];
1427
+ suppressedIds: string[];
1428
+ degradations: string[];
1429
+ reason?: string;
1430
+ }
1431
+ type ActionGateAuditSink = (record: ActionGateAuditRecord) => void | Promise<void>;
1432
+ interface ActionGateServiceDependencies {
1433
+ sources?: ActionGateCandidateSource[];
1434
+ audit?: ActionGateAuditSink;
1435
+ clock?: () => number;
1436
+ now?: () => Date;
1437
+ }
1438
+ /**
1439
+ * Deterministic, local term extraction from a proposed action. No LLM and no
1440
+ * I/O: this runs in the hot path ahead of the tool call.
1441
+ */
1442
+ declare function actionTermsFor(intent: ActionIntent): string[];
1443
+ /**
1444
+ * Failure-class markers on stored memories, read from frontmatter only so the
1445
+ * decision stays deterministic: explicit corrections, procedures flagged for
1446
+ * repair by library maintenance, and memories whose recorded outcomes are
1447
+ * failure-dominant.
1448
+ */
1449
+ declare function isFailureClassMemory(memory: MemoryFile): boolean;
1450
+ interface FailureMemorySourceDependencies {
1451
+ /**
1452
+ * Namespace-scoped listing of candidate memories. Callers wire this to a
1453
+ * storage read for the SAME namespace the gate request resolved, so a
1454
+ * principal can never receive another principal's advisories.
1455
+ */
1456
+ listMemories: (options: {
1457
+ namespace?: string;
1458
+ memoryDir: string;
1459
+ signal?: AbortSignal;
1460
+ }) => Promise<MemoryFile[]>;
1461
+ }
1462
+ /**
1463
+ * Failure-class memory candidates, matched by bounded lexical overlap against
1464
+ * the proposed action's terms. Deterministic and local by construction.
1465
+ */
1466
+ declare function createFailureMemoryCandidateSource(deps: FailureMemorySourceDependencies): ActionGateCandidateSource;
1467
+ /**
1468
+ * Candidate source over recorded causal-trajectory failures, delegating the
1469
+ * fingerprint match to the existing `PreActionFailureGate` primitive.
1470
+ */
1471
+ declare function createTrajectoryCandidateSource(gate: PreActionFailureGate): ActionGateCandidateSource;
1472
+ /**
1473
+ * Advisory gate evaluated immediately before an agent action.
1474
+ *
1475
+ * Delivery is bounded three ways: a hard deadline, `maxAdvisoriesPerTurn`, and
1476
+ * dedupe per memory per turn. Cross-channel suppression keeps one memory from
1477
+ * arriving twice in a session — once here and once from turn-start recall.
1478
+ */
1479
+ declare class ActionGateService {
1480
+ private readonly config;
1481
+ private readonly sources;
1482
+ private readonly audit?;
1483
+ private readonly clock;
1484
+ private readonly now;
1485
+ private readonly sessions;
1486
+ constructor(config: ActionGateConfig, deps?: ActionGateServiceDependencies);
1487
+ /**
1488
+ * Memory ids the gate already delivered in this session. Turn-start recall
1489
+ * filters these out before its own cap, honouring the filter-then-cap order.
1490
+ */
1491
+ suppressedForTurnStart(sessionKey: string): string[];
1492
+ /** Record ids turn-start recall injected, so the gate will not repeat them. */
1493
+ noteTurnStartDelivery(sessionKey: string, memoryIds: readonly string[]): void;
1494
+ resetSession(sessionKey: string): void;
1495
+ evaluate(request: ActionGateRequest): Promise<ActionGateDecision>;
1496
+ private collect;
1497
+ private finish;
1498
+ private sessionState;
1499
+ private addTracked;
1500
+ }
1501
+
1185
1502
  interface BufferTurnOwner {
1186
1503
  /**
1187
1504
  * Server-resolved principal that owns this session at the authenticated
@@ -1864,7 +2181,7 @@ interface SemanticChunkingConfigShape {
1864
2181
  embeddingBatchSize: number;
1865
2182
  fallbackToRecursive: boolean;
1866
2183
  }
1867
- interface PluginConfig extends BoundedJsonlStateConfig, SecurityConfig {
2184
+ interface PluginConfig extends BoundedJsonlStateConfig, SecurityConfig, DriftDetectionSettings {
1868
2185
  openaiApiKey: string | undefined;
1869
2186
  openaiBaseUrl: string | undefined;
1870
2187
  model: string;
@@ -2405,6 +2722,8 @@ interface PluginConfig extends BoundedJsonlStateConfig, SecurityConfig {
2405
2722
  secureStoreEncryptOnWrite: boolean;
2406
2723
  codingMode: CodingModeConfig;
2407
2724
  codingKnowledge: CodingKnowledgeConfig;
2725
+ /** Action-site failure gate (issue #2382). Off by default; advisory only. */
2726
+ actionGate: ActionGateConfig;
2408
2727
  heartbeat: HeartbeatConfig;
2409
2728
  chat: ChatConfig;
2410
2729
  /** Owner-controlled support passport. Off by default. */
@@ -3836,7 +4155,7 @@ interface ImportanceScore {
3836
4155
  /** Salient keywords extracted */
3837
4156
  keywords: string[];
3838
4157
  }
3839
- interface MemoryFrontmatter extends SourceConnectorProvenance, OriginMetadata {
4158
+ interface MemoryFrontmatter extends SourceConnectorProvenance, OriginMetadata, MemoryDriftProvenance {
3840
4159
  /** True when write-time classification ties this memory to its source connector's tools or commands. */
3841
4160
  toolScoped?: true;
3842
4161
  id: string;
@@ -4428,7 +4747,7 @@ interface ConsolidationObservation {
4428
4747
  merged: number;
4429
4748
  invalidated: number;
4430
4749
  }
4431
- interface QmdSearchResult extends OriginMetadata {
4750
+ interface QmdSearchResult extends OriginMetadata, RecallDriftAnnotation {
4432
4751
  docid: string;
4433
4752
  path: string;
4434
4753
  snippet: string;
@@ -4754,4 +5073,4 @@ interface HourlySummary {
4754
5073
  generatedAt: string;
4755
5074
  }
4756
5075
 
4757
- export { type ExtractionFailureClass as $, type AgentPersonaModelConfig as A, type BriefingSections as B, type CodingContext as C, type DreamsPhase as D, type EntityFile as E, type FaithfulnessFrontmatter as F, type GatewayConfig as G, type HourlySummary as H, type IdentityInjectionMode as I, type MemoryProjectionCurrentState as J, type MemoryLifecycleEvent as K, type LiveConnectorsConfig as L, type MemoryFile as M, type MemorySubject as N, type ProvenanceSource as O, type PluginConfig as P, type QmdSearchResult as Q, type RecallPlanMode as R, type SessionObserverBandConfig as S, type TranscriptEntry as T, type TrustWeights as U, type ConversationThread as V, type LifecycleState as W, type VerificationState as X, type PolicyClass as Y, type ReplicaPeersConfig as Z, type ReplicaPeerConfig as _, type DreamsRunResult as a, type WearableSyncSummary as a$, type ImportanceLevel as a0, type ConvergeConflictPolicy as a1, type ActiveRecallChatType as a2, type ActiveRecallQueryMode as a3, type ActiveRecallPromptStyle as a4, type ActiveRecallThinking as a5, type ActiveRecallModelFallbackPolicy as a6, type ExtractionResult as a7, type BehaviorSignalEvent as a8, type BufferSurpriseEvent as a9, type NativeKnowledgeConfig as aA, type ExtractionBufferSource as aB, type MetaState as aC, summarizeExtractionLiveness as aD, type RetrievalTier as aE, type SignalScanResult as aF, type TopicScore as aG, type ConsolidationResult as aH, type DaySummaryResult as aI, type QmdSearchExplain as aJ, type ActivitySnapshot as aK, type ActivityConfig as aL, type ActivitySourceConfig as aM, type ActivitySourceClient as aN, type MeetingBuildInput as aO, type MeetingsConfig as aP, type FusedMeeting as aQ, type MeetingRecord as aR, type MeetingsDetectionInput as aS, type FusionConversationInput as aT, type DetectedMeeting as aU, type WearableConversation as aV, type WearableSourceSettings as aW, type WearableNativeMemory as aX, type WearableMemoryMode as aY, type WearableSourceConnector as aZ, type WearablesConfig as a_, type ImportTurn as aa, type BulkImportOptions as ab, type BulkImportSource as ac, type BulkImportResult as ad, type CompressionGuidelineOptimizerEventCounts as ae, type CompressionGuidelineOptimizerActionSummary as af, type CompressionGuidelineOptimizerRuleUpdate as ag, type MemoryActionType as ah, type MemoryActionEvent as ai, type CompressionGuidelineOptimizerState as aj, type ConvergeConfig as ak, type EntityMention as al, type DependencyPropagationConfig as am, type EntityStructuredSection as an, type EntitySchemaDefinition as ao, type EntitySchemaSectionDefinition as ap, type ExtractedFact as aq, type ProvenanceConfig as ar, type ImportanceScore as as, type MemoryIntent as at, type SubjectGuardMode as au, type MemoryActionEligibilityContext as av, type MemoryActionPolicyResult as aw, type MemoryLifecycleEventType as ax, type MemoryLifecycleStateSummary as ay, type ModelProviderConfig as az, type RecallTierExplain as b, type WearableTranscriptSegment as b$, type WearableSourceStatus as b0, type WearableDayTranscript as b1, type FusedWearableConversation as b2, type WearableCorrectionRule as b3, type FusedDayMeta as b4, type FusedDayFile as b5, type MeetingDetectionSource as b6, type EntityTimelineEntry as b7, type MemoryLink as b8, type BufferState as b9, type MeetingAudioWindow as bA, type MeetingAppSpan as bB, type ActivityExtractionMode as bC, type BriefingConfig as bD, type BriefingWindow as bE, type BulkImportError as bF, type BulkImportSourceAdapter as bG, type CodexCompatConfig as bH, DEFAULT_RECALL_DISCLOSURE as bI, type DisagreementKind as bJ, type FusedContribution as bK, type FusedConversationProvenance as bL, type FusedSegmentProvenance as bM, type FusionSegmentInput as bN, type ImportSourceRole as bO, type ImportTurnValidationIssue as bP, type MeetingScreenContextEvent as bQ, type MeetingSummaryMode as bR, type MemoryActionEligibilitySource as bS, type MemoryObservation as bT, type MemoryScope as bU, RECALL_DISCLOSURE_LEVELS as bV, type SegmentPickReason as bW, type WearableAuthCheck as bX, type WearableFetchOptions as bY, type WearableFetchPage as bZ, type WearableNativeMemoryPage as b_, type FileHygieneConfig as ba, type EntityRelationship as bb, type EntityActivityEntry as bc, type AccessTrackingEntry as bd, type MemorySummary as be, type DreamsStatusResult as bf, type RecallSectionConfig as bg, type BootstrapOptions as bh, type BootstrapResult as bi, type ConsolidationObservation as bj, type CodingModeConfig as bk, type FusedSpeaker as bl, type FusedSegment as bm, type FusedDisagreement as bn, type FusionOptions as bo, type FusionDayResult as bp, type CodingKnowledgeConfig as bq, type WearableCleanupSettings as br, type WearableFusionConfig as bs, type OffTheRecordMarkerSettings as bt, type WearableDayTranscriptMeta as bu, type ActivityDayMeta as bv, type ActivityDayDigest as bw, type ActivitySourceCheck as bx, type ActivitySnapshotPage as by, type MeetingsDetectionConfig as bz, type BriefingFollowup as c, type ExtractedRelationship as c$, isImportRole as c0, isRecallDisclosure as c1, parseIsoTimestamp as c2, validateImportTurn as c3, type SupportPassportConfig as c4, type ExtractionLivenessConfig as c5, ExtractionLivenessWarnThrottle as c6, type ExtractionRootStats as c7, type ExtractionWatermarkOrStorage as c8, type ExtractionWatermarkRead as c9, type BehaviorSignalType as cA, type BriefingCalendarSourceError as cB, type BufferEntryState as cC, type ChatConfig as cD, type CodexCliReasoningEffort as cE, type CodexCompactionFlushMode as cF, type CodexConnectorConfig as cG, type CodingGraphLspConfig as cH, type CompressionGuidelineActivationState as cI, type CompressionGuidelineOptimizerSourceWindow as cJ, type ConfidenceTier as cK, type ConsolidationAction as cL, type ConsolidationItem as cM, type CronConversationRecallMode as cN, type CronRecallMode as cO, type DreamingConfig as cP, type DreamingNarrativePromptStyle as cQ, type DreamsDeepSleepConfig as cR, type DreamsLightSleepConfig as cS, type DreamsPhaseStatus as cT, type DreamsPhasesConfig as cU, type DreamsRemConfig as cV, type EngramTraceEvent as cW, type ExtractedProcedureStep as cX, type ExtractedQuestion as cY, type ExtractedReasoningTrace as cZ, type ExtractedReasoningTraceStep as c_, coerceExtractionWatermark as ca, computeExtractionLivenessStatus as cb, evaluateExtractionLiveness as cc, formatAgeMs as cd, gatherExtractionLivenessStatus as ce, parseExtractionLivenessConfig as cf, renderExtractionLivenessStats as cg, resolveExtractionLivenessConfig as ch, parseReplicaPeersConfig as ci, resolveReplicaPeersConfig as cj, type AmbientCaptureProvenance as ck, type BufferTurnOwner as cl, ProbeTimeoutError as cm, bufferTurnArrayIsSuffixOfSnapshot as cn, bufferTurnArraysEqual as co, bufferTurnsEqual as cp, copyBufferTurn as cq, describeError as cr, liveTurnsFromExtractionSnapshot as cs, matchingQueuedExtractionPrefixLength as ct, probeWithTimeout as cu, type AgentAccessHttpConfig as cv, type AgentDefaultsConfig as cw, type AgentPersona as cx, type BehaviorLoopAdjustment as cy, type BehaviorSignalDirection as cz, type BriefingFocus as d, type ExtractionPassSource as d0, type GitHubLiveConnectorConfig as d1, type GmailLiveConnectorConfig as d2, type GoogleDriveLiveConnectorConfig as d3, type HeartbeatConfig as d4, type HeartbeatDetectionMode as d5, type LlmTraceCallback as d6, type LlmTraceEvent as d7, type MemoryActionOutcome as d8, type MemoryActionPolicyDecision as d9, type SignalLevel as dA, type SlotBehaviorConfig as dB, type SlotMismatchMode as dC, type TriggerMode as dD, confidenceTier as dE, type MemoryActionStatus as da, type MemoryLinkType as db, type MemoryOsPresetName as dc, type ModelApi as dd, type ModelDefinitionConfig as de, type ModelProviderAuthMode as df, type NamespacePolicy as dg, type NativeKnowledgeFolderRuleConfig as dh, type NativeKnowledgeObsidianVaultConfig as di, type NativeKnowledgeOpenClawWorkspaceConfig as dj, type NotionLiveConnectorConfig as dk, type PrincipalFromSessionKeyMode as dl, type PrincipalRule as dm, type ProceduralConfig as dn, type QuestionEntry as dp, type ReasoningEffort as dq, type RecallPipelineConfig as dr, type RecallTraceEvent as ds, type RelevanceFeedback as dt, SPECULATIVE_TTL_DAYS as du, type ScopeProfileAutoPromoteConfig as dv, type ScopeProfileTeamProjectConfig as dw, type ScopeTeamConfig as dx, type ScoredEntity as dy, type SemanticChunkingConfigShape as dz, type CalendarSource as e, type CalendarEvent as f, type BriefingActiveThread as g, type BriefingResult as h, type BriefingOpenCommitment as i, type BriefingRecentEntity as j, type BufferTurn as k, type ExtractionBufferSnapshot as l, type MemoryFrontmatter as m, type Checkpoint as n, type RecallDisclosure as o, type SourceConnectorProvenance as p, type ScopeProfileConfig as q, type ScopeProfileLayerId as r, type ScopeProfilePromotionTarget as s, type BehaviorLoopPolicyState as t, type ExtractionLivenessStatus as u, type SecretRef as v, type AgentAccessAuthToken as w, type MemoryCategory as x, type CaptureMode as y, type MemoryStatus as z };
5076
+ export { type ExtractionFailureClass as $, type AgentPersonaModelConfig as A, type BriefingSections as B, type CodingContext as C, type DreamsPhase as D, type EntityFile as E, type FaithfulnessFrontmatter as F, type GatewayConfig as G, type HourlySummary as H, type IdentityInjectionMode as I, type MemoryProjectionCurrentState as J, type MemoryLifecycleEvent as K, type LiveConnectorsConfig as L, type MemoryFile as M, type MemorySubject as N, type ProvenanceSource as O, type PluginConfig as P, type QmdSearchResult as Q, type RecallPlanMode as R, type SessionObserverBandConfig as S, type TranscriptEntry as T, type TrustWeights as U, type ConversationThread as V, type LifecycleState as W, type VerificationState as X, type PolicyClass as Y, type ReplicaPeersConfig as Z, type ReplicaPeerConfig as _, type DreamsRunResult as a, type WearableSyncSummary as a$, type ImportanceLevel as a0, type ConvergeConflictPolicy as a1, type ActiveRecallChatType as a2, type ActiveRecallQueryMode as a3, type ActiveRecallPromptStyle as a4, type ActiveRecallThinking as a5, type ActiveRecallModelFallbackPolicy as a6, type ExtractionResult as a7, type BehaviorSignalEvent as a8, type BufferSurpriseEvent as a9, type NativeKnowledgeConfig as aA, type ExtractionBufferSource as aB, type MetaState as aC, summarizeExtractionLiveness as aD, type RetrievalTier as aE, type SignalScanResult as aF, type TopicScore as aG, type ConsolidationResult as aH, type DaySummaryResult as aI, type QmdSearchExplain as aJ, type ActivitySnapshot as aK, type ActivityConfig as aL, type ActivitySourceConfig as aM, type ActivitySourceClient as aN, type MeetingBuildInput as aO, type MeetingsConfig as aP, type FusedMeeting as aQ, type MeetingRecord as aR, type MeetingsDetectionInput as aS, type FusionConversationInput as aT, type DetectedMeeting as aU, type WearableConversation as aV, type WearableSourceSettings as aW, type WearableNativeMemory as aX, type WearableMemoryMode as aY, type WearableSourceConnector as aZ, type WearablesConfig as a_, type ImportTurn as aa, type BulkImportOptions as ab, type BulkImportSource as ac, type BulkImportResult as ad, type CompressionGuidelineOptimizerEventCounts as ae, type CompressionGuidelineOptimizerActionSummary as af, type CompressionGuidelineOptimizerRuleUpdate as ag, type MemoryActionType as ah, type MemoryActionEvent as ai, type CompressionGuidelineOptimizerState as aj, type ConvergeConfig as ak, type EntityMention as al, type DependencyPropagationConfig as am, type EntityStructuredSection as an, type EntitySchemaDefinition as ao, type EntitySchemaSectionDefinition as ap, type ExtractedFact as aq, type ProvenanceConfig as ar, type ImportanceScore as as, type MemoryIntent as at, type SubjectGuardMode as au, type MemoryActionEligibilityContext as av, type MemoryActionPolicyResult as aw, type MemoryLifecycleEventType as ax, type MemoryLifecycleStateSummary as ay, type ModelProviderConfig as az, type RecallTierExplain as b, type DisagreementKind as b$, type WearableSourceStatus as b0, type WearableDayTranscript as b1, type FusedWearableConversation as b2, type WearableCorrectionRule as b3, type FusedDayMeta as b4, type FusedDayFile as b5, type MeetingDetectionSource as b6, type EntityTimelineEntry as b7, type MemoryLink as b8, type BufferState as b9, type ActivitySnapshotPage as bA, type MeetingsDetectionConfig as bB, type MeetingAudioWindow as bC, type MeetingAppSpan as bD, ACTION_GATE_DEFAULTS as bE, ACTION_GATE_DEFAULT_MAX_ADVISORIES_PER_TURN as bF, type ActionGateAdvisory as bG, type ActionGateAuditRecord as bH, type ActionGateAuditSink as bI, type ActionGateCandidate as bJ, type ActionGateCandidateQuery as bK, type ActionGateCandidateSource as bL, type ActionGateConfig as bM, type ActionGateDecision as bN, type ActionGateRequest as bO, ActionGateService as bP, type ActionGateServiceDependencies as bQ, type ActionGateSourceResult as bR, type ActionGateStatus as bS, type ActivityExtractionMode as bT, type BriefingConfig as bU, type BriefingWindow as bV, type BulkImportError as bW, type BulkImportSourceAdapter as bX, type CodexCompatConfig as bY, DEFAULT_RECALL_DISCLOSURE as bZ, DRIFT_DETECTION_DEFAULTS as b_, type FileHygieneConfig as ba, type EntityRelationship as bb, type EntityActivityEntry as bc, type AccessTrackingEntry as bd, type MemorySummary as be, type RecallSectionConfig as bf, type BootstrapOptions as bg, type BootstrapResult as bh, type ConsolidationObservation as bi, type DreamsStatusResult as bj, type CodingModeConfig as bk, type FusedSpeaker as bl, type FusedSegment as bm, type FusedDisagreement as bn, type FusionOptions as bo, type FusionDayResult as bp, type MemoryDriftState as bq, type DriftDetectionConfig as br, type CodingKnowledgeConfig as bs, type WearableCleanupSettings as bt, type WearableFusionConfig as bu, type OffTheRecordMarkerSettings as bv, type WearableDayTranscriptMeta as bw, type ActivityDayMeta as bx, type ActivityDayDigest as by, type ActivitySourceCheck as bz, type BriefingFollowup as c, ProbeTimeoutError as c$, type DriftDetectionSettings as c0, type FailureMemorySourceDependencies as c1, type FusedContribution as c2, type FusedConversationProvenance as c3, type FusedSegmentProvenance as c4, type FusionSegmentInput as c5, type ImportSourceRole as c6, type ImportTurnValidationIssue as c7, type MeetingScreenContextEvent as c8, type MeetingSummaryMode as c9, isRecallDisclosure as cA, normalizeActionIntent as cB, parseActionGateConfig as cC, parseDriftDetectionConfig as cD, parseDriftProvenance as cE, parseIsoTimestamp as cF, sanitizePayloadString as cG, serializeDriftProvenance as cH, validateImportTurn as cI, type SupportPassportConfig as cJ, type ExtractionLivenessConfig as cK, ExtractionLivenessWarnThrottle as cL, type ExtractionRootStats as cM, type ExtractionWatermarkOrStorage as cN, type ExtractionWatermarkRead as cO, coerceExtractionWatermark as cP, computeExtractionLivenessStatus as cQ, evaluateExtractionLiveness as cR, formatAgeMs as cS, gatherExtractionLivenessStatus as cT, parseExtractionLivenessConfig as cU, renderExtractionLivenessStats as cV, resolveExtractionLivenessConfig as cW, parseReplicaPeersConfig as cX, resolveReplicaPeersConfig as cY, type AmbientCaptureProvenance as cZ, type BufferTurnOwner as c_, type MemoryActionEligibilitySource as ca, type MemoryDriftProvenance as cb, type MemoryObservation as cc, type MemoryScope as cd, type NormalizedActionIntent as ce, PRE_ACTION_FINGERPRINT_VERSION as cf, PRE_ACTION_GATE_DEFAULT_TIMEOUT_MS as cg, PRE_ACTION_WARNING_VERSION as ch, PreActionFailureGate as ci, type PreActionGateDependencies as cj, type PreActionGateRequest as ck, type PreActionGateResult as cl, type PreActionGateStatus as cm, RECALL_DISCLOSURE_LEVELS as cn, type RecallDriftAnnotation as co, type SegmentPickReason as cp, type WearableAuthCheck as cq, type WearableFetchOptions as cr, type WearableFetchPage as cs, type WearableNativeMemoryPage as ct, type WearableTranscriptSegment as cu, actionTermsFor as cv, createFailureMemoryCandidateSource as cw, createTrajectoryCandidateSource as cx, isFailureClassMemory as cy, isImportRole as cz, type BriefingFocus as d, type PrincipalFromSessionKeyMode as d$, bufferTurnArrayIsSuffixOfSnapshot as d0, bufferTurnArraysEqual as d1, bufferTurnsEqual as d2, copyBufferTurn as d3, describeError as d4, liveTurnsFromExtractionSnapshot as d5, matchingQueuedExtractionPrefixLength as d6, probeWithTimeout as d7, type AgentAccessHttpConfig as d8, type AgentDefaultsConfig as d9, type EngramTraceEvent as dA, type ExtractedProcedureStep as dB, type ExtractedQuestion as dC, type ExtractedReasoningTrace as dD, type ExtractedReasoningTraceStep as dE, type ExtractedRelationship as dF, type ExtractionPassSource as dG, type GitHubLiveConnectorConfig as dH, type GmailLiveConnectorConfig as dI, type GoogleDriveLiveConnectorConfig as dJ, type HeartbeatConfig as dK, type HeartbeatDetectionMode as dL, type LlmTraceCallback as dM, type LlmTraceEvent as dN, type MemoryActionOutcome as dO, type MemoryActionPolicyDecision as dP, type MemoryActionStatus as dQ, type MemoryLinkType as dR, type MemoryOsPresetName as dS, type ModelApi as dT, type ModelDefinitionConfig as dU, type ModelProviderAuthMode as dV, type NamespacePolicy as dW, type NativeKnowledgeFolderRuleConfig as dX, type NativeKnowledgeObsidianVaultConfig as dY, type NativeKnowledgeOpenClawWorkspaceConfig as dZ, type NotionLiveConnectorConfig as d_, type AgentPersona as da, type BehaviorLoopAdjustment as db, type BehaviorSignalDirection as dc, type BehaviorSignalType as dd, type BriefingCalendarSourceError as de, type BufferEntryState as df, type ChatConfig as dg, type CodexCliReasoningEffort as dh, type CodexCompactionFlushMode as di, type CodexConnectorConfig as dj, type CodingGraphLspConfig as dk, type CompressionGuidelineActivationState as dl, type CompressionGuidelineOptimizerSourceWindow as dm, type ConfidenceTier as dn, type ConsolidationAction as dp, type ConsolidationItem as dq, type CronConversationRecallMode as dr, type CronRecallMode as ds, type DreamingConfig as dt, type DreamingNarrativePromptStyle as du, type DreamsDeepSleepConfig as dv, type DreamsLightSleepConfig as dw, type DreamsPhaseStatus as dx, type DreamsPhasesConfig as dy, type DreamsRemConfig as dz, type CalendarSource as e, type PrincipalRule as e0, type ProceduralConfig as e1, type QuestionEntry as e2, type ReasoningEffort as e3, type RecallPipelineConfig as e4, type RecallTraceEvent as e5, type RelevanceFeedback as e6, SPECULATIVE_TTL_DAYS as e7, type ScopeProfileAutoPromoteConfig as e8, type ScopeProfileTeamProjectConfig as e9, type ScopeTeamConfig as ea, type ScoredEntity as eb, type SemanticChunkingConfigShape as ec, type SignalLevel as ed, type SlotBehaviorConfig as ee, type SlotMismatchMode as ef, type TriggerMode as eg, confidenceTier as eh, type CalendarEvent as f, type BriefingActiveThread as g, type BriefingResult as h, type BriefingOpenCommitment as i, type BriefingRecentEntity as j, type BufferTurn as k, type ExtractionBufferSnapshot as l, type MemoryFrontmatter as m, type Checkpoint as n, type RecallDisclosure as o, type SourceConnectorProvenance as p, type ScopeProfileConfig as q, type ScopeProfileLayerId as r, type ScopeProfilePromotionTarget as s, type BehaviorLoopPolicyState as t, type SecretRef as u, type AgentAccessAuthToken as v, type MemoryStatus as w, type ExtractionLivenessStatus as x, type MemoryCategory as y, type CaptureMode as z };
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { bd as AccessTrackingEntry, a2 as ActiveRecallChatType, a6 as ActiveRecallModelFallbackPolicy, a4 as ActiveRecallPromptStyle, a3 as ActiveRecallQueryMode, a5 as ActiveRecallThinking, w as AgentAccessAuthToken, cv as AgentAccessHttpConfig, cw as AgentDefaultsConfig, cx as AgentPersona, A as AgentPersonaModelConfig, cy as BehaviorLoopAdjustment, t as BehaviorLoopPolicyState, cz as BehaviorSignalDirection, a8 as BehaviorSignalEvent, cA as BehaviorSignalType, bh as BootstrapOptions, bi as BootstrapResult, g as BriefingActiveThread, cB as BriefingCalendarSourceError, bD as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, i as BriefingOpenCommitment, j as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bE as BriefingWindow, cC as BufferEntryState, b9 as BufferState, a9 as BufferSurpriseEvent, k as BufferTurn, f as CalendarEvent, e as CalendarSource, y as CaptureMode, cD as ChatConfig, n as Checkpoint, cE as CodexCliReasoningEffort, cF as CodexCompactionFlushMode, bH as CodexCompatConfig, cG as CodexConnectorConfig, C as CodingContext, cH as CodingGraphLspConfig, bq as CodingKnowledgeConfig, bk as CodingModeConfig, cI as CompressionGuidelineActivationState, af as CompressionGuidelineOptimizerActionSummary, ae as CompressionGuidelineOptimizerEventCounts, ag as CompressionGuidelineOptimizerRuleUpdate, cJ as CompressionGuidelineOptimizerSourceWindow, aj as CompressionGuidelineOptimizerState, cK as ConfidenceTier, cL as ConsolidationAction, cM as ConsolidationItem, bj as ConsolidationObservation, aH as ConsolidationResult, ak as ConvergeConfig, a1 as ConvergeConflictPolicy, V as ConversationThread, cN as CronConversationRecallMode, cO as CronRecallMode, bI as DEFAULT_RECALL_DISCLOSURE, aI as DaySummaryResult, am as DependencyPropagationConfig, cP as DreamingConfig, cQ as DreamingNarrativePromptStyle, cR as DreamsDeepSleepConfig, cS as DreamsLightSleepConfig, D as DreamsPhase, cT as DreamsPhaseStatus, cU as DreamsPhasesConfig, cV as DreamsRemConfig, a as DreamsRunResult, bf as DreamsStatusResult, cW as EngramTraceEvent, bc as EntityActivityEntry, E as EntityFile, al as EntityMention, bb as EntityRelationship, ao as EntitySchemaDefinition, ap as EntitySchemaSectionDefinition, an as EntityStructuredSection, b7 as EntityTimelineEntry, aq as ExtractedFact, cX as ExtractedProcedureStep, cY as ExtractedQuestion, cZ as ExtractedReasoningTrace, c_ as ExtractedReasoningTraceStep, c$ as ExtractedRelationship, $ as ExtractionFailureClass, d0 as ExtractionPassSource, a7 as ExtractionResult, F as FaithfulnessFrontmatter, ba as FileHygieneConfig, G as GatewayConfig, d1 as GitHubLiveConnectorConfig, d2 as GmailLiveConnectorConfig, d3 as GoogleDriveLiveConnectorConfig, d4 as HeartbeatConfig, d5 as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, a0 as ImportanceLevel, as as ImportanceScore, W as LifecycleState, L as LiveConnectorsConfig, d6 as LlmTraceCallback, d7 as LlmTraceEvent, av as MemoryActionEligibilityContext, bS as MemoryActionEligibilitySource, ai as MemoryActionEvent, d8 as MemoryActionOutcome, d9 as MemoryActionPolicyDecision, aw as MemoryActionPolicyResult, da as MemoryActionStatus, ah as MemoryActionType, x as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter, at as MemoryIntent, K as MemoryLifecycleEvent, ax as MemoryLifecycleEventType, ay as MemoryLifecycleStateSummary, b8 as MemoryLink, db as MemoryLinkType, bT as MemoryObservation, dc as MemoryOsPresetName, J as MemoryProjectionCurrentState, bU as MemoryScope, z as MemoryStatus, N as MemorySubject, be as MemorySummary, aC as MetaState, dd as ModelApi, de as ModelDefinitionConfig, df as ModelProviderAuthMode, az as ModelProviderConfig, dg as NamespacePolicy, aA as NativeKnowledgeConfig, dh as NativeKnowledgeFolderRuleConfig, di as NativeKnowledgeObsidianVaultConfig, dj as NativeKnowledgeOpenClawWorkspaceConfig, dk as NotionLiveConnectorConfig, P as PluginConfig, Y as PolicyClass, dl as PrincipalFromSessionKeyMode, dm as PrincipalRule, dn as ProceduralConfig, ar as ProvenanceConfig, O as ProvenanceSource, aJ as QmdSearchExplain, Q as QmdSearchResult, dp as QuestionEntry, bV as RECALL_DISCLOSURE_LEVELS, dq as ReasoningEffort, o as RecallDisclosure, dr as RecallPipelineConfig, R as RecallPlanMode, bg as RecallSectionConfig, b as RecallTierExplain, ds as RecallTraceEvent, dt as RelevanceFeedback, aE as RetrievalTier, du as SPECULATIVE_TTL_DAYS, dv as ScopeProfileAutoPromoteConfig, q as ScopeProfileConfig, r as ScopeProfileLayerId, s as ScopeProfilePromotionTarget, dw as ScopeProfileTeamProjectConfig, dx as ScopeTeamConfig, dy as ScoredEntity, v as SecretRef, dz as SemanticChunkingConfigShape, S as SessionObserverBandConfig, dA as SignalLevel, aF as SignalScanResult, dB as SlotBehaviorConfig, dC as SlotMismatchMode, p as SourceConnectorProvenance, au as SubjectGuardMode, c4 as SupportPassportConfig, aG as TopicScore, T as TranscriptEntry, dD as TriggerMode, U as TrustWeights, X as VerificationState, dE as confidenceTier, c1 as isRecallDisclosure } from './types-Pi0lfaEt.js';
1
+ export { bd as AccessTrackingEntry, a2 as ActiveRecallChatType, a6 as ActiveRecallModelFallbackPolicy, a4 as ActiveRecallPromptStyle, a3 as ActiveRecallQueryMode, a5 as ActiveRecallThinking, v as AgentAccessAuthToken, d8 as AgentAccessHttpConfig, d9 as AgentDefaultsConfig, da as AgentPersona, A as AgentPersonaModelConfig, db as BehaviorLoopAdjustment, t as BehaviorLoopPolicyState, dc as BehaviorSignalDirection, a8 as BehaviorSignalEvent, dd as BehaviorSignalType, bg as BootstrapOptions, bh as BootstrapResult, g as BriefingActiveThread, de as BriefingCalendarSourceError, bU as BriefingConfig, d as BriefingFocus, c as BriefingFollowup, i as BriefingOpenCommitment, j as BriefingRecentEntity, h as BriefingResult, B as BriefingSections, bV as BriefingWindow, df as BufferEntryState, b9 as BufferState, a9 as BufferSurpriseEvent, k as BufferTurn, f as CalendarEvent, e as CalendarSource, z as CaptureMode, dg as ChatConfig, n as Checkpoint, dh as CodexCliReasoningEffort, di as CodexCompactionFlushMode, bY as CodexCompatConfig, dj as CodexConnectorConfig, C as CodingContext, dk as CodingGraphLspConfig, bs as CodingKnowledgeConfig, bk as CodingModeConfig, dl as CompressionGuidelineActivationState, af as CompressionGuidelineOptimizerActionSummary, ae as CompressionGuidelineOptimizerEventCounts, ag as CompressionGuidelineOptimizerRuleUpdate, dm as CompressionGuidelineOptimizerSourceWindow, aj as CompressionGuidelineOptimizerState, dn as ConfidenceTier, dp as ConsolidationAction, dq as ConsolidationItem, bi as ConsolidationObservation, aH as ConsolidationResult, ak as ConvergeConfig, a1 as ConvergeConflictPolicy, V as ConversationThread, dr as CronConversationRecallMode, ds as CronRecallMode, bZ as DEFAULT_RECALL_DISCLOSURE, aI as DaySummaryResult, am as DependencyPropagationConfig, dt as DreamingConfig, du as DreamingNarrativePromptStyle, dv as DreamsDeepSleepConfig, dw as DreamsLightSleepConfig, D as DreamsPhase, dx as DreamsPhaseStatus, dy as DreamsPhasesConfig, dz as DreamsRemConfig, a as DreamsRunResult, bj as DreamsStatusResult, dA as EngramTraceEvent, bc as EntityActivityEntry, E as EntityFile, al as EntityMention, bb as EntityRelationship, ao as EntitySchemaDefinition, ap as EntitySchemaSectionDefinition, an as EntityStructuredSection, b7 as EntityTimelineEntry, aq as ExtractedFact, dB as ExtractedProcedureStep, dC as ExtractedQuestion, dD as ExtractedReasoningTrace, dE as ExtractedReasoningTraceStep, dF as ExtractedRelationship, $ as ExtractionFailureClass, dG as ExtractionPassSource, a7 as ExtractionResult, F as FaithfulnessFrontmatter, ba as FileHygieneConfig, G as GatewayConfig, dH as GitHubLiveConnectorConfig, dI as GmailLiveConnectorConfig, dJ as GoogleDriveLiveConnectorConfig, dK as HeartbeatConfig, dL as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, a0 as ImportanceLevel, as as ImportanceScore, W as LifecycleState, L as LiveConnectorsConfig, dM as LlmTraceCallback, dN as LlmTraceEvent, av as MemoryActionEligibilityContext, ca as MemoryActionEligibilitySource, ai as MemoryActionEvent, dO as MemoryActionOutcome, dP as MemoryActionPolicyDecision, aw as MemoryActionPolicyResult, dQ as MemoryActionStatus, ah as MemoryActionType, y as MemoryCategory, M as MemoryFile, m as MemoryFrontmatter, at as MemoryIntent, K as MemoryLifecycleEvent, ax as MemoryLifecycleEventType, ay as MemoryLifecycleStateSummary, b8 as MemoryLink, dR as MemoryLinkType, cc as MemoryObservation, dS as MemoryOsPresetName, J as MemoryProjectionCurrentState, cd as MemoryScope, w as MemoryStatus, N as MemorySubject, be as MemorySummary, aC as MetaState, dT as ModelApi, dU as ModelDefinitionConfig, dV as ModelProviderAuthMode, az as ModelProviderConfig, dW as NamespacePolicy, aA as NativeKnowledgeConfig, dX as NativeKnowledgeFolderRuleConfig, dY as NativeKnowledgeObsidianVaultConfig, dZ as NativeKnowledgeOpenClawWorkspaceConfig, d_ as NotionLiveConnectorConfig, P as PluginConfig, Y as PolicyClass, d$ as PrincipalFromSessionKeyMode, e0 as PrincipalRule, e1 as ProceduralConfig, ar as ProvenanceConfig, O as ProvenanceSource, aJ as QmdSearchExplain, Q as QmdSearchResult, e2 as QuestionEntry, cn as RECALL_DISCLOSURE_LEVELS, e3 as ReasoningEffort, o as RecallDisclosure, e4 as RecallPipelineConfig, R as RecallPlanMode, bf as RecallSectionConfig, b as RecallTierExplain, e5 as RecallTraceEvent, e6 as RelevanceFeedback, aE as RetrievalTier, e7 as SPECULATIVE_TTL_DAYS, e8 as ScopeProfileAutoPromoteConfig, q as ScopeProfileConfig, r as ScopeProfileLayerId, s as ScopeProfilePromotionTarget, e9 as ScopeProfileTeamProjectConfig, ea as ScopeTeamConfig, eb as ScoredEntity, u as SecretRef, ec as SemanticChunkingConfigShape, S as SessionObserverBandConfig, ed as SignalLevel, aF as SignalScanResult, ee as SlotBehaviorConfig, ef as SlotMismatchMode, p as SourceConnectorProvenance, au as SubjectGuardMode, cJ as SupportPassportConfig, aG as TopicScore, T as TranscriptEntry, eg as TriggerMode, U as TrustWeights, X as VerificationState, eh as confidenceTier, cA as isRecallDisclosure } from './types-BxAcOl5Q.js';
2
2
  import './message-parts/index.js';
3
3
  import './bounded-jsonl-state.js';
4
4
  import './types-CM86alG1.js';
@@ -7,3 +7,5 @@ export { ContradictionLocalizationConfig, ContradictionScanConfig } from './cont
7
7
  export { GraphPathScoringConfig } from './graph-path-scoring-config.js';
8
8
  export { ContinuityImprovementLoop, ContinuityIncidentCloseInput, ContinuityIncidentOpenInput, ContinuityIncidentRecord, ContinuityIncidentState, ContinuityLoopCadence, ContinuityLoopReviewInput, ContinuityLoopStatus, ContinuityLoopUpsertInput } from './types-continuity.js';
9
9
  import './operator-doctor-types.js';
10
+ import './causal-trajectory.js';
11
+ import './objective-state.js';
package/dist/types.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  SPECULATIVE_TTL_DAYS,
5
5
  confidenceTier,
6
6
  isRecallDisclosure
7
- } from "./chunk-SBDCZ2AX.js";
7
+ } from "./chunk-NXKJHSDN.js";
8
8
  import "./chunk-PZ5AY32C.js";
9
9
  export {
10
10
  DEFAULT_RECALL_DISCLOSURE,