@remnic/core 10.0.60 → 10.0.61

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 (252) hide show
  1. package/dist/access-admin-ops-surface.js +21 -20
  2. package/dist/access-authorization-probe.js +22 -21
  3. package/dist/access-boundary.js +21 -20
  4. package/dist/access-cli.js +64 -63
  5. package/dist/access-cli.js.map +1 -1
  6. package/dist/access-extraction-force-flush.js +21 -20
  7. package/dist/access-http-briefing.js +22 -21
  8. package/dist/access-http-query.js +23 -22
  9. package/dist/access-http.js +39 -38
  10. package/dist/access-identity-continuity-surface.js +21 -20
  11. package/dist/access-lcm-surface.js +21 -20
  12. package/dist/access-mcp.js +31 -30
  13. package/dist/access-namespace-preflight.js +21 -20
  14. package/dist/access-observe-write-category.js +4 -4
  15. package/dist/access-observe-write-surface.js +21 -20
  16. package/dist/access-operations-batch.js +23 -22
  17. package/dist/access-operations.js +30 -29
  18. package/dist/access-recall-concurrency.js +21 -20
  19. package/dist/access-recall-response.js +21 -20
  20. package/dist/access-recall-surface.js +21 -20
  21. package/dist/access-schema.js +3 -3
  22. package/dist/access-service.js +21 -20
  23. package/dist/access-surface-catalog.js +23 -22
  24. package/dist/access-surface-catalog.js.map +1 -1
  25. package/dist/active-recall.js +6 -4
  26. package/dist/active-recall.js.map +1 -1
  27. package/dist/briefing.js +7 -5
  28. package/dist/buffer-persistence.d.ts +14 -3
  29. package/dist/buffer-persistence.d.ts.map +1 -1
  30. package/dist/buffer-persistence.js +1 -1
  31. package/dist/buffer-turn-helpers.d.ts +7 -0
  32. package/dist/buffer-turn-helpers.d.ts.map +1 -1
  33. package/dist/buffer-turn-helpers.js +5 -3
  34. package/dist/buffer.d.ts +2 -0
  35. package/dist/buffer.d.ts.map +1 -1
  36. package/dist/buffer.js +3 -3
  37. package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-GWVG7LGC.js} +2 -2
  38. package/dist/causal-consolidation.js +8 -6
  39. package/dist/causal-consolidation.js.map +1 -1
  40. package/dist/{chunk-PRSF7DWT.js → chunk-23OEPU3K.js} +2 -2
  41. package/dist/{chunk-2EJAPJ5G.js → chunk-46U6L5DM.js} +2 -2
  42. package/dist/{chunk-NF5EHQTJ.js → chunk-6HTEPYOI.js} +4 -4
  43. package/dist/{chunk-TIS6T6UP.js → chunk-6T4CMKNP.js} +2 -2
  44. package/dist/{chunk-W37MS6SX.js → chunk-73A2DDDR.js} +2 -2
  45. package/dist/{chunk-X2TZWVCC.js → chunk-7AKPLEJV.js} +2 -2
  46. package/dist/{chunk-T4SMMTGY.js → chunk-7OKYO2UC.js} +2 -2
  47. package/dist/{chunk-WJC5KGYC.js → chunk-7ULSP7AU.js} +6 -6
  48. package/dist/{chunk-J53IBVMF.js → chunk-A4FZLM6Q.js} +2 -2
  49. package/dist/{chunk-KQAFEZQX.js → chunk-BUKK5SWA.js} +2 -2
  50. package/dist/{chunk-JRY55I6Z.js → chunk-C2AYUXEF.js} +2 -2
  51. package/dist/{chunk-PTJWUN4H.js → chunk-D3BYJSHX.js} +25 -25
  52. package/dist/{chunk-ADK5TMQL.js → chunk-D4WR56FR.js} +2 -2
  53. package/dist/{chunk-3DG2YAAX.js → chunk-DMYNM3WG.js} +59 -32
  54. package/dist/chunk-DMYNM3WG.js.map +1 -0
  55. package/dist/{chunk-66CC6L6R.js → chunk-DP22K7IC.js} +2 -2
  56. package/dist/{chunk-AWKADEMO.js → chunk-DTQJ7BRN.js} +3 -3
  57. package/dist/{chunk-IA3XZG4V.js → chunk-DZL5PBEJ.js} +2 -2
  58. package/dist/{chunk-7DHNBABU.js → chunk-EGCC5OJE.js} +3 -3
  59. package/dist/{chunk-N5H22V75.js → chunk-EJ4RS7I7.js} +2 -2
  60. package/dist/{chunk-MOB4JHG6.js → chunk-ENAPZQA6.js} +2 -2
  61. package/dist/{chunk-DF4SYU4Z.js → chunk-F2UAAI6B.js} +2 -2
  62. package/dist/{chunk-KXDUSGPM.js → chunk-FKNNWH7P.js} +2 -2
  63. package/dist/{chunk-74Z2BYEK.js → chunk-GNP4BV4Z.js} +2 -2
  64. package/dist/{chunk-LGLLCWA2.js → chunk-HWMGQDZI.js} +2 -2
  65. package/dist/{chunk-PIVSUPF2.js → chunk-IIUEHIQ2.js} +2 -2
  66. package/dist/{chunk-JFRO5HJY.js → chunk-IPN67KVR.js} +2 -2
  67. package/dist/chunk-JCL7RO2G.js +674 -0
  68. package/dist/chunk-JCL7RO2G.js.map +1 -0
  69. package/dist/{chunk-ZXEPLZUQ.js → chunk-JGSWWD33.js} +7 -7
  70. package/dist/{chunk-A3UFV4K3.js → chunk-JIYJIH5N.js} +2 -2
  71. package/dist/{chunk-M7KAJBO2.js → chunk-JKUVPVKR.js} +3 -3
  72. package/dist/{chunk-L5RMURVI.js → chunk-JL5FHZ7O.js} +29 -5
  73. package/dist/chunk-JL5FHZ7O.js.map +1 -0
  74. package/dist/{chunk-QWURVT5Z.js → chunk-L2HSSVVD.js} +2 -2
  75. package/dist/{chunk-VQ6H4DL6.js → chunk-L334PSLW.js} +4 -4
  76. package/dist/{chunk-UY67YP6Q.js → chunk-LIUI46BX.js} +2 -2
  77. package/dist/{chunk-4OFXLQJD.js → chunk-MPDLLLOG.js} +8 -3
  78. package/dist/chunk-MPDLLLOG.js.map +1 -0
  79. package/dist/{chunk-2HVCTFKG.js → chunk-MPJ7VHHA.js} +2 -2
  80. package/dist/{chunk-I6UTOUBK.js → chunk-N7RAABFM.js} +149 -344
  81. package/dist/chunk-N7RAABFM.js.map +1 -0
  82. package/dist/{chunk-RSYFSCKL.js → chunk-NSUGAIIB.js} +12 -12
  83. package/dist/{chunk-Z4EH5TSO.js → chunk-NXHBQC2O.js} +2 -2
  84. package/dist/{chunk-JEDS2QYV.js → chunk-OH55F76C.js} +2 -2
  85. package/dist/{chunk-GGHX4YHM.js → chunk-OUJ4DVR5.js} +2 -2
  86. package/dist/{chunk-2NLLXCJG.js → chunk-OWHERGF2.js} +2 -2
  87. package/dist/{chunk-4O4VAEWH.js → chunk-P5F7ISLV.js} +2 -2
  88. package/dist/{chunk-5XY46Z2W.js → chunk-PNVQNAJM.js} +3 -3
  89. package/dist/{chunk-HL643H2F.js → chunk-PRYDNBCO.js} +7 -7
  90. package/dist/{chunk-F3GX76LV.js → chunk-PUTH5REB.js} +2 -2
  91. package/dist/{chunk-IJFX4JRI.js → chunk-RBUR6USI.js} +7 -7
  92. package/dist/{chunk-JM2WJBP7.js → chunk-RZSHIJYY.js} +2 -2
  93. package/dist/{chunk-6BKSUA6P.js → chunk-SVTIWBSA.js} +2 -2
  94. package/dist/{chunk-M3GOWG2P.js → chunk-TBFAQHQZ.js} +2 -2
  95. package/dist/{chunk-ZRDEOC4X.js → chunk-TKCJI7WA.js} +2 -2
  96. package/dist/{chunk-NJZY5LOC.js → chunk-TLOAAOT3.js} +2 -2
  97. package/dist/{chunk-KZMRMKC7.js → chunk-U7MIMS2Y.js} +11 -1
  98. package/dist/chunk-U7MIMS2Y.js.map +1 -0
  99. package/dist/{chunk-X7Y7WX73.js → chunk-UVYI6VIX.js} +1 -1
  100. package/dist/{chunk-GJF337YM.js → chunk-VCYH2XUY.js} +2 -2
  101. package/dist/{chunk-UP2Q7U4G.js → chunk-WD2QH3JM.js} +2 -2
  102. package/dist/{chunk-MHSUEA32.js → chunk-WWSJQ7MP.js} +3 -3
  103. package/dist/{chunk-UIX4JLVV.js → chunk-XAFSZ4DP.js} +2 -2
  104. package/dist/{chunk-PJLJN23N.js → chunk-XICJL56Z.js} +2 -2
  105. package/dist/{chunk-C5GTIRIO.js → chunk-XJDSZFBZ.js} +18 -18
  106. package/dist/cli.js +52 -51
  107. package/dist/coding/export-okf-codegraph.js +6 -4
  108. package/dist/coding/export-okf-codegraph.js.map +1 -1
  109. package/dist/compounding/engine.js +8 -6
  110. package/dist/config.js +6 -4
  111. package/dist/connectors/codex-materialize-runner.js +7 -5
  112. package/dist/connectors/index.js +7 -5
  113. package/dist/convergence-refresh.js +9 -7
  114. package/dist/corpus-watermark.js +9 -7
  115. package/dist/deep-recall-http-glue.js +4 -4
  116. package/dist/entity-retrieval.js +7 -5
  117. package/dist/external-wiki-access.js +22 -21
  118. package/dist/extraction.js +7 -5
  119. package/dist/harmonic-retrieval.js +7 -5
  120. package/dist/index.d.ts +1 -1
  121. package/dist/index.d.ts.map +1 -1
  122. package/dist/index.js +66 -63
  123. package/dist/location/index.js +9 -7
  124. package/dist/maintenance/memory-governance.js +7 -5
  125. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +7 -5
  126. package/dist/maintenance/rebuild-memory-projection-runner.js +9 -7
  127. package/dist/maintenance/rebuild-memory-projection.js +8 -6
  128. package/dist/memory-browse-operations.js +22 -21
  129. package/dist/namespaces/migrate.js +8 -6
  130. package/dist/namespaces/search.js +3 -3
  131. package/dist/namespaces/storage.js +7 -5
  132. package/dist/operator-doctor-corpus.js +10 -8
  133. package/dist/operator-toolkit.js +15 -13
  134. package/dist/orchestration/buffer-drain-gate.d.ts +21 -0
  135. package/dist/orchestration/buffer-drain-gate.d.ts.map +1 -0
  136. package/dist/orchestration/buffer-drain-runner.d.ts +79 -0
  137. package/dist/orchestration/buffer-drain-runner.d.ts.map +1 -0
  138. package/dist/orchestration/buffer-drain-runner.js +780 -0
  139. package/dist/orchestration/buffer-drain-runner.js.map +1 -0
  140. package/dist/orchestration/buffer-swap.d.ts +12 -0
  141. package/dist/orchestration/buffer-swap.d.ts.map +1 -0
  142. package/dist/orchestration/maintenance.js +17 -15
  143. package/dist/orchestration/turn-ingestion.d.ts.map +1 -1
  144. package/dist/orchestrator.d.ts +4 -1
  145. package/dist/orchestrator.d.ts.map +1 -1
  146. package/dist/orchestrator.js +64 -63
  147. package/dist/recall-navigation-operations.js +22 -21
  148. package/dist/recall-navigation.js +21 -20
  149. package/dist/resume-bundles.js +6 -4
  150. package/dist/search/factory.js +2 -2
  151. package/dist/search/index.js +4 -4
  152. package/dist/semantic-consolidation.js +8 -6
  153. package/dist/semantic-rule-promotion.js +7 -5
  154. package/dist/semantic-rule-verifier.js +7 -5
  155. package/dist/source-agent-qualifier.js +7 -5
  156. package/dist/standup/build.js +7 -5
  157. package/dist/storage/buffer-drain-claims.d.ts +159 -0
  158. package/dist/storage/buffer-drain-claims.d.ts.map +1 -0
  159. package/dist/storage/buffer-drain-claims.js +18 -0
  160. package/dist/storage/buffer-drain-claims.js.map +1 -0
  161. package/dist/storage/buffer-session-files.d.ts +14 -2
  162. package/dist/storage/buffer-session-files.d.ts.map +1 -1
  163. package/dist/storage/buffer-session-files.js +22 -0
  164. package/dist/storage/buffer-session-files.js.map +1 -0
  165. package/dist/storage.d.ts +6 -1
  166. package/dist/storage.d.ts.map +1 -1
  167. package/dist/storage.js +6 -4
  168. package/dist/support-passport/index.js +24 -23
  169. package/dist/transfer/backup.js +2 -2
  170. package/dist/transfer/capsule-export.js +2 -2
  171. package/dist/transfer/capsule-import.js +2 -2
  172. package/dist/transfer/export-okf.js +7 -5
  173. package/dist/verified-recall.js +7 -5
  174. package/dist/who-knows-cli.js +8 -6
  175. package/dist/who-knows.js +7 -5
  176. package/package.json +32 -2
  177. package/src/buffer-drain-handover.test.ts +307 -0
  178. package/src/buffer-persistence.ts +27 -5
  179. package/src/buffer-turn-helpers.ts +16 -0
  180. package/src/buffer.ts +32 -2
  181. package/src/index.ts +1 -1
  182. package/src/orchestration/buffer-drain-gate.test.ts +40 -0
  183. package/src/orchestration/buffer-drain-gate.ts +38 -0
  184. package/src/orchestration/buffer-drain-runner.ts +312 -0
  185. package/src/orchestration/buffer-swap.ts +27 -0
  186. package/src/orchestration/turn-ingestion.ts +2 -0
  187. package/src/orchestrator.ts +9 -6
  188. package/src/storage/buffer-drain-claims.test.ts +448 -0
  189. package/src/storage/buffer-drain-claims.ts +593 -0
  190. package/src/storage/buffer-session-files.ts +50 -3
  191. package/src/storage.ts +8 -11
  192. package/src/testing/subjects/extraction-lifecycle.test.ts +34 -0
  193. package/dist/chunk-3DG2YAAX.js.map +0 -1
  194. package/dist/chunk-4OFXLQJD.js.map +0 -1
  195. package/dist/chunk-I6UTOUBK.js.map +0 -1
  196. package/dist/chunk-KZMRMKC7.js.map +0 -1
  197. package/dist/chunk-L5RMURVI.js.map +0 -1
  198. /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-GWVG7LGC.js.map} +0 -0
  199. /package/dist/{chunk-PRSF7DWT.js.map → chunk-23OEPU3K.js.map} +0 -0
  200. /package/dist/{chunk-2EJAPJ5G.js.map → chunk-46U6L5DM.js.map} +0 -0
  201. /package/dist/{chunk-NF5EHQTJ.js.map → chunk-6HTEPYOI.js.map} +0 -0
  202. /package/dist/{chunk-TIS6T6UP.js.map → chunk-6T4CMKNP.js.map} +0 -0
  203. /package/dist/{chunk-W37MS6SX.js.map → chunk-73A2DDDR.js.map} +0 -0
  204. /package/dist/{chunk-X2TZWVCC.js.map → chunk-7AKPLEJV.js.map} +0 -0
  205. /package/dist/{chunk-T4SMMTGY.js.map → chunk-7OKYO2UC.js.map} +0 -0
  206. /package/dist/{chunk-WJC5KGYC.js.map → chunk-7ULSP7AU.js.map} +0 -0
  207. /package/dist/{chunk-J53IBVMF.js.map → chunk-A4FZLM6Q.js.map} +0 -0
  208. /package/dist/{chunk-KQAFEZQX.js.map → chunk-BUKK5SWA.js.map} +0 -0
  209. /package/dist/{chunk-JRY55I6Z.js.map → chunk-C2AYUXEF.js.map} +0 -0
  210. /package/dist/{chunk-PTJWUN4H.js.map → chunk-D3BYJSHX.js.map} +0 -0
  211. /package/dist/{chunk-ADK5TMQL.js.map → chunk-D4WR56FR.js.map} +0 -0
  212. /package/dist/{chunk-66CC6L6R.js.map → chunk-DP22K7IC.js.map} +0 -0
  213. /package/dist/{chunk-AWKADEMO.js.map → chunk-DTQJ7BRN.js.map} +0 -0
  214. /package/dist/{chunk-IA3XZG4V.js.map → chunk-DZL5PBEJ.js.map} +0 -0
  215. /package/dist/{chunk-7DHNBABU.js.map → chunk-EGCC5OJE.js.map} +0 -0
  216. /package/dist/{chunk-N5H22V75.js.map → chunk-EJ4RS7I7.js.map} +0 -0
  217. /package/dist/{chunk-MOB4JHG6.js.map → chunk-ENAPZQA6.js.map} +0 -0
  218. /package/dist/{chunk-DF4SYU4Z.js.map → chunk-F2UAAI6B.js.map} +0 -0
  219. /package/dist/{chunk-KXDUSGPM.js.map → chunk-FKNNWH7P.js.map} +0 -0
  220. /package/dist/{chunk-74Z2BYEK.js.map → chunk-GNP4BV4Z.js.map} +0 -0
  221. /package/dist/{chunk-LGLLCWA2.js.map → chunk-HWMGQDZI.js.map} +0 -0
  222. /package/dist/{chunk-PIVSUPF2.js.map → chunk-IIUEHIQ2.js.map} +0 -0
  223. /package/dist/{chunk-JFRO5HJY.js.map → chunk-IPN67KVR.js.map} +0 -0
  224. /package/dist/{chunk-ZXEPLZUQ.js.map → chunk-JGSWWD33.js.map} +0 -0
  225. /package/dist/{chunk-A3UFV4K3.js.map → chunk-JIYJIH5N.js.map} +0 -0
  226. /package/dist/{chunk-M7KAJBO2.js.map → chunk-JKUVPVKR.js.map} +0 -0
  227. /package/dist/{chunk-QWURVT5Z.js.map → chunk-L2HSSVVD.js.map} +0 -0
  228. /package/dist/{chunk-VQ6H4DL6.js.map → chunk-L334PSLW.js.map} +0 -0
  229. /package/dist/{chunk-UY67YP6Q.js.map → chunk-LIUI46BX.js.map} +0 -0
  230. /package/dist/{chunk-2HVCTFKG.js.map → chunk-MPJ7VHHA.js.map} +0 -0
  231. /package/dist/{chunk-RSYFSCKL.js.map → chunk-NSUGAIIB.js.map} +0 -0
  232. /package/dist/{chunk-Z4EH5TSO.js.map → chunk-NXHBQC2O.js.map} +0 -0
  233. /package/dist/{chunk-JEDS2QYV.js.map → chunk-OH55F76C.js.map} +0 -0
  234. /package/dist/{chunk-GGHX4YHM.js.map → chunk-OUJ4DVR5.js.map} +0 -0
  235. /package/dist/{chunk-2NLLXCJG.js.map → chunk-OWHERGF2.js.map} +0 -0
  236. /package/dist/{chunk-4O4VAEWH.js.map → chunk-P5F7ISLV.js.map} +0 -0
  237. /package/dist/{chunk-5XY46Z2W.js.map → chunk-PNVQNAJM.js.map} +0 -0
  238. /package/dist/{chunk-HL643H2F.js.map → chunk-PRYDNBCO.js.map} +0 -0
  239. /package/dist/{chunk-F3GX76LV.js.map → chunk-PUTH5REB.js.map} +0 -0
  240. /package/dist/{chunk-IJFX4JRI.js.map → chunk-RBUR6USI.js.map} +0 -0
  241. /package/dist/{chunk-JM2WJBP7.js.map → chunk-RZSHIJYY.js.map} +0 -0
  242. /package/dist/{chunk-6BKSUA6P.js.map → chunk-SVTIWBSA.js.map} +0 -0
  243. /package/dist/{chunk-M3GOWG2P.js.map → chunk-TBFAQHQZ.js.map} +0 -0
  244. /package/dist/{chunk-ZRDEOC4X.js.map → chunk-TKCJI7WA.js.map} +0 -0
  245. /package/dist/{chunk-NJZY5LOC.js.map → chunk-TLOAAOT3.js.map} +0 -0
  246. /package/dist/{chunk-X7Y7WX73.js.map → chunk-UVYI6VIX.js.map} +0 -0
  247. /package/dist/{chunk-GJF337YM.js.map → chunk-VCYH2XUY.js.map} +0 -0
  248. /package/dist/{chunk-UP2Q7U4G.js.map → chunk-WD2QH3JM.js.map} +0 -0
  249. /package/dist/{chunk-MHSUEA32.js.map → chunk-WWSJQ7MP.js.map} +0 -0
  250. /package/dist/{chunk-UIX4JLVV.js.map → chunk-XAFSZ4DP.js.map} +0 -0
  251. /package/dist/{chunk-PJLJN23N.js.map → chunk-XICJL56Z.js.map} +0 -0
  252. /package/dist/{chunk-C5GTIRIO.js.map → chunk-XJDSZFBZ.js.map} +0 -0
