@remnic/core 10.0.180 → 10.0.182

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 (127) hide show
  1. package/dist/access-admin-ops-surface.js +29 -29
  2. package/dist/access-cli.js +29 -29
  3. package/dist/access-extraction-force-flush-preempt.js +29 -29
  4. package/dist/access-extraction-force-flush.js +29 -29
  5. package/dist/access-http-briefing.js +29 -29
  6. package/dist/access-http-query.js +29 -29
  7. package/dist/access-http.js +29 -29
  8. package/dist/access-identity-continuity-surface.js +29 -29
  9. package/dist/access-lcm-surface.js +29 -29
  10. package/dist/access-mcp.js +29 -29
  11. package/dist/access-observe-write-surface.js +29 -29
  12. package/dist/access-operations-batch.js +29 -29
  13. package/dist/access-operations.js +29 -29
  14. package/dist/access-recall-concurrency.js +29 -29
  15. package/dist/access-recall-response.js +29 -29
  16. package/dist/access-recall-surface.js +29 -29
  17. package/dist/access-service.js +29 -29
  18. package/dist/active-recall.js +2 -2
  19. package/dist/briefing.js +3 -3
  20. package/dist/causal-consolidation.js +4 -4
  21. package/dist/{chunk-HHKUWNHQ.js → chunk-2MSVIR4R.js} +2 -2
  22. package/dist/{chunk-JXYFXVPB.js → chunk-4O7QMX7M.js} +2 -2
  23. package/dist/{chunk-HOTAHSO3.js → chunk-6YDSQVDC.js} +3 -3
  24. package/dist/{chunk-T3NEDSLZ.js → chunk-7EQTU7HK.js} +2 -2
  25. package/dist/{chunk-FTV2C3CA.js → chunk-ADIDFC5C.js} +2 -2
  26. package/dist/{chunk-2EKXMZ6E.js → chunk-BULOMNEU.js} +2 -2
  27. package/dist/{chunk-OTE5E44O.js → chunk-BVRE4VKB.js} +2 -2
  28. package/dist/{chunk-3FS6IVSU.js → chunk-C45E6V4V.js} +2 -2
  29. package/dist/{chunk-V5FCMJW4.js → chunk-CCLJZYUB.js} +2 -2
  30. package/dist/{chunk-CUZVWNSV.js → chunk-CMK3UUP7.js} +3 -3
  31. package/dist/{chunk-76LDFLAG.js → chunk-FLTBI4BG.js} +2 -2
  32. package/dist/{chunk-G77MHQFZ.js → chunk-HCUIFDO7.js} +2 -2
  33. package/dist/{chunk-YMNPQMHA.js → chunk-HFEK2EBB.js} +2 -2
  34. package/dist/{chunk-7L73PLRG.js → chunk-IUYEVU3C.js} +2 -2
  35. package/dist/{chunk-P3SMXKFR.js → chunk-KUZ4HUK6.js} +2 -2
  36. package/dist/{chunk-V425GW5W.js → chunk-KYQT6CD3.js} +2 -2
  37. package/dist/{chunk-ZBDTOWGX.js → chunk-L2P555UV.js} +7 -7
  38. package/dist/{chunk-B4ZA2PZC.js → chunk-LUWI6EKK.js} +3 -3
  39. package/dist/{chunk-AOHQ4OJR.js → chunk-M46WULG3.js} +7 -7
  40. package/dist/{chunk-PCLTJUOY.js → chunk-MNXLRE2X.js} +2 -2
  41. package/dist/{chunk-37ACBHVF.js → chunk-NFGXC2X2.js} +24 -24
  42. package/dist/{chunk-F2XXZR6A.js → chunk-NIQ7W4C2.js} +3 -3
  43. package/dist/{chunk-VR6NF6VX.js → chunk-OAZ5SN5B.js} +2 -2
  44. package/dist/{chunk-JUROR7PB.js → chunk-PWC6OC6F.js} +2 -2
  45. package/dist/{chunk-7F7HRJI2.js → chunk-QFZYIUMQ.js} +28 -8
  46. package/dist/chunk-QFZYIUMQ.js.map +1 -0
  47. package/dist/{chunk-CXIBBZ6N.js → chunk-R3RWGZFY.js} +2 -2
  48. package/dist/{chunk-4GI2IGUK.js → chunk-UB5VAEZZ.js} +2 -2
  49. package/dist/{chunk-4TZOOUMK.js → chunk-UDHZMBYV.js} +2 -2
  50. package/dist/{chunk-KZBE4KBZ.js → chunk-XR7T3COX.js} +2 -2
  51. package/dist/{chunk-IFXQGDMG.js → chunk-YHOWCJ4I.js} +2 -2
  52. package/dist/cli.js +29 -29
  53. package/dist/coding/export-okf-codegraph.js +2 -2
  54. package/dist/compounding/engine.js +4 -4
  55. package/dist/config.js +2 -2
  56. package/dist/connectors/codex-materialize-runner.js +3 -3
  57. package/dist/connectors/index.js +3 -3
  58. package/dist/convergence-refresh.js +5 -5
  59. package/dist/corpus-watermark.js +5 -5
  60. package/dist/entity-retrieval.js +3 -3
  61. package/dist/explicit-capture.js +29 -29
  62. package/dist/extraction.js +3 -3
  63. package/dist/harmonic-retrieval.js +3 -3
  64. package/dist/index.js +29 -29
  65. package/dist/location/index.js +4 -4
  66. package/dist/maintenance/memory-governance.js +3 -3
  67. package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +3 -3
  68. package/dist/maintenance/rebuild-memory-projection-runner.js +5 -5
  69. package/dist/maintenance/rebuild-memory-projection.js +4 -4
  70. package/dist/namespaces/migrate.js +4 -4
  71. package/dist/namespaces/storage.js +3 -3
  72. package/dist/operator-doctor-corpus.js +6 -6
  73. package/dist/operator-toolkit.js +9 -9
  74. package/dist/orchestration/backlog-scheduler.js +30 -30
  75. package/dist/orchestration/buffer-drain-runner.js +30 -30
  76. package/dist/orchestration/maintenance.js +11 -11
  77. package/dist/orchestrator.js +29 -29
  78. package/dist/recall-navigation.js +29 -29
  79. package/dist/resume-bundles.js +2 -2
  80. package/dist/semantic-consolidation.js +4 -4
  81. package/dist/semantic-rule-promotion.js +3 -3
  82. package/dist/semantic-rule-verifier.js +3 -3
  83. package/dist/source-agent-qualifier.js +3 -3
  84. package/dist/standup/build.js +3 -3
  85. package/dist/storage/buffer-drain-claims.d.ts +16 -3
  86. package/dist/storage/buffer-drain-claims.d.ts.map +1 -1
  87. package/dist/storage/buffer-drain-claims.js +1 -1
  88. package/dist/storage/buffer-session-files.js +1 -1
  89. package/dist/storage.js +2 -2
  90. package/dist/transfer/export-okf.js +3 -3
  91. package/dist/verified-recall.js +3 -3
  92. package/dist/who-knows-cli.js +4 -4
  93. package/dist/who-knows.js +3 -3
  94. package/package.json +2 -2
  95. package/src/namespaces/search.test.ts +1 -1
  96. package/src/storage/buffer-drain-claims.test.ts +77 -0
  97. package/src/storage/buffer-drain-claims.ts +34 -7
  98. package/dist/chunk-7F7HRJI2.js.map +0 -1
  99. /package/dist/{chunk-HHKUWNHQ.js.map → chunk-2MSVIR4R.js.map} +0 -0
  100. /package/dist/{chunk-JXYFXVPB.js.map → chunk-4O7QMX7M.js.map} +0 -0
  101. /package/dist/{chunk-HOTAHSO3.js.map → chunk-6YDSQVDC.js.map} +0 -0
  102. /package/dist/{chunk-T3NEDSLZ.js.map → chunk-7EQTU7HK.js.map} +0 -0
  103. /package/dist/{chunk-FTV2C3CA.js.map → chunk-ADIDFC5C.js.map} +0 -0
  104. /package/dist/{chunk-2EKXMZ6E.js.map → chunk-BULOMNEU.js.map} +0 -0
  105. /package/dist/{chunk-OTE5E44O.js.map → chunk-BVRE4VKB.js.map} +0 -0
  106. /package/dist/{chunk-3FS6IVSU.js.map → chunk-C45E6V4V.js.map} +0 -0
  107. /package/dist/{chunk-V5FCMJW4.js.map → chunk-CCLJZYUB.js.map} +0 -0
  108. /package/dist/{chunk-CUZVWNSV.js.map → chunk-CMK3UUP7.js.map} +0 -0
  109. /package/dist/{chunk-76LDFLAG.js.map → chunk-FLTBI4BG.js.map} +0 -0
  110. /package/dist/{chunk-G77MHQFZ.js.map → chunk-HCUIFDO7.js.map} +0 -0
  111. /package/dist/{chunk-YMNPQMHA.js.map → chunk-HFEK2EBB.js.map} +0 -0
  112. /package/dist/{chunk-7L73PLRG.js.map → chunk-IUYEVU3C.js.map} +0 -0
  113. /package/dist/{chunk-P3SMXKFR.js.map → chunk-KUZ4HUK6.js.map} +0 -0
  114. /package/dist/{chunk-V425GW5W.js.map → chunk-KYQT6CD3.js.map} +0 -0
  115. /package/dist/{chunk-ZBDTOWGX.js.map → chunk-L2P555UV.js.map} +0 -0
  116. /package/dist/{chunk-B4ZA2PZC.js.map → chunk-LUWI6EKK.js.map} +0 -0
  117. /package/dist/{chunk-AOHQ4OJR.js.map → chunk-M46WULG3.js.map} +0 -0
  118. /package/dist/{chunk-PCLTJUOY.js.map → chunk-MNXLRE2X.js.map} +0 -0
  119. /package/dist/{chunk-37ACBHVF.js.map → chunk-NFGXC2X2.js.map} +0 -0
  120. /package/dist/{chunk-F2XXZR6A.js.map → chunk-NIQ7W4C2.js.map} +0 -0
  121. /package/dist/{chunk-VR6NF6VX.js.map → chunk-OAZ5SN5B.js.map} +0 -0
  122. /package/dist/{chunk-JUROR7PB.js.map → chunk-PWC6OC6F.js.map} +0 -0
  123. /package/dist/{chunk-CXIBBZ6N.js.map → chunk-R3RWGZFY.js.map} +0 -0
  124. /package/dist/{chunk-4GI2IGUK.js.map → chunk-UB5VAEZZ.js.map} +0 -0
  125. /package/dist/{chunk-4TZOOUMK.js.map → chunk-UDHZMBYV.js.map} +0 -0
  126. /package/dist/{chunk-KZBE4KBZ.js.map → chunk-XR7T3COX.js.map} +0 -0
  127. /package/dist/{chunk-IFXQGDMG.js.map → chunk-YHOWCJ4I.js.map} +0 -0
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  rebuildMemoryLifecycleLedger
3
- } from "./chunk-4GI2IGUK.js";
3
+ } from "./chunk-UB5VAEZZ.js";
4
4
  import {
5
5
  PROJECTION_REBUILD_RUNNER_FLAG
6
- } from "./chunk-JXYFXVPB.js";
6
+ } from "./chunk-4O7QMX7M.js";
7
7
  import {
8
8
  startLocationAutoSync
9
- } from "./chunk-F2XXZR6A.js";
9
+ } from "./chunk-NIQ7W4C2.js";
10
10
  import {
11
11
  ensureContradictionScanCron,
12
12
  ensureDaySummaryCron,
@@ -21,14 +21,14 @@ import {
21
21
  isIsoWeekId,
22
22
  msUntilNextIsoWeek,
23
23
  previousIsoWeekId
24
- } from "./chunk-HOTAHSO3.js";
24
+ } from "./chunk-6YDSQVDC.js";
25
25
  import {
26
26
  planNamespaceMaintenance,
27
27
  runNamespaceMaintenanceBatchPlan
28
- } from "./chunk-CXIBBZ6N.js";
28
+ } from "./chunk-R3RWGZFY.js";
29
29
  import {
30
30
  rebuildMemoryProjection
31
- } from "./chunk-B4ZA2PZC.js";
31
+ } from "./chunk-LUWI6EKK.js";
32
32
  import {
33
33
  LocalLlmClient
34
34
  } from "./chunk-TQXKUQFX.js";
