@remnic/core 9.3.724 → 9.3.726

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 (170) hide show
  1. package/dist/access-boundary.js +26 -25
  2. package/dist/access-cli.js +64 -62
  3. package/dist/access-cli.js.map +1 -1
  4. package/dist/access-http.js +33 -32
  5. package/dist/access-mcp.js +30 -29
  6. package/dist/access-operations-batch.js +27 -26
  7. package/dist/access-operations.js +29 -28
  8. package/dist/access-schema.js +3 -3
  9. package/dist/access-service.js +25 -24
  10. package/dist/active-recall.js +1 -1
  11. package/dist/adapters/index.js +4 -4
  12. package/dist/adapters/registry.js +2 -2
  13. package/dist/briefing.js +6 -5
  14. package/dist/{capsule-crypto-7FJQINUR.js → capsule-crypto-GWVG7LGC.js} +2 -2
  15. package/dist/causal-consolidation.js +7 -6
  16. package/dist/causal-consolidation.js.map +1 -1
  17. package/dist/{chunk-C6BWLYW5.js → chunk-2NBP25BG.js} +7 -7
  18. package/dist/{chunk-YUYPWJD3.js → chunk-3MS3QVX6.js} +2 -2
  19. package/dist/{chunk-FVZ2ISIX.js → chunk-3TUT4PWB.js} +2 -2
  20. package/dist/{chunk-HCVWF657.js → chunk-53EEQYE5.js} +7 -7
  21. package/dist/{chunk-TAPSNIMA.js → chunk-5CEJH5ZN.js} +4 -4
  22. package/dist/{chunk-D7EBTQ24.js → chunk-5NWYQUQC.js} +2 -2
  23. package/dist/{chunk-NT36GU6X.js → chunk-5OOA7SGX.js} +2 -2
  24. package/dist/{chunk-KQAFEZQX.js → chunk-5W7CTZ2E.js} +4 -4
  25. package/dist/{chunk-QR67FU5G.js → chunk-6AFVIOVZ.js} +2 -2
  26. package/dist/{chunk-UBHVAGO7.js → chunk-6WAJQKBS.js} +2 -2
  27. package/dist/{chunk-6CWGS2LY.js → chunk-7NS7AWMZ.js} +3 -3
  28. package/dist/{chunk-T55EGZSJ.js → chunk-BB57OZWC.js} +2 -2
  29. package/dist/{chunk-YQMPUYHE.js → chunk-BBIE7W52.js} +2 -2
  30. package/dist/{chunk-WAFDHKES.js → chunk-BEUCACTV.js} +2 -2
  31. package/dist/{chunk-4SF232E6.js → chunk-BIA7ELIB.js} +17 -5
  32. package/dist/chunk-BIA7ELIB.js.map +1 -0
  33. package/dist/{chunk-GZQXOQQ2.js → chunk-DCKNMLEQ.js} +4 -4
  34. package/dist/{chunk-ZUDM75KG.js → chunk-DCWIQFNA.js} +4 -4
  35. package/dist/{chunk-VI5SGGXB.js → chunk-DQXPJ6HD.js} +4 -4
  36. package/dist/{chunk-YNDLCWXS.js → chunk-EZ25VE3G.js} +4 -4
  37. package/dist/{chunk-Z3FGC3QE.js → chunk-EZNDNMRH.js} +139 -30
  38. package/dist/chunk-EZNDNMRH.js.map +1 -0
  39. package/dist/{chunk-FACTVMXQ.js → chunk-FO3HO52S.js} +2 -2
  40. package/dist/{chunk-RKNJBZ55.js → chunk-JBPKEARU.js} +4 -4
  41. package/dist/{chunk-JJJCVCCQ.js → chunk-JPUT5NGH.js} +2 -2
  42. package/dist/{chunk-5OPYYPJN.js → chunk-K4ZNARDO.js} +2 -2
  43. package/dist/{chunk-4WZ3J7M6.js → chunk-KJR66XOM.js} +2 -2
  44. package/dist/{chunk-LD53WPMU.js → chunk-LQ6JI4VH.js} +4 -4
  45. package/dist/chunk-LTHVM4XN.js +109 -0
  46. package/dist/chunk-LTHVM4XN.js.map +1 -0
  47. package/dist/{chunk-4R3CGCI5.js → chunk-MQVKHFIU.js} +16 -13
  48. package/dist/chunk-MQVKHFIU.js.map +1 -0
  49. package/dist/{chunk-FXCIOLRB.js → chunk-NPL7VDM6.js} +2 -2
  50. package/dist/{chunk-KLFYKC3K.js → chunk-OAHOL3ZC.js} +112 -72
  51. package/dist/chunk-OAHOL3ZC.js.map +1 -0
  52. package/dist/{chunk-2NLLXCJG.js → chunk-OWHERGF2.js} +2 -2
  53. package/dist/{chunk-I2HL5M6T.js → chunk-PLG6JHQS.js} +42 -42
  54. package/dist/{chunk-KGZF2VO3.js → chunk-Q6D75LVH.js} +15 -15
  55. package/dist/{chunk-SC2YAWRF.js → chunk-RRHHQYJS.js} +2 -2
  56. package/dist/{chunk-J334N6QV.js → chunk-TA3Y6GEX.js} +2 -2
  57. package/dist/{chunk-FN6QP7JQ.js → chunk-TQQH2FTX.js} +4 -4
  58. package/dist/{chunk-DF3I6JGP.js → chunk-UKTDXTWX.js} +15 -15
  59. package/dist/{chunk-ARV3AUOM.js → chunk-UNNDFYUX.js} +5 -5
  60. package/dist/{chunk-ZK2L72VN.js → chunk-UQSVUEN2.js} +2 -2
  61. package/dist/{chunk-X7Y7WX73.js → chunk-UVYI6VIX.js} +1 -1
  62. package/dist/{chunk-H7HUQIY7.js → chunk-V7CMKMHM.js} +3 -3
  63. package/dist/chunk-W5H6ZRPT.js +14 -0
  64. package/dist/chunk-W5H6ZRPT.js.map +1 -0
  65. package/dist/{chunk-TT5U3UDO.js → chunk-WGTWGDR5.js} +5 -5
  66. package/dist/{chunk-YQGHW5ML.js → chunk-WRFKZEO6.js} +4 -4
  67. package/dist/{chunk-WM7DNKBD.js → chunk-YTZ3VGC7.js} +2 -2
  68. package/dist/cli.js +54 -53
  69. package/dist/compounding/engine.js +6 -5
  70. package/dist/config.js +1 -1
  71. package/dist/connectors/codex-materialize-runner.js +6 -5
  72. package/dist/connectors/index.js +6 -5
  73. package/dist/content-hash.d.ts +14 -0
  74. package/dist/content-hash.js +10 -0
  75. package/dist/content-hash.js.map +1 -0
  76. package/dist/conversation-index/backend.js +2 -2
  77. package/dist/dashboard-runtime.js +2 -2
  78. package/dist/entity-retrieval.js +6 -5
  79. package/dist/extraction-redaction-rules.d.ts +33 -0
  80. package/dist/extraction-redaction-rules.js +14 -0
  81. package/dist/extraction-redaction-rules.js.map +1 -0
  82. package/dist/extraction.js +2 -2
  83. package/dist/{forget-OEE5OELK.js → forget-WYLR4ZFV.js} +2 -2
  84. package/dist/index.js +102 -100
  85. package/dist/index.js.map +1 -1
  86. package/dist/lcm/index.js +3 -3
  87. package/dist/maintenance/memory-governance.js +6 -5
  88. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +6 -5
  89. package/dist/maintenance/rebuild-memory-projection.js +7 -6
  90. package/dist/namespaces/migrate.js +16 -15
  91. package/dist/namespaces/search.js +9 -9
  92. package/dist/namespaces/storage.js +6 -5
  93. package/dist/operator-toolkit.js +24 -23
  94. package/dist/orchestration/maintenance.js +8 -7
  95. package/dist/orchestrator.js +48 -46
  96. package/dist/resume-bundles.js +2 -2
  97. package/dist/search/factory.js +8 -8
  98. package/dist/search/index.js +12 -12
  99. package/dist/search/lancedb-backend.js +2 -2
  100. package/dist/search/meilisearch-backend.js +2 -2
  101. package/dist/search/orama-backend.js +2 -2
  102. package/dist/semantic-consolidation.js +7 -6
  103. package/dist/semantic-rule-promotion.js +6 -5
  104. package/dist/semantic-rule-verifier.js +6 -5
  105. package/dist/storage.d.ts +2 -2
  106. package/dist/storage.js +6 -5
  107. package/dist/transfer/backup.js +2 -2
  108. package/dist/transfer/capsule-export.js +2 -2
  109. package/dist/transfer/capsule-import.js +2 -2
  110. package/dist/verified-recall.js +6 -5
  111. package/package.json +2 -2
  112. package/src/config.test.ts +50 -0
  113. package/src/config.ts +21 -4
  114. package/src/content-hash.ts +24 -0
  115. package/src/correction/correction-access-wiring.ts +104 -19
  116. package/src/correction/correction-contract.ts +68 -10
  117. package/src/correction/correction-executor.test.ts +112 -2
  118. package/src/correction/correction-executor.ts +65 -5
  119. package/src/correction/correction-planner.test.ts +47 -0
  120. package/src/correction/correction-planner.ts +40 -1
  121. package/src/correction/correction-storage-integration.test.ts +183 -0
  122. package/src/extraction-redaction-rules.test.ts +213 -0
  123. package/src/extraction-redaction-rules.ts +208 -0
  124. package/src/orchestrator.ts +52 -1
  125. package/src/storage.ts +6 -10
  126. package/dist/chunk-4R3CGCI5.js.map +0 -1
  127. package/dist/chunk-4SF232E6.js.map +0 -1
  128. package/dist/chunk-KLFYKC3K.js.map +0 -1
  129. package/dist/chunk-Z3FGC3QE.js.map +0 -1
  130. /package/dist/{capsule-crypto-7FJQINUR.js.map → capsule-crypto-GWVG7LGC.js.map} +0 -0
  131. /package/dist/{chunk-C6BWLYW5.js.map → chunk-2NBP25BG.js.map} +0 -0
  132. /package/dist/{chunk-YUYPWJD3.js.map → chunk-3MS3QVX6.js.map} +0 -0
  133. /package/dist/{chunk-FVZ2ISIX.js.map → chunk-3TUT4PWB.js.map} +0 -0
  134. /package/dist/{chunk-HCVWF657.js.map → chunk-53EEQYE5.js.map} +0 -0
  135. /package/dist/{chunk-TAPSNIMA.js.map → chunk-5CEJH5ZN.js.map} +0 -0
  136. /package/dist/{chunk-D7EBTQ24.js.map → chunk-5NWYQUQC.js.map} +0 -0
  137. /package/dist/{chunk-NT36GU6X.js.map → chunk-5OOA7SGX.js.map} +0 -0
  138. /package/dist/{chunk-KQAFEZQX.js.map → chunk-5W7CTZ2E.js.map} +0 -0
  139. /package/dist/{chunk-QR67FU5G.js.map → chunk-6AFVIOVZ.js.map} +0 -0
  140. /package/dist/{chunk-UBHVAGO7.js.map → chunk-6WAJQKBS.js.map} +0 -0
  141. /package/dist/{chunk-6CWGS2LY.js.map → chunk-7NS7AWMZ.js.map} +0 -0
  142. /package/dist/{chunk-T55EGZSJ.js.map → chunk-BB57OZWC.js.map} +0 -0
  143. /package/dist/{chunk-YQMPUYHE.js.map → chunk-BBIE7W52.js.map} +0 -0
  144. /package/dist/{chunk-WAFDHKES.js.map → chunk-BEUCACTV.js.map} +0 -0
  145. /package/dist/{chunk-GZQXOQQ2.js.map → chunk-DCKNMLEQ.js.map} +0 -0
  146. /package/dist/{chunk-ZUDM75KG.js.map → chunk-DCWIQFNA.js.map} +0 -0
  147. /package/dist/{chunk-VI5SGGXB.js.map → chunk-DQXPJ6HD.js.map} +0 -0
  148. /package/dist/{chunk-YNDLCWXS.js.map → chunk-EZ25VE3G.js.map} +0 -0
  149. /package/dist/{chunk-FACTVMXQ.js.map → chunk-FO3HO52S.js.map} +0 -0
  150. /package/dist/{chunk-RKNJBZ55.js.map → chunk-JBPKEARU.js.map} +0 -0
  151. /package/dist/{chunk-JJJCVCCQ.js.map → chunk-JPUT5NGH.js.map} +0 -0
  152. /package/dist/{chunk-5OPYYPJN.js.map → chunk-K4ZNARDO.js.map} +0 -0
  153. /package/dist/{chunk-4WZ3J7M6.js.map → chunk-KJR66XOM.js.map} +0 -0
  154. /package/dist/{chunk-LD53WPMU.js.map → chunk-LQ6JI4VH.js.map} +0 -0
  155. /package/dist/{chunk-FXCIOLRB.js.map → chunk-NPL7VDM6.js.map} +0 -0
  156. /package/dist/{chunk-2NLLXCJG.js.map → chunk-OWHERGF2.js.map} +0 -0
  157. /package/dist/{chunk-I2HL5M6T.js.map → chunk-PLG6JHQS.js.map} +0 -0
  158. /package/dist/{chunk-KGZF2VO3.js.map → chunk-Q6D75LVH.js.map} +0 -0
  159. /package/dist/{chunk-SC2YAWRF.js.map → chunk-RRHHQYJS.js.map} +0 -0
  160. /package/dist/{chunk-J334N6QV.js.map → chunk-TA3Y6GEX.js.map} +0 -0
  161. /package/dist/{chunk-FN6QP7JQ.js.map → chunk-TQQH2FTX.js.map} +0 -0
  162. /package/dist/{chunk-DF3I6JGP.js.map → chunk-UKTDXTWX.js.map} +0 -0
  163. /package/dist/{chunk-ARV3AUOM.js.map → chunk-UNNDFYUX.js.map} +0 -0
  164. /package/dist/{chunk-ZK2L72VN.js.map → chunk-UQSVUEN2.js.map} +0 -0
  165. /package/dist/{chunk-X7Y7WX73.js.map → chunk-UVYI6VIX.js.map} +0 -0
  166. /package/dist/{chunk-H7HUQIY7.js.map → chunk-V7CMKMHM.js.map} +0 -0
  167. /package/dist/{chunk-TT5U3UDO.js.map → chunk-WGTWGDR5.js.map} +0 -0
  168. /package/dist/{chunk-YQGHW5ML.js.map → chunk-WRFKZEO6.js.map} +0 -0
  169. /package/dist/{chunk-WM7DNKBD.js.map → chunk-YTZ3VGC7.js.map} +0 -0
  170. /package/dist/{forget-OEE5OELK.js.map → forget-WYLR4ZFV.js.map} +0 -0
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-ZBJMUXZH.js";
8
8
  import {
9
9
  StorageManager
10
- } from "./chunk-4R3CGCI5.js";
10
+ } from "./chunk-MQVKHFIU.js";
11
11
  import {
12
12
  getCachedEpisodeMap,
13
13
  setCachedEpisodeMap
@@ -107,4 +107,4 @@ export {
107
107
  compareVerifiedEpisodeResults,
108
108
  searchVerifiedEpisodes
109
109
  };
110
- //# sourceMappingURL=chunk-FXCIOLRB.js.map
110
+ //# sourceMappingURL=chunk-NPL7VDM6.js.map
@@ -7,31 +7,42 @@ import {
7
7
  } from "./chunk-4T3BMHKD.js";
8
8
  import {
9
9
  MaintenanceScheduler
10
- } from "./chunk-J334N6QV.js";
10
+ } from "./chunk-TA3Y6GEX.js";
11
11
  import {
12
12
  migrateFromEngram
13
13
  } from "./chunk-7HYPN2GC.js";
