@remnic/core 9.7.11 → 9.7.13

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 (286) hide show
  1. package/dist/access-admin-ops-surface.d.ts +6 -6
  2. package/dist/access-admin-ops-surface.js +7 -7
  3. package/dist/access-boundary.d.ts +6 -6
  4. package/dist/access-boundary.js +8 -8
  5. package/dist/access-cli.js +31 -31
  6. package/dist/access-http.d.ts +6 -6
  7. package/dist/access-http.js +12 -12
  8. package/dist/access-identity-continuity-surface.d.ts +5 -5
  9. package/dist/access-identity-continuity-surface.js +7 -7
  10. package/dist/access-lcm-surface.d.ts +6 -6
  11. package/dist/access-lcm-surface.js +7 -7
  12. package/dist/access-mcp.d.ts +6 -6
  13. package/dist/access-mcp.js +11 -11
  14. package/dist/access-observe-write-surface.d.ts +6 -6
  15. package/dist/access-observe-write-surface.js +7 -7
  16. package/dist/access-operations-batch.js +9 -9
  17. package/dist/access-operations.d.ts +9 -9
  18. package/dist/access-operations.js +10 -10
  19. package/dist/access-recall-surface.d.ts +6 -6
  20. package/dist/access-recall-surface.js +7 -7
  21. package/dist/access-schema.d.ts +64 -64
  22. package/dist/{access-service-DSuzikHQ.d.ts → access-service-tHd3eQpd.d.ts} +4 -4
  23. package/dist/access-service.d.ts +6 -6
  24. package/dist/access-service.js +7 -7
  25. package/dist/access-surface-catalog.d.ts +6 -6
  26. package/dist/action-confidence.d.ts +1 -1
  27. package/dist/active-memory-bridge.d.ts +1 -1
  28. package/dist/active-recall.d.ts +1 -1
  29. package/dist/active-recall.js +1 -1
  30. package/dist/behavior-learner.d.ts +1 -1
  31. package/dist/behavior-signals.d.ts +1 -1
  32. package/dist/bootstrap.d.ts +5 -5
  33. package/dist/briefing.d.ts +2 -2
  34. package/dist/briefing.js +3 -3
  35. package/dist/buffer-surprise-report.d.ts +1 -1
  36. package/dist/buffer.d.ts +2 -2
  37. package/dist/bulk-import/index.d.ts +3 -3
  38. package/dist/calibration.d.ts +1 -1
  39. package/dist/capabilities.d.ts +1 -1
  40. package/dist/{catalog-BNwjACa5.d.ts → catalog-DEMiw6HZ.d.ts} +48 -1
  41. package/dist/causal-behavior.d.ts +1 -1
  42. package/dist/causal-consolidation.d.ts +1 -1
  43. package/dist/causal-consolidation.js +4 -4
  44. package/dist/causal-trajectory-graph.d.ts +1 -1
  45. package/dist/{chunk-U4KHQTJ6.js → chunk-2AL7N3BH.js} +4 -2
  46. package/dist/{chunk-U4KHQTJ6.js.map → chunk-2AL7N3BH.js.map} +1 -1
  47. package/dist/{chunk-L4H6MQ7I.js → chunk-2RSL6YRA.js} +2 -2
  48. package/dist/{chunk-QHT4W3RU.js → chunk-2V5QI6NQ.js} +41 -9
  49. package/dist/chunk-2V5QI6NQ.js.map +1 -0
  50. package/dist/{chunk-JYRFO4EH.js → chunk-2ZPQUTMW.js} +4 -4
  51. package/dist/{chunk-673NPXE3.js → chunk-3SIC3E65.js} +2 -2
  52. package/dist/{chunk-OVMS3DCB.js → chunk-675YU5IK.js} +2 -2
  53. package/dist/{chunk-7LMEY5KZ.js → chunk-6N7R7TR2.js} +34 -1
  54. package/dist/chunk-6N7R7TR2.js.map +1 -0
  55. package/dist/{chunk-TGBJ2OMK.js → chunk-BQTSGK5Y.js} +2 -2
  56. package/dist/{chunk-6LM6PPDX.js → chunk-CE3GMHT4.js} +2 -2
  57. package/dist/{chunk-YXOAQAH2.js → chunk-CLFY35ED.js} +3 -3
  58. package/dist/{chunk-HQ7QZJM5.js → chunk-D4TLWDYR.js} +2 -2
  59. package/dist/{chunk-LQKITFGB.js → chunk-FUUF7FMX.js} +2 -2
  60. package/dist/{chunk-3ZVFLMFQ.js → chunk-G5PVJJRA.js} +1 -1
  61. package/dist/chunk-G5PVJJRA.js.map +1 -0
  62. package/dist/{chunk-MXRMNKSY.js → chunk-I3GKTDM2.js} +3 -3
  63. package/dist/{chunk-EQF5763Z.js → chunk-IQULRIZM.js} +2 -2
  64. package/dist/{chunk-W6R43NLA.js → chunk-KQMKF4G2.js} +17 -17
  65. package/dist/{chunk-DJCKXI4M.js → chunk-NVXQTRBL.js} +2 -2
  66. package/dist/{chunk-GHVJASQ4.js → chunk-OCY3CRPG.js} +3 -3
  67. package/dist/{chunk-YLTG6BO4.js → chunk-OIFZII6J.js} +2 -2
  68. package/dist/{chunk-XF4KOVDK.js → chunk-PA6DMYEK.js} +6 -6
  69. package/dist/{chunk-3OQ4IZJN.js → chunk-QPZCAVDC.js} +7 -7
  70. package/dist/{chunk-DLWYAN6A.js → chunk-T6U7HDIY.js} +2 -2
  71. package/dist/{chunk-JZM5QUTE.js → chunk-TMGK6YE7.js} +171 -9
  72. package/dist/chunk-TMGK6YE7.js.map +1 -0
  73. package/dist/{chunk-KXLRMM35.js → chunk-TRH533CA.js} +30 -7
  74. package/dist/chunk-TRH533CA.js.map +1 -0
  75. package/dist/{chunk-UTDA43TB.js → chunk-TWGGNUWJ.js} +2 -2
  76. package/dist/{chunk-SBFDL2EQ.js → chunk-UTZW3X2R.js} +2 -2
  77. package/dist/{chunk-SECMZACR.js → chunk-XUQUBZ7O.js} +2 -2
  78. package/dist/{chunk-5U65RIVI.js → chunk-YI7XUXLX.js} +16 -15
  79. package/dist/chunk-YI7XUXLX.js.map +1 -0
  80. package/dist/{chunk-7XRUYC6G.js → chunk-Z6WN2KSH.js} +19 -5
  81. package/dist/chunk-Z6WN2KSH.js.map +1 -0
  82. package/dist/{chunk-WUDBMLC6.js → chunk-ZC3HG22I.js} +2 -2
  83. package/dist/{chunk-VCEH5UYS.js → chunk-ZRXSHGXT.js} +2 -2
  84. package/dist/{cli-DACyuK8-.d.ts → cli-D8Tsa4Sh.d.ts} +5 -5
  85. package/dist/cli.d.ts +8 -8
  86. package/dist/cli.js +25 -25
  87. package/dist/compounding/engine.d.ts +2 -2
  88. package/dist/compounding/engine.js +3 -3
  89. package/dist/compounding/preference-consolidator.d.ts +1 -1
  90. package/dist/compression-optimizer.d.ts +1 -1
  91. package/dist/config.d.ts +1 -1
  92. package/dist/config.js +1 -1
  93. package/dist/connectors/codex-materialize-runner.d.ts +1 -1
  94. package/dist/connectors/codex-materialize-runner.js +3 -3
  95. package/dist/connectors/codex-materialize.d.ts +1 -1
  96. package/dist/connectors/index.d.ts +1 -1
  97. package/dist/connectors/index.js +3 -3
  98. package/dist/consolidation-provenance-check.d.ts +2 -2
  99. package/dist/consolidation-undo.d.ts +2 -2
  100. package/dist/contradiction/index.d.ts +2 -2
  101. package/dist/conversation-index/backend.d.ts +1 -1
  102. package/dist/conversation-index/chunker.d.ts +1 -1
  103. package/dist/conversation-index/faiss-adapter.d.ts +1 -1
  104. package/dist/conversation-index/indexer.d.ts +1 -1
  105. package/dist/conversation-index/search.d.ts +1 -1
  106. package/dist/day-summary.d.ts +1 -1
  107. package/dist/delinearize.d.ts +1 -1
  108. package/dist/direct-answer-wiring.d.ts +1 -1
  109. package/dist/direct-answer.d.ts +1 -1
  110. package/dist/embedding-fallback.d.ts +1 -1
  111. package/dist/enrichment/index.d.ts +1 -1
  112. package/dist/entity-retrieval.d.ts +2 -2
  113. package/dist/entity-retrieval.js +3 -3
  114. package/dist/entity-schema.d.ts +1 -1
  115. package/dist/explicit-capture.d.ts +5 -5
  116. package/dist/extraction-faithfulness.d.ts +1 -1
  117. package/dist/extraction-judge-telemetry.d.ts +1 -1
  118. package/dist/extraction-judge-training.d.ts +1 -1
  119. package/dist/extraction-judge.d.ts +1 -1
  120. package/dist/extraction.d.ts +1 -1
  121. package/dist/fallback-llm.d.ts +1 -1
  122. package/dist/graph-dashboard-diff.d.ts +1 -1
  123. package/dist/graph-dashboard-key.d.ts +1 -1
  124. package/dist/graph-dashboard-parser.d.ts +1 -1
  125. package/dist/graph-edge-reinforcement.d.ts +1 -1
  126. package/dist/graph-snapshot.d.ts +1 -1
  127. package/dist/graph.d.ts +1 -1
  128. package/dist/identity-continuity.d.ts +1 -1
  129. package/dist/importance.d.ts +1 -1
  130. package/dist/importers/index.d.ts +1 -1
  131. package/dist/in-flight-reads.d.ts +1 -1
  132. package/dist/index.d.ts +386 -386
  133. package/dist/index.js +31 -31
  134. package/dist/intent.d.ts +1 -1
  135. package/dist/lcm/engine.d.ts +1 -1
  136. package/dist/lcm/index.d.ts +1 -1
  137. package/dist/lcm/tools.d.ts +1 -1
  138. package/dist/lifecycle.d.ts +1 -1
  139. package/dist/live-connectors-runner.d.ts +1 -1
  140. package/dist/local-llm.d.ts +1 -1
  141. package/dist/local-model-endpoint.d.ts +1 -1
  142. package/dist/maintenance/memory-governance.d.ts +1 -1
  143. package/dist/maintenance/memory-governance.js +3 -3
  144. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
  145. package/dist/maintenance/rebuild-memory-projection.js +4 -4
  146. package/dist/mcp-memory-inspector-app.d.ts +6 -6
  147. package/dist/memory-action-policy.d.ts +1 -1
  148. package/dist/memory-cache.d.ts +1 -1
  149. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  150. package/dist/memory-projection-store.d.ts +1 -1
  151. package/dist/memory-provenance.d.ts +1 -1
  152. package/dist/memory-worth-outcomes.d.ts +2 -2
  153. package/dist/models-json.d.ts +1 -1
  154. package/dist/namespaces/migrate.d.ts +3 -3
  155. package/dist/namespaces/migrate.js +4 -4
  156. package/dist/namespaces/principal.d.ts +1 -1
  157. package/dist/namespaces/search.d.ts +1 -1
  158. package/dist/namespaces/storage.d.ts +3 -3
  159. package/dist/namespaces/storage.js +3 -3
  160. package/dist/native-knowledge.d.ts +1 -1
  161. package/dist/operator-toolkit.d.ts +2 -2
  162. package/dist/operator-toolkit.js +8 -8
  163. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -2
  164. package/dist/orchestration/maintenance.d.ts +2 -2
  165. package/dist/orchestration/maintenance.js +5 -5
  166. package/dist/{orchestrator-D83AvrPf.d.ts → orchestrator-B_WXBmuE.d.ts} +4 -4
  167. package/dist/orchestrator.d.ts +5 -5
  168. package/dist/orchestrator.js +31 -31
  169. package/dist/patterns-cli.d.ts +1 -1
  170. package/dist/{pipeline-BSqGpYl1.d.ts → pipeline-Dvtvt141.d.ts} +1 -1
  171. package/dist/policy-runtime.d.ts +1 -1
  172. package/dist/provenance.d.ts +1 -1
  173. package/dist/{qmd-CutnpRVe.d.ts → qmd-DwBLh_hl.d.ts} +1 -1
  174. package/dist/qmd-preflight.d.ts +2 -2
  175. package/dist/qmd-recall-cache.d.ts +1 -1
  176. package/dist/qmd.d.ts +2 -2
  177. package/dist/recall-disclosure-escalation.d.ts +1 -1
  178. package/dist/recall-explain-renderer.d.ts +1 -1
  179. package/dist/recall-explain-renderer.js +3 -3
  180. package/dist/recall-planner-llm.d.ts +1 -1
  181. package/dist/recall-state.d.ts +1 -1
  182. package/dist/recall-tag-filter.d.ts +1 -1
  183. package/dist/recall-timings.d.ts +1 -1
  184. package/dist/recall-xray-cli.d.ts +1 -1
  185. package/dist/recall-xray-cli.js +4 -4
  186. package/dist/recall-xray-renderer.d.ts +1 -1
  187. package/dist/recall-xray-renderer.js +3 -3
  188. package/dist/recall-xray.d.ts +1 -1
  189. package/dist/recall-xray.js +2 -2
  190. package/dist/replay/normalizers/chatgpt.d.ts +1 -1
  191. package/dist/replay/normalizers/claude.d.ts +1 -1
  192. package/dist/replay/normalizers/openclaw.d.ts +1 -1
  193. package/dist/replay/normalizers/shared.d.ts +1 -1
  194. package/dist/replay/runner.d.ts +1 -1
  195. package/dist/replay/types.d.ts +1 -1
  196. package/dist/resolve-auth-token.d.ts +1 -1
  197. package/dist/resume-bundles.js +2 -2
  198. package/dist/retrieval-agents.d.ts +2 -2
  199. package/dist/retrieval-tiers.d.ts +1 -1
  200. package/dist/routing/engine.d.ts +1 -1
  201. package/dist/routing/store.d.ts +1 -1
  202. package/dist/schemas.d.ts +74 -74
  203. package/dist/search/embed-helper.d.ts +1 -1
  204. package/dist/search/factory.d.ts +1 -1
  205. package/dist/search/index.d.ts +1 -1
  206. package/dist/search/lancedb-backend.d.ts +1 -1
  207. package/dist/search/meilisearch-backend.d.ts +1 -1
  208. package/dist/search/noop-backend.d.ts +1 -1
  209. package/dist/search/orama-backend.d.ts +1 -1
  210. package/dist/search/port.d.ts +1 -1
  211. package/dist/search/remote-backend.d.ts +1 -1
  212. package/dist/{semantic-consolidation-btIVRC4l.d.ts → semantic-consolidation-Dia_6FOn.d.ts} +1 -1
  213. package/dist/semantic-consolidation.d.ts +2 -2
  214. package/dist/semantic-consolidation.js +4 -4
  215. package/dist/semantic-rule-promotion.js +3 -3
  216. package/dist/semantic-rule-verifier.d.ts +1 -1
  217. package/dist/semantic-rule-verifier.js +3 -3
  218. package/dist/session-observer-bands.d.ts +1 -1
  219. package/dist/session-observer-state.d.ts +1 -1
  220. package/dist/shared-context/manager.d.ts +9 -9
  221. package/dist/signal.d.ts +1 -1
  222. package/dist/{storage-BVv_Mqa0.d.ts → storage-RshM7i8-.d.ts} +18 -1
  223. package/dist/storage.d.ts +2 -2
  224. package/dist/storage.js +2 -2
  225. package/dist/summarizer.d.ts +1 -1
  226. package/dist/summary-snapshot.d.ts +1 -1
  227. package/dist/temporal-supersession.d.ts +2 -2
  228. package/dist/temporal-timeline-recall.d.ts +1 -1
  229. package/dist/temporal-validity.d.ts +1 -1
  230. package/dist/threading.d.ts +1 -1
  231. package/dist/tier-migration.d.ts +2 -2
  232. package/dist/tier-routing.d.ts +1 -1
  233. package/dist/topics.d.ts +1 -1
  234. package/dist/transcript.d.ts +1 -1
  235. package/dist/transfer/types.d.ts +66 -66
  236. package/dist/trust-score-stage.d.ts +1 -1
  237. package/dist/trust-score.d.ts +1 -1
  238. package/dist/{types-Cmkz7csa.d.ts → types-CHSXOq7s.d.ts} +34 -0
  239. package/dist/types.d.ts +1 -1
  240. package/dist/types.js +1 -1
  241. package/dist/utility-runtime.d.ts +1 -1
  242. package/dist/verified-recall.js +3 -3
  243. package/package.json +2 -2
  244. package/src/access-http.ts +40 -2
  245. package/src/config.test.ts +44 -0
  246. package/src/config.ts +43 -0
  247. package/src/namespaces/catalog.test.ts +258 -0
  248. package/src/namespaces/catalog.ts +235 -10
  249. package/src/namespaces/storage.ts +9 -0
  250. package/src/orchestrator.ts +3 -0
  251. package/src/relay/mission-access.test.ts +58 -3
  252. package/src/relay/mission-access.ts +17 -3
  253. package/src/relay/mission-ui.test.ts +90 -0
  254. package/src/storage-catalog-touch-gating.test.ts +70 -0
  255. package/src/storage.ts +31 -5
  256. package/src/types.ts +34 -0
  257. package/dist/chunk-3ZVFLMFQ.js.map +0 -1
  258. package/dist/chunk-5U65RIVI.js.map +0 -1
  259. package/dist/chunk-7LMEY5KZ.js.map +0 -1
  260. package/dist/chunk-7XRUYC6G.js.map +0 -1
  261. package/dist/chunk-JZM5QUTE.js.map +0 -1
  262. package/dist/chunk-KXLRMM35.js.map +0 -1
  263. package/dist/chunk-QHT4W3RU.js.map +0 -1
  264. /package/dist/{chunk-L4H6MQ7I.js.map → chunk-2RSL6YRA.js.map} +0 -0
  265. /package/dist/{chunk-JYRFO4EH.js.map → chunk-2ZPQUTMW.js.map} +0 -0
  266. /package/dist/{chunk-673NPXE3.js.map → chunk-3SIC3E65.js.map} +0 -0
  267. /package/dist/{chunk-OVMS3DCB.js.map → chunk-675YU5IK.js.map} +0 -0
  268. /package/dist/{chunk-TGBJ2OMK.js.map → chunk-BQTSGK5Y.js.map} +0 -0
  269. /package/dist/{chunk-6LM6PPDX.js.map → chunk-CE3GMHT4.js.map} +0 -0
  270. /package/dist/{chunk-YXOAQAH2.js.map → chunk-CLFY35ED.js.map} +0 -0
  271. /package/dist/{chunk-HQ7QZJM5.js.map → chunk-D4TLWDYR.js.map} +0 -0
  272. /package/dist/{chunk-LQKITFGB.js.map → chunk-FUUF7FMX.js.map} +0 -0
  273. /package/dist/{chunk-MXRMNKSY.js.map → chunk-I3GKTDM2.js.map} +0 -0
  274. /package/dist/{chunk-EQF5763Z.js.map → chunk-IQULRIZM.js.map} +0 -0
  275. /package/dist/{chunk-W6R43NLA.js.map → chunk-KQMKF4G2.js.map} +0 -0
  276. /package/dist/{chunk-DJCKXI4M.js.map → chunk-NVXQTRBL.js.map} +0 -0
  277. /package/dist/{chunk-GHVJASQ4.js.map → chunk-OCY3CRPG.js.map} +0 -0
  278. /package/dist/{chunk-YLTG6BO4.js.map → chunk-OIFZII6J.js.map} +0 -0
  279. /package/dist/{chunk-XF4KOVDK.js.map → chunk-PA6DMYEK.js.map} +0 -0
  280. /package/dist/{chunk-3OQ4IZJN.js.map → chunk-QPZCAVDC.js.map} +0 -0
  281. /package/dist/{chunk-DLWYAN6A.js.map → chunk-T6U7HDIY.js.map} +0 -0
  282. /package/dist/{chunk-UTDA43TB.js.map → chunk-TWGGNUWJ.js.map} +0 -0
  283. /package/dist/{chunk-SBFDL2EQ.js.map → chunk-UTZW3X2R.js.map} +0 -0
  284. /package/dist/{chunk-SECMZACR.js.map → chunk-XUQUBZ7O.js.map} +0 -0
  285. /package/dist/{chunk-WUDBMLC6.js.map → chunk-ZC3HG22I.js.map} +0 -0
  286. /package/dist/{chunk-VCEH5UYS.js.map → chunk-ZRXSHGXT.js.map} +0 -0