@@ -2874,4 +2874,4 @@ export {
2874
2874
  ActivitySyncScheduler,
2875
2875
  MaintenanceScheduler
2876
2876
  };
2877
- //# sourceMappingURL=chunk-ZBDTOWGX.js.map
2877
+ //# sourceMappingURL=chunk-L2P555UV.js.map
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  listMemoryGovernanceRuns,
6
6
  readMemoryGovernanceRunArtifact
7
- } from "./chunk-P3SMXKFR.js";
7
+ } from "./chunk-KUZ4HUK6.js";
8
8
  import {
9
9
  loadPersistedNativeKnowledgeChunks
10
10
  } from "./chunk-2DQ2XREU.js";
11
11
  import {
12
12
  StorageManager
13
- } from "./chunk-JUROR7PB.js";
13
+ } from "./chunk-PWC6OC6F.js";
14
14
  import {
15
15
  normalizeProjectionPreview,
16
16
  normalizeProjectionTags
@@ -1156,4 +1156,4 @@ export {
1156
1156
  verifyMemoryProjection,
1157
1157
  repairMemoryProjection
1158
1158
  };
1159
- //# sourceMappingURL=chunk-B4ZA2PZC.js.map
1159
+ //# sourceMappingURL=chunk-LUWI6EKK.js.map
@@ -3,7 +3,7 @@ import {
3
3
  readNamespaceMaintenanceLastRanStatuses,
4
4
  readNamespaceMaintenanceStatuses,
5
5
  runNamespaceMaintenancePlan
6
- } from "./chunk-CXIBBZ6N.js";
6
+ } from "./chunk-R3RWGZFY.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-2EKXMZ6E.js";
17
+ } from "./chunk-BULOMNEU.js";
18
18
  import {
19
19
  readJudgeVerdictStats
20
20
  } from "./chunk-OZKOPQCM.js";