14
14
  import {
15
15
  LcmEngine
16
16
  } from "./chunk-PKMQK2WY.js";
17
- import {
18
- chunkTranscriptEntries
19
- } from "./chunk-TECVW3JP.js";
20
17
  import {
21
18
  cleanupConversationChunks
22
19
  } from "./chunk-O7GOFAM3.js";
23
20
  import {
24
21
  CompoundingEngine,
25
22
  defaultTierMigrationCycleBudget
26
- } from "./chunk-YQMPUYHE.js";
23
+ } from "./chunk-BBIE7W52.js";
27
24
  import {
28
25
  SharedContextManager
29
26
  } from "./chunk-UFS7OXGL.js";
27
+ import {
28
+ chunkTranscriptEntries
29
+ } from "./chunk-TECVW3JP.js";
30
+ import {
31
+ applyTrustScoreStage,
32
+ buildTrustSignalsForRerank,
33
+ projectTrustForXray
34
+ } from "./chunk-BCDKBDSY.js";
35
+ import {
36
+ renderEpistemicHedge
37
+ } from "./chunk-YN2UN7N3.js";
30
38
  import {
31
39
  applyUtilityPromotionRuntimePolicy,
32
40
  applyUtilityRankingRuntimeDelta,
33
41
  loadUtilityRuntimeValues
34
42
  } from "./chunk-LXOM6IQU.js";