@@ -20,26 +20,26 @@ declare const ExportManifestV1Schema: z.ZodObject<{
20
20
  bytes: number;
21
21
  }>, "many">;
22
22
  }, "strip", z.ZodTypeAny, {
23
- format: "openclaw-engram-export";
23
+ schemaVersion: 1;
24
24
  createdAt: string;
25
- pluginVersion: string;
26
25
  files: {
27
26
  path: string;
28
27
  sha256: string;
29
28
  bytes: number;
30
29
  }[];
31
- schemaVersion: 1;
30
+ format: "openclaw-engram-export";
31
+ pluginVersion: string;
32
32
  includesTranscripts: boolean;
33
33
  }, {
34
- format: "openclaw-engram-export";
34
+ schemaVersion: 1;
35
35
  createdAt: string;
36
- pluginVersion: string;
37
36
  files: {
38
37
  path: string;
39
38
  sha256: string;
40
39
  bytes: number;
41
40
  }[];
42
- schemaVersion: 1;
41
+ format: "openclaw-engram-export";
42
+ pluginVersion: string;
43
43
  includesTranscripts: boolean;
44
44
  }>;
45
45
  type ExportManifestV1 = z.infer<typeof ExportManifestV1Schema>;
@@ -75,26 +75,26 @@ declare const ExportBundleV1Schema: z.ZodObject<{
75
75
  bytes: number;
76
76
  }>, "many">;