@@ -27,17 +27,17 @@ import {
27
27
  } from "./chunk-JKMIGCK6.js";
28
28
  import {
29
29
  resolveCorpusNamespaceRoots
30
- } from "./chunk-3FS6IVSU.js";
30
+ } from "./chunk-C45E6V4V.js";
31
31
  import {
32
32
  listNamespaces
33
- } from "./chunk-T3NEDSLZ.js";
33
+ } from "./chunk-7EQTU7HK.js";
34
34
  import {
35
35
  runConsolidationProvenanceCheck
36
36
  } from "./chunk-TLRIRISJ.js";
37
37
  import {
38
38
  listMemoryGovernanceRuns,
39
39
  readMemoryGovernanceRunArtifact
40
- } from "./chunk-P3SMXKFR.js";
40
+ } from "./chunk-KUZ4HUK6.js";
41
41
  import {
42
42
  resolveCuratedIncludeFilesStatePath,
43
43
  resolveNativeKnowledgeStatePath,
@@ -57,7 +57,7 @@ import {
57
57
  } from "./chunk-DURQZFVJ.js";
58
58
  import {
59
59
  StorageManager
60
- } from "./chunk-JUROR7PB.js";
60
+ } from "./chunk-PWC6OC6F.js";
61
61
  import {
62
62
  lintWorkspaceFiles
63
63
  } from "./chunk-DM2T26WE.js";