@@ -18,13 +18,13 @@ import {
18
18
  } from "./chunk-3HSRWJTC.js";
19
19
  import {
20
20
  respondDeepRecall
21
- } from "./chunk-JRY55I6Z.js";
21
+ } from "./chunk-C2AYUXEF.js";
22
22
  import {
23
23
  handleSupportPassportOwnerHttp
24
- } from "./chunk-JM2WJBP7.js";
24
+ } from "./chunk-RZSHIJYY.js";
25
25
  import {
26
26
  buildSupportPassportPublicRequestHandler
27
- } from "./chunk-Z4EH5TSO.js";
27
+ } from "./chunk-NXHBQC2O.js";
28
28
  import {
29
29
  handleMcpGetSse
30
30
  } from "./chunk-SRT6SHVZ.js";
@@ -37,14 +37,14 @@ import {
37
37
  processChatMessage,
38
38
  sessionBelongsToPrincipal,
39
39
  subscribeChatTranscript
40
- } from "./chunk-NF5EHQTJ.js";
40
+ } from "./chunk-6HTEPYOI.js";
41
41
  import {
42
42
  handleRecallWhyHttpQuery,
43
43
  handleRecallXrayHttpQuery
44
44
  } from "./chunk-KJ3MDX4V.js";
45
45
  import {
46
46
  RelayMissionStoreError
47
- } from "./chunk-WJC5KGYC.js";
47
+ } from "./chunk-7ULSP7AU.js";
48
48
  import {
49
49
  executeResolution,
50
50
  isValidResolutionVerb
@@ -61,10 +61,10 @@ import {
61
61
  optionalNamespaceKindQueryParam,
62
62
  optionalQueryString,
63
63
  positiveIntQueryParam
64
- } from "./chunk-N5H22V75.js";
64
+ } from "./chunk-EJ4RS7I7.js";
65
65
  import {
66
66
  respondBriefingHttp
67
- } from "./chunk-ADK5TMQL.js";
67
+ } from "./chunk-D4WR56FR.js";
68
68
  import {
69
69
  maybeHandleLifecycleFlush
70
70
  } from "./chunk-2BPPGNAQ.js";