77
77
  }, "strip", z.ZodTypeAny, {
78
- format: "openclaw-engram-export";
78
+ schemaVersion: 1;
79
79
  createdAt: string;
80
- pluginVersion: string;
81
80
  files: {
82
81
  path: string;
83
82
  sha256: string;
84
83
  bytes: number;
85
84
  }[];
86
- schemaVersion: 1;
85
+ format: "openclaw-engram-export";
86
+ pluginVersion: string;
87
87
  includesTranscripts: boolean;
88
88
  }, {
89
- format: "openclaw-engram-export";
89
+ schemaVersion: 1;
90
90
  createdAt: string;
91
- pluginVersion: string;
92
91
  files: {
93
92
  path: string;
94
93
  sha256: string;
95
94
  bytes: number;
96
95
  }[];
97
- schemaVersion: 1;
96
+ format: "openclaw-engram-export";
97
+ pluginVersion: string;
98
98
  includesTranscripts: boolean;
99
99
  }>;
100
100
  records: z.ZodArray<z.ZodObject<{
@@ -109,15 +109,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
109
109
  }>, "many">;
110
110
  }, "strip", z.ZodTypeAny, {
111
111
  manifest: {
112
- format: "openclaw-engram-export";
112
+ schemaVersion: 1;
113
113
  createdAt: string;
114
- pluginVersion: string;
115
114
  files: {
116
115
  path: string;
117
116
  sha256: string;
118
117
  bytes: number;
119
118
  }[];
120
- schemaVersion: 1;
119
+ format: "openclaw-engram-export";
120
+ pluginVersion: string;
121
121
  includesTranscripts: boolean;
122
122
  };
123
123
  records: {
@@ -126,15 +126,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
126
126
  }[];
127
127
  }, {
128
128
  manifest: {
129
- format: "openclaw-engram-export";
129
+ schemaVersion: 1;
130
130
  createdAt: string;
131
- pluginVersion: string;
132
131
  files: {
133
132
  path: string;
134
133
  sha256: string;
135
134
  bytes: number;
136
135
  }[];
137
- schemaVersion: 1;
136
+ format: "openclaw-engram-export";
137
+ pluginVersion: string;
138
138
  includesTranscripts: boolean;
139
139
  };
140
140
  records: {
@@ -313,16 +313,16 @@ declare const CapsuleBlockSchema: z.ZodObject<{
313
313
  peerProfiles: boolean;
314
314
  }>;
315
315
  }, "strip", z.ZodTypeAny, {
316
+ schemaVersion: string;
316
317
  includes: {
317
318
  procedural: boolean;
318
319
  taxonomy: boolean;
319
320
  identityAnchors: boolean;
320
321
  peerProfiles: boolean;
321
322
  };
322
- description: string;
323
323
  id: string;
324
- schemaVersion: string;
325
324
  version: string;
325
+ description: string;
326
326
  parentCapsule: string | null;
327
327
  retrievalPolicy: {
328
328
  tierWeights: Record<string, number>;
@@ -334,16 +334,16 @@ declare const CapsuleBlockSchema: z.ZodObject<{
334
334
  forkRoot: string;
335
335
  } | null;
336
336
  }, {
337
+ schemaVersion: string;
337
338
  includes: {
338
339
  procedural: boolean;
339
340
  taxonomy: boolean;
340
341
  identityAnchors: boolean;
341
342
  peerProfiles: boolean;
342
343
  };
343
- description: string;
344
344
  id: string;
345
- schemaVersion: string;
346
345
  version: string;
346
+ description: string;
347
347
  parentCapsule: string | null;
348
348
  retrievalPolicy: {
349
349
  tierWeights: Record<string, number>;
@@ -464,16 +464,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
464
464
  peerProfiles: boolean;
465
465
  }>;
466
466
  }, "strip", z.ZodTypeAny, {
467
+ schemaVersion: string;
467
468
  includes: {
468
469
  procedural: boolean;
469
470
  taxonomy: boolean;
470
471
  identityAnchors: boolean;
471
472
  peerProfiles: boolean;
472
473
  };
473
- description: string;
474
474
  id: string;
475
- schemaVersion: string;
476
475
  version: string;
476
+ description: string;
477
477
  parentCapsule: string | null;
478
478
  retrievalPolicy: {
479
479
  tierWeights: Record<string, number>;
@@ -485,16 +485,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
485
485
  forkRoot: string;
486
486
  } | null;
487
487
  }, {
488
+ schemaVersion: string;
488
489
  includes: {
489
490
  procedural: boolean;
490
491
  taxonomy: boolean;
491
492
  identityAnchors: boolean;
492
493
  peerProfiles: boolean;
493
494
  };
494
- description: string;
495
495
  id: string;
496
- schemaVersion: string;
497
496
  version: string;
497
+ description: string;
498
498
  parentCapsule: string | null;
499
499
  retrievalPolicy: {
500
500
  tierWeights: Record<string, number>;
@@ -507,25 +507,27 @@ declare const ExportManifestV2Schema: z.ZodObject<{
507
507
  } | null | undefined;
508
508
  }>;
509
509
  }, "strip", z.ZodTypeAny, {
510
- format: "openclaw-engram-export";
510
+ schemaVersion: 2;
511
511
  createdAt: string;
512
- pluginVersion: string;
513
512
  files: {
514
513
  path: string;
515
514
  sha256: string;
516
515
  bytes: number;
517
516
  }[];
517
+ format: "openclaw-engram-export";
518
+ pluginVersion: string;
519
+ includesTranscripts: boolean;
518
520
  capsule: {
521
+ schemaVersion: string;
519
522
  includes: {
520
523
  procedural: boolean;
521
524
  taxonomy: boolean;
522
525
  identityAnchors: boolean;
523
526
  peerProfiles: boolean;
524
527
  };
525
- description: string;
526
528
  id: string;
527
- schemaVersion: string;
528
529
  version: string;
530
+ description: string;
529
531
  parentCapsule: string | null;
530
532
  retrievalPolicy: {
531
533
  tierWeights: Record<string, number>;
@@ -537,28 +539,28 @@ declare const ExportManifestV2Schema: z.ZodObject<{
537
539
  forkRoot: string;
538
540
  } | null;
539
541
  };
540
- schemaVersion: 2;
541
- includesTranscripts: boolean;
542
542
  }, {
543
- format: "openclaw-engram-export";
543
+ schemaVersion: 2;
544
544
  createdAt: string;
545
- pluginVersion: string;
546
545
  files: {
547
546
  path: string;
548
547
  sha256: string;
549
548
  bytes: number;
550
549
  }[];
550
+ format: "openclaw-engram-export";
551
+ pluginVersion: string;
552
+ includesTranscripts: boolean;
551
553
  capsule: {
554
+ schemaVersion: string;
552
555
  includes: {
553
556
  procedural: boolean;
554
557
  taxonomy: boolean;
555
558
  identityAnchors: boolean;
556
559
  peerProfiles: boolean;
557
560
  };
558
- description: string;
559
561
  id: string;
560
- schemaVersion: string;
561
562
  version: string;
563
+ description: string;
562
564
  parentCapsule: string | null;
563
565
  retrievalPolicy: {
564
566
  tierWeights: Record<string, number>;
@@ -570,8 +572,6 @@ declare const ExportManifestV2Schema: z.ZodObject<{
570
572
  forkRoot: string;
571
573
  } | null | undefined;
572
574
  };
573
- schemaVersion: 2;
574
- includesTranscripts: boolean;
575
575
  }>;
576
576
  type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
577
577
  declare const ExportBundleV2Schema: z.ZodObject<{
@@ -683,16 +683,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
683
683
  peerProfiles: boolean;
684
684
  }>;
685
685
  }, "strip", z.ZodTypeAny, {
686
+ schemaVersion: string;
686
687
  includes: {
687
688
  procedural: boolean;
688
689
  taxonomy: boolean;
689
690
  identityAnchors: boolean;
690
691
  peerProfiles: boolean;
691
692
  };
692
- description: string;
693
693
  id: string;
694
- schemaVersion: string;
695
694
  version: string;
695
+ description: string;
696
696
  parentCapsule: string | null;
697
697
  retrievalPolicy: {
698
698
  tierWeights: Record<string, number>;
@@ -704,16 +704,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
704
704
  forkRoot: string;
705
705
  } | null;
706
706
  }, {
707
+ schemaVersion: string;
707
708
  includes: {
708
709
  procedural: boolean;
709
710
  taxonomy: boolean;
710
711
  identityAnchors: boolean;
711
712
  peerProfiles: boolean;
712
713
  };
713
- description: string;
714
714
  id: string;
715
- schemaVersion: string;
716
715
  version: string;
716
+ description: string;
717
717
  parentCapsule: string | null;
718
718
  retrievalPolicy: {
719
719
  tierWeights: Record<string, number>;
@@ -726,25 +726,27 @@ declare const ExportBundleV2Schema: z.ZodObject<{
726
726
  } | null | undefined;
727
727
  }>;
728
728
  }, "strip", z.ZodTypeAny, {
729
- format: "openclaw-engram-export";
729
+ schemaVersion: 2;
730
730
  createdAt: string;
731
- pluginVersion: string;
732
731
  files: {
733
732
  path: string;
734
733
  sha256: string;
735
734
  bytes: number;
736
735
  }[];
736
+ format: "openclaw-engram-export";
737
+ pluginVersion: string;
738
+ includesTranscripts: boolean;
737
739
  capsule: {
740
+ schemaVersion: string;
738
741
  includes: {
739
742
  procedural: boolean;
740
743
  taxonomy: boolean;
741
744
  identityAnchors: boolean;
742
745
  peerProfiles: boolean;
743
746
  };
744
- description: string;
745
747
  id: string;
746
- schemaVersion: string;
747
748
  version: string;
749
+ description: string;
748
750
  parentCapsule: string | null;
749
751
  retrievalPolicy: {
750
752
  tierWeights: Record<string, number>;
@@ -756,28 +758,28 @@ declare const ExportBundleV2Schema: z.ZodObject<{
756
758
  forkRoot: string;
757
759
  } | null;
758
760
  };
759
- schemaVersion: 2;
760
- includesTranscripts: boolean;
761
761
  }, {
762
- format: "openclaw-engram-export";
762
+ schemaVersion: 2;
763
763
  createdAt: string;
764
- pluginVersion: string;
765
764
  files: {
766
765
  path: string;
767
766
  sha256: string;
768
767
  bytes: number;
769
768
  }[];
769
+ format: "openclaw-engram-export";
770
+ pluginVersion: string;
771
+ includesTranscripts: boolean;
770
772
  capsule: {
773
+ schemaVersion: string;
771
774
  includes: {
772
775
  procedural: boolean;
773
776
  taxonomy: boolean;
774
777
  identityAnchors: boolean;
775
778
  peerProfiles: boolean;
776
779
  };
777
- description: string;
778
780
  id: string;
779
- schemaVersion: string;
780
781
  version: string;
782
+ description: string;
781
783
  parentCapsule: string | null;
782
784
  retrievalPolicy: {
783
785
  tierWeights: Record<string, number>;
@@ -789,8 +791,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
789
791
  forkRoot: string;
790
792
  } | null | undefined;
791
793
  };
792
- schemaVersion: 2;
793
- includesTranscripts: boolean;
794
794
  }>;
795
795
  records: z.ZodArray<z.ZodObject<{
796
796
  path: z.ZodString;
@@ -804,25 +804,27 @@ declare const ExportBundleV2Schema: z.ZodObject<{
804
804
  }>, "many">;
805
805
  }, "strip", z.ZodTypeAny, {
806
806
  manifest: {
807
- format: "openclaw-engram-export";
807
+ schemaVersion: 2;
808
808
  createdAt: string;
809
- pluginVersion: string;
810
809
  files: {
811
810
  path: string;
812
811
  sha256: string;
813
812
  bytes: number;
814
813
  }[];
814
+ format: "openclaw-engram-export";
815
+ pluginVersion: string;
816
+ includesTranscripts: boolean;
815
817
  capsule: {
818
+ schemaVersion: string;
816
819
  includes: {
817
820
  procedural: boolean;
818
821
  taxonomy: boolean;
819
822
  identityAnchors: boolean;
820
823
  peerProfiles: boolean;
821
824
  };
822
- description: string;
823
825
  id: string;
824
- schemaVersion: string;
825
826
  version: string;
827
+ description: string;
826
828
  parentCapsule: string | null;
827
829
  retrievalPolicy: {
828
830
  tierWeights: Record<string, number>;
@@ -834,8 +836,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
834
836
  forkRoot: string;
835
837
  } | null;
836
838
  };
837
- schemaVersion: 2;
838
- includesTranscripts: boolean;
839
839
  };
840
840
  records: {
841
841
  content: string;
@@ -843,25 +843,27 @@ declare const ExportBundleV2Schema: z.ZodObject<{
843
843
  }[];
844
844
  }, {
845
845
  manifest: {
846
- format: "openclaw-engram-export";
846
+ schemaVersion: 2;
847
847
  createdAt: string;
848
- pluginVersion: string;
849
848
  files: {
850
849
  path: string;
851
850
  sha256: string;
852
851
  bytes: number;
853
852
  }[];
853
+ format: "openclaw-engram-export";
854
+ pluginVersion: string;
855
+ includesTranscripts: boolean;
854
856
  capsule: {
857
+ schemaVersion: string;
855
858
  includes: {
856
859
  procedural: boolean;
857
860
  taxonomy: boolean;
858
861
  identityAnchors: boolean;
859
862
  peerProfiles: boolean;
860
863
  };
861
- description: string;
862
864
  id: string;
863
- schemaVersion: string;
864
865
  version: string;
866
+ description: string;
865
867
  parentCapsule: string | null;
866
868
  retrievalPolicy: {
867
869
  tierWeights: Record<string, number>;
@@ -873,8 +875,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
873
875
  forkRoot: string;
874
876
  } | null | undefined;
875
877
  };
876
- schemaVersion: 2;
877
- includesTranscripts: boolean;
878
878
  };
879
879
  records: {
880
880
  content: string;
@@ -1,5 +1,5 @@
1
1
  import { TrustScoreResult, TrustSignals, TrustBand, TrustScoreComponent } from './trust-score.js';
2
- import { F as FaithfulnessFrontmatter, N as ProvenanceSource, O as TrustWeights } from './types-Cmkz7csa.js';
2
+ import { F as FaithfulnessFrontmatter, N as ProvenanceSource, O as TrustWeights } from './types-CHSXOq7s.js';
3
3
  import './message-parts/index.js';
4
4
 
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { O as TrustWeights } from './types-Cmkz7csa.js';
1
+ import { O as TrustWeights } from './types-CHSXOq7s.js';
2
2
  import './message-parts/index.js';
3
3
 
4
4
  /**
@@ -2052,6 +2052,40 @@ interface PluginConfig {
2052
2052
  * existing single-namespace behavior is unchanged. Default on.
2053
2053
  */
2054
2054
  namespaceCatalogEnabled: boolean;
2055
+ /**
2056
+ * Size (bytes) at which a namespace-catalog touch triggers an in-lock
2057
+ * auto-compaction of `state/namespaces.jsonl` (issue #1903). The append-only
2058
+ * log grows one line per touch; once it exceeds this many bytes the next
2059
+ * touch folds it (last-record-wins, every namespace row preserved) and
2060
+ * atomically rewrites it. Default `16 * 1024 * 1024` (16 MB). `0` disables
2061
+ * auto-compaction (restores the pre-#1903 unbounded-append behavior).
2062
+ */
2063
+ namespacesCatalogCompactBytes: number;
2064
+ /**
2065
+ * Coalescing window (ms) for pure-timestamp READ touches on an
2066
+ * already-known namespace record (issue #1903). Repeated `markRead` touches
2067
+ * that only refresh `lastReadAt` are buffered per (namespace, kind) and
2068
+ * flushed once per window instead of appending a line each time.
2069
+ * Semantically-observable touches (first sight, provenance/field changes)
2070
+ * always flush immediately. Default `60000`. `0` disables read coalescing
2071
+ * (each touch appends immediately, the pre-#1903 behavior).
2072
+ */
2073
+ namespacesCatalogReadTouchCoalesceMs: number;
2074
+ /**
2075
+ * Coalescing window (ms) for pure-timestamp WRITE touches on an
2076
+ * already-known namespace record (issue #1903). Mirrors
2077
+ * `namespacesCatalogReadTouchCoalesceMs` for `markWrite`/`lastWriteAt`.
2078
+ * Default `1000`. `0` disables write coalescing.
2079
+ */
2080
+ namespacesCatalogWriteTouchCoalesceMs: number;
2081
+ /**
2082
+ * Whether pure state-file writes (`state/buffer.json`, ledgers, indexes)
2083
+ * touch the namespace catalog (issue #1903). State files are not namespace
2084
+ * memory data, so by default their writes do NOT record a catalog touch.
2085
+ * Set `true` to restore the pre-#1903 behavior where every secure-file
2086
+ * write touched the catalog. Default `false`.
2087
+ */
2088
+ namespacesCatalogTouchStateWrites: boolean;
2055
2089
  defaultNamespace: string;
2056
2090
  sharedNamespace: string;
2057
2091
  principalFromSessionKeyMode: PrincipalFromSessionKeyMode;
package/dist/types.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export { aD as AccessTrackingEntry, A as ActiveRecallChatType, f as ActiveRecallModelFallbackPolicy, d as ActiveRecallPromptStyle, c as ActiveRecallQueryMode, e as ActiveRecallThinking, a3 as AgentAccessAuthToken, bp as AgentAccessHttpConfig, bq as AgentDefaultsConfig, br as AgentPersona, r as AgentPersonaModelConfig, bs as BehaviorLoopAdjustment, g as BehaviorLoopPolicyState, bt as BehaviorSignalDirection, B as BehaviorSignalEvent, bu as BehaviorSignalType, aW as BootstrapOptions, aX as BootstrapResult, l as BriefingActiveThread, bv as BriefingCalendarSourceError, b2 as BriefingConfig, j as BriefingFocus, i as BriefingFollowup, b3 as BriefingOpenCommitment, n as BriefingRecentEntity, m as BriefingResult, h as BriefingSections, b4 as BriefingWindow, bw as BufferEntryState, ay as BufferState, Z as BufferSurpriseEvent, o as BufferTurn, k as CalendarEvent, C as CalendarSource, bx as CaptureMode, by as ChatConfig, q as Checkpoint, bz as CodexCliReasoningEffort, bA as CodexCompactionFlushMode, b7 as CodexCompatConfig, bB as CodexConnectorConfig, aG as CodingContext, bC as CodingGraphLspConfig, a_ as CodingKnowledgeConfig, aZ as CodingModeConfig, bD as CompressionGuidelineActivationState, a5 as CompressionGuidelineOptimizerActionSummary, a4 as CompressionGuidelineOptimizerEventCounts, a6 as CompressionGuidelineOptimizerRuleUpdate, bE as CompressionGuidelineOptimizerSourceWindow, a9 as CompressionGuidelineOptimizerState, bF as ConfidenceTier, bG as ConsolidationAction, bH as ConsolidationItem, aY as ConsolidationObservation, z as ConsolidationResult, ah as ContinuityImprovementLoop, af as ContinuityIncidentCloseInput, ag as ContinuityIncidentOpenInput, ae as ContinuityIncidentRecord, bI as ContinuityIncidentState, bJ as ContinuityLoopCadence, ai as ContinuityLoopReviewInput, bK as ContinuityLoopStatus, aj as ContinuityLoopUpsertInput, bL as ContradictionScanConfig, U as ConversationThread, bM as CronConversationRecallMode, bN as CronRecallMode, b8 as DEFAULT_RECALL_DISCLOSURE, J as DaySummaryResult, bO as DreamingConfig, bP as DreamingNarrativePromptStyle, bQ as DreamsDeepSleepConfig, bR as DreamsLightSleepConfig, D as DreamsPhase, bS as DreamsPhaseStatus, bT as DreamsPhasesConfig, bU as DreamsRemConfig, a as DreamsRunResult, aH as DreamsStatusResult, bV as EngramTraceEvent, aC as EntityActivityEntry, E as EntityFile, aa as EntityMention, aB as EntityRelationship, ab as EntitySchemaDefinition, ac as EntitySchemaSectionDefinition, ad as EntityStructuredSection, aF as EntityTimelineEntry, b9 as ExtractedFact, bW as ExtractedProcedureStep, bX as ExtractedQuestion, bY as ExtractedReasoningTrace, bZ as ExtractedReasoningTraceStep, b_ as ExtractedRelationship, K as ExtractionFailureClass, b$ as ExtractionPassSource, y as ExtractionResult, F as FaithfulnessFrontmatter, aA as FileHygieneConfig, G as GatewayConfig, c0 as GitHubLiveConnectorConfig, c1 as GmailLiveConnectorConfig, c2 as GoogleDriveLiveConnectorConfig, c3 as HeartbeatConfig, c4 as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, Y as ImportanceLevel, ak as ImportanceScore, V as LifecycleState, L as LiveConnectorsConfig, c5 as LlmTraceCallback, c6 as LlmTraceEvent, am as MemoryActionEligibilityContext, bc as MemoryActionEligibilitySource, a8 as MemoryActionEvent, c7 as MemoryActionOutcome, c8 as MemoryActionPolicyDecision, an as MemoryActionPolicyResult, c9 as MemoryActionStatus, a7 as MemoryActionType, u as MemoryCategory, M as MemoryFile, p as MemoryFrontmatter, al as MemoryIntent, x as MemoryLifecycleEvent, ao as MemoryLifecycleEventType, ap as MemoryLifecycleStateSummary, ax as MemoryLink, ca as MemoryLinkType, bd as MemoryObservation, cb as MemoryOsPresetName, w as MemoryProjectionCurrentState, be as MemoryScope, v as MemoryStatus, aE as MemorySummary, az as MetaState, cc as ModelApi, cd as ModelDefinitionConfig, ce as ModelProviderAuthMode, aq as ModelProviderConfig, cf as NamespacePolicy, ar as NativeKnowledgeConfig, cg as NativeKnowledgeFolderRuleConfig, ch as NativeKnowledgeObsidianVaultConfig, ci as NativeKnowledgeOpenClawWorkspaceConfig, cj as NotionLiveConnectorConfig, P as PluginConfig, X as PolicyClass, ck as PrincipalFromSessionKeyMode, cl as PrincipalRule, cm as ProceduralConfig, as as ProvenanceConfig, N as ProvenanceSource, aw as QmdSearchExplain, Q as QmdSearchResult, cn as QuestionEntry, bf as RECALL_DISCLOSURE_LEVELS, co as ReasoningEffort, R as RecallDisclosure, cp as RecallPipelineConfig, b as RecallPlanMode, aV as RecallSectionConfig, s as RecallTierExplain, cq as RecallTraceEvent, cr as RelevanceFeedback, at as RetrievalTier, cs as SPECULATIVE_TTL_DAYS, ct as ScopeProfileAutoPromoteConfig, aI as ScopeProfileConfig, aJ as ScopeProfileLayerId, aK as ScopeProfilePromotionTarget, cu as ScopeProfileTeamProjectConfig, cv as ScopeTeamConfig, cw as ScoredEntity, a2 as SecretRef, cx as SemanticChunkingConfigShape, S as SessionObserverBandConfig, cy as SignalLevel, au as SignalScanResult, cz as SlotBehaviorConfig, cA as SlotMismatchMode, t as SourceConnectorProvenance, av as TopicScore, T as TranscriptEntry, cB as TriggerMode, O as TrustWeights, W as VerificationState, cC as confidenceTier, bm as isRecallDisclosure } from './types-Cmkz7csa.js';
1
+ export { aD as AccessTrackingEntry, A as ActiveRecallChatType, f as ActiveRecallModelFallbackPolicy, d as ActiveRecallPromptStyle, c as ActiveRecallQueryMode, e as ActiveRecallThinking, a3 as AgentAccessAuthToken, bp as AgentAccessHttpConfig, bq as AgentDefaultsConfig, br as AgentPersona, r as AgentPersonaModelConfig, bs as BehaviorLoopAdjustment, g as BehaviorLoopPolicyState, bt as BehaviorSignalDirection, B as BehaviorSignalEvent, bu as BehaviorSignalType, aW as BootstrapOptions, aX as BootstrapResult, l as BriefingActiveThread, bv as BriefingCalendarSourceError, b2 as BriefingConfig, j as BriefingFocus, i as BriefingFollowup, b3 as BriefingOpenCommitment, n as BriefingRecentEntity, m as BriefingResult, h as BriefingSections, b4 as BriefingWindow, bw as BufferEntryState, ay as BufferState, Z as BufferSurpriseEvent, o as BufferTurn, k as CalendarEvent, C as CalendarSource, bx as CaptureMode, by as ChatConfig, q as Checkpoint, bz as CodexCliReasoningEffort, bA as CodexCompactionFlushMode, b7 as CodexCompatConfig, bB as CodexConnectorConfig, aG as CodingContext, bC as CodingGraphLspConfig, a_ as CodingKnowledgeConfig, aZ as CodingModeConfig, bD as CompressionGuidelineActivationState, a5 as CompressionGuidelineOptimizerActionSummary, a4 as CompressionGuidelineOptimizerEventCounts, a6 as CompressionGuidelineOptimizerRuleUpdate, bE as CompressionGuidelineOptimizerSourceWindow, a9 as CompressionGuidelineOptimizerState, bF as ConfidenceTier, bG as ConsolidationAction, bH as ConsolidationItem, aY as ConsolidationObservation, z as ConsolidationResult, ah as ContinuityImprovementLoop, af as ContinuityIncidentCloseInput, ag as ContinuityIncidentOpenInput, ae as ContinuityIncidentRecord, bI as ContinuityIncidentState, bJ as ContinuityLoopCadence, ai as ContinuityLoopReviewInput, bK as ContinuityLoopStatus, aj as ContinuityLoopUpsertInput, bL as ContradictionScanConfig, U as ConversationThread, bM as CronConversationRecallMode, bN as CronRecallMode, b8 as DEFAULT_RECALL_DISCLOSURE, J as DaySummaryResult, bO as DreamingConfig, bP as DreamingNarrativePromptStyle, bQ as DreamsDeepSleepConfig, bR as DreamsLightSleepConfig, D as DreamsPhase, bS as DreamsPhaseStatus, bT as DreamsPhasesConfig, bU as DreamsRemConfig, a as DreamsRunResult, aH as DreamsStatusResult, bV as EngramTraceEvent, aC as EntityActivityEntry, E as EntityFile, aa as EntityMention, aB as EntityRelationship, ab as EntitySchemaDefinition, ac as EntitySchemaSectionDefinition, ad as EntityStructuredSection, aF as EntityTimelineEntry, b9 as ExtractedFact, bW as ExtractedProcedureStep, bX as ExtractedQuestion, bY as ExtractedReasoningTrace, bZ as ExtractedReasoningTraceStep, b_ as ExtractedRelationship, K as ExtractionFailureClass, b$ as ExtractionPassSource, y as ExtractionResult, F as FaithfulnessFrontmatter, aA as FileHygieneConfig, G as GatewayConfig, c0 as GitHubLiveConnectorConfig, c1 as GmailLiveConnectorConfig, c2 as GoogleDriveLiveConnectorConfig, c3 as HeartbeatConfig, c4 as HeartbeatDetectionMode, H as HourlySummary, I as IdentityInjectionMode, Y as ImportanceLevel, ak as ImportanceScore, V as LifecycleState, L as LiveConnectorsConfig, c5 as LlmTraceCallback, c6 as LlmTraceEvent, am as MemoryActionEligibilityContext, bc as MemoryActionEligibilitySource, a8 as MemoryActionEvent, c7 as MemoryActionOutcome, c8 as MemoryActionPolicyDecision, an as MemoryActionPolicyResult, c9 as MemoryActionStatus, a7 as MemoryActionType, u as MemoryCategory, M as MemoryFile, p as MemoryFrontmatter, al as MemoryIntent, x as MemoryLifecycleEvent, ao as MemoryLifecycleEventType, ap as MemoryLifecycleStateSummary, ax as MemoryLink, ca as MemoryLinkType, bd as MemoryObservation, cb as MemoryOsPresetName, w as MemoryProjectionCurrentState, be as MemoryScope, v as MemoryStatus, aE as MemorySummary, az as MetaState, cc as ModelApi, cd as ModelDefinitionConfig, ce as ModelProviderAuthMode, aq as ModelProviderConfig, cf as NamespacePolicy, ar as NativeKnowledgeConfig, cg as NativeKnowledgeFolderRuleConfig, ch as NativeKnowledgeObsidianVaultConfig, ci as NativeKnowledgeOpenClawWorkspaceConfig, cj as NotionLiveConnectorConfig, P as PluginConfig, X as PolicyClass, ck as PrincipalFromSessionKeyMode, cl as PrincipalRule, cm as ProceduralConfig, as as ProvenanceConfig, N as ProvenanceSource, aw as QmdSearchExplain, Q as QmdSearchResult, cn as QuestionEntry, bf as RECALL_DISCLOSURE_LEVELS, co as ReasoningEffort, R as RecallDisclosure, cp as RecallPipelineConfig, b as RecallPlanMode, aV as RecallSectionConfig, s as RecallTierExplain, cq as RecallTraceEvent, cr as RelevanceFeedback, at as RetrievalTier, cs as SPECULATIVE_TTL_DAYS, ct as ScopeProfileAutoPromoteConfig, aI as ScopeProfileConfig, aJ as ScopeProfileLayerId, aK as ScopeProfilePromotionTarget, cu as ScopeProfileTeamProjectConfig, cv as ScopeTeamConfig, cw as ScoredEntity, a2 as SecretRef, cx as SemanticChunkingConfigShape, S as SessionObserverBandConfig, cy as SignalLevel, au as SignalScanResult, cz as SlotBehaviorConfig, cA as SlotMismatchMode, t as SourceConnectorProvenance, av as TopicScore, T as TranscriptEntry, cB as TriggerMode, O as TrustWeights, W as VerificationState, cC as confidenceTier, bm as isRecallDisclosure } from './types-CHSXOq7s.js';
2
2
  import './message-parts/index.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-3ZVFLMFQ.js";
7
+ } from "./chunk-G5PVJJRA.js";
8
8
  import "./chunk-PZ5AY32C.js";
9
9
  export {
10
10
  DEFAULT_RECALL_DISCLOSURE,
@@ -1,5 +1,5 @@
1
1
  import { TierRoutingPolicy } from './tier-routing.js';
2
- import './types-Cmkz7csa.js';
2
+ import './types-CHSXOq7s.js';
3
3
  import './message-parts/index.js';
4
4
  import './lifecycle.js';
5
5
 
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  compareVerifiedEpisodeResults,
3
3
  searchVerifiedEpisodes
4
- } from "./chunk-YLTG6BO4.js";
4
+ } from "./chunk-OIFZII6J.js";
5
5
  import "./chunk-2A3OXAP2.js";
6
6
  import "./chunk-ZBJMUXZH.js";
7
- import "./chunk-KXLRMM35.js";
7
+ import "./chunk-TRH533CA.js";
8
8
  import "./chunk-L2B3EE7B.js";
9
9
  import "./chunk-B3ABVQ36.js";
10
10
  import "./chunk-5UZXUTVO.js";
@@ -15,7 +15,7 @@ import "./chunk-6CIAGZ6X.js";
15
15
  import "./chunk-J6A3CX5N.js";
16
16
  import "./chunk-4KJLYTLS.js";
17
17
  import "./chunk-SVOZFLIQ.js";
18
- import "./chunk-3ZVFLMFQ.js";
18
+ import "./chunk-G5PVJJRA.js";
19
19
  import "./chunk-RULE4VG5.js";
20
20
  import "./chunk-SCU65EZI.js";
21
21
  import "./chunk-RHOZ5LLO.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnic/core",
3
- "version": "9.7.11",
3
+ "version": "9.7.13",
4
4
  "description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -3010,7 +3010,7 @@
3010
3010
  "core"
3011
3011
  ],
3012
3012
  "peerDependencies": {
3013
- "@remnic/coding-graph": "^9.7.11"
3013
+ "@remnic/coding-graph": "^9.7.13"
3014
3014
  },
3015
3015
  "peerDependenciesMeta": {
3016
3016
  "@remnic/coding-graph": {
@@ -213,6 +213,12 @@ function resolveDefaultAdminConsolePublicDir(): string {
213
213
 
214
214
  const defaultAdminConsolePublicDir = resolveDefaultAdminConsolePublicDir();
215
215
  const correlationIdStore = new AsyncLocalStorage<string>();
216
+ const RELAY_ADMIN_CONSOLE_ASSETS = new Map<string, string>([
217
+ ["relay.css", "text/css; charset=utf-8"],
218
+ ["relay-model.js", "application/javascript; charset=utf-8"],
219
+ ["relay.js", "application/javascript; charset=utf-8"],
220
+ ["replay.json", "application/json; charset=utf-8"],
221
+ ]);
216
222
 
217
223
  // Defaults for the write rate limit; overridable per instance via
218
224
  // `writeRateLimitWindowMs` / `writeRateLimitMaxRequests` (issue #1937).
@@ -1780,6 +1786,7 @@ export class EngramAccessHttpServer {
1780
1786
  if (!op) {
1781
1787
  throw new Error("access-boundary: operation not registered: relay_mission_read");
1782
1788
  }
1789
+ const authenticatedPrincipal = this.resolveRequestPrincipal(req)?.trim() || undefined;
1783
1790
  const output = (await op.run(
1784
1791
  {
1785
1792
  missionId,
@@ -1790,10 +1797,21 @@ export class EngramAccessHttpServer {
1790
1797
  },
1791
1798
  {
1792
1799
  service: this.service,
1793
- authenticatedPrincipal: this.resolveRequestPrincipal(req),
1800
+ authenticatedPrincipal,
1794
1801
  },
1795
1802
  )) as { result: unknown };
1796
1803
  res.setHeader("cache-control", "no-store");
1804
+ if (authenticatedPrincipal !== undefined) {
1805
+ try {
1806
+ // Percent-encode so every configured principal remains a valid HTTP
1807
+ // header value. Mission Control decodes this before constructing the
1808
+ // server-validated human approval envelope.
1809
+ res.setHeader("x-remnic-authenticated-principal", encodeURIComponent(authenticatedPrincipal));
1810
+ } catch {
1811
+ // An invalid Unicode principal cannot be represented as a Relay actor
1812
+ // identifier. Omit it so Mission Control fails closed at the gate.
1813
+ }
1814
+ }
1797
1815
  this.respondJson(res, 200, output.result);
1798
1816
  return;
1799
1817
  }
@@ -3420,14 +3438,33 @@ export class EngramAccessHttpServer {
3420
3438
  res.end();
3421
3439
  return true;
3422
3440
  }
3441
+ if (pathname === "/remnic/ui/relay" || pathname === "/engram/ui/relay") {
3442
+ res.statusCode = 301;
3443
+ res.setHeader("location", pathname + "/");
3444
+ res.end();
3445
+ return true;
3446
+ }
3423
3447
  if (pathname === "/remnic/ui/" || pathname === "/engram/ui/") {
3424
3448
  await this.respondAdminConsoleShell(req, res, pathname);
3425
3449
  return true;
3426
3450
  }
3451
+ if (pathname === "/remnic/ui/relay/" || pathname === "/engram/ui/relay/") {
3452
+ await this.respondAdminConsoleShell(req, res, pathname, "relay/index.html");
3453
+ return true;
3454
+ }
3427
3455
  if (pathname === "/remnic/ui/app.js" || pathname === "/engram/ui/app.js") {
3428
3456
  await this.respondStatic(res, path.join(this.adminConsolePublicDir, "app.js"), "application/javascript; charset=utf-8");
3429
3457
  return true;
3430
3458
  }
3459
+ const relayAsset = RELAY_ADMIN_CONSOLE_ASSETS.get(pathname.split("/").at(-1) ?? "");
3460
+ const isRelayAsset = pathname.startsWith("/remnic/ui/relay/") || pathname.startsWith("/engram/ui/relay/");
3461
+ if (isRelayAsset && relayAsset && pathname.split("/").length === 5) {
3462
+ const fileName = pathname.split("/").at(-1);
3463
+ if (fileName) {
3464
+ await this.respondStatic(res, path.join(this.adminConsolePublicDir, "relay", fileName), relayAsset);
3465
+ return true;
3466
+ }
3467
+ }
3431
3468
  return false;
3432
3469
  }
3433
3470
 
@@ -3435,9 +3472,10 @@ export class EngramAccessHttpServer {
3435
3472
  req: IncomingMessage,
3436
3473
  res: ServerResponse,
3437
3474
  pathname: string,
3475
+ relativePath = "index.html",
3438
3476
  ): Promise<void> {
3439
3477
  try {
3440
- let body = await readFile(path.join(this.adminConsolePublicDir, "index.html"), "utf-8");
3478
+ let body = await readFile(path.join(this.adminConsolePublicDir, relativePath), "utf-8");
3441
3479
  const canPrefillToken = this.adminConsolePrefillToken && this.isAuthorized(req, pathname);
3442
3480
  if (canPrefillToken) {
3443
3481
  const script = `<script>window.__REMNIC_ADMIN_CONSOLE_PREFILL_TOKEN__=${JSON.stringify(this.adminConsolePrefillToken)};</script>`;