@remnic/core 9.48.1 → 9.49.1
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.d.ts +12 -1
- package/dist/abstraction-nodes.js +9 -2
- package/dist/access-admin-ops-surface.d.ts +11 -10
- package/dist/access-admin-ops-surface.js +46 -45
- package/dist/access-audit.js +2 -2
- package/dist/access-authorization-probe.d.ts +11 -10
- package/dist/access-authorization-probe.js +47 -46
- package/dist/access-boundary.d.ts +11 -10
- package/dist/access-boundary.js +46 -45
- package/dist/access-cli.js +127 -121
- package/dist/access-cli.js.map +1 -1
- package/dist/access-coding-context-resolution.d.ts +1 -1
- package/dist/access-extraction-force-flush.d.ts +11 -10
- package/dist/access-extraction-force-flush.js +46 -45
- package/dist/access-health-types.d.ts +1 -1
- package/dist/access-http-lcm-compaction.d.ts +11 -10
- package/dist/access-http-lifecycle-flush.d.ts +11 -10
- package/dist/access-http-offline-stream.d.ts +11 -10
- package/dist/access-http-query.js +46 -45
- package/dist/access-http.d.ts +11 -10
- package/dist/access-http.js +57 -56
- package/dist/access-identity-continuity-surface.d.ts +9 -8
- package/dist/access-identity-continuity-surface.js +46 -45
- package/dist/access-lcm-surface.d.ts +11 -10
- package/dist/access-lcm-surface.js +46 -45
- package/dist/access-mcp.d.ts +11 -10
- package/dist/access-mcp.js +52 -51
- package/dist/access-memory-search-fanout.d.ts +2 -2
- package/dist/{access-namespace-preflight--H6HwN85.d.ts → access-namespace-preflight-DuDU301-.d.ts} +1 -1
- package/dist/access-namespace-preflight.d.ts +3 -3
- package/dist/access-namespace-preflight.js +46 -45
- package/dist/access-observe-write-surface.d.ts +11 -10
- package/dist/access-observe-write-surface.js +46 -45
- package/dist/access-offline-manifest.d.ts +9 -8
- package/dist/access-offline-manifest.js +3 -3
- package/dist/access-operations-batch.js +48 -47
- package/dist/access-operations.d.ts +14 -13
- package/dist/access-operations.js +51 -50
- package/dist/access-recall-concurrency.d.ts +11 -10
- package/dist/access-recall-concurrency.js +46 -45
- package/dist/access-recall-response.d.ts +11 -10
- package/dist/access-recall-response.js +46 -45
- package/dist/access-recall-surface.d.ts +11 -10
- package/dist/access-recall-surface.js +46 -45
- package/dist/access-schema.d.ts +105 -105
- package/dist/access-schema.js +3 -3
- package/dist/{access-service-andNjwfD.d.ts → access-service--_3T_v23.d.ts} +7 -7
- package/dist/access-service-helpers.d.ts +11 -10
- package/dist/access-service.d.ts +11 -10
- package/dist/access-service.js +46 -45
- package/dist/access-surface-catalog.d.ts +11 -10
- package/dist/access-wearables-meetings-surface.d.ts +4 -3
- package/dist/action-confidence.d.ts +1 -1
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +1 -1
- package/dist/active-recall.js +3 -2
- package/dist/active-recall.js.map +1 -1
- package/dist/adapters/index.js +4 -4
- package/dist/adapters/registry.js +2 -2
- package/dist/ambient-provenance.d.ts +1 -1
- package/dist/artifact-search.d.ts +1 -1
- package/dist/{auto-sync-7O6RP2RT.js → auto-sync-QFQGOEO2.js} +4 -4
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +9 -8
- package/dist/briefing.d.ts +3 -2
- package/dist/briefing.js +15 -14
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer-turn-helpers.d.ts +1 -1
- package/dist/buffer.d.ts +3 -2
- package/dist/buffer.js +4 -4
- package/dist/bulk-import/index.d.ts +3 -3
- package/dist/calibration.d.ts +1 -1
- package/dist/calibration.js +1 -1
- package/dist/capabilities.d.ts +1 -1
- package/dist/{capsule-merge-Q6AR3XL7.js → capsule-merge-KXTRZ23Z.js} +6 -6
- package/dist/{catalog-Iwbk9h5E.d.ts → catalog-DjUmUIal.d.ts} +1 -1
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-behavior.js +3 -3
- package/dist/causal-chain.js +3 -3
- package/dist/causal-consolidation.d.ts +1 -1
- package/dist/causal-consolidation.js +19 -18
- package/dist/causal-consolidation.js.map +1 -1
- package/dist/causal-retrieval.js +3 -3
- package/dist/causal-trajectory-graph.d.ts +1 -1
- package/dist/causal-trajectory.d.ts +51 -2
- package/dist/causal-trajectory.js +8 -2
- package/dist/{chunk-PLCZD3LG.js → chunk-24BKGKGO.js} +91 -45
- package/dist/chunk-24BKGKGO.js.map +1 -0
- package/dist/{chunk-ICP53SKG.js → chunk-2HIJHXB3.js} +2 -2
- package/dist/{chunk-LZGCJSQR.js → chunk-3LD4N2TF.js} +151 -37
- package/dist/chunk-3LD4N2TF.js.map +1 -0
- package/dist/{chunk-FJ2ND6CZ.js → chunk-47J4EDGR.js} +2 -2
- package/dist/{chunk-S55OAS5P.js → chunk-4EABKPZS.js} +4 -4
- package/dist/{chunk-GD7UPIBG.js → chunk-4JWJMRPJ.js} +2 -2
- package/dist/{chunk-3NDN5P55.js → chunk-4S3ECH3U.js} +2 -2
- package/dist/chunk-5GINB5LC.js +13 -0
- package/dist/chunk-5GINB5LC.js.map +1 -0
- package/dist/{chunk-CGASUJVP.js → chunk-5V6IXHPI.js} +4 -4
- package/dist/{chunk-A4JMGKCD.js → chunk-5XCN4XBU.js} +4 -4
- package/dist/{chunk-2RPJ4NEE.js → chunk-64BHFFKZ.js} +2 -2
- package/dist/{chunk-FQC3DHH2.js → chunk-66SE3BNH.js} +2 -2
- package/dist/{chunk-TERNBNJB.js → chunk-6FC3IZ26.js} +2 -2
- package/dist/{chunk-53AJILXF.js → chunk-6XGEBQ3R.js} +4 -4
- package/dist/{chunk-IP3DHDU2.js → chunk-7BLWBSRL.js} +3 -3
- package/dist/{chunk-A2TFK5PG.js → chunk-7NDM2PNK.js} +3 -3
- package/dist/{chunk-HRMEYQRO.js → chunk-7VWZ4LRW.js} +2 -2
- package/dist/{chunk-RN53QBM4.js → chunk-A4QMKFFO.js} +5 -1
- package/dist/chunk-A4QMKFFO.js.map +1 -0
- package/dist/chunk-ACPCA4NO.js +321 -0
- package/dist/chunk-ACPCA4NO.js.map +1 -0
- package/dist/chunk-AMTEYNYK.js +72 -0
- package/dist/chunk-AMTEYNYK.js.map +1 -0
- package/dist/{chunk-R6YJI3HE.js → chunk-AW4QUFQF.js} +1 -1
- package/dist/{chunk-P65YJEEL.js → chunk-AXFWMRKI.js} +2 -2
- package/dist/{chunk-WG5HSQ4P.js → chunk-BAKXNQ3C.js} +2 -2
- package/dist/{chunk-NM2WP3B7.js → chunk-BJYET5TX.js} +2 -2
- package/dist/{chunk-HLKPRWF4.js → chunk-DATDLJAO.js} +6 -6
- package/dist/chunk-DJUKBGAD.js +260 -0
- package/dist/chunk-DJUKBGAD.js.map +1 -0
- package/dist/{chunk-DX3XRGLH.js → chunk-DQTCGVFK.js} +2 -2
- package/dist/{chunk-HIDEBEAN.js → chunk-E633OXMH.js} +11 -11
- package/dist/{chunk-J7T4MX7P.js → chunk-EEAMSNSG.js} +12 -1
- package/dist/chunk-EEAMSNSG.js.map +1 -0
- package/dist/{chunk-EZNXW27Q.js → chunk-ELQCS47S.js} +4 -4
- package/dist/{chunk-HAYSYUAB.js → chunk-EURCX6PS.js} +2 -2
- package/dist/{chunk-RSPSHRZA.js → chunk-FV7YQTN3.js} +2 -2
- package/dist/chunk-G73MCJKL.js +20 -0
- package/dist/chunk-G73MCJKL.js.map +1 -0
- package/dist/{chunk-GWHPQOUC.js → chunk-GGBSF2X7.js} +2 -2
- package/dist/{chunk-SYUBB3WM.js → chunk-GKEYXXKX.js} +2 -2
- package/dist/{chunk-PELT6ADC.js → chunk-GSEPRIZC.js} +3 -3
- package/dist/{chunk-UTVZKHJK.js → chunk-GUKBW4HL.js} +2 -2
- package/dist/chunk-GXSOUIA4.js +293 -0
- package/dist/chunk-GXSOUIA4.js.map +1 -0
- package/dist/{chunk-2F6NP3NT.js → chunk-HDQUQBPW.js} +2 -2
- package/dist/{chunk-6HMYUWXR.js → chunk-HTP6XRUI.js} +2 -2
- package/dist/{chunk-UYUYZ4WY.js → chunk-IARXXZU4.js} +2 -2
- package/dist/{chunk-MNB5RMAY.js → chunk-IIFFC3RL.js} +2 -2
- package/dist/{chunk-KQAFEZQX.js → chunk-IPLYGWQF.js} +5 -5
- package/dist/{chunk-NZBZ7IS2.js → chunk-JDCQK3C5.js} +2 -2
- package/dist/{chunk-ANCC3JJH.js → chunk-JI62YGPI.js} +2 -2
- package/dist/{chunk-LULR4IUW.js → chunk-KATEWTQJ.js} +2 -2
- package/dist/{chunk-IJ7HK452.js → chunk-KMAP7SNQ.js} +2 -2
- package/dist/{chunk-PRVJH7CY.js → chunk-KMWYZTIE.js} +2 -2
- package/dist/{chunk-JGSKJHF7.js → chunk-KQS72GCR.js} +2 -2
- package/dist/{chunk-3S63QIFQ.js → chunk-LAQ33B5D.js} +1 -1
- package/dist/chunk-LAQ33B5D.js.map +1 -0
- package/dist/chunk-LNTUXKBT.js +224 -0
- package/dist/chunk-LNTUXKBT.js.map +1 -0
- package/dist/{chunk-FMCHFSZF.js → chunk-LQKXVQZR.js} +12 -12
- package/dist/{chunk-M4DMO67I.js → chunk-LTOAJXZB.js} +4 -4
- package/dist/{chunk-NIS256NW.js → chunk-LYMNZZIM.js} +2 -2
- package/dist/{chunk-W4FBGYGK.js → chunk-M4MP34AQ.js} +189 -5
- package/dist/chunk-M4MP34AQ.js.map +1 -0
- package/dist/{chunk-3PY7VHV7.js → chunk-MCA2X4WH.js} +2 -2
- package/dist/{chunk-S5NZBKKQ.js → chunk-N3CXAYPJ.js} +3 -3
- package/dist/{chunk-WQIHRA5F.js → chunk-N3LL5NEU.js} +2 -2
- package/dist/{chunk-G2RBWVFQ.js → chunk-NKL25FCF.js} +2 -2
- package/dist/{chunk-LMDRGRJ2.js → chunk-NOB2T2FC.js} +2 -2
- package/dist/{chunk-P2OTGMTR.js → chunk-NSGU76YO.js} +2 -2
- package/dist/{chunk-D5NGH2EW.js → chunk-O76MWTVS.js} +2 -2
- package/dist/{chunk-WZFAPHIK.js → chunk-OIOZ6MOP.js} +3 -3
- package/dist/{chunk-DNHVPZOD.js → chunk-P26YHAQH.js} +201 -1
- package/dist/chunk-P26YHAQH.js.map +1 -0
- package/dist/{chunk-UMOO7IY7.js → chunk-P2KBDJJ6.js} +2 -2
- package/dist/{chunk-KVJRXN2E.js → chunk-P4QOYG52.js} +125 -13
- package/dist/chunk-P4QOYG52.js.map +1 -0
- package/dist/chunk-P77QX3ID.js +332 -0
- package/dist/chunk-P77QX3ID.js.map +1 -0
- package/dist/{chunk-SXWHN7GC.js → chunk-PDEKQWDV.js} +2 -2
- package/dist/{chunk-2EJNXE53.js → chunk-PLCHU56K.js} +3 -3
- package/dist/{chunk-45OTV7FZ.js → chunk-PWIMF7LP.js} +38 -38
- package/dist/{chunk-7YKVM5H3.js → chunk-PWLB4TRK.js} +3 -3
- package/dist/{chunk-RVYVMQK4.js → chunk-QSYL5CXK.js} +3 -3
- package/dist/{chunk-NXUJRXSF.js → chunk-QWLW3VQH.js} +2 -2
- package/dist/chunk-RBOJCG4T.js +77 -0
- package/dist/chunk-RBOJCG4T.js.map +1 -0
- package/dist/{chunk-2P3GQVM2.js → chunk-RBPH3GZV.js} +418 -105
- package/dist/chunk-RBPH3GZV.js.map +1 -0
- package/dist/{chunk-JBPKEARU.js → chunk-RKNJBZ55.js} +4 -4
- package/dist/{chunk-QCECHYZL.js → chunk-RVO6TCTU.js} +6 -6
- package/dist/{chunk-5L7PTX2Q.js → chunk-S2SJEOTM.js} +2 -2
- package/dist/{chunk-52I3YZZ6.js → chunk-S75UQ3T3.js} +3 -3
- package/dist/{chunk-LXOM6IQU.js → chunk-SEF4IOFE.js} +2 -2
- package/dist/{chunk-DUEEQCTT.js → chunk-SHYIMIX5.js} +2 -2
- package/dist/{chunk-KSGEGHYA.js → chunk-T35UJI5R.js} +78 -74
- package/dist/chunk-T35UJI5R.js.map +1 -0
- package/dist/{chunk-7K5Q6COX.js → chunk-TVVEYCNW.js} +4 -4
- package/dist/{chunk-3JUYWPFJ.js → chunk-VFS3MK5F.js} +2 -2
- package/dist/chunk-VUDMT5CP.js +86 -0
- package/dist/chunk-VUDMT5CP.js.map +1 -0
- package/dist/{chunk-CMQZNEIF.js → chunk-WFLBP5GC.js} +8 -1
- package/dist/chunk-WFLBP5GC.js.map +1 -0
- package/dist/{chunk-WOEVJKKQ.js → chunk-WPZX7MEA.js} +4 -4
- package/dist/{chunk-ZRWB5D4H.js → chunk-WT6UL3UA.js} +2 -2
- package/dist/{chunk-MC6XO7T4.js → chunk-YLBE6PLR.js} +2 -2
- package/dist/{chunk-GF22HWS2.js → chunk-Z54EM5YZ.js} +4 -4
- package/dist/{chunk-GVX3NAUU.js → chunk-ZDAYWJV6.js} +2 -2
- package/dist/{chunk-4WBGZYZZ.js → chunk-ZJIFYUJI.js} +7 -7
- package/dist/chunk-ZJIFYUJI.js.map +1 -0
- package/dist/{chunk-JYPO7L3G.js → chunk-ZN4EYMKJ.js} +2 -2
- package/dist/{cli-p_WmVo2h.d.ts → cli-BLNmNEMT.d.ts} +16 -14
- package/dist/cli.d.ts +14 -13
- package/dist/cli.js +90 -87
- package/dist/coding/pre-action-gate.d.ts +66 -0
- package/dist/coding/pre-action-gate.js +22 -0
- package/dist/commitment-ledger.js +2 -2
- package/dist/compounding/engine.d.ts +3 -2
- package/dist/compounding/engine.js +16 -15
- package/dist/compounding/preference-consolidator.d.ts +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +3 -2
- package/dist/connectors/codex-materialize-runner.d.ts +1 -1
- package/dist/connectors/codex-materialize-runner.js +15 -14
- package/dist/connectors/codex-materialize.d.ts +1 -1
- package/dist/connectors/index.d.ts +1 -1
- package/dist/connectors/index.js +15 -14
- package/dist/consolidation-provenance-check.d.ts +3 -2
- package/dist/consolidation-provenance-check.js +6 -6
- package/dist/consolidation-undo.d.ts +3 -2
- package/dist/consolidation-undo.js +5 -5
- package/dist/contradiction/index.d.ts +3 -2
- package/dist/contradiction/index.js +3 -3
- package/dist/converge-config.d.ts +1 -1
- package/dist/convergence-refresh.d.ts +3 -2
- package/dist/convergence-refresh.js +18 -17
- package/dist/conversation-index/backend.d.ts +1 -1
- package/dist/conversation-index/chunker.d.ts +1 -1
- package/dist/conversation-index/faiss-adapter.d.ts +1 -1
- package/dist/conversation-index/indexer.d.ts +1 -1
- package/dist/conversation-index/search.d.ts +1 -1
- package/dist/corpus-read-cancellation.d.ts +38 -0
- package/dist/corpus-read-cancellation.js +9 -0
- package/dist/corpus-read-cancellation.js.map +1 -0
- package/dist/corpus-watermark.d.ts +1 -1
- package/dist/corpus-watermark.js +21 -20
- package/dist/cue-anchors.d.ts +19 -1
- package/dist/cue-anchors.js +10 -2
- package/dist/day-summary.d.ts +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/dependency-propagation-config.d.ts +10 -0
- package/dist/dependency-propagation-config.js +10 -0
- package/dist/dependency-propagation-config.js.map +1 -0
- package/dist/deterministic-order.d.ts +4 -0
- package/dist/deterministic-order.js +10 -0
- package/dist/deterministic-order.js.map +1 -0
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/enrichment/index.d.ts +1 -1
- package/dist/entity-retrieval.d.ts +3 -2
- package/dist/entity-retrieval.js +15 -14
- package/dist/entity-schema.d.ts +1 -1
- package/dist/evals.js +2 -2
- package/dist/explicit-capture.d.ts +9 -8
- package/dist/explicit-capture.js +6 -6
- package/dist/external-wiki-access.d.ts +11 -10
- package/dist/external-wiki-access.js +47 -46
- package/dist/external-wiki-collection-registration.d.ts +1 -1
- package/dist/external-wiki-collection.d.ts +1 -1
- package/dist/external-wiki-mcp-tools.d.ts +11 -10
- package/dist/extraction-error-classification.d.ts +1 -1
- package/dist/extraction-faithfulness.d.ts +1 -1
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction-liveness.d.ts +1 -1
- package/dist/extraction-normalization.d.ts +14 -0
- package/dist/extraction-normalization.js +22 -0
- package/dist/extraction-normalization.js.map +1 -0
- package/dist/extraction-prompt.d.ts +4 -3
- package/dist/extraction-prompt.js +3 -1
- package/dist/extraction-source-grounding-rules.d.ts +1 -1
- package/dist/extraction-source-grounding.d.ts +1 -1
- package/dist/extraction.d.ts +18 -1
- package/dist/extraction.js +24 -21
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/{first-start-migration-ZSHEFEI3.js → first-start-migration-626C5554.js} +5 -5
- package/dist/{forget-DNAJ66ZD.js → forget-GJ42LCBW.js} +2 -2
- package/dist/graph-dashboard-diff.d.ts +1 -1
- package/dist/graph-dashboard-key.d.ts +1 -1
- package/dist/graph-dashboard-parser.d.ts +1 -1
- package/dist/graph-edge-reinforcement.d.ts +1 -1
- package/dist/graph-snapshot.d.ts +1 -1
- package/dist/graph.d.ts +1 -1
- package/dist/harmonic-construction.d.ts +43 -0
- package/dist/harmonic-construction.js +26 -0
- package/dist/harmonic-construction.js.map +1 -0
- package/dist/harmonic-retrieval.d.ts +1 -0
- package/dist/harmonic-retrieval.js +10 -4
- package/dist/importance.d.ts +1 -1
- package/dist/importers/index.d.ts +1 -1
- package/dist/in-flight-reads.d.ts +47 -3
- package/dist/in-flight-reads.js +5 -3
- package/dist/index.d.ts +699 -696
- package/dist/index.js +197 -150
- package/dist/intent.d.ts +1 -1
- package/dist/json-store.d.ts +15 -1
- package/dist/json-store.js +11 -3
- package/dist/lcm/engine.d.ts +1 -1
- package/dist/lcm/engine.js +2 -2
- package/dist/lcm/index.d.ts +1 -1
- package/dist/lcm/index.js +7 -7
- package/dist/lcm/tools.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/local-llm.d.ts +1 -1
- package/dist/local-model-endpoint.d.ts +1 -1
- package/dist/maintenance/archive-observations.js +2 -2
- package/dist/maintenance/atomic-file.d.ts +5 -0
- package/dist/maintenance/atomic-file.js +12 -0
- package/dist/maintenance/atomic-file.js.map +1 -0
- package/dist/maintenance/memory-governance.d.ts +1 -1
- package/dist/maintenance/memory-governance.js +15 -14
- package/dist/maintenance/migrate-observations.js +3 -3
- package/dist/maintenance/observation-ledger-utils.d.ts +1 -1
- package/dist/maintenance/observation-ledger-utils.js +2 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-lifecycle-ledger.js +16 -15
- package/dist/maintenance/rebuild-memory-projection.d.ts +3 -2
- package/dist/maintenance/rebuild-memory-projection.js +17 -16
- package/dist/maintenance/rebuild-observations.js +3 -3
- package/dist/{maintenance-BfcuwfJS.d.ts → maintenance-DKbKZi3u.d.ts} +3 -3
- package/dist/mcp-memory-inspector-app.d.ts +11 -10
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/memory-corpus-version.js +2 -2
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/memory-projection-store.d.ts +1 -1
- package/dist/memory-provenance.d.ts +1 -1
- package/dist/memory-snapshot.d.ts +1 -1
- package/dist/memory-worth-outcomes.d.ts +3 -2
- package/dist/models-json.d.ts +1 -1
- package/dist/namespaces/migrate.d.ts +4 -3
- package/dist/namespaces/migrate.js +20 -19
- package/dist/namespaces/principal.d.ts +1 -1
- package/dist/namespaces/search.d.ts +1 -1
- package/dist/namespaces/search.js +4 -4
- package/dist/namespaces/storage.d.ts +4 -3
- package/dist/namespaces/storage.js +15 -14
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/objective-state-writers.js +3 -3
- package/dist/objective-state.js +2 -2
- package/dist/offline-sync-impression-drain.d.ts +1 -1
- package/dist/offline-sync-impression-drain.js +2 -2
- package/dist/operator-doctor-corpus.d.ts +1 -1
- package/dist/operator-doctor-corpus.js +22 -21
- package/dist/operator-doctor-replica.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +4 -3
- package/dist/operator-toolkit.js +31 -29
- package/dist/orchestration/compression-guideline-coordinator.d.ts +3 -2
- package/dist/orchestration/maintenance.d.ts +5 -4
- package/dist/orchestration/maintenance.js +21 -20
- package/dist/{orchestrator-B7nLo4z1.d.ts → orchestrator-BRwD7ceU.d.ts} +7 -7
- package/dist/orchestrator.d.ts +9 -8
- package/dist/orchestrator.js +127 -121
- package/dist/page-versioning.js +5 -5
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{pipeline-1h2GpiHP.d.ts → pipeline-DC-1C9T8.d.ts} +1 -1
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/proactive-contention.d.ts +1 -1
- package/dist/provenance.d.ts +1 -1
- package/dist/{qmd-UdwoF71D.d.ts → qmd-DdeCEZdb.d.ts} +1 -1
- package/dist/qmd-preflight.d.ts +2 -2
- package/dist/qmd-recall-cache.d.ts +1 -1
- package/dist/qmd.d.ts +2 -2
- package/dist/qmd.js +4 -4
- package/dist/recall-concurrency-config.d.ts +1 -1
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-memory-map.d.ts +1 -1
- package/dist/recall-planner-llm.d.ts +1 -1
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-state.js +2 -2
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-timings.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/reconcile/cursor.d.ts +1 -1
- package/dist/reconcile/manifest.d.ts +1 -1
- package/dist/reconcile/plan.d.ts +1 -1
- package/dist/relevance.js +2 -2
- package/dist/replay/normalizers/chatgpt.d.ts +1 -1
- package/dist/replay/normalizers/claude.d.ts +1 -1
- package/dist/replay/normalizers/openclaw.d.ts +1 -1
- package/dist/replay/normalizers/shared.d.ts +1 -1
- package/dist/replay/runner.d.ts +1 -1
- package/dist/replay/types.d.ts +1 -1
- package/dist/replica-divergence.d.ts +1 -1
- package/dist/replica-peers-config.d.ts +1 -1
- package/dist/{resolution-3K27T4VO.js → resolution-MDPNOEG6.js} +4 -4
- package/dist/resolution-MDPNOEG6.js.map +1 -0
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +8 -7
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/routing/engine.d.ts +1 -1
- package/dist/routing/store.d.ts +1 -1
- package/dist/salvage-envelope.d.ts +1 -1
- package/dist/salvage-envelope.js +3 -3
- package/dist/schemas.d.ts +213 -116
- package/dist/schemas.js +1 -1
- package/dist/{scope-profiles-APjhSe-w.d.ts → scope-profiles-BXVq4Jv0.d.ts} +1 -1
- package/dist/search/embed-helper.d.ts +1 -1
- package/dist/search/factory.d.ts +1 -1
- package/dist/search/factory.js +3 -3
- package/dist/search/index.d.ts +1 -1
- package/dist/search/index.js +3 -3
- package/dist/search/lancedb-backend.d.ts +1 -1
- package/dist/search/meilisearch-backend.d.ts +1 -1
- package/dist/search/noop-backend.d.ts +1 -1
- package/dist/search/orama-backend.d.ts +1 -1
- package/dist/search/port.d.ts +1 -1
- package/dist/search/remote-backend.d.ts +1 -1
- package/dist/{semantic-consolidation-CrySDbk3.d.ts → semantic-consolidation-CGYxfa8F.d.ts} +1 -1
- package/dist/semantic-consolidation.d.ts +2 -2
- package/dist/semantic-consolidation.js +16 -15
- package/dist/semantic-rule-promotion.js +15 -14
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +15 -14
- package/dist/{service-B5W5IYCx.d.ts → service-CBDBQFCN.d.ts} +2 -2
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/shared-context/manager.d.ts +11 -11
- package/dist/signal.d.ts +1 -1
- package/dist/source-agent-qualifier.d.ts +1 -1
- package/dist/source-agent-qualifier.js +19 -18
- package/dist/{storage-COL907QF.d.ts → storage-V--MQi7w.d.ts} +5 -4
- package/dist/storage.d.ts +3 -2
- package/dist/storage.js +14 -13
- package/dist/summarizer.d.ts +1 -1
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/temporal-supersession.d.ts +14 -2
- package/dist/temporal-supersession.js +1 -1
- package/dist/temporal-timeline-recall.d.ts +1 -1
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +3 -2
- package/dist/tier-routing.d.ts +1 -1
- package/dist/{tier-stats-OPTSBNRH.js → tier-stats-2JCZYEF7.js} +5 -5
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/transfer/autodetect.js +1 -1
- package/dist/transfer/backup.js +1 -1
- package/dist/transfer/capsule-export.js +2 -2
- package/dist/transfer/capsule-import.js +6 -6
- package/dist/transfer/types.d.ts +66 -66
- package/dist/trust-score-stage.d.ts +1 -1
- package/dist/trust-score.d.ts +1 -1
- package/dist/trust-zones.js +2 -2
- package/dist/{types-D_Au9qJO.d.ts → types-D_a6Sqjz.d.ts} +25 -8
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-learner.js +3 -3
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/utility-runtime.js +4 -4
- package/dist/utility-telemetry.js +2 -2
- package/dist/verified-recall.js +15 -14
- package/dist/work-product-ledger.js +2 -2
- package/dist/write-envelope.d.ts +1 -1
- package/dist/write-envelope.js +2 -2
- package/package.json +32 -2
- package/src/abstraction-nodes.ts +182 -4
- package/src/causal-trajectory.ts +258 -3
- package/src/cli/harmonic-search.ts +23 -0
- package/src/cli/research-status-commands.ts +2 -1
- package/src/cli.ts +1 -24
- package/src/coding/pre-action-gate.test.ts +516 -0
- package/src/coding/pre-action-gate.ts +320 -0
- package/src/config.test.ts +85 -0
- package/src/config.ts +2 -0
- package/src/corpus-read-cancellation.ts +42 -0
- package/src/cue-anchors.test.ts +90 -0
- package/src/cue-anchors.ts +264 -11
- package/src/dependency-frontmatter.test.ts +83 -0
- package/src/dependency-propagation-config.ts +94 -0
- package/src/deterministic-order.ts +14 -0
- package/src/entity-retrieval.ts +4 -4
- package/src/extraction-normalization.ts +71 -0
- package/src/extraction-prompt.ts +45 -11
- package/src/extraction.ts +48 -32
- package/src/faithfulness-graph-guard.test.ts +27 -0
- package/src/harmonic-construction.test.ts +1799 -0
- package/src/harmonic-construction.ts +367 -0
- package/src/harmonic-retrieval.ts +166 -25
- package/src/in-flight-reads.ts +119 -6
- package/src/index.ts +4 -5
- package/src/json-store.ts +354 -12
- package/src/orchestration/consolidation-run.ts +192 -0
- package/src/orchestration/contradiction-linking-coordinator.ts +35 -1
- package/src/orchestration/dependency-propagation-triggers.test.ts +286 -0
- package/src/orchestration/dependency-propagation.test.ts +487 -0
- package/src/orchestration/dependency-propagation.ts +263 -0
- package/src/orchestration/dependency-revalidation.ts +173 -0
- package/src/orchestration/extraction-persist-deps.ts +93 -0
- package/src/orchestration/extraction-persist.ts +101 -94
- package/src/orchestration/harmonic-construction-persist.ts +86 -0
- package/src/orchestration/namespace-read-fanout.ts +13 -2
- package/src/orchestration/recall-internal-deps.ts +2 -0
- package/src/orchestration/recall-internal.ts +5 -1
- package/src/orchestration/recall-search-pipeline.ts +2 -0
- package/src/orchestration/recall-search-prefilter.ts +5 -1
- package/src/orchestrator.ts +7 -6
- package/src/schemas.ts +15 -0
- package/src/storage/entity-store.ts +9 -2
- package/src/storage/memory-read-store.ts +33 -4
- package/src/storage-contract/corpus-read-cancellation.test.ts +408 -0
- package/src/storage.ts +75 -19
- package/src/temporal-supersession.ts +29 -1
- package/src/testing/orchestrator-lite.ts +27 -8
- package/src/testing/subjects/extraction-lifecycle.test.ts +91 -50
- package/src/types.ts +22 -7
- package/dist/chunk-2P3GQVM2.js.map +0 -1
- package/dist/chunk-3S63QIFQ.js.map +0 -1
- package/dist/chunk-4WBGZYZZ.js.map +0 -1
- package/dist/chunk-CMQZNEIF.js.map +0 -1
- package/dist/chunk-DNHVPZOD.js.map +0 -1
- package/dist/chunk-FZZ2QTJI.js +0 -111
- package/dist/chunk-FZZ2QTJI.js.map +0 -1
- package/dist/chunk-J7T4MX7P.js.map +0 -1
- package/dist/chunk-KSGEGHYA.js.map +0 -1
- package/dist/chunk-KVJRXN2E.js.map +0 -1
- package/dist/chunk-LPSF4OQH.js +0 -47
- package/dist/chunk-LPSF4OQH.js.map +0 -1
- package/dist/chunk-LZGCJSQR.js.map +0 -1
- package/dist/chunk-OADWQ5CR.js +0 -115
- package/dist/chunk-OADWQ5CR.js.map +0 -1
- package/dist/chunk-PDJTHRAW.js +0 -36
- package/dist/chunk-PDJTHRAW.js.map +0 -1
- package/dist/chunk-PLCZD3LG.js.map +0 -1
- package/dist/chunk-RN53QBM4.js.map +0 -1
- package/dist/chunk-W4FBGYGK.js.map +0 -1
- /package/dist/{auto-sync-7O6RP2RT.js.map → auto-sync-QFQGOEO2.js.map} +0 -0
- /package/dist/{capsule-merge-Q6AR3XL7.js.map → capsule-merge-KXTRZ23Z.js.map} +0 -0
- /package/dist/{chunk-ICP53SKG.js.map → chunk-2HIJHXB3.js.map} +0 -0
- /package/dist/{chunk-FJ2ND6CZ.js.map → chunk-47J4EDGR.js.map} +0 -0
- /package/dist/{chunk-S55OAS5P.js.map → chunk-4EABKPZS.js.map} +0 -0
- /package/dist/{chunk-GD7UPIBG.js.map → chunk-4JWJMRPJ.js.map} +0 -0
- /package/dist/{chunk-3NDN5P55.js.map → chunk-4S3ECH3U.js.map} +0 -0
- /package/dist/{chunk-CGASUJVP.js.map → chunk-5V6IXHPI.js.map} +0 -0
- /package/dist/{chunk-A4JMGKCD.js.map → chunk-5XCN4XBU.js.map} +0 -0
- /package/dist/{chunk-2RPJ4NEE.js.map → chunk-64BHFFKZ.js.map} +0 -0
- /package/dist/{chunk-FQC3DHH2.js.map → chunk-66SE3BNH.js.map} +0 -0
- /package/dist/{chunk-TERNBNJB.js.map → chunk-6FC3IZ26.js.map} +0 -0
- /package/dist/{chunk-53AJILXF.js.map → chunk-6XGEBQ3R.js.map} +0 -0
- /package/dist/{chunk-IP3DHDU2.js.map → chunk-7BLWBSRL.js.map} +0 -0
- /package/dist/{chunk-A2TFK5PG.js.map → chunk-7NDM2PNK.js.map} +0 -0
- /package/dist/{chunk-HRMEYQRO.js.map → chunk-7VWZ4LRW.js.map} +0 -0
- /package/dist/{chunk-R6YJI3HE.js.map → chunk-AW4QUFQF.js.map} +0 -0
- /package/dist/{chunk-P65YJEEL.js.map → chunk-AXFWMRKI.js.map} +0 -0
- /package/dist/{chunk-WG5HSQ4P.js.map → chunk-BAKXNQ3C.js.map} +0 -0
- /package/dist/{chunk-NM2WP3B7.js.map → chunk-BJYET5TX.js.map} +0 -0
- /package/dist/{chunk-HLKPRWF4.js.map → chunk-DATDLJAO.js.map} +0 -0
- /package/dist/{chunk-DX3XRGLH.js.map → chunk-DQTCGVFK.js.map} +0 -0
- /package/dist/{chunk-HIDEBEAN.js.map → chunk-E633OXMH.js.map} +0 -0
- /package/dist/{chunk-EZNXW27Q.js.map → chunk-ELQCS47S.js.map} +0 -0
- /package/dist/{chunk-HAYSYUAB.js.map → chunk-EURCX6PS.js.map} +0 -0
- /package/dist/{chunk-RSPSHRZA.js.map → chunk-FV7YQTN3.js.map} +0 -0
- /package/dist/{chunk-GWHPQOUC.js.map → chunk-GGBSF2X7.js.map} +0 -0
- /package/dist/{chunk-SYUBB3WM.js.map → chunk-GKEYXXKX.js.map} +0 -0
- /package/dist/{chunk-PELT6ADC.js.map → chunk-GSEPRIZC.js.map} +0 -0
- /package/dist/{chunk-UTVZKHJK.js.map → chunk-GUKBW4HL.js.map} +0 -0
- /package/dist/{chunk-2F6NP3NT.js.map → chunk-HDQUQBPW.js.map} +0 -0
- /package/dist/{chunk-6HMYUWXR.js.map → chunk-HTP6XRUI.js.map} +0 -0
- /package/dist/{chunk-UYUYZ4WY.js.map → chunk-IARXXZU4.js.map} +0 -0
- /package/dist/{chunk-MNB5RMAY.js.map → chunk-IIFFC3RL.js.map} +0 -0
- /package/dist/{chunk-KQAFEZQX.js.map → chunk-IPLYGWQF.js.map} +0 -0
- /package/dist/{chunk-NZBZ7IS2.js.map → chunk-JDCQK3C5.js.map} +0 -0
- /package/dist/{chunk-ANCC3JJH.js.map → chunk-JI62YGPI.js.map} +0 -0
- /package/dist/{chunk-LULR4IUW.js.map → chunk-KATEWTQJ.js.map} +0 -0
- /package/dist/{chunk-IJ7HK452.js.map → chunk-KMAP7SNQ.js.map} +0 -0
- /package/dist/{chunk-PRVJH7CY.js.map → chunk-KMWYZTIE.js.map} +0 -0
- /package/dist/{chunk-JGSKJHF7.js.map → chunk-KQS72GCR.js.map} +0 -0
- /package/dist/{chunk-FMCHFSZF.js.map → chunk-LQKXVQZR.js.map} +0 -0
- /package/dist/{chunk-M4DMO67I.js.map → chunk-LTOAJXZB.js.map} +0 -0
- /package/dist/{chunk-NIS256NW.js.map → chunk-LYMNZZIM.js.map} +0 -0
- /package/dist/{chunk-3PY7VHV7.js.map → chunk-MCA2X4WH.js.map} +0 -0
- /package/dist/{chunk-S5NZBKKQ.js.map → chunk-N3CXAYPJ.js.map} +0 -0
- /package/dist/{chunk-WQIHRA5F.js.map → chunk-N3LL5NEU.js.map} +0 -0
- /package/dist/{chunk-G2RBWVFQ.js.map → chunk-NKL25FCF.js.map} +0 -0
- /package/dist/{chunk-LMDRGRJ2.js.map → chunk-NOB2T2FC.js.map} +0 -0
- /package/dist/{chunk-P2OTGMTR.js.map → chunk-NSGU76YO.js.map} +0 -0
- /package/dist/{chunk-D5NGH2EW.js.map → chunk-O76MWTVS.js.map} +0 -0
- /package/dist/{chunk-WZFAPHIK.js.map → chunk-OIOZ6MOP.js.map} +0 -0
- /package/dist/{chunk-UMOO7IY7.js.map → chunk-P2KBDJJ6.js.map} +0 -0
- /package/dist/{chunk-SXWHN7GC.js.map → chunk-PDEKQWDV.js.map} +0 -0
- /package/dist/{chunk-2EJNXE53.js.map → chunk-PLCHU56K.js.map} +0 -0
- /package/dist/{chunk-45OTV7FZ.js.map → chunk-PWIMF7LP.js.map} +0 -0
- /package/dist/{chunk-7YKVM5H3.js.map → chunk-PWLB4TRK.js.map} +0 -0
- /package/dist/{chunk-RVYVMQK4.js.map → chunk-QSYL5CXK.js.map} +0 -0
- /package/dist/{chunk-NXUJRXSF.js.map → chunk-QWLW3VQH.js.map} +0 -0
- /package/dist/{chunk-JBPKEARU.js.map → chunk-RKNJBZ55.js.map} +0 -0
- /package/dist/{chunk-QCECHYZL.js.map → chunk-RVO6TCTU.js.map} +0 -0
- /package/dist/{chunk-5L7PTX2Q.js.map → chunk-S2SJEOTM.js.map} +0 -0
- /package/dist/{chunk-52I3YZZ6.js.map → chunk-S75UQ3T3.js.map} +0 -0
- /package/dist/{chunk-LXOM6IQU.js.map → chunk-SEF4IOFE.js.map} +0 -0
- /package/dist/{chunk-DUEEQCTT.js.map → chunk-SHYIMIX5.js.map} +0 -0
- /package/dist/{chunk-7K5Q6COX.js.map → chunk-TVVEYCNW.js.map} +0 -0
- /package/dist/{chunk-3JUYWPFJ.js.map → chunk-VFS3MK5F.js.map} +0 -0
- /package/dist/{chunk-WOEVJKKQ.js.map → chunk-WPZX7MEA.js.map} +0 -0
- /package/dist/{chunk-ZRWB5D4H.js.map → chunk-WT6UL3UA.js.map} +0 -0
- /package/dist/{chunk-MC6XO7T4.js.map → chunk-YLBE6PLR.js.map} +0 -0
- /package/dist/{chunk-GF22HWS2.js.map → chunk-Z54EM5YZ.js.map} +0 -0
- /package/dist/{chunk-GVX3NAUU.js.map → chunk-ZDAYWJV6.js.map} +0 -0
- /package/dist/{chunk-JYPO7L3G.js.map → chunk-ZN4EYMKJ.js.map} +0 -0
- /package/dist/{resolution-3K27T4VO.js.map → coding/pre-action-gate.js.map} +0 -0
- /package/dist/{first-start-migration-ZSHEFEI3.js.map → first-start-migration-626C5554.js.map} +0 -0
- /package/dist/{forget-DNAJ66ZD.js.map → forget-GJ42LCBW.js.map} +0 -0
- /package/dist/{tier-stats-OPTSBNRH.js.map → tier-stats-2JCZYEF7.js.map} +0 -0
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
loadSyncState,
|
|
7
7
|
syncWearableSource,
|
|
8
8
|
wearableSourceLabel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-IARXXZU4.js";
|
|
10
10
|
import {
|
|
11
11
|
CompressionGuidelineCoordinator
|
|
12
12
|
} from "./chunk-6LKEUCEM.js";
|
|
13
13
|
import {
|
|
14
14
|
ActivityStore,
|
|
15
15
|
MaintenanceScheduler
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-4EABKPZS.js";
|
|
17
17
|
import {
|
|
18
18
|
runPeerProfileReasoner
|
|
19
19
|
} from "./chunk-I74SUMNI.js";
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from "./chunk-7HYPN2GC.js";
|
|
23
23
|
import {
|
|
24
24
|
LcmEngine
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-Z54EM5YZ.js";
|
|
26
26
|
import {
|
|
27
27
|
chunkTranscriptEntries
|
|
28
28
|
} from "./chunk-TECVW3JP.js";
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
import {
|
|
33
33
|
CompoundingEngine,
|
|
34
34
|
defaultTierMigrationCycleBudget
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-PLCHU56K.js";
|
|
36
36
|
import {
|
|
37
37
|
SharedContextManager
|
|
38
38
|
} from "./chunk-M23RF3LJ.js";
|
|
@@ -40,16 +40,7 @@ import {
|
|
|
40
40
|
applyUtilityPromotionRuntimePolicy,
|
|
41
41
|
applyUtilityRankingRuntimeDelta,
|
|
42
42
|
loadUtilityRuntimeValues
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import {
|
|
45
|
-
extractTopics
|
|
46
|
-
} from "./chunk-UHGBNIOS.js";
|
|
47
|
-
import {
|
|
48
|
-
buildTemporalTimelineRecallSection
|
|
49
|
-
} from "./chunk-I6WYQSX4.js";
|
|
50
|
-
import {
|
|
51
|
-
CODEX_THREAD_KEY_PREFIX
|
|
52
|
-
} from "./chunk-4EX5WZ4M.js";
|
|
43
|
+
} from "./chunk-SEF4IOFE.js";
|
|
53
44
|
import {
|
|
54
45
|
TierMigrationExecutor
|
|
55
46
|
} from "./chunk-YRFAYOFQ.js";
|
|
@@ -59,6 +50,15 @@ import {
|
|
|
59
50
|
import {
|
|
60
51
|
TmtBuilder
|
|
61
52
|
} from "./chunk-ECZU5BJH.js";
|
|
53
|
+
import {
|
|
54
|
+
extractTopics
|
|
55
|
+
} from "./chunk-UHGBNIOS.js";
|
|
56
|
+
import {
|
|
57
|
+
buildTemporalTimelineRecallSection
|
|
58
|
+
} from "./chunk-I6WYQSX4.js";
|
|
59
|
+
import {
|
|
60
|
+
CODEX_THREAD_KEY_PREFIX
|
|
61
|
+
} from "./chunk-4EX5WZ4M.js";
|
|
62
62
|
import {
|
|
63
63
|
HourlySummarizer
|
|
64
64
|
} from "./chunk-LLJMAULE.js";
|
|
@@ -69,11 +69,6 @@ import {
|
|
|
69
69
|
import {
|
|
70
70
|
SessionObserverState
|
|
71
71
|
} from "./chunk-QFN4U7AG.js";
|
|
72
|
-
import {
|
|
73
|
-
RerankCache,
|
|
74
|
-
reorderByRankedKeys,
|
|
75
|
-
rerankLocalOrNoop
|
|
76
|
-
} from "./chunk-LUDXM7MD.js";
|
|
77
72
|
import {
|
|
78
73
|
buildResponseGuidanceRecallSection,
|
|
79
74
|
shouldRecallResponseGuidance
|
|
@@ -107,13 +102,18 @@ import {
|
|
|
107
102
|
} from "./chunk-X7XN6YU4.js";
|
|
108
103
|
import {
|
|
109
104
|
RelevanceStore
|
|
110
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-KATEWTQJ.js";
|
|
106
|
+
import {
|
|
107
|
+
RerankCache,
|
|
108
|
+
reorderByRankedKeys,
|
|
109
|
+
rerankLocalOrNoop
|
|
110
|
+
} from "./chunk-LUDXM7MD.js";
|
|
111
111
|
import {
|
|
112
112
|
LastRecallStore,
|
|
113
113
|
RecallHandleHistoryStore,
|
|
114
114
|
TierMigrationStatusStore,
|
|
115
115
|
clampGraphRecallExpandedEntries
|
|
116
|
-
} from "./chunk-
|
|
116
|
+
} from "./chunk-BJYET5TX.js";
|
|
117
117
|
import {
|
|
118
118
|
dedupeResultsByNamespace,
|
|
119
119
|
hasMemoryForResult,
|
|
@@ -144,25 +144,32 @@ import {
|
|
|
144
144
|
import {
|
|
145
145
|
runLiveConnectorsOnce
|
|
146
146
|
} from "./chunk-HTIIXNJQ.js";
|
|
147
|
+
import {
|
|
148
|
+
deriveHarmonicRecords,
|
|
149
|
+
harmonicEntityReferenceMatches,
|
|
150
|
+
harmonicEntitySegment,
|
|
151
|
+
normalizedHarmonicEntityIdentity,
|
|
152
|
+
persistHarmonicRecords
|
|
153
|
+
} from "./chunk-GXSOUIA4.js";
|
|
147
154
|
import {
|
|
148
155
|
classifyMemoryKind
|
|
149
156
|
} from "./chunk-YAZNBMNF.js";
|
|
157
|
+
import {
|
|
158
|
+
buildFocusedListRecallSection,
|
|
159
|
+
shouldRecallFocusedListEvidence
|
|
160
|
+
} from "./chunk-OH7QLI6W.js";
|
|
150
161
|
import {
|
|
151
162
|
ExtractionEngine
|
|
152
|
-
} from "./chunk-
|
|
163
|
+
} from "./chunk-3LD4N2TF.js";
|
|
153
164
|
import {
|
|
154
165
|
parseMemoryActionEligibilityContext
|
|
155
|
-
} from "./chunk-
|
|
166
|
+
} from "./chunk-WFLBP5GC.js";
|
|
156
167
|
import {
|
|
157
168
|
ModelRegistry
|
|
158
169
|
} from "./chunk-WLZYGLJ4.js";
|
|
159
170
|
import {
|
|
160
171
|
LocalLlmClient
|
|
161
172
|
} from "./chunk-L6CQ7WIW.js";
|
|
162
|
-
import {
|
|
163
|
-
buildFocusedListRecallSection,
|
|
164
|
-
shouldRecallFocusedListEvidence
|
|
165
|
-
} from "./chunk-OH7QLI6W.js";
|
|
166
173
|
import {
|
|
167
174
|
recordJudgeTrainingPair
|
|
168
175
|
} from "./chunk-PWFCHOB3.js";
|
|
@@ -173,6 +180,11 @@ import {
|
|
|
173
180
|
judgeFactDurability,
|
|
174
181
|
validateProcedureExtraction
|
|
175
182
|
} from "./chunk-K2TDK7GG.js";
|
|
183
|
+
import {
|
|
184
|
+
buildEntityRecallSection,
|
|
185
|
+
entityRecentTranscriptLookbackHours,
|
|
186
|
+
readRecentEntityTranscriptEntries
|
|
187
|
+
} from "./chunk-ZJIFYUJI.js";
|
|
176
188
|
import {
|
|
177
189
|
buildEventOrderRecallSection,
|
|
178
190
|
shouldRecallEventOrderEvidence
|
|
@@ -184,29 +196,24 @@ import {
|
|
|
184
196
|
import {
|
|
185
197
|
buildExplicitCueRecallSection
|
|
186
198
|
} from "./chunk-TVIVY7KU.js";
|
|
199
|
+
import {
|
|
200
|
+
tryDirectAnswer
|
|
201
|
+
} from "./chunk-CSOYVTRX.js";
|
|
187
202
|
import {
|
|
188
203
|
EmbeddingFallback
|
|
189
204
|
} from "./chunk-YK6BDDHP.js";
|
|
190
|
-
import {
|
|
191
|
-
buildEntityRecallSection,
|
|
192
|
-
entityRecentTranscriptLookbackHours,
|
|
193
|
-
readRecentEntityTranscriptEntries
|
|
194
|
-
} from "./chunk-4WBGZYZZ.js";
|
|
195
205
|
import {
|
|
196
206
|
formatDaySummaryMemories
|
|
197
207
|
} from "./chunk-RPSYDM6C.js";
|
|
198
|
-
import {
|
|
199
|
-
tryDirectAnswer
|
|
200
|
-
} from "./chunk-CSOYVTRX.js";
|
|
201
208
|
import {
|
|
202
209
|
refreshConvergedNamespaces
|
|
203
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-VFS3MK5F.js";
|
|
204
211
|
import {
|
|
205
212
|
builtInConnectorPackageSpecifier,
|
|
206
213
|
ensureBuiltInWearableConnectors,
|
|
207
214
|
getWearableConnector,
|
|
208
215
|
listWearableConnectors
|
|
209
|
-
} from "./chunk-
|
|
216
|
+
} from "./chunk-T35UJI5R.js";
|
|
210
217
|
import {
|
|
211
218
|
RoutingRulesStore
|
|
212
219
|
} from "./chunk-XL24QQ63.js";
|
|
@@ -216,17 +223,17 @@ import {
|
|
|
216
223
|
import {
|
|
217
224
|
compareVerifiedEpisodeResults,
|
|
218
225
|
searchVerifiedEpisodes
|
|
219
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-4JWJMRPJ.js";
|
|
220
227
|
import {
|
|
221
228
|
ThreadingManager
|
|
222
229
|
} from "./chunk-OJP3N7UK.js";
|
|
223
230
|
import {
|
|
224
231
|
compareVerifiedSemanticRuleResults,
|
|
225
232
|
searchVerifiedSemanticRules
|
|
226
|
-
} from "./chunk-
|
|
233
|
+
} from "./chunk-S2SJEOTM.js";
|
|
227
234
|
import {
|
|
228
235
|
searchWorkProductLedgerEntries
|
|
229
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-WT6UL3UA.js";
|
|
230
237
|
import {
|
|
231
238
|
TranscriptManager
|
|
232
239
|
} from "./chunk-HYQJQGD3.js";
|
|
@@ -236,25 +243,28 @@ import {
|
|
|
236
243
|
import {
|
|
237
244
|
runNamespaceMaintenanceFanout,
|
|
238
245
|
summarizeNamespaceMaintenanceHealth
|
|
239
|
-
} from "./chunk-
|
|
246
|
+
} from "./chunk-E633OXMH.js";
|
|
240
247
|
import {
|
|
241
248
|
NamespaceCatalog,
|
|
242
249
|
planNamespaceMaintenance
|
|
243
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-O76MWTVS.js";
|
|
244
251
|
import {
|
|
245
252
|
isAboveImportanceThreshold,
|
|
246
253
|
scoreImportance
|
|
247
254
|
} from "./chunk-JXS5PDQ7.js";
|
|
248
255
|
import {
|
|
249
256
|
searchHarmonicRetrieval
|
|
250
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-P4QOYG52.js";
|
|
251
258
|
import {
|
|
252
259
|
EXTRACTION_JUDGE_VERDICT_CATEGORY,
|
|
253
260
|
recordJudgeVerdict
|
|
254
261
|
} from "./chunk-OZKOPQCM.js";
|
|
255
262
|
import {
|
|
256
263
|
recordEvalShadowRecall
|
|
257
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-MCA2X4WH.js";
|
|
265
|
+
import {
|
|
266
|
+
pruneOrphanCueAnchors
|
|
267
|
+
} from "./chunk-ACPCA4NO.js";
|
|
258
268
|
import {
|
|
259
269
|
collectNativeKnowledgeChunks,
|
|
260
270
|
formatNativeKnowledgeSection,
|
|
@@ -262,7 +272,7 @@ import {
|
|
|
262
272
|
} from "./chunk-2DQ2XREU.js";
|
|
263
273
|
import {
|
|
264
274
|
applyCommitmentLedgerLifecycle
|
|
265
|
-
} from "./chunk-
|
|
275
|
+
} from "./chunk-NOB2T2FC.js";
|
|
266
276
|
import {
|
|
267
277
|
buildConsolidationPrompt,
|
|
268
278
|
buildExtensionsBlockForConsolidation,
|
|
@@ -272,7 +282,7 @@ import {
|
|
|
272
282
|
materializeAfterSemanticConsolidation,
|
|
273
283
|
parseConsolidationResponse,
|
|
274
284
|
parseOperatorAwareConsolidationResponse
|
|
275
|
-
} from "./chunk-
|
|
285
|
+
} from "./chunk-GGBSF2X7.js";
|
|
276
286
|
import {
|
|
277
287
|
BoxBuilder
|
|
278
288
|
} from "./chunk-B7RWBZXW.js";
|
|
@@ -284,10 +294,10 @@ import {
|
|
|
284
294
|
} from "./chunk-UQ7RN5HK.js";
|
|
285
295
|
import {
|
|
286
296
|
SmartBuffer
|
|
287
|
-
} from "./chunk-
|
|
297
|
+
} from "./chunk-64BHFFKZ.js";
|
|
288
298
|
import {
|
|
289
299
|
detectMeetings
|
|
290
|
-
} from "./chunk-
|
|
300
|
+
} from "./chunk-A4QMKFFO.js";
|
|
291
301
|
import {
|
|
292
302
|
compileCorrectionRule,
|
|
293
303
|
correctionsFilePath,
|
|
@@ -318,7 +328,7 @@ import {
|
|
|
318
328
|
} from "./chunk-H3FZVNRN.js";
|
|
319
329
|
import {
|
|
320
330
|
MeetingsInputError
|
|
321
|
-
} from "./chunk-
|
|
331
|
+
} from "./chunk-LQKXVQZR.js";
|
|
322
332
|
import {
|
|
323
333
|
WearablesInputError,
|
|
324
334
|
describeErrorForOperator
|
|
@@ -339,10 +349,10 @@ import {
|
|
|
339
349
|
filterRecallCandidates,
|
|
340
350
|
isGenericRecallExcludedPath,
|
|
341
351
|
isTopLevelArchivePath
|
|
342
|
-
} from "./chunk-
|
|
352
|
+
} from "./chunk-PWIMF7LP.js";
|
|
343
353
|
import {
|
|
344
354
|
importCapsule
|
|
345
|
-
} from "./chunk-
|
|
355
|
+
} from "./chunk-5XCN4XBU.js";
|
|
346
356
|
import {
|
|
347
357
|
isCodingGraphInstalled
|
|
348
358
|
} from "./chunk-VQ7B2Q6M.js";
|
|
@@ -356,7 +366,10 @@ import {
|
|
|
356
366
|
import {
|
|
357
367
|
listTrustZoneRecords,
|
|
358
368
|
searchTrustZoneRecords
|
|
359
|
-
} from "./chunk-
|
|
369
|
+
} from "./chunk-KQS72GCR.js";
|
|
370
|
+
import {
|
|
371
|
+
buildXraySnapshot
|
|
372
|
+
} from "./chunk-NSGU76YO.js";
|
|
360
373
|
import {
|
|
361
374
|
boundRecallContextComposition,
|
|
362
375
|
composeRecallContext,
|
|
@@ -364,41 +377,38 @@ import {
|
|
|
364
377
|
formatCuriosityFooter,
|
|
365
378
|
selectCuriosityQuestion
|
|
366
379
|
} from "./chunk-AHVEHR6K.js";
|
|
367
|
-
import {
|
|
368
|
-
buildXraySnapshot
|
|
369
|
-
} from "./chunk-P2OTGMTR.js";
|
|
370
380
|
import {
|
|
371
381
|
objectiveStateStoreOverrideForNamespace,
|
|
372
382
|
searchObjectiveStateSnapshots
|
|
373
|
-
} from "./chunk-
|
|
383
|
+
} from "./chunk-HTP6XRUI.js";
|
|
384
|
+
import {
|
|
385
|
+
contentMatchesRedactionRules,
|
|
386
|
+
loadRedactionRules
|
|
387
|
+
} from "./chunk-LTHVM4XN.js";
|
|
374
388
|
import {
|
|
375
389
|
ProfilingCollector
|
|
376
390
|
} from "./chunk-NLE6TSLG.js";
|
|
377
391
|
import {
|
|
378
392
|
buildProcedurePersistBody
|
|
379
393
|
} from "./chunk-QDW3E4RD.js";
|
|
380
|
-
import {
|
|
381
|
-
contentMatchesRedactionRules,
|
|
382
|
-
loadRedactionRules
|
|
383
|
-
} from "./chunk-LTHVM4XN.js";
|
|
384
394
|
import {
|
|
385
395
|
shouldSkipImplicitExtraction
|
|
386
|
-
} from "./chunk-
|
|
396
|
+
} from "./chunk-N3CXAYPJ.js";
|
|
387
397
|
import {
|
|
388
398
|
NamespaceSearchRouter,
|
|
389
399
|
namespaceCollectionName
|
|
390
|
-
} from "./chunk-
|
|
400
|
+
} from "./chunk-KMWYZTIE.js";
|
|
391
401
|
import {
|
|
392
402
|
createConversationIndexRuntime,
|
|
393
403
|
createSearchBackend,
|
|
394
404
|
isSearchBackendEnabled
|
|
395
|
-
} from "./chunk-
|
|
405
|
+
} from "./chunk-47J4EDGR.js";
|
|
396
406
|
import {
|
|
397
407
|
NoopSearchBackend
|
|
398
408
|
} from "./chunk-CYEPCZN5.js";
|
|
399
409
|
import {
|
|
400
410
|
NamespaceStorageRouter
|
|
401
|
-
} from "./chunk-
|
|
411
|
+
} from "./chunk-JI62YGPI.js";
|
|
402
412
|
import {
|
|
403
413
|
writeConversationChunks
|
|
404
414
|
} from "./chunk-72A4L5JJ.js";
|
|
@@ -407,10 +417,10 @@ import {
|
|
|
407
417
|
} from "./chunk-L2DPF4DF.js";
|
|
408
418
|
import {
|
|
409
419
|
searchCausalTrajectories
|
|
410
|
-
} from "./chunk-
|
|
420
|
+
} from "./chunk-M4MP34AQ.js";
|
|
411
421
|
import {
|
|
412
422
|
buildChainFollowupGenerator
|
|
413
|
-
} from "./chunk-
|
|
423
|
+
} from "./chunk-4S3ECH3U.js";
|
|
414
424
|
import {
|
|
415
425
|
QmdResultResolver,
|
|
416
426
|
StorageManager,
|
|
@@ -429,7 +439,10 @@ import {
|
|
|
429
439
|
reconstructFusionInputs,
|
|
430
440
|
selfDeps,
|
|
431
441
|
serializeFusionDay
|
|
432
|
-
} from "./chunk-
|
|
442
|
+
} from "./chunk-24BKGKGO.js";
|
|
443
|
+
import {
|
|
444
|
+
buildRetiredFactTombstoneInputs
|
|
445
|
+
} from "./chunk-ENTCVTQR.js";
|
|
433
446
|
import {
|
|
434
447
|
bodyIsEscaped,
|
|
435
448
|
decodeTranscriptBody,
|
|
@@ -440,9 +453,6 @@ import {
|
|
|
440
453
|
saveSpeakerRegistry,
|
|
441
454
|
speakerRegistryKey
|
|
442
455
|
} from "./chunk-UHVXE24Y.js";
|
|
443
|
-
import {
|
|
444
|
-
buildRetiredFactTombstoneInputs
|
|
445
|
-
} from "./chunk-ENTCVTQR.js";
|
|
446
456
|
import {
|
|
447
457
|
canRecallToolScopedMemory,
|
|
448
458
|
shouldPromoteGlobalFactToShared,
|
|
@@ -455,7 +465,7 @@ import {
|
|
|
455
465
|
} from "./chunk-J6A3CX5N.js";
|
|
456
466
|
import {
|
|
457
467
|
confidenceTier
|
|
458
|
-
} from "./chunk-
|
|
468
|
+
} from "./chunk-LAQ33B5D.js";
|
|
459
469
|
import {
|
|
460
470
|
lintWorkspaceFiles,
|
|
461
471
|
rotateMarkdownFileToArchive
|
|
@@ -469,17 +479,20 @@ import {
|
|
|
469
479
|
TAG_LIMITS,
|
|
470
480
|
composeMemoryEnvelope,
|
|
471
481
|
isMemoryCategory
|
|
472
|
-
} from "./chunk-
|
|
482
|
+
} from "./chunk-5V6IXHPI.js";
|
|
483
|
+
import {
|
|
484
|
+
normalizeTags
|
|
485
|
+
} from "./chunk-BT7NVCML.js";
|
|
473
486
|
import {
|
|
474
487
|
normalizeAttributePairs,
|
|
475
488
|
stripAttributesSuffix
|
|
476
489
|
} from "./chunk-R3DJVOSM.js";
|
|
477
490
|
import {
|
|
478
|
-
|
|
479
|
-
} from "./chunk-
|
|
491
|
+
checkCorpusReadAbort
|
|
492
|
+
} from "./chunk-5GINB5LC.js";
|
|
480
493
|
import {
|
|
481
494
|
bumpMemoryCorpusVersionForDir
|
|
482
|
-
} from "./chunk-
|
|
495
|
+
} from "./chunk-KMAP7SNQ.js";
|
|
483
496
|
import {
|
|
484
497
|
HistoricalEntityCanonicalIdCache,
|
|
485
498
|
canonicalizeEntityRefFrontmatter,
|
|
@@ -490,13 +503,14 @@ import {
|
|
|
490
503
|
requestEntityCanonicalIdReconcile,
|
|
491
504
|
requestEntityCanonicalIdReconcileSync,
|
|
492
505
|
withRawEntityPageMutation
|
|
493
|
-
} from "./chunk-
|
|
506
|
+
} from "./chunk-JDCQK3C5.js";
|
|
494
507
|
import {
|
|
495
508
|
applyTemporalSupersession,
|
|
496
509
|
normalizeSupersessionKey,
|
|
510
|
+
propagateInvalidation,
|
|
497
511
|
shouldFilterSupersededFromRecall,
|
|
498
512
|
supersessionKeysForFact
|
|
499
|
-
} from "./chunk-
|
|
513
|
+
} from "./chunk-P26YHAQH.js";
|
|
500
514
|
import {
|
|
501
515
|
isValidAsOf,
|
|
502
516
|
isValidityExpiredNow
|
|
@@ -540,7 +554,7 @@ import {
|
|
|
540
554
|
throwIfRecallAborted,
|
|
541
555
|
tokenizeRecallQuery,
|
|
542
556
|
utcDateKeysForLocalDay
|
|
543
|
-
} from "./chunk-
|
|
557
|
+
} from "./chunk-N3LL5NEU.js";
|
|
544
558
|
import {
|
|
545
559
|
inferIntentFromText,
|
|
546
560
|
intentCompatibilityScore,
|
|
@@ -2790,12 +2804,39 @@ var ContradictionLinkingCoordinator = class {
|
|
|
2790
2804
|
if (!contradiction || !config.contradictionAutoResolve || postWriteGuard) {
|
|
2791
2805
|
return;
|
|
2792
2806
|
}
|
|
2807
|
+
let oldMemory = null;
|
|
2793
2808
|
try {
|
|
2794
|
-
await storage.
|
|
2809
|
+
oldMemory = await storage.getMemoryById(contradiction.supersededId);
|
|
2810
|
+
} catch (err) {
|
|
2811
|
+
log.warn(`contradiction propagation snapshot failed for ${contradiction.supersededId}: ${err}`);
|
|
2812
|
+
}
|
|
2813
|
+
try {
|
|
2814
|
+
const superseded = await storage.supersedeMemory(
|
|
2795
2815
|
contradiction.supersededId,
|
|
2796
2816
|
newMemoryId,
|
|
2797
2817
|
contradiction.reason
|
|
2798
2818
|
);
|
|
2819
|
+
if (!superseded) return;
|
|
2820
|
+
if (oldMemory) {
|
|
2821
|
+
try {
|
|
2822
|
+
await propagateInvalidation(
|
|
2823
|
+
{
|
|
2824
|
+
storage,
|
|
2825
|
+
extraction: this.getExtraction(),
|
|
2826
|
+
config
|
|
2827
|
+
},
|
|
2828
|
+
{
|
|
2829
|
+
oldMemory,
|
|
2830
|
+
replacementId: newMemoryId,
|
|
2831
|
+
replacementContent: (await storage.getMemoryById(newMemoryId))?.content ?? null,
|
|
2832
|
+
cause: "contradiction",
|
|
2833
|
+
namespaceScope: this.namespaceFromPath(storage.dir)
|
|
2834
|
+
}
|
|
2835
|
+
);
|
|
2836
|
+
} catch (err) {
|
|
2837
|
+
log.warn(`contradiction dependency propagation failed for ${contradiction.supersededId}: ${err}`);
|
|
2838
|
+
}
|
|
2839
|
+
}
|
|
2799
2840
|
if (resolveIndexingCapabilities(config).queryAwareIndexing && contradiction.supersededPath) {
|
|
2800
2841
|
await deindexMemoryAsync(
|
|
2801
2842
|
config.memoryDir,
|
|
@@ -2860,11 +2901,107 @@ var ContradictionLinkingCoordinator = class {
|
|
|
2860
2901
|
// src/orchestration/consolidation-run.ts
|
|
2861
2902
|
import path4 from "path";
|
|
2862
2903
|
import { mkdir as mkdir2, readFile, writeFile as writeFile2 } from "fs/promises";
|
|
2904
|
+
var MAX_HARMONIC_NAMESPACE_STORES = 50;
|
|
2905
|
+
var HARMONIC_CATALOG_CURSOR_FILE = "harmonic-catalog-cursor.json";
|
|
2863
2906
|
var ConsolidationRunCoordinator = class {
|
|
2864
2907
|
constructor(deps) {
|
|
2865
2908
|
this.deps = deps;
|
|
2866
2909
|
}
|
|
2867
2910
|
deps;
|
|
2911
|
+
async readHarmonicCatalogCursor(defaultDir) {
|
|
2912
|
+
const cursorPath = path4.join(defaultDir, "state", HARMONIC_CATALOG_CURSOR_FILE);
|
|
2913
|
+
try {
|
|
2914
|
+
const raw = await readFile(cursorPath, "utf-8");
|
|
2915
|
+
const parsed = JSON.parse(raw);
|
|
2916
|
+
return typeof parsed.nextStorageDir === "string" && parsed.nextStorageDir.length > 0 ? path4.resolve(parsed.nextStorageDir) : void 0;
|
|
2917
|
+
} catch (error) {
|
|
2918
|
+
if (error.code !== "ENOENT") {
|
|
2919
|
+
log.warn(
|
|
2920
|
+
`harmonic namespace catalog cursor read failed open: ${error instanceof Error ? error.message : String(error)}`
|
|
2921
|
+
);
|
|
2922
|
+
}
|
|
2923
|
+
return void 0;
|
|
2924
|
+
}
|
|
2925
|
+
}
|
|
2926
|
+
async writeHarmonicCatalogCursor(defaultDir, nextStorageDir) {
|
|
2927
|
+
const stateDir = path4.join(defaultDir, "state");
|
|
2928
|
+
await mkdir2(stateDir, { recursive: true });
|
|
2929
|
+
await writeFile2(
|
|
2930
|
+
path4.join(stateDir, HARMONIC_CATALOG_CURSOR_FILE),
|
|
2931
|
+
JSON.stringify({ nextStorageDir }, null, 2),
|
|
2932
|
+
"utf-8"
|
|
2933
|
+
);
|
|
2934
|
+
}
|
|
2935
|
+
async pruneHarmonicStores(storage) {
|
|
2936
|
+
const config = this.deps.config;
|
|
2937
|
+
if (!resolveCapabilities(config).harmonicRetrieval || !resolveConsolidationCapabilities(config).abstractionAnchors) {
|
|
2938
|
+
return;
|
|
2939
|
+
}
|
|
2940
|
+
const stores = /* @__PURE__ */ new Map();
|
|
2941
|
+
const defaultDir = path4.resolve(storage.dir);
|
|
2942
|
+
stores.set(defaultDir, {
|
|
2943
|
+
memoryDir: storage.dir,
|
|
2944
|
+
abstractionNodeStoreDir: config.abstractionNodeStoreDir
|
|
2945
|
+
});
|
|
2946
|
+
try {
|
|
2947
|
+
const catalog = this.deps.getNamespaceCatalog?.();
|
|
2948
|
+
if (catalog?.enabled) {
|
|
2949
|
+
const records = await catalog.listNamespaces({ discoveredBy: "write" });
|
|
2950
|
+
const catalogStores = /* @__PURE__ */ new Map();
|
|
2951
|
+
for (const record of records) {
|
|
2952
|
+
const storageDir = path4.resolve(record.storageDir);
|
|
2953
|
+
if (!stores.has(storageDir) && !catalogStores.has(storageDir)) {
|
|
2954
|
+
catalogStores.set(storageDir, { memoryDir: record.storageDir });
|
|
2955
|
+
}
|
|
2956
|
+
}
|
|
2957
|
+
const candidates = [...catalogStores.entries()];
|
|
2958
|
+
if (candidates.length > 0) {
|
|
2959
|
+
const cursor = await this.readHarmonicCatalogCursor(defaultDir);
|
|
2960
|
+
const cursorIndex = cursor ? candidates.findIndex(([storageDir]) => storageDir === cursor) : -1;
|
|
2961
|
+
const startIndex = cursorIndex >= 0 ? cursorIndex : 0;
|
|
2962
|
+
const selectedCount = Math.min(
|
|
2963
|
+
candidates.length,
|
|
2964
|
+
MAX_HARMONIC_NAMESPACE_STORES - 1
|
|
2965
|
+
);
|
|
2966
|
+
for (let offset = 0; offset < selectedCount; offset += 1) {
|
|
2967
|
+
const index = (startIndex + offset) % candidates.length;
|
|
2968
|
+
const [storageDir, store] = candidates[index];
|
|
2969
|
+
stores.set(storageDir, store);
|
|
2970
|
+
}
|
|
2971
|
+
const nextIndex = (startIndex + selectedCount) % candidates.length;
|
|
2972
|
+
const nextStorageDir = candidates[nextIndex][0];
|
|
2973
|
+
try {
|
|
2974
|
+
await this.writeHarmonicCatalogCursor(defaultDir, nextStorageDir);
|
|
2975
|
+
} catch (error) {
|
|
2976
|
+
log.warn(
|
|
2977
|
+
`harmonic namespace catalog cursor write failed open: ${error instanceof Error ? error.message : String(error)}`
|
|
2978
|
+
);
|
|
2979
|
+
}
|
|
2980
|
+
if (selectedCount < candidates.length) {
|
|
2981
|
+
log.warn(
|
|
2982
|
+
`harmonic namespace catalog truncated at ${MAX_HARMONIC_NAMESPACE_STORES} stores; skipped ${candidates.length - selectedCount} store(s)`
|
|
2983
|
+
);
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
}
|
|
2987
|
+
} catch (error) {
|
|
2988
|
+
log.warn(
|
|
2989
|
+
`harmonic namespace catalog read failed open: ${error instanceof Error ? error.message : String(error)}`
|
|
2990
|
+
);
|
|
2991
|
+
}
|
|
2992
|
+
for (const store of stores.values()) {
|
|
2993
|
+
try {
|
|
2994
|
+
const removed = await pruneOrphanCueAnchors(store);
|
|
2995
|
+
if (removed > 0) {
|
|
2996
|
+
log.info(`harmonic anchor prune removed ${removed} orphan(s) from ${store.memoryDir}`);
|
|
2997
|
+
}
|
|
2998
|
+
} catch (error) {
|
|
2999
|
+
log.warn(
|
|
3000
|
+
`harmonic anchor prune failed open for ${store.memoryDir}: ${error instanceof Error ? error.message : String(error)}`
|
|
3001
|
+
);
|
|
3002
|
+
}
|
|
3003
|
+
}
|
|
3004
|
+
}
|
|
2868
3005
|
async run() {
|
|
2869
3006
|
const config = this.deps.config;
|
|
2870
3007
|
const storage = this.deps.getStorage();
|
|
@@ -2876,6 +3013,7 @@ var ConsolidationRunCoordinator = class {
|
|
|
2876
3013
|
if (this.deps.getAccessTrackingBuffer().size > 0) {
|
|
2877
3014
|
await this.deps.flushAccessTracking();
|
|
2878
3015
|
}
|
|
3016
|
+
await this.pruneHarmonicStores(storage);
|
|
2879
3017
|
let allMemories = await storage.readAllMemories();
|
|
2880
3018
|
if (allMemories.length < 5) {
|
|
2881
3019
|
return { memoriesProcessed: allMemories.length, merged, invalidated };
|
|
@@ -2895,10 +3033,35 @@ var ConsolidationRunCoordinator = class {
|
|
|
2895
3033
|
switch (item.action) {
|
|
2896
3034
|
case "INVALIDATE": {
|
|
2897
3035
|
const toInvalidate = resolveIndexingCapabilities(config).queryAwareIndexing ? memoryLookup?.get(item.existingId) ?? null : null;
|
|
3036
|
+
const propagationOld = allMemories.find(
|
|
3037
|
+
(memory) => memory.frontmatter.id === item.existingId
|
|
3038
|
+
);
|
|
2898
3039
|
if (await storage.invalidateMemory(item.existingId)) {
|
|
2899
3040
|
invalidated += 1;
|
|
2900
3041
|
memoryItemMutated = true;
|
|
2901
3042
|
await this.deps.embeddingFallback.removeFromIndex(item.existingId);
|
|
3043
|
+
if (propagationOld) {
|
|
3044
|
+
try {
|
|
3045
|
+
await propagateInvalidation(
|
|
3046
|
+
{
|
|
3047
|
+
storage,
|
|
3048
|
+
extraction: this.deps.getExtraction(),
|
|
3049
|
+
config
|
|
3050
|
+
},
|
|
3051
|
+
{
|
|
3052
|
+
oldMemory: propagationOld,
|
|
3053
|
+
replacementId: null,
|
|
3054
|
+
replacementContent: null,
|
|
3055
|
+
cause: "consolidation_invalidate",
|
|
3056
|
+
namespaceScope: config.defaultNamespace
|
|
3057
|
+
}
|
|
3058
|
+
);
|
|
3059
|
+
} catch (propagationErr) {
|
|
3060
|
+
log.warn(
|
|
3061
|
+
`consolidation dependency propagation failed for ${item.existingId}: ${propagationErr}`
|
|
3062
|
+
);
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
2902
3065
|
if (toInvalidate?.path && toInvalidate.frontmatter?.created) {
|
|
2903
3066
|
itemsDeindexBatch.push({
|
|
2904
3067
|
path: toInvalidate.path,
|
|
@@ -2935,10 +3098,35 @@ var ConsolidationRunCoordinator = class {
|
|
|
2935
3098
|
memoryItemMutated = true;
|
|
2936
3099
|
await this.deps.indexPersistedMemory(storage, item.existingId);
|
|
2937
3100
|
const toMergeInvalidate = resolveIndexingCapabilities(config).queryAwareIndexing ? memoryLookup?.get(item.mergeWith) ?? null : null;
|
|
3101
|
+
const propagationOld = allMemories.find(
|
|
3102
|
+
(memory) => memory.frontmatter.id === item.mergeWith
|
|
3103
|
+
);
|
|
2938
3104
|
if (await storage.invalidateMemory(item.mergeWith)) {
|
|
2939
3105
|
invalidated += 1;
|
|
2940
3106
|
merged += 1;
|
|
2941
3107
|
await this.deps.embeddingFallback.removeFromIndex(item.mergeWith);
|
|
3108
|
+
if (propagationOld) {
|
|
3109
|
+
try {
|
|
3110
|
+
await propagateInvalidation(
|
|
3111
|
+
{
|
|
3112
|
+
storage,
|
|
3113
|
+
extraction: this.deps.getExtraction(),
|
|
3114
|
+
config
|
|
3115
|
+
},
|
|
3116
|
+
{
|
|
3117
|
+
oldMemory: propagationOld,
|
|
3118
|
+
replacementId: item.existingId,
|
|
3119
|
+
replacementContent: item.updatedContent,
|
|
3120
|
+
cause: "consolidation_merge",
|
|
3121
|
+
namespaceScope: config.defaultNamespace
|
|
3122
|
+
}
|
|
3123
|
+
);
|
|
3124
|
+
} catch (propagationErr) {
|
|
3125
|
+
log.warn(
|
|
3126
|
+
`consolidation dependency propagation failed for ${item.mergeWith}: ${propagationErr}`
|
|
3127
|
+
);
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
2942
3130
|
if (toMergeInvalidate?.path && toMergeInvalidate.frontmatter?.created) {
|
|
2943
3131
|
itemsDeindexBatch.push({
|
|
2944
3132
|
path: toMergeInvalidate.path,
|
|
@@ -3449,6 +3637,59 @@ async function flushDeferredFactHashOnFailure(saveContentHashIndexes, deferred)
|
|
|
3449
3637
|
);
|
|
3450
3638
|
}
|
|
3451
3639
|
|
|
3640
|
+
// src/orchestration/harmonic-construction-persist.ts
|
|
3641
|
+
function filterHarmonicEntityMentions(facts, entityMentions) {
|
|
3642
|
+
const identitiesBySegment = /* @__PURE__ */ new Map();
|
|
3643
|
+
for (const entity of entityMentions) {
|
|
3644
|
+
const segment = harmonicEntitySegment(entity.name);
|
|
3645
|
+
const identities = identitiesBySegment.get(segment) ?? /* @__PURE__ */ new Set();
|
|
3646
|
+
identities.add(normalizedHarmonicEntityIdentity(entity.name));
|
|
3647
|
+
identitiesBySegment.set(segment, identities);
|
|
3648
|
+
}
|
|
3649
|
+
return entityMentions.flatMap((entity) => {
|
|
3650
|
+
const allowSegmentFallback = identitiesBySegment.get(harmonicEntitySegment(entity.name))?.size === 1;
|
|
3651
|
+
const activeFacts = facts.filter(
|
|
3652
|
+
(fact) => typeof fact.entityRef === "string" && harmonicEntityReferenceMatches(fact.entityRef, entity.name, allowSegmentFallback)
|
|
3653
|
+
);
|
|
3654
|
+
return activeFacts.length > 0 ? [{ ...entity, facts: activeFacts.map((fact) => fact.content) }] : [];
|
|
3655
|
+
});
|
|
3656
|
+
}
|
|
3657
|
+
async function persistConstructedHarmonicRecords(options) {
|
|
3658
|
+
const sessionKey = options.sessionKey?.trim();
|
|
3659
|
+
if (!sessionKey) {
|
|
3660
|
+
log.warn("harmonic construction skipped: extraction session key is missing");
|
|
3661
|
+
return;
|
|
3662
|
+
}
|
|
3663
|
+
const recordedAt = options.validAt && Number.isFinite(Date.parse(options.validAt)) ? new Date(options.validAt).toISOString() : (/* @__PURE__ */ new Date()).toISOString();
|
|
3664
|
+
const entries = [...options.entries];
|
|
3665
|
+
const sharedEpisodeTitle = entries.length === 1 ? options.episodeTitle : void 0;
|
|
3666
|
+
for (const entry of entries) {
|
|
3667
|
+
try {
|
|
3668
|
+
const records = deriveHarmonicRecords({
|
|
3669
|
+
sessionKey,
|
|
3670
|
+
recordedAt,
|
|
3671
|
+
episodeTitle: sharedEpisodeTitle,
|
|
3672
|
+
persistedFacts: entry.facts,
|
|
3673
|
+
entityMentions: filterHarmonicEntityMentions(entry.facts, options.entityMentions).map((entity) => ({
|
|
3674
|
+
name: entity.name,
|
|
3675
|
+
type: entity.type,
|
|
3676
|
+
facts: entity.facts
|
|
3677
|
+
}))
|
|
3678
|
+
});
|
|
3679
|
+
await persistHarmonicRecords({
|
|
3680
|
+
memoryDir: entry.storage.dir,
|
|
3681
|
+
abstractionNodeStoreDir: entry.storage.dir === options.baseStorageDir ? options.abstractionNodeStoreDir : void 0,
|
|
3682
|
+
nodes: records.nodes,
|
|
3683
|
+
anchors: options.anchorsEnabled ? records.anchors : []
|
|
3684
|
+
});
|
|
3685
|
+
} catch (error) {
|
|
3686
|
+
log.warn(
|
|
3687
|
+
`harmonic construction failed open for namespace ${entry.storage.dir}: ${error instanceof Error ? error.message : String(error)}`
|
|
3688
|
+
);
|
|
3689
|
+
}
|
|
3690
|
+
}
|
|
3691
|
+
}
|
|
3692
|
+
|
|
3452
3693
|
// src/orchestration/extraction-persist.ts
|
|
3453
3694
|
var ExtractionPersistCoordinator = class {
|
|
3454
3695
|
constructor(deps) {
|
|
@@ -3462,6 +3703,12 @@ var ExtractionPersistCoordinator = class {
|
|
|
3462
3703
|
const citationEnabled = resolvePipelineProcessingCapabilities(this.deps.config).inlineSourceAttribution === true;
|
|
3463
3704
|
const citationTemplate = this.deps.config.inlineSourceAttributionFormat;
|
|
3464
3705
|
const factDedupEnabled = resolveRecallAuxiliaryCapabilities(this.deps.config).factDeduplication;
|
|
3706
|
+
const harmonicConstructionEnabled = resolveCapabilities(this.deps.config).harmonicRetrieval;
|
|
3707
|
+
const harmonicAnchorsEnabled = resolveConsolidationCapabilities(this.deps.config).abstractionAnchors;
|
|
3708
|
+
const harmonicBaseNamespace = baseNamespace ?? this.deps.storageDirNamespace(storage.dir);
|
|
3709
|
+
const harmonicFactsByStorage = /* @__PURE__ */ new Map();
|
|
3710
|
+
const harmonicSourceInsertedAtBase = Date.now();
|
|
3711
|
+
let harmonicSourceOrder = 0;
|
|
3465
3712
|
const normalizeStoredHashSource = (raw) => ContentHashIndex.normalizeContent(
|
|
3466
3713
|
sanitizeMemoryContent(
|
|
3467
3714
|
citationEnabled && hasCitationForTemplate(raw, citationTemplate) ? stripCitationForTemplate(raw, citationTemplate) : raw
|
|
@@ -3499,6 +3746,19 @@ var ExtractionPersistCoordinator = class {
|
|
|
3499
3746
|
} else {
|
|
3500
3747
|
persistedIdsByStorage.set(key, { storage: targetStorage, ids: [id] });
|
|
3501
3748
|
}
|
|
3749
|
+
if (harmonicConstructionEnabled && options.harmonicFact && !options.pendingReview) {
|
|
3750
|
+
const harmonicEntry = harmonicFactsByStorage.get(key) ?? {
|
|
3751
|
+
storage: targetStorage,
|
|
3752
|
+
facts: []
|
|
3753
|
+
};
|
|
3754
|
+
harmonicEntry.facts.push({
|
|
3755
|
+
...options.harmonicFact,
|
|
3756
|
+
memoryId: id,
|
|
3757
|
+
insertedAt: new Date(harmonicSourceInsertedAtBase + harmonicSourceOrder).toISOString()
|
|
3758
|
+
});
|
|
3759
|
+
harmonicSourceOrder++;
|
|
3760
|
+
harmonicFactsByStorage.set(key, harmonicEntry);
|
|
3761
|
+
}
|
|
3502
3762
|
if (options.category && !memoryPathById.has(id)) {
|
|
3503
3763
|
const relPath = resolvePersistedMemoryRelativePath({ memoryId: id, pathById: memoryPathById, category: options.category });
|
|
3504
3764
|
memoryPathById.set(id, relPath);
|
|
@@ -3643,7 +3903,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
3643
3903
|
entityRef: targetPromotionEnvelope.entityRef,
|
|
3644
3904
|
structuredAttributes: { ...targetSurvivingAttrs },
|
|
3645
3905
|
createdAt: supersessionOrderingAt(options.validAt),
|
|
3646
|
-
enabled: !(options.eventTimeSource === "extracted" && !options.validAt)
|
|
3906
|
+
enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
|
|
3907
|
+
extraction: this.deps.getExtraction(),
|
|
3908
|
+
config: this.config,
|
|
3909
|
+
namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
|
|
3647
3910
|
});
|
|
3648
3911
|
} catch (profileSupersessionErr) {
|
|
3649
3912
|
log.warn(
|
|
@@ -3652,7 +3915,11 @@ var ExtractionPersistCoordinator = class {
|
|
|
3652
3915
|
}
|
|
3653
3916
|
}
|
|
3654
3917
|
if (!targetPromotion.tombstoneBlocked) {
|
|
3655
|
-
trackPersistedId(targetStorage, promotedId, {
|
|
3918
|
+
trackPersistedId(targetStorage, promotedId, {
|
|
3919
|
+
includeReturnedIds: false,
|
|
3920
|
+
category: options.category,
|
|
3921
|
+
harmonicFact: options.harmonicFact
|
|
3922
|
+
});
|
|
3656
3923
|
await this.deps.indexPersistedMemory(targetStorage, promotedId);
|
|
3657
3924
|
trackBehaviorSignals(
|
|
3658
3925
|
targetStorage,
|
|
@@ -3780,7 +4047,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
3780
4047
|
structuredAttributes: { ...sharedSurvivingAttrs },
|
|
3781
4048
|
createdAt: supersessionOrderingAt(options.validAt),
|
|
3782
4049
|
enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
|
|
3783
|
-
useCallerTimestamp: true
|
|
4050
|
+
useCallerTimestamp: true,
|
|
4051
|
+
extraction: this.deps.getExtraction(),
|
|
4052
|
+
config: this.config,
|
|
4053
|
+
namespaceScope: this.deps.storageDirNamespace(sharedStorage.dir)
|
|
3784
4054
|
});
|
|
3785
4055
|
if (hashDedupSupersession.supersededIds.length > 0) {
|
|
3786
4056
|
}
|
|
@@ -3850,7 +4120,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
3850
4120
|
entityRef: sharedPromotionEnvelope.entityRef,
|
|
3851
4121
|
structuredAttributes: { ...sharedSurvivingAttrs },
|
|
3852
4122
|
createdAt: supersessionOrderingAt(options.validAt),
|
|
3853
|
-
enabled: !(options.eventTimeSource === "extracted" && !options.validAt)
|
|
4123
|
+
enabled: !(options.eventTimeSource === "extracted" && !options.validAt),
|
|
4124
|
+
extraction: this.deps.getExtraction(),
|
|
4125
|
+
config: this.config,
|
|
4126
|
+
namespaceScope: this.deps.storageDirNamespace(sharedStorage.dir)
|
|
3854
4127
|
});
|
|
3855
4128
|
} catch (sharedSupersessionErr) {
|
|
3856
4129
|
log.warn(
|
|
@@ -3861,7 +4134,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
3861
4134
|
if (!sharedPromotion.tombstoneBlocked) {
|
|
3862
4135
|
trackPersistedId(sharedStorage, promotedId, {
|
|
3863
4136
|
includeReturnedIds: false,
|
|
3864
|
-
category: options.category
|
|
4137
|
+
category: options.category,
|
|
4138
|
+
harmonicFact: options.harmonicFact
|
|
3865
4139
|
});
|
|
3866
4140
|
await this.deps.indexPersistedMemory(sharedStorage, promotedId);
|
|
3867
4141
|
trackBehaviorSignals(
|
|
@@ -4262,6 +4536,14 @@ var ExtractionPersistCoordinator = class {
|
|
|
4262
4536
|
);
|
|
4263
4537
|
}
|
|
4264
4538
|
}
|
|
4539
|
+
const harmonicFact = {
|
|
4540
|
+
category: writeCategory,
|
|
4541
|
+
content: fact.content,
|
|
4542
|
+
tags: fact.tags,
|
|
4543
|
+
cueAnchors: fact.cueAnchors,
|
|
4544
|
+
entityRef: fact.entityRef,
|
|
4545
|
+
validAt: biTemporal?.validFrom ?? sourceContext?.validAt
|
|
4546
|
+
};
|
|
4265
4547
|
try {
|
|
4266
4548
|
const redactionRules = await redactionRulesFor(sourceStorageDir, targetStorage.dir);
|
|
4267
4549
|
const redactionCandidate = fact.content + (fact.structuredAttributes ? " " + JSON.stringify(fact.structuredAttributes) : "") + (fact.procedureSteps ? " " + fact.procedureSteps.map((s) => `${s.intent} ${s.expectedOutcome ?? ""} ${s.toolCall ? `${s.toolCall.kind} ${s.toolCall.signature}` : ""}`.trim()).join(" ") : "");
|
|
@@ -4637,7 +4919,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
4637
4919
|
);
|
|
4638
4920
|
trackPersistedId(targetStorage, parentId, {
|
|
4639
4921
|
pendingReview: postWriteGuard2,
|
|
4640
|
-
category: writeCategory
|
|
4922
|
+
category: writeCategory,
|
|
4923
|
+
harmonicFact
|
|
4641
4924
|
});
|
|
4642
4925
|
if (!postWriteGuard2 && threadEpisodeIdsForGraph && !threadEpisodeIdsForGraph.includes(parentId)) {
|
|
4643
4926
|
threadEpisodeIdsForGraph.push(parentId);
|
|
@@ -4656,7 +4939,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
4656
4939
|
// #1578 r3: an extracted end-only bound (validFrom absent) is
|
|
4657
4940
|
// historical, not a new authoritative state — never let it
|
|
4658
4941
|
// supersede a later active fact (codex P1 on :15534).
|
|
4659
|
-
enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom)
|
|
4942
|
+
enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom),
|
|
4943
|
+
extraction: this.deps.getExtraction(),
|
|
4944
|
+
config: this.config,
|
|
4945
|
+
namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
|
|
4660
4946
|
});
|
|
4661
4947
|
} catch (err) {
|
|
4662
4948
|
log.warn(`temporal-supersession (chunked): unexpected error: ${err}`);
|
|
@@ -4686,7 +4972,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
4686
4972
|
...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
|
|
4687
4973
|
...fact.procedureSteps && fact.procedureSteps.length ? { procedureSteps: fact.procedureSteps } : {},
|
|
4688
4974
|
...fact.sources && fact.sources.length > 0 ? { sources: fact.sources } : {},
|
|
4689
|
-
...fact.provenance ? { provenance: fact.provenance } : {}
|
|
4975
|
+
...fact.provenance ? { provenance: fact.provenance } : {},
|
|
4976
|
+
harmonicFact
|
|
4690
4977
|
});
|
|
4691
4978
|
try {
|
|
4692
4979
|
const canonicalChunkedContent = citationEnabled && hasCitationForTemplate(fact.content, citationTemplate) ? stripCitationForTemplate(fact.content, citationTemplate) : fact.content;
|
|
@@ -4842,7 +5129,10 @@ var ExtractionPersistCoordinator = class {
|
|
|
4842
5129
|
entityRef: factWriteEnvelope.entityRef,
|
|
4843
5130
|
structuredAttributes: factWriteEnvelope.rawStructuredAttributes ? { ...factWriteEnvelope.rawStructuredAttributes } : void 0,
|
|
4844
5131
|
createdAt: supersessionOrderingAt(biTemporal?.validFrom ?? sourceContext?.validAt),
|
|
4845
|
-
enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom)
|
|
5132
|
+
enabled: lifecycleCaps.temporalSupersession && !(biTemporal && !biTemporal.validFrom),
|
|
5133
|
+
extraction: this.deps.getExtraction(),
|
|
5134
|
+
config: this.config,
|
|
5135
|
+
namespaceScope: this.deps.storageDirNamespace(targetStorage.dir)
|
|
4846
5136
|
});
|
|
4847
5137
|
} catch (err) {
|
|
4848
5138
|
log.warn(`temporal-supersession: unexpected error: ${err}`);
|
|
@@ -4862,7 +5152,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
4862
5152
|
);
|
|
4863
5153
|
trackPersistedId(targetStorage, memoryId, {
|
|
4864
5154
|
pendingReview: postWriteGuard,
|
|
4865
|
-
category: writeCategory
|
|
5155
|
+
category: writeCategory,
|
|
5156
|
+
harmonicFact
|
|
4866
5157
|
});
|
|
4867
5158
|
if (!postWriteGuard && threadEpisodeIdsForGraph && !threadEpisodeIdsForGraph.includes(memoryId)) {
|
|
4868
5159
|
threadEpisodeIdsForGraph.push(memoryId);
|
|
@@ -4894,7 +5185,8 @@ var ExtractionPersistCoordinator = class {
|
|
|
4894
5185
|
...extractionSourceConnector ? { sourceConnector: extractionSourceConnector } : {},
|
|
4895
5186
|
...fact.procedureSteps && fact.procedureSteps.length ? { procedureSteps: fact.procedureSteps } : {},
|
|
4896
5187
|
...fact.sources && fact.sources.length > 0 ? { sources: fact.sources } : {},
|
|
4897
|
-
...fact.provenance ? { provenance: fact.provenance } : {}
|
|
5188
|
+
...fact.provenance ? { provenance: fact.provenance } : {},
|
|
5189
|
+
harmonicFact
|
|
4898
5190
|
});
|
|
4899
5191
|
if (graphCaps.multiGraphMemory && !postWriteGuard) {
|
|
4900
5192
|
try {
|
|
@@ -5075,6 +5367,18 @@ var ExtractionPersistCoordinator = class {
|
|
|
5075
5367
|
log.info(
|
|
5076
5368
|
`persisted: ${facts.length - dedupedCount - importanceGatedCount - judgeGatedCount - redactionGatedCount} facts${dedupSuffix}${gatedSuffix}${judgeSuffix}${redactionSuffix}, ${entities.length} entities, ${questions.length} questions, ${profileUpdates.length} profile updates`
|
|
5077
5369
|
);
|
|
5370
|
+
if (harmonicConstructionEnabled && harmonicFactsByStorage.size > 0) {
|
|
5371
|
+
await persistConstructedHarmonicRecords({
|
|
5372
|
+
entries: harmonicFactsByStorage.values(),
|
|
5373
|
+
baseStorageDir: storage.dir,
|
|
5374
|
+
abstractionNodeStoreDir: !scopeProfileWritePlan && harmonicBaseNamespace === this.deps.config.defaultNamespace ? this.deps.config.abstractionNodeStoreDir : void 0,
|
|
5375
|
+
sessionKey: sourceContext?.sessionKey,
|
|
5376
|
+
validAt: sourceContext?.validAt,
|
|
5377
|
+
episodeTitle: result.episodeTitle,
|
|
5378
|
+
anchorsEnabled: harmonicAnchorsEnabled,
|
|
5379
|
+
entityMentions: entities
|
|
5380
|
+
});
|
|
5381
|
+
}
|
|
5078
5382
|
void (async () => {
|
|
5079
5383
|
if (persistedIdsByStorage.size === 0) {
|
|
5080
5384
|
await this.deps.updateTemporalTagIndexes(storage, []);
|
|
@@ -6654,6 +6958,7 @@ ${rows.join("\n")}
|
|
|
6654
6958
|
maxResults,
|
|
6655
6959
|
sessionKey,
|
|
6656
6960
|
anchorsEnabled: resolveConsolidationCapabilities(this.deps.config).abstractionAnchors,
|
|
6961
|
+
temporalExpiredInInjection: this.deps.config.temporalExpiredInInjection,
|
|
6657
6962
|
abortSignal: harmonicRetrievalAbort.signal
|
|
6658
6963
|
})
|
|
6659
6964
|
)
|
|
@@ -8852,7 +9157,9 @@ ${tmtNode.summary}`
|
|
|
8852
9157
|
} else {
|
|
8853
9158
|
const memories = await awaitAssemblyStep(
|
|
8854
9159
|
"recent-memory-read",
|
|
8855
|
-
() => this.deps.readAllMemoriesForNamespaces(recallNamespaces
|
|
9160
|
+
(stepSignal) => this.deps.readAllMemoriesForNamespaces(recallNamespaces, {
|
|
9161
|
+
abortSignal: stepSignal
|
|
9162
|
+
}),
|
|
8856
9163
|
[]
|
|
8857
9164
|
);
|
|
8858
9165
|
if (memories.length > 0) {
|
|
@@ -9601,7 +9908,9 @@ async function fetchActiveArtifactsForNamespace(deps, namespace, prompt, targetC
|
|
|
9601
9908
|
)
|
|
9602
9909
|
);
|
|
9603
9910
|
throwIfRecallAborted(options.abortSignal);
|
|
9604
|
-
const sourceStatus = sourceIds.length > 0 ? await deps.resolveArtifactSourceStatuses(storage, sourceIds
|
|
9911
|
+
const sourceStatus = sourceIds.length > 0 ? await deps.resolveArtifactSourceStatuses(storage, sourceIds, {
|
|
9912
|
+
abortSignal: options.abortSignal
|
|
9913
|
+
}) : /* @__PURE__ */ new Map();
|
|
9605
9914
|
const filtered = [];
|
|
9606
9915
|
for (const artifact of rawResults) {
|
|
9607
9916
|
const sourceId = artifact.frontmatter.sourceMemoryId;
|
|
@@ -12207,7 +12516,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
12207
12516
|
if (signal.aborted) return;
|
|
12208
12517
|
if (lifecycleCaps.lifecyclePolicy && resolveQmdCapabilities(this.deps.config).qmdTierMigration) {
|
|
12209
12518
|
try {
|
|
12210
|
-
const { runFirstStartMigration } = await import("./first-start-migration-
|
|
12519
|
+
const { runFirstStartMigration } = await import("./first-start-migration-626C5554.js");
|
|
12211
12520
|
const result = await runFirstStartMigration({
|
|
12212
12521
|
storage: this.deps.storage,
|
|
12213
12522
|
config: this.deps.config,
|
|
@@ -12230,7 +12539,7 @@ var OrchestratorInitCoordinator = class {
|
|
|
12230
12539
|
if (signal.aborted) return;
|
|
12231
12540
|
if (!this.deps.wearablesAutoSyncHandle && this.deps.config.wearables.enabled && this.deps.config.wearables.autoSyncEnabled && Object.values(this.deps.config.wearables.sources).some((source) => source.enabled)) {
|
|
12232
12541
|
try {
|
|
12233
|
-
const { startWearablesAutoSync } = await import("./auto-sync-
|
|
12542
|
+
const { startWearablesAutoSync } = await import("./auto-sync-QFQGOEO2.js");
|
|
12234
12543
|
if (signal.aborted) return;
|
|
12235
12544
|
this.deps.wearablesAutoSyncHandle = startWearablesAutoSync(
|
|
12236
12545
|
{
|
|
@@ -15468,7 +15777,8 @@ var NamespaceReadFanoutCoordinator = class {
|
|
|
15468
15777
|
execution: options.execution
|
|
15469
15778
|
});
|
|
15470
15779
|
}
|
|
15471
|
-
async resolveArtifactSourceStatuses(storage, sourceIds) {
|
|
15780
|
+
async resolveArtifactSourceStatuses(storage, sourceIds, options) {
|
|
15781
|
+
checkCorpusReadAbort(options);
|
|
15472
15782
|
const currentStatusVersion = storage.getMemoryStatusVersion();
|
|
15473
15783
|
const cached = this.deps.artifactSourceStatusCache.get(storage);
|
|
15474
15784
|
let snapshot = cached;
|
|
@@ -15478,8 +15788,10 @@ var NamespaceReadFanoutCoordinator = class {
|
|
|
15478
15788
|
let latestStatuses = /* @__PURE__ */ new Map();
|
|
15479
15789
|
let latestVersionAfter = storage.getMemoryStatusVersion();
|
|
15480
15790
|
for (let attempt = 0; attempt < MAX_STABLE_READ_ATTEMPTS; attempt += 1) {
|
|
15791
|
+
checkCorpusReadAbort(options);
|
|
15481
15792
|
const versionBefore = storage.getMemoryStatusVersion();
|
|
15482
|
-
const allMemories = await storage.readAllMemories();
|
|
15793
|
+
const allMemories = await storage.readAllMemories(options);
|
|
15794
|
+
checkCorpusReadAbort(options);
|
|
15483
15795
|
const versionAfter = storage.getMemoryStatusVersion();
|
|
15484
15796
|
latestVersionAfter = versionAfter;
|
|
15485
15797
|
latestStatuses = new Map(
|
|
@@ -15620,12 +15932,12 @@ var NamespaceReadFanoutCoordinator = class {
|
|
|
15620
15932
|
loadHints: () => this.deps.loadNamespaceStorageDirHintsFromCatalog()
|
|
15621
15933
|
});
|
|
15622
15934
|
}
|
|
15623
|
-
async readAllMemoriesForNamespaces(namespaces) {
|
|
15935
|
+
async readAllMemoriesForNamespaces(namespaces, options) {
|
|
15624
15936
|
const uniq = Array.from(new Set(namespaces.filter(Boolean)));
|
|
15625
15937
|
const lists = await Promise.all(
|
|
15626
15938
|
uniq.map(async (ns) => {
|
|
15627
15939
|
const sm = await this.deps.storageRouter.storageFor(ns);
|
|
15628
|
-
return sm.readAllMemories();
|
|
15940
|
+
return sm.readAllMemories(options);
|
|
15629
15941
|
})
|
|
15630
15942
|
);
|
|
15631
15943
|
return lists.flat();
|
|
@@ -16095,6 +16407,7 @@ var Orchestrator = class {
|
|
|
16095
16407
|
config: this.config,
|
|
16096
16408
|
getStorage: () => this.storage,
|
|
16097
16409
|
getStorageRouter: () => this.storageRouter,
|
|
16410
|
+
getNamespaceCatalog: () => this.namespaceCatalog,
|
|
16098
16411
|
getExtraction: () => this.extraction,
|
|
16099
16412
|
embeddingFallback: this.embeddingFallback,
|
|
16100
16413
|
tmtBuilder: this.tmtBuilder,
|
|
@@ -16127,6 +16440,7 @@ var Orchestrator = class {
|
|
|
16127
16440
|
getStorageRouter: () => this.storageRouter,
|
|
16128
16441
|
getThreading: () => this.threading,
|
|
16129
16442
|
getLocalLlm: () => this.localLlm,
|
|
16443
|
+
getExtraction: () => this.extraction,
|
|
16130
16444
|
getQmd: () => this.qmd,
|
|
16131
16445
|
getJudgeVerdictCache: () => this.judgeVerdictCache,
|
|
16132
16446
|
getJudgeDeferCounts: () => this.judgeDeferCounts,
|
|
@@ -16901,10 +17215,11 @@ var Orchestrator = class {
|
|
|
16901
17215
|
return [];
|
|
16902
17216
|
}
|
|
16903
17217
|
}
|
|
16904
|
-
async resolveArtifactSourceStatuses(storage, sourceIds) {
|
|
17218
|
+
async resolveArtifactSourceStatuses(storage, sourceIds, options) {
|
|
16905
17219
|
return this.namespaceReadFanoutCoordinator.resolveArtifactSourceStatuses(
|
|
16906
17220
|
storage,
|
|
16907
|
-
sourceIds
|
|
17221
|
+
sourceIds,
|
|
17222
|
+
options
|
|
16908
17223
|
);
|
|
16909
17224
|
}
|
|
16910
17225
|
/**
|
|
@@ -18133,10 +18448,8 @@ ${doc.content}` : doc.content,
|
|
|
18133
18448
|
* and inline-note writes were missing from `writtenSince`/maintenance).
|
|
18134
18449
|
*/
|
|
18135
18450
|
// markCatalogRead removed — use storageRouter.recordRead() instead (#1522).
|
|
18136
|
-
async readAllMemoriesForNamespaces(namespaces) {
|
|
18137
|
-
return this.namespaceReadFanoutCoordinator.readAllMemoriesForNamespaces(
|
|
18138
|
-
namespaces
|
|
18139
|
-
);
|
|
18451
|
+
async readAllMemoriesForNamespaces(namespaces, options) {
|
|
18452
|
+
return this.namespaceReadFanoutCoordinator.readAllMemoriesForNamespaces(namespaces, options);
|
|
18140
18453
|
}
|
|
18141
18454
|
};
|
|
18142
18455
|
|
|
@@ -24138,4 +24451,4 @@ export {
|
|
|
24138
24451
|
blendGraphExpandedRecallScore,
|
|
24139
24452
|
Orchestrator
|
|
24140
24453
|
};
|
|
24141
|
-
//# sourceMappingURL=chunk-
|
|
24454
|
+
//# sourceMappingURL=chunk-RBPH3GZV.js.map
|