@@ -75,14 +75,14 @@ import {
75
75
  authorizationProbeNamespaces,
76
76
  authorizationProbeRequiresPrincipalNamespace,
77
77
  probeOperationAuthorization
78
- } from "./chunk-X2TZWVCC.js";
78
+ } from "./chunk-7AKPLEJV.js";
79
79
  import {
80
80
  getOperation,
81
81
  resolveQueryNamespaceWritablePreflight
82
- } from "./chunk-C5GTIRIO.js";
82
+ } from "./chunk-XJDSZFBZ.js";
83
83
  import {
84
84
  handleWhoKnowsHttpQuery
85
- } from "./chunk-J53IBVMF.js";
85
+ } from "./chunk-A4FZLM6Q.js";
86
86
  import {
87
87
  isTrustZoneName
88
88
  } from "./chunk-JWX2Q6HS.js";
@@ -105,7 +105,7 @@ import {
105
105
  } from "./chunk-PARM6OYL.js";
106
106
  import {
107
107
  validateRequest
108
- } from "./chunk-UY67YP6Q.js";
108
+ } from "./chunk-LIUI46BX.js";
109
109
  import {
110
110
  peerManifestRevision
111
111
  } from "./chunk-QYAXMXOB.js";
@@ -3573,4 +3573,4 @@ export {
3573
3573
  resolveDefaultAdminConsolePublicDir,
3574
3574
  EngramAccessHttpServer
3575
3575
  };
