@remnic/core 9.47.0 → 9.48.0

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 (236) hide show
  1. package/dist/access-admin-ops-surface.d.ts +6 -5
  2. package/dist/access-admin-ops-surface.js +27 -25
  3. package/dist/access-audit.js +2 -2
  4. package/dist/access-authorization-probe.d.ts +6 -5
  5. package/dist/access-authorization-probe.js +28 -26
  6. package/dist/access-boundary.d.ts +6 -5
  7. package/dist/access-boundary.js +27 -25
  8. package/dist/access-cli.js +87 -85
  9. package/dist/access-cli.js.map +1 -1
  10. package/dist/access-extraction-force-flush.d.ts +6 -5
  11. package/dist/access-extraction-force-flush.js +27 -25
  12. package/dist/access-http-lcm-compaction.d.ts +6 -5
  13. package/dist/access-http-lifecycle-flush.d.ts +6 -5
  14. package/dist/access-http-offline-stream.d.ts +6 -5
  15. package/dist/access-http-query.js +27 -25
  16. package/dist/access-http.d.ts +6 -5
  17. package/dist/access-http.js +36 -34
  18. package/dist/access-identity-continuity-surface.d.ts +5 -4
  19. package/dist/access-identity-continuity-surface.js +27 -25
  20. package/dist/access-lcm-surface.d.ts +6 -5
  21. package/dist/access-lcm-surface.js +27 -25
  22. package/dist/access-mcp.d.ts +6 -5
  23. package/dist/access-mcp.js +32 -30
  24. package/dist/access-namespace-preflight.js +27 -25
  25. package/dist/access-observe-write-surface.d.ts +6 -5
  26. package/dist/access-observe-write-surface.js +27 -25
  27. package/dist/access-offline-manifest.d.ts +5 -4
  28. package/dist/access-offline-manifest.js +4 -4
  29. package/dist/access-operations-batch.js +29 -27
  30. package/dist/access-operations.d.ts +9 -8
  31. package/dist/access-operations.js +31 -29
  32. package/dist/access-recall-concurrency.d.ts +6 -5
  33. package/dist/access-recall-concurrency.js +27 -25
  34. package/dist/access-recall-response.d.ts +6 -5
  35. package/dist/access-recall-response.js +27 -25
  36. package/dist/access-recall-surface.d.ts +11 -10
  37. package/dist/access-recall-surface.js +27 -25
  38. package/dist/access-schema.d.ts +86 -86
  39. package/dist/{access-service-DNBYHK33.d.ts → access-service-andNjwfD.d.ts} +3 -3
  40. package/dist/access-service-helpers.d.ts +6 -5
  41. package/dist/access-service.d.ts +10 -9
  42. package/dist/access-service.js +27 -25
  43. package/dist/access-surface-catalog.d.ts +6 -5
  44. package/dist/access-wearables-meetings-surface.d.ts +3 -2
  45. package/dist/adapters/index.js +4 -4
  46. package/dist/adapters/registry.js +2 -2
  47. package/dist/artifact-search.d.ts +37 -0
  48. package/dist/artifact-search.js +13 -0
  49. package/dist/artifact-search.js.map +1 -0
  50. package/dist/bootstrap.d.ts +5 -4
  51. package/dist/briefing.d.ts +2 -1
  52. package/dist/briefing.js +10 -7
  53. package/dist/buffer.d.ts +2 -1
  54. package/dist/buffer.js +4 -4
  55. package/dist/causal-consolidation.js +11 -8
  56. package/dist/causal-consolidation.js.map +1 -1
  57. package/dist/{chunk-T6JRMVOV.js → chunk-2EJNXE53.js} +2 -2
  58. package/dist/{chunk-SIP5DBDN.js → chunk-2P3GQVM2.js} +152 -130
  59. package/dist/chunk-2P3GQVM2.js.map +1 -0
  60. package/dist/{chunk-64BHFFKZ.js → chunk-2RPJ4NEE.js} +2 -2
  61. package/dist/{chunk-JFO5QZ7N.js → chunk-3JUYWPFJ.js} +2 -2
  62. package/dist/{chunk-L7G72WY4.js → chunk-3NDN5P55.js} +2 -2
  63. package/dist/{chunk-IXH2U2QT.js → chunk-45OTV7FZ.js} +19 -19
  64. package/dist/chunk-4O4TKIXQ.js +171 -0
  65. package/dist/chunk-4O4TKIXQ.js.map +1 -0
  66. package/dist/{chunk-BDNL34CT.js → chunk-4WBGZYZZ.js} +33 -8
  67. package/dist/chunk-4WBGZYZZ.js.map +1 -0
  68. package/dist/{chunk-U6JGQ37L.js → chunk-52I3YZZ6.js} +3 -3
  69. package/dist/{chunk-IZQ5TDFT.js → chunk-53AJILXF.js} +3 -3
  70. package/dist/chunk-5AUY5Z5E.js +34 -0
  71. package/dist/chunk-5AUY5Z5E.js.map +1 -0
  72. package/dist/{chunk-YWCOJOUI.js → chunk-5L7PTX2Q.js} +2 -2
  73. package/dist/{chunk-ELIL2A37.js → chunk-7FGL6CGA.js} +5 -5
  74. package/dist/{chunk-TVVEYCNW.js → chunk-7K5Q6COX.js} +4 -4
  75. package/dist/{chunk-HXXTXLKA.js → chunk-A2TFK5PG.js} +2 -2
  76. package/dist/{chunk-LI7OE7G6.js → chunk-ANCC3JJH.js} +2 -2
  77. package/dist/{chunk-ILBLZ5Y5.js → chunk-D5NGH2EW.js} +2 -2
  78. package/dist/{chunk-ST5IEK3H.js → chunk-DUEEQCTT.js} +2 -2
  79. package/dist/{chunk-QISYTKG4.js → chunk-EZNXW27Q.js} +6 -6
  80. package/dist/{chunk-47J4EDGR.js → chunk-FJ2ND6CZ.js} +2 -2
  81. package/dist/{chunk-FQU3HTQM.js → chunk-FMCHFSZF.js} +6 -6
  82. package/dist/{chunk-FULKGK7P.js → chunk-G2RBWVFQ.js} +2 -2
  83. package/dist/{chunk-W2ZSNIBP.js → chunk-GD7UPIBG.js} +2 -2
  84. package/dist/{chunk-Z54EM5YZ.js → chunk-GF22HWS2.js} +4 -4
  85. package/dist/{chunk-ZDAYWJV6.js → chunk-GVX3NAUU.js} +2 -2
  86. package/dist/{chunk-M2INOSTA.js → chunk-GWHPQOUC.js} +2 -2
  87. package/dist/{chunk-N5XULCU3.js → chunk-HIDEBEAN.js} +9 -9
  88. package/dist/{chunk-74HN5QUH.js → chunk-HRMEYQRO.js} +2 -2
  89. package/dist/{chunk-VFZS2HAA.js → chunk-IP3DHDU2.js} +2 -2
  90. package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
  91. package/dist/{chunk-PFJXPOD4.js → chunk-JYPO7L3G.js} +2 -2
  92. package/dist/{chunk-G2L5IZV4.js → chunk-KSGEGHYA.js} +44 -44
  93. package/dist/{chunk-PKCLQ7KM.js → chunk-LZGCJSQR.js} +5 -5
  94. package/dist/{chunk-WOC6DXP5.js → chunk-M4DMO67I.js} +4 -4
  95. package/dist/{chunk-JCNJIXZN.js → chunk-NXUJRXSF.js} +2 -2
  96. package/dist/{chunk-5VQPZ4GV.js → chunk-PELT6ADC.js} +3 -3
  97. package/dist/{chunk-IDE5AR5W.js → chunk-PLCZD3LG.js} +28 -66
  98. package/dist/chunk-PLCZD3LG.js.map +1 -0
  99. package/dist/{chunk-KMWYZTIE.js → chunk-PRVJH7CY.js} +2 -2
  100. package/dist/{chunk-RVO6TCTU.js → chunk-QCECHYZL.js} +6 -6
  101. package/dist/{chunk-KA47C7BF.js → chunk-RSPSHRZA.js} +2 -2
  102. package/dist/{chunk-E4FOAENZ.js → chunk-S55OAS5P.js} +5 -5
  103. package/dist/{chunk-BIPBQQFI.js → chunk-UMOO7IY7.js} +2 -2
  104. package/dist/{chunk-5U7ID3EZ.js → chunk-UTVZKHJK.js} +2 -2
  105. package/dist/{chunk-V5FE3UAI.js → chunk-WOEVJKKQ.js} +2 -2
  106. package/dist/{chunk-N3LL5NEU.js → chunk-WQIHRA5F.js} +2 -2
  107. package/dist/chunk-Z7L72ZHL.js +75 -0
  108. package/dist/chunk-Z7L72ZHL.js.map +1 -0
  109. package/dist/{cli-BWXSPxB9.d.ts → cli-p_WmVo2h.d.ts} +3 -3
  110. package/dist/cli.d.ts +7 -6
  111. package/dist/cli.js +55 -53
  112. package/dist/compounding/engine.d.ts +2 -1
  113. package/dist/compounding/engine.js +10 -7
  114. package/dist/connectors/codex-materialize-runner.js +10 -7
  115. package/dist/connectors/index.js +10 -7
  116. package/dist/consolidation-provenance-check.d.ts +2 -1
  117. package/dist/consolidation-undo.d.ts +2 -1
  118. package/dist/contradiction/index.d.ts +7 -6
  119. package/dist/convergence-refresh.d.ts +2 -1
  120. package/dist/convergence-refresh.js +12 -9
  121. package/dist/corpus-watermark.js +15 -13
  122. package/dist/entity-recall-cancellation.d.ts +36 -0
  123. package/dist/entity-recall-cancellation.js +19 -0
  124. package/dist/entity-recall-cancellation.js.map +1 -0
  125. package/dist/entity-retrieval.d.ts +14 -6
  126. package/dist/entity-retrieval.js +11 -7
  127. package/dist/explicit-capture.d.ts +5 -4
  128. package/dist/external-wiki-access.d.ts +6 -5
  129. package/dist/external-wiki-access.js +28 -26
  130. package/dist/external-wiki-mcp-tools.d.ts +6 -5
  131. package/dist/extraction.js +15 -13
  132. package/dist/index.d.ts +687 -686
  133. package/dist/index.js +114 -112
  134. package/dist/lcm/engine.js +2 -2
  135. package/dist/lcm/index.js +7 -7
  136. package/dist/maintenance/memory-governance.js +10 -7
  137. package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +7 -6
  138. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +10 -7
  139. package/dist/maintenance/rebuild-memory-projection.d.ts +2 -1
  140. package/dist/maintenance/rebuild-memory-projection.js +11 -8
  141. package/dist/{maintenance-DQrL93Uu.d.ts → maintenance-BfcuwfJS.d.ts} +1 -1
  142. package/dist/mcp-memory-inspector-app.d.ts +6 -5
  143. package/dist/memory-worth-outcomes.d.ts +2 -1
  144. package/dist/namespaces/migrate.d.ts +2 -1
  145. package/dist/namespaces/migrate.js +14 -12
  146. package/dist/namespaces/search.js +4 -4
  147. package/dist/namespaces/storage.d.ts +7 -6
  148. package/dist/namespaces/storage.js +10 -7
  149. package/dist/offline-sync-impression-drain.js +3 -3
  150. package/dist/operator-doctor-corpus.js +16 -14
  151. package/dist/operator-toolkit.d.ts +2 -1
  152. package/dist/operator-toolkit.js +20 -18
  153. package/dist/orchestration/compression-guideline-coordinator.d.ts +2 -1
  154. package/dist/orchestration/maintenance.d.ts +3 -2
  155. package/dist/orchestration/maintenance.js +14 -12
  156. package/dist/{orchestrator-CRR-6sVB.d.ts → orchestrator-B7nLo4z1.d.ts} +3 -3
  157. package/dist/orchestrator.d.ts +5 -4
  158. package/dist/orchestrator.js +89 -87
  159. package/dist/qmd.js +4 -4
  160. package/dist/recall-qos.d.ts +109 -2
  161. package/dist/recall-qos.js +12 -3
  162. package/dist/schemas.d.ts +76 -76
  163. package/dist/search/factory.js +3 -3
  164. package/dist/search/index.js +3 -3
  165. package/dist/semantic-consolidation.js +11 -8
  166. package/dist/semantic-rule-promotion.js +10 -7
  167. package/dist/semantic-rule-verifier.js +10 -7
  168. package/dist/{service-DJ0LDyuN.d.ts → service-B5W5IYCx.d.ts} +1 -1
  169. package/dist/shared-context/manager.d.ts +8 -8
  170. package/dist/source-agent-qualifier.js +13 -11
  171. package/dist/{storage-y340tYKb.d.ts → storage-COL907QF.d.ts} +2 -1
  172. package/dist/storage.d.ts +2 -1
  173. package/dist/storage.js +9 -6
  174. package/dist/temporal-supersession.d.ts +2 -1
  175. package/dist/tier-migration.d.ts +2 -1
  176. package/dist/transfer/types.d.ts +66 -66
  177. package/dist/verified-recall.js +10 -7
  178. package/package.json +2 -2
  179. package/src/artifact-search.test.ts +110 -0
  180. package/src/artifact-search.ts +115 -0
  181. package/src/entity-recall-cancellation.ts +58 -0
  182. package/src/entity-retrieval.ts +58 -4
  183. package/src/orchestration/namespace-read-fanout.ts +4 -1
  184. package/src/orchestration/recall-internal-deps.ts +2 -0
  185. package/src/orchestration/recall-internal.ts +76 -55
  186. package/src/orchestration/recall-search-pipeline.ts +9 -1
  187. package/src/orchestration/recall-search-prefilter.ts +18 -1
  188. package/src/orchestrator.ts +5 -6
  189. package/src/recall-qos.test.ts +289 -0
  190. package/src/recall-qos.ts +238 -1
  191. package/src/storage.ts +12 -56
  192. package/dist/chunk-BDNL34CT.js.map +0 -1
  193. package/dist/chunk-C3AKM55W.js +0 -59
  194. package/dist/chunk-C3AKM55W.js.map +0 -1
  195. package/dist/chunk-IDE5AR5W.js.map +0 -1
  196. package/dist/chunk-SIP5DBDN.js.map +0 -1
  197. /package/dist/{chunk-T6JRMVOV.js.map → chunk-2EJNXE53.js.map} +0 -0
  198. /package/dist/{chunk-64BHFFKZ.js.map → chunk-2RPJ4NEE.js.map} +0 -0
  199. /package/dist/{chunk-JFO5QZ7N.js.map → chunk-3JUYWPFJ.js.map} +0 -0
  200. /package/dist/{chunk-L7G72WY4.js.map → chunk-3NDN5P55.js.map} +0 -0
  201. /package/dist/{chunk-IXH2U2QT.js.map → chunk-45OTV7FZ.js.map} +0 -0
  202. /package/dist/{chunk-U6JGQ37L.js.map → chunk-52I3YZZ6.js.map} +0 -0
  203. /package/dist/{chunk-IZQ5TDFT.js.map → chunk-53AJILXF.js.map} +0 -0
  204. /package/dist/{chunk-YWCOJOUI.js.map → chunk-5L7PTX2Q.js.map} +0 -0
  205. /package/dist/{chunk-ELIL2A37.js.map → chunk-7FGL6CGA.js.map} +0 -0
  206. /package/dist/{chunk-TVVEYCNW.js.map → chunk-7K5Q6COX.js.map} +0 -0
  207. /package/dist/{chunk-HXXTXLKA.js.map → chunk-A2TFK5PG.js.map} +0 -0
  208. /package/dist/{chunk-LI7OE7G6.js.map → chunk-ANCC3JJH.js.map} +0 -0
  209. /package/dist/{chunk-ILBLZ5Y5.js.map → chunk-D5NGH2EW.js.map} +0 -0
  210. /package/dist/{chunk-ST5IEK3H.js.map → chunk-DUEEQCTT.js.map} +0 -0
  211. /package/dist/{chunk-QISYTKG4.js.map → chunk-EZNXW27Q.js.map} +0 -0
  212. /package/dist/{chunk-47J4EDGR.js.map → chunk-FJ2ND6CZ.js.map} +0 -0
  213. /package/dist/{chunk-FQU3HTQM.js.map → chunk-FMCHFSZF.js.map} +0 -0
  214. /package/dist/{chunk-FULKGK7P.js.map → chunk-G2RBWVFQ.js.map} +0 -0
  215. /package/dist/{chunk-W2ZSNIBP.js.map → chunk-GD7UPIBG.js.map} +0 -0
  216. /package/dist/{chunk-Z54EM5YZ.js.map → chunk-GF22HWS2.js.map} +0 -0
  217. /package/dist/{chunk-ZDAYWJV6.js.map → chunk-GVX3NAUU.js.map} +0 -0
  218. /package/dist/{chunk-M2INOSTA.js.map → chunk-GWHPQOUC.js.map} +0 -0
  219. /package/dist/{chunk-N5XULCU3.js.map → chunk-HIDEBEAN.js.map} +0 -0
  220. /package/dist/{chunk-74HN5QUH.js.map → chunk-HRMEYQRO.js.map} +0 -0
  221. /package/dist/{chunk-VFZS2HAA.js.map → chunk-IP3DHDU2.js.map} +0 -0
  222. /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
  223. /package/dist/{chunk-PFJXPOD4.js.map → chunk-JYPO7L3G.js.map} +0 -0
  224. /package/dist/{chunk-G2L5IZV4.js.map → chunk-KSGEGHYA.js.map} +0 -0
  225. /package/dist/{chunk-PKCLQ7KM.js.map → chunk-LZGCJSQR.js.map} +0 -0
  226. /package/dist/{chunk-WOC6DXP5.js.map → chunk-M4DMO67I.js.map} +0 -0
  227. /package/dist/{chunk-JCNJIXZN.js.map → chunk-NXUJRXSF.js.map} +0 -0
  228. /package/dist/{chunk-5VQPZ4GV.js.map → chunk-PELT6ADC.js.map} +0 -0
  229. /package/dist/{chunk-KMWYZTIE.js.map → chunk-PRVJH7CY.js.map} +0 -0
  230. /package/dist/{chunk-RVO6TCTU.js.map → chunk-QCECHYZL.js.map} +0 -0
  231. /package/dist/{chunk-KA47C7BF.js.map → chunk-RSPSHRZA.js.map} +0 -0
  232. /package/dist/{chunk-E4FOAENZ.js.map → chunk-S55OAS5P.js.map} +0 -0
  233. /package/dist/{chunk-BIPBQQFI.js.map → chunk-UMOO7IY7.js.map} +0 -0
  234. /package/dist/{chunk-5U7ID3EZ.js.map → chunk-UTVZKHJK.js.map} +0 -0
  235. /package/dist/{chunk-V5FE3UAI.js.map → chunk-WOEVJKKQ.js.map} +0 -0
  236. /package/dist/{chunk-N3LL5NEU.js.map → chunk-WQIHRA5F.js.map} +0 -0