@@ -1876,4 +1876,4 @@ export {
1876
1876
  runBenchmarkRecall,
1877
1877
  runOperatorRepair
1878
1878
  };
1879
- //# sourceMappingURL=chunk-AOHQ4OJR.js.map
1879
+ //# sourceMappingURL=chunk-M46WULG3.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-B7RWBZXW.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-JUROR7PB.js";
6
+ } from "./chunk-PWC6OC6F.js";
7
7
  import {
8
8
  countRecallTokenOverlap,
9
9
  normalizeRecallTokens
@@ -109,4 +109,4 @@ export {
109
109
  compareVerifiedEpisodeResults,
110
110
  searchVerifiedEpisodes
111
111
  };
112
- //# sourceMappingURL=chunk-PCLTJUOY.js.map
112
+ //# sourceMappingURL=chunk-MNXLRE2X.js.map
@@ -36,7 +36,7 @@ import {
36
36
  import {
37
37
  exportOkfBundle,
38
38
  parseIncludeStatus
39
- } from "./chunk-G77MHQFZ.js";
39
+ } from "./chunk-HCUIFDO7.js";
40
40
  import {
41
41
  exportSqlite
42
42
  } from "./chunk-BV2TIZ4F.js";
@@ -71,7 +71,7 @@ import {
71
71
  import {
72
72
  buildStandup,
73
73
  parseStandupDate
74
- } from "./chunk-FTV2C3CA.js";
74
+ } from "./chunk-ADIDFC5C.js";
75
75
  import {
76
76
  SupportPassportAccessSurface,
77
77
  createSupportPassportModelAdapter,
@@ -83,7 +83,7 @@ import {
83
83
  import {
84
84
  ActivityStore,
85
85
  MaintenanceScheduler
86
- } from "./chunk-ZBDTOWGX.js";
86
+ } from "./chunk-L2P555UV.js";
87
87
  import {
88
88
  runPeerProfileReasoner
89
89
  } from "./chunk-WTXUUZYI.js";
@@ -107,7 +107,7 @@ import {
107
107
  } from "./chunk-5OBYISRA.js";
108
108
  import {
109
109
  rebuildMemoryLifecycleLedger
110
- } from "./chunk-4GI2IGUK.js";
110
+ } from "./chunk-UB5VAEZZ.js";
111
111
  import {
112
112
  rebuildObservations
113
113
  } from "./chunk-2X4WP4GD.js";
@@ -121,7 +121,7 @@ import {
121
121
  runLocationDay,
122
122
  runLocationStatus,
123
123
  runLocationSync
124
- } from "./chunk-F2XXZR6A.js";
124
+ } from "./chunk-NIQ7W4C2.js";
125
125
  import {
126
126
  archiveObservations
127
127
  } from "./chunk-SBQOBY3S.js";