3576
- //# sourceMappingURL=chunk-RSYFSCKL.js.map
3576
+ //# sourceMappingURL=chunk-NSUGAIIB.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SupportPassportError,
3
3
  getOperation
4
- } from "./chunk-C5GTIRIO.js";
4
+ } from "./chunk-XJDSZFBZ.js";
5
5
  import {
6
6
  abortError,
7
7
  isAbortError
@@ -499,4 +499,4 @@ export {
499
499
  buildSupportPassportPublicRequestHandler,
500
500
  composeSupportPassportExternalRequestHandlers
501
501
  };
502
- //# sourceMappingURL=chunk-Z4EH5TSO.js.map
502
+ //# sourceMappingURL=chunk-NXHBQC2O.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createSearchBackend
3
- } from "./chunk-VQ6H4DL6.js";
3
+ } from "./chunk-L334PSLW.js";
4
4
  import {
5
5
  namespaceIdentityToken,
6
6
  normalizeNamespaceIdentity
@@ -519,4 +519,4 @@ export {
519
519
  normalizeQmdResultPath,
520
520
  resolveNamespaceResultPath
521
521
  };
522
- //# sourceMappingURL=chunk-JEDS2QYV.js.map
522
+ //# sourceMappingURL=chunk-OH55F76C.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-I6UTOUBK.js";
3
+ } from "./chunk-N7RAABFM.js";
4
4
  import {
5
5
  composeMemoryEnvelope
6
6
  } from "./chunk-TWRPWJJT.js";
@@ -546,4 +546,4 @@ export {
546
546
  setSemanticRulePromotionTestHooks,
547
547
  promoteSemanticRuleFromMemory
548
548
  };
549
- //# sourceMappingURL=chunk-GGHX4YHM.js.map
549
+ //# sourceMappingURL=chunk-OUJ4DVR5.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-765K3SAT.js";
4
4
  import {
5
5
  encryptCapsuleFile
6
- } from "./chunk-X7Y7WX73.js";
6
+ } from "./chunk-UVYI6VIX.js";
7
7
  import {
8
8
  computeTransferOutputRel,
9
9
  isTransferPathExcluded
@@ -109,4 +109,4 @@ async function enforceRetention(outDirAbs, retentionDays) {
109
109
  export {
110
110
  backupMemoryDir
111
111
  };
112
- //# sourceMappingURL=chunk-2NLLXCJG.js.map
112
+ //# sourceMappingURL=chunk-OWHERGF2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  parseFrontmatter
3
- } from "./chunk-I6UTOUBK.js";
3
+ } from "./chunk-N7RAABFM.js";
4
4
  import {
5
5
  activityDigestPath,
6
6
  isValidActivityDate
@@ -199,4 +199,4 @@ export {
199
199
  buildStandup,
200
200
  standupHelp
201
201
  };
202
- //# sourceMappingURL=chunk-4O4VAEWH.js.map
202
+ //# sourceMappingURL=chunk-P5F7ISLV.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  NamespaceStorageRouter
3
- } from "./chunk-M3GOWG2P.js";
3
+ } from "./chunk-TBFAQHQZ.js";
4
4
  import {
5
5
  namespaceCollectionName
6
- } from "./chunk-JEDS2QYV.js";
6
+ } from "./chunk-OH55F76C.js";
7
7
  import {
8
8
  isSafeRouteNamespace
9
9
  } from "./chunk-PCXDUHQH.js";
@@ -213,4 +213,4 @@ export {
213
213
  verifyNamespaces,
214
214
  runNamespaceMigration
215
215
  };
216
- //# sourceMappingURL=chunk-5XY46Z2W.js.map
216
+ //# sourceMappingURL=chunk-PNVQNAJM.js.map
@@ -3,7 +3,7 @@ import {
3
3
  readNamespaceMaintenanceLastRanStatuses,
4
4
  readNamespaceMaintenanceStatuses,
5
5
  runNamespaceMaintenancePlan
6
- } from "./chunk-AWKADEMO.js";
6
+ } from "./chunk-DTQJ7BRN.js";
7
7
  import {
8
8
  analyzeSessionIntegrity,
9
9
  applySessionRepair,
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-CMTINOFS.js";
15
15
  import {
16
16
  summarizeCorpusAndReplica
17
- } from "./chunk-KXDUSGPM.js";
17
+ } from "./chunk-FKNNWH7P.js";
18
18
  import {
19
19
  readJudgeVerdictStats
20
20
  } from "./chunk-OZKOPQCM.js";
@@ -41,14 +41,14 @@ import {
41
41
  } from "./chunk-XWXBXBOX.js";
42
42
  import {
43
43
  readAggregateExtractionWatermark
44
- } from "./chunk-LGLLCWA2.js";
44
+ } from "./chunk-HWMGQDZI.js";
45
45
  import {
46
46
  listNamespaces
47
- } from "./chunk-5XY46Z2W.js";
47
+ } from "./chunk-PNVQNAJM.js";
48
48
  import {
49
49
  listMemoryGovernanceRuns,
50
50
  readMemoryGovernanceRunArtifact
51
- } from "./chunk-IA3XZG4V.js";
51
+ } from "./chunk-DZL5PBEJ.js";
52
52
  import {
53
53
  analyzeGraphHealth
54
54
  } from "./chunk-QKXPOLQD.js";
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-AWD36R4D.js";
58
58
  import {
59
59
  StorageManager
60
- } from "./chunk-I6UTOUBK.js";
60
+ } from "./chunk-N7RAABFM.js";
61
61
  import {
62
62
  lintWorkspaceFiles
63
63
  } from "./chunk-DM2T26WE.js";
@@ -1683,4 +1683,4 @@ export {
1683
1683
  runBenchmarkRecall,
1684
1684
  runOperatorRepair
1685
1685
  };
1686
- //# sourceMappingURL=chunk-HL643H2F.js.map
1686
+ //# sourceMappingURL=chunk-PRYDNBCO.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runLocationSync
3
- } from "./chunk-MHSUEA32.js";
3
+ } from "./chunk-WWSJQ7MP.js";
4
4
  import {
5
5
  log
6
6
  } from "./chunk-3WCASNQZ.js";
@@ -58,4 +58,4 @@ export {
58
58
  LOCATION_SYNC_DEFAULT_INTERVAL_MS,
59
59
  startLocationAutoSync
60
60
  };