@@ -7,22 +7,22 @@ import {
7
7
  syncWearableSource,
8
8
  wearableSourceLabel
9
9
  } from "./chunk-UYUYZ4WY.js";
10
+ import {
11
+ CompressionGuidelineCoordinator
12
+ } from "./chunk-6LKEUCEM.js";
10
13
  import {
11
14
  ActivityStore,
12
15
  MaintenanceScheduler
13
- } from "./chunk-E4FOAENZ.js";
16
+ } from "./chunk-S55OAS5P.js";
14
17
  import {
15
18
  runPeerProfileReasoner
16
19
  } from "./chunk-I74SUMNI.js";
17
20
  import {
18
21
  migrateFromEngram
19
22
  } from "./chunk-7HYPN2GC.js";
20
- import {
21
- CompressionGuidelineCoordinator
22
- } from "./chunk-6LKEUCEM.js";
23
23
  import {
24
24
  LcmEngine
25
- } from "./chunk-Z54EM5YZ.js";
25
+ } from "./chunk-GF22HWS2.js";
26
26
  import {
27
27
  chunkTranscriptEntries
28
28
  } from "./chunk-TECVW3JP.js";
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  CompoundingEngine,
34
34
  defaultTierMigrationCycleBudget
35
- } from "./chunk-T6JRMVOV.js";
35
+ } from "./chunk-2EJNXE53.js";
36
36
  import {
37
37
  SharedContextManager
38
38
  } from "./chunk-M23RF3LJ.js";