43
+ import {
44
+ CODEX_THREAD_KEY_PREFIX
45
+ } from "./chunk-4EX5WZ4M.js";
35
46
  import {
36
47
  TierMigrationExecutor
37
48
  } from "./chunk-VOUOLGIP.js";
@@ -45,26 +56,19 @@ import {
45
56
  extractTopics
46
57
  } from "./chunk-UHGBNIOS.js";
47
58
  import {
48
- applyTrustScoreStage,
49
- buildTrustSignalsForRerank,
50
- projectTrustForXray
51
- } from "./chunk-BCDKBDSY.js";
52
- import {
53
- renderEpistemicHedge
54
- } from "./chunk-YN2UN7N3.js";
59
+ HourlySummarizer
60
+ } from "./chunk-DKT3X5C3.js";
55
61
  import {
56
62
  buildTargetedFactRecallSection,
57
63
  shouldRecallTargetedFactEvidence
58
64
  } from "./chunk-4SBW47WK.js";
59
- import {
60
- CODEX_THREAD_KEY_PREFIX
61
- } from "./chunk-4EX5WZ4M.js";
62
- import {
63
- HourlySummarizer
64
- } from "./chunk-DKT3X5C3.js";
65
65
  import {
66
66
  SessionObserverState
67
67
  } from "./chunk-DKTSR7EK.js";