61
- //# sourceMappingURL=chunk-F3GX76LV.js.map
61
+ //# sourceMappingURL=chunk-PUTH5REB.js.map
@@ -1,9 +1,9 @@
1
- import {
2
- normalizeDreamsStatusWindowHours
3
- } from "./chunk-PQM3B54K.js";
4
1
  import {
5
2
  runGraphEdgeDecayMaintenanceAcrossNamespaces
6
3
  } from "./chunk-HJ3UTGIW.js";
4
+ import {
5
+ normalizeDreamsStatusWindowHours
6
+ } from "./chunk-PQM3B54K.js";
7
7
  import {
8
8
  executeResolution,
9
9
  isValidResolutionVerb,
@@ -21,13 +21,13 @@ import {
21
21
  defineOperation,
22
22
  parseNamespacePreflightWriteOp,
23
23
  resolveAuthorizedNamespaceWritablePreflight
24
- } from "./chunk-C5GTIRIO.js";
24
+ } from "./chunk-XJDSZFBZ.js";
25
25
  import {
26
26
  parseSharedWriteOutputControls
27
27
  } from "./chunk-IFBSZGW3.js";
28
28
  import {
29
29
  validateBriefingFormat
30
- } from "./chunk-W37MS6SX.js";
30
+ } from "./chunk-73A2DDDR.js";
31
31
  import {
32
32
  parseDeepRecallMaxSteps
33
33
  } from "./chunk-AJG2TAMR.js";