@@ -41,6 +41,12 @@ import {
41
41
  applyUtilityRankingRuntimeDelta,
42
42
  loadUtilityRuntimeValues
43
43
  } from "./chunk-LXOM6IQU.js";
44
+ import {
45
+ extractTopics
46
+ } from "./chunk-UHGBNIOS.js";
47
+ import {
48
+ buildTemporalTimelineRecallSection
49
+ } from "./chunk-I6WYQSX4.js";
44
50
  import {
45
51
  CODEX_THREAD_KEY_PREFIX
46
52
  } from "./chunk-4EX5WZ4M.js";
@@ -54,21 +60,20 @@ import {
54
60
  TmtBuilder
55
61
  } from "./chunk-ECZU5BJH.js";
56
62
  import {
57
- extractTopics
58
- } from "./chunk-UHGBNIOS.js";
63
+ HourlySummarizer
64
+ } from "./chunk-LLJMAULE.js";
59
65
  import {
60
66
  buildTargetedFactRecallSection,
61
67
  shouldRecallTargetedFactEvidence
62
68
  } from "./chunk-T67LUYCR.js";
63
- import {
64
- buildTemporalTimelineRecallSection
65
- } from "./chunk-I6WYQSX4.js";
66
- import {
67
- HourlySummarizer
68
- } from "./chunk-LLJMAULE.js";
69
69
  import {
70
70
  SessionObserverState
71
71
  } from "./chunk-QFN4U7AG.js";
