@remnic/core 10.0.191 → 10.0.192
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.
- package/dist/abstraction-nodes.js +4 -4
- package/dist/access-admin-ops-surface.js +62 -62
- package/dist/access-cli.js +62 -62
- package/dist/access-extraction-force-flush-preempt.js +62 -62
- package/dist/access-extraction-force-flush.js +62 -62
- package/dist/access-http-briefing.js +62 -62
- package/dist/access-http-query.js +62 -62
- package/dist/access-http.js +62 -62
- package/dist/access-identity-continuity-surface.js +62 -62
- package/dist/access-lcm-surface.js +62 -62
- package/dist/access-mcp.js +62 -62
- package/dist/access-observe-write-surface.js +62 -62
- package/dist/access-operations-batch.js +62 -62
- package/dist/access-operations.js +62 -62
- package/dist/access-recall-concurrency.js +62 -62
- package/dist/access-recall-diagnostics.js +2 -2
- package/dist/access-recall-response.js +62 -62
- package/dist/access-recall-surface.js +62 -62
- package/dist/access-service.js +62 -62
- package/dist/active-recall.js +11 -11
- package/dist/briefing.js +11 -11
- package/dist/buffer-persistence.d.ts +7 -0
- package/dist/buffer-persistence.d.ts.map +1 -1
- package/dist/buffer-persistence.js +1 -1
- package/dist/buffer.d.ts +2 -0
- package/dist/buffer.d.ts.map +1 -1
- package/dist/buffer.js +6 -6
- package/dist/{capsule-merge-BADOICNP.js → capsule-merge-3FARYIHP.js} +5 -5
- package/dist/causal-consolidation.js +12 -12
- package/dist/{chunk-IMSLPQJB.js → chunk-2QW5HPKU.js} +2 -2
- package/dist/{chunk-KNYUEYB6.js → chunk-2YJ2ST23.js} +2 -2
- package/dist/{chunk-BZ5VO7KO.js → chunk-3BICT225.js} +2 -2
- package/dist/{chunk-UWKHLWUE.js → chunk-3RZ4GDOH.js} +2 -2
- package/dist/{chunk-ODIBCZLG.js → chunk-3YID7KZ6.js} +2 -2
- package/dist/{chunk-4SUNBSPD.js → chunk-4EAVEDLG.js} +9 -9
- package/dist/{chunk-TLRIRISJ.js → chunk-4LCA2GEX.js} +2 -2
- package/dist/{chunk-4N33L4HY.js → chunk-5GIYIYJI.js} +2 -2
- package/dist/{chunk-JQCEG54G.js → chunk-75K6DRPN.js} +12 -9
- package/dist/chunk-75K6DRPN.js.map +1 -0
- package/dist/{chunk-ZDLVHGIC.js → chunk-7EP4FURO.js} +2 -2
- package/dist/{chunk-CAUADFDM.js → chunk-7SOKOEAZ.js} +2 -2
- package/dist/{chunk-7Q74DD2W.js → chunk-7V6GNQC2.js} +2 -2
- package/dist/{chunk-C6YKKH73.js → chunk-AALJHIKH.js} +3 -3
- package/dist/{chunk-C2UN2CY7.js → chunk-AJ7JHHRY.js} +2 -2
- package/dist/{chunk-QSVWIKNY.js → chunk-BDFSVUUZ.js} +9 -7
- package/dist/chunk-BDFSVUUZ.js.map +1 -0
- package/dist/{chunk-3DADRUGW.js → chunk-BGA7S5EF.js} +3 -3
- package/dist/{chunk-7GMOB4FF.js → chunk-CJSTQNE5.js} +2 -2
- package/dist/{chunk-6YAQ3AJ5.js → chunk-DYUPSTCV.js} +3 -3
- package/dist/{chunk-E5QI6C6C.js → chunk-E3LGAZJC.js} +3 -3
- package/dist/{chunk-NL5KFA5N.js → chunk-EEA2RM4B.js} +2 -2
- package/dist/{chunk-BL7WULM5.js → chunk-FDO7ITP6.js} +2 -2
- package/dist/{chunk-7BIGO6ZL.js → chunk-FGFU6J26.js} +3 -3
- package/dist/{chunk-6TIQLG7I.js → chunk-FKHXXL42.js} +2 -2
- package/dist/{chunk-QPD7EYGI.js → chunk-G2MS56KM.js} +2 -2
- package/dist/{chunk-FFTGLWHI.js → chunk-GH7IKABD.js} +2 -2
- package/dist/{chunk-RC2TVYY2.js → chunk-GYCUX3N4.js} +2 -2
- package/dist/{chunk-CJYVVVOG.js → chunk-HEJFE3BC.js} +3 -3
- package/dist/{chunk-KM4QO4LN.js → chunk-HLQANATZ.js} +2 -2
- package/dist/{chunk-RQOUKIFS.js → chunk-J7RQ3RP7.js} +2 -2
- package/dist/{chunk-QTHFGP5F.js → chunk-JITK24KX.js} +7 -7
- package/dist/{chunk-EJYUAN5F.js → chunk-K6UXWVQ6.js} +2 -2
- package/dist/{chunk-3XJITLZQ.js → chunk-KJ65WZHB.js} +2 -2
- package/dist/{chunk-JOR4Y326.js → chunk-KOVQZJ27.js} +2 -2
- package/dist/{chunk-O6QSBI3U.js → chunk-KZ4BJRGQ.js} +2 -2
- package/dist/{chunk-FZPZML67.js → chunk-LR6LWX33.js} +4 -4
- package/dist/{chunk-NTS2RCQK.js → chunk-NAULI3EG.js} +2 -2
- package/dist/{chunk-V5W67PQV.js → chunk-NOKHMWMW.js} +4 -4
- package/dist/{chunk-JGVW6F3Q.js → chunk-ODI4K32P.js} +5 -5
- package/dist/{chunk-H7USCTPQ.js → chunk-OLD2GKQJ.js} +3 -3
- package/dist/{chunk-D7HOJFDS.js → chunk-ONSEODO2.js} +2 -2
- package/dist/{chunk-R3YMWUF3.js → chunk-P3IAZQPS.js} +2 -2
- package/dist/{chunk-LL6WEMTC.js → chunk-P3OONWJJ.js} +2 -2
- package/dist/chunk-P3OONWJJ.js.map +1 -0
- package/dist/{chunk-7KC6LT7U.js → chunk-PSQ347YP.js} +3 -3
- package/dist/{chunk-U6OQ7GWU.js → chunk-QFKNIKUF.js} +2 -2
- package/dist/{chunk-RFVX4WE7.js → chunk-QIPRDRGM.js} +1 -1
- package/dist/chunk-QIPRDRGM.js.map +1 -0
- package/dist/{chunk-2DFXIJPZ.js → chunk-QZMGZBTF.js} +2 -2
- package/dist/{chunk-NSFHMGOF.js → chunk-SKJM4PKE.js} +2 -2
- package/dist/{chunk-T7R42MWB.js → chunk-STSORBX5.js} +2 -2
- package/dist/{chunk-ICA5SCIT.js → chunk-T765HQ5U.js} +3 -3
- package/dist/{chunk-RFEQ7DQN.js → chunk-TDG5NZAZ.js} +2 -2
- package/dist/{chunk-2S6PPGIR.js → chunk-TWYYUMYO.js} +2 -2
- package/dist/{chunk-U6JZGQXC.js → chunk-TZ7ZA2LM.js} +2 -2
- package/dist/{chunk-AIS7RLTG.js → chunk-UAEJKURK.js} +58 -56
- package/dist/{chunk-AIS7RLTG.js.map → chunk-UAEJKURK.js.map} +1 -1
- package/dist/{chunk-JIB3UUYV.js → chunk-UH2VY2QQ.js} +3 -3
- package/dist/{chunk-X5XK6WWV.js → chunk-VHQNJW4Q.js} +2 -2
- package/dist/{chunk-CP6MUXNI.js → chunk-WEI6HEUX.js} +11 -6
- package/dist/chunk-WEI6HEUX.js.map +1 -0
- package/dist/{chunk-3IA2SUWM.js → chunk-WRVKI6ZO.js} +2 -2
- package/dist/{chunk-R5S57GRK.js → chunk-XSRZM6CQ.js} +38 -13
- package/dist/chunk-XSRZM6CQ.js.map +1 -0
- package/dist/{chunk-2CWCJYT3.js → chunk-XZLCAL5O.js} +2 -2
- package/dist/{chunk-7MAMRCZ7.js → chunk-XZMQLON4.js} +430 -292
- package/dist/chunk-XZMQLON4.js.map +1 -0
- package/dist/{chunk-HL53XYHC.js → chunk-YCJJODER.js} +5 -5
- package/dist/chunk-YCJJODER.js.map +1 -0
- package/dist/{chunk-W7FZ7ZZE.js → chunk-Z6EFSXU3.js} +2 -2
- package/dist/{chunk-GRX5BE73.js → chunk-ZNCCX7P6.js} +2 -2
- package/dist/cli.js +62 -62
- package/dist/coding/export-okf-codegraph.js +10 -10
- package/dist/compounding/engine.js +12 -12
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -11
- package/dist/connectors/codex-materialize-runner.js +11 -11
- package/dist/connectors/index.js +11 -11
- package/dist/consolidation-provenance-check.js +5 -5
- package/dist/consolidation-undo.js +4 -4
- package/dist/contradiction/index.js +3 -3
- package/dist/convergence-refresh.js +13 -13
- package/dist/corpus-watermark.js +13 -13
- package/dist/cue-anchors.js +5 -5
- package/dist/{entity-canonical-id-migration-74IDJFPB.js → entity-canonical-id-migration-46EMEXTB.js} +4 -4
- package/dist/entity-retrieval.d.ts.map +1 -1
- package/dist/entity-retrieval.js +11 -11
- package/dist/explicit-capture.js +62 -62
- package/dist/extraction.js +15 -15
- package/dist/harmonic-construction.js +6 -6
- package/dist/harmonic-graph-version.js +3 -3
- package/dist/harmonic-retrieval.d.ts +15 -0
- package/dist/harmonic-retrieval.d.ts.map +1 -1
- package/dist/harmonic-retrieval.js +16 -14
- package/dist/index.js +62 -62
- package/dist/location/index.js +12 -12
- package/dist/maintenance/memory-governance.js +11 -11
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +11 -11
- package/dist/maintenance/rebuild-memory-projection-runner.js +13 -13
- package/dist/maintenance/rebuild-memory-projection.js +12 -12
- package/dist/memory-browse.js +5 -5
- package/dist/memory-cache.d.ts +44 -3
- package/dist/memory-cache.d.ts.map +1 -1
- package/dist/memory-cache.js +9 -1
- package/dist/memory-corpus-version.js +2 -2
- package/dist/namespaces/migrate.js +12 -12
- package/dist/namespaces/search.js +4 -4
- package/dist/namespaces/storage.js +11 -11
- package/dist/operator-doctor-corpus.js +14 -14
- package/dist/operator-toolkit.js +19 -19
- package/dist/orchestration/backlog-scheduler.js +63 -63
- package/dist/orchestration/buffer-drain-runner.js +63 -63
- package/dist/orchestration/maintenance.js +19 -19
- package/dist/orchestration/recall-internal.d.ts.map +1 -1
- package/dist/orchestration/turn-ingestion-buffered.d.ts.map +1 -1
- package/dist/orchestrator.js +62 -62
- package/dist/page-versioning.js +4 -4
- package/dist/qmd.js +2 -2
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-navigate-access.js +2 -2
- package/dist/recall-navigate-disclosure.js +2 -2
- package/dist/recall-navigate.js +2 -2
- package/dist/recall-navigation.js +62 -62
- package/dist/recall-state-view-admission.js +5 -5
- package/dist/recall-why-service.js +5 -5
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.js +2 -2
- package/dist/{resolution-RWIGFH2W.js → resolution-4QPPLDEN.js} +4 -4
- package/dist/resume-bundles.js +12 -12
- package/dist/search/factory.js +3 -3
- package/dist/search/index.js +3 -3
- package/dist/semantic-consolidation.js +12 -12
- package/dist/semantic-rule-promotion.js +11 -11
- package/dist/semantic-rule-verifier.js +11 -11
- package/dist/source-agent-qualifier.js +14 -14
- package/dist/standup/build.js +11 -11
- package/dist/storage/entity-listing.d.ts +20 -0
- package/dist/storage/entity-listing.d.ts.map +1 -0
- package/dist/storage/entity-store.d.ts +5 -0
- package/dist/storage/entity-store.d.ts.map +1 -1
- package/dist/storage/hot-cache-validation.d.ts +60 -0
- package/dist/storage/hot-cache-validation.d.ts.map +1 -0
- package/dist/storage.d.ts +2 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +10 -10
- package/dist/transfer/capsule-import.js +5 -5
- package/dist/transfer/export-okf.js +11 -11
- package/dist/types.d.ts +2 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/dist/verified-recall.js +11 -11
- package/dist/who-knows-cli.js +12 -12
- package/dist/who-knows.js +11 -11
- package/package.json +2 -2
- package/src/buffer-large-session-defer.test.ts +81 -0
- package/src/buffer-persistence.ts +8 -1
- package/src/buffer.ts +9 -4
- package/src/config.test.ts +9 -0
- package/src/config.ts +3 -6
- package/src/entity-recall-hot-cache.test.ts +116 -0
- package/src/entity-retrieval.ts +22 -4
- package/src/harmonic-graph-cache.test.ts +28 -9
- package/src/harmonic-retrieval.ts +20 -4
- package/src/memory-cache-hot.test.ts +47 -0
- package/src/memory-cache.ts +96 -17
- package/src/observe-flush-force-keys.test.ts +130 -0
- package/src/orchestration/recall-internal.ts +1 -0
- package/src/orchestration/turn-ingestion-buffered.test.ts +6 -2
- package/src/orchestration/turn-ingestion-buffered.ts +5 -1
- package/src/storage/entity-listing.ts +73 -0
- package/src/storage/entity-store.ts +25 -26
- package/src/storage/hot-cache-validation.ts +149 -0
- package/src/storage-contract/cache-coherence.test.ts +42 -5
- package/src/storage-hot-cache-stat-validate.test.ts +112 -0
- package/src/storage.ts +58 -44
- package/src/types.ts +2 -0
- package/dist/chunk-7MAMRCZ7.js.map +0 -1
- package/dist/chunk-CP6MUXNI.js.map +0 -1
- package/dist/chunk-HL53XYHC.js.map +0 -1
- package/dist/chunk-JQCEG54G.js.map +0 -1
- package/dist/chunk-LL6WEMTC.js.map +0 -1
- package/dist/chunk-QSVWIKNY.js.map +0 -1
- package/dist/chunk-R5S57GRK.js.map +0 -1
- package/dist/chunk-RFVX4WE7.js.map +0 -1
- /package/dist/{capsule-merge-BADOICNP.js.map → capsule-merge-3FARYIHP.js.map} +0 -0
- /package/dist/{chunk-IMSLPQJB.js.map → chunk-2QW5HPKU.js.map} +0 -0
- /package/dist/{chunk-KNYUEYB6.js.map → chunk-2YJ2ST23.js.map} +0 -0
- /package/dist/{chunk-BZ5VO7KO.js.map → chunk-3BICT225.js.map} +0 -0
- /package/dist/{chunk-UWKHLWUE.js.map → chunk-3RZ4GDOH.js.map} +0 -0
- /package/dist/{chunk-ODIBCZLG.js.map → chunk-3YID7KZ6.js.map} +0 -0
- /package/dist/{chunk-4SUNBSPD.js.map → chunk-4EAVEDLG.js.map} +0 -0
- /package/dist/{chunk-TLRIRISJ.js.map → chunk-4LCA2GEX.js.map} +0 -0
- /package/dist/{chunk-4N33L4HY.js.map → chunk-5GIYIYJI.js.map} +0 -0
- /package/dist/{chunk-ZDLVHGIC.js.map → chunk-7EP4FURO.js.map} +0 -0
- /package/dist/{chunk-CAUADFDM.js.map → chunk-7SOKOEAZ.js.map} +0 -0
- /package/dist/{chunk-7Q74DD2W.js.map → chunk-7V6GNQC2.js.map} +0 -0
- /package/dist/{chunk-C6YKKH73.js.map → chunk-AALJHIKH.js.map} +0 -0
- /package/dist/{chunk-C2UN2CY7.js.map → chunk-AJ7JHHRY.js.map} +0 -0
- /package/dist/{chunk-3DADRUGW.js.map → chunk-BGA7S5EF.js.map} +0 -0
- /package/dist/{chunk-7GMOB4FF.js.map → chunk-CJSTQNE5.js.map} +0 -0
- /package/dist/{chunk-6YAQ3AJ5.js.map → chunk-DYUPSTCV.js.map} +0 -0
- /package/dist/{chunk-E5QI6C6C.js.map → chunk-E3LGAZJC.js.map} +0 -0
- /package/dist/{chunk-NL5KFA5N.js.map → chunk-EEA2RM4B.js.map} +0 -0
- /package/dist/{chunk-BL7WULM5.js.map → chunk-FDO7ITP6.js.map} +0 -0
- /package/dist/{chunk-7BIGO6ZL.js.map → chunk-FGFU6J26.js.map} +0 -0
- /package/dist/{chunk-6TIQLG7I.js.map → chunk-FKHXXL42.js.map} +0 -0
- /package/dist/{chunk-QPD7EYGI.js.map → chunk-G2MS56KM.js.map} +0 -0
- /package/dist/{chunk-FFTGLWHI.js.map → chunk-GH7IKABD.js.map} +0 -0
- /package/dist/{chunk-RC2TVYY2.js.map → chunk-GYCUX3N4.js.map} +0 -0
- /package/dist/{chunk-CJYVVVOG.js.map → chunk-HEJFE3BC.js.map} +0 -0
- /package/dist/{chunk-KM4QO4LN.js.map → chunk-HLQANATZ.js.map} +0 -0
- /package/dist/{chunk-RQOUKIFS.js.map → chunk-J7RQ3RP7.js.map} +0 -0
- /package/dist/{chunk-QTHFGP5F.js.map → chunk-JITK24KX.js.map} +0 -0
- /package/dist/{chunk-EJYUAN5F.js.map → chunk-K6UXWVQ6.js.map} +0 -0
- /package/dist/{chunk-3XJITLZQ.js.map → chunk-KJ65WZHB.js.map} +0 -0
- /package/dist/{chunk-JOR4Y326.js.map → chunk-KOVQZJ27.js.map} +0 -0
- /package/dist/{chunk-O6QSBI3U.js.map → chunk-KZ4BJRGQ.js.map} +0 -0
- /package/dist/{chunk-FZPZML67.js.map → chunk-LR6LWX33.js.map} +0 -0
- /package/dist/{chunk-NTS2RCQK.js.map → chunk-NAULI3EG.js.map} +0 -0
- /package/dist/{chunk-V5W67PQV.js.map → chunk-NOKHMWMW.js.map} +0 -0
- /package/dist/{chunk-JGVW6F3Q.js.map → chunk-ODI4K32P.js.map} +0 -0
- /package/dist/{chunk-H7USCTPQ.js.map → chunk-OLD2GKQJ.js.map} +0 -0
- /package/dist/{chunk-D7HOJFDS.js.map → chunk-ONSEODO2.js.map} +0 -0
- /package/dist/{chunk-R3YMWUF3.js.map → chunk-P3IAZQPS.js.map} +0 -0
- /package/dist/{chunk-7KC6LT7U.js.map → chunk-PSQ347YP.js.map} +0 -0
- /package/dist/{chunk-U6OQ7GWU.js.map → chunk-QFKNIKUF.js.map} +0 -0
- /package/dist/{chunk-2DFXIJPZ.js.map → chunk-QZMGZBTF.js.map} +0 -0
- /package/dist/{chunk-NSFHMGOF.js.map → chunk-SKJM4PKE.js.map} +0 -0
- /package/dist/{chunk-T7R42MWB.js.map → chunk-STSORBX5.js.map} +0 -0
- /package/dist/{chunk-ICA5SCIT.js.map → chunk-T765HQ5U.js.map} +0 -0
- /package/dist/{chunk-RFEQ7DQN.js.map → chunk-TDG5NZAZ.js.map} +0 -0
- /package/dist/{chunk-2S6PPGIR.js.map → chunk-TWYYUMYO.js.map} +0 -0
- /package/dist/{chunk-U6JZGQXC.js.map → chunk-TZ7ZA2LM.js.map} +0 -0
- /package/dist/{chunk-JIB3UUYV.js.map → chunk-UH2VY2QQ.js.map} +0 -0
- /package/dist/{chunk-X5XK6WWV.js.map → chunk-VHQNJW4Q.js.map} +0 -0
- /package/dist/{chunk-3IA2SUWM.js.map → chunk-WRVKI6ZO.js.map} +0 -0
- /package/dist/{chunk-2CWCJYT3.js.map → chunk-XZLCAL5O.js.map} +0 -0
- /package/dist/{chunk-W7FZ7ZZE.js.map → chunk-Z6EFSXU3.js.map} +0 -0
- /package/dist/{chunk-GRX5BE73.js.map → chunk-ZNCCX7P6.js.map} +0 -0
- /package/dist/{entity-canonical-id-migration-74IDJFPB.js.map → entity-canonical-id-migration-46EMEXTB.js.map} +0 -0
- /package/dist/{resolution-RWIGFH2W.js.map → resolution-4QPPLDEN.js.map} +0 -0
|
@@ -108,9 +108,12 @@ function installScanSpy(sm: StorageManager): { scans: () => number } {
|
|
|
108
108
|
const spy = sm as unknown as ScanSpy;
|
|
109
109
|
const orig = spy._readAllMemoriesFromDisk.bind(sm);
|
|
110
110
|
let count = 0;
|
|
111
|
-
|
|
111
|
+
// Argument-transparent: the COS-825 snapshot parameter must reach the real
|
|
112
|
+
// scan or the spy itself would disable snapshot publication.
|
|
113
|
+
spy._readAllMemoriesFromDisk = async (...args: Parameters<StorageManager["_readAllMemoriesFromDisk"]>) => {
|
|
112
114
|
count += 1;
|
|
113
|
-
|
|
115
|
+
// @ts-expect-error -- the private method is exposed for observation only.
|
|
116
|
+
return orig(...args);
|
|
114
117
|
};
|
|
115
118
|
return { scans: () => count };
|
|
116
119
|
}
|
|
@@ -153,7 +156,7 @@ test("hot cache (#1902): a single-file write patches the cache in place — next
|
|
|
153
156
|
}
|
|
154
157
|
});
|
|
155
158
|
|
|
156
|
-
test("hot cache (#1902): a peer corpus-version bump
|
|
159
|
+
test("hot cache (#1902+COS-825): a peer corpus-version bump with unchanged disk promotes instead of rescanning", async () => {
|
|
157
160
|
const dir = await mkdtemp(path.join(os.tmpdir(), "remnic-hot-peer-"));
|
|
158
161
|
try {
|
|
159
162
|
resetStaticCaches();
|
|
@@ -163,10 +166,11 @@ test("hot cache (#1902): a peer corpus-version bump forces exactly one rescan (c
|
|
|
163
166
|
await sm.readAllMemories(); // warm
|
|
164
167
|
const spy = installScanSpy(sm);
|
|
165
168
|
// Simulate a peer process advancing the on-disk corpus sentinel (its byte
|
|
166
|
-
// size IS the version)
|
|
169
|
+
// size IS the version) without touching any file. The disk is provably
|
|
170
|
+
// unchanged, so the warm entry is validated and promoted — no re-read.
|
|
167
171
|
await appendFile(path.join(dir, "state", ".memory-corpus-version.log"), "x");
|
|
168
172
|
const afterPeer = await sm.readAllMemories();
|
|
169
|
-
assert.equal(spy.scans(),
|
|
173
|
+
assert.equal(spy.scans(), 0, "an unchanged disk must promote, not rescan");
|
|
170
174
|
assert.ok(afterPeer.some((m) => m.content === "A"));
|
|
171
175
|
} finally {
|
|
172
176
|
resetStaticCaches();
|
|
@@ -174,6 +178,39 @@ test("hot cache (#1902): a peer corpus-version bump forces exactly one rescan (c
|
|
|
174
178
|
}
|
|
175
179
|
});
|
|
176
180
|
|
|
181
|
+
test("hot cache (#1902+COS-825): a peer write forces exactly one rescan and is served", async () => {
|
|
182
|
+
const dir = await mkdtemp(path.join(os.tmpdir(), "remnic-hot-peer-write-"));
|
|
183
|
+
try {
|
|
184
|
+
resetStaticCaches();
|
|
185
|
+
const sm = new StorageManager(dir);
|
|
186
|
+
await sm.ensureDirectories();
|
|
187
|
+
await sm.writeMemory("fact", "A");
|
|
188
|
+
await sm.readAllMemories(); // warm
|
|
189
|
+
const spy = installScanSpy(sm);
|
|
190
|
+
// A peer process writes a NEW memory file out-of-band (plain fs write, no
|
|
191
|
+
// shared cache to patch) and advances the sentinel, its own write order.
|
|
192
|
+
const dateToken = new Date().toISOString().slice(0, 10);
|
|
193
|
+
const peerDir = path.join(dir, "facts", dateToken);
|
|
194
|
+
await mkdir(peerDir, { recursive: true });
|
|
195
|
+
await writeFile(
|
|
196
|
+
path.join(peerDir, "peerfact1.md"),
|
|
197
|
+
"---\nid: peerfact1\ncategory: fact\ncreated: 2026-12-02T00:00:00.000Z\n---\n\nPEER BODY\n",
|
|
198
|
+
);
|
|
199
|
+
await appendFile(path.join(dir, "state", ".memory-corpus-version.log"), "x");
|
|
200
|
+
const afterPeer = await sm.readAllMemories();
|
|
201
|
+
assert.equal(spy.scans(), 1, "a real peer write must force exactly one rescan");
|
|
202
|
+
assert.ok(afterPeer.some((m) => m.content === "PEER BODY"), "the peer's memory is served after the rescan");
|
|
203
|
+
assert.ok(afterPeer.some((m) => m.content === "A"));
|
|
204
|
+
// The rescan re-arms a valid snapshot: a further unchanged-disk bump promotes.
|
|
205
|
+
await appendFile(path.join(dir, "state", ".memory-corpus-version.log"), "x");
|
|
206
|
+
await sm.readAllMemories();
|
|
207
|
+
assert.equal(spy.scans(), 1, "the re-armed snapshot validates a second peer bump");
|
|
208
|
+
} finally {
|
|
209
|
+
resetStaticCaches();
|
|
210
|
+
await rm(dir, { recursive: true, force: true });
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
|
|
177
214
|
test("hot cache (#1902): a delete rescans and drops the removed memory", async () => {
|
|
178
215
|
const dir = await mkdtemp(path.join(os.tmpdir(), "remnic-hot-del-"));
|
|
179
216
|
try {
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* COS-825 — the hot-memories cache survives version churn by stat validation.
|
|
3
|
+
*
|
|
4
|
+
* The write path already patches the hot entry in place and re-keys it to the
|
|
5
|
+
* version it produced, so this process's own writes never re-read the corpus.
|
|
6
|
+
* What forced full re-reads was version churn the patch cannot see: peer
|
|
7
|
+
* processes (other daemons, CLI runs, converge sync) append to the same
|
|
8
|
+
* corpus-version sentinel, bulk mutations bump it, and every readAllMemories
|
|
9
|
+
* then re-read the whole store. The read path now validates the mismatched
|
|
10
|
+
* entry against its per-file stat snapshot (mtime + size + path set) and
|
|
11
|
+
* promotes it instead — the disk is provably unchanged, so the promoted entry
|
|
12
|
+
* is exactly what a fresh scan would return. Any real disk change fails
|
|
13
|
+
* validation and forces the scan.
|
|
14
|
+
*/
|
|
15
|
+
import assert from "node:assert/strict";
|
|
16
|
+
import { mkdtemp, readFile, rm, unlink, utimes, writeFile } from "node:fs/promises";
|
|
17
|
+
import { tmpdir } from "node:os";
|
|
18
|
+
import path from "node:path";
|
|
19
|
+
import test from "node:test";
|
|
20
|
+
|
|
21
|
+
import { clearMemoryCache, hotCacheReadStats } from "./memory-cache.js";
|
|
22
|
+
import { StorageManager } from "./storage.js";
|
|
23
|
+
import { bumpMemoryCorpusVersionForDir } from "./memory-corpus-version.js";
|
|
24
|
+
|
|
25
|
+
async function withDir(run: (memoryDir: string, storage: StorageManager) => Promise<void>) {
|
|
26
|
+
const memoryDir = await mkdtemp(path.join(tmpdir(), "remnic-hot-stat-"));
|
|
27
|
+
// The read counters are process-global: reset them so assertions measure
|
|
28
|
+
// only this test's reads.
|
|
29
|
+
clearMemoryCache();
|
|
30
|
+
try {
|
|
31
|
+
const storage = new StorageManager(memoryDir);
|
|
32
|
+
await storage.ensureDirectories();
|
|
33
|
+
await run(memoryDir, storage);
|
|
34
|
+
} finally {
|
|
35
|
+
clearMemoryCache();
|
|
36
|
+
await rm(memoryDir, { recursive: true, force: true });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
test("a peer process version bump promotes the unchanged entry instead of re-reading (COS-825)", async () => {
|
|
41
|
+
await withDir(async (_memoryDir, storage) => {
|
|
42
|
+
await storage.writeMemory("fact", "alpha stat fact", { source: "test" });
|
|
43
|
+
await storage.writeMemory("fact", "bravo stat fact", { source: "test" });
|
|
44
|
+
await storage.readAllMemories();
|
|
45
|
+
const scansAfterFirst = hotCacheReadStats.fullScans;
|
|
46
|
+
assert.equal(scansAfterFirst, 1, "first read is a full scan");
|
|
47
|
+
|
|
48
|
+
// A peer process bump (shared sentinel append, no local file change):
|
|
49
|
+
// the disk is unchanged, so stat validation must promote the entry.
|
|
50
|
+
bumpMemoryCorpusVersionForDir(storage.dir);
|
|
51
|
+
const memories = await storage.readAllMemories();
|
|
52
|
+
assert.equal(hotCacheReadStats.fullScans, scansAfterFirst, "no full scan for an unchanged disk");
|
|
53
|
+
assert.equal(hotCacheReadStats.validatedHits, 1, "the entry was validated and promoted");
|
|
54
|
+
assert.equal(memories.length, 2);
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
test("a write patch drops the stat snapshot, so peer churn costs a full scan (COS-825 review)", async () => {
|
|
59
|
+
await withDir(async (_memoryDir, storage) => {
|
|
60
|
+
await storage.writeMemory("fact", "alpha patch fact", { source: "test" });
|
|
61
|
+
await storage.readAllMemories();
|
|
62
|
+
const scansAfterFirst = hotCacheReadStats.fullScans;
|
|
63
|
+
await storage.writeMemory("fact", "charlie patch fact", { source: "test" });
|
|
64
|
+
// Own writes patch + re-key the entry: the fast path serves without a scan.
|
|
65
|
+
let memories = await storage.readAllMemories();
|
|
66
|
+
assert.equal(hotCacheReadStats.fullScans, scansAfterFirst, "a patched write needs no scan");
|
|
67
|
+
assert.ok(memories.some((memory) => memory.content.includes("charlie patch fact")), "patched content is fresh");
|
|
68
|
+
// The patch invalidated the snapshot (a peer may have rewritten the same
|
|
69
|
+
// path between content and stat), so the later peer bump must re-read:
|
|
70
|
+
// promoting a snapshot the write path cannot vouch for would be a false pass.
|
|
71
|
+
bumpMemoryCorpusVersionForDir(storage.dir);
|
|
72
|
+
memories = await storage.readAllMemories();
|
|
73
|
+
assert.equal(hotCacheReadStats.fullScans, scansAfterFirst + 1, "peer churn after a patch re-reads (fail closed)");
|
|
74
|
+
assert.equal(hotCacheReadStats.validatedHits, 0);
|
|
75
|
+
assert.equal(memories.length, 2);
|
|
76
|
+
assert.ok(memories.some((memory) => memory.content.includes("charlie patch fact")), "the scan serves fresh content");
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
test("an out-of-band delete fails stat validation and forces a full scan (COS-825)", async () => {
|
|
81
|
+
await withDir(async (_memoryDir, storage) => {
|
|
82
|
+
const a = await storage.writeMemory("fact", "alpha delete fact", { source: "test" });
|
|
83
|
+
await storage.writeMemory("fact", "bravo delete fact", { source: "test" });
|
|
84
|
+
await storage.readAllMemories();
|
|
85
|
+
const scansAfterFirst = hotCacheReadStats.fullScans;
|
|
86
|
+
|
|
87
|
+
const memoryPath = (await storage.getMemoryById(a.id))!.path;
|
|
88
|
+
await unlink(memoryPath);
|
|
89
|
+
bumpMemoryCorpusVersionForDir(storage.dir);
|
|
90
|
+
const memories = await storage.readAllMemories();
|
|
91
|
+
assert.equal(hotCacheReadStats.fullScans, scansAfterFirst + 1, "a real disk change forces the scan");
|
|
92
|
+
assert.equal(hotCacheReadStats.validatedHits, 0, "no validated hit when a file vanished");
|
|
93
|
+
assert.ok(!memories.some((memory) => memory.content.includes("alpha delete fact")));
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
|
|
97
|
+
test("an out-of-band edit fails stat validation and the new content is served (COS-825)", async () => {
|
|
98
|
+
await withDir(async (_memoryDir, storage) => {
|
|
99
|
+
const a = await storage.writeMemory("fact", "alpha edit fact", { source: "test" });
|
|
100
|
+
await storage.readAllMemories();
|
|
101
|
+
const scansAfterFirst = hotCacheReadStats.fullScans;
|
|
102
|
+
|
|
103
|
+
const memoryPath = (await storage.getMemoryById(a.id))!.path;
|
|
104
|
+
// Preserve the frontmatter: edit the raw file text like an out-of-band writer.
|
|
105
|
+
await writeFile(memoryPath, (await readFile(memoryPath, "utf8")).replace("alpha", "OMEGA"));
|
|
106
|
+
await utimes(memoryPath, new Date(), new Date(Date.now() + 5_000));
|
|
107
|
+
bumpMemoryCorpusVersionForDir(storage.dir);
|
|
108
|
+
const memories = await storage.readAllMemories();
|
|
109
|
+
assert.equal(hotCacheReadStats.fullScans, scansAfterFirst + 1, "the edit forces the scan");
|
|
110
|
+
assert.ok(memories.some((memory) => memory.content.includes("OMEGA")), "new content is visible");
|
|
111
|
+
});
|
|
112
|
+
});
|
package/src/storage.ts
CHANGED
|
@@ -75,17 +75,20 @@ import { decodeYamlScalar } from "./utils/yaml-scalar.js";
|
|
|
75
75
|
import { qmdCollectionPathParts, qmdResultPathCandidates } from "./orchestration/qmd-result-resolver.js";
|
|
76
76
|
import {
|
|
77
77
|
clearMemoryCache,
|
|
78
|
-
getCachedEntities,
|
|
79
78
|
getCachedMemories,
|
|
79
|
+
getHotCacheEntry,
|
|
80
80
|
invalidateAllForDir,
|
|
81
81
|
invalidateDerivedAndGlobalForDir,
|
|
82
82
|
invalidateForScope,
|
|
83
83
|
invalidateForScopeExceptHot,
|
|
84
|
-
setCachedEntities,
|
|
85
84
|
setCachedMemories,
|
|
86
85
|
updateCacheOnDelete,
|
|
87
86
|
updateCacheOnWrite,
|
|
87
|
+
type HotCacheStatsSnapshot,
|
|
88
88
|
} from "./memory-cache.js";
|
|
89
|
+
import {
|
|
90
|
+
publishCorpusAfterScan, readWithStableStat, serveHotMemoriesValidated,
|
|
91
|
+
} from "./storage/hot-cache-validation.js";
|
|
89
92
|
import {
|
|
90
93
|
attachInFlightReader,
|
|
91
94
|
beginCoalescedScan,
|
|
@@ -93,6 +96,7 @@ import {
|
|
|
93
96
|
deleteInFlightReadsForDir,
|
|
94
97
|
clearInFlightReads,
|
|
95
98
|
} from "./in-flight-reads.js";
|
|
99
|
+
|
|
96
100
|
import { entityMentionEpoch } from "./entity-mention-epoch.js";
|
|
97
101
|
import { holdMentionNeutralFrontmatter } from "./storage/entity-mention-frontmatter-hold.js";
|
|
98
102
|
import * as archive from "./archive-mutation-version.js";
|
|
@@ -4359,15 +4363,10 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
4359
4363
|
// keep the file text, and publishing the raw-free objects would strip it
|
|
4360
4364
|
// for every later caller.
|
|
4361
4365
|
if (options?.retainRaw === false) return this._readAllMemoriesFromDisk(options);
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4366
|
-
this.hotCacheKeyId(),
|
|
4367
|
-
this.hotCacheTtlMs()
|
|
4368
|
-
);
|
|
4369
|
-
if (cached !== null) return this.rememberMemorySnapshots(cached);
|
|
4370
|
-
}
|
|
4366
|
+
const cached = this.hotMemoriesCacheEnabled
|
|
4367
|
+
? getCachedMemories(this.baseDir, this.getMemoryCorpusVersion(), this.hotCacheKeyId(), this.hotCacheTtlMs())
|
|
4368
|
+
: null;
|
|
4369
|
+
if (cached !== null) return this.rememberMemorySnapshots(cached);
|
|
4371
4370
|
// Snapshot the secure-store key identity ONCE (issue #1902, Codex Medium):
|
|
4372
4371
|
// hotCacheKeyId() can change mid-scan if setSecureStoreKey(null/other) runs
|
|
4373
4372
|
// during the await. Recomputing it at publish time would store K-decrypted
|
|
@@ -4376,35 +4375,22 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
4376
4375
|
// The in-flight slot get/set/delete also key on this snapshot so a mid-scan
|
|
4377
4376
|
// key change can't orphan the slot registered under the old identity.
|
|
4378
4377
|
const keyId = this.hotCacheKeyId();
|
|
4379
|
-
const
|
|
4380
|
-
if (
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
|
|
4389
|
-
inFlight.waiter.leave();
|
|
4390
|
-
}
|
|
4391
|
-
}
|
|
4392
|
-
|
|
4393
|
-
// Sole-waiter cancellation lives with the registry that decides whether this
|
|
4394
|
-
// scan is still cancellable at all — see `beginCoalescedScan` (issue #2307).
|
|
4378
|
+
const joined = await this.tryJoinInFlight(keyId, options);
|
|
4379
|
+
if (joined !== null) return joined;
|
|
4380
|
+
const served = await serveHotMemoriesValidated(this, options?.abortSignal);
|
|
4381
|
+
if (served !== null) return this.rememberMemorySnapshots(served);
|
|
4382
|
+
// COS-825 round-5 re-probe: cold bursts all pass the first probe before validation yields.
|
|
4383
|
+
const rejoined = await this.tryJoinInFlight(keyId, options);
|
|
4384
|
+
if (rejoined !== null) return rejoined;
|
|
4385
|
+
|
|
4386
|
+
// Sole-waiter cancellation lives with the registry that decides whether this scan is
|
|
4387
|
+
// still cancellable at all — see `beginCoalescedScan` (issue #2307).
|
|
4395
4388
|
const scan = beginCoalescedScan(this.baseDir, keyId, options?.abortSignal);
|
|
4396
4389
|
const readPromise = (async (): Promise<MemoryFile[]> => {
|
|
4397
4390
|
const version = this.getMemoryCorpusVersion();
|
|
4398
|
-
const
|
|
4399
|
-
|
|
4400
|
-
|
|
4401
|
-
// re-keyed entry; the keyId guard prevents publishing this key's decrypted
|
|
4402
|
-
// corpus under a since-changed identity (Codex Medium, #1902). A cancelled
|
|
4403
|
-
// scan never arrives here — the checkpoints throw — so a partial corpus is
|
|
4404
|
-
// never published.
|
|
4405
|
-
if (this.hotMemoriesCacheEnabled && this.getMemoryCorpusVersion() === version && this.hotCacheKeyId() === keyId) {
|
|
4406
|
-
setCachedMemories(this.baseDir, memories, version, keyId, this.hotCacheTtlMs());
|
|
4407
|
-
}
|
|
4391
|
+
const snapshot: HotCacheStatsSnapshot | undefined = this.isHotCacheEnabled() ? new Map() : undefined;
|
|
4392
|
+
const memories = await this._readAllMemoriesFromDisk({ abortSignal: scan.scanSignal }, snapshot);
|
|
4393
|
+
await publishCorpusAfterScan(this, memories, version, keyId, snapshot);
|
|
4408
4394
|
return memories;
|
|
4409
4395
|
})();
|
|
4410
4396
|
scan.arm(readPromise);
|
|
@@ -4425,6 +4411,17 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
4425
4411
|
}
|
|
4426
4412
|
}
|
|
4427
4413
|
|
|
4414
|
+
/** Join an in-flight corpus scan if one exists (null = caller starts the scan); joins precede COS-825 validation. */
|
|
4415
|
+
private async tryJoinInFlight(keyId: string, options?: CorpusReadOptions): Promise<MemoryFile[] | null> {
|
|
4416
|
+
const inFlight = attachInFlightReader(this.baseDir, keyId, options?.abortSignal);
|
|
4417
|
+
if (!inFlight) return null;
|
|
4418
|
+
try {
|
|
4419
|
+
return this.rememberMemorySnapshots(await raceAbort(inFlight.read, options?.abortSignal, "corpus read aborted"));
|
|
4420
|
+
} finally {
|
|
4421
|
+
inFlight.waiter.leave();
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
|
|
4428
4425
|
/** Invalidate the readAllMemories() cache after writes that add/remove memories. */
|
|
4429
4426
|
/** Public cache invalidation for callers that need authoritative disk reads
|
|
4430
4427
|
* (e.g. projection verify/rebuild). */
|
|
@@ -4606,7 +4603,13 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
4606
4603
|
// newer version, or our patched corpus lacks a peer's write — either way
|
|
4607
4604
|
// leave it version-rejected so the next read rescans.
|
|
4608
4605
|
const patched = getCachedMemories(this.baseDir, prevVersion, keyId);
|
|
4609
|
-
if (patched)
|
|
4606
|
+
if (patched) {
|
|
4607
|
+
// COS-825: carry the stat snapshot through the re-key (updateCacheOnWrite
|
|
4608
|
+
// already refreshed the written file's entry) so later version churn can
|
|
4609
|
+
// still be validated instead of re-read.
|
|
4610
|
+
const stats = getHotCacheEntry(this.baseDir, keyId)?.stats;
|
|
4611
|
+
setCachedMemories(this.baseDir, patched, produced, keyId, this.hotCacheTtlMs(), stats);
|
|
4612
|
+
}
|
|
4610
4613
|
}
|
|
4611
4614
|
// Evict the non-hot layers; the hot layer is patched (or intentionally left
|
|
4612
4615
|
// to be version-rejected) above, not dropped here. Scope-aware (issue #1904):
|
|
@@ -4707,6 +4710,7 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
4707
4710
|
filePaths: string[],
|
|
4708
4711
|
batchSize?: number,
|
|
4709
4712
|
options?: CorpusReadOptions,
|
|
4713
|
+
snapshot?: HotCacheStatsSnapshot,
|
|
4710
4714
|
): Promise<MemoryFile[]> {
|
|
4711
4715
|
if (filePaths.length === 0) return [];
|
|
4712
4716
|
|
|
@@ -4720,8 +4724,11 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
4720
4724
|
const results = await Promise.all(
|
|
4721
4725
|
batch.map(async (fullPath) => {
|
|
4722
4726
|
try {
|
|
4723
|
-
const
|
|
4724
|
-
|
|
4727
|
+
const read = await readWithStableStat(fullPath, snapshot, () =>
|
|
4728
|
+
readMaybeEncryptedFile(fullPath, this._secureStoreKey, this.baseDir));
|
|
4729
|
+
if (read === null) return null;
|
|
4730
|
+
const parsed = parseFrontmatter(read.raw);
|
|
4731
|
+
if (parsed && snapshot) snapshot.set(fullPath, read.stat); // COS-825 round 3
|
|
4725
4732
|
if (!parsed) return null;
|
|
4726
4733
|
const memory = {
|
|
4727
4734
|
path: fullPath,
|
|
@@ -4732,7 +4739,7 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
4732
4739
|
),
|
|
4733
4740
|
content: parsed.content,
|
|
4734
4741
|
} satisfies MemoryFile;
|
|
4735
|
-
return options?.retainRaw === false ? memory : rememberRawFrontmatter(memory, raw);
|
|
4742
|
+
return options?.retainRaw === false ? memory : rememberRawFrontmatter(memory, read.raw);
|
|
4736
4743
|
} catch (err) {
|
|
4737
4744
|
// Re-throw store-locked errors so a locked encrypted store fails
|
|
4738
4745
|
// loudly rather than appearing as an empty memory corpus (Cursor
|
|
@@ -4854,9 +4861,9 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
4854
4861
|
return readWindowedMemories(this.memoryReadStore, options, { enabled: this.hotMemoriesCacheEnabled, baseDir: this.baseDir, corpusVersion: this.getMemoryCorpusVersion(), cacheKeyId: this.hotCacheKeyId(), ttlMs: this.hotCacheTtlMs() }, (memories) => this.rememberMemorySnapshots(memories));
|
|
4855
4862
|
}
|
|
4856
4863
|
|
|
4857
|
-
private async _readAllMemoriesFromDisk(options?: CorpusReadOptions): Promise<MemoryFile[]> {
|
|
4864
|
+
private async _readAllMemoriesFromDisk(options?: CorpusReadOptions, snapshot?: HotCacheStatsSnapshot): Promise<MemoryFile[]> {
|
|
4858
4865
|
const filePaths = await this.collectActiveMemoryPaths(options);
|
|
4859
|
-
return this.readParsedMemoriesFromPaths(filePaths, 50, options);
|
|
4866
|
+
return this.readParsedMemoriesFromPaths(filePaths, 50, options, snapshot);
|
|
4860
4867
|
}
|
|
4861
4868
|
|
|
4862
4869
|
async readAllColdMemories(options?: CorpusReadOptions): Promise<MemoryFile[]> {
|
|
@@ -6611,7 +6618,14 @@ export class StorageManager extends TombstoneBlockedCaptureIndexHost {
|
|
|
6611
6618
|
}
|
|
6612
6619
|
: m;
|
|
6613
6620
|
});
|
|
6614
|
-
setCachedMemories(
|
|
6621
|
+
setCachedMemories(
|
|
6622
|
+
this.baseDir,
|
|
6623
|
+
reapplied,
|
|
6624
|
+
produced,
|
|
6625
|
+
keyId,
|
|
6626
|
+
this.hotCacheTtlMs(),
|
|
6627
|
+
getHotCacheEntry(this.baseDir, keyId)?.stats,
|
|
6628
|
+
);
|
|
6615
6629
|
}
|
|
6616
6630
|
}
|
|
6617
6631
|
// Evict the derived (episode/rule) + global (QMD recall/search) layers,
|
package/src/types.ts
CHANGED
|
@@ -1447,6 +1447,8 @@ export interface PluginConfig
|
|
|
1447
1447
|
memoryRedTeamBenchEnabled: boolean;
|
|
1448
1448
|
// Harmonic retrieval foundation
|
|
1449
1449
|
harmonicRetrievalEnabled: boolean;
|
|
1450
|
+
/** COS-825: shared harmonic graph cache time-to-live in ms; writes invalidate immediately. */
|
|
1451
|
+
harmonicGraphCacheTtlMs: number;
|
|
1450
1452
|
abstractionAnchorsEnabled: boolean;
|
|
1451
1453
|
abstractionNodeStoreDir: string;
|
|
1452
1454
|
episodicContextEnabled: boolean;
|