@@ -44,7 +44,7 @@ import {
44
44
  recallRequestSchema,
45
45
  retainedCategoryAlias,
46
46
  suggestionSubmitRequestSchema
47
- } from "./chunk-UY67YP6Q.js";
47
+ } from "./chunk-LIUI46BX.js";
48
48
  import {
49
49
  enforceNamespaceAllowList,
50
50
  tokenCapabilityStore
@@ -618,4 +618,4 @@ defineOperation({ name: "graph_events", description: "SSE graph events.", schema
618
618
  defineOperation({ name: "chat_message", description: "Chat message.", schema: strictSchema({ message: S.str, chatSessionId: S.str }), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
619
619
  defineOperation({ name: "chat_events", description: "SSE chat events.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { stream: "sse" } }) });
620
620
  defineOperation({ name: "adapters_status", description: "Adapter registry metadata (issue #1850 round 5). Marker op: the HTTP transport builds the response from its own adapterRegistry, but the op still must be registered so it appears in listRegisteredOperations and enforceTokenOp can gate it for scoped tokens.", schema: strictSchema({}), handler: async (_i, _ctx) => ({ result: { ok: true } }) });
621
- //# sourceMappingURL=chunk-IJFX4JRI.js.map
621
+ //# sourceMappingURL=chunk-RBUR6USI.js.map
@@ -2,7 +2,7 @@ import {
2
2
  SupportPassportError,
3
3
  SupportPassportOwnerCreateGrantRequestSchema,
4
4
  getOperation
5
- } from "./chunk-C5GTIRIO.js";
5
+ } from "./chunk-XJDSZFBZ.js";
6
6
 
7
7
  // src/support-passport/access-http.ts
8
8
  var OWNER_ROOT = "/engram/v1/support-passport";
@@ -137,4 +137,4 @@ export {
137
137
  SUPPORT_PASSPORT_OWNER_HTTP_ROUTES,
138
138
  handleSupportPassportOwnerHttp
139
139
  };
140
- //# sourceMappingURL=chunk-JM2WJBP7.js.map
140
+ //# sourceMappingURL=chunk-RZSHIJYY.js.map
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-3UXOZBHV.js";
15
15
  import {
16
16
  StorageManager
17
- } from "./chunk-I6UTOUBK.js";
17
+ } from "./chunk-N7RAABFM.js";
18
18
  import {
19
19
  OKF_PROFILE_TYPE,
20
20
  okfTypeForMemory
@@ -272,4 +272,4 @@ export {
272
272
  exportOkfBundle,
273
273
  firstHeading
274
274
  };
275
- //# sourceMappingURL=chunk-6BKSUA6P.js.map
275
+ //# sourceMappingURL=chunk-SVTIWBSA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  StorageManager
3
- } from "./chunk-I6UTOUBK.js";
3
+ } from "./chunk-N7RAABFM.js";
4
4
  import {
5
5
  keyring_exports,
6
6
  secureStoreDir
@@ -416,4 +416,4 @@ export {
416
416
  resolveNamespaceStorageRoot,
417
417
  NamespaceStorageRouter
418
418
  };
419
- //# sourceMappingURL=chunk-M3GOWG2P.js.map
419
+ //# sourceMappingURL=chunk-TBFAQHQZ.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot,
3
3
  resolveNamespaceStorageRoot
4
- } from "./chunk-M3GOWG2P.js";
4
+ } from "./chunk-TBFAQHQZ.js";
5
5
  import {
6
6
  MutationSerializer,
7
7
  withHeldFileLock
@@ -1596,4 +1596,4 @@ export {
1596
1596
  isNamespaceKind,
1597
1597
  NamespaceCatalog
1598
1598
  };
1599
- //# sourceMappingURL=chunk-ZRDEOC4X.js.map
1599
+ //# sourceMappingURL=chunk-TKCJI7WA.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rebuildMemoryProjection
3
- } from "./chunk-7DHNBABU.js";
3
+ } from "./chunk-EGCC5OJE.js";
4
4
 
5
5
  // src/convergence-refresh.ts
6
6
  async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, getStorage, searchEnabled) {
@@ -32,4 +32,4 @@ async function refreshConvergedNamespaces(namespaces, namespaceSearchRouter, get
32
32
  export {
33
33
  refreshConvergedNamespaces
34
34
  };
35
- //# sourceMappingURL=chunk-NJZY5LOC.js.map
35
+ //# sourceMappingURL=chunk-TLOAAOT3.js.map
@@ -76,6 +76,15 @@ function copyBufferTurn(turn) {
76
76
  }
77
77
  return copy;
78
78
  }
79
+ function subtractBufferTurns(turns, drained) {
80
+ if (drained.length === 0) return [...turns];
81
+ const kept = [...turns];
82
+ for (const gone of drained) {
83
+ const at = kept.findIndex((live) => bufferTurnsEqual(live, gone));
84
+ if (at >= 0) kept.splice(at, 1);
85
+ }
86
+ return kept;
87
+ }
79
88
  function bufferTurnsEqual(left, right) {
80
89
  if (!left) return false;
81
90
  return left.role === right.role && left.content === right.content && left.timestamp === right.timestamp && left.sessionKey === right.sessionKey && left.sessionOwnerPrincipal === right.sessionOwnerPrincipal && left.logicalSessionKey === right.logicalSessionKey && left.providerThreadId === right.providerThreadId && left.turnFingerprint === right.turnFingerprint && left.persistProcessedFingerprint === right.persistProcessedFingerprint && left.sourceConnector === right.sourceConnector && left.originRole === right.originRole && left.ambientCapture === right.ambientCapture && left.sourceValidAt === right.sourceValidAt && left.acceptedCapture === right.acceptedCapture && left.codingContext?.projectId === right.codingContext?.projectId && left.codingContext?.rootPath === right.codingContext?.rootPath && left.codingContext?.branch === right.codingContext?.branch && left.codingContext?.defaultBranch === right.codingContext?.defaultBranch && // #3251 scope pins compare by identity triple, not deep plan equality: a
@@ -182,6 +191,7 @@ function probeWithTimeout(inflight, timeoutMs) {
182
191
  export {
183
192
  describeError,
184
193
  copyBufferTurn,
194
+ subtractBufferTurns,
185
195
  bufferTurnsEqual,
186
196
  selectRetainedDeferredTurns,
187
197
  hasPinnedCaptureScope,
@@ -194,4 +204,4 @@ export {
194
204
  ProbeTimeoutError,
195
205
  probeWithTimeout
196
206
  };
197
- //# sourceMappingURL=chunk-KZMRMKC7.js.map
207
+ //# sourceMappingURL=chunk-U7MIMS2Y.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/buffer-turn-helpers.ts"],"sourcesContent":["import type { BufferEntryState, BufferTurn } from \"./types.js\";\n\nexport interface BufferTurnOwner {\n /**\n * Server-resolved principal that owns this session at the authenticated\n * observe/write boundary. Persisted with the buffered turn so lifecycle\n * flushes do not have to infer ownership from a client-chosen session key.\n */\n sessionOwnerPrincipal?: string;\n}\n\nexport interface AmbientCaptureProvenance {\n /**\n * True when this turn's content came from an always-on ambient capture\n * device (a wearable recorder, a room microphone) and may therefore carry\n * speech the user never authored: TV, podcasts, music, overheard\n * conversation (issue #2294). Set by the ingesting subsystem, never from\n * tool arguments — extraction reads it to warn the model about media audio\n * and to clamp high-impact personal facts to the speculative tier.\n */\n ambientCapture?: boolean;\n}\n\nexport function describeError(err: unknown): string {\n if (err instanceof Error) return err.message;\n if (err === null) return \"null\";\n if (err === undefined) return \"undefined\";\n if (typeof err === \"string\") return err;\n try {\n return JSON.stringify(err);\n } catch {\n return String(err);\n }\n}\n\nexport function copyBufferTurn(turn: BufferTurn): BufferTurn {\n const copy: BufferTurn = {\n role: turn.role,\n content: turn.content,\n timestamp: turn.timestamp,\n };\n if (typeof turn.sessionKey === \"string\") copy.sessionKey = turn.sessionKey;\n if (typeof turn.logicalSessionKey === \"string\") {\n copy.logicalSessionKey = turn.logicalSessionKey;\n }\n if (turn.providerThreadId === null || typeof turn.providerThreadId === \"string\") {\n copy.providerThreadId = turn.providerThreadId;\n }\n if (typeof turn.sessionOwnerPrincipal === \"string\") {\n copy.sessionOwnerPrincipal = turn.sessionOwnerPrincipal;\n }\n if (typeof turn.turnFingerprint === \"string\") {\n copy.turnFingerprint = turn.turnFingerprint;\n }\n if (typeof turn.persistProcessedFingerprint === \"boolean\") {\n copy.persistProcessedFingerprint = turn.persistProcessedFingerprint;\n }\n if (typeof turn.sourceConnector === \"string\") {\n copy.sourceConnector = turn.sourceConnector;\n }\n if (turn.originRole === \"user\" || turn.originRole === \"assistant\" || turn.originRole === \"tool\") {\n copy.originRole = turn.originRole;\n }\n if (typeof turn.ambientCapture === \"boolean\") {\n copy.ambientCapture = turn.ambientCapture;\n }\n if (turn.sourceValidAt !== undefined) {\n copy.sourceValidAt = turn.sourceValidAt;\n }\n if (turn.parts !== undefined) {\n copy.parts = turn.parts;\n }\n if (turn.rawContent !== undefined) {\n copy.rawContent = turn.rawContent;\n }\n if (turn.sourceFormat !== undefined) {\n copy.sourceFormat = turn.sourceFormat;\n }\n // #3251 scope pins: strings copy by value; the plan object is an immutable\n // config-derived identity passed by reference.\n if (turn.writeNamespaceOverride !== undefined) {\n copy.writeNamespaceOverride = turn.writeNamespaceOverride;\n }\n if (turn.principalOverride !== undefined) {\n copy.principalOverride = turn.principalOverride;\n }\n if (turn.scopeProfileWritePlan !== undefined) {\n copy.scopeProfileWritePlan = turn.scopeProfileWritePlan;\n }\n if (turn.acceptedCapture === true) {\n copy.acceptedCapture = true;\n }\n const ctx = turn.codingContext;\n if (ctx) {\n // All four fields are identity inputs (branchScope uses branch) — copy\n // explicitly as-is; never a spread of external input.\n copy.codingContext = {\n projectId: ctx.projectId,\n branch: ctx.branch,\n rootPath: ctx.rootPath,\n defaultBranch: ctx.defaultBranch,\n };\n }\n return copy;\n}\n\n/**\n * Remove the turns that a drain already extracted (`drained`) from `turns`.\n * Identity-based (role/content/timestamp/session/...): the same comparison\n * the buffer uses to match live turns, so a stale owner can subtract exactly\n * what the drain took and keep everything else.\n */\nexport function subtractBufferTurns(turns: readonly BufferTurn[], drained: readonly BufferTurn[]): BufferTurn[] {\n if (drained.length === 0) return [...turns];\n const kept = [...turns];\n for (const gone of drained) {\n const at = kept.findIndex((live) => bufferTurnsEqual(live, gone));\n if (at >= 0) kept.splice(at, 1);\n }\n return kept;\n}\n\nexport function bufferTurnsEqual(left: BufferTurn | undefined, right: BufferTurn): boolean {\n if (!left) return false;\n return (\n left.role === right.role &&\n left.content === right.content &&\n left.timestamp === right.timestamp &&\n left.sessionKey === right.sessionKey &&\n left.sessionOwnerPrincipal === right.sessionOwnerPrincipal &&\n left.logicalSessionKey === right.logicalSessionKey &&\n left.providerThreadId === right.providerThreadId &&\n left.turnFingerprint === right.turnFingerprint &&\n left.persistProcessedFingerprint === right.persistProcessedFingerprint &&\n left.sourceConnector === right.sourceConnector &&\n left.originRole === right.originRole &&\n left.ambientCapture === right.ambientCapture &&\n left.sourceValidAt === right.sourceValidAt &&\n left.acceptedCapture === right.acceptedCapture &&\n left.codingContext?.projectId === right.codingContext?.projectId &&\n left.codingContext?.rootPath === right.codingContext?.rootPath &&\n left.codingContext?.branch === right.codingContext?.branch &&\n left.codingContext?.defaultBranch === right.codingContext?.defaultBranch &&\n // #3251 scope pins compare by identity triple, not deep plan equality: a\n // restart-rehydrated plan must still match the pin it was accepted under.\n left.writeNamespaceOverride === right.writeNamespaceOverride &&\n left.principalOverride === right.principalOverride &&\n scopeProfilePlanIdentity(left.scopeProfileWritePlan) ===\n scopeProfilePlanIdentity(right.scopeProfileWritePlan)\n );\n}\n\n/** Replace only the processed snapshot; callers without one retain legacy whole-slot semantics. */\nexport function selectRetainedDeferredTurns(\n existing: readonly BufferTurn[],\n turns: BufferTurn[],\n max: number,\n originalTurns?: readonly BufferTurn[],\n): BufferTurn[] {\n const others = originalTurns === undefined ? [] : existing.filter(\n (turn) => !originalTurns.some((original) => bufferTurnsEqual(turn, original)),\n );\n if (!Array.isArray(turns) || max <= 0) return others;\n return [...others, ...turns.slice(-max).map(copyBufferTurn)];\n}\n\nexport function hasPinnedCaptureScope(turn: BufferTurn): boolean {\n return turn.acceptedCapture === true ||\n turn.writeNamespaceOverride !== undefined ||\n turn.scopeProfileWritePlan !== undefined;\n}\n\n/** Stable identity string for a pinned scope-profile plan (#3251). */\nexport function scopeProfilePlanIdentity(\n plan: BufferTurn[\"scopeProfileWritePlan\"],\n): string {\n if (!plan) return \"\";\n return `${plan.profileId}\\u0000${plan.writeLayer}\\u0000${plan.writeNamespace}`;\n}\n\nexport interface ExtractionScopeGroup {\n writeNamespaceOverride?: string;\n principalOverride?: string;\n scopeProfileWritePlan?: BufferTurn[\"scopeProfileWritePlan\"];\n codingContext?: BufferTurn[\"codingContext\"];\n turns: BufferTurn[];\n}\n\n/**\n * Partition extraction turns by their durable scope pins (#3251). Turns\n * captured under different namespaces / principals / scope profiles /\n * project bindings must never be extracted together — each group runs its\n * own extraction under its own scope. Native (unpinned) turns form their own\n * group and keep today's single-store routing.\n */\nexport function groupTurnsByExtractionScope(turns: BufferTurn[]): ExtractionScopeGroup[] {\n const groups = new Map<string, ExtractionScopeGroup>();\n for (const turn of turns) {\n const key = [\n turn.writeNamespaceOverride ?? \"\",\n turn.principalOverride ?? \"\",\n scopeProfilePlanIdentity(turn.scopeProfileWritePlan),\n turn.codingContext?.projectId ?? \"\",\n turn.codingContext?.rootPath ?? \"\",\n turn.codingContext?.branch ?? \"\",\n turn.codingContext?.defaultBranch ?? \"\",\n ].join(\"\\u0000\");\n const group = groups.get(key);\n if (group) {\n group.turns.push(turn);\n } else {\n const created: ExtractionScopeGroup = { turns: [turn] };\n if (turn.writeNamespaceOverride !== undefined) created.writeNamespaceOverride = turn.writeNamespaceOverride;\n if (turn.principalOverride !== undefined) created.principalOverride = turn.principalOverride;\n if (turn.scopeProfileWritePlan !== undefined) created.scopeProfileWritePlan = turn.scopeProfileWritePlan;\n if (turn.codingContext !== undefined) created.codingContext = turn.codingContext;\n groups.set(key, created);\n }\n }\n return [...groups.values()];\n}\n\nexport function bufferTurnArraysEqual(\n left: readonly BufferTurn[],\n right: readonly BufferTurn[],\n): boolean {\n return left.length === right.length && left.every((turn, index) => bufferTurnsEqual(turn, right[index]));\n}\n\nexport function bufferTurnArrayIsSuffixOfSnapshot(\n liveTurns: readonly BufferTurn[],\n snapshot: readonly BufferTurn[],\n): boolean {\n if (liveTurns.length === 0 || liveTurns.length > snapshot.length) {\n return false;\n }\n const offset = snapshot.length - liveTurns.length;\n return liveTurns.every((turn, index) => bufferTurnsEqual(turn, snapshot[offset + index]));\n}\n\nexport function liveTurnsFromExtractionSnapshot(\n entry: BufferEntryState,\n extractedTurns: readonly BufferTurn[],\n): readonly BufferTurn[] {\n const retainedTurns = entry.retainedTurns ?? [];\n if (\n retainedTurns.length > 0 &&\n extractedTurns.length >= retainedTurns.length &&\n retainedTurns.every((turn, index) => bufferTurnsEqual(extractedTurns[index], turn))\n ) {\n const withoutRetainedPrefix = extractedTurns.slice(retainedTurns.length);\n if (withoutRetainedPrefix.length > 0 && matchingPrefixLength(entry.turns, withoutRetainedPrefix) > 0) {\n return withoutRetainedPrefix;\n }\n }\n return extractedTurns;\n}\n\nfunction matchingPrefixLength(\n liveTurns: readonly BufferTurn[],\n extractedTurns: readonly BufferTurn[],\n): number {\n let index = 0;\n while (\n index < liveTurns.length &&\n index < extractedTurns.length &&\n bufferTurnsEqual(liveTurns[index], extractedTurns[index])\n ) {\n index += 1;\n }\n return index;\n}\n\nexport function matchingQueuedExtractionPrefixLength(\n liveTurns: readonly BufferTurn[],\n extractedTurns: readonly BufferTurn[],\n): number {\n let bestMatchedCount = 0;\n for (let start = 0; start < extractedTurns.length; start += 1) {\n const matchedCount = matchingPrefixLength(liveTurns, extractedTurns.slice(start));\n if (matchedCount > bestMatchedCount) {\n bestMatchedCount = matchedCount;\n if (bestMatchedCount === liveTurns.length) break;\n }\n }\n return bestMatchedCount;\n}\n\nexport class ProbeTimeoutError extends Error {\n constructor(timeoutMs: number) {\n super(`probe exceeded ${timeoutMs}ms`);\n this.name = \"ProbeTimeoutError\";\n }\n}\n\nexport function probeWithTimeout<T>(inflight: Promise<T>, timeoutMs: number): Promise<T> {\n let timer: NodeJS.Timeout | null = null;\n const timeout = new Promise<T>((_, reject) => {\n timer = setTimeout(() => reject(new ProbeTimeoutError(timeoutMs)), timeoutMs);\n if (typeof (timer as NodeJS.Timeout).unref === \"function\") {\n (timer as NodeJS.Timeout).unref();\n }\n });\n return Promise.race([inflight, timeout]).finally(() => {\n if (timer) clearTimeout(timer);\n });\n}\n"],"mappings":";AAuBO,SAAS,cAAc,KAAsB;AAClD,MAAI,eAAe,MAAO,QAAO,IAAI;AACrC,MAAI,QAAQ,KAAM,QAAO;AACzB,MAAI,QAAQ,OAAW,QAAO;AAC9B,MAAI,OAAO,QAAQ,SAAU,QAAO;AACpC,MAAI;AACF,WAAO,KAAK,UAAU,GAAG;AAAA,EAC3B,QAAQ;AACN,WAAO,OAAO,GAAG;AAAA,EACnB;AACF;AAEO,SAAS,eAAe,MAA8B;AAC3D,QAAM,OAAmB;AAAA,IACvB,MAAM,KAAK;AAAA,IACX,SAAS,KAAK;AAAA,IACd,WAAW,KAAK;AAAA,EAClB;AACA,MAAI,OAAO,KAAK,eAAe,SAAU,MAAK,aAAa,KAAK;AAChE,MAAI,OAAO,KAAK,sBAAsB,UAAU;AAC9C,SAAK,oBAAoB,KAAK;AAAA,EAChC;AACA,MAAI,KAAK,qBAAqB,QAAQ,OAAO,KAAK,qBAAqB,UAAU;AAC/E,SAAK,mBAAmB,KAAK;AAAA,EAC/B;AACA,MAAI,OAAO,KAAK,0BAA0B,UAAU;AAClD,SAAK,wBAAwB,KAAK;AAAA,EACpC;AACA,MAAI,OAAO,KAAK,oBAAoB,UAAU;AAC5C,SAAK,kBAAkB,KAAK;AAAA,EAC9B;AACA,MAAI,OAAO,KAAK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OAAO,IAAI,kBAAkB,SAAS,CAAC,GAAG,SAAS;AAC5E,QAAI,OAAQ,MAAyB,UAAU,YAAY;AACzD,MAAC,MAAyB,MAAM;AAAA,IAClC;AAAA,EACF,CAAC;AACD,SAAO,QAAQ,KAAK,CAAC,UAAU,OAAO,CAAC,EAAE,QAAQ,MAAM;AACrD,QAAI,MAAO,cAAa,KAAK;AAAA,EAC/B,CAAC;AACH;","names":[]}
@@ -246,4 +246,4 @@ export {
246
246
  decryptCapsuleFile,
247
247
  decryptCapsuleFileInMemory
248
248
  };
249
- //# sourceMappingURL=chunk-X7Y7WX73.js.map
249
+ //# sourceMappingURL=chunk-UVYI6VIX.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SUPPORT_PASSPORT_DRAFT_MAX_CONTENT_CHARACTERS,
3
3
  SUPPORT_PASSPORT_DRAFT_MAX_MEMORIES
4
- } from "./chunk-C5GTIRIO.js";
4
+ } from "./chunk-XJDSZFBZ.js";
5
5
  import {
6
6
  SUPPORT_PASSPORT_SOURCE_MEMORY_ID_MAX_LENGTH
7
7
  } from "./chunk-PWPIERBM.js";
@@ -343,4 +343,4 @@ export {
343
343
  parseSupportPassportModelJob,
344
344
  SupportPassportModelBridge
345
345
  };
346
- //# sourceMappingURL=chunk-GJF337YM.js.map
346
+ //# sourceMappingURL=chunk-VCYH2XUY.js.map
@@ -34,7 +34,7 @@ import {
34
34
  } from "./chunk-NVKO5YKP.js";
35
35
  import {
36
36
  compareEntityTimestamps
37
- } from "./chunk-I6UTOUBK.js";
37
+ } from "./chunk-N7RAABFM.js";
38
38
  import {
39
39
  normalizeEntityText,
40
40
  resolveRequestedEntitySectionKeys
@@ -927,4 +927,4 @@ export {
927
927
  entityIndexVersion,
928
928
  entityRecentTranscriptLookbackHours
929
929
  };
930
- //# sourceMappingURL=chunk-UP2Q7U4G.js.map
930
+ //# sourceMappingURL=chunk-WD2QH3JM.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot
3
- } from "./chunk-M3GOWG2P.js";
3
+ } from "./chunk-TBFAQHQZ.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-I6UTOUBK.js";
6
+ } from "./chunk-N7RAABFM.js";
7
7
  import {
8
8
  composeLocationDayBody,
9
9
  composeLocationDayMeta,
@@ -728,4 +728,4 @@ export {
728
728
  runLocationBackfill,
729
729
  runLocationCliCommand
730
730
  };
731
- //# sourceMappingURL=chunk-MHSUEA32.js.map
731
+ //# sourceMappingURL=chunk-WWSJQ7MP.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  rebuildMemoryProjection,
3
3
  watchProjectionRebuildParent
4
- } from "./chunk-7DHNBABU.js";
4
+ } from "./chunk-EGCC5OJE.js";
5
5
  import {
6
6
  initLogger,
7
7
  log
@@ -77,4 +77,4 @@ if (invokedAsRunner) {
77
77
  export {
78
78
  PROJECTION_REBUILD_RUNNER_FLAG
79
79
  };
80
- //# sourceMappingURL=chunk-UIX4JLVV.js.map
80
+ //# sourceMappingURL=chunk-XAFSZ4DP.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  canonicalCategoryForAlias,
3
3
  categoryAliasCoercion
4
- } from "./chunk-UY67YP6Q.js";
4
+ } from "./chunk-LIUI46BX.js";
5
5
 