68
+ import {
69
+ buildResponseGuidanceRecallSection,
70
+ shouldRecallResponseGuidance
71
+ } from "./chunk-L6W77GWW.js";
68
72
  import {
69
73
  mergeWithAgentResults,
70
74
  runDirectAgent,
@@ -96,10 +100,6 @@ import {
96
100
  RerankCache,
97
101
  rerankLocalOrNoop
98
102
  } from "./chunk-E3VODCC3.js";
99
- import {
100
- buildResponseGuidanceRecallSection,
101
- shouldRecallResponseGuidance
102
- } from "./chunk-L6W77GWW.js";
103
103
  import {
104
104
  createRecallSectionMetricRecorder
105
105
  } from "./chunk-VQ34TERH.js";
@@ -109,25 +109,28 @@ import {
109
109
  TierMigrationStatusStore,
110
110
  clampGraphRecallExpandedEntries
111
111
  } from "./chunk-UC4YOAC2.js";
112
+ import {
113
+ applyReasoningTraceBoost
114
+ } from "./chunk-ZZTOURJI.js";
112
115
  import {
113
116
  reorderRecallResultsWithMmr
114
117
  } from "./chunk-YDBIWGNI.js";
115
118
  import {
116
- applyReasoningTraceBoost
117
- } from "./chunk-ZZTOURJI.js";
119
+ applyMemoryWorthFilter,
120
+ buildMemoryWorthCounterMap
121
+ } from "./chunk-3GPTTA4J.js";
118
122
  import {
119
123
  NegativeExampleStore
120
124
  } from "./chunk-EXM3CQTZ.js";