72
+ import {
73
+ RerankCache,
74
+ reorderByRankedKeys,
75
+ rerankLocalOrNoop
76
+ } from "./chunk-LUDXM7MD.js";
72
77
  import {
73
78
  buildResponseGuidanceRecallSection,
74
79
  shouldRecallResponseGuidance
@@ -103,14 +108,6 @@ import {
103
108
  import {
104
109
  RelevanceStore
105
110
  } from "./chunk-LULR4IUW.js";
106
- import {
107
- RerankCache,
108
- reorderByRankedKeys,
109
- rerankLocalOrNoop
110
- } from "./chunk-LUDXM7MD.js";
111
- import {
112
- createRecallSectionMetricRecorder
113
- } from "./chunk-C3AKM55W.js";
114
111
  import {
115
112
  LastRecallStore,
116
113
  RecallHandleHistoryStore,
@@ -150,20 +147,9 @@ import {
150
147
  import {
151
148
  classifyMemoryKind
152
149
  } from "./chunk-YAZNBMNF.js";
153
- import {
154
- buildFocusedListRecallSection,
155
- shouldRecallFocusedListEvidence
156
- } from "./chunk-OH7QLI6W.js";
157
- import {
158
- createDeferCountMap,
159
- createVerdictCache,
160
- getVerdictKind,
161
- judgeFactDurability,
162
- validateProcedureExtraction
163
- } from "./chunk-K2TDK7GG.js";
164
150
  import {
165
151
  ExtractionEngine
166
- } from "./chunk-PKCLQ7KM.js";
152
+ } from "./chunk-LZGCJSQR.js";
167
153
  import {
168
154
  parseMemoryActionEligibilityContext
169
155
  } from "./chunk-CMQZNEIF.js";
@@ -173,17 +159,20 @@ import {
173
159
  import {
174
160
  LocalLlmClient
175
161
  } from "./chunk-L6CQ7WIW.js";
162
+ import {
163
+ buildFocusedListRecallSection,
164
+ shouldRecallFocusedListEvidence
165
+ } from "./chunk-OH7QLI6W.js";
176
166
  import {
177
167
  recordJudgeTrainingPair
178
168
  } from "./chunk-PWFCHOB3.js";
179
169
  import {
180
- buildExplicitCueRecallSection
181
- } from "./chunk-TVIVY7KU.js";
182
- import {
183
- buildEntityRecallSection,
184
- entityRecentTranscriptLookbackHours,
185
- readRecentEntityTranscriptEntries
186
- } from "./chunk-BDNL34CT.js";
170
+ createDeferCountMap,
171
+ createVerdictCache,
172
+ getVerdictKind,
173
+ judgeFactDurability,
174
+ validateProcedureExtraction
175
+ } from "./chunk-K2TDK7GG.js";
187
176
  import {
188
177
  buildEventOrderRecallSection,
189
178
  shouldRecallEventOrderEvidence
@@ -192,24 +181,32 @@ import {
192
181
  pickFactEventTimeAnchor,
193
182
  resolveFactEventTime
194
183
  } from "./chunk-IAIPNEHD.js";
184
+ import {
185
+ buildExplicitCueRecallSection
186
+ } from "./chunk-TVIVY7KU.js";
187
+ import {
188
+ EmbeddingFallback
189
+ } from "./chunk-YK6BDDHP.js";
190
+ import {
191
+ buildEntityRecallSection,
192
+ entityRecentTranscriptLookbackHours,
193
+ readRecentEntityTranscriptEntries
194
+ } from "./chunk-4WBGZYZZ.js";
195
195
  import {
196
196
  formatDaySummaryMemories
197
197
  } from "./chunk-RPSYDM6C.js";
198
198
  import {
199
199
  tryDirectAnswer
200
200
  } from "./chunk-CSOYVTRX.js";
201
- import {
202
- EmbeddingFallback
203
- } from "./chunk-YK6BDDHP.js";
204
201
  import {
205
202
  refreshConvergedNamespaces
206
- } from "./chunk-JFO5QZ7N.js";
203
+ } from "./chunk-3JUYWPFJ.js";
207
204
  import {
208
205
  builtInConnectorPackageSpecifier,
209
206
  ensureBuiltInWearableConnectors,
210
207
  getWearableConnector,
211
208
  listWearableConnectors
212
- } from "./chunk-G2L5IZV4.js";
209
+ } from "./chunk-KSGEGHYA.js";
213
210
  import {
214
211
  RoutingRulesStore
215
212
  } from "./chunk-XL24QQ63.js";
@@ -219,14 +216,14 @@ import {
219
216
  import {
220
217
  compareVerifiedEpisodeResults,
221
218
  searchVerifiedEpisodes
222
- } from "./chunk-W2ZSNIBP.js";
219
+ } from "./chunk-GD7UPIBG.js";
223
220
  import {
224
221
  ThreadingManager
225
222
  } from "./chunk-OJP3N7UK.js";
226
223
  import {
227
224
  compareVerifiedSemanticRuleResults,
228
225
  searchVerifiedSemanticRules
229
- } from "./chunk-YWCOJOUI.js";
226
+ } from "./chunk-5L7PTX2Q.js";
230
227
  import {
231
228
  searchWorkProductLedgerEntries
232
229
  } from "./chunk-ZRWB5D4H.js";
@@ -239,11 +236,11 @@ import {
239
236
  import {
240
237
  runNamespaceMaintenanceFanout,
241
238
  summarizeNamespaceMaintenanceHealth
242
- } from "./chunk-N5XULCU3.js";
239
+ } from "./chunk-HIDEBEAN.js";
243
240
  import {
244
241
  NamespaceCatalog,
245
242
  planNamespaceMaintenance
246
- } from "./chunk-ILBLZ5Y5.js";
243
+ } from "./chunk-D5NGH2EW.js";
247
244
  import {
248
245
  isAboveImportanceThreshold,
249
246
  scoreImportance
@@ -275,7 +272,7 @@ import {
275
272
  materializeAfterSemanticConsolidation,
276
273
  parseConsolidationResponse,
277
274
  parseOperatorAwareConsolidationResponse
278
- } from "./chunk-M2INOSTA.js";
275
+ } from "./chunk-GWHPQOUC.js";
279
276
  import {
280
277
  BoxBuilder
281
278
  } from "./chunk-B7RWBZXW.js";