@@ -140,7 +140,7 @@ import {
140
140
  import {
141
141
  CompoundingEngine,
142
142
  defaultTierMigrationCycleBudget
143
- } from "./chunk-HOTAHSO3.js";
143
+ } from "./chunk-6YDSQVDC.js";
144
144
  import {
145
145
  SharedContextManager,
146
146
  UNATTRIBUTED_ACCESS_WRITE_ORIGIN
@@ -199,7 +199,7 @@ import {
199
199
  handleWhoKnowsHttpQuery,
200
200
  loadWhoKnowsEntities,
201
201
  validateWhoKnowsInput
202
- } from "./chunk-V5FCMJW4.js";
202
+ } from "./chunk-CCLJZYUB.js";
203
203
  import {
204
204
  WriteQuarantineStore
205
205
  } from "./chunk-BANSBRNX.js";
@@ -225,7 +225,7 @@ import {
225
225
  import {
226
226
  compareVerifiedEpisodeResults,
227
227
  searchVerifiedEpisodes
228
- } from "./chunk-PCLTJUOY.js";
228
+ } from "./chunk-MNXLRE2X.js";
229
229
  import {
230
230
  applyTrustScoreStage,
231
231
  buildTrustSignalsForRerank,
@@ -289,11 +289,11 @@ import {
289
289
  } from "./chunk-WWDO7ZWM.js";
290
290
  import {
291
291
  promoteSemanticRuleFromMemory
292
- } from "./chunk-YMNPQMHA.js";
292
+ } from "./chunk-HFEK2EBB.js";
293
293
  import {
294
294
  compareVerifiedSemanticRuleResults,
295
295
  searchVerifiedSemanticRules
296
- } from "./chunk-7L73PLRG.js";
296
+ } from "./chunk-IUYEVU3C.js";
297
297
  import {
298
298
  buildResponseGuidanceRecallSection,
299
299
  shouldRecallResponseGuidance
@@ -473,12 +473,12 @@ import {
473
473
  runOperatorRepair,
474
474
  runOperatorSetup,
475
475
  summarizeNamespaceMaintenanceHealth
476
- } from "./chunk-AOHQ4OJR.js";
476
+ } from "./chunk-M46WULG3.js";
477
477
  import {
478
478
  NamespaceCatalog,
479
479
  isNamespaceKind,
480
480
  planNamespaceMaintenance
481
- } from "./chunk-CXIBBZ6N.js";
481
+ } from "./chunk-R3RWGZFY.js";
482
482
  import {
483
483
  analyzeSessionIntegrity,
484
484
  applySessionRepair,
@@ -574,7 +574,7 @@ import {
574
574
  import {
575
575
  readProjectedHarmonicGraph,
576
576
  searchHarmonicRetrieval
577
- } from "./chunk-IFXQGDMG.js";
577
+ } from "./chunk-YHOWCJ4I.js";
578
578
  import {
579
579
  classifyMemoryKind
580
580
  } from "./chunk-YAZNBMNF.js";
@@ -673,7 +673,7 @@ import {
673
673
  buildEntityRecallSection,
674
674
  entityRecentTranscriptLookbackHours,
675
675
  readRecentEntityTranscriptEntries
676
- } from "./chunk-76LDFLAG.js";
676
+ } from "./chunk-FLTBI4BG.js";
677
677
  import {
678
678
  boundRecallContextComposition,
679
679
  composeMissingMemoryContext,
@@ -716,15 +716,15 @@ import {
716
716
  import {
717
717
  CorpusWatermarkCache,
718
718
  computeServiceCorpusCensus
719
- } from "./chunk-3FS6IVSU.js";
719
+ } from "./chunk-C45E6V4V.js";
720
720
  import {
721
721
  listNamespaces,
722
722
  runNamespaceMigration,
723
723
  verifyNamespaces
724
- } from "./chunk-T3NEDSLZ.js";
724
+ } from "./chunk-7EQTU7HK.js";
725
725
  import {
726
726
  NamespaceStorageRouter
727
- } from "./chunk-KZBE4KBZ.js";
727
+ } from "./chunk-XR7T3COX.js";
728
728
  import {
729
729
  CrossNamespaceBudget,
730
730
  toBudgetWarning
@@ -738,12 +738,12 @@ import {
738
738
  } from "./chunk-YNDLCWXS.js";
739
739
  import {
740
740
  refreshConvergedNamespaces
741
- } from "./chunk-VR6NF6VX.js";
741
+ } from "./chunk-OAZ5SN5B.js";
742
742
  import {
743
743
  rebuildMemoryProjection,
744
744
  repairMemoryProjection,
745
745
  verifyMemoryProjection
746
- } from "./chunk-B4ZA2PZC.js";
746
+ } from "./chunk-LUWI6EKK.js";
747
747
  import {
748
748
  buildProposedActions,
749
749
  buildQualityScore,
@@ -752,7 +752,7 @@ import {
752
752
  readMemoryGovernanceRunArtifact,
753
753
  restoreMemoryGovernanceRun,
754
754
  runMemoryGovernance
755
- } from "./chunk-P3SMXKFR.js";
755
+ } from "./chunk-KUZ4HUK6.js";
756
756
  import {
757
757
  collectNativeKnowledgeChunks,
758
758
  formatNativeKnowledgeSection,
@@ -785,7 +785,7 @@ import {
785
785
  materializeAfterSemanticConsolidation,
786
786
  parseConsolidationResponse,
787
787
  parseOperatorAwareConsolidationResponse
788
- } from "./chunk-OTE5E44O.js";
788
+ } from "./chunk-BVRE4VKB.js";
789
789
  import {
790
790
  resolveNamespaceChildRoot
791
791
  } from "./chunk-3UXOZBHV.js";