6
6
  // src/access-observe-write-category.ts
7
7
  function splitCanonicalWriteRequest(request) {
@@ -22,4 +22,4 @@ function splitCanonicalWriteRequest(request) {
22
22
  export {
23
23
  splitCanonicalWriteRequest
24
24
  };
25
- //# sourceMappingURL=chunk-PJLJN23N.js.map
25
+ //# sourceMappingURL=chunk-XICJL56Z.js.map
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-MPC7TYTZ.js";
9
9
  import {
10
10
  importCapsule
11
- } from "./chunk-A3UFV4K3.js";
11
+ } from "./chunk-JIYJIH5N.js";
12
12
  import {
13
13
  isSharedContextWriteInputError
14
14
  } from "./chunk-IFBSZGW3.js";
@@ -38,7 +38,7 @@ import {
38
38
  computeWhoKnows,
39
39
  loadWhoKnowsEntities,
40
40
  validateWhoKnowsInput
41
- } from "./chunk-J53IBVMF.js";
41
+ } from "./chunk-A4FZLM6Q.js";
42
42
  import {
43
43
  WriteQuarantineStore
44
44
  } from "./chunk-BANSBRNX.js";
@@ -103,7 +103,7 @@ import {
103
103
  } from "./chunk-HSHLDSPX.js";