@@ -287,7 +284,7 @@ import {
287
284
  } from "./chunk-UQ7RN5HK.js";
288
285
  import {
289
286
  SmartBuffer
290
- } from "./chunk-64BHFFKZ.js";
287
+ } from "./chunk-2RPJ4NEE.js";
291
288
  import {
292
289
  detectMeetings
293
290
  } from "./chunk-RN53QBM4.js";
@@ -321,7 +318,7 @@ import {
321
318
  } from "./chunk-H3FZVNRN.js";
322
319
  import {
323
320
  MeetingsInputError
324
- } from "./chunk-FQU3HTQM.js";
321
+ } from "./chunk-FMCHFSZF.js";
325
322
  import {
326
323
  WearablesInputError,
327
324
  describeErrorForOperator
@@ -342,7 +339,7 @@ import {
342
339
  filterRecallCandidates,
343
340
  isGenericRecallExcludedPath,
344
341
  isTopLevelArchivePath
345
- } from "./chunk-IXH2U2QT.js";
342
+ } from "./chunk-45OTV7FZ.js";
346
343
  import {
347
344
  importCapsule
348
345
  } from "./chunk-A4JMGKCD.js";
@@ -374,34 +371,34 @@ import {
374
371
  objectiveStateStoreOverrideForNamespace,
375
372
  searchObjectiveStateSnapshots
376
373
  } from "./chunk-6HMYUWXR.js";
