@remnic/core 10.0.128 → 10.0.130
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/access-admin-ops-surface.js +104 -103
- package/dist/access-cli.js +104 -103
- package/dist/access-cli.js.map +1 -1
- package/dist/access-extraction-force-flush.js +104 -103
- package/dist/access-health-types.d.ts +8 -0
- package/dist/access-health-types.d.ts.map +1 -1
- package/dist/access-http-briefing.js +104 -103
- package/dist/access-http-query.js +104 -103
- package/dist/access-http.js +104 -103
- package/dist/access-identity-continuity-surface.js +104 -103
- package/dist/access-lcm-surface.js +104 -103
- package/dist/access-mcp.js +104 -103
- package/dist/access-observe-write-category.js +6 -6
- package/dist/access-observe-write-surface.js +104 -103
- package/dist/access-offline-manifest.js +5 -5
- package/dist/access-operations-batch.js +104 -103
- package/dist/access-operations.js +104 -103
- package/dist/access-recall-concurrency.js +104 -103
- package/dist/access-recall-response.js +104 -103
- package/dist/access-recall-surface.js +104 -103
- package/dist/access-schema.js +5 -5
- package/dist/access-service.d.ts.map +1 -1
- package/dist/access-service.js +104 -103
- package/dist/active-recall.js +13 -13
- package/dist/adapters/agy.d.ts +22 -0
- package/dist/adapters/agy.d.ts.map +1 -0
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.d.ts.map +1 -1
- package/dist/adapters/registry.js +2 -2
- package/dist/briefing.js +6 -6
- package/dist/buffer-ingress-counters.d.ts +100 -0
- package/dist/buffer-ingress-counters.d.ts.map +1 -0
- package/dist/buffer-ingress-counters.js +11 -0
- package/dist/buffer-turn-helpers.d.ts +6 -0
- package/dist/buffer-turn-helpers.d.ts.map +1 -1
- package/dist/buffer-turn-helpers.js +3 -1
- package/dist/buffer.d.ts +8 -1
- package/dist/buffer.d.ts.map +1 -1
- package/dist/buffer.js +3 -2
- package/dist/calibration.js +2 -2
- package/dist/causal-behavior.js +2 -2
- package/dist/causal-chain.js +2 -2
- package/dist/causal-consolidation.js +9 -9
- package/dist/causal-retrieval.js +2 -2
- package/dist/causal-trajectory-graph.js +2 -2
- package/dist/causal-trajectory.js +1 -1
- package/dist/{chunk-ID65XTF3.js → chunk-2JAT4S7N.js} +2 -2
- package/dist/{chunk-BR7CZVMO.js → chunk-2UW3EM3U.js} +6 -1
- package/dist/chunk-2UW3EM3U.js.map +1 -0
- package/dist/{chunk-ORMJT23N.js → chunk-3OT6JDMD.js} +8 -8
- package/dist/{chunk-SU42FIJ7.js → chunk-3RW5ZCYO.js} +2 -2
- package/dist/{chunk-TJJPT2OV.js → chunk-3S7BUGYC.js} +2 -2
- package/dist/{chunk-7TC2PWKH.js → chunk-4KWR7M3Q.js} +2 -2
- package/dist/{chunk-WRGW76LI.js → chunk-5BE3FLKL.js} +6 -6
- package/dist/{chunk-JK2IVISS.js → chunk-5FWPLAKP.js} +2 -2
- package/dist/{chunk-PPPY2PCU.js → chunk-5OW73TEG.js} +2 -2
- package/dist/{chunk-DTTDMK7Q.js → chunk-5RONA5FF.js} +4 -4
- package/dist/{chunk-6FPJPSQK.js → chunk-6P5PIOWW.js} +2 -2
- package/dist/{chunk-HJ7M322C.js → chunk-6PQVAYQJ.js} +2 -2
- package/dist/{chunk-QKYOMKRG.js → chunk-7C7M2P43.js} +2 -2
- package/dist/{chunk-XMKUABIG.js → chunk-AAV726HQ.js} +3 -3
- package/dist/{chunk-ASINXIKX.js → chunk-AWKD2A73.js} +12 -12
- package/dist/{chunk-XUWDB53W.js → chunk-BAKCGJRQ.js} +3 -3
- package/dist/{chunk-ALLI23GW.js → chunk-BE5F6KFG.js} +2 -2
- package/dist/{chunk-MGCV3VGC.js → chunk-BOK5D46I.js} +2 -2
- package/dist/{chunk-FBXU7X27.js → chunk-BTY6DUFW.js} +2 -2
- package/dist/{chunk-FPBFDQZZ.js → chunk-CFJBSE7J.js} +11 -11
- package/dist/{chunk-WYABF2WA.js → chunk-CLVILSBR.js} +3 -3
- package/dist/{chunk-BFBS7OFQ.js → chunk-DC55RIEZ.js} +4 -4
- package/dist/{chunk-NYZ6ZNFO.js → chunk-FCW4FUF2.js} +5 -5
- package/dist/{chunk-7QDB7P3V.js → chunk-FMFCQRDM.js} +3 -3
- package/dist/{chunk-CUKYV5O3.js → chunk-GCHM5BYL.js} +30 -4
- package/dist/chunk-GCHM5BYL.js.map +1 -0
- package/dist/{chunk-K36RMINQ.js → chunk-GOZXQNIM.js} +3 -3
- package/dist/{chunk-YFUHFPV6.js → chunk-HILGHLPA.js} +10 -10
- package/dist/{chunk-EFHM4VDG.js → chunk-HLWXCDUQ.js} +2 -2
- package/dist/{chunk-JCPEXUNP.js → chunk-IUVTFQWY.js} +2 -2
- package/dist/{chunk-YPE3O5VH.js → chunk-JHKCS6EN.js} +2 -2
- package/dist/{chunk-UWU6KEZU.js → chunk-JVQNRSWO.js} +2 -2
- package/dist/{chunk-PAGVXEWG.js → chunk-KLUCX6OH.js} +2 -2
- package/dist/{chunk-ELBZT6RU.js → chunk-KVCFAWBZ.js} +2 -2
- package/dist/{chunk-W4Q65VJL.js → chunk-MZCGHPIJ.js} +2 -2
- package/dist/{chunk-2BBCM2PX.js → chunk-N36J3MIB.js} +2 -2
- package/dist/{chunk-AYBRQJXP.js → chunk-NVKWV4W3.js} +2 -2
- package/dist/{chunk-ZUMHQEW4.js → chunk-QHDBKC5Z.js} +4 -4
- package/dist/chunk-RADARJEC.js +156 -0
- package/dist/chunk-RADARJEC.js.map +1 -0
- package/dist/{chunk-3OLHDECL.js → chunk-RMU3O74L.js} +157 -150
- package/dist/chunk-RMU3O74L.js.map +1 -0
- package/dist/{chunk-MCTGYIYN.js → chunk-RXD46MY6.js} +2 -2
- package/dist/{chunk-TJY6AKWV.js → chunk-SULNVNTU.js} +2 -2
- package/dist/{chunk-34YQ7CVE.js → chunk-TL6QIZT7.js} +18 -14
- package/dist/chunk-TL6QIZT7.js.map +1 -0
- package/dist/{chunk-7T7I5D3F.js → chunk-TSJQ7C2T.js} +6 -6
- package/dist/{chunk-HQPFACXO.js → chunk-UH3FPX3L.js} +2 -2
- package/dist/{chunk-6SRYCJ5I.js → chunk-V6JECHY6.js} +5 -5
- package/dist/{chunk-YCJRYM3Q.js → chunk-VAMCJPJT.js} +3 -3
- package/dist/{chunk-QC2MHZDD.js → chunk-VEFGHRKV.js} +1 -1
- package/dist/{chunk-O62MMJWV.js → chunk-VO3HCFSR.js} +2 -2
- package/dist/{chunk-4DJSDH2M.js → chunk-W5GGKQVS.js} +5 -5
- package/dist/{chunk-TQ5NOVMT.js → chunk-X7EAMNKR.js} +2 -2
- package/dist/{chunk-G53I363P.js → chunk-XF2QQQXO.js} +2 -2
- package/dist/{chunk-GWFL6LUU.js → chunk-XUS2UQOO.js} +2 -2
- package/dist/{chunk-FZVROZKC.js → chunk-XVZA6VXC.js} +4 -4
- package/dist/{chunk-VPEIWMUT.js → chunk-YLTU2DC4.js} +2 -2
- package/dist/{chunk-PXZLVFNC.js → chunk-YQXD57ZS.js} +2 -2
- package/dist/{chunk-LR2X3FJM.js → chunk-YW63C4FO.js} +9 -9
- package/dist/{chunk-LU2GQ4Q4.js → chunk-YYHBB565.js} +2 -2
- package/dist/{chunk-2G72JBQB.js → chunk-ZCXZNK4G.js} +2 -2
- package/dist/{chunk-ZO377APE.js → chunk-ZMDXISMQ.js} +3 -3
- package/dist/cli.js +104 -103
- package/dist/coding/export-okf-codegraph.js +5 -5
- package/dist/coding/pre-action-gate.js +2 -2
- package/dist/compounding/engine.js +7 -7
- package/dist/config.js +13 -13
- package/dist/connectors/codex-materialize-runner.js +6 -6
- package/dist/connectors/index.js +6 -6
- package/dist/consolidation-provenance-check.js +2 -2
- package/dist/convergence-refresh.js +8 -8
- package/dist/corpus-watermark.js +8 -8
- package/dist/deep-recall-http-glue.js +6 -6
- package/dist/embedding-fallback.js +2 -2
- package/dist/entity-retrieval.js +8 -8
- package/dist/explicit-capture.js +104 -103
- package/dist/extraction-span-materialize.js +2 -2
- package/dist/extraction.js +13 -13
- package/dist/{graph-edge-decay-CXTNJ7IQ.js → graph-edge-decay-EKWXRBWF.js} +5 -5
- package/dist/graph-edge-decay-EKWXRBWF.js.map +1 -0
- package/dist/graph-jsonl.js +3 -3
- package/dist/graph-snapshot.js +3 -3
- package/dist/graph.js +2 -2
- package/dist/harmonic-retrieval.js +6 -6
- package/dist/index.js +167 -166
- package/dist/lcm/index.js +3 -3
- package/dist/local-llm.js +2 -2
- package/dist/location/index.js +7 -7
- package/dist/maintenance/memory-governance.js +6 -6
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +6 -6
- package/dist/maintenance/rebuild-memory-projection-runner.js +8 -8
- package/dist/maintenance/rebuild-memory-projection.js +7 -7
- package/dist/namespaces/migrate.js +7 -7
- package/dist/namespaces/storage.js +6 -6
- package/dist/offline-sync-changeset-generations.js +3 -3
- package/dist/offline-sync-embedding-generation.js +2 -2
- package/dist/offline-sync-snapshot-stream.js +5 -5
- package/dist/offline-sync.js +4 -4
- package/dist/operator-doctor-corpus.js +9 -9
- package/dist/operator-toolkit.js +23 -23
- package/dist/orchestration/backlog-scheduler.js +105 -104
- package/dist/orchestration/backlog-scheduler.js.map +1 -1
- package/dist/orchestration/buffer-drain-runner.js +105 -104
- package/dist/orchestration/maintenance.js +16 -16
- package/dist/orchestrator.js +104 -103
- package/dist/recall-navigation.js +104 -103
- package/dist/resume-bundles.js +16 -16
- package/dist/semantic-consolidation.js +10 -10
- package/dist/semantic-rule-promotion.js +6 -6
- package/dist/semantic-rule-verifier.js +6 -6
- package/dist/source-agent-qualifier.js +6 -6
- package/dist/standup/build.js +6 -6
- package/dist/storage/buffer-drain-claims.js +2 -2
- package/dist/storage/buffer-session-files.js +2 -2
- package/dist/storage.js +5 -5
- package/dist/summarizer.js +3 -3
- package/dist/support-passport/index.js +3 -3
- package/dist/transcript.js +2 -2
- package/dist/transfer/export-okf.js +6 -6
- package/dist/verified-recall.js +6 -6
- package/dist/who-knows-cli.js +7 -7
- package/dist/who-knows.js +6 -6
- package/package.json +2 -2
- package/src/access-health-types.ts +8 -0
- package/src/access-http.test.ts +18 -0
- package/src/access-service-health-ingress.test.ts +113 -0
- package/src/access-service.ts +14 -7
- package/src/adapters/agy.test.ts +75 -0
- package/src/adapters/agy.ts +45 -0
- package/src/adapters/grok-opencode.test.ts +1 -0
- package/src/adapters/registry.ts +2 -0
- package/src/buffer-ingress-counters.test.ts +310 -0
- package/src/buffer-ingress-counters.ts +278 -0
- package/src/buffer-ingress-invariant.test.ts +290 -0
- package/src/buffer-turn-helpers.ts +10 -0
- package/src/buffer.ts +19 -21
- package/dist/chunk-34YQ7CVE.js.map +0 -1
- package/dist/chunk-3OLHDECL.js.map +0 -1
- package/dist/chunk-BR7CZVMO.js.map +0 -1
- package/dist/chunk-CUKYV5O3.js.map +0 -1
- /package/dist/{graph-edge-decay-CXTNJ7IQ.js.map → buffer-ingress-counters.js.map} +0 -0
- /package/dist/{chunk-ID65XTF3.js.map → chunk-2JAT4S7N.js.map} +0 -0
- /package/dist/{chunk-ORMJT23N.js.map → chunk-3OT6JDMD.js.map} +0 -0
- /package/dist/{chunk-SU42FIJ7.js.map → chunk-3RW5ZCYO.js.map} +0 -0
- /package/dist/{chunk-TJJPT2OV.js.map → chunk-3S7BUGYC.js.map} +0 -0
- /package/dist/{chunk-7TC2PWKH.js.map → chunk-4KWR7M3Q.js.map} +0 -0
- /package/dist/{chunk-WRGW76LI.js.map → chunk-5BE3FLKL.js.map} +0 -0
- /package/dist/{chunk-JK2IVISS.js.map → chunk-5FWPLAKP.js.map} +0 -0
- /package/dist/{chunk-PPPY2PCU.js.map → chunk-5OW73TEG.js.map} +0 -0
- /package/dist/{chunk-DTTDMK7Q.js.map → chunk-5RONA5FF.js.map} +0 -0
- /package/dist/{chunk-6FPJPSQK.js.map → chunk-6P5PIOWW.js.map} +0 -0
- /package/dist/{chunk-HJ7M322C.js.map → chunk-6PQVAYQJ.js.map} +0 -0
- /package/dist/{chunk-QKYOMKRG.js.map → chunk-7C7M2P43.js.map} +0 -0
- /package/dist/{chunk-XMKUABIG.js.map → chunk-AAV726HQ.js.map} +0 -0
- /package/dist/{chunk-ASINXIKX.js.map → chunk-AWKD2A73.js.map} +0 -0
- /package/dist/{chunk-XUWDB53W.js.map → chunk-BAKCGJRQ.js.map} +0 -0
- /package/dist/{chunk-ALLI23GW.js.map → chunk-BE5F6KFG.js.map} +0 -0
- /package/dist/{chunk-MGCV3VGC.js.map → chunk-BOK5D46I.js.map} +0 -0
- /package/dist/{chunk-FBXU7X27.js.map → chunk-BTY6DUFW.js.map} +0 -0
- /package/dist/{chunk-FPBFDQZZ.js.map → chunk-CFJBSE7J.js.map} +0 -0
- /package/dist/{chunk-WYABF2WA.js.map → chunk-CLVILSBR.js.map} +0 -0
- /package/dist/{chunk-BFBS7OFQ.js.map → chunk-DC55RIEZ.js.map} +0 -0
- /package/dist/{chunk-NYZ6ZNFO.js.map → chunk-FCW4FUF2.js.map} +0 -0
- /package/dist/{chunk-7QDB7P3V.js.map → chunk-FMFCQRDM.js.map} +0 -0
- /package/dist/{chunk-K36RMINQ.js.map → chunk-GOZXQNIM.js.map} +0 -0
- /package/dist/{chunk-YFUHFPV6.js.map → chunk-HILGHLPA.js.map} +0 -0
- /package/dist/{chunk-EFHM4VDG.js.map → chunk-HLWXCDUQ.js.map} +0 -0
- /package/dist/{chunk-JCPEXUNP.js.map → chunk-IUVTFQWY.js.map} +0 -0
- /package/dist/{chunk-YPE3O5VH.js.map → chunk-JHKCS6EN.js.map} +0 -0
- /package/dist/{chunk-UWU6KEZU.js.map → chunk-JVQNRSWO.js.map} +0 -0
- /package/dist/{chunk-PAGVXEWG.js.map → chunk-KLUCX6OH.js.map} +0 -0
- /package/dist/{chunk-ELBZT6RU.js.map → chunk-KVCFAWBZ.js.map} +0 -0
- /package/dist/{chunk-W4Q65VJL.js.map → chunk-MZCGHPIJ.js.map} +0 -0
- /package/dist/{chunk-2BBCM2PX.js.map → chunk-N36J3MIB.js.map} +0 -0
- /package/dist/{chunk-AYBRQJXP.js.map → chunk-NVKWV4W3.js.map} +0 -0
- /package/dist/{chunk-ZUMHQEW4.js.map → chunk-QHDBKC5Z.js.map} +0 -0
- /package/dist/{chunk-MCTGYIYN.js.map → chunk-RXD46MY6.js.map} +0 -0
- /package/dist/{chunk-TJY6AKWV.js.map → chunk-SULNVNTU.js.map} +0 -0
- /package/dist/{chunk-7T7I5D3F.js.map → chunk-TSJQ7C2T.js.map} +0 -0
- /package/dist/{chunk-HQPFACXO.js.map → chunk-UH3FPX3L.js.map} +0 -0
- /package/dist/{chunk-6SRYCJ5I.js.map → chunk-V6JECHY6.js.map} +0 -0
- /package/dist/{chunk-YCJRYM3Q.js.map → chunk-VAMCJPJT.js.map} +0 -0
- /package/dist/{chunk-QC2MHZDD.js.map → chunk-VEFGHRKV.js.map} +0 -0
- /package/dist/{chunk-O62MMJWV.js.map → chunk-VO3HCFSR.js.map} +0 -0
- /package/dist/{chunk-4DJSDH2M.js.map → chunk-W5GGKQVS.js.map} +0 -0
- /package/dist/{chunk-TQ5NOVMT.js.map → chunk-X7EAMNKR.js.map} +0 -0
- /package/dist/{chunk-G53I363P.js.map → chunk-XF2QQQXO.js.map} +0 -0
- /package/dist/{chunk-GWFL6LUU.js.map → chunk-XUS2UQOO.js.map} +0 -0
- /package/dist/{chunk-FZVROZKC.js.map → chunk-XVZA6VXC.js.map} +0 -0
- /package/dist/{chunk-VPEIWMUT.js.map → chunk-YLTU2DC4.js.map} +0 -0
- /package/dist/{chunk-PXZLVFNC.js.map → chunk-YQXD57ZS.js.map} +0 -0
- /package/dist/{chunk-LR2X3FJM.js.map → chunk-YW63C4FO.js.map} +0 -0
- /package/dist/{chunk-LU2GQ4Q4.js.map → chunk-YYHBB565.js.map} +0 -0
- /package/dist/{chunk-2G72JBQB.js.map → chunk-ZCXZNK4G.js.map} +0 -0
- /package/dist/{chunk-ZO377APE.js.map → chunk-ZMDXISMQ.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
canonicalCategoryForAlias,
|
|
3
3
|
categoryAliasCoercion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-3RW5ZCYO.js";
|
|
5
5
|
|
|
6
6
|
// src/access-observe-write-category.ts
|
|
7
7
|
function splitCanonicalWriteRequest(request) {
|
|
@@ -22,4 +22,4 @@ function splitCanonicalWriteRequest(request) {
|
|
|
22
22
|
export {
|
|
23
23
|
splitCanonicalWriteRequest
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=chunk-
|
|
25
|
+
//# sourceMappingURL=chunk-KVCFAWBZ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-B7RWBZXW.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveCausalTrajectoryStoreDir
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VEFGHRKV.js";
|
|
7
7
|
import {
|
|
8
8
|
normalizeRecallTokens
|
|
9
9
|
} from "./chunk-YCVB7X56.js";
|
|
@@ -339,4 +339,4 @@ export {
|
|
|
339
339
|
scoreStitchCandidate,
|
|
340
340
|
stitchCausalChain
|
|
341
341
|
};
|
|
342
|
-
//# sourceMappingURL=chunk-
|
|
342
|
+
//# sourceMappingURL=chunk-MZCGHPIJ.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
StorageManager
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YW63C4FO.js";
|
|
4
4
|
import {
|
|
5
5
|
composeMemoryEnvelope
|
|
6
6
|
} from "./chunk-X26YOFGS.js";
|
|
@@ -546,4 +546,4 @@ export {
|
|
|
546
546
|
setSemanticRulePromotionTestHooks,
|
|
547
547
|
promoteSemanticRuleFromMemory
|
|
548
548
|
};
|
|
549
|
-
//# sourceMappingURL=chunk-
|
|
549
|
+
//# sourceMappingURL=chunk-N36J3MIB.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-KJTKLXTH.js";
|
|
4
4
|
import {
|
|
5
5
|
StorageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YW63C4FO.js";
|
|
7
7
|
import {
|
|
8
8
|
assertInjectedStorageRooted
|
|
9
9
|
} from "./chunk-BNZAR6PO.js";
|
|
@@ -260,4 +260,4 @@ export {
|
|
|
260
260
|
backupExistingLedger,
|
|
261
261
|
rebuildMemoryLifecycleLedger
|
|
262
262
|
};
|
|
263
|
-
//# sourceMappingURL=chunk-
|
|
263
|
+
//# sourceMappingURL=chunk-NVKWV4W3.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
sidecarKey
|
|
3
|
-
} from "./chunk-KUQLUYIR.js";
|
|
4
1
|
import {
|
|
5
2
|
DERIVED_FROM_MEMORY_ID_RE,
|
|
6
3
|
isConsolidationOperator
|
|
7
4
|
} from "./chunk-G7D6GZ5J.js";
|
|
5
|
+
import {
|
|
6
|
+
sidecarKey
|
|
7
|
+
} from "./chunk-KUQLUYIR.js";
|
|
8
8
|
import {
|
|
9
9
|
isMacOsReplicationJunkBasename
|
|
10
10
|
} from "./chunk-QUIRIG2P.js";
|
|
@@ -346,4 +346,4 @@ function isPathWithin(candidate, root) {
|
|
|
346
346
|
export {
|
|
347
347
|
runConsolidationProvenanceCheck
|
|
348
348
|
};
|
|
349
|
-
//# sourceMappingURL=chunk-
|
|
349
|
+
//# sourceMappingURL=chunk-QHDBKC5Z.js.map
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import {
|
|
2
|
+
log
|
|
3
|
+
} from "./chunk-3WCASNQZ.js";
|
|
4
|
+
|
|
5
|
+
// src/buffer-ingress-counters.ts
|
|
6
|
+
import { createHash } from "crypto";
|
|
7
|
+
var EMPTY_BUFFER_INGRESS_SNAPSHOT = {
|
|
8
|
+
totals: {
|
|
9
|
+
accepted: { turns: 0, chars: 0 },
|
|
10
|
+
acceptedExactDuplicate: { turns: 0, chars: 0 },
|
|
11
|
+
filtered: { turns: 0, chars: 0 },
|
|
12
|
+
refused: { turns: 0, chars: 0 }
|
|
13
|
+
},
|
|
14
|
+
hours: []
|
|
15
|
+
};
|
|
16
|
+
var HOUR_MS = 36e5;
|
|
17
|
+
var RING_SLOTS = 24;
|
|
18
|
+
var DUPLICATE_DIGEST_CAP = 4096;
|
|
19
|
+
var OUTCOMES = ["accepted", "acceptedExactDuplicate", "filtered", "refused"];
|
|
20
|
+
function zeroCounts() {
|
|
21
|
+
return {
|
|
22
|
+
accepted: { turns: 0, chars: 0 },
|
|
23
|
+
acceptedExactDuplicate: { turns: 0, chars: 0 },
|
|
24
|
+
filtered: { turns: 0, chars: 0 },
|
|
25
|
+
refused: { turns: 0, chars: 0 }
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function contentDigest(turn) {
|
|
29
|
+
return createHash("sha256").update(`${turn.role}\0${turn.content}`).digest("base64");
|
|
30
|
+
}
|
|
31
|
+
var BufferIngressCounters = class {
|
|
32
|
+
constructor(now = Date.now, enabled = true) {
|
|
33
|
+
this.now = now;
|
|
34
|
+
this.enabled = enabled;
|
|
35
|
+
}
|
|
36
|
+
now;
|
|
37
|
+
enabled;
|
|
38
|
+
ring = Array.from({ length: RING_SLOTS }, () => null);
|
|
39
|
+
totals = zeroCounts();
|
|
40
|
+
memos = /* @__PURE__ */ new WeakMap();
|
|
41
|
+
/** Test-only: the digest set cached for an entry, or undefined when no
|
|
42
|
+
* memo was built yet. Exposes digests only — never the validity refs. */
|
|
43
|
+
memoForTest(entry) {
|
|
44
|
+
return this.memos.get(entry);
|
|
45
|
+
}
|
|
46
|
+
lastActiveHourMs = null;
|
|
47
|
+
/**
|
|
48
|
+
* Observe an offered turn (called BEFORE the buffer pushes it, so a lazily
|
|
49
|
+
* rebuilt digest memo sees only turns already in the entry). Counts
|
|
50
|
+
* `accepted` and, when an identical role+content digest is already tracked
|
|
51
|
+
* for this entry, the `acceptedExactDuplicate` sub-count. Returns nothing;
|
|
52
|
+
* the buffer behaves identically either way.
|
|
53
|
+
*/
|
|
54
|
+
noteAppendedTurn(entry, turn) {
|
|
55
|
+
if (!this.enabled) return;
|
|
56
|
+
const hourStartMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS;
|
|
57
|
+
const chars = turn.content.length;
|
|
58
|
+
this.record("accepted", chars, hourStartMs);
|
|
59
|
+
const memo = this.memoFor(entry);
|
|
60
|
+
const digest = contentDigest(turn);
|
|
61
|
+
if (memo.digests.has(digest)) this.record("acceptedExactDuplicate", chars, hourStartMs);
|
|
62
|
+
memo.digests.add(digest);
|
|
63
|
+
if (memo.digests.size > DUPLICATE_DIGEST_CAP) {
|
|
64
|
+
for (const oldest of memo.digests) {
|
|
65
|
+
memo.digests.delete(oldest);
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
/** Count a single capacity-refused turn; returns null for `return` sites. */
|
|
71
|
+
refuseOne(turn) {
|
|
72
|
+
if (!this.enabled) return null;
|
|
73
|
+
this.record("refused", turn.content.length);
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
/** Count a refused ERROR for `throw` sites; the error propagates unchanged. */
|
|
77
|
+
refuseThrow(turn, error) {
|
|
78
|
+
this.refuseOne(turn);
|
|
79
|
+
return error;
|
|
80
|
+
}
|
|
81
|
+
/** Count a WHOLE-BATCH refusal (every offered turn is dropped). */
|
|
82
|
+
refuseAll(offered) {
|
|
83
|
+
for (const { turn } of offered) this.refuseOne(turn);
|
|
84
|
+
return null;
|
|
85
|
+
}
|
|
86
|
+
snapshot() {
|
|
87
|
+
const nowHourMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS;
|
|
88
|
+
const hours = this.ring.filter((slot) => slot !== null && nowHourMs - slot.hourStartMs < HOUR_MS * RING_SLOTS).sort((a, b) => a.hourStartMs - b.hourStartMs).map((slot) => ({
|
|
89
|
+
hourStart: new Date(slot.hourStartMs).toISOString(),
|
|
90
|
+
accepted: { ...slot.counts.accepted },
|
|
91
|
+
acceptedExactDuplicate: { ...slot.counts.acceptedExactDuplicate },
|
|
92
|
+
filtered: { ...slot.counts.filtered },
|
|
93
|
+
refused: { ...slot.counts.refused }
|
|
94
|
+
}));
|
|
95
|
+
return {
|
|
96
|
+
totals: {
|
|
97
|
+
accepted: { ...this.totals.accepted },
|
|
98
|
+
acceptedExactDuplicate: { ...this.totals.acceptedExactDuplicate },
|
|
99
|
+
filtered: { ...this.totals.filtered },
|
|
100
|
+
refused: { ...this.totals.refused }
|
|
101
|
+
},
|
|
102
|
+
hours
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
record(outcome, chars, hourStartMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS) {
|
|
106
|
+
if (hourStartMs !== this.lastActiveHourMs) {
|
|
107
|
+
if (this.lastActiveHourMs !== null) this.logHourBucket(this.lastActiveHourMs);
|
|
108
|
+
this.lastActiveHourMs = hourStartMs;
|
|
109
|
+
}
|
|
110
|
+
const slotIndex = hourStartMs / HOUR_MS % RING_SLOTS;
|
|
111
|
+
const slot = this.ring[slotIndex];
|
|
112
|
+
if (slot !== null && slot.hourStartMs === hourStartMs) {
|
|
113
|
+
slot.counts[outcome].turns += 1;
|
|
114
|
+
slot.counts[outcome].chars += chars;
|
|
115
|
+
} else {
|
|
116
|
+
const counts = {
|
|
117
|
+
...zeroCounts(),
|
|
118
|
+
[outcome]: { turns: 1, chars }
|
|
119
|
+
};
|
|
120
|
+
this.ring[slotIndex] = { hourStartMs, counts };
|
|
121
|
+
}
|
|
122
|
+
this.totals[outcome].turns += 1;
|
|
123
|
+
this.totals[outcome].chars += chars;
|
|
124
|
+
}
|
|
125
|
+
/** ONE aggregate line per hour, at roll time, describing the ending hour. */
|
|
126
|
+
logHourBucket(hourStartMs) {
|
|
127
|
+
const slot = this.ring[hourStartMs / HOUR_MS % RING_SLOTS];
|
|
128
|
+
if (slot === null || slot.hourStartMs !== hourStartMs) return;
|
|
129
|
+
const counts = slot.counts;
|
|
130
|
+
if (OUTCOMES.every((outcome) => counts[outcome].turns === 0)) return;
|
|
131
|
+
log.info(
|
|
132
|
+
`buffer ingress ${new Date(hourStartMs).toISOString()}: ${OUTCOMES.map((outcome) => `${outcome}=${counts[outcome].turns}/${counts[outcome].chars}c`).join(" ")}`
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
memoFor(entry) {
|
|
136
|
+
const retained = entry.retainedTurns;
|
|
137
|
+
const memo = this.memos.get(entry);
|
|
138
|
+
const retainedMatch = memo?.retainedRef === void 0 ? memo !== void 0 && retained === void 0 : memo.retainedRef.deref() !== void 0 && memo.retainedRef.deref() === retained;
|
|
139
|
+
if (memo && memo.turnsRef.deref() === entry.turns && retainedMatch) return memo;
|
|
140
|
+
const ordered = [...entry.turns, ...retained ?? []];
|
|
141
|
+
const bounded = ordered.length > DUPLICATE_DIGEST_CAP ? ordered.slice(ordered.length - DUPLICATE_DIGEST_CAP) : ordered;
|
|
142
|
+
const fresh = {
|
|
143
|
+
turnsRef: new WeakRef(entry.turns),
|
|
144
|
+
retainedRef: retained ? new WeakRef(retained) : void 0,
|
|
145
|
+
digests: new Set(bounded.map(contentDigest))
|
|
146
|
+
};
|
|
147
|
+
this.memos.set(entry, fresh);
|
|
148
|
+
return fresh;
|
|
149
|
+
}
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export {
|
|
153
|
+
EMPTY_BUFFER_INGRESS_SNAPSHOT,
|
|
154
|
+
BufferIngressCounters
|
|
155
|
+
};
|
|
156
|
+
//# sourceMappingURL=chunk-RADARJEC.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/buffer-ingress-counters.ts"],"sourcesContent":["/**\n * Buffer-ingress counters (issue #3444) — OBSERVATION ONLY.\n *\n * Counts what the SmartBuffer add path already does, per offered turn, in\n * turns and characters:\n * - accepted: the turn was appended to a buffer entry (always the case for\n * non-refused offers; this layer invents no filtering),\n * - acceptedExactDuplicate: observational SUB-COUNT of accepted — the\n * appended turn's role+content exactly matches a turn already in that\n * session's buffer entry (live turns or deferred-retained copies). This\n * is the duplicate rate at ingress that #3443 needs; it changes nothing,\n * - filtered: reserved for turns existing code drops before/at the buffer.\n * The SmartBuffer add path itself drops nothing, so it is always 0 at\n * this layer; upstream filters (captureMode=explicit skips in\n * processTurn/ingestReplayBatch, the observe funnel's empty-content and\n * fingerprint dedup) live outside the buffer add,\n * - refused: capacity refusal (existing null-return and throw sites).\n *\n * Invariant: accepted + filtered + refused == turns offered.\n * acceptedExactDuplicate <= accepted (it is a sub-count, not a partition).\n *\n * Counters are process-local and instance-owned (one instance per\n * SmartBuffer, no module state), feed a 24-hour hourly ring with ONE\n * aggregate info log line per hour (counts only: no content, no session\n * ids, silent idle hours), and take an injectable clock for tests.\n *\n * Memory: duplicate detection hashes role+content to a sha256 digest (same\n * scheme as the drain hand-in memo) — turn content is never retained. The\n * per-entry digest set mirrors the entry's own turns (so it is bounded by\n * the session turn cap) and additionally enforces a hard FIFO cap of\n * DUPLICATE_DIGEST_CAP digests; beyond the cap the oldest digest is\n * evicted, so very old unique contents stop being recognized as\n * duplicates until the next rebuild (metric under-count, never a buffer\n * change).\n *\n * O(1) amortized per turn: memo validity is the entry's array references,\n * so any mutation that removes or replaces turns (all of them reassign a\n * fresh array) self-invalidates the memo without epoch bookkeeping.\n */\n\nimport { createHash } from \"node:crypto\";\nimport { log } from \"./logger.js\";\nimport type { BufferEntryState, BufferTurn } from \"./types.js\";\n\nexport type BufferIngressOutcome = \"accepted\" | \"acceptedExactDuplicate\" | \"filtered\" | \"refused\";\n\nexport interface BufferIngressOutcomeCount {\n turns: number;\n chars: number;\n}\n\nexport interface BufferIngressHour {\n hourStart: string;\n accepted: BufferIngressOutcomeCount;\n acceptedExactDuplicate: BufferIngressOutcomeCount;\n filtered: BufferIngressOutcomeCount;\n refused: BufferIngressOutcomeCount;\n}\n\nexport interface BufferIngressSnapshot {\n totals: Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n hours: BufferIngressHour[];\n}\n\nexport const EMPTY_BUFFER_INGRESS_SNAPSHOT: BufferIngressSnapshot = {\n totals: {\n accepted: { turns: 0, chars: 0 },\n acceptedExactDuplicate: { turns: 0, chars: 0 },\n filtered: { turns: 0, chars: 0 },\n refused: { turns: 0, chars: 0 },\n },\n hours: [],\n};\n\nconst HOUR_MS = 3_600_000;\nconst RING_SLOTS = 24;\n/**\n * Hard cap on the per-entry duplicate-digest set (defense against configs\n * with very large session caps). Beyond the cap the oldest digest is\n * FIFO-evicted: recognition of the oldest unique contents degrades to\n * \"not a duplicate\" (an under-count of acceptedExactDuplicate), never a\n * behavioral change.\n */\nconst DUPLICATE_DIGEST_CAP = 4096;\n\nconst OUTCOMES: readonly BufferIngressOutcome[] = [\"accepted\", \"acceptedExactDuplicate\", \"filtered\", \"refused\"];\n\nfunction zeroCounts() {\n return {\n accepted: { turns: 0, chars: 0 },\n acceptedExactDuplicate: { turns: 0, chars: 0 },\n filtered: { turns: 0, chars: 0 },\n refused: { turns: 0, chars: 0 },\n } satisfies Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n}\n\nfunction contentDigest(turn: BufferTurn): string {\n return createHash(\"sha256\").update(`${turn.role}\\u0000${turn.content}`).digest(\"base64\");\n}\n\ninterface RingSlot {\n hourStartMs: number;\n counts: Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n}\n\n/** Test-visible view of a per-entry digest memo: digest set only. The validity\n * refs (WeakRefs over entry arrays) stay private; tests assert rebuild\n * identity through the map plus the observable counts, never the refs. */\nexport interface BufferIngressMemoView {\n digests: Set<string>;\n}\n\ninterface EntryDigestMemo {\n // WeakRefs: after clearAfterExtraction replaces the entry arrays, the old\n // arrays must not stay reachable through the memo. Deref-compare keeps the\n // validity check exact without retaining evicted turn content.\n turnsRef: WeakRef<BufferTurn[]>;\n retainedRef: WeakRef<BufferTurn[]> | undefined;\n digests: Set<string>;\n}\n\nexport class BufferIngressCounters {\n private readonly ring: (RingSlot | null)[] = Array.from({ length: RING_SLOTS }, () => null);\n private readonly totals: Record<BufferIngressOutcome, BufferIngressOutcomeCount> = zeroCounts();\n private readonly memos = new WeakMap<BufferEntryState, EntryDigestMemo>();\n /** Test-only: the digest set cached for an entry, or undefined when no\n * memo was built yet. Exposes digests only — never the validity refs. */\n memoForTest(entry: BufferEntryState): BufferIngressMemoView | undefined {\n return this.memos.get(entry);\n }\n private lastActiveHourMs: number | null = null;\n\n constructor(\n private readonly now: () => number = Date.now,\n /** Test seam: the disabled control proves counting does not touch the buffer. */\n private readonly enabled = true,\n ) {}\n\n /**\n * Observe an offered turn (called BEFORE the buffer pushes it, so a lazily\n * rebuilt digest memo sees only turns already in the entry). Counts\n * `accepted` and, when an identical role+content digest is already tracked\n * for this entry, the `acceptedExactDuplicate` sub-count. Returns nothing;\n * the buffer behaves identically either way.\n */\n noteAppendedTurn(entry: BufferEntryState, turn: BufferTurn): void {\n if (!this.enabled) return;\n // One hour per offer: the two records below must land in the same\n // bucket even if the clock crosses an hour between them.\n const hourStartMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS;\n const chars = turn.content.length;\n this.record(\"accepted\", chars, hourStartMs);\n // The offered turn is counted, then added to the memo: a later re-offer\n // of identical content is recognised as a duplicate of an already-seen\n // turn. Set semantics dedupe — no double count.\n const memo = this.memoFor(entry);\n const digest = contentDigest(turn);\n if (memo.digests.has(digest)) this.record(\"acceptedExactDuplicate\", chars, hourStartMs);\n memo.digests.add(digest);\n if (memo.digests.size > DUPLICATE_DIGEST_CAP) {\n for (const oldest of memo.digests) {\n memo.digests.delete(oldest);\n break;\n }\n }\n }\n\n /** Count a single capacity-refused turn; returns null for `return` sites. */\n refuseOne(turn: BufferTurn): null {\n if (!this.enabled) return null;\n this.record(\"refused\", turn.content.length);\n return null;\n }\n\n /** Count a refused ERROR for `throw` sites; the error propagates unchanged. */\n refuseThrow(turn: BufferTurn, error: Error): Error {\n this.refuseOne(turn);\n return error;\n }\n\n /** Count a WHOLE-BATCH refusal (every offered turn is dropped). */\n refuseAll(offered: readonly { turn: BufferTurn }[]): null {\n for (const { turn } of offered) this.refuseOne(turn);\n return null;\n }\n\n snapshot(): BufferIngressSnapshot {\n const nowHourMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS;\n const hours = this.ring\n .filter((slot): slot is RingSlot => slot !== null && nowHourMs - slot.hourStartMs < HOUR_MS * RING_SLOTS)\n .sort((a, b) => a.hourStartMs - b.hourStartMs)\n .map((slot) => ({\n hourStart: new Date(slot.hourStartMs).toISOString(),\n accepted: { ...slot.counts.accepted },\n acceptedExactDuplicate: { ...slot.counts.acceptedExactDuplicate },\n filtered: { ...slot.counts.filtered },\n refused: { ...slot.counts.refused },\n }));\n return {\n totals: {\n accepted: { ...this.totals.accepted },\n acceptedExactDuplicate: { ...this.totals.acceptedExactDuplicate },\n filtered: { ...this.totals.filtered },\n refused: { ...this.totals.refused },\n },\n hours,\n };\n }\n\n private record(outcome: BufferIngressOutcome, chars: number, hourStartMs = Math.floor(this.now() / HOUR_MS) * HOUR_MS): void {\n if (hourStartMs !== this.lastActiveHourMs) {\n if (this.lastActiveHourMs !== null) this.logHourBucket(this.lastActiveHourMs);\n this.lastActiveHourMs = hourStartMs;\n }\n const slotIndex = (hourStartMs / HOUR_MS) % RING_SLOTS;\n const slot = this.ring[slotIndex];\n if (slot !== null && slot.hourStartMs === hourStartMs) {\n slot.counts[outcome].turns += 1;\n slot.counts[outcome].chars += chars;\n } else {\n // Slot reuse after 24h: the stale bucket was logged when its own hour\n // ended, so eviction here is silent.\n const counts = {\n ...zeroCounts(),\n [outcome]: { turns: 1, chars },\n } satisfies Record<BufferIngressOutcome, BufferIngressOutcomeCount>;\n this.ring[slotIndex] = { hourStartMs, counts };\n }\n this.totals[outcome].turns += 1;\n this.totals[outcome].chars += chars;\n }\n\n /** ONE aggregate line per hour, at roll time, describing the ending hour. */\n private logHourBucket(hourStartMs: number): void {\n const slot = this.ring[(hourStartMs / HOUR_MS) % RING_SLOTS];\n if (slot === null || slot.hourStartMs !== hourStartMs) return;\n const counts = slot.counts;\n if (OUTCOMES.every((outcome) => counts[outcome].turns === 0)) return; // zero-noise: silent idle hours\n log.info(\n `buffer ingress ${new Date(hourStartMs).toISOString()}: ${OUTCOMES.map((outcome) => `${outcome}=${counts[outcome].turns}/${counts[outcome].chars}c`).join(\" \")}`,\n );\n }\n\n private memoFor(entry: BufferEntryState): EntryDigestMemo {\n const retained = entry.retainedTurns;\n const memo = this.memos.get(entry);\n // --- Fix 3: bound the rebuild to the digest cap. A restored entry can\n // hold more unique turns than DUPLICATE_DIGEST_CAP; inserting all of them\n // would leave the set permanently above the cap (later appends evict one\n // each). Keep the most recent turns, matching the FIFO order of the\n // steady-state path, so recognition degrades to \"not a duplicate\".\n // Distinguish \"built with no retained array\" (retainedRef undefined) from\n // \"built with one that was since collected\" (deref undefined but the entry\n // still has none... no: if the entry has none NOW and the memo was built\n // with one, the entry changed shape -> rebuild). Reuse only when both sides\n // agree on presence AND identity.\n // Reuse only when both sides agree on presence AND identity: a memo built\n // with a retained array that the buffer later deleted (entry.retainedTurns\n // now undefined) must rebuild, and a collected WeakRef must never read as\n // \"absent\" (that would reuse a memo whose digests still include removed\n // content). Any memo built with a retained array therefore requires a\n // live identical array now; a memo built without one requires none now.\n const retainedMatch =\n memo?.retainedRef === undefined\n ? memo !== undefined && retained === undefined\n : memo.retainedRef.deref() !== undefined && memo.retainedRef.deref() === retained;\n if (memo && memo.turnsRef.deref() === entry.turns && retainedMatch) return memo;\n const ordered = [...entry.turns, ...(retained ?? [])];\n const bounded = ordered.length > DUPLICATE_DIGEST_CAP ? ordered.slice(ordered.length - DUPLICATE_DIGEST_CAP) : ordered;\n const fresh: EntryDigestMemo = {\n turnsRef: new WeakRef(entry.turns),\n retainedRef: retained ? new WeakRef(retained) : undefined,\n digests: new Set(bounded.map(contentDigest)),\n };\n this.memos.set(entry, fresh);\n return fresh;\n }\n}\n"],"mappings":";;;;;AAwCA,SAAS,kBAAkB;AAwBpB,IAAM,gCAAuD;AAAA,EAClE,QAAQ;AAAA,IACN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