121
125
  import {
122
126
  evaluateMemoryActionPolicy
123
127
  } from "./chunk-H63EDPFJ.js";
124
- import {
125
- applyMemoryWorthFilter,
126
- buildMemoryWorthCounterMap
127
- } from "./chunk-3GPTTA4J.js";
128
128
  import {
129
129
  runLiveConnectorsOnce
130
130
  } from "./chunk-VU3SVYMA.js";
131
+ import {
132
+ classifyMemoryKind
133
+ } from "./chunk-YAZNBMNF.js";
131
134
  import {
132
135
  hasBroadGraphIntent,
133
136
  inferIntentFromText,
@@ -136,8 +139,8 @@ import {
136
139
  planRecallMode
137
140
  } from "./chunk-PD6O7AXF.js";
138
141
  import {
139
- classifyMemoryKind
140
- } from "./chunk-YAZNBMNF.js";
142
+ recordJudgeTrainingPair
143
+ } from "./chunk-XHYGJVXL.js";
141
144
  import {
142
145
  createDeferCountMap,
143
146
  createVerdictCache,
@@ -145,9 +148,13 @@ import {
145
148
  judgeFactDurability,
146
149
  validateProcedureExtraction
147
150
  } from "./chunk-3NN73CM7.js";
151
+ import {
152
+ contentMatchesRedactionRules,
153
+ loadRedactionRules
154
+ } from "./chunk-LTHVM4XN.js";
148
155
  import {
149
156
  ExtractionEngine
150
- } from "./chunk-GZQXOQQ2.js";
157
+ } from "./chunk-DCKNMLEQ.js";
151
158
  import {
152
159
  parseMemoryActionEligibilityContext
153
160
  } from "./chunk-5GSUBCZM.js";
@@ -173,8 +180,8 @@ import {
173
180
  buildExplicitCueRecallSection
174
181
  } from "./chunk-4463LUIE.js";
175
182
  import {
176
- recordJudgeTrainingPair
177
- } from "./chunk-XHYGJVXL.js";
183
+ formatDaySummaryMemories
184
+ } from "./chunk-EO5QWINU.js";
178
185
  import {
179
186
  tryDirectAnswer
180
187
  } from "./chunk-Q6IP2ARR.js";
@@ -185,10 +192,7 @@ import {
185
192
  buildEntityRecallSection,
186
193
  entityRecentTranscriptLookbackHours,
187
194
  readRecentEntityTranscriptEntries
188
- } from "./chunk-YUYPWJD3.js";
189
- import {
190
- formatDaySummaryMemories
191
- } from "./chunk-EO5QWINU.js";
195
+ } from "./chunk-3MS3QVX6.js";
192
196
  import {
193
197
  normalizeReplaySessionKey
194
198
  } from "./chunk-2PRQG7PV.js";