377
- import {
378
- contentMatchesRedactionRules,
379
- loadRedactionRules
380
- } from "./chunk-LTHVM4XN.js";
381
374
  import {
382
375
  ProfilingCollector
383
376
  } from "./chunk-NLE6TSLG.js";
384
377
  import {
385
378
  buildProcedurePersistBody
386
379
  } from "./chunk-QDW3E4RD.js";
380
+ import {
381
+ contentMatchesRedactionRules,
382
+ loadRedactionRules
383
+ } from "./chunk-LTHVM4XN.js";
387
384
  import {
388
385
  shouldSkipImplicitExtraction
389
386
  } from "./chunk-S5NZBKKQ.js";
390
387
  import {
391
388
  NamespaceSearchRouter,
392
389
  namespaceCollectionName
393
- } from "./chunk-KMWYZTIE.js";
390
+ } from "./chunk-PRVJH7CY.js";
394
391
  import {
395
392
  createConversationIndexRuntime,
396
393
  createSearchBackend,
397
394
  isSearchBackendEnabled
398
- } from "./chunk-47J4EDGR.js";
395
+ } from "./chunk-FJ2ND6CZ.js";
399
396
  import {
400
397
  NoopSearchBackend
401
398
  } from "./chunk-CYEPCZN5.js";
402
399
  import {
403
400
  NamespaceStorageRouter
404
- } from "./chunk-LI7OE7G6.js";
401
+ } from "./chunk-ANCC3JJH.js";
405
402
  import {
406
403
  writeConversationChunks
407
404
  } from "./chunk-72A4L5JJ.js";
@@ -413,7 +410,7 @@ import {
413
410
  } from "./chunk-W4FBGYGK.js";