@@ -885,7 +885,7 @@ import {
885
885
  parseBriefingFocus,
886
886
  parseBriefingWindow,
887
887
  validateBriefingFormat
888
- } from "./chunk-4TZOOUMK.js";
888
+ } from "./chunk-UDHZMBYV.js";
889
889
  import {
890
890
  BriefingTimeoutError,
891
891
  withBriefingDeadline
@@ -1070,7 +1070,7 @@ import {
1070
1070
  reconstructFusionInputs,
1071
1071
  selfDeps,
1072
1072
  serializeFusionDay
1073
- } from "./chunk-JUROR7PB.js";
1073
+ } from "./chunk-PWC6OC6F.js";
1074
1074
  import {
1075
1075
  buildRetiredFactTombstoneInputs
1076
1076
  } from "./chunk-QGVCFVX6.js";
@@ -68044,4 +68044,4 @@ export {
68044
68044
  EngramAccessService,
68045
68045
  AccessAdminOpsSurface
68046
68046
  };
68047
- //# sourceMappingURL=chunk-37ACBHVF.js.map
68047
+ //# sourceMappingURL=chunk-NFGXC2X2.js.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  resolveDefaultNamespaceRoot
3
- } from "./chunk-KZBE4KBZ.js";
3
+ } from "./chunk-XR7T3COX.js";
4
4
  import {
5
5
  StorageManager
6
- } from "./chunk-JUROR7PB.js";
6
+ } from "./chunk-PWC6OC6F.js";
7
7
  import {
8
8
  composeLocationDayBody,
9
9
  composeLocationDayMeta,
@@ -852,4 +852,4 @@ export {
852
852
  LOCATION_SYNC_DEFAULT_INTERVAL_MS,
853
853
  startLocationAutoSync
854
854
  };
855
- //# sourceMappingURL=chunk-F2XXZR6A.js.map
855
+ //# sourceMappingURL=chunk-NIQ7W4C2.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  rebuildMemoryProjection
3
- } from "./chunk-B4ZA2PZC.js";
3
+ } from "./chunk-LUWI6EKK.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-VR6NF6VX.js.map
35
+ //# sourceMappingURL=chunk-OAZ5SN5B.js.map
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-BL7WULM5.js";
23
23
  import {
24
24
  BufferSessionFiles
25
- } from "./chunk-7F7HRJI2.js";
25
+ } from "./chunk-QFZYIUMQ.js";
26
26
  import {
27
27
  normalizeQmdResultPath,
28
28
  resolveNamespaceResultPath
@@ -13356,4 +13356,4 @@ export {
13356
13356
  isValidBufferSurpriseEvent,
13357
13357
  StorageManager3 as StorageManager
13358
13358
  };
13359
- //# sourceMappingURL=chunk-JUROR7PB.js.map
13359
+ //# sourceMappingURL=chunk-PWC6OC6F.js.map
@@ -691,28 +691,48 @@ var INBOX_UNREADABLE_BYTES = 536870888;
691
691
  var LIST_PAGE_SCAN_FACTOR = 8;
692
692
  var CLAIM_TOTALS_TTL_MS = 3e4;
693
693
  var BufferDrainClaims = class {
694
- constructor(stateDir, io) {
694
+ constructor(stateDir, io, deps = {}) {
695
695
  this.stateDir = stateDir;
696
696
  this.io = io;
697
+ this.readTotals = deps.readTotals ?? readDrainClaimTotals;
697
698
  }
698
699
  stateDir;
699
700
  io;
700
701
  handIns = new HandInMemo();
701
702
  /** Last `claimTotals` scan; the /health path polls per request (#3442). */
702
703
  totalsCache = null;
704
+ /** The one in-flight `claimTotals` rescan; concurrent callers share it. */
705
+ totalsScan = null;
706
+ readTotals;
703
707
  /**
704
708
  * Claimed-backlog totals for liveness surfaces (#3442): sidecars only, no
705
709
  * claim-body parse, bounded scan, cached for `ttlMs` (default 30s) so a
706
- * health poll per request cannot turn into a directory storm. `ttlMs: 0`
707
- * forces a rescan; `nowMs`/`maxClaims` are test/bounds seams.
710
+ * health poll per request cannot turn into a directory storm. Single-flight:
711
+ * while one rescan runs, further stale polls serve the last completed totals
712
+ * (or attach to the scan when nothing completed yet) instead of stacking
713
+ * scans. The cache timestamp is taken after the scan, so a rescan slower
714
+ * than the TTL still returns a fresh window. `ttlMs: 0` waits for the
715
+ * in-flight rescan instead of serving stale; `nowMs`/`maxClaims` are
716
+ * test/bounds seams.
708
717
  */
709
718
  async claimTotals(opts = {}) {
710
719
  const nowMs = opts.nowMs ?? Date.now();
720
+ const ttlMs = opts.ttlMs ?? CLAIM_TOTALS_TTL_MS;
711
721
  const cached = this.totalsCache;
712
- if (cached !== null && nowMs - cached.atMs < (opts.ttlMs ?? CLAIM_TOTALS_TTL_MS)) return cached.totals;
713
- const totals = await readDrainClaimTotals(this.dir, { maxClaims: opts.maxClaims });
714
- this.totalsCache = { atMs: nowMs, totals };
715
- return totals;
722
+ if (cached !== null && nowMs - cached.atMs < ttlMs) return cached.totals;
723
+ if (this.totalsScan !== null) {
724
+ if (cached !== null && ttlMs > 0) return cached.totals;
725
+ return this.totalsScan;
726
+ }
727
+ const scan = this.readTotals(this.dir, { maxClaims: opts.maxClaims });
728
+ this.totalsScan = scan;
729
+ try {
730
+ const totals = await scan;
731
+ this.totalsCache = { atMs: opts.nowMs ?? Date.now(), totals };
732
+ return totals;
733
+ } finally {
734
+ this.totalsScan = null;
735
+ }
716
736
  }
717
737
  get dir() {
718
738
  return path3.join(this.stateDir, "buffer", "drain");
@@ -1302,4 +1322,4 @@ export {
1302
1322
  legacyStateToEntries,
1303
1323
  BufferSessionFiles
1304
1324
  };
1305
- //# sourceMappingURL=chunk-7F7HRJI2.js.map
1325
+ //# sourceMappingURL=chunk-QFZYIUMQ.js.map