@@ -198,14 +202,14 @@ import {
198
202
  import {
199
203
  compareVerifiedEpisodeResults,
200
204
  searchVerifiedEpisodes
201
- } from "./chunk-FXCIOLRB.js";
205
+ } from "./chunk-NPL7VDM6.js";
202
206
  import {
203
207
  ThreadingManager
204
208
  } from "./chunk-QRDOSYOR.js";
205
209
  import {
206
210
  compareVerifiedSemanticRuleResults,
207
211
  searchVerifiedSemanticRules
208
- } from "./chunk-T55EGZSJ.js";
212
+ } from "./chunk-BB57OZWC.js";
209
213
  import {
210
214
  searchWorkProductLedgerEntries
211
215
  } from "./chunk-ZRWB5D4H.js";
@@ -218,21 +222,24 @@ import {
218
222
  import {
219
223
  runNamespaceMaintenanceFanout,
220
224
  summarizeNamespaceMaintenanceHealth
221
- } from "./chunk-5OPYYPJN.js";
225
+ } from "./chunk-K4ZNARDO.js";
222
226
  import {
223
227
  NamespaceCatalog,
224
228
  planNamespaceMaintenance
225
- } from "./chunk-WM7DNKBD.js";
229
+ } from "./chunk-YTZ3VGC7.js";
226
230
  import {
227
231
  NamespaceStorageRouter
228
- } from "./chunk-SC2YAWRF.js";
232
+ } from "./chunk-RRHHQYJS.js";
233
+ import {
234
+ searchHarmonicRetrieval
235
+ } from "./chunk-AV5ZEH4M.js";
229
236
  import {
230
237
  isAboveImportanceThreshold,
231
238
  scoreImportance
232
239
  } from "./chunk-JXS5PDQ7.js";
233
240
  import {
234
- searchHarmonicRetrieval
235
- } from "./chunk-AV5ZEH4M.js";
241
+ recordEvalShadowRecall
242
+ } from "./chunk-3PY7VHV7.js";
236
243
  import {
237
244
  EXTRACTION_JUDGE_VERDICT_CATEGORY,
238
245
  recordJudgeVerdict
@@ -242,9 +249,6 @@ import {
242
249
  formatNativeKnowledgeSection,
243
250
  searchNativeKnowledge
244
251
  } from "./chunk-ZCWIH4LH.js";
245
- import {
246
- recordEvalShadowRecall
247
- } from "./chunk-3PY7VHV7.js";
248
252
  import {
249
253
  applyCommitmentLedgerLifecycle
250
254
  } from "./chunk-LMDRGRJ2.js";
@@ -263,7 +267,7 @@ import {
263
267
  materializeAfterSemanticConsolidation,
264
268
  parseConsolidationResponse,
265
269
  parseOperatorAwareConsolidationResponse
266
- } from "./chunk-JJJCVCCQ.js";
270
+ } from "./chunk-JPUT5NGH.js";
267
271
  import {
268
272
  buildRecallQueryPolicy
269
273
  } from "./chunk-LBJBNWS2.js";