414
411
  import {
415
412
  buildChainFollowupGenerator
416
- } from "./chunk-L7G72WY4.js";
413
+ } from "./chunk-3NDN5P55.js";
417
414
  import {
418
415
  QmdResultResolver,
419
416
  StorageManager,
@@ -432,10 +429,7 @@ import {
432
429
  reconstructFusionInputs,
433
430
  selfDeps,
434
431
  serializeFusionDay
435
- } from "./chunk-IDE5AR5W.js";
436
- import {
437
- buildRetiredFactTombstoneInputs
438
- } from "./chunk-ENTCVTQR.js";
432
+ } from "./chunk-PLCZD3LG.js";
439
433
  import {
440
434
  bodyIsEscaped,
441
435
  decodeTranscriptBody,
@@ -446,6 +440,9 @@ import {
446
440
  saveSpeakerRegistry,
447
441
  speakerRegistryKey
448
442
  } from "./chunk-UHVXE24Y.js";
443
+ import {
444
+ buildRetiredFactTombstoneInputs
445
+ } from "./chunk-ENTCVTQR.js";
449
446
  import {
450
447
  canRecallToolScopedMemory,
451
448
  shouldPromoteGlobalFactToShared,
@@ -543,7 +540,7 @@ import {
543
540
  throwIfRecallAborted,
544
541
  tokenizeRecallQuery,
545
542
  utcDateKeysForLocalDay
546
- } from "./chunk-N3LL5NEU.js";
543
+ } from "./chunk-WQIHRA5F.js";
547
544
  import {
548
545
  inferIntentFromText,
549
546
  intentCompatibilityScore,
@@ -572,6 +569,10 @@ import {
572
569
  resolveHandle,
573
570
  stripHandles
574
571
  } from "./chunk-JAKIDQB2.js";
572
+ import {
573
+ createBoundedCoreSectionRunner,
574
+ createRecallSectionMetricRecorder
575
+ } from "./chunk-4O4TKIXQ.js";
575
576
  import {
576
577
  decideLifecycleTransition,
577
578
  resolveLifecycleState
@@ -596,13 +597,13 @@ import {
596
597
  namespaceIdentityToken,
597
598
  normalizeNamespaceIdentity
598
599
  } from "./chunk-EGGE52UU.js";
600
+ import {
601
+ assertPathInsideRoot
602
+ } from "./chunk-GCASGYIO.js";
599
603
  import {
600
604
  inferMemoryStatus,
601
605
  isActiveMemoryStatus
602
606
  } from "./chunk-7RJUVTVF.js";
603
- import {
604
- assertPathInsideRoot
605
- } from "./chunk-GCASGYIO.js";
606
607
  import {
607
608
  ContentHashIndex
608
609
  } from "./chunk-BQIFZ2MP.js";
@@ -654,6 +655,7 @@ import {
654
655
  import {
655
656
  abortError,
656
657
  isAbortError,
658
+ raceAbort,
657
659
  throwIfAborted
658
660
  } from "./chunk-BTTPKDIL.js";
659
661
  import {
@@ -5624,6 +5626,7 @@ var RecallInternalCoordinator = class {
5624
5626
  this.deps.profiler.endTrace(profileTraceId);
5625
5627
  };
5626
5628
  const recallSectionDeadlineMs = this.deps.config.recallCoreDeadlineMs ?? 75e3;
5629
+ const recallOuterTimeoutMs = this.deps.config.recallOuterTimeoutMs ?? 75e3;
5627
5630
  const enrichmentSectionDeadlineMs = this.deps.config.recallEnrichmentDeadlineMs ?? 25e3;
5628
5631
  try {
5629
5632
  const createEnrichmentAbortHandle = (parentSignal) => {
@@ -5667,6 +5670,13 @@ var RecallInternalCoordinator = class {
5667
5670
  timings,
5668
5671
  logger: log
5669
5672
  });
5673
+ const runBoundedCoreSection = createBoundedCoreSectionRunner({
5674
+ configuredDeadlineMs: recallSectionDeadlineMs,
5675
+ outerDeadlineAtMs: recallOuterTimeoutMs > 0 ? recallStart + recallOuterTimeoutMs : null,
5676
+ parentSignal: options.abortSignal,
5677
+ record: recordRecallSectionMetric,
5678
+ logger: log
5679
+ });
5670
5680
  const promptHash = createHash3("sha256").update(prompt).digest("hex");
5671
5681
  const traceId = createHash3("sha256").update(`${sessionKey ?? "default"}:${recallStart}:${promptHash}`).digest("hex").slice(0, 16);
5672
5682
  const sectionBuckets = /* @__PURE__ */ new Map();
@@ -6177,39 +6187,41 @@ ${lines.join("\n\n")}`;
6177
6187
  });
6178
6188
  return null;
6179
6189
  }
6180
- const t0 = Date.now();
6181
- const transcriptEntries = sessionKey ? await readRecentEntityTranscriptEntries(
6182
- this.deps.transcript.readRecent(
6183
- entityRecentTranscriptLookbackHours,
6184
- sessionKey
6185
- ),
6186
- recentTurns
6187
- ) : [];
6188
- const section = await buildEntityRecallSection({
6189
- config: this.deps.config,
6190
- storage: profileStorage,
6191
- namespaceStorage: (namespace) => this.deps.getStorage(namespace),
6192
- query: retrievalQuery,
6193
- recallNamespaces,
6194
- recentTurns,
6195
- maxHints,
6196
- maxSupportingFacts,
6197
- maxRelatedEntities,
6198
- maxChars,
6199
- transcriptEntries
6200
- }).catch((err) => {
6201
- log.warn(`entity retrieval build failed: ${err}`);
6202
- return null;
6203
- });
6204
- recordRecallSectionMetric({
6205
- section: "entityRetrieval",
6206
- priority: "core",
6207
- durationMs: Date.now() - t0,
6208
- deadlineMs: recallSectionDeadlineMs,
6209
- source: "fresh",
6210
- success: true
6211
- });
6212
- return section;
6190
+ return await runBoundedCoreSection(
6191
+ "entityRetrieval",
6192
+ null,
6193
+ async (sectionSignal) => {
6194
+ const transcriptEntries = sessionKey ? await raceAbort(
6195
+ readRecentEntityTranscriptEntries(
6196
+ this.deps.transcript.readRecent(
6197
+ entityRecentTranscriptLookbackHours,
6198
+ sessionKey
6199
+ ),
6200
+ recentTurns
6201
+ ),
6202
+ sectionSignal,
6203
+ "entity recall aborted"
6204
+ ) : [];
6205
+ return await buildEntityRecallSection({
6206
+ config: this.deps.config,
6207
+ storage: profileStorage,
6208
+ namespaceStorage: (namespace) => this.deps.getStorage(namespace),
6209
+ query: retrievalQuery,
6210
+ recallNamespaces,
6211
+ recentTurns,
6212
+ maxHints,
6213
+ maxSupportingFacts,
6214
+ maxRelatedEntities,
6215
+ maxChars,
6216
+ transcriptEntries,
6217
+ abortSignal: sectionSignal
6218
+ }).catch((err) => {
6219
+ if (isAbortError(err)) throw err;
6220
+ log.warn(`entity retrieval build failed: ${err}`);
6221
+ return null;
6222
+ });
6223
+ }
6224
+ );
6213
6225
  })();
6214
6226
  const knowledgeIndexPromise = (async () => {
6215
6227
  if (!this.deps.isRecallSectionEnabled(
@@ -6297,7 +6309,6 @@ ${rows.join("\n")}
6297
6309
  ))
6298
6310
  return [];
6299
6311
  if (!resolvePresentationCapabilities(this.deps.config).verbatimArtifacts) return [];
6300
- const t0 = Date.now();
6301
6312
  const targetCount = computeArtifactRecallLimit(
6302
6313
  recallMode,
6303
6314
  recallResultLimit,
@@ -6315,22 +6326,21 @@ ${rows.join("\n")}
6315
6326
  });
6316
6327
  return [];
6317
6328
  }
6318
- const results = await this.deps.recallArtifactsAcrossNamespaces(
6319
- retrievalQuery,
6320
- recallNamespaces,
6321
- targetCount
6329
+ return await runBoundedCoreSection(
6330
+ "artifacts",
6331
+ [],
6332
+ async (sectionSignal) => {
6333
+ const results = await this.deps.recallArtifactsAcrossNamespaces(
6334
+ retrievalQuery,
6335
+ recallNamespaces,
6336
+ targetCount,
6337
+ { abortSignal: sectionSignal }
6338
+ );
6339
+ return lifecycleCaps.extractionScopeClassification ? results.filter(
6340
+ (artifact) => canRecallToolScopedMemory(artifact.frontmatter, options.sourceConnector)
6341
+ ) : results;
6342
+ }
6322
6343
  );
6323
- recordRecallSectionMetric({
6324
- section: "artifacts",
6325
- priority: "core",
6326
- durationMs: Date.now() - t0,
6327
- deadlineMs: recallSectionDeadlineMs,
6328
- source: "fresh",
6329
- success: true
6330
- });
6331
- return lifecycleCaps.extractionScopeClassification ? results.filter(
6332
- (artifact) => canRecallToolScopedMemory(artifact.frontmatter, options.sourceConnector)
6333
- ) : results;
6334
6344
  })();
6335
6345
  const objectiveStatePromise = (async () => {
6336
6346
  const t0 = Date.now();
@@ -9572,14 +9582,17 @@ import path9 from "path";
9572
9582
 
9573
9583
  // src/orchestration/recall-search-prefilter.ts
9574
9584
  import path8 from "path";
9575
- async function fetchActiveArtifactsForNamespace(deps, namespace, prompt, targetCount) {
9585
+ async function fetchActiveArtifactsForNamespace(deps, namespace, prompt, targetCount, options = {}) {
9576
9586
  const storage = await deps.storageRouter.storageFor(namespace);
9577
9587
  let fetchLimit = computeArtifactCandidateFetchLimit(targetCount);
9578
9588
  const maxFetchLimit = Math.min(800, Math.max(fetchLimit, targetCount * 8));
9579
9589
  const MAX_ATTEMPTS = 4;
9580
9590
  let bestFiltered = [];
9581
9591
  for (let attempt = 0; attempt < MAX_ATTEMPTS; attempt += 1) {
9582
- const rawResults = await storage.searchArtifacts(prompt, fetchLimit);
9592
+ throwIfRecallAborted(options.abortSignal);
9593
+ const rawResults = await storage.searchArtifacts(prompt, fetchLimit, {
9594
+ abortSignal: options.abortSignal
9595
+ });
9583
9596
  const sourceIds = Array.from(
9584
9597
  new Set(
9585
9598
  rawResults.map((a) => a.frontmatter.sourceMemoryId).filter(
@@ -9587,6 +9600,7 @@ async function fetchActiveArtifactsForNamespace(deps, namespace, prompt, targetC
9587
9600
  )
9588
9601
  )
9589
9602
  );
9603
+ throwIfRecallAborted(options.abortSignal);
9590
9604
  const sourceStatus = sourceIds.length > 0 ? await deps.resolveArtifactSourceStatuses(storage, sourceIds) : /* @__PURE__ */ new Map();
9591
9605
  const filtered = [];
9592
9606
  for (const artifact of rawResults) {
@@ -9726,8 +9740,14 @@ var RecallSearchPipelineCoordinator = class {
9726
9740
  this.deps = deps;
9727
9741
  }
9728
9742
  deps;
9729
- async fetchActiveArtifactsForNamespace(namespace, prompt, targetCount) {
9730
- return fetchActiveArtifactsForNamespace(this.deps, namespace, prompt, targetCount);
9743
+ async fetchActiveArtifactsForNamespace(namespace, prompt, targetCount, options = {}) {
9744
+ return fetchActiveArtifactsForNamespace(
9745
+ this.deps,
9746
+ namespace,
9747
+ prompt,
9748
+ targetCount,
9749
+ options
9750
+ );
9731
9751
  }
9732
9752
  async buildQueryAwarePrefilter(prompt, recallNamespaces) {
9733
9753
  return buildQueryAwarePrefilter(this.deps, prompt, recallNamespaces);
@@ -15510,12 +15530,12 @@ var NamespaceReadFanoutCoordinator = class {
15510
15530
  }
15511
15531
  return statuses;
15512
15532
  }
15513
- async recallArtifactsAcrossNamespaces(prompt, recallNamespaces, targetCount) {
15533
+ async recallArtifactsAcrossNamespaces(prompt, recallNamespaces, targetCount, options = {}) {
15514
15534
  if (targetCount <= 0) return [];
15515
15535
  const namespaces = Array.from(new Set(recallNamespaces));
15516
15536
  const filteredByNamespace = await Promise.all(
15517
15537
  namespaces.map(
15518
- (namespace) => this.deps.fetchActiveArtifactsForNamespace(namespace, prompt, targetCount)
15538
+ (namespace) => this.deps.fetchActiveArtifactsForNamespace(namespace, prompt, targetCount, options)
15519
15539
  )
15520
15540
  );
15521
15541
  return mergeArtifactRecallCandidates(filteredByNamespace, targetCount);
@@ -17272,18 +17292,20 @@ ${doc.content}` : doc.content,
17272
17292
  if (text.length <= maxChars) return text;
17273
17293
  return `${text.slice(0, maxChars - 1)}\u2026`;
17274
17294
  }
17275
- async fetchActiveArtifactsForNamespace(namespace, prompt, targetCount) {
17295
+ async fetchActiveArtifactsForNamespace(namespace, prompt, targetCount, options = {}) {
17276
17296
  return this.recallSearchPipelineCoordinator.fetchActiveArtifactsForNamespace(
17277
17297
  namespace,
17278
17298
  prompt,
17279
- targetCount
17299
+ targetCount,
17300
+ options
17280
17301
  );
17281
17302
  }
17282
- async recallArtifactsAcrossNamespaces(prompt, recallNamespaces, targetCount) {
17303
+ async recallArtifactsAcrossNamespaces(prompt, recallNamespaces, targetCount, options = {}) {
17283
17304
  return this.namespaceReadFanoutCoordinator.recallArtifactsAcrossNamespaces(
17284
17305
  prompt,
17285
17306
  recallNamespaces,
17286
- targetCount
17307
+ targetCount,
17308
+ options
17287
17309
  );
17288
17310
  }
17289
17311
  scopeQueryAwarePaths(paths, recallNamespaces) {
@@ -24116,4 +24138,4 @@ export {
24116
24138
  blendGraphExpandedRecallScore,
24117
24139
  Orchestrator
24118
24140
  };
24119
- //# sourceMappingURL=chunk-SIP5DBDN.js.map
24141
+ //# sourceMappingURL=chunk-2P3GQVM2.js.map