104
104
  import {
105
105
  readAggregateExtractionWatermark
106
- } from "./chunk-LGLLCWA2.js";
106
+ } from "./chunk-HWMGQDZI.js";
107
107
  import {
108
108
  ReplicaDivergenceMonitor
109
109
  } from "./chunk-B6SPPYGJ.js";
@@ -127,7 +127,7 @@ import {
127
127
  } from "./chunk-2YA5N2BY.js";
128
128
  import {
129
129
  readProjectedHarmonicGraph
130
- } from "./chunk-DF4SYU4Z.js";
130
+ } from "./chunk-F2UAAI6B.js";
131
131
  import {
132
132
  buildGraphSnapshot
133
133
  } from "./chunk-MKE5DP3S.js";
@@ -175,7 +175,7 @@ import {
175
175
  import {
176
176
  CorpusWatermarkCache,
177
177
  computeServiceCorpusCensus
178
- } from "./chunk-2EJAPJ5G.js";
178
+ } from "./chunk-46U6L5DM.js";
179
179
  import {
180
180
  CrossNamespaceBudget,
181
181
  toBudgetWarning
@@ -187,15 +187,10 @@ import {
187
187
  listMemoryGovernanceRuns,
188
188
  readMemoryGovernanceRunArtifact,
189
189
  runMemoryGovernance
190
- } from "./chunk-IA3XZG4V.js";
190
+ } from "./chunk-DZL5PBEJ.js";
191
191
  import {
192
192
  ExtractionDeadlineError
193
193
  } from "./chunk-264B57GV.js";
194
- import {
195
- groupTurnsByExtractionScope,
196
- hasPinnedCaptureScope,
197
- scopeProfilePlanIdentity
198
- } from "./chunk-KZMRMKC7.js";
199
194
  import {
200
195
  LocalLlmClient
201
196
  } from "./chunk-74AY3S7U.js";
@@ -208,7 +203,7 @@ import {
208
203
  enqueuePassiveCorrectionNotification,
209
204
  parseBriefingFocus,
210
205
  parseBriefingWindow
211
- } from "./chunk-W37MS6SX.js";
206
+ } from "./chunk-73A2DDDR.js";
212
207
  import {
213
208
  withBriefingDeadline
214
209
  } from "./chunk-X2KO4FK5.js";
@@ -264,10 +259,10 @@ import {
264
259
  qmdCollectionPathParts,
265
260
  qmdResultPathCandidates,
266
261
  selfDeps
267
- } from "./chunk-I6UTOUBK.js";
262
+ } from "./chunk-N7RAABFM.js";
268
263
  import {
269
264
  namespaceCollectionName
270
- } from "./chunk-JEDS2QYV.js";
265
+ } from "./chunk-OH55F76C.js";
271
266
  import {
272
267
  normalizeProjectionPreview,
273
268
  normalizeProjectionTags
@@ -292,6 +287,11 @@ import {
292
287
  import {
293
288
  withCaptureWriteLockBackoff
294
289
  } from "./chunk-7VLBZKNB.js";
290
+ import {
291
+ groupTurnsByExtractionScope,
292
+ hasPinnedCaptureScope,
293
+ scopeProfilePlanIdentity
294
+ } from "./chunk-U7MIMS2Y.js";
295
295
  import {
296
296
  FallbackLlmClient,
297
297
  gatewayTaskChainOptions
@@ -315,7 +315,7 @@ import {
315
315
  } from "./chunk-YLXETSAH.js";
316
316
  import {
317
317
  splitCanonicalWriteRequest
318
- } from "./chunk-PJLJN23N.js";
318
+ } from "./chunk-XICJL56Z.js";
319
319
  import {
320
320
  buildWithBriefingLocation,
321
321
  daySummaryAutoOptions
@@ -337,10 +337,10 @@ import {
337
337
  } from "./chunk-SDXBR5QO.js";
338
338
  import {
339
339
  reapplyCategoryCoercion
340
- } from "./chunk-UY67YP6Q.js";
340
+ } from "./chunk-LIUI46BX.js";
341
341
  import {
342
342
  exportCapsule
343
- } from "./chunk-KQAFEZQX.js";
343
+ } from "./chunk-BUKK5SWA.js";
344
344
  import {
345
345
  evaluateActionConfidence
346
346
  } from "./chunk-Z2YFLXHU.js";
@@ -18797,4 +18797,4 @@ export {
18797
18797
  EngramAccessService,
18798
18798
  AccessAdminOpsSurface
18799
18799
  };
18800
- //# sourceMappingURL=chunk-C5GTIRIO.js.map
18800
+ //# sourceMappingURL=chunk-XJDSZFBZ.js.map