@@ -304,7 +308,7 @@ import {
304
308
  clusterByKey,
305
309
  createCorrectionService,
306
310
  detectPassiveCorrections
307
- } from "./chunk-Z3FGC3QE.js";
311
+ } from "./chunk-EZNDNMRH.js";
308
312
  import {
309
313
  listTrustZoneRecords,
310
314
  searchTrustZoneRecords
@@ -316,15 +320,9 @@ import {
316
320
  buildXraySnapshot
317
321
  } from "./chunk-F3XZN24Z.js";
318
322
  import {
319
- NamespaceSearchRouter
320
- } from "./chunk-QR67FU5G.js";
321
- import {
322
- createConversationIndexRuntime,
323
- createSearchBackend
324
- } from "./chunk-HCVWF657.js";
325
- import {
326
- NoopSearchBackend
327
- } from "./chunk-CYEPCZN5.js";
323
+ objectiveStateStoreOverrideForNamespace,
324
+ searchObjectiveStateSnapshots
325
+ } from "./chunk-6HMYUWXR.js";
328
326
  import {
329
327
  combineNamespaces,
330
328
  getConfiguredNamespaces,
@@ -333,6 +331,16 @@ import {
333
331
  resolveScopePlan,
334
332
  resolveScopeProfilePlan
335
333
  } from "./chunk-J6BH2OBA.js";
334
+ import {
335
+ NamespaceSearchRouter
336
+ } from "./chunk-6AFVIOVZ.js";
337
+ import {
338
+ createConversationIndexRuntime,
339
+ createSearchBackend
340
+ } from "./chunk-53EEQYE5.js";
341
+ import {
342
+ NoopSearchBackend
343
+ } from "./chunk-CYEPCZN5.js";
336
344
  import {
337
345
  namespaceIdentityFromToken,
338
346
  namespaceIdentityToken,
@@ -344,10 +352,6 @@ import {
344
352
  import {
345
353
  parseQmdExplain
346
354
  } from "./chunk-K43PI6DQ.js";
347
- import {
348
- objectiveStateStoreOverrideForNamespace,
349
- searchObjectiveStateSnapshots
350
- } from "./chunk-6HMYUWXR.js";
351
355
  import {
352
356
  ProfilingCollector
353
357
  } from "./chunk-PNLCEFE4.js";
@@ -373,7 +377,7 @@ import {
373
377
  } from "./chunk-TBBDFYXW.js";
374
378
  import {
375
379
  buildChainFollowupGenerator
376
- } from "./chunk-4WZ3J7M6.js";
380
+ } from "./chunk-KJR66XOM.js";
377
381
  import {
378
382
  ContentHashIndex,
379
383
  StorageManager,
@@ -381,10 +385,7 @@ import {
381
385
  fingerprintEntityStructuredFacts,
382
386
  normalizeAttributePairs,
383
387
  parseEntityFile
384
- } from "./chunk-4R3CGCI5.js";
385
- import {
386
- buildRetiredFactTombstoneInputs
387
- } from "./chunk-L2B3EE7B.js";
388
+ } from "./chunk-MQVKHFIU.js";
388
389
  import {
389
390
  isValidTranscriptDate,
390
391
  loadSpeakerRegistry,
@@ -392,9 +393,15 @@ import {
392
393
  saveSpeakerRegistry,
393
394
  speakerRegistryKey
394
395
  } from "./chunk-M7XQSUBB.js";
396
+ import {
397
+ buildRetiredFactTombstoneInputs
398
+ } from "./chunk-L2B3EE7B.js";
395
399
  import {
396
400
  assertPathInsideRoot
397
401
  } from "./chunk-5GPPACXK.js";
402
+ import {
403
+ stripAttributesSuffix
404
+ } from "./chunk-SVOZFLIQ.js";
398
405
  import {
399
406
  applyTemporalSupersession,
400
407
  normalizeSupersessionKey,
@@ -410,9 +417,6 @@ import {
410
417
  hasCitationForTemplate,
411
418
  stripCitationForTemplate
412
419
  } from "./chunk-J6A3CX5N.js";
413
- import {
414
- stripAttributesSuffix
415
- } from "./chunk-SVOZFLIQ.js";
416
420
  import {
417
421
  confidenceTier
418
422
  } from "./chunk-7AG54AF3.js";
@@ -11836,6 +11840,20 @@ ${normalized}`).digest("hex");
11836
11840
  let dedupedCount = 0;
11837
11841
  let importanceGatedCount = 0;
11838
11842
  let batchBackendUnavailable = false;
11843
+ let redactionGatedCount = 0;
11844
+ const redactionRulesByDir = /* @__PURE__ */ new Map();
11845
+ const redactionRulesFor = async (...dirs) => {
11846
+ const out = [];
11847
+ for (const d of dirs) {
11848
+ let r = redactionRulesByDir.get(d);
11849
+ if (!r) {
11850
+ r = await loadRedactionRules(d);
11851
+ redactionRulesByDir.set(d, r);
11852
+ }
11853
+ out.push(...r);
11854
+ }
11855
+ return out;
11856
+ };
11839
11857
  const behaviorSignalsByStorage = /* @__PURE__ */ new Map();
11840
11858
  const trackBehaviorSignals = (targetStorage, events) => {
11841
11859
  if (events.length === 0) return;
@@ -12227,6 +12245,11 @@ ${normalized}`).digest("hex");
12227
12245
  let judgeGatedCount = 0;
12228
12246
  this.lastPersistExtractionDeferredCount = 0;
12229
12247
  if (this.config.extractionJudgeEnabled) {
12248
+ let preJudgeRedactionRules = [];
12249
+ try {
12250
+ preJudgeRedactionRules = await redactionRulesFor(storage.dir);
12251
+ } catch {
12252
+ }
12230
12253
  try {
12231
12254
  const judgeCandidates = [];
12232
12255
  const candidateToFactIndex = [];
@@ -12251,6 +12274,10 @@ ${normalized}`).digest("hex");
12251
12274
  )) {
12252
12275
  continue;
12253
12276
  }
12277
+ if (preJudgeRedactionRules.length > 0) {
12278
+ const rc = f.content + (f.structuredAttributes ? " " + JSON.stringify(f.structuredAttributes) : "") + (f.procedureSteps ? " " + f.procedureSteps.map((s) => `${s.intent} ${s.expectedOutcome ?? ""} ${s.toolCall ? `${s.toolCall.kind} ${s.toolCall.signature}` : ""}`.trim()).join(" ") : "");
12279
+ if (contentMatchesRedactionRules(rc, preJudgeRedactionRules)) continue;
12280
+ }
12254
12281
  judgeCandidates.push({
12255
12282
  text: f.content,
12256
12283
  category: judgeCategory,
@@ -12359,6 +12386,7 @@ ${normalized}`).digest("hex");
12359
12386
  const biTemporal = this.config.temporalBiTemporal && factAnchor ? resolveFactEventTime(fact.eventTime, factAnchor) : void 0;
12360
12387
  let writeCategory = fact.category;
12361
12388
  let targetStorage = storage;
12389
+ const sourceStorageDir = storage.dir;
12362
12390
  let targetNamespaceName = baseNamespace && baseNamespace.length > 0 ? baseNamespace : this.storageDirNamespace(targetStorage.dir);
12363
12391
  let routedRuleId;
12364
12392
  let routedNamespaceExplicit = false;
@@ -12407,6 +12435,17 @@ ${normalized}`).digest("hex");
12407
12435
  );
12408
12436
  }
12409
12437
  }
12438
+ try {
12439
+ const redactionRules = await redactionRulesFor(sourceStorageDir, targetStorage.dir);
12440
+ const redactionCandidate = fact.content + (fact.structuredAttributes ? " " + JSON.stringify(fact.structuredAttributes) : "") + (fact.procedureSteps ? " " + fact.procedureSteps.map((s) => `${s.intent} ${s.expectedOutcome ?? ""} ${s.toolCall ? `${s.toolCall.kind} ${s.toolCall.signature}` : ""}`.trim()).join(" ") : "");
12441
+ if (redactionRules.length > 0 && contentMatchesRedactionRules(redactionCandidate, redactionRules)) {
12442
+ redactionGatedCount++;
12443
+ log.debug(`extraction: redaction-rule withheld fact #${redactionGatedCount} in ${targetStorage.dir}`);
12444
+ continue;
12445
+ }
12446
+ } catch (redactionErr) {
12447
+ log.warn(`extraction: redaction-rule gate failed open: ${redactionErr}`);
12448
+ }
12410
12449
  const canonicalContentForHash = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate) ? stripCitationForTemplate(fact.content, citationTemplate) : fact.content;
12411
12450
  const contentHashDedupKey = writeCategory === "procedure" ? buildProcedurePersistBody(fact.content, fact.procedureSteps) : canonicalContentForHash;
12412
12451
  const importance = scoreImportance(
@@ -13100,8 +13139,9 @@ ${normalized}`).digest("hex");
13100
13139
  const dedupSuffix = dedupedCount > 0 ? ` (${dedupedCount} deduped)` : "";
13101
13140
  const gatedSuffix = importanceGatedCount > 0 ? ` (${importanceGatedCount} gated)` : "";
13102
13141
  const judgeSuffix = judgeGatedCount > 0 ? ` (${judgeGatedCount} judge-rejected)` : "";
13142
+ const redactionSuffix = redactionGatedCount > 0 ? ` (${redactionGatedCount} redacted)` : "";
13103
13143
  log.info(
13104
- `persisted: ${facts.length - dedupedCount - importanceGatedCount - judgeGatedCount} facts${dedupSuffix}${gatedSuffix}${judgeSuffix}, ${entities.length} entities, ${questions.length} questions, ${profileUpdates.length} profile updates`
13144
+ `persisted: ${facts.length - dedupedCount - importanceGatedCount - judgeGatedCount - redactionGatedCount} facts${dedupSuffix}${gatedSuffix}${judgeSuffix}${redactionSuffix}, ${entities.length} entities, ${questions.length} questions, ${profileUpdates.length} profile updates`
13105
13145
  );
13106
13146
  void (async () => {
13107
13147
  if (persistedIdsByStorage.size === 0) {
@@ -16192,4 +16232,4 @@ export {
16192
16232
  resolvePersistedMemoryRelativePath,
16193
16233
  Orchestrator
16194
16234
  };
16195
- //# sourceMappingURL=chunk-KLFYKC3K.js.map
16235
+ //# sourceMappingURL=chunk-OAHOL3ZC.js.map