cogmem 3.6.2
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/BENCHMARKS.md +62 -0
- package/CHANGELOG.md +215 -0
- package/CONCURRENT_ACCESS.md +27 -0
- package/CONTRIBUTING.md +32 -0
- package/LICENSE +21 -0
- package/MEMORY_ATLAS.md +101 -0
- package/MEMORY_MODEL.md +179 -0
- package/README.md +751 -0
- package/RECALL_EXPLAINABILITY.md +152 -0
- package/RELEASE_CHECKLIST.md +92 -0
- package/SECURITY.md +21 -0
- package/dist/adapters/MarkdownSourceLoader.d.ts +5 -0
- package/dist/adapters/MarkdownSourceLoader.js +19 -0
- package/dist/adapters/conversation/ConversationMarkdownAdapter.d.ts +9 -0
- package/dist/adapters/conversation/ConversationMarkdownAdapter.js +233 -0
- package/dist/adapters/hermes/HermesStateDbAdapter.d.ts +10 -0
- package/dist/adapters/hermes/HermesStateDbAdapter.js +268 -0
- package/dist/adapters/hermes/HermesWorkspaceProfile.d.ts +15 -0
- package/dist/adapters/hermes/HermesWorkspaceProfile.js +82 -0
- package/dist/adapters/index.d.ts +15 -0
- package/dist/adapters/index.js +12 -0
- package/dist/adapters/openclaw/OpenClawAdapterSupport.d.ts +14 -0
- package/dist/adapters/openclaw/OpenClawAdapterSupport.js +29 -0
- package/dist/adapters/openclaw/OpenClawDailyMemoryAdapter.d.ts +8 -0
- package/dist/adapters/openclaw/OpenClawDailyMemoryAdapter.js +35 -0
- package/dist/adapters/openclaw/OpenClawMemoryIndexAdapter.d.ts +8 -0
- package/dist/adapters/openclaw/OpenClawMemoryIndexAdapter.js +23 -0
- package/dist/adapters/openclaw/OpenClawPersonaAdapter.d.ts +8 -0
- package/dist/adapters/openclaw/OpenClawPersonaAdapter.js +24 -0
- package/dist/adapters/openclaw/OpenClawSessionAdapter.d.ts +8 -0
- package/dist/adapters/openclaw/OpenClawSessionAdapter.js +15 -0
- package/dist/adapters/openclaw/OpenClawUserProfileAdapter.d.ts +8 -0
- package/dist/adapters/openclaw/OpenClawUserProfileAdapter.js +24 -0
- package/dist/adapters/openclaw/OpenClawWorkspaceProfile.d.ts +38 -0
- package/dist/adapters/openclaw/OpenClawWorkspaceProfile.js +199 -0
- package/dist/adapters/soul/SoulMarkdownAdapter.d.ts +14 -0
- package/dist/adapters/soul/SoulMarkdownAdapter.js +255 -0
- package/dist/adapters/types.d.ts +97 -0
- package/dist/adapters/types.js +185 -0
- package/dist/agent/AgentMemoryBackend.d.ts +291 -0
- package/dist/agent/AgentMemoryBackend.js +1272 -0
- package/dist/agent/AgentRecallQueryCompiler.d.ts +20 -0
- package/dist/agent/AgentRecallQueryCompiler.js +289 -0
- package/dist/agent/ContextHygiene.d.ts +9 -0
- package/dist/agent/ContextHygiene.js +20 -0
- package/dist/agent/MemoryUsageReceipt.d.ts +35 -0
- package/dist/agent/MemoryUsageReceipt.js +136 -0
- package/dist/agent/SessionWorkingState.d.ts +20 -0
- package/dist/agent/SessionWorkingState.js +94 -0
- package/dist/agent/index.d.ts +6 -0
- package/dist/agent/index.js +5 -0
- package/dist/algorithm/AlgorithmReviewBackend.d.ts +84 -0
- package/dist/algorithm/AlgorithmReviewBackend.js +261 -0
- package/dist/algorithm/AlgorithmReviewMetrics.d.ts +23 -0
- package/dist/algorithm/AlgorithmReviewMetrics.js +25 -0
- package/dist/algorithm/Phase2ModelAlgorithmReviewBackend.d.ts +38 -0
- package/dist/algorithm/Phase2ModelAlgorithmReviewBackend.js +372 -0
- package/dist/assets/FileAssetIngestionService.d.ts +32 -0
- package/dist/assets/FileAssetIngestionService.js +133 -0
- package/dist/assets/FileAssetStore.d.ts +36 -0
- package/dist/assets/FileAssetStore.js +152 -0
- package/dist/assets/FileBlockStore.d.ts +12 -0
- package/dist/assets/FileBlockStore.js +110 -0
- package/dist/assets/FileChunkStore.d.ts +23 -0
- package/dist/assets/FileChunkStore.js +179 -0
- package/dist/assets/FileChunker.d.ts +10 -0
- package/dist/assets/FileChunker.js +69 -0
- package/dist/assets/FileLoaderRegistry.d.ts +8 -0
- package/dist/assets/FileLoaderRegistry.js +21 -0
- package/dist/assets/FileLoaders.d.ts +37 -0
- package/dist/assets/FileLoaders.js +268 -0
- package/dist/assets/index.d.ts +10 -0
- package/dist/assets/index.js +7 -0
- package/dist/assets/providers/types.d.ts +47 -0
- package/dist/assets/providers/types.js +1 -0
- package/dist/assets/types.d.ts +159 -0
- package/dist/assets/types.js +1 -0
- package/dist/atlas/ActionFrameExtractor.d.ts +15 -0
- package/dist/atlas/ActionFrameExtractor.js +135 -0
- package/dist/atlas/MemoryAtlasIndexer.d.ts +32 -0
- package/dist/atlas/MemoryAtlasIndexer.js +74 -0
- package/dist/atlas/MemoryAtlasQueryCompiler.d.ts +23 -0
- package/dist/atlas/MemoryAtlasQueryCompiler.js +55 -0
- package/dist/atlas/MemoryAtlasService.d.ts +25 -0
- package/dist/atlas/MemoryAtlasService.js +216 -0
- package/dist/atlas/MemoryAtlasTypes.d.ts +107 -0
- package/dist/atlas/MemoryAtlasTypes.js +1 -0
- package/dist/atlas/index.d.ts +6 -0
- package/dist/atlas/index.js +5 -0
- package/dist/backend/SemanticBackend.d.ts +40 -0
- package/dist/backend/SemanticBackend.js +107 -0
- package/dist/batch/IngestionCursorStore.d.ts +52 -0
- package/dist/batch/IngestionCursorStore.js +153 -0
- package/dist/batch/InstalledBatchProcessor.d.ts +88 -0
- package/dist/batch/InstalledBatchProcessor.js +179 -0
- package/dist/batch/SourceOnboarding.d.ts +56 -0
- package/dist/batch/SourceOnboarding.js +366 -0
- package/dist/belief/BeliefGovernanceService.d.ts +59 -0
- package/dist/belief/BeliefGovernanceService.js +183 -0
- package/dist/belief/BeliefStore.d.ts +78 -0
- package/dist/belief/BeliefStore.js +898 -0
- package/dist/benchmark/BenchmarkRegistry.d.ts +16 -0
- package/dist/benchmark/BenchmarkRegistry.js +97 -0
- package/dist/benchmark/BenchmarkReport.d.ts +23 -0
- package/dist/benchmark/BenchmarkReport.js +62 -0
- package/dist/benchmark/BenchmarkRunner.d.ts +27 -0
- package/dist/benchmark/BenchmarkRunner.js +64 -0
- package/dist/benchmark/BrainEval.d.ts +134 -0
- package/dist/benchmark/BrainEval.js +252 -0
- package/dist/benchmark/ExternalBenchmarkRunner.d.ts +8 -0
- package/dist/benchmark/ExternalBenchmarkRunner.js +12 -0
- package/dist/benchmark/LongMemEvalAdapter.d.ts +46 -0
- package/dist/benchmark/LongMemEvalAdapter.js +88 -0
- package/dist/benchmark/LongMemEvalCli.d.ts +6 -0
- package/dist/benchmark/LongMemEvalCli.js +26 -0
- package/dist/bin/CliJson.d.ts +17 -0
- package/dist/bin/CliJson.js +20 -0
- package/dist/bin/brain-eval.d.ts +3 -0
- package/dist/bin/brain-eval.js +46 -0
- package/dist/bin/cogmem.d.ts +3 -0
- package/dist/bin/cogmem.js +95 -0
- package/dist/bin/compact.d.ts +3 -0
- package/dist/bin/compact.js +96 -0
- package/dist/bin/connect.d.ts +3 -0
- package/dist/bin/connect.js +398 -0
- package/dist/bin/doctor.d.ts +3 -0
- package/dist/bin/doctor.js +171 -0
- package/dist/bin/dream.d.ts +3 -0
- package/dist/bin/dream.js +65 -0
- package/dist/bin/episode.d.ts +3 -0
- package/dist/bin/episode.js +268 -0
- package/dist/bin/explain-recall.d.ts +3 -0
- package/dist/bin/explain-recall.js +139 -0
- package/dist/bin/import-hermes.d.ts +3 -0
- package/dist/bin/import-hermes.js +6 -0
- package/dist/bin/import-openclaw.d.ts +3 -0
- package/dist/bin/import-openclaw.js +6 -0
- package/dist/bin/import-support.d.ts +43 -0
- package/dist/bin/import-support.js +528 -0
- package/dist/bin/init.d.ts +30 -0
- package/dist/bin/init.js +761 -0
- package/dist/bin/mcp.d.ts +3 -0
- package/dist/bin/mcp.js +52 -0
- package/dist/bin/memory.d.ts +3 -0
- package/dist/bin/memory.js +803 -0
- package/dist/bin/migrate-vectors.d.ts +3 -0
- package/dist/bin/migrate-vectors.js +74 -0
- package/dist/bin/migrate.d.ts +3 -0
- package/dist/bin/migrate.js +95 -0
- package/dist/bin/normalize-transcript.d.ts +16 -0
- package/dist/bin/normalize-transcript.js +153 -0
- package/dist/bin/openclaw.d.ts +3 -0
- package/dist/bin/openclaw.js +78 -0
- package/dist/bin/prospective.d.ts +3 -0
- package/dist/bin/prospective.js +115 -0
- package/dist/bin/re-embed.d.ts +3 -0
- package/dist/bin/re-embed.js +46 -0
- package/dist/bin/repair.d.ts +3 -0
- package/dist/bin/repair.js +118 -0
- package/dist/bin/snapshot.d.ts +3 -0
- package/dist/bin/snapshot.js +100 -0
- package/dist/bin/strategy.d.ts +3 -0
- package/dist/bin/strategy.js +66 -0
- package/dist/bin/update-release.d.ts +15 -0
- package/dist/bin/update-release.js +62 -0
- package/dist/bin/update.d.ts +3 -0
- package/dist/bin/update.js +215 -0
- package/dist/binding/BindingClassifier.d.ts +19 -0
- package/dist/binding/BindingClassifier.js +270 -0
- package/dist/binding/BindingDecisionEngine.d.ts +11 -0
- package/dist/binding/BindingDecisionEngine.js +13 -0
- package/dist/binding/ClaimKeyGenerator.d.ts +4 -0
- package/dist/binding/ClaimKeyGenerator.js +21 -0
- package/dist/binding/MemoryBindingService.d.ts +28 -0
- package/dist/binding/MemoryBindingService.js +283 -0
- package/dist/binding/MemoryBindingTypes.d.ts +140 -0
- package/dist/binding/MemoryBindingTypes.js +1 -0
- package/dist/binding/TopicPathRegistry.d.ts +5 -0
- package/dist/binding/TopicPathRegistry.js +33 -0
- package/dist/binding/index.d.ts +12 -0
- package/dist/binding/index.js +6 -0
- package/dist/boards/ApprovalBoard.d.ts +14 -0
- package/dist/boards/ApprovalBoard.js +32 -0
- package/dist/boards/Board.d.ts +23 -0
- package/dist/boards/Board.js +1 -0
- package/dist/boards/BoardEventBuffer.d.ts +10 -0
- package/dist/boards/BoardEventBuffer.js +22 -0
- package/dist/boards/BoardEventBus.d.ts +15 -0
- package/dist/boards/BoardEventBus.js +38 -0
- package/dist/boards/BoardEventFilter.d.ts +5 -0
- package/dist/boards/BoardEventFilter.js +1 -0
- package/dist/boards/BoardRegistry.d.ts +11 -0
- package/dist/boards/BoardRegistry.js +15 -0
- package/dist/boards/ContextBoard.d.ts +15 -0
- package/dist/boards/ContextBoard.js +33 -0
- package/dist/boards/MemoryBoard.d.ts +13 -0
- package/dist/boards/MemoryBoard.js +30 -0
- package/dist/boards/ProcessBoard.d.ts +16 -0
- package/dist/boards/ProcessBoard.js +56 -0
- package/dist/boards/ProposalBoard.d.ts +13 -0
- package/dist/boards/ProposalBoard.js +37 -0
- package/dist/boards/ReasoningTraceBoard.d.ts +11 -0
- package/dist/boards/ReasoningTraceBoard.js +34 -0
- package/dist/boards/TaskBoard.d.ts +14 -0
- package/dist/boards/TaskBoard.js +37 -0
- package/dist/boards/index.d.ts +13 -0
- package/dist/boards/index.js +12 -0
- package/dist/config/CogmemConfig.d.ts +43 -0
- package/dist/config/CogmemConfig.js +247 -0
- package/dist/config/VectorDimension.d.ts +13 -0
- package/dist/config/VectorDimension.js +53 -0
- package/dist/context/ContextCortex.d.ts +71 -0
- package/dist/context/ContextCortex.js +156 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.js +1 -0
- package/dist/core/ImportanceLevels.d.ts +4 -0
- package/dist/core/ImportanceLevels.js +6 -0
- package/dist/core/IntentParser.d.ts +12 -0
- package/dist/core/IntentParser.js +211 -0
- package/dist/core/MemoryGraph.d.ts +100 -0
- package/dist/core/MemoryGraph.js +860 -0
- package/dist/core/Metabolism.d.ts +43 -0
- package/dist/core/Metabolism.js +196 -0
- package/dist/core/Neuron.d.ts +20 -0
- package/dist/core/Neuron.js +51 -0
- package/dist/core/QueryClassifier.d.ts +36 -0
- package/dist/core/QueryClassifier.js +161 -0
- package/dist/core/Reflection.d.ts +42 -0
- package/dist/core/Reflection.js +183 -0
- package/dist/core/ResonanceCore.d.ts +26 -0
- package/dist/core/ResonanceCore.js +115 -0
- package/dist/core/Synapse.d.ts +10 -0
- package/dist/core/Synapse.js +27 -0
- package/dist/core/TwoStagePulseRanker.d.ts +16 -0
- package/dist/core/TwoStagePulseRanker.js +120 -0
- package/dist/dream/DreamScheduler.d.ts +47 -0
- package/dist/dream/DreamScheduler.js +156 -0
- package/dist/dream/index.d.ts +2 -0
- package/dist/dream/index.js +1 -0
- package/dist/embedding/EmbeddingProvider.d.ts +16 -0
- package/dist/embedding/EmbeddingProvider.js +12 -0
- package/dist/embedding/NeuronEmbeddingStore.d.ts +38 -0
- package/dist/embedding/NeuronEmbeddingStore.js +193 -0
- package/dist/embedding/OllamaEmbeddingProvider.d.ts +21 -0
- package/dist/embedding/OllamaEmbeddingProvider.js +65 -0
- package/dist/embedding/QwenAPIEmbeddingProvider.d.ts +26 -0
- package/dist/embedding/QwenAPIEmbeddingProvider.js +53 -0
- package/dist/embedding/ReEmbeddingPipeline.d.ts +30 -0
- package/dist/embedding/ReEmbeddingPipeline.js +119 -0
- package/dist/embedding/ReEmbeddingStatus.d.ts +10 -0
- package/dist/embedding/ReEmbeddingStatus.js +1 -0
- package/dist/embedding/index.d.ts +11 -0
- package/dist/embedding/index.js +5 -0
- package/dist/encryption/AesGcmEncryptionProvider.d.ts +9 -0
- package/dist/encryption/AesGcmEncryptionProvider.js +42 -0
- package/dist/encryption/EncryptionProvider.d.ts +6 -0
- package/dist/encryption/EncryptionProvider.js +3 -0
- package/dist/encryption/index.d.ts +4 -0
- package/dist/encryption/index.js +2 -0
- package/dist/engine/BeliefExtractor.d.ts +48 -0
- package/dist/engine/BeliefExtractor.js +1189 -0
- package/dist/engine/CognitiveGraphCompiler.d.ts +24 -0
- package/dist/engine/CognitiveGraphCompiler.js +243 -0
- package/dist/engine/ConsolidationPipeline.d.ts +66 -0
- package/dist/engine/ConsolidationPipeline.js +376 -0
- package/dist/engine/ConsolidationTrigger.d.ts +18 -0
- package/dist/engine/ConsolidationTrigger.js +41 -0
- package/dist/engine/CrossTopicSynthesizer.d.ts +28 -0
- package/dist/engine/CrossTopicSynthesizer.js +70 -0
- package/dist/engine/CrossTopicTrigger.d.ts +17 -0
- package/dist/engine/CrossTopicTrigger.js +29 -0
- package/dist/engine/DeepWriteConfig.d.ts +14 -0
- package/dist/engine/DeepWriteConfig.js +37 -0
- package/dist/engine/DeepWriteMemoryCompiler.d.ts +43 -0
- package/dist/engine/DeepWriteMemoryCompiler.js +42 -0
- package/dist/engine/DeepWriteMemoryOrchestrator.d.ts +60 -0
- package/dist/engine/DeepWriteMemoryOrchestrator.js +175 -0
- package/dist/engine/DeepWritePromotionPolicy.d.ts +48 -0
- package/dist/engine/DeepWritePromotionPolicy.js +514 -0
- package/dist/engine/DeepWriteRedactor.d.ts +14 -0
- package/dist/engine/DeepWriteRedactor.js +53 -0
- package/dist/engine/DreamCuratorSchedule.d.ts +18 -0
- package/dist/engine/DreamCuratorSchedule.js +95 -0
- package/dist/engine/DreamCuratorWorker.d.ts +67 -0
- package/dist/engine/DreamCuratorWorker.js +908 -0
- package/dist/engine/EntityResolutionEngine.d.ts +45 -0
- package/dist/engine/EntityResolutionEngine.js +105 -0
- package/dist/engine/EpisodicSemanticDistiller.d.ts +25 -0
- package/dist/engine/EpisodicSemanticDistiller.js +68 -0
- package/dist/engine/EvolutionVerifier.d.ts +39 -0
- package/dist/engine/EvolutionVerifier.js +104 -0
- package/dist/engine/FactCompiler.d.ts +41 -0
- package/dist/engine/FactCompiler.js +820 -0
- package/dist/engine/GraphCommunityEngine.d.ts +20 -0
- package/dist/engine/GraphCommunityEngine.js +91 -0
- package/dist/engine/ImportanceSignalDetector.d.ts +11 -0
- package/dist/engine/ImportanceSignalDetector.js +51 -0
- package/dist/engine/IngestionEngine.d.ts +44 -0
- package/dist/engine/IngestionEngine.js +182 -0
- package/dist/engine/InteractionBinder.d.ts +16 -0
- package/dist/engine/InteractionBinder.js +87 -0
- package/dist/engine/LocalSemanticCompiler.d.ts +40 -0
- package/dist/engine/LocalSemanticCompiler.js +111 -0
- package/dist/engine/MemoryConsolidationEngine.d.ts +11 -0
- package/dist/engine/MemoryConsolidationEngine.js +21 -0
- package/dist/engine/MemoryGate.d.ts +10 -0
- package/dist/engine/MemoryGate.js +34 -0
- package/dist/engine/OfflineConsolidationPipeline.d.ts +148 -0
- package/dist/engine/OfflineConsolidationPipeline.js +670 -0
- package/dist/engine/OrphanCleaner.d.ts +15 -0
- package/dist/engine/OrphanCleaner.js +27 -0
- package/dist/engine/PipelineMetrics.d.ts +32 -0
- package/dist/engine/PipelineMetrics.js +126 -0
- package/dist/engine/PrincipleDecayPolicy.d.ts +17 -0
- package/dist/engine/PrincipleDecayPolicy.js +64 -0
- package/dist/engine/TopologyCompiler.d.ts +25 -0
- package/dist/engine/TopologyCompiler.js +276 -0
- package/dist/engine/WorkingMemoryDelta.d.ts +23 -0
- package/dist/engine/WorkingMemoryDelta.js +63 -0
- package/dist/entity/EntityGovernanceService.d.ts +47 -0
- package/dist/entity/EntityGovernanceService.js +215 -0
- package/dist/entity/index.d.ts +3 -0
- package/dist/entity/index.js +1 -0
- package/dist/episode/CogmemBlockStripper.d.ts +11 -0
- package/dist/episode/CogmemBlockStripper.js +58 -0
- package/dist/episode/CorrectionResolver.d.ts +30 -0
- package/dist/episode/CorrectionResolver.js +17 -0
- package/dist/episode/EpisodeAssembler.d.ts +54 -0
- package/dist/episode/EpisodeAssembler.js +203 -0
- package/dist/episode/EpisodeImportIdentity.d.ts +7 -0
- package/dist/episode/EpisodeImportIdentity.js +17 -0
- package/dist/episode/EpisodeSemanticSummarizer.d.ts +4 -0
- package/dist/episode/EpisodeSemanticSummarizer.js +31 -0
- package/dist/episode/EpisodeStore.d.ts +189 -0
- package/dist/episode/EpisodeStore.js +680 -0
- package/dist/episode/EpisodeTypes.d.ts +96 -0
- package/dist/episode/EpisodeTypes.js +1 -0
- package/dist/episode/TurnRelationClassifier.d.ts +40 -0
- package/dist/episode/TurnRelationClassifier.js +205 -0
- package/dist/episode/index.d.ts +9 -0
- package/dist/episode/index.js +8 -0
- package/dist/eval/datasets/contradiction_injection.d.ts +3 -0
- package/dist/eval/datasets/contradiction_injection.js +56 -0
- package/dist/eval/datasets/noisy_tool_output_corpus.d.ts +16 -0
- package/dist/eval/datasets/noisy_tool_output_corpus.js +59 -0
- package/dist/eval/datasets/synthetic_long_conversation.d.ts +40 -0
- package/dist/eval/datasets/synthetic_long_conversation.js +136 -0
- package/dist/eval/runners/EvalRunner.d.ts +12 -0
- package/dist/eval/runners/EvalRunner.js +66 -0
- package/dist/eval/runners/ReportFormatter.d.ts +13 -0
- package/dist/eval/runners/ReportFormatter.js +59 -0
- package/dist/eval/strategy/ContextOutcomeStore.d.ts +12 -0
- package/dist/eval/strategy/ContextOutcomeStore.js +44 -0
- package/dist/eval/strategy/ContextPolicyScorer.d.ts +25 -0
- package/dist/eval/strategy/ContextPolicyScorer.js +58 -0
- package/dist/eval/strategy/MemoryUseJudge.d.ts +49 -0
- package/dist/eval/strategy/MemoryUseJudge.js +75 -0
- package/dist/eval/strategy/StrategyDiversitySelector.d.ts +8 -0
- package/dist/eval/strategy/StrategyDiversitySelector.js +44 -0
- package/dist/eval/strategy/StrategyRolloutEvaluator.d.ts +15 -0
- package/dist/eval/strategy/StrategyRolloutEvaluator.js +30 -0
- package/dist/eval/strategy/index.d.ts +6 -0
- package/dist/eval/strategy/index.js +5 -0
- package/dist/factory.d.ts +726 -0
- package/dist/factory.js +2118 -0
- package/dist/governance/CandidateReviewService.d.ts +33 -0
- package/dist/governance/CandidateReviewService.js +126 -0
- package/dist/governance/ContradictionResolver.d.ts +22 -0
- package/dist/governance/ContradictionResolver.js +54 -0
- package/dist/governance/CredibilityScorer.d.ts +10 -0
- package/dist/governance/CredibilityScorer.js +29 -0
- package/dist/governance/DecayPolicy.d.ts +18 -0
- package/dist/governance/DecayPolicy.js +28 -0
- package/dist/governance/MemoryExplain.d.ts +46 -0
- package/dist/governance/MemoryExplain.js +62 -0
- package/dist/governance/MemoryGovernanceExecutor.d.ts +18 -0
- package/dist/governance/MemoryGovernanceExecutor.js +37 -0
- package/dist/governance/MemoryGovernancePlan.d.ts +36 -0
- package/dist/governance/MemoryGovernancePlan.js +1 -0
- package/dist/governance/MemoryGovernanceValidator.d.ts +13 -0
- package/dist/governance/MemoryGovernanceValidator.js +53 -0
- package/dist/governance/ObservationHygieneRules.d.ts +17 -0
- package/dist/governance/ObservationHygieneRules.js +28 -0
- package/dist/governance/PiiRedactor.d.ts +20 -0
- package/dist/governance/PiiRedactor.js +37 -0
- package/dist/governance/SupersedeChain.d.ts +21 -0
- package/dist/governance/SupersedeChain.js +107 -0
- package/dist/governance/index.d.ts +14 -0
- package/dist/governance/index.js +6 -0
- package/dist/graph/BrainGraphView.d.ts +20 -0
- package/dist/graph/BrainGraphView.js +45 -0
- package/dist/host/openclaw/AutoMemoryPluginInstaller.d.ts +45 -0
- package/dist/host/openclaw/AutoMemoryPluginInstaller.js +1904 -0
- package/dist/internal.d.ts +148 -0
- package/dist/internal.js +144 -0
- package/dist/lexicon/coreMemoryLexicon.d.ts +96 -0
- package/dist/lexicon/coreMemoryLexicon.js +525 -0
- package/dist/lexicon/language-packs/en.d.ts +42 -0
- package/dist/lexicon/language-packs/en.js +41 -0
- package/dist/lexicon/language-packs/zh.d.ts +42 -0
- package/dist/lexicon/language-packs/zh.js +41 -0
- package/dist/lexicon/zh/entities.d.ts +2 -0
- package/dist/lexicon/zh/entities.js +17 -0
- package/dist/lexicon/zh/index.d.ts +5 -0
- package/dist/lexicon/zh/index.js +3 -0
- package/dist/lexicon/zh/stopwords.d.ts +2 -0
- package/dist/lexicon/zh/stopwords.js +22 -0
- package/dist/lexicon/zh/topics.d.ts +6 -0
- package/dist/lexicon/zh/topics.js +52 -0
- package/dist/mcp/CoreMcpTools.d.ts +33 -0
- package/dist/mcp/CoreMcpTools.js +832 -0
- package/dist/mcp/server.d.ts +5 -0
- package/dist/mcp/server.js +29 -0
- package/dist/meta/MetaObservationCollector.d.ts +37 -0
- package/dist/meta/MetaObservationCollector.js +348 -0
- package/dist/meta/PolicyProposalGenerator.d.ts +11 -0
- package/dist/meta/PolicyProposalGenerator.js +159 -0
- package/dist/meta/ProposalApplier.d.ts +18 -0
- package/dist/meta/ProposalApplier.js +91 -0
- package/dist/meta/ProposalConfigOverlay.d.ts +13 -0
- package/dist/meta/ProposalConfigOverlay.js +27 -0
- package/dist/meta/ProposalEvalRunner.d.ts +31 -0
- package/dist/meta/ProposalEvalRunner.js +62 -0
- package/dist/meta/ProposalLedger.d.ts +34 -0
- package/dist/meta/ProposalLedger.js +242 -0
- package/dist/meta/types.d.ts +63 -0
- package/dist/meta/types.js +1 -0
- package/dist/migrations/0001_init.d.ts +4 -0
- package/dist/migrations/0001_init.js +67 -0
- package/dist/migrations/0002_v06_platform.d.ts +10 -0
- package/dist/migrations/0002_v06_platform.js +103 -0
- package/dist/migrations/0003_v07_dialogues.d.ts +9 -0
- package/dist/migrations/0003_v07_dialogues.js +53 -0
- package/dist/migrations/0004_v09_self_improvement.d.ts +9 -0
- package/dist/migrations/0004_v09_self_improvement.js +100 -0
- package/dist/migrations/0005_dialogue_buffer.d.ts +8 -0
- package/dist/migrations/0005_dialogue_buffer.js +44 -0
- package/dist/migrations/0006_deep_write_memory.d.ts +3 -0
- package/dist/migrations/0006_deep_write_memory.js +54 -0
- package/dist/migrations/0007_deep_write_summaries.d.ts +3 -0
- package/dist/migrations/0007_deep_write_summaries.js +24 -0
- package/dist/migrations/0009_memory_importance.d.ts +3 -0
- package/dist/migrations/0009_memory_importance.js +18 -0
- package/dist/migrations/0010_skill_neurons.d.ts +3 -0
- package/dist/migrations/0010_skill_neurons.js +19 -0
- package/dist/migrations/0011_topic_path.d.ts +3 -0
- package/dist/migrations/0011_topic_path.js +19 -0
- package/dist/migrations/0012_governance_security.d.ts +3 -0
- package/dist/migrations/0012_governance_security.js +23 -0
- package/dist/migrations/0015_memory_governance.d.ts +3 -0
- package/dist/migrations/0015_memory_governance.js +74 -0
- package/dist/migrations/0016_entity_governance.d.ts +3 -0
- package/dist/migrations/0016_entity_governance.js +40 -0
- package/dist/migrations/0017_belief_graph.d.ts +3 -0
- package/dist/migrations/0017_belief_graph.js +41 -0
- package/dist/migrations/0018_temporal_memory.d.ts +3 -0
- package/dist/migrations/0018_temporal_memory.js +25 -0
- package/dist/migrations/0019_context_cortex.d.ts +3 -0
- package/dist/migrations/0019_context_cortex.js +19 -0
- package/dist/migrations/0020_prospective_memory.d.ts +3 -0
- package/dist/migrations/0020_prospective_memory.js +42 -0
- package/dist/migrations/0021_strategy_cortex.d.ts +3 -0
- package/dist/migrations/0021_strategy_cortex.js +23 -0
- package/dist/migrations/0022_episode_dream_engine.d.ts +3 -0
- package/dist/migrations/0022_episode_dream_engine.js +74 -0
- package/dist/migrations/0023_episode_dream_hardening.d.ts +3 -0
- package/dist/migrations/0023_episode_dream_hardening.js +65 -0
- package/dist/migrations/0024_episode_ontology_reliability.d.ts +3 -0
- package/dist/migrations/0024_episode_ontology_reliability.js +70 -0
- package/dist/migrations/0025_memory_atlas.d.ts +6 -0
- package/dist/migrations/0025_memory_atlas.js +268 -0
- package/dist/migrations/0026_runtime_governance_atlas_reliability.d.ts +3 -0
- package/dist/migrations/0026_runtime_governance_atlas_reliability.js +72 -0
- package/dist/migrations/0027_openclaw_upgrade_hotfix.d.ts +3 -0
- package/dist/migrations/0027_openclaw_upgrade_hotfix.js +21 -0
- package/dist/migrations/SchemaMigrationRunner.d.ts +21 -0
- package/dist/migrations/SchemaMigrationRunner.js +67 -0
- package/dist/migrations/index.d.ts +36 -0
- package/dist/migrations/index.js +57 -0
- package/dist/models/ModelCapabilityRouter.d.ts +17 -0
- package/dist/models/ModelCapabilityRouter.js +75 -0
- package/dist/models/ModelRegistry.d.ts +15 -0
- package/dist/models/ModelRegistry.js +132 -0
- package/dist/models/ModelRole.d.ts +19 -0
- package/dist/models/ModelRole.js +1 -0
- package/dist/models/UserInsight.d.ts +16 -0
- package/dist/models/UserInsight.js +9 -0
- package/dist/models/UserInsightExtractor.d.ts +19 -0
- package/dist/models/UserInsightExtractor.js +99 -0
- package/dist/models/UserModelManager.d.ts +21 -0
- package/dist/models/UserModelManager.js +41 -0
- package/dist/models/UserModelStore.d.ts +20 -0
- package/dist/models/UserModelStore.js +136 -0
- package/dist/models/WorkingMemoryReporter.d.ts +16 -0
- package/dist/models/WorkingMemoryReporter.js +38 -0
- package/dist/models/adapters/MemoryReviewAdapter.d.ts +12 -0
- package/dist/models/adapters/MemoryReviewAdapter.js +77 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +5 -0
- package/dist/models/providers/AnthropicClient.d.ts +17 -0
- package/dist/models/providers/AnthropicClient.js +40 -0
- package/dist/models/providers/OpenAICompatibleClient.d.ts +24 -0
- package/dist/models/providers/OpenAICompatibleClient.js +76 -0
- package/dist/observability/DecisionExplainer.d.ts +5 -0
- package/dist/observability/DecisionExplainer.js +62 -0
- package/dist/observability/TraceEvent.d.ts +11 -0
- package/dist/observability/TraceEvent.js +1 -0
- package/dist/observability/TraceQuery.d.ts +15 -0
- package/dist/observability/TraceQuery.js +28 -0
- package/dist/observability/TraceStore.d.ts +15 -0
- package/dist/observability/TraceStore.js +110 -0
- package/dist/observability/TraceWriter.d.ts +8 -0
- package/dist/observability/TraceWriter.js +14 -0
- package/dist/ontology/MemoryOntology.d.ts +4 -0
- package/dist/ontology/MemoryOntology.js +7 -0
- package/dist/prospective/ProspectiveMemoryService.d.ts +79 -0
- package/dist/prospective/ProspectiveMemoryService.js +258 -0
- package/dist/prospective/index.d.ts +2 -0
- package/dist/prospective/index.js +1 -0
- package/dist/public.d.ts +160 -0
- package/dist/public.js +115 -0
- package/dist/recall/BrainRecall.d.ts +96 -0
- package/dist/recall/BrainRecall.js +574 -0
- package/dist/recall/HierarchicalRecallRouter.d.ts +24 -0
- package/dist/recall/HierarchicalRecallRouter.js +62 -0
- package/dist/recall/RecallExplanation.d.ts +59 -0
- package/dist/recall/RecallExplanation.js +244 -0
- package/dist/recall/RecallGovernance.d.ts +10 -0
- package/dist/recall/RecallGovernance.js +83 -0
- package/dist/recall/RecallSufficiencyGate.d.ts +40 -0
- package/dist/recall/RecallSufficiencyGate.js +208 -0
- package/dist/recall/SourceContextMetadata.d.ts +49 -0
- package/dist/recall/SourceContextMetadata.js +134 -0
- package/dist/recall/TopicClassifier.d.ts +33 -0
- package/dist/recall/TopicClassifier.js +138 -0
- package/dist/recall/TopicDecayPolicy.d.ts +15 -0
- package/dist/recall/TopicDecayPolicy.js +46 -0
- package/dist/recall/TopicRegistry.d.ts +12 -0
- package/dist/recall/TopicRegistry.js +26 -0
- package/dist/recall/TopicSummaryBoard.d.ts +27 -0
- package/dist/recall/TopicSummaryBoard.js +139 -0
- package/dist/recall/VectorCandidateFilter.d.ts +50 -0
- package/dist/recall/VectorCandidateFilter.js +78 -0
- package/dist/retrieval/ConditionDslEvaluator.d.ts +33 -0
- package/dist/retrieval/ConditionDslEvaluator.js +160 -0
- package/dist/retrieval/EntityActivationIndex.d.ts +14 -0
- package/dist/retrieval/EntityActivationIndex.js +19 -0
- package/dist/retrieval/EvidenceFusionPolicy.d.ts +30 -0
- package/dist/retrieval/EvidenceFusionPolicy.js +112 -0
- package/dist/retrieval/EvidenceFusionRanker.d.ts +13 -0
- package/dist/retrieval/EvidenceFusionRanker.js +17 -0
- package/dist/retrieval/NarrativeRecallAssembler.d.ts +32 -0
- package/dist/retrieval/NarrativeRecallAssembler.js +27 -0
- package/dist/retrieval/NativeQueryParser.d.ts +23 -0
- package/dist/retrieval/NativeQueryParser.js +135 -0
- package/dist/retrieval/PlanDslExecutor.d.ts +67 -0
- package/dist/retrieval/PlanDslExecutor.js +194 -0
- package/dist/retrieval/PolicyRuntimeEvaluator.d.ts +48 -0
- package/dist/retrieval/PolicyRuntimeEvaluator.js +96 -0
- package/dist/retrieval/PolicySideEffectExecutor.d.ts +50 -0
- package/dist/retrieval/PolicySideEffectExecutor.js +202 -0
- package/dist/retrieval/PulseRetrievalEngine.d.ts +37 -0
- package/dist/retrieval/PulseRetrievalEngine.js +51 -0
- package/dist/retrieval/QueryCompiler.d.ts +18 -0
- package/dist/retrieval/QueryCompiler.js +97 -0
- package/dist/retrieval/QueryTimePendingEntityResolver.d.ts +67 -0
- package/dist/retrieval/QueryTimePendingEntityResolver.js +260 -0
- package/dist/retrieval/RetrievalPlanner.d.ts +42 -0
- package/dist/retrieval/RetrievalPlanner.js +209 -0
- package/dist/retrieval/TemporalBranchSearch.d.ts +38 -0
- package/dist/retrieval/TemporalBranchSearch.js +109 -0
- package/dist/retrieval/UniverseNavigator.d.ts +43 -0
- package/dist/retrieval/UniverseNavigator.js +75 -0
- package/dist/retrieval/UniverseTraversalExecutor.d.ts +21 -0
- package/dist/retrieval/UniverseTraversalExecutor.js +77 -0
- package/dist/routing/AnswerEvidenceTrace.d.ts +18 -0
- package/dist/routing/AnswerEvidenceTrace.js +1 -0
- package/dist/routing/BrainToolDispatcher.d.ts +37 -0
- package/dist/routing/BrainToolDispatcher.js +163 -0
- package/dist/routing/ConfidenceGate.d.ts +26 -0
- package/dist/routing/ConfidenceGate.js +40 -0
- package/dist/routing/ConfirmationPhraseMatcher.d.ts +9 -0
- package/dist/routing/ConfirmationPhraseMatcher.js +43 -0
- package/dist/routing/DirectReplyFormatter.d.ts +5 -0
- package/dist/routing/DirectReplyFormatter.js +55 -0
- package/dist/routing/EvidenceBudgetManager.d.ts +30 -0
- package/dist/routing/EvidenceBudgetManager.js +55 -0
- package/dist/routing/ExecutionLoop.d.ts +79 -0
- package/dist/routing/ExecutionLoop.js +234 -0
- package/dist/routing/IntentClassifier.d.ts +15 -0
- package/dist/routing/IntentClassifier.js +97 -0
- package/dist/routing/IntentPatternMatcher.d.ts +12 -0
- package/dist/routing/IntentPatternMatcher.js +206 -0
- package/dist/routing/IterativeLLMClarifier.d.ts +80 -0
- package/dist/routing/IterativeLLMClarifier.js +408 -0
- package/dist/routing/LLMToolSchema.d.ts +60 -0
- package/dist/routing/LLMToolSchema.js +143 -0
- package/dist/routing/MessageRouter.d.ts +20 -0
- package/dist/routing/MessageRouter.js +58 -0
- package/dist/routing/SessionContextSelector.d.ts +12 -0
- package/dist/routing/SessionContextSelector.js +86 -0
- package/dist/routing/SystemIntentClassifier.d.ts +15 -0
- package/dist/routing/SystemIntentClassifier.js +50 -0
- package/dist/routing/TaskPlan.d.ts +31 -0
- package/dist/routing/TaskPlan.js +1 -0
- package/dist/routing/TaskRouter.d.ts +13 -0
- package/dist/routing/TaskRouter.js +111 -0
- package/dist/routing/ToolCallParser.d.ts +16 -0
- package/dist/routing/ToolCallParser.js +123 -0
- package/dist/routing/ToolEvidenceNormalizer.d.ts +13 -0
- package/dist/routing/ToolEvidenceNormalizer.js +96 -0
- package/dist/routing/ToolEvidencePack.d.ts +36 -0
- package/dist/routing/ToolEvidencePack.js +84 -0
- package/dist/routing/ToolResultSanitizer.d.ts +19 -0
- package/dist/routing/ToolResultSanitizer.js +58 -0
- package/dist/routing/ToolUsePolicy.d.ts +78 -0
- package/dist/routing/ToolUsePolicy.js +163 -0
- package/dist/routing/index.d.ts +32 -0
- package/dist/routing/index.js +19 -0
- package/dist/routing/templates/ability_template.d.ts +2 -0
- package/dist/routing/templates/ability_template.js +34 -0
- package/dist/routing/templates/approvals_template.d.ts +2 -0
- package/dist/routing/templates/approvals_template.js +43 -0
- package/dist/routing/templates/context_template.d.ts +2 -0
- package/dist/routing/templates/context_template.js +25 -0
- package/dist/routing/templates/contradictions_template.d.ts +2 -0
- package/dist/routing/templates/contradictions_template.js +36 -0
- package/dist/routing/templates/importance_template.d.ts +2 -0
- package/dist/routing/templates/importance_template.js +23 -0
- package/dist/routing/templates/memory_template.d.ts +2 -0
- package/dist/routing/templates/memory_template.js +37 -0
- package/dist/routing/templates/self_manifest_template.d.ts +5 -0
- package/dist/routing/templates/self_manifest_template.js +64 -0
- package/dist/routing/templates/tasks_template.d.ts +2 -0
- package/dist/routing/templates/tasks_template.js +41 -0
- package/dist/routing/templates/trace_template.d.ts +2 -0
- package/dist/routing/templates/trace_template.js +37 -0
- package/dist/routing/tools/EntityExpandTool.d.ts +25 -0
- package/dist/routing/tools/EntityExpandTool.js +59 -0
- package/dist/routing/tools/NeuronContextTool.d.ts +32 -0
- package/dist/routing/tools/NeuronContextTool.js +66 -0
- package/dist/routing/tools/SecondaryRecallTool.d.ts +27 -0
- package/dist/routing/tools/SecondaryRecallTool.js +30 -0
- package/dist/routing/tools/SkillDiscoveryTool.d.ts +13 -0
- package/dist/routing/tools/SkillDiscoveryTool.js +11 -0
- package/dist/snapshot/SnapshotExporter.d.ts +13 -0
- package/dist/snapshot/SnapshotExporter.js +70 -0
- package/dist/snapshot/SnapshotHeader.d.ts +15 -0
- package/dist/snapshot/SnapshotHeader.js +1 -0
- package/dist/snapshot/SnapshotImporter.d.ts +20 -0
- package/dist/snapshot/SnapshotImporter.js +40 -0
- package/dist/snapshot/errors.d.ts +18 -0
- package/dist/snapshot/errors.js +34 -0
- package/dist/snapshot/index.d.ts +5 -0
- package/dist/snapshot/index.js +3 -0
- package/dist/storage/StorageCompactor.d.ts +30 -0
- package/dist/storage/StorageCompactor.js +95 -0
- package/dist/store/ActivationStore.d.ts +45 -0
- package/dist/store/ActivationStore.js +135 -0
- package/dist/store/BackgroundJobStore.d.ts +49 -0
- package/dist/store/BackgroundJobStore.js +156 -0
- package/dist/store/CandidateReviewStore.d.ts +33 -0
- package/dist/store/CandidateReviewStore.js +67 -0
- package/dist/store/CognitiveGraphStore.d.ts +42 -0
- package/dist/store/CognitiveGraphStore.js +193 -0
- package/dist/store/CompilerConfidenceStore.d.ts +20 -0
- package/dist/store/CompilerConfidenceStore.js +76 -0
- package/dist/store/DeepWriteCandidateStore.d.ts +94 -0
- package/dist/store/DeepWriteCandidateStore.js +290 -0
- package/dist/store/DeterministicEmbedder.d.ts +10 -0
- package/dist/store/DeterministicEmbedder.js +24 -0
- package/dist/store/DreamLedgerStore.d.ts +22 -0
- package/dist/store/DreamLedgerStore.js +84 -0
- package/dist/store/Embedder.d.ts +14 -0
- package/dist/store/Embedder.js +52 -0
- package/dist/store/EmbedderFactory.d.ts +12 -0
- package/dist/store/EmbedderFactory.js +51 -0
- package/dist/store/EntityStore.d.ts +195 -0
- package/dist/store/EntityStore.js +941 -0
- package/dist/store/EventStore.d.ts +118 -0
- package/dist/store/EventStore.js +699 -0
- package/dist/store/FactStore.d.ts +76 -0
- package/dist/store/FactStore.js +356 -0
- package/dist/store/HnswlibVectorStore.d.ts +2 -0
- package/dist/store/HnswlibVectorStore.js +1 -0
- package/dist/store/IVectorStore.d.ts +32 -0
- package/dist/store/IVectorStore.js +1 -0
- package/dist/store/InteractionUnitStore.d.ts +52 -0
- package/dist/store/InteractionUnitStore.js +167 -0
- package/dist/store/MemoryAtlasStore.d.ts +60 -0
- package/dist/store/MemoryAtlasStore.js +500 -0
- package/dist/store/MemoryBindingStore.d.ts +77 -0
- package/dist/store/MemoryBindingStore.js +608 -0
- package/dist/store/MemoryGovernanceStore.d.ts +23 -0
- package/dist/store/MemoryGovernanceStore.js +103 -0
- package/dist/store/MemoryInspectionStore.d.ts +61 -0
- package/dist/store/MemoryInspectionStore.js +215 -0
- package/dist/store/PlanRuntimeStore.d.ts +83 -0
- package/dist/store/PlanRuntimeStore.js +257 -0
- package/dist/store/PolicyExecutionProjector.d.ts +17 -0
- package/dist/store/PolicyExecutionProjector.js +115 -0
- package/dist/store/PolicyExecutionStore.d.ts +62 -0
- package/dist/store/PolicyExecutionStore.js +290 -0
- package/dist/store/PolicyProjectionStore.d.ts +18 -0
- package/dist/store/PolicyProjectionStore.js +61 -0
- package/dist/store/ProjectionObservabilityStore.d.ts +38 -0
- package/dist/store/ProjectionObservabilityStore.js +310 -0
- package/dist/store/ReasoningChainStore.d.ts +13 -0
- package/dist/store/ReasoningChainStore.js +74 -0
- package/dist/store/RuntimeProjectionStore.d.ts +18 -0
- package/dist/store/RuntimeProjectionStore.js +61 -0
- package/dist/store/RuntimeProjector.d.ts +17 -0
- package/dist/store/RuntimeProjector.js +119 -0
- package/dist/store/SqliteVecStore.d.ts +25 -0
- package/dist/store/SqliteVecStore.js +126 -0
- package/dist/store/SummaryStore.d.ts +56 -0
- package/dist/store/SummaryStore.js +225 -0
- package/dist/store/TemporalAdjacencyStore.d.ts +49 -0
- package/dist/store/TemporalAdjacencyStore.js +300 -0
- package/dist/store/TopologyStore.d.ts +89 -0
- package/dist/store/TopologyStore.js +657 -0
- package/dist/store/VectorProjector.d.ts +22 -0
- package/dist/store/VectorProjector.js +125 -0
- package/dist/store/VectorStore.d.ts +35 -0
- package/dist/store/VectorStore.js +201 -0
- package/dist/strategy/StrategyCapsule.d.ts +44 -0
- package/dist/strategy/StrategyCapsule.js +1 -0
- package/dist/strategy/StrategyConditionedCandidateBuilder.d.ts +9 -0
- package/dist/strategy/StrategyConditionedCandidateBuilder.js +11 -0
- package/dist/strategy/StrategyContextFormatter.d.ts +3 -0
- package/dist/strategy/StrategyContextFormatter.js +25 -0
- package/dist/strategy/StrategyCortex.d.ts +28 -0
- package/dist/strategy/StrategyCortex.js +78 -0
- package/dist/strategy/StrategyTemplateRegistry.d.ts +9 -0
- package/dist/strategy/StrategyTemplateRegistry.js +78 -0
- package/dist/strategy/index.d.ts +6 -0
- package/dist/strategy/index.js +5 -0
- package/dist/temporal/TemporalMemoryService.d.ts +62 -0
- package/dist/temporal/TemporalMemoryService.js +128 -0
- package/dist/temporal/index.d.ts +2 -0
- package/dist/temporal/index.js +1 -0
- package/dist/topic/TopicAliasRegistry.d.ts +21 -0
- package/dist/topic/TopicAliasRegistry.js +67 -0
- package/dist/topic/TopicGovernance.d.ts +21 -0
- package/dist/topic/TopicGovernance.js +173 -0
- package/dist/topic/TopicPathRegistry.d.ts +36 -0
- package/dist/topic/TopicPathRegistry.js +105 -0
- package/dist/topic/TopicRelationGraph.d.ts +23 -0
- package/dist/topic/TopicRelationGraph.js +55 -0
- package/dist/topic/TopicTypes.d.ts +73 -0
- package/dist/topic/TopicTypes.js +1 -0
- package/dist/topic/index.d.ts +6 -0
- package/dist/topic/index.js +5 -0
- package/dist/types/AsyncEnrichment.d.ts +62 -0
- package/dist/types/AsyncEnrichment.js +7 -0
- package/dist/types/BrainRecallResult.d.ts +66 -0
- package/dist/types/BrainRecallResult.js +1 -0
- package/dist/types/ExtensionPoints.d.ts +116 -0
- package/dist/types/ExtensionPoints.js +1 -0
- package/dist/types/Migration.d.ts +22 -0
- package/dist/types/Migration.js +1 -0
- package/dist/types/QueryTimePendingEntityResolution.d.ts +11 -0
- package/dist/types/QueryTimePendingEntityResolution.js +23 -0
- package/dist/types/index.d.ts +855 -0
- package/dist/types/index.js +24 -0
- package/dist/types/query-ir.d.ts +71 -0
- package/dist/types/query-ir.js +4 -0
- package/dist/types/reasoning.d.ts +16 -0
- package/dist/types/reasoning.js +4 -0
- package/dist/utils/AAAKGenerator.d.ts +57 -0
- package/dist/utils/AAAKGenerator.js +212 -0
- package/dist/utils/Config.d.ts +78 -0
- package/dist/utils/Config.js +91 -0
- package/dist/utils/ConversationMarkdownNormalization.d.ts +88 -0
- package/dist/utils/ConversationMarkdownNormalization.js +567 -0
- package/dist/utils/Logger.d.ts +22 -0
- package/dist/utils/Logger.js +77 -0
- package/dist/utils/hash.d.ts +33 -0
- package/dist/utils/hash.js +53 -0
- package/dist/utils/text.d.ts +2 -0
- package/dist/utils/text.js +19 -0
- package/dist/utils/vector.d.ts +26 -0
- package/dist/utils/vector.js +38 -0
- package/examples/hermes-backend/AGENTS.md +218 -0
- package/examples/hermes-backend/README.md +153 -0
- package/examples/hermes-backend/SKILL.md +365 -0
- package/examples/hermes-backend/references/operations.md +202 -0
- package/examples/openclaw-backend/AGENTS.md +195 -0
- package/examples/openclaw-backend/README.md +228 -0
- package/examples/openclaw-backend/SKILL.md +464 -0
- package/examples/openclaw-backend/references/operations.md +269 -0
- package/install.sh +84 -0
- package/package.json +90 -0
package/BENCHMARKS.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Benchmarks
|
|
2
|
+
|
|
3
|
+
## BrainEval 3.6.0
|
|
4
|
+
|
|
5
|
+
`cogmem brain-eval --input samples.json` is the end-to-end memory-brain gate. It fails on recall below 90%, precision below 80%, provenance below 95%, binding purity below 90%, temporal current-truth accuracy below 95%, or any false entity merge, invalid user-belief ownership, context pollution, source mismatch, stale/cross-project leakage, context-budget violation, or prospective activation without confirmation. Input samples can include domain checks for canonical topic paths, entity merge decisions, user evidence ownership, temporal versions, context pollution, and exact source event identity.
|
|
6
|
+
|
|
7
|
+
Release fixtures must include at least one check for every domain metric. Missing binding, entity, user-belief, temporal, context-pollution, or source-fidelity checks fail closed instead of receiving a synthetic perfect score.
|
|
8
|
+
|
|
9
|
+
Episode fixtures also measure `episodeGroupingAccuracy`, `episodeBoundaryAccuracy`, `episodeEvidenceCoverage`, `unassignedRawRate`, `dreamCandidateGrounding`, `dreamBypassRate`, and `hermesImportParity`. These checks fail closed when omitted. Release gates require at least 95% episode evidence coverage, exact Hermes live/import shape parity, and zero governance bypass.
|
|
10
|
+
|
|
11
|
+
Atlas fixtures enforce project isolation, node/hop/evidence bounds, exact evidence locators, weighted path reconstruction, composable facet resurrection, pure read behavior, explicit activation touch, and canonical-source immutability. Runtime reliability fixtures cover read-only CLI inspection during a long-lived SQLite connection and audited `needs_confirmation` review transitions.
|
|
12
|
+
|
|
13
|
+
Strategy-policy evaluation consumes precomputed `StrategyRolloutOutcome` records:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
cogmem brain-eval --input strategy-outcomes.json --strategy-rollout --json
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
It does not call a model or generate online rollouts. `StrategyDiversitySelector` can apply farthest-point selection to supplied vectors for offline fixture diversity. `ContextPolicyScorer` gates on median score, worst-decile score, exact source fidelity, zero unsafe/stale/cross-project leakage, zero over-budget outcomes, strategy adherence, and p95 latency. The top-fraction score is reported for exploration only and never overrides a safety failure.
|
|
20
|
+
|
|
21
|
+
Core benchmarks must prove natural memory emergence, not only recall@k.
|
|
22
|
+
|
|
23
|
+
## Natural Emergence Group
|
|
24
|
+
|
|
25
|
+
The `memory_natural_emergence` benchmark group runs on the `memory_recall` eval suite and tracks:
|
|
26
|
+
|
|
27
|
+
- `critical_memory_recall_rate`
|
|
28
|
+
- `old_but_important_recall_rate`
|
|
29
|
+
- `stale_memory_leakage_rate`
|
|
30
|
+
- `superseded_fact_leakage_rate`
|
|
31
|
+
- `suspect_memory_leakage_rate`
|
|
32
|
+
- `cross_project_leakage_rate`
|
|
33
|
+
- `provenance_completeness_rate`
|
|
34
|
+
- `context_budget_efficiency`
|
|
35
|
+
- `pulse_activation_useful_expansion_rate`
|
|
36
|
+
- `inhibition_correctness_rate`
|
|
37
|
+
- `vector_bytes_per_raw_event`
|
|
38
|
+
- `compiled_neuron_per_turn_rate`
|
|
39
|
+
- `immediate_embedding_skip_rate`
|
|
40
|
+
- `dream_coverage_rate`
|
|
41
|
+
- `undreamed_raw_backlog_count`
|
|
42
|
+
- `cold_recall_rehydration_success_rate`
|
|
43
|
+
|
|
44
|
+
This group checks both activation and inhibition: the kernel should surface old but important memories while suppressing stale, superseded, suspect, and cross-project evidence.
|
|
45
|
+
|
|
46
|
+
Storage metrics are quality gates, not standalone wins. A run only passes if vector bytes drop while critical recall, old-but-important recall, provenance completeness, and leakage metrics stay within the accepted threshold.
|
|
47
|
+
|
|
48
|
+
## Baselines
|
|
49
|
+
|
|
50
|
+
Use external benchmark ideas only as baselines or measurements:
|
|
51
|
+
|
|
52
|
+
- fixed recent window baseline
|
|
53
|
+
- vector topK baseline
|
|
54
|
+
- full-context baseline
|
|
55
|
+
- token saving metric
|
|
56
|
+
- latency metric
|
|
57
|
+
- provenance completeness metric
|
|
58
|
+
- immediate-compile-every-turn storage baseline
|
|
59
|
+
- selective-compile storage baseline
|
|
60
|
+
- raw-then-dream coverage baseline
|
|
61
|
+
|
|
62
|
+
These baselines must not become the default agent-facing memory path. The default path remains structure-first universe navigation with pulse activation, temporal traversal, governance suppression, and bounded context.
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 3.6.2
|
|
4
|
+
|
|
5
|
+
- Switched the public distribution channel to the npm registry while keeping GitHub as the source and review mirror.
|
|
6
|
+
- Changed `cogmem update --yes` to install `cogmem@latest` from npm by default, then run post-install work through the newly installed local CLI.
|
|
7
|
+
- Added upgrade preflight and audit output for resolved config, backed-up migration command, OpenClaw plugin-only refresh command, skipped post-install reasons, and required agent restarts.
|
|
8
|
+
- Updated the one-line installer, release checklist, README, and installed OpenClaw/Hermes agent skill handbooks for npm install, one-command update, migration, import, repair, and restart workflows.
|
|
9
|
+
|
|
10
|
+
## 3.6.1
|
|
11
|
+
|
|
12
|
+
- Fixed OpenClaw upgrade regressions after 3.5.2 -> 3.6.0 by adding plugin-only repair/diagnose paths, generated-plugin hash inspection, and clearer `cogmem update` follow-up instructions.
|
|
13
|
+
- Upgraded the OpenClaw generated plugin to 0.6.2, fixed queued remember draining so the bridge passes the live kernel/backend into `rememberPayload`, and added stale queue-lock recovery plus bounded drain batches.
|
|
14
|
+
- Made the generated OpenClaw remember-queue drainer acquire the queue lock before loading Cogmem or opening SQLite, and debounced parent-side drainer spawning when a fresh queue/spawn lock already exists.
|
|
15
|
+
- Added richer `before_prompt_build` audit diagnostics, including bridge command, DB-lock detection, returned injection shape, context size, item count, and broader injection return compatibility fields.
|
|
16
|
+
- Added schema migration 27 and changed migration 26 so Atlas projections are dirty after upgrade until the real action/time projection rebuild runs.
|
|
17
|
+
- Let Atlas graph reads return existing projections with `atlasFresh=false` when refresh is blocked by SQLite busy, and added `--refresh`, `--no-refresh`, and `--stale-ok` graph CLI controls.
|
|
18
|
+
- Added `cogmem repair project-scope` for conservative empty-project upgrade residue repair, plus OpenClaw operations documentation for migration, plugin refresh, diagnose, and repair flows.
|
|
19
|
+
|
|
20
|
+
## 3.6.0
|
|
21
|
+
|
|
22
|
+
- Closed the `needs_confirmation` queue with audited CLI/MCP approve, reject, defer, supersede, and correction-relink actions. Use `cogmem memory candidates --status needs_confirmation`, then `cogmem memory review`; `govern --status needs_confirmation` now lists the queue and points operators at review instead of silently promoting the wrong status.
|
|
23
|
+
- Isolated `memory status` and `memory candidates` behind a lightweight read-only SQLite store, closed all kernel-owned handles deterministically, and added concurrent MCP/CLI coverage so routine inspection does not require stopping a long-lived agent host.
|
|
24
|
+
- Made Atlas facets exact and composable like table filters across project, time, topic, entity/target, memory kind, action, and text cues. CJK aliases, facet-only queries, multiple actions per event, raw tool/user actions, accumulated time evidence, weighted paths, and entity-specific timelines now remain source anchored.
|
|
25
|
+
- Removed Atlas popularity feedback from reads. Graph tools are read-only/idempotent; agents explicitly call `cogmem_graph_touch` only for nodes they use. Maintenance refreshes dirty projections only, records projection errors, cleans stale projects/access telemetry, and reports `evidenceTotal` separately from `evidenceReturned`.
|
|
26
|
+
- Unified OpenClaw Atlas exploration, evidence-bearing node/timeline drill-down, and normal recall in one bridge/kernel lifecycle. Injected Atlas context now includes evidence event IDs and exact drill-down commands.
|
|
27
|
+
- Added schema migration 26. A 3.5.2 schema-24 database, or a pre-release schema-25 test database, upgrades in one backed-up `cogmem migrate --yes --backup --json` run without rewriting Raw Ledger evidence.
|
|
28
|
+
- Upgraded the OpenClaw plugin to 0.6.1 and changed `cogmem connect` to install a full agent operations bundle. The installed skill now includes `references/operations.md` with command selection, migration, import, Atlas, review, repair, backup, evaluation, and non-overlapping maintenance guidance.
|
|
29
|
+
|
|
30
|
+
- Added Memory Atlas v1, a bounded, project-scoped content graph over existing topics, entities, clusters, episodes, beliefs, action frames, time buckets, relations, and exact raw-event evidence. It is canonical-memory-safe and records only non-evidentiary access/activation telemetry, not a second fact store.
|
|
31
|
+
- Added generic query-facet resurrection. Time, target/entity, topic, memory kind, and ordinary query cues work like combined table filters; exact scoped matches can surface cold memory without changing truth, confidence, ownership, or governance state.
|
|
32
|
+
- Added graph overview, search, explore, node, neighbors, path, and timeline APIs through the kernel, CLI, and canonical-memory-safe MCP tools. Read queries stay pure by default, explicit touch records selected-node use, and every evidence result carries an event ID plus a `cogmem memory show` drill-down command.
|
|
33
|
+
- Added deterministic Atlas activation and decay. Explicit touches raise visibility, maintenance decays it, and cold evidence remains recoverable through exact facets. Database triggers mark only changed projects dirty so normal queries do not rebuild the entire graph.
|
|
34
|
+
- Added OpenClaw direct graph exploration through the generated plugin bridge, with bounded volatile `COGMEM_MEMORY_ATLAS` context and no MCP requirement. Hermes receives the same graph surface through MCP.
|
|
35
|
+
- Standardized every documented CLI `--json` command on `cogmem.cli.v1`: object payload fields are available at the top level, arrays use `items`, and Dream/status queue counters have stable top-level aliases while legacy nested objects remain during the compatibility window.
|
|
36
|
+
- Added schema migration 25 with transaction-safe Atlas projection, action evidence, access/activation, FTS, and dirty-state tables. A 3.5.2 database upgrades with `cogmem migrate --yes --backup --json`; Raw Ledger evidence is preserved.
|
|
37
|
+
- Bumped the OpenClaw plugin to 0.6.0 and updated OpenClaw/Hermes skills and runbooks with graph-first navigation and exact-source drill-down rules.
|
|
38
|
+
|
|
39
|
+
## 3.5.2
|
|
40
|
+
|
|
41
|
+
- Added the user-shaped Memory Ontology and project-scoped topic path, alias, relation, and governance registries. Explicit user operations are active, audited, and reversible; model proposals stay candidates and alias collisions fail closed for review.
|
|
42
|
+
- Wired advisory hybrid classification into asynchronous assembly/import paths while preserving the CPU-only foreground hook. Unknown turns now default to ambiguous review, reviewer fields are allow-listed, assistant context distinguishes proposal acceptance from question/fact answers, and unsafe soft-seal reopen paths are blocked.
|
|
43
|
+
- Hardened episode Dream evidence and ownership: invalid provider evidence is rejected without fallback, CPU project scope wins, assistant-only decisions and orphan corrections require confirmation, proposal confirmation uses bounded same-thread history, and summaries remain non-evidence hints.
|
|
44
|
+
- Added per-job Dream modes, deep recommendations, persisted per-episode failure diagnostics, multi-action episode status, and hookless recall freshness warnings.
|
|
45
|
+
- Added resumable CLI/MCP import diagnostics, ingest-key lifecycle state, source-agent identity validation, and unified asynchronous episode assembly for source imports.
|
|
46
|
+
- Added audited episode split, merge, move-event, reclassify, and Dream requeue/invalidation surgery with closure recomputation, cross-references, stale-candidate invalidation, and Dream requeue.
|
|
47
|
+
- Added shared malformed `COGMEM_*` block stripping, payload text allow-listing, schema migration 24/parity coverage, new BrainEval reliability gates, OpenClaw plugin 0.5.0, and updated OpenClaw/Hermes agent skills.
|
|
48
|
+
|
|
49
|
+
## 3.5.1
|
|
50
|
+
|
|
51
|
+
- Hardened Episode classification with previous assistant/user context, explicit assistant-side relations, confidence and audit signals, safe subtopic/ambiguous/hard switch handling, and an advisory-only hybrid review API that cannot write memory.
|
|
52
|
+
- Added non-evidence semantic episode summaries, multi-tag importance metadata, normalized closure reasons, source/thread-scoped active lookup with legacy upgrade fallback, and separate episode/Dream lifecycle state.
|
|
53
|
+
- Made micro, normal, and deep Dream modes change curator scope and candidate limits; added retryable, scheduled, and terminal failure states with backoff and episode-level error visibility.
|
|
54
|
+
- Enforced raw-event evidence subsets for episode candidates, paired assistant-proposal/user-confirmation evidence, orphan-correction review, decision temporal candidates, and existing prospective-memory deduplication boundaries.
|
|
55
|
+
- Replaced line-index import identity with stable source/session/role/time/content identity; added streaming JSONL checkpoints, resume support, confidence-aware batch sealing, and bounded MCP imports.
|
|
56
|
+
- Guarded MCP `cogmem_dream_tick` behind `maintenanceMode: true`, enriched hookless-agent status guidance, added schema migration 23, and updated OpenClaw plugin 0.4.1 plus OpenClaw/Hermes skills.
|
|
57
|
+
|
|
58
|
+
## 3.5.0
|
|
59
|
+
|
|
60
|
+
- Added Episode Dream Engine v1. Raw messages are still written immediately, while deterministic session-scoped episode assembly gives Dream a bounded conversation-level unit instead of an arbitrary raw-event window.
|
|
61
|
+
- Added auditable open, soft-sealed, and sealed episode lifecycle, closure receipts, safe soft reopen, hard-seal protection, one-event-one-episode assignment, repair of unassigned raw evidence, and project-scoped forget cleanup.
|
|
62
|
+
- Added conditional `cogmem dream tick`: timers now wake a scheduler that chooses no work, micro, normal, or deep processing from the sealed backlog. Recall and OpenClaw foreground hooks never run Dream.
|
|
63
|
+
- Added leased, retryable, idempotent episode Dream jobs and run receipts. Every episode-derived candidate retains `sourceEpisodeId` plus exact raw event evidence and still requires existing CPU governance.
|
|
64
|
+
- Scoped message import idempotency to project, source agent, and source session; conflicting reuse is rejected, reserved identities can recover a missing Raw Ledger write, and exhausted Dream leases remain explicitly retryable.
|
|
65
|
+
- Added `cogmem episode` and `cogmem dream` CLIs plus bounded MCP episode append/import/status/seal and Dream tick/status tools for hookless Hermes-style agents.
|
|
66
|
+
- Unified existing OpenClaw/Hermes imports and live turn recording behind the same episode schema, with explicit batch sealing and duplicate-message protection.
|
|
67
|
+
- Added BrainEval episode grouping, boundary, evidence coverage, unassigned rate, candidate grounding, governance bypass, and Hermes import parity gates.
|
|
68
|
+
- Updated OpenClaw auto-memory plugin to 0.4.0, Hermes MCP allow-list repair, schema migration 22, package migration/update docs, and all agent-facing skills for the episode-first workflow.
|
|
69
|
+
|
|
70
|
+
## 3.4.0
|
|
71
|
+
|
|
72
|
+
- Added Strategy Cortex v1: deterministic current-turn strategy capsules select retrieval lanes, context-layer order, exact-source requirements, and bounded memory budgets before recall.
|
|
73
|
+
- Added one-retry deterministic replanning for intent/project changes, unmet source requirements, evidence conflict, and unsatisfied required-layer budgets. No online RL or multi-strategy generation is used.
|
|
74
|
+
- Added `COGMEM_STRATEGY_CONTEXT` with no instruction authority and full OpenClaw/Dream/Binding/reasoning-model hygiene so strategy metadata cannot become user evidence or durable memory.
|
|
75
|
+
- Added read-only `MemoryUseJudge`, project-scoped context outcome telemetry, offline diverse strategy selection, rollout comparison, and zero-tolerance context policy release gates.
|
|
76
|
+
- Added `cogmem strategy plan/outcomes`, `cogmem brain-eval --strategy-rollout` for precomputed offline outcomes, and read-only MCP `cogmem_strategy_plan` for agent inspection.
|
|
77
|
+
- Updated OpenClaw auto-memory plugin to 0.3.0 and Hermes MCP allow-list patching for `cogmem_strategy_plan`.
|
|
78
|
+
- Added schema migration 21 and extended `forgetUser(projectId)` to purge strategy outcome telemetry.
|
|
79
|
+
- Strategy/action separation is inspired by StraTA; Cogmem intentionally keeps online planning deterministic and performs multi-strategy comparison only on precomputed offline outcomes.
|
|
80
|
+
|
|
81
|
+
## 3.3.0
|
|
82
|
+
|
|
83
|
+
- Added confirmed-only Prospective Memory for intentions, commitments, reminders, open loops, and plans. Rejected items require new evidence to create a new version, and no execution/dispatch API exists.
|
|
84
|
+
- Added `cogmem prospective` candidate-state CLI and `cogmem brain-eval` safety/quality release gate.
|
|
85
|
+
- Added `cogmem_prospective` MCP state management with explicit project boundaries and distinct user confirmation evidence; it exposes no execution path.
|
|
86
|
+
- Added BrainEval metrics for recall, precision, provenance, budget compliance, stale/cross-project leakage, and unconfirmed prospective activation.
|
|
87
|
+
- Added schema migration 20 and completed the 2.8.0-3.3.0 cumulative migration path.
|
|
88
|
+
- Made migration backups transaction-consistent and WAL-aware through SQLite's native backup path.
|
|
89
|
+
- Extended `forgetUser(projectId)` across governance, entity, belief, temporal, context-receipt, and prospective projections, including shared canonical-alias rebuilding.
|
|
90
|
+
- Changed `cogmem update` to fail closed when GitHub has no latest-release metadata instead of silently installing mutable `main`.
|
|
91
|
+
|
|
92
|
+
## 3.2.0
|
|
93
|
+
|
|
94
|
+
- Added Context Cortex intent, safety suppression, layer activation, source-first drill-down, and a 25% default/30% maximum memory budget.
|
|
95
|
+
- Added persistent activation receipts that explain selected and suppressed memory IDs and reasons.
|
|
96
|
+
- Updated OpenClaw auto-memory plugin to 0.2.0: greetings skip memory, short continuations use only session state/turn bridge, and full recall is Cortex-filtered.
|
|
97
|
+
- Added schema migration 19.
|
|
98
|
+
|
|
99
|
+
## 3.1.0
|
|
100
|
+
|
|
101
|
+
- Added validity-window belief lookup and bounded project/entity timelines for milestones, decisions, corrections, and belief versions.
|
|
102
|
+
- Preserved correction reasons, evidence anchors, and supersession history while keeping current-state queries free of stale versions.
|
|
103
|
+
- Added schema migration 18 and public `TemporalMemoryService` access through `MemoryKernel`.
|
|
104
|
+
|
|
105
|
+
## 3.0.0
|
|
106
|
+
|
|
107
|
+
- Added an evidence-backed Belief Graph with ownership, versions, source roles, conflict records, and supersession chains.
|
|
108
|
+
- Enforced explicit user evidence for user-owned preferences, goals, boundaries, decisions, and facts; assistant/tool-only evidence is limited to project observations.
|
|
109
|
+
- Added deterministic reinforcement, correction, and contradiction behavior plus schema migration 17.
|
|
110
|
+
|
|
111
|
+
## 2.9.0
|
|
112
|
+
|
|
113
|
+
- Added evidence-backed, project-scoped entity merge candidates with stricter explicit-user-evidence requirements for person entities.
|
|
114
|
+
- Made entity merges reversible through alias, redirect, archive, and resolution-log operations; source entities are never destructively deleted.
|
|
115
|
+
- Unified Memory Binding entity IDs with canonical `EntityStore` identity and added schema migration 16.
|
|
116
|
+
|
|
117
|
+
## 2.8.0
|
|
118
|
+
|
|
119
|
+
- Added evidence-backed `MemoryGovernancePlan`, strict CPU validation, idempotency keys, project and ownership checks, transactional execution, and audit records. Missing raw evidence and assistant/tool-only user-owned memory are rejected before persistence.
|
|
120
|
+
- Added Memory Binding v1.5 primitives: `TopicPathRegistry`, `ClaimKeyGenerator`, `BindingDecisionEngine`, activation-aware weighted edges, and bounded read-only `BrainGraphView` traversal.
|
|
121
|
+
- Split graph edge confidence, stability, and activation so maintenance decay affects memory surfacing rather than historical truth or provenance.
|
|
122
|
+
- Added schema version 15 and `cogmem migrate` with dry-run, legacy schema adoption, idempotent migration tracking, and optional pre-migration database backup.
|
|
123
|
+
- Changed `cogmem update --yes` to resolve GitHub Releases, install the selected release, and invoke the newly installed schema migration command with backup enabled.
|
|
124
|
+
|
|
125
|
+
## 2.7.1
|
|
126
|
+
|
|
127
|
+
- Fixed OpenClaw Markdown role-boundary parsing for empty `user:` / `assistant:` headers with multiline bodies, preventing assistant self-correction text from being attached to the preceding user event. Adjacent exact duplicate exports are collapsed with an import diagnostic while non-adjacent repeats remain chronological evidence.
|
|
128
|
+
- Preserved source chronology from OpenClaw headings such as `# Session: 2026-06-06 14:00:43 UTC`; imported turns now use the session start as their ordered timestamp base instead of the downloaded file mtime.
|
|
129
|
+
- Changed Dream correction handling so explicit user clarifications become promoted organizational `correction` records instead of false `contradictions`; negative-form questions such as `是不是...` do not trigger correction classification. Assistant self-correction remains conversational evidence and cannot create a user-owned correction.
|
|
130
|
+
- Tightened model-proposed conflict candidates: they now require two or more distinct, exact raw event IDs from the current Dream window. Hallucinated IDs and `evidenceEventIds: ["all"]` are rejected instead of being rebound to unrelated window evidence.
|
|
131
|
+
- Rejected malformed memory-model output as observable non-fatal provider diagnostics instead of adding queue garbage to `needs_confirmation`; later successful provider runs supersede the diagnostic audit record.
|
|
132
|
+
- Added auditable review-queue aging to host-owned maintenance ticks. The default 30-day TTL marks stale `needs_confirmation` candidates `superseded` with a status reason while preserving all evidence rows.
|
|
133
|
+
- Added `agent_recall_decision.v1` traces to API, CLI, MCP, explain-recall, OpenClaw audit output, and volatile prompt context. Agent-scoped explain-recall now uses the same selected evidence path as normal agent recall.
|
|
134
|
+
- Fixed raw-ledger fallback so Chinese/non-FTS text recovery searches the fully scoped ledger instead of only a recent fixed window. Equal raw cue matches prefer the original user event, and past-memory queries prefer a cue-matching raw user anchor over a compiled assistant retelling.
|
|
135
|
+
- Bumped the core schema to version 14 for deep-write candidate `status_reason` and `updated_at` lifecycle metadata.
|
|
136
|
+
|
|
137
|
+
## 2.7.0
|
|
138
|
+
|
|
139
|
+
- Added Memory Binding v0: high-value user raw events are now deterministically bound to stable topic/entity paths such as `PROJECT/Cogmem/memory-write-pipeline` during agent turn recording. Bindings are source-anchored organization hints, not promoted facts or beliefs.
|
|
140
|
+
- Added Historical Binding, Cluster Fusion, and Graph Recall v1 on top of Memory Binding: same-topic user events now strengthen fused clusters, correction events create review-flagged correction clusters, and agent recall can follow binding graph anchors back to raw ledger evidence before falling back to vector/FTS paths.
|
|
141
|
+
- Added Graph Recall v1.1 stabilization: deterministic `BindingClassifier`, project alias/topic keyword routing, claim-key cluster IDs to avoid over-fusion, explicit `CORRECTS`/`CONTRADICTS` correction edges, query-aware graph anchor ranking, observable non-fatal binding failures, `cogmem memory bind` backfill for imported/raw events, and schema version 13 for binding sidecar tables.
|
|
142
|
+
- Added `MemoryKernel.listMemoryBindings()`, `MemoryKernel.listMemoryClusters()`, `MemoryKernel.listMemoryEdges()`, `MemoryKernel.bindRawEvents()`, `MemoryKernel.recallMemoryBindingGraph()`, and memory-map counters for binding, topic, entity, cluster, and edge organization so agents can inspect where important raw events are attached before relying on long-term compiled memory.
|
|
143
|
+
- Fixed `MemoryKernel.forgetUser(projectId)` to purge durable activation hotspots and memory bindings for the forgotten project, preventing stale memory-map and maintenance-tick exposure.
|
|
144
|
+
- Fixed `cogmem connect hermes --auto` so existing Hermes `cogmem-mcp` entries are updated with missing `cogmem_memory_map` and `cogmem_maintenance_tick` tool allow-list entries.
|
|
145
|
+
- Reviewed the bounded reasoning, tool schema, and Dream Curator prompt changes: Cogmem recall blocks, turn bridges, and session state remain evidence-only and cannot create durable user memory without explicit user evidence and CPU governance.
|
|
146
|
+
|
|
147
|
+
## 2.5.0
|
|
148
|
+
|
|
149
|
+
- Added explicit collection routing for agent recall so operational memory remains the default path while creative artifacts such as `collection:theseus` must be requested intentionally.
|
|
150
|
+
- Added `cogmem memory map` / MCP `cogmem_memory_map` for agent and host self-inspection of raw ledger, compiled memory, recall routes, maintenance surfaces, and safety bounds.
|
|
151
|
+
- Added `cogmem memory tick` / MCP `cogmem_maintenance_tick` for host-owned maintenance ticks with activation decay and upkeep suggestions, without starting hidden daemons.
|
|
152
|
+
- Added OpenClaw context hygiene safeguards: volatile `<COGMEM_RECALL_CONTEXT>`, compact `<COGMEM_TURN_BRIDGE>`, session-only `<COGMEM_SESSION_STATE>`, recall-block stripping before remember, user-only `selective_compile` signals, and current-session compiled-memory exclusion.
|
|
153
|
+
- Added labeled source-context replay metadata. Agent-facing `sourceContext` and `cogmem memory show --json` now expose per-event `label`, `textLength`, optional `charRange` / `sourceRange`, and strict before/after `window` metadata with anchor exclusion, chronological ordering, role filter, and overlap handling.
|
|
154
|
+
- Changed OpenClaw automatic memory injection to render `sourceWindow`, labeled `sourceBefore` / `sourceAfter`, and `sourceTruncation` metadata so agents can cross-reference injected memory with raw ledger drill-down before quoting exact text.
|
|
155
|
+
- Added raw source position propagation from imported source refs into raw ledger events when source offset, line range, or character range is available.
|
|
156
|
+
|
|
157
|
+
## 2.0.0
|
|
158
|
+
|
|
159
|
+
- Split the memory kernel into an independently installable core package for GitHub source distribution.
|
|
160
|
+
- Added a stable Cogmem home directory with TOML configuration at `~/.cogmem/config.toml`.
|
|
161
|
+
- Added `core.vector_dimension` for TOML-based embedding dimension configuration, including high-dimension warnings.
|
|
162
|
+
- Removed legacy env-file/global-env configuration entrypoints; TOML is now the only supported configuration surface.
|
|
163
|
+
- Added `cogmem init` and `cogmem doctor` for first-run setup and validation.
|
|
164
|
+
- Added `cogmem import-openclaw` and `cogmem import-hermes` for command-triggered migration from existing agent workspaces.
|
|
165
|
+
- Added `KernelAgentMemoryBackend` for external agent integrations.
|
|
166
|
+
- Routed `KernelAgentMemoryBackend.recall()` through universe navigation by default, with BrainRecall retained as fallback.
|
|
167
|
+
- Exported the pulse/universe retrieval orchestrators for advanced agent integrations.
|
|
168
|
+
- Added core-native OpenClaw and Hermes workspace profiles.
|
|
169
|
+
- Added agent-facing OpenClaw and Hermes runbooks under `examples/*-backend/AGENTS.md`.
|
|
170
|
+
- Added snapshot, vector backend, governance, PII redaction, and encryption release hardening.
|
|
171
|
+
- Added a GitHub-only release checklist; `npm pack --dry-run` is used for artifact verification, not npm publishing.
|
|
172
|
+
- Added Chronological Memory Ledger helpers for raw event replay, source anchors, sourceRefs, and recall explanation drill-down.
|
|
173
|
+
- Added JSON/JSONL/CSV/TSV normalization source anchors and agent lifecycle facade methods for tool calls, tool observations, and task events.
|
|
174
|
+
- Added `cogmem-normalize-transcript` for dry-run friendly transcript normalization into source-ref Markdown before import.
|
|
175
|
+
- Added `memory_natural_emergence` benchmark baselines for critical recall, old-important recall, stale/superseded/suspect leakage, cross-project leakage, provenance completeness, context budget efficiency, pulse expansion, and inhibition correctness.
|
|
176
|
+
- Added the unified `cogmem` CLI, `cogmem update`, `cogmem connect openclaw --auto`, and `cogmem doctor --fix --agent openclaw` so OpenClaw can install/repair an automatic recall and turn-recording wrapper without hand-editing runtime files.
|
|
177
|
+
- Added selective agent turn ingestion modes so OpenClaw/Hermes can preserve raw ledger evidence without embedding every conversation turn.
|
|
178
|
+
- Added raw ledger FTS search through `MemoryKernel.searchRawEvents()` for source discovery and cold recall without requiring per-sentence vectors.
|
|
179
|
+
- Added bounded agent-facing `raw_ledger_fallback` after governed compiled recall misses.
|
|
180
|
+
- Added dream backlog status helpers for `raw_then_dream` coverage tracking.
|
|
181
|
+
- Added `cogmem compact` and `cogmem doctor --storage` for vector-only storage diagnostics and safe compaction.
|
|
182
|
+
- Changed the OpenClaw automatic memory wrapper to queue `agent_end` remember jobs and drain them in the background, avoiding synchronous response blocking from slow embeddings or SQLite writes.
|
|
183
|
+
- Added best-effort OpenClaw lifecycle capture for tool calls, tool results, and task events when the host hook payload exposes them.
|
|
184
|
+
- Added operational noise suppression so heartbeat polls, `HEARTBEAT_OK`, and setup reminders remain auditable evidence but do not enter active agent context by default.
|
|
185
|
+
- Added session-aware and forensic recall intents for `KernelAgentMemoryBackend` and the OpenClaw auto-memory wrapper, separating current conversation context from retrieved history and requiring raw ledger anchors for exact wording.
|
|
186
|
+
- Added `compileAgentRecallQuery()` and `queryPlan` output for `KernelAgentMemoryBackend.recall()`, so long natural-language memory questions are distilled into bounded recall cues before semantic and raw-ledger lookup.
|
|
187
|
+
- Added forensic follow-up anchors (`anchorEventId` / `anchorText`) so adapters can answer "what were my exact words" from the previous raw source event instead of guessing from a vague query or imported summary.
|
|
188
|
+
- Added `cogmem memory` / `cogmem-memory` as a local audit console for status, raw ledger listing, raw text search, and event context drill-down.
|
|
189
|
+
- Added `MemoryKernel.runDreamCurator()` and `listDreamCandidates()` plus `cogmem memory dream` / `cogmem memory candidates` so `raw_then_dream` produces source-anchored candidate memories and an auditable governance queue without creating vectors or verified facts.
|
|
190
|
+
- Added explicit Memory Curator / Dream Worker model support through the existing TOML `[memory_model]` OpenAI-compatible role, including local Ollama or cloud endpoints. Model output is normalized into candidate-only governance records for user preferences, project memories, long-term goals, boundaries, failure lessons, diagnostics, summaries, temporal updates, and conflicts.
|
|
191
|
+
- Added dream curator schedule helpers for host-owned `manual`, `interval`, `daily`, and `continuous` workflows without starting a hidden core daemon.
|
|
192
|
+
- Added `semanticCuePhrases`, `temporalHints`, and `sourceContext` to agent-facing recall so wording-drift questions such as `记忆黑盒` can find older `存档位置属于黑盒` raw evidence and agents can drill down to exact raw ledger context.
|
|
193
|
+
- Added raw ledger anchors for imported OpenClaw/Hermes records so legacy memory files remain searchable through `cogmem memory search/show/recall` after curation while imported summaries stay `canAnswerExactQuote=false`.
|
|
194
|
+
- Added `cogmem import-openclaw --reindex-raw` / `cogmem import-hermes --reindex-raw` to backfill raw ledger anchors for records imported by older versions without duplicating compiled memory or hot vectors.
|
|
195
|
+
- Added `cogmem memory recall` as an agent-facing active memory search command using `KernelAgentMemoryBackend.recall()` with query plans and source context, so OpenClaw can query CogMem when automatic prompt injection is empty.
|
|
196
|
+
- Expanded the Memory Curator / Dream Worker with semantic tag, indexing decision, semantic relation, and edge-adjustment candidates for host-owned curation loops without directly mutating verified memory.
|
|
197
|
+
- Added `cogmem memory govern`, `cogmem memory dream --promote`, and `cogmem memory dream --watch` so hosts can run a supervised curation/governance loop without cron-only polling or unbounded candidate backlog.
|
|
198
|
+
- Added `KernelAgentMemoryBackend.recallPack()` with direct recall, associative graph/activation neighbors, entity cards, belief touches, and a charge vector for pre-answer agent context assembly.
|
|
199
|
+
- Added persistent activation tracking plus `MemoryKernel.runMaintenanceTick()` and `cogmem memory tick` for explicit host-owned upkeep suggestions without starting a hidden daemon.
|
|
200
|
+
- Added `MemoryKernel.buildMemoryMap()` and `cogmem memory map` so agents and hosts can inspect memory anatomy, data lanes, hard bounds, counters, and recommended commands.
|
|
201
|
+
- Added collection routing via `collection:<name>` tags and `--collection`, keeping `collection:theseus` creative artifacts out of default operational recall unless requested explicitly.
|
|
202
|
+
- Added MCP `collection` support for `cogmem_remember_turn`, `cogmem_recall`, and `cogmem_explain_recall`, plus new `cogmem_memory_map` and `cogmem_maintenance_tick` tools.
|
|
203
|
+
- Added CPU promotion handling for source-anchored summaries/preferences and semantic organization candidates while keeping uncertain claims in `needs_confirmation` and never upgrading them to verified facts automatically.
|
|
204
|
+
- Deduplicated Dream Curator provider warnings and supersede stale provider diagnostics after a later successful structured memory-model run.
|
|
205
|
+
- Added Hermes `state.db` import support for SQLite `messages` history, including explicit `--state-db`, automatic workspace-root discovery, source-anchored raw ledger records, and message timestamp precedence over `InsertTime`.
|
|
206
|
+
- Added Hermes JSONL session-export normalization for one-session-per-line objects with `messages[]`.
|
|
207
|
+
- Fixed semantic relation candidates so promoted records keep a readable `content.summary` instead of empty organization metadata.
|
|
208
|
+
- Fixed agent-facing raw fallback recall to retry host-neutral keyword cues and avoid returning duplicate user/assistant events from the same turn.
|
|
209
|
+
- Fixed the one-line installer so `curl | bash` starts `cogmem init` from `/dev/tty` instead of consuming an exhausted pipe.
|
|
210
|
+
- Fixed `cogmem update` so `latest` dynamically resolves the GitHub latest release payload instead of fabricating a nonexistent `releases/latest/download/cogmem.tgz` package URL.
|
|
211
|
+
- Fixed Hermes active recall when `vectors=0` by letting agent-facing recall fall back to source-anchored raw ledger evidence for imported Hermes records instead of filtering them out by source id.
|
|
212
|
+
- Fixed agent-facing recall quality when universe navigation returns non-matching compiled candidates by preferring raw ledger cue matches; inventory queries now expand into structured cues such as `库存管理`, `在库`, `产品コード`, and `数量`.
|
|
213
|
+
- Fixed MCP `cogmem_recall` to use the same agent-facing recall backend as `cogmem memory recall`, so project-only Hermes calls can return raw ledger fallback items with `sourceContext` instead of empty `items` when compiled evidence or vectors are absent.
|
|
214
|
+
- Fixed `cogmem memory status --json` to expose stable top-level `rawEvents`, `vectors`, `dreamedRawCount`, `undreamedRawCount`, and `dreamCoverageRate` fields.
|
|
215
|
+
- Fixed Hermes `state.db` and JSONL transcript timestamp handling for numeric epoch-second message timestamps, and added WAL-mode SQLite immutable read fallback for `state.db`.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Concurrent Access Contract
|
|
2
|
+
|
|
3
|
+
`cogmem` uses SQLite as the durable source of truth. The 2.0 vector backend keeps vectors in the same database file by default, so the same concurrency rules apply to memory, facts, embeddings, and vector rows.
|
|
4
|
+
|
|
5
|
+
## Supported
|
|
6
|
+
|
|
7
|
+
- Multiple readers may open the same database concurrently.
|
|
8
|
+
- One writer process may ingest, consolidate, re-embed, import snapshots, or run vector migrations at a time.
|
|
9
|
+
- `cogmem memory status` and `cogmem memory candidates` use a lightweight SQLite read-only/query-only connection and do not initialize a full kernel.
|
|
10
|
+
- Short-lived CLI readers such as `re-embed status` are safe while the kernel is running.
|
|
11
|
+
- SQLite busy timeout is set to 5000 ms for core-owned database handles.
|
|
12
|
+
|
|
13
|
+
## Not Supported
|
|
14
|
+
|
|
15
|
+
- Two writer kernels ingesting into the same database path at the same time.
|
|
16
|
+
- Running `importSnapshot()` against a started kernel. The API throws `KernelRunningError` before replacing a live database file.
|
|
17
|
+
- Running `migrate-vectors` while another process is writing embeddings or neurons.
|
|
18
|
+
- Sharing one `MemoryKernel` instance across workers without external serialization.
|
|
19
|
+
|
|
20
|
+
## Operational Guidance
|
|
21
|
+
|
|
22
|
+
- Use a single long-lived writer per database file.
|
|
23
|
+
- Let the OpenClaw/Hermes host own that writer. Run one maintenance writer at a time; do not overlap Dream, governance, import, migration, re-embedding, or repair jobs.
|
|
24
|
+
- Status/candidate inspection does not require stopping MCP. If a writer reports `SQLITE_BUSY`, wait for the active writer to finish instead of starting another full kernel.
|
|
25
|
+
- Use snapshot export/import for backups and promotion between environments.
|
|
26
|
+
- Run `cogmem migrate-vectors --db <memory.db> --dry-run` before migrating persisted embeddings into `vector_index`.
|
|
27
|
+
- Prefer `vectorBackend: 'sqlite-vec'` for durable local deployments. Use `vectorBackend: 'hnswlib'` only when you explicitly need the legacy in-memory index behavior.
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
## Setup
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
bun install
|
|
7
|
+
bun run typecheck
|
|
8
|
+
bun test
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Pull Request Gate
|
|
12
|
+
|
|
13
|
+
Before opening a pull request that changes core, run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
bun run build
|
|
17
|
+
bun run typecheck
|
|
18
|
+
bun test
|
|
19
|
+
npm pack --dry-run --json
|
|
20
|
+
npm publish --dry-run --access public
|
|
21
|
+
npm publish --access public
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`cogmem` is distributed through the npm registry. Use `npm pack --dry-run --json` to verify package contents, then `npm publish --dry-run --access public` before `npm publish --access public`. Keep the GitHub branch or release synchronized for source review and for older GitHub-installed users migrating onto the npm-first updater.
|
|
25
|
+
|
|
26
|
+
## API Discipline
|
|
27
|
+
|
|
28
|
+
Only explicitly exported symbols in `src/public.ts` are public. Do not re-export `src/internal.ts` from the package entrypoint.
|
|
29
|
+
|
|
30
|
+
## Adapter Changes
|
|
31
|
+
|
|
32
|
+
Agent-specific adapters must keep core independent from host runtimes. Prefer a narrow workspace profile plus fixture-backed tests over importing another runtime.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 liuqin164
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/MEMORY_ATLAS.md
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
# Memory Atlas v1
|
|
2
|
+
|
|
3
|
+
Memory Atlas lets an agent inspect what Cogmem remembers before it chooses a precise recall or Raw Ledger drilldown. It is a rebuildable navigation projection, not a new source of truth.
|
|
4
|
+
|
|
5
|
+
## Data model
|
|
6
|
+
|
|
7
|
+
Atlas projects existing project-scoped records into these node kinds:
|
|
8
|
+
|
|
9
|
+
- `project`, `topic`, `entity`, `cluster`, `episode`, `belief`, `action`, and `time`.
|
|
10
|
+
- Raw `event` nodes appear only for explicit evidence navigation.
|
|
11
|
+
- Action frames are extracted deterministically from raw user evidence and link actor, target, action kind, time, topic, project, and evidence.
|
|
12
|
+
|
|
13
|
+
Existing memory edges remain canonical. Atlas adds derived navigation edges such as `TARGETS`, `OCCURRED_IN`, and evidence drilldowns without changing the underlying belief or binding graph.
|
|
14
|
+
|
|
15
|
+
## Agent workflow
|
|
16
|
+
|
|
17
|
+
1. Use `graph_overview` when the user asks what is remembered.
|
|
18
|
+
2. Use `graph_explore` for broad history, project-state, or relationship questions.
|
|
19
|
+
3. Use `graph_search` when a topic/entity/cluster is already known.
|
|
20
|
+
4. Use `graph_node`, `graph_neighbors`, `graph_path`, or `graph_timeline` to narrow the graph. Timeline applies the available facets to any timestamped Atlas nodes; action frames are an optional richer result, not a requirement.
|
|
21
|
+
5. Use returned `eventId` values and `cogmem memory show` before quoting exact source text.
|
|
22
|
+
6. Use normal `cogmem_recall` for a direct factual memory question.
|
|
23
|
+
|
|
24
|
+
Atlas summaries are `hint_only_not_evidence` in effect. Project scope, raw evidence ownership, and governance still decide what may be claimed as durable memory.
|
|
25
|
+
|
|
26
|
+
## Faceted cold-memory resurrection
|
|
27
|
+
|
|
28
|
+
Activation controls default visibility, not existence. Maintenance decays Atlas activation deterministically; an explicit `cogmem_graph_touch` raises nodes that the agent actually used. Read-only overview/search/explore calls do not change ranking. A query can still surface a cold node when its available facets match.
|
|
29
|
+
|
|
30
|
+
Facets include project, time, topic, person/object, event, decision, correction, goal, preference, plan, action, and ordinary keywords. The engine combines the facets actually present in the message, similar to filtering multiple columns in a table. It does not require the fixed combination entity + time + action.
|
|
31
|
+
|
|
32
|
+
For example, all of these can revive cold memory:
|
|
33
|
+
|
|
34
|
+
- `2025 Hermes 的决策`
|
|
35
|
+
- `在留更新里被纠正过的计划`
|
|
36
|
+
- `去年 OpenClaw 失败的配置事件`
|
|
37
|
+
- `餐车 POS 项目中关于库存的偏好`
|
|
38
|
+
|
|
39
|
+
Exact constraints may bypass the visibility floor. They never bypass `projectId`, evidence validation, or traversal limits.
|
|
40
|
+
|
|
41
|
+
## Bounds
|
|
42
|
+
|
|
43
|
+
- Default/hard node limit: 8/30.
|
|
44
|
+
- Default/hard neighbor hops: 1/2.
|
|
45
|
+
- Default/hard evidence per node: 2/10.
|
|
46
|
+
- Maximum path length: 6 hops.
|
|
47
|
+
- Maximum visited nodes per path query: 2,000.
|
|
48
|
+
- Maximum query length: 1,000 characters.
|
|
49
|
+
- Raw excerpts are opt-in; evidence IDs and drilldown commands are always available.
|
|
50
|
+
|
|
51
|
+
Atlas works without vectors and without an LLM. Dream may later improve organization, but it cannot manufacture evidence.
|
|
52
|
+
|
|
53
|
+
BrainEval release fixtures fail closed on Atlas project isolation, node/hop bounds, evidence locators, path reconstruction, multi-facet cold-memory resurrection, and canonical-source immutability.
|
|
54
|
+
|
|
55
|
+
## CLI
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
cogmem memory graph --project <id> --json
|
|
59
|
+
cogmem memory graph-search --project <id> --query <query> --json
|
|
60
|
+
cogmem memory graph-explore --project <id> --query <query> --json
|
|
61
|
+
cogmem memory graph-node --project <id> --id <node-id> --json
|
|
62
|
+
cogmem memory graph-neighbors --project <id> --id <node-id> --hops 1 --json
|
|
63
|
+
cogmem memory graph-path --project <id> --from <node-id> --to <node-id> --json
|
|
64
|
+
cogmem memory graph-timeline --project <id> --query <query> --json
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
`graph-explore` and `graph-timeline` accept `--now <epoch-ms>` for deterministic relative-time parsing and `--evidence-limit <1..10>` for bounded evidence. Node results distinguish `evidenceTotal` from `evidenceReturned`.
|
|
68
|
+
|
|
69
|
+
Graph reads try to refresh dirty Atlas state, but they default to stale-safe operation for diagnostics. If refresh is blocked by SQLite busy, JSON includes `atlasFresh: false` and `refreshError` while returning the existing projection. Use `--refresh` to force a fresh rebuild or `--no-refresh` to inspect the current projection only.
|
|
70
|
+
|
|
71
|
+
## MCP
|
|
72
|
+
|
|
73
|
+
The canonical-memory-safe tools are:
|
|
74
|
+
|
|
75
|
+
- `cogmem_graph_overview`
|
|
76
|
+
- `cogmem_graph_search`
|
|
77
|
+
- `cogmem_graph_explore`
|
|
78
|
+
- `cogmem_graph_node`
|
|
79
|
+
- `cogmem_graph_neighbors`
|
|
80
|
+
- `cogmem_graph_path`
|
|
81
|
+
- `cogmem_graph_timeline`
|
|
82
|
+
- `cogmem_graph_touch`
|
|
83
|
+
|
|
84
|
+
The seven query tools never rewrite Raw Ledger, topics, beliefs, episodes,
|
|
85
|
+
evidence, or activation. MCP declares them read-only and idempotent. An agent
|
|
86
|
+
may call `cogmem_graph_touch` after it actually selects/uses returned nodes;
|
|
87
|
+
that explicit telemetry operation changes visibility only.
|
|
88
|
+
|
|
89
|
+
Hermes and other hookless agents use these through MCP. They still need `cogmem_episode_append` or `cogmem_episode_import` because Cogmem cannot observe their conversation automatically.
|
|
90
|
+
|
|
91
|
+
OpenClaw uses the same core service through its direct plugin bridge. Broad questions inject a bounded volatile `<COGMEM_MEMORY_ATLAS>` block; that block is stripped before the turn is remembered. MCP is not required for OpenClaw.
|
|
92
|
+
|
|
93
|
+
## Migration and repair
|
|
94
|
+
|
|
95
|
+
Upgrade an existing 3.5.2 database with:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
cogmem migrate --yes --backup --json
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Migration 0025 creates and backfills the disposable projection. Migration 0026 adds exact memory-kind metadata, projection health, and candidate-review audit state. Migration 0027 corrects 3.6.0-upgraded databases by marking Atlas projections dirty until the real action/time rebuild runs. A 3.5.2 schema-24 database, an existing 3.6.0 schema-26 database, or a pre-release schema-25 test database reaches the 3.6.1 schema-27 state with the same command. `cogmem memory tick` refreshes only dirty projects, records rebuild errors, prunes old access telemetry, and decays navigation activation without starting a daemon.
|