cognitive-core 0.0.2 → 0.1.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/.claude/settings.json +88 -0
- package/.claude/settings.local.json +11 -0
- package/.entire/settings.json +4 -0
- package/README.md +563 -107
- package/SKILL.md +193 -0
- package/dist/agents/index.d.ts +3 -0
- package/dist/agents/index.d.ts.map +1 -0
- package/dist/agents/index.js +5 -0
- package/dist/agents/index.js.map +1 -0
- package/dist/agents/mock-provider.d.ts +23 -0
- package/dist/agents/mock-provider.d.ts.map +1 -0
- package/dist/agents/mock-provider.js +71 -0
- package/dist/agents/mock-provider.js.map +1 -0
- package/dist/agents/types.d.ts +98 -0
- package/dist/agents/types.d.ts.map +1 -0
- package/dist/agents/types.js +44 -0
- package/dist/agents/types.js.map +1 -0
- package/dist/atlas.d.ts +334 -0
- package/dist/atlas.d.ts.map +1 -0
- package/dist/atlas.js +702 -0
- package/dist/atlas.js.map +1 -0
- package/dist/bin/cognitive-core.d.ts +18 -0
- package/dist/bin/cognitive-core.d.ts.map +1 -0
- package/dist/bin/cognitive-core.js +419 -0
- package/dist/bin/cognitive-core.js.map +1 -0
- package/dist/embeddings/bm25.d.ts +104 -0
- package/dist/embeddings/bm25.d.ts.map +1 -0
- package/dist/embeddings/bm25.js +264 -0
- package/dist/embeddings/bm25.js.map +1 -0
- package/dist/embeddings/index.d.ts +12 -0
- package/dist/embeddings/index.d.ts.map +1 -0
- package/dist/embeddings/index.js +16 -0
- package/dist/embeddings/index.js.map +1 -0
- package/dist/embeddings/manager.d.ts +112 -0
- package/dist/embeddings/manager.d.ts.map +1 -0
- package/dist/embeddings/manager.js +215 -0
- package/dist/embeddings/manager.js.map +1 -0
- package/dist/embeddings/provider.d.ts +101 -0
- package/dist/embeddings/provider.d.ts.map +1 -0
- package/dist/embeddings/provider.js +235 -0
- package/dist/embeddings/provider.js.map +1 -0
- package/dist/embeddings/vector-store.d.ts +101 -0
- package/dist/embeddings/vector-store.d.ts.map +1 -0
- package/dist/embeddings/vector-store.js +256 -0
- package/dist/embeddings/vector-store.js.map +1 -0
- package/dist/factory.d.ts +193 -0
- package/dist/factory.d.ts.map +1 -0
- package/dist/factory.js +109 -0
- package/dist/factory.js.map +1 -0
- package/dist/index.d.ts +32 -453
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +115 -509
- package/dist/index.js.map +1 -0
- package/dist/learning/analyzer.d.ts +110 -0
- package/dist/learning/analyzer.d.ts.map +1 -0
- package/dist/learning/analyzer.js +213 -0
- package/dist/learning/analyzer.js.map +1 -0
- package/dist/learning/effectiveness.d.ts +158 -0
- package/dist/learning/effectiveness.d.ts.map +1 -0
- package/dist/learning/effectiveness.js +251 -0
- package/dist/learning/effectiveness.js.map +1 -0
- package/dist/learning/index.d.ts +12 -0
- package/dist/learning/index.d.ts.map +1 -0
- package/dist/learning/index.js +17 -0
- package/dist/learning/index.js.map +1 -0
- package/dist/learning/knowledge-extractor.d.ts +56 -0
- package/dist/learning/knowledge-extractor.d.ts.map +1 -0
- package/dist/learning/knowledge-extractor.js +336 -0
- package/dist/learning/knowledge-extractor.js.map +1 -0
- package/dist/learning/llm-extractor.d.ts +88 -0
- package/dist/learning/llm-extractor.d.ts.map +1 -0
- package/dist/learning/llm-extractor.js +372 -0
- package/dist/learning/llm-extractor.js.map +1 -0
- package/dist/learning/meta-learner.d.ts +87 -0
- package/dist/learning/meta-learner.d.ts.map +1 -0
- package/dist/learning/meta-learner.js +398 -0
- package/dist/learning/meta-learner.js.map +1 -0
- package/dist/learning/pipeline.d.ts +89 -0
- package/dist/learning/pipeline.d.ts.map +1 -0
- package/dist/learning/pipeline.js +236 -0
- package/dist/learning/pipeline.js.map +1 -0
- package/dist/learning/playbook-extractor.d.ts +113 -0
- package/dist/learning/playbook-extractor.d.ts.map +1 -0
- package/dist/learning/playbook-extractor.js +523 -0
- package/dist/learning/playbook-extractor.js.map +1 -0
- package/dist/learning/team-ingester.d.ts +152 -0
- package/dist/learning/team-ingester.d.ts.map +1 -0
- package/dist/learning/team-ingester.js +333 -0
- package/dist/learning/team-ingester.js.map +1 -0
- package/dist/learning/team-meta-learner.d.ts +50 -0
- package/dist/learning/team-meta-learner.d.ts.map +1 -0
- package/dist/learning/team-meta-learner.js +417 -0
- package/dist/learning/team-meta-learner.js.map +1 -0
- package/dist/learning/team-pipeline.d.ts +76 -0
- package/dist/learning/team-pipeline.d.ts.map +1 -0
- package/dist/learning/team-pipeline.js +266 -0
- package/dist/learning/team-pipeline.js.map +1 -0
- package/dist/learning/trajectory-sources/dataclaw.d.ts +41 -0
- package/dist/learning/trajectory-sources/dataclaw.d.ts.map +1 -0
- package/dist/learning/trajectory-sources/dataclaw.js +330 -0
- package/dist/learning/trajectory-sources/dataclaw.js.map +1 -0
- package/dist/learning/trajectory-sources/entire.d.ts +28 -0
- package/dist/learning/trajectory-sources/entire.d.ts.map +1 -0
- package/dist/learning/trajectory-sources/entire.js +182 -0
- package/dist/learning/trajectory-sources/entire.js.map +1 -0
- package/dist/learning/trajectory-sources/file.d.ts +23 -0
- package/dist/learning/trajectory-sources/file.d.ts.map +1 -0
- package/dist/learning/trajectory-sources/file.js +101 -0
- package/dist/learning/trajectory-sources/file.js.map +1 -0
- package/dist/learning/trajectory-sources/huggingface.d.ts +36 -0
- package/dist/learning/trajectory-sources/huggingface.d.ts.map +1 -0
- package/dist/learning/trajectory-sources/huggingface.js +157 -0
- package/dist/learning/trajectory-sources/huggingface.js.map +1 -0
- package/dist/learning/trajectory-sources/in-memory.d.ts +21 -0
- package/dist/learning/trajectory-sources/in-memory.d.ts.map +1 -0
- package/dist/learning/trajectory-sources/in-memory.js +43 -0
- package/dist/learning/trajectory-sources/in-memory.js.map +1 -0
- package/dist/learning/trajectory-sources/index.d.ts +7 -0
- package/dist/learning/trajectory-sources/index.d.ts.map +1 -0
- package/dist/learning/trajectory-sources/index.js +7 -0
- package/dist/learning/trajectory-sources/index.js.map +1 -0
- package/dist/learning/trajectory-sources/pipeline.d.ts +24 -0
- package/dist/learning/trajectory-sources/pipeline.d.ts.map +1 -0
- package/dist/learning/trajectory-sources/pipeline.js +47 -0
- package/dist/learning/trajectory-sources/pipeline.js.map +1 -0
- package/dist/learning/usage-inference.d.ts +82 -0
- package/dist/learning/usage-inference.d.ts.map +1 -0
- package/dist/learning/usage-inference.js +261 -0
- package/dist/learning/usage-inference.js.map +1 -0
- package/dist/mcp/index.d.ts +6 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +6 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/mcp/playbook-server.d.ts +120 -0
- package/dist/mcp/playbook-server.d.ts.map +1 -0
- package/dist/mcp/playbook-server.js +427 -0
- package/dist/mcp/playbook-server.js.map +1 -0
- package/dist/memory/curated-loader.d.ts +62 -0
- package/dist/memory/curated-loader.d.ts.map +1 -0
- package/dist/memory/curated-loader.js +106 -0
- package/dist/memory/curated-loader.js.map +1 -0
- package/dist/memory/experience.d.ts +122 -0
- package/dist/memory/experience.d.ts.map +1 -0
- package/dist/memory/experience.js +392 -0
- package/dist/memory/experience.js.map +1 -0
- package/dist/memory/graph-layers/base.d.ts +29 -0
- package/dist/memory/graph-layers/base.d.ts.map +1 -0
- package/dist/memory/graph-layers/base.js +143 -0
- package/dist/memory/graph-layers/base.js.map +1 -0
- package/dist/memory/graph-layers/causal.d.ts +14 -0
- package/dist/memory/graph-layers/causal.d.ts.map +1 -0
- package/dist/memory/graph-layers/causal.js +14 -0
- package/dist/memory/graph-layers/causal.js.map +1 -0
- package/dist/memory/graph-layers/entity.d.ts +14 -0
- package/dist/memory/graph-layers/entity.d.ts.map +1 -0
- package/dist/memory/graph-layers/entity.js +14 -0
- package/dist/memory/graph-layers/entity.js.map +1 -0
- package/dist/memory/graph-layers/index.d.ts +6 -0
- package/dist/memory/graph-layers/index.d.ts.map +1 -0
- package/dist/memory/graph-layers/index.js +6 -0
- package/dist/memory/graph-layers/index.js.map +1 -0
- package/dist/memory/graph-layers/semantic.d.ts +14 -0
- package/dist/memory/graph-layers/semantic.d.ts.map +1 -0
- package/dist/memory/graph-layers/semantic.js +14 -0
- package/dist/memory/graph-layers/semantic.js.map +1 -0
- package/dist/memory/graph-layers/temporal.d.ts +14 -0
- package/dist/memory/graph-layers/temporal.d.ts.map +1 -0
- package/dist/memory/graph-layers/temporal.js +14 -0
- package/dist/memory/graph-layers/temporal.js.map +1 -0
- package/dist/memory/index.d.ts +14 -0
- package/dist/memory/index.d.ts.map +1 -0
- package/dist/memory/index.js +19 -0
- package/dist/memory/index.js.map +1 -0
- package/dist/memory/knowledge-bank.d.ts +220 -0
- package/dist/memory/knowledge-bank.d.ts.map +1 -0
- package/dist/memory/knowledge-bank.js +1003 -0
- package/dist/memory/knowledge-bank.js.map +1 -0
- package/dist/memory/knowledge-defrag.d.ts +49 -0
- package/dist/memory/knowledge-defrag.d.ts.map +1 -0
- package/dist/memory/knowledge-defrag.js +257 -0
- package/dist/memory/knowledge-defrag.js.map +1 -0
- package/dist/memory/knowledge-graph.d.ts +41 -0
- package/dist/memory/knowledge-graph.d.ts.map +1 -0
- package/dist/memory/knowledge-graph.js +273 -0
- package/dist/memory/knowledge-graph.js.map +1 -0
- package/dist/memory/meta.d.ts +90 -0
- package/dist/memory/meta.d.ts.map +1 -0
- package/dist/memory/meta.js +362 -0
- package/dist/memory/meta.js.map +1 -0
- package/dist/memory/playbook.d.ts +133 -0
- package/dist/memory/playbook.d.ts.map +1 -0
- package/dist/memory/playbook.js +357 -0
- package/dist/memory/playbook.js.map +1 -0
- package/dist/memory/search-provider.d.ts +31 -0
- package/dist/memory/search-provider.d.ts.map +1 -0
- package/dist/memory/search-provider.js +2 -0
- package/dist/memory/search-provider.js.map +1 -0
- package/dist/memory/search-providers/index.d.ts +3 -0
- package/dist/memory/search-providers/index.d.ts.map +1 -0
- package/dist/memory/search-providers/index.js +3 -0
- package/dist/memory/search-providers/index.js.map +1 -0
- package/dist/memory/search-providers/minimem.d.ts +43 -0
- package/dist/memory/search-providers/minimem.d.ts.map +1 -0
- package/dist/memory/search-providers/minimem.js +56 -0
- package/dist/memory/search-providers/minimem.js.map +1 -0
- package/dist/memory/search-providers/text-similarity.d.ts +15 -0
- package/dist/memory/search-providers/text-similarity.d.ts.map +1 -0
- package/dist/memory/search-providers/text-similarity.js +21 -0
- package/dist/memory/search-providers/text-similarity.js.map +1 -0
- package/dist/memory/skill-exporter.d.ts +75 -0
- package/dist/memory/skill-exporter.d.ts.map +1 -0
- package/dist/memory/skill-exporter.js +248 -0
- package/dist/memory/skill-exporter.js.map +1 -0
- package/dist/memory/system.d.ts +179 -0
- package/dist/memory/system.d.ts.map +1 -0
- package/dist/memory/system.js +421 -0
- package/dist/memory/system.js.map +1 -0
- package/dist/memory/team-experience.d.ts +298 -0
- package/dist/memory/team-experience.d.ts.map +1 -0
- package/dist/memory/team-experience.js +355 -0
- package/dist/memory/team-experience.js.map +1 -0
- package/dist/runtime/backends/acp-protocol.d.ts +49 -0
- package/dist/runtime/backends/acp-protocol.d.ts.map +1 -0
- package/dist/runtime/backends/acp-protocol.js +166 -0
- package/dist/runtime/backends/acp-protocol.js.map +1 -0
- package/dist/runtime/backends/acp.d.ts +67 -0
- package/dist/runtime/backends/acp.d.ts.map +1 -0
- package/dist/runtime/backends/acp.js +166 -0
- package/dist/runtime/backends/acp.js.map +1 -0
- package/dist/runtime/backends/index.d.ts +7 -0
- package/dist/runtime/backends/index.d.ts.map +1 -0
- package/dist/runtime/backends/index.js +8 -0
- package/dist/runtime/backends/index.js.map +1 -0
- package/dist/runtime/backends/macro-agent.d.ts +104 -0
- package/dist/runtime/backends/macro-agent.d.ts.map +1 -0
- package/dist/runtime/backends/macro-agent.js +107 -0
- package/dist/runtime/backends/macro-agent.js.map +1 -0
- package/dist/runtime/backends/mock.d.ts +67 -0
- package/dist/runtime/backends/mock.d.ts.map +1 -0
- package/dist/runtime/backends/mock.js +153 -0
- package/dist/runtime/backends/mock.js.map +1 -0
- package/dist/runtime/backends/subprocess.d.ts +56 -0
- package/dist/runtime/backends/subprocess.d.ts.map +1 -0
- package/dist/runtime/backends/subprocess.js +260 -0
- package/dist/runtime/backends/subprocess.js.map +1 -0
- package/dist/runtime/compute-provider.d.ts +87 -0
- package/dist/runtime/compute-provider.d.ts.map +1 -0
- package/dist/runtime/compute-provider.js +87 -0
- package/dist/runtime/compute-provider.js.map +1 -0
- package/dist/runtime/flows/learning.d.ts +73 -0
- package/dist/runtime/flows/learning.d.ts.map +1 -0
- package/dist/runtime/flows/learning.js +116 -0
- package/dist/runtime/flows/learning.js.map +1 -0
- package/dist/runtime/flows/validation.d.ts +122 -0
- package/dist/runtime/flows/validation.d.ts.map +1 -0
- package/dist/runtime/flows/validation.js +223 -0
- package/dist/runtime/flows/validation.js.map +1 -0
- package/dist/runtime/index.d.ts +7 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +10 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/runtime/manager.d.ts +149 -0
- package/dist/runtime/manager.d.ts.map +1 -0
- package/dist/runtime/manager.js +535 -0
- package/dist/runtime/manager.js.map +1 -0
- package/dist/runtime/types.d.ts +176 -0
- package/dist/runtime/types.d.ts.map +1 -0
- package/dist/runtime/types.js +2 -0
- package/dist/runtime/types.js.map +1 -0
- package/dist/search/evaluator.d.ts +109 -0
- package/dist/search/evaluator.d.ts.map +1 -0
- package/dist/search/evaluator.js +372 -0
- package/dist/search/evaluator.js.map +1 -0
- package/dist/search/index.d.ts +8 -0
- package/dist/search/index.d.ts.map +1 -0
- package/dist/search/index.js +13 -0
- package/dist/search/index.js.map +1 -0
- package/dist/search/refinement-loop.d.ts +90 -0
- package/dist/search/refinement-loop.d.ts.map +1 -0
- package/dist/search/refinement-loop.js +316 -0
- package/dist/search/refinement-loop.js.map +1 -0
- package/dist/search/refinement-types.d.ts +154 -0
- package/dist/search/refinement-types.d.ts.map +1 -0
- package/dist/search/refinement-types.js +99 -0
- package/dist/search/refinement-types.js.map +1 -0
- package/dist/search/router.d.ts +61 -0
- package/dist/search/router.d.ts.map +1 -0
- package/dist/search/router.js +197 -0
- package/dist/search/router.js.map +1 -0
- package/dist/search/solver.d.ts +75 -0
- package/dist/search/solver.d.ts.map +1 -0
- package/dist/search/solver.js +216 -0
- package/dist/search/solver.js.map +1 -0
- package/dist/search/team-router.d.ts +91 -0
- package/dist/search/team-router.d.ts.map +1 -0
- package/dist/search/team-router.js +315 -0
- package/dist/search/team-router.js.map +1 -0
- package/dist/search/verification-runner.d.ts +125 -0
- package/dist/search/verification-runner.d.ts.map +1 -0
- package/dist/search/verification-runner.js +440 -0
- package/dist/search/verification-runner.js.map +1 -0
- package/dist/session-bank/git-reader.d.ts +39 -0
- package/dist/session-bank/git-reader.d.ts.map +1 -0
- package/dist/session-bank/git-reader.js +165 -0
- package/dist/session-bank/git-reader.js.map +1 -0
- package/dist/session-bank/index.d.ts +5 -0
- package/dist/session-bank/index.d.ts.map +1 -0
- package/dist/session-bank/index.js +4 -0
- package/dist/session-bank/index.js.map +1 -0
- package/dist/session-bank/parser.d.ts +39 -0
- package/dist/session-bank/parser.d.ts.map +1 -0
- package/dist/session-bank/parser.js +231 -0
- package/dist/session-bank/parser.js.map +1 -0
- package/dist/session-bank/session-bank.d.ts +35 -0
- package/dist/session-bank/session-bank.d.ts.map +1 -0
- package/dist/session-bank/session-bank.js +326 -0
- package/dist/session-bank/session-bank.js.map +1 -0
- package/dist/session-bank/types.d.ts +129 -0
- package/dist/session-bank/types.d.ts.map +1 -0
- package/dist/session-bank/types.js +7 -0
- package/dist/session-bank/types.js.map +1 -0
- package/dist/surfacing/index.d.ts +6 -0
- package/dist/surfacing/index.d.ts.map +1 -0
- package/dist/surfacing/index.js +5 -0
- package/dist/surfacing/index.js.map +1 -0
- package/dist/surfacing/publisher.d.ts +22 -0
- package/dist/surfacing/publisher.d.ts.map +1 -0
- package/dist/surfacing/publisher.js +9 -0
- package/dist/surfacing/publisher.js.map +1 -0
- package/dist/surfacing/skill-library.d.ts +170 -0
- package/dist/surfacing/skill-library.d.ts.map +1 -0
- package/dist/surfacing/skill-library.js +455 -0
- package/dist/surfacing/skill-library.js.map +1 -0
- package/dist/surfacing/skill-publisher.d.ts +43 -0
- package/dist/surfacing/skill-publisher.d.ts.map +1 -0
- package/dist/surfacing/skill-publisher.js +197 -0
- package/dist/surfacing/skill-publisher.js.map +1 -0
- package/dist/surfacing/sqlite-storage-adapter.d.ts +42 -0
- package/dist/surfacing/sqlite-storage-adapter.d.ts.map +1 -0
- package/dist/surfacing/sqlite-storage-adapter.js +207 -0
- package/dist/surfacing/sqlite-storage-adapter.js.map +1 -0
- package/dist/surfacing/team-skill-library.d.ts +180 -0
- package/dist/surfacing/team-skill-library.d.ts.map +1 -0
- package/dist/surfacing/team-skill-library.js +384 -0
- package/dist/surfacing/team-skill-library.js.map +1 -0
- package/dist/types/config.d.ts +2287 -0
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +490 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/dataclaw.d.ts +286 -0
- package/dist/types/dataclaw.d.ts.map +1 -0
- package/dist/types/dataclaw.js +84 -0
- package/dist/types/dataclaw.js.map +1 -0
- package/dist/types/index.d.ts +16 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +26 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/knowledge-graph.d.ts +148 -0
- package/dist/types/knowledge-graph.d.ts.map +1 -0
- package/dist/types/knowledge-graph.js +40 -0
- package/dist/types/knowledge-graph.js.map +1 -0
- package/dist/types/knowledge.d.ts +280 -0
- package/dist/types/knowledge.d.ts.map +1 -0
- package/dist/types/knowledge.js +191 -0
- package/dist/types/knowledge.js.map +1 -0
- package/dist/types/memory.d.ts +339 -0
- package/dist/types/memory.d.ts.map +1 -0
- package/dist/types/memory.js +207 -0
- package/dist/types/memory.js.map +1 -0
- package/dist/types/meta.d.ts +146 -0
- package/dist/types/meta.d.ts.map +1 -0
- package/dist/types/meta.js +51 -0
- package/dist/types/meta.js.map +1 -0
- package/dist/types/outcome.d.ts +42 -0
- package/dist/types/outcome.d.ts.map +1 -0
- package/dist/types/outcome.js +50 -0
- package/dist/types/outcome.js.map +1 -0
- package/dist/types/playbook.d.ts +119 -0
- package/dist/types/playbook.d.ts.map +1 -0
- package/dist/types/playbook.js +71 -0
- package/dist/types/playbook.js.map +1 -0
- package/dist/types/step.d.ts +44 -0
- package/dist/types/step.d.ts.map +1 -0
- package/dist/types/step.js +32 -0
- package/dist/types/step.js.map +1 -0
- package/dist/types/task.d.ts +91 -0
- package/dist/types/task.d.ts.map +1 -0
- package/dist/types/task.js +39 -0
- package/dist/types/task.js.map +1 -0
- package/dist/types/team-meta.d.ts +160 -0
- package/dist/types/team-meta.d.ts.map +1 -0
- package/dist/types/team-meta.js +42 -0
- package/dist/types/team-meta.js.map +1 -0
- package/dist/types/team-playbook.d.ts +276 -0
- package/dist/types/team-playbook.d.ts.map +1 -0
- package/dist/types/team-playbook.js +85 -0
- package/dist/types/team-playbook.js.map +1 -0
- package/dist/types/team-trajectory.d.ts +305 -0
- package/dist/types/team-trajectory.d.ts.map +1 -0
- package/dist/types/team-trajectory.js +304 -0
- package/dist/types/team-trajectory.js.map +1 -0
- package/dist/types/trajectory-source.d.ts +39 -0
- package/dist/types/trajectory-source.d.ts.map +1 -0
- package/dist/types/trajectory-source.js +2 -0
- package/dist/types/trajectory-source.js.map +1 -0
- package/dist/types/trajectory.d.ts +221 -0
- package/dist/types/trajectory.d.ts.map +1 -0
- package/dist/types/trajectory.js +60 -0
- package/dist/types/trajectory.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +34 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +93 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +5 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/similarity.d.ts +31 -0
- package/dist/utils/similarity.d.ts.map +1 -0
- package/dist/utils/similarity.js +107 -0
- package/dist/utils/similarity.js.map +1 -0
- package/dist/utils/storage.d.ts +106 -0
- package/dist/utils/storage.d.ts.map +1 -0
- package/dist/utils/storage.js +203 -0
- package/dist/utils/storage.js.map +1 -0
- package/dist/utils/validation.d.ts +129 -0
- package/dist/utils/validation.d.ts.map +1 -0
- package/dist/utils/validation.js +171 -0
- package/dist/utils/validation.js.map +1 -0
- package/dist/workspace/index.d.ts +6 -0
- package/dist/workspace/index.d.ts.map +1 -0
- package/dist/workspace/index.js +11 -0
- package/dist/workspace/index.js.map +1 -0
- package/dist/workspace/runner.d.ts +50 -0
- package/dist/workspace/runner.d.ts.map +1 -0
- package/dist/workspace/runner.js +219 -0
- package/dist/workspace/runner.js.map +1 -0
- package/dist/workspace/skill-converter.d.ts +18 -0
- package/dist/workspace/skill-converter.d.ts.map +1 -0
- package/dist/workspace/skill-converter.js +257 -0
- package/dist/workspace/skill-converter.js.map +1 -0
- package/dist/workspace/templates/index.d.ts +11 -0
- package/dist/workspace/templates/index.d.ts.map +1 -0
- package/dist/workspace/templates/index.js +21 -0
- package/dist/workspace/templates/index.js.map +1 -0
- package/dist/workspace/templates/knowledge-defrag.d.ts +25 -0
- package/dist/workspace/templates/knowledge-defrag.d.ts.map +1 -0
- package/dist/workspace/templates/knowledge-defrag.js +154 -0
- package/dist/workspace/templates/knowledge-defrag.js.map +1 -0
- package/dist/workspace/templates/knowledge-extraction.d.ts +25 -0
- package/dist/workspace/templates/knowledge-extraction.d.ts.map +1 -0
- package/dist/workspace/templates/knowledge-extraction.js +246 -0
- package/dist/workspace/templates/knowledge-extraction.js.map +1 -0
- package/dist/workspace/templates/meta-reflection.d.ts +47 -0
- package/dist/workspace/templates/meta-reflection.d.ts.map +1 -0
- package/dist/workspace/templates/meta-reflection.js +135 -0
- package/dist/workspace/templates/meta-reflection.js.map +1 -0
- package/dist/workspace/templates/playbook-extraction.d.ts +20 -0
- package/dist/workspace/templates/playbook-extraction.d.ts.map +1 -0
- package/dist/workspace/templates/playbook-extraction.js +189 -0
- package/dist/workspace/templates/playbook-extraction.js.map +1 -0
- package/dist/workspace/templates/refinement-analysis.d.ts +31 -0
- package/dist/workspace/templates/refinement-analysis.d.ts.map +1 -0
- package/dist/workspace/templates/refinement-analysis.js +107 -0
- package/dist/workspace/templates/refinement-analysis.js.map +1 -0
- package/dist/workspace/templates/solution-evaluation.d.ts +21 -0
- package/dist/workspace/templates/solution-evaluation.d.ts.map +1 -0
- package/dist/workspace/templates/solution-evaluation.js +131 -0
- package/dist/workspace/templates/solution-evaluation.js.map +1 -0
- package/dist/workspace/templates/team-playbook-extraction.d.ts +44 -0
- package/dist/workspace/templates/team-playbook-extraction.d.ts.map +1 -0
- package/dist/workspace/templates/team-playbook-extraction.js +497 -0
- package/dist/workspace/templates/team-playbook-extraction.js.map +1 -0
- package/dist/workspace/templates/team-trajectory-analysis.d.ts +19 -0
- package/dist/workspace/templates/team-trajectory-analysis.d.ts.map +1 -0
- package/dist/workspace/templates/team-trajectory-analysis.js +442 -0
- package/dist/workspace/templates/team-trajectory-analysis.js.map +1 -0
- package/dist/workspace/templates/trajectory-analysis.d.ts +19 -0
- package/dist/workspace/templates/trajectory-analysis.d.ts.map +1 -0
- package/dist/workspace/templates/trajectory-analysis.js +170 -0
- package/dist/workspace/templates/trajectory-analysis.js.map +1 -0
- package/dist/workspace/templates/usage-inference.d.ts +19 -0
- package/dist/workspace/templates/usage-inference.d.ts.map +1 -0
- package/dist/workspace/templates/usage-inference.js +125 -0
- package/dist/workspace/templates/usage-inference.js.map +1 -0
- package/dist/workspace/types.d.ts +145 -0
- package/dist/workspace/types.d.ts.map +1 -0
- package/dist/workspace/types.js +17 -0
- package/dist/workspace/types.js.map +1 -0
- package/docs/DESIGN-agentic-workspace.md +2057 -0
- package/docs/DESIGN-semantic-memory-knowledge-bank.md +1789 -0
- package/docs/DESIGN-session-bank.md +1134 -0
- package/docs/DESIGN-team-extraction-pipeline.md +1369 -0
- package/docs/DESIGN-workspace-migration.md +1079 -0
- package/docs/PLAN-agentic-workspace-implementation.md +717 -0
- package/docs/PLAN-graph-migration.md +299 -0
- package/docs/PLAN-session-bank-implementation.md +474 -0
- package/docs/PROPOSAL-team-aware-learning.md +1080 -0
- package/docs/RESEARCH-semantic-memory-knowledge-structures.md +517 -0
- package/docs/RESEARCH-team-trajectory-learning.md +553 -0
- package/gaps.md +204 -0
- package/package.json +67 -33
- package/references/agent-workspace/CLAUDE.md +74 -0
- package/references/agent-workspace/README.md +587 -0
- package/references/agent-workspace/media/banner.png +0 -0
- package/references/agent-workspace/package-lock.json +2061 -0
- package/references/agent-workspace/package.json +54 -0
- package/references/agent-workspace/src/handle.ts +122 -0
- package/references/agent-workspace/src/index.ts +32 -0
- package/references/agent-workspace/src/manager.ts +102 -0
- package/references/agent-workspace/src/readers/json.ts +71 -0
- package/references/agent-workspace/src/readers/markdown.ts +37 -0
- package/references/agent-workspace/src/readers/raw.ts +27 -0
- package/references/agent-workspace/src/types.ts +68 -0
- package/references/agent-workspace/src/validation.ts +93 -0
- package/references/agent-workspace/src/writers/json.ts +17 -0
- package/references/agent-workspace/src/writers/markdown.ts +27 -0
- package/references/agent-workspace/src/writers/raw.ts +22 -0
- package/references/agent-workspace/tests/errors.test.ts +652 -0
- package/references/agent-workspace/tests/handle.test.ts +144 -0
- package/references/agent-workspace/tests/manager.test.ts +124 -0
- package/references/agent-workspace/tests/readers.test.ts +205 -0
- package/references/agent-workspace/tests/validation.test.ts +196 -0
- package/references/agent-workspace/tests/writers.test.ts +108 -0
- package/references/agent-workspace/tsconfig.json +20 -0
- package/references/agent-workspace/tsup.config.ts +9 -0
- package/references/minimem/.claude/settings.json +7 -0
- package/references/minimem/.sudocode/issues.jsonl +18 -0
- package/references/minimem/.sudocode/specs.jsonl +1 -0
- package/references/minimem/CLAUDE.md +310 -0
- package/references/minimem/README.md +556 -0
- package/references/minimem/claude-plugin/.claude-plugin/plugin.json +10 -0
- package/references/minimem/claude-plugin/.mcp.json +7 -0
- package/references/minimem/claude-plugin/README.md +158 -0
- package/references/minimem/claude-plugin/commands/recall.md +47 -0
- package/references/minimem/claude-plugin/commands/remember.md +41 -0
- package/references/minimem/claude-plugin/hooks/__tests__/hooks.test.ts +272 -0
- package/references/minimem/claude-plugin/hooks/hooks.json +27 -0
- package/references/minimem/claude-plugin/hooks/session-end.sh +86 -0
- package/references/minimem/claude-plugin/hooks/session-start.sh +85 -0
- package/references/minimem/claude-plugin/skills/memory/SKILL.md +108 -0
- package/references/minimem/package-lock.json +5373 -0
- package/references/minimem/package.json +60 -0
- package/references/minimem/scripts/postbuild.js +35 -0
- package/references/minimem/src/__tests__/edge-cases.test.ts +371 -0
- package/references/minimem/src/__tests__/errors.test.ts +265 -0
- package/references/minimem/src/__tests__/helpers.ts +199 -0
- package/references/minimem/src/__tests__/internal.test.ts +407 -0
- package/references/minimem/src/__tests__/knowledge.test.ts +287 -0
- package/references/minimem/src/__tests__/minimem.integration.test.ts +1127 -0
- package/references/minimem/src/__tests__/session.test.ts +190 -0
- package/references/minimem/src/cli/__tests__/commands.test.ts +759 -0
- package/references/minimem/src/cli/commands/__tests__/conflicts.test.ts +141 -0
- package/references/minimem/src/cli/commands/append.ts +76 -0
- package/references/minimem/src/cli/commands/config.ts +262 -0
- package/references/minimem/src/cli/commands/conflicts.ts +413 -0
- package/references/minimem/src/cli/commands/daemon.ts +169 -0
- package/references/minimem/src/cli/commands/index.ts +12 -0
- package/references/minimem/src/cli/commands/init.ts +88 -0
- package/references/minimem/src/cli/commands/mcp.ts +177 -0
- package/references/minimem/src/cli/commands/push-pull.ts +213 -0
- package/references/minimem/src/cli/commands/search.ts +158 -0
- package/references/minimem/src/cli/commands/status.ts +84 -0
- package/references/minimem/src/cli/commands/sync-init.ts +290 -0
- package/references/minimem/src/cli/commands/sync.ts +70 -0
- package/references/minimem/src/cli/commands/upsert.ts +197 -0
- package/references/minimem/src/cli/config.ts +584 -0
- package/references/minimem/src/cli/index.ts +264 -0
- package/references/minimem/src/cli/shared.ts +161 -0
- package/references/minimem/src/cli/sync/__tests__/central.test.ts +152 -0
- package/references/minimem/src/cli/sync/__tests__/conflicts.test.ts +209 -0
- package/references/minimem/src/cli/sync/__tests__/daemon.test.ts +118 -0
- package/references/minimem/src/cli/sync/__tests__/detection.test.ts +207 -0
- package/references/minimem/src/cli/sync/__tests__/integration.test.ts +476 -0
- package/references/minimem/src/cli/sync/__tests__/registry.test.ts +363 -0
- package/references/minimem/src/cli/sync/__tests__/state.test.ts +255 -0
- package/references/minimem/src/cli/sync/__tests__/validation.test.ts +193 -0
- package/references/minimem/src/cli/sync/__tests__/watcher.test.ts +178 -0
- package/references/minimem/src/cli/sync/central.ts +292 -0
- package/references/minimem/src/cli/sync/conflicts.ts +204 -0
- package/references/minimem/src/cli/sync/daemon.ts +407 -0
- package/references/minimem/src/cli/sync/detection.ts +138 -0
- package/references/minimem/src/cli/sync/index.ts +107 -0
- package/references/minimem/src/cli/sync/operations.ts +373 -0
- package/references/minimem/src/cli/sync/registry.ts +279 -0
- package/references/minimem/src/cli/sync/state.ts +355 -0
- package/references/minimem/src/cli/sync/validation.ts +206 -0
- package/references/minimem/src/cli/sync/watcher.ts +234 -0
- package/references/minimem/src/cli/version.ts +34 -0
- package/references/minimem/src/core/index.ts +9 -0
- package/references/minimem/src/core/indexer.ts +628 -0
- package/references/minimem/src/core/searcher.ts +221 -0
- package/references/minimem/src/db/schema.ts +183 -0
- package/references/minimem/src/db/sqlite-vec.ts +24 -0
- package/references/minimem/src/embeddings/__tests__/embeddings.test.ts +431 -0
- package/references/minimem/src/embeddings/batch-gemini.ts +392 -0
- package/references/minimem/src/embeddings/batch-openai.ts +409 -0
- package/references/minimem/src/embeddings/embeddings.ts +434 -0
- package/references/minimem/src/index.ts +109 -0
- package/references/minimem/src/internal.ts +299 -0
- package/references/minimem/src/minimem.ts +1276 -0
- package/references/minimem/src/search/__tests__/hybrid.test.ts +247 -0
- package/references/minimem/src/search/graph.ts +234 -0
- package/references/minimem/src/search/hybrid.ts +151 -0
- package/references/minimem/src/search/search.ts +256 -0
- package/references/minimem/src/server/__tests__/mcp.test.ts +341 -0
- package/references/minimem/src/server/__tests__/tools.test.ts +364 -0
- package/references/minimem/src/server/mcp.ts +326 -0
- package/references/minimem/src/server/tools.ts +720 -0
- package/references/minimem/src/session.ts +460 -0
- package/references/minimem/tsconfig.json +19 -0
- package/references/minimem/tsup.config.ts +26 -0
- package/references/minimem/vitest.config.ts +24 -0
- package/references/skill-tree/.claude/settings.json +6 -0
- package/references/skill-tree/.sudocode/issues.jsonl +11 -0
- package/references/skill-tree/.sudocode/specs.jsonl +1 -0
- package/references/skill-tree/CLAUDE.md +150 -0
- package/references/skill-tree/README.md +324 -0
- package/references/skill-tree/docs/GAPS_v1.md +221 -0
- package/references/skill-tree/docs/INTEGRATION_PLAN.md +467 -0
- package/references/skill-tree/docs/TODOS.md +91 -0
- package/references/skill-tree/docs/anthropic_skill_guide.md +1364 -0
- package/references/skill-tree/docs/design/federated-skill-trees.md +524 -0
- package/references/skill-tree/docs/design/multi-agent-sync.md +759 -0
- package/references/skill-tree/docs/scraper/BRAINSTORM.md +583 -0
- package/references/skill-tree/docs/scraper/POC_PLAN.md +420 -0
- package/references/skill-tree/docs/scraper/README.md +170 -0
- package/references/skill-tree/examples/basic-usage.ts +190 -0
- package/references/skill-tree/package-lock.json +1509 -0
- package/references/skill-tree/package.json +66 -0
- package/references/skill-tree/scraper/README.md +123 -0
- package/references/skill-tree/scraper/docs/DESIGN.md +683 -0
- package/references/skill-tree/scraper/docs/PLAN.md +336 -0
- package/references/skill-tree/scraper/drizzle.config.ts +10 -0
- package/references/skill-tree/scraper/package-lock.json +6329 -0
- package/references/skill-tree/scraper/package.json +68 -0
- package/references/skill-tree/scraper/test/fixtures/invalid-skill/missing-description.md +7 -0
- package/references/skill-tree/scraper/test/fixtures/invalid-skill/missing-name.md +7 -0
- package/references/skill-tree/scraper/test/fixtures/minimal-skill/SKILL.md +27 -0
- package/references/skill-tree/scraper/test/fixtures/skill-json/SKILL.json +21 -0
- package/references/skill-tree/scraper/test/fixtures/skill-with-meta/SKILL.md +54 -0
- package/references/skill-tree/scraper/test/fixtures/skill-with-meta/_meta.json +24 -0
- package/references/skill-tree/scraper/test/fixtures/valid-skill/SKILL.md +93 -0
- package/references/skill-tree/scraper/test/fixtures/valid-skill/_meta.json +22 -0
- package/references/skill-tree/scraper/tsup.config.ts +14 -0
- package/references/skill-tree/scraper/vitest.config.ts +17 -0
- package/references/skill-tree/scripts/convert-to-vitest.ts +166 -0
- package/references/skill-tree/skills/skill-writer/SKILL.md +339 -0
- package/references/skill-tree/skills/skill-writer/references/examples.md +326 -0
- package/references/skill-tree/skills/skill-writer/references/patterns.md +210 -0
- package/references/skill-tree/skills/skill-writer/references/quality-checklist.md +123 -0
- package/references/skill-tree/test/run-all.ts +106 -0
- package/references/skill-tree/test/utils.ts +128 -0
- package/references/skill-tree/vitest.config.ts +16 -0
- package/scripts/migrate-to-playbooks.ts +307 -0
- package/src/agents/index.ts +14 -0
- package/src/agents/mock-provider.ts +93 -0
- package/src/agents/types.ts +137 -0
- package/src/atlas.ts +1072 -0
- package/src/bin/cognitive-core.ts +470 -0
- package/src/embeddings/bm25.ts +337 -0
- package/src/embeddings/index.ts +39 -0
- package/src/embeddings/manager.ts +288 -0
- package/src/embeddings/provider.ts +318 -0
- package/src/embeddings/vector-store.ts +353 -0
- package/src/factory.ts +263 -0
- package/src/index.ts +368 -0
- package/src/learning/analyzer.ts +335 -0
- package/src/learning/effectiveness.ts +428 -0
- package/src/learning/index.ts +93 -0
- package/src/learning/knowledge-extractor.ts +470 -0
- package/src/learning/meta-learner.ts +570 -0
- package/src/learning/pipeline.ts +323 -0
- package/src/learning/playbook-extractor.ts +702 -0
- package/src/learning/team-ingester.ts +499 -0
- package/src/learning/team-meta-learner.ts +558 -0
- package/src/learning/team-pipeline.ts +364 -0
- package/src/learning/trajectory-sources/dataclaw.ts +403 -0
- package/src/learning/trajectory-sources/entire.ts +240 -0
- package/src/learning/trajectory-sources/file.ts +136 -0
- package/src/learning/trajectory-sources/huggingface.ts +248 -0
- package/src/learning/trajectory-sources/in-memory.ts +61 -0
- package/src/learning/trajectory-sources/index.ts +15 -0
- package/src/learning/trajectory-sources/pipeline.ts +69 -0
- package/src/learning/usage-inference.ts +372 -0
- package/src/mcp/index.ts +12 -0
- package/src/mcp/playbook-server.ts +565 -0
- package/src/memory/curated-loader.ts +160 -0
- package/src/memory/experience.ts +515 -0
- package/src/memory/graph-layers/base.ts +184 -0
- package/src/memory/graph-layers/causal.ts +16 -0
- package/src/memory/graph-layers/entity.ts +16 -0
- package/src/memory/graph-layers/index.ts +5 -0
- package/src/memory/graph-layers/semantic.ts +16 -0
- package/src/memory/graph-layers/temporal.ts +16 -0
- package/src/memory/index.ts +72 -0
- package/src/memory/knowledge-bank.ts +1260 -0
- package/src/memory/knowledge-defrag.ts +329 -0
- package/src/memory/knowledge-graph.ts +361 -0
- package/src/memory/meta.ts +506 -0
- package/src/memory/playbook.ts +493 -0
- package/src/memory/search-provider.ts +35 -0
- package/src/memory/search-providers/index.ts +3 -0
- package/src/memory/search-providers/minimem.ts +84 -0
- package/src/memory/search-providers/text-similarity.ts +35 -0
- package/src/memory/skill-exporter.ts +357 -0
- package/src/memory/system.ts +604 -0
- package/src/memory/team-experience.ts +604 -0
- package/src/runtime/backends/acp-protocol.ts +231 -0
- package/src/runtime/backends/acp.ts +239 -0
- package/src/runtime/backends/index.ts +38 -0
- package/src/runtime/backends/macro-agent.ts +177 -0
- package/src/runtime/backends/mock.ts +218 -0
- package/src/runtime/backends/subprocess.ts +356 -0
- package/src/runtime/compute-provider.ts +206 -0
- package/src/runtime/flows/learning.ts +183 -0
- package/src/runtime/flows/validation.ts +381 -0
- package/src/runtime/index.ts +75 -0
- package/src/runtime/manager.ts +685 -0
- package/src/runtime/types.ts +198 -0
- package/src/search/evaluator.ts +499 -0
- package/src/search/index.ts +68 -0
- package/src/search/refinement-loop.ts +457 -0
- package/src/search/refinement-types.ts +159 -0
- package/src/search/router.ts +261 -0
- package/src/search/solver.ts +303 -0
- package/src/search/team-router.ts +459 -0
- package/src/search/verification-runner.ts +570 -0
- package/src/session-bank/git-reader.ts +190 -0
- package/src/session-bank/index.ts +24 -0
- package/src/session-bank/parser.ts +366 -0
- package/src/session-bank/session-bank.ts +464 -0
- package/src/session-bank/types.ts +173 -0
- package/src/surfacing/index.ts +29 -0
- package/src/surfacing/publisher.ts +23 -0
- package/src/surfacing/skill-library.ts +625 -0
- package/src/surfacing/skill-publisher.ts +223 -0
- package/src/surfacing/sqlite-storage-adapter.ts +301 -0
- package/src/surfacing/team-skill-library.ts +610 -0
- package/src/types/config.ts +585 -0
- package/src/types/dataclaw.ts +99 -0
- package/src/types/huggingface-transformers.d.ts +12 -0
- package/src/types/index.ts +286 -0
- package/src/types/knowledge-graph.ts +246 -0
- package/src/types/knowledge.ts +388 -0
- package/src/types/memory.ts +270 -0
- package/src/types/meta.ts +218 -0
- package/src/types/outcome.ts +66 -0
- package/src/types/playbook.ts +196 -0
- package/src/types/step.ts +40 -0
- package/src/types/task.ts +52 -0
- package/src/types/team-meta.ts +212 -0
- package/src/types/team-playbook.ts +384 -0
- package/src/types/team-trajectory.ts +673 -0
- package/src/types/trajectory-source.ts +47 -0
- package/src/types/trajectory.ts +80 -0
- package/src/utils/frontmatter.ts +118 -0
- package/src/utils/index.ts +45 -0
- package/src/utils/similarity.ts +139 -0
- package/src/utils/storage.ts +249 -0
- package/src/utils/validation.ts +286 -0
- package/src/workspace/index.ts +48 -0
- package/src/workspace/runner.ts +281 -0
- package/src/workspace/skill-converter.ts +288 -0
- package/src/workspace/templates/index.ts +64 -0
- package/src/workspace/templates/knowledge-defrag.ts +223 -0
- package/src/workspace/templates/knowledge-extraction.ts +337 -0
- package/src/workspace/templates/meta-reflection.ts +208 -0
- package/src/workspace/templates/playbook-extraction.ts +240 -0
- package/src/workspace/templates/refinement-analysis.ts +162 -0
- package/src/workspace/templates/solution-evaluation.ts +199 -0
- package/src/workspace/templates/team-playbook-extraction.ts +631 -0
- package/src/workspace/templates/team-trajectory-analysis.ts +564 -0
- package/src/workspace/templates/trajectory-analysis.ts +234 -0
- package/src/workspace/templates/usage-inference.ts +163 -0
- package/src/workspace/types.ts +233 -0
- package/tests/atlas-knowledge.test.ts +165 -0
- package/tests/embeddings/bm25.test.ts +130 -0
- package/tests/embeddings/manager.test.ts +205 -0
- package/tests/gap-fixes.test.ts +1103 -0
- package/tests/integration/atlas.test.ts +266 -0
- package/tests/integration/dataclaw-e2e.test.ts +559 -0
- package/tests/integration/e2e.test.ts +1336 -0
- package/tests/integration/entire-e2e.test.ts +187 -0
- package/tests/integration/huggingface-e2e.test.ts +627 -0
- package/tests/integration/session-bank.test.ts +225 -0
- package/tests/integration/skill-tree-wiring.test.ts +152 -0
- package/tests/learning/analyzer.test.ts +426 -0
- package/tests/learning/dataclaw-trajectory-source.test.ts +642 -0
- package/tests/learning/effectiveness.test.ts +542 -0
- package/tests/learning/entire-trajectory-source.test.ts +380 -0
- package/tests/learning/huggingface-trajectory-source.test.ts +817 -0
- package/tests/learning/knowledge-extractor.test.ts +491 -0
- package/tests/learning/pipeline.test.ts +176 -0
- package/tests/learning/playbook-extractor-provenance.test.ts +114 -0
- package/tests/learning/team-ingester.test.ts +349 -0
- package/tests/learning/team-meta-learner.test.ts +618 -0
- package/tests/learning/team-pipeline.test.ts +334 -0
- package/tests/learning/trajectory-sources.test.ts +312 -0
- package/tests/learning/usage-inference.test.ts +254 -0
- package/tests/mcp/playbook-server.test.ts +252 -0
- package/tests/memory/experience.test.ts +198 -0
- package/tests/memory/graph-layers/semantic.test.ts +219 -0
- package/tests/memory/knowledge-bank-extraction.test.ts +558 -0
- package/tests/memory/knowledge-bank.test.ts +705 -0
- package/tests/memory/knowledge-defrag.test.ts +366 -0
- package/tests/memory/knowledge-evolution.test.ts +563 -0
- package/tests/memory/knowledge-graph.test.ts +492 -0
- package/tests/memory/knowledge-inbox.test.ts +258 -0
- package/tests/memory/knowledge-minimem.test.ts +251 -0
- package/tests/memory/playbook.test.ts +338 -0
- package/tests/memory/provenance.test.ts +639 -0
- package/tests/memory/skill-exporter.test.ts +470 -0
- package/tests/memory/system.test.ts +325 -0
- package/tests/memory/team-experience.test.ts +411 -0
- package/tests/runtime/agent-manager.test.ts +512 -0
- package/tests/runtime/compute-provider.test.ts +288 -0
- package/tests/runtime/delegate.test.ts +349 -0
- package/tests/runtime/macro-agent-backend.test.ts +266 -0
- package/tests/runtime/mock-backend.test.ts +248 -0
- package/tests/search/refinement-loop.test.ts +468 -0
- package/tests/search/refinement.test.ts +267 -0
- package/tests/search/router.test.ts +427 -0
- package/tests/search/team-router.test.ts +376 -0
- package/tests/session-bank/fixtures/multi-tool-session/full.jsonl +12 -0
- package/tests/session-bank/fixtures/multi-tool-session/metadata.json +28 -0
- package/tests/session-bank/fixtures/root-metadata.json +18 -0
- package/tests/session-bank/fixtures/simple-session/full.jsonl +6 -0
- package/tests/session-bank/fixtures/simple-session/metadata.json +38 -0
- package/tests/session-bank/git-reader.test.ts +232 -0
- package/tests/session-bank/parser.test.ts +321 -0
- package/tests/session-bank/session-bank.test.ts +546 -0
- package/tests/surfacing/skill-library.test.ts +292 -0
- package/tests/surfacing/skill-publisher.test.ts +398 -0
- package/tests/surfacing/sqlite-storage-adapter.test.ts +218 -0
- package/tests/surfacing/team-skill-library.test.ts +444 -0
- package/tests/types/outcome.test.ts +147 -0
- package/tests/types/step.test.ts +133 -0
- package/tests/types/task.test.ts +158 -0
- package/tests/types/team-meta.test.ts +147 -0
- package/tests/types/team-playbook.test.ts +246 -0
- package/tests/types/team-trajectory.test.ts +557 -0
- package/tests/types/trajectory.test.ts +253 -0
- package/tests/utils/frontmatter.test.ts +208 -0
- package/tests/utils/similarity.test.ts +188 -0
- package/tests/utils/validation.test.ts +252 -0
- package/tests/workspace/full-flow.test.ts +839 -0
- package/tests/workspace/manager.test.ts +215 -0
- package/tests/workspace/runner.test.ts +330 -0
- package/tests/workspace/skill-converter.test.ts +205 -0
- package/tests/workspace/templates/knowledge-extraction.test.ts +235 -0
- package/tests/workspace/templates/team-playbook-extraction.test.ts +341 -0
- package/tests/workspace/templates/team-trajectory-analysis.test.ts +417 -0
- package/tsconfig.json +25 -0
- package/vitest.config.ts +22 -0
- package/dist/index.d.mts +0 -466
- package/dist/index.mjs +0 -478
|
@@ -0,0 +1,517 @@
|
|
|
1
|
+
# Research: Semantic Memory & Knowledge Structures for AI Agents
|
|
2
|
+
|
|
3
|
+
> **Date**: 2026-02-18
|
|
4
|
+
> **Purpose**: Survey of recent (2025+) research on semantic memory, knowledge graphs, and structured knowledge banks for AI agents. Compiled as inspiration for cognitive-core's knowledge bank design.
|
|
5
|
+
|
|
6
|
+
## Table of Contents
|
|
7
|
+
|
|
8
|
+
1. [Surveys & Taxonomies](#1-surveys--taxonomies)
|
|
9
|
+
2. [Zettelkasten & Structured Note Systems](#2-zettelkasten--structured-note-systems)
|
|
10
|
+
3. [Knowledge Graph Architectures](#3-knowledge-graph-architectures)
|
|
11
|
+
4. [Event-Centric & Hierarchical Memory](#4-event-centric--hierarchical-memory)
|
|
12
|
+
5. [Memory Consolidation & Organization](#5-memory-consolidation--organization)
|
|
13
|
+
6. [Graph-Based Retrieval](#6-graph-based-retrieval)
|
|
14
|
+
7. [Additional Notable Work](#7-additional-notable-work)
|
|
15
|
+
8. [Synthesis: Key Themes Across Papers](#8-synthesis-key-themes-across-papers)
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## 1. Surveys & Taxonomies
|
|
20
|
+
|
|
21
|
+
### 1.1 Memory in the Age of AI Agents (Dec 2025)
|
|
22
|
+
|
|
23
|
+
> Hu et al. (46 co-authors) — [arxiv.org/abs/2512.13564](https://arxiv.org/abs/2512.13564)
|
|
24
|
+
|
|
25
|
+
The most comprehensive survey on agent memory to date. Proposes a unified functional taxonomy that maps closely to cognitive science categories.
|
|
26
|
+
|
|
27
|
+
**Memory taxonomy:**
|
|
28
|
+
|
|
29
|
+
| Memory Type | Function | What It Stores | Cognitive Analog |
|
|
30
|
+
|---|---|---|---|
|
|
31
|
+
| **Factual / Semantic** | Declarative knowledge | Facts, concepts, relationships | Semantic memory |
|
|
32
|
+
| **Experiential / Episodic** | Event recall | Specific past experiences | Episodic memory |
|
|
33
|
+
| **Procedural / Skill** | How-to knowledge | Reusable strategies, workflows | Procedural memory |
|
|
34
|
+
| **Working** | Active processing | Current task context | Working memory |
|
|
35
|
+
|
|
36
|
+
**Memory lifecycle** (applies to all types):
|
|
37
|
+
1. **Formation** — How memories are created (extraction from experience, explicit encoding)
|
|
38
|
+
2. **Evolution** — How memories change over time (consolidation, refinement, forgetting)
|
|
39
|
+
3. **Retrieval** — How memories are accessed (similarity search, graph traversal, structured lookup)
|
|
40
|
+
|
|
41
|
+
**Key insight for cognitive-core:** The survey emphasizes that real-world agent systems need all three long-term memory types working together. Most existing systems only implement one or two. The lifecycle model (formation → evolution → retrieval) is universal — cognitive-core already applies it to playbooks, and the same pattern should extend to semantic memory.
|
|
42
|
+
|
|
43
|
+
**Identified gaps in current systems:**
|
|
44
|
+
- Most systems store memories as flat text with vector search — no structural organization
|
|
45
|
+
- Few systems handle contradiction detection or memory evolution
|
|
46
|
+
- Cross-memory-type integration (e.g., linking facts to procedures) is largely unexplored
|
|
47
|
+
- Scalability of memory systems beyond toy benchmarks is under-studied
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
### 1.2 Survey on Memory Mechanisms of LLM-based Agents (2025)
|
|
52
|
+
|
|
53
|
+
> ACM Transactions on Intelligent Systems and Technology — [dl.acm.org/doi/10.1145/3748302](https://dl.acm.org/doi/10.1145/3748302)
|
|
54
|
+
|
|
55
|
+
Complements the above survey with focus on implementation mechanisms. Categorizes memory systems by:
|
|
56
|
+
|
|
57
|
+
- **Storage format**: Raw text, structured records, knowledge graphs, vector embeddings
|
|
58
|
+
- **Access pattern**: Sequential scan, similarity search, graph traversal, structured query
|
|
59
|
+
- **Update mechanism**: Append-only, overwrite, merge/consolidate, version
|
|
60
|
+
|
|
61
|
+
**Relevance:** Validates the hybrid approach (file-based storage + graph overlay + semantic search) as the most flexible architecture. No single storage format or access pattern dominates — the best systems combine multiple.
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
## 2. Zettelkasten & Structured Note Systems
|
|
66
|
+
|
|
67
|
+
### 2.1 A-MEM: Agentic Memory for LLM Agents (Feb 2025, NeurIPS 2025)
|
|
68
|
+
|
|
69
|
+
> [arxiv.org/abs/2502.12110](https://arxiv.org/abs/2502.12110)
|
|
70
|
+
|
|
71
|
+
**The most directly relevant architecture for cognitive-core's knowledge bank.** A-MEM organizes agent memory as interconnected "notes" inspired by the Zettelkasten slip-box method.
|
|
72
|
+
|
|
73
|
+
**Note structure:**
|
|
74
|
+
Each memory unit is a note containing:
|
|
75
|
+
- Unique identifier
|
|
76
|
+
- Content (the core information)
|
|
77
|
+
- Creation timestamp
|
|
78
|
+
- Contextual descriptions, keywords, and tags
|
|
79
|
+
- Sentence-BERT embedding for semantic similarity
|
|
80
|
+
- Bidirectional links to related notes (forward links + backlinks)
|
|
81
|
+
|
|
82
|
+
**Memory creation process:**
|
|
83
|
+
1. Agent encounters new information during interaction
|
|
84
|
+
2. Extract key facts from observations
|
|
85
|
+
3. Generate embeddings for semantic matching
|
|
86
|
+
4. Create new notes when content is sufficiently novel (below similarity threshold)
|
|
87
|
+
5. Route notes into existing hierarchy or establish new branches
|
|
88
|
+
|
|
89
|
+
Critically, the LLM decides **what warrants storage** — not everything is stored. This agentic decision-making prevents memory bloat.
|
|
90
|
+
|
|
91
|
+
**Linking algorithm:**
|
|
92
|
+
- Similarity-based connections: new note embeddings compared against existing notes
|
|
93
|
+
- Bidirectional relationships: forward links + backlinks for context preservation
|
|
94
|
+
- Hierarchical organization: notes cluster into topic-based groups with parent-child relationships
|
|
95
|
+
- Traversal-based reasoning: agents follow links during reasoning without sequential search
|
|
96
|
+
|
|
97
|
+
**Historical memory updates (append-only with linking):**
|
|
98
|
+
When new memories arrive:
|
|
99
|
+
1. Identify semantically related historical notes via embedding similarity
|
|
100
|
+
2. Flag conflicting or outdated information
|
|
101
|
+
3. Create additional links rather than replacing existing notes
|
|
102
|
+
4. Preserve temporal metadata for lineage tracking
|
|
103
|
+
|
|
104
|
+
This append-only approach maintains information lineage while preventing catastrophic forgetting.
|
|
105
|
+
|
|
106
|
+
**Agentic memory management:**
|
|
107
|
+
The LLM is delegated decisions about:
|
|
108
|
+
- **What to store**: Agent decides whether observations merit persistent memory
|
|
109
|
+
- **How to organize**: System suggests linking patterns; agent validates
|
|
110
|
+
- **When to consolidate**: Periodic review identifies redundant/contradictory notes for merging
|
|
111
|
+
|
|
112
|
+
**Benchmark results across 6 foundation models:**
|
|
113
|
+
- Tested on: DeepSeek, Claude 3, Claude 3.5, and three additional models
|
|
114
|
+
- 15-35% improvement over baselines on multi-turn tasks
|
|
115
|
+
- Smaller models (7B) benefited most (25-40% improvement)
|
|
116
|
+
- Larger models showed diminishing but still significant returns (5-15%)
|
|
117
|
+
- Benchmarks: DialSim (dialogue), web navigation, evolving-context QA
|
|
118
|
+
|
|
119
|
+
**Comparison with baselines:**
|
|
120
|
+
- vs. MemGPT: 12-18% higher scores; MemGPT's truncation causes information loss
|
|
121
|
+
- vs. MemoryBank (standard RAG without linking): 8-22% gap
|
|
122
|
+
- vs. Chain-of-Thought without persistence: 30-45% gap on multi-session tasks
|
|
123
|
+
- Bidirectional linking reduced search time ~60% vs. linear retrieval
|
|
124
|
+
- Agentic control reduced hallucinations from irrelevant context by 25%
|
|
125
|
+
|
|
126
|
+
**What we take from this:**
|
|
127
|
+
- The structured note format with frontmatter (id, tags, links, confidence) directly inspires our `KnowledgeNote` design
|
|
128
|
+
- Bidirectional linking is essential — our graph overlay captures this
|
|
129
|
+
- Append-only with linking (rather than overwrite) is the right evolution model
|
|
130
|
+
- Agentic decision about what to store maps to our dual-path model (extraction pipeline + agent direct writes)
|
|
131
|
+
- The periodic consolidation review maps to our defragmentation process
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## 3. Knowledge Graph Architectures
|
|
136
|
+
|
|
137
|
+
### 3.1 MAGMA: Multi-Graph Agentic Memory Architecture (Jan 2026)
|
|
138
|
+
|
|
139
|
+
> [arxiv.org/abs/2601.03236](https://arxiv.org/abs/2601.03236)
|
|
140
|
+
|
|
141
|
+
MAGMA argues that a single graph is insufficient — different query types need different graph structures. It decomposes memory into **four orthogonal graph layers**:
|
|
142
|
+
|
|
143
|
+
| Graph Layer | What It Captures | Edge Semantics | Example Query |
|
|
144
|
+
|---|---|---|---|
|
|
145
|
+
| **Semantic** | Conceptual relationships | "is-a", "part-of", "uses" | "What technologies does React depend on?" |
|
|
146
|
+
| **Temporal** | When things happened/changed | "before", "after", "during" | "What changed after upgrading to v5?" |
|
|
147
|
+
| **Causal** | Cause-and-effect chains | "caused", "enabled", "broke" | "Why did the build fail after that PR?" |
|
|
148
|
+
| **Entity** | Object/agent/component tracking | "owns", "created-by", "interacts-with" | "What components does this service touch?" |
|
|
149
|
+
|
|
150
|
+
**Key innovation — policy-guided graph traversal:**
|
|
151
|
+
Rather than embedding-based vector search, MAGMA uses learned traversal policies. The agent navigates relationships through the graph structure, deciding at each node which edges to follow based on the query context. This enables multi-hop reasoning that pure similarity search cannot achieve.
|
|
152
|
+
|
|
153
|
+
**What we take from this:**
|
|
154
|
+
- The multi-graph decomposition is powerful but complex. For v1, our single graph with typed edges (`relation: LinkRelation`) captures the same information without the overhead of maintaining four separate graphs.
|
|
155
|
+
- The typed edges in our design (`related-to`, `caused-by`, `depends-on`, `supersedes`) are a lightweight version of MAGMA's multi-graph approach.
|
|
156
|
+
- If we find that certain query patterns require dedicated graph structures, we can partition later (this is why our design doc mentions domain-split graphs as a scaling option).
|
|
157
|
+
- Policy-guided traversal is interesting for Phase 4 (retrieval) — rather than just returning neighbors, the agent could traverse the graph with intent.
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### 3.2 Zep / Graphiti: Temporal Knowledge Graph Engine (Feb 2025)
|
|
162
|
+
|
|
163
|
+
> [arxiv.org/abs/2501.13956](https://arxiv.org/abs/2501.13956)
|
|
164
|
+
|
|
165
|
+
Zep introduces **Graphiti**, a production-grade temporal knowledge graph engine for agent memory. Key differentiator: it treats time as a first-class citizen.
|
|
166
|
+
|
|
167
|
+
**Architecture:**
|
|
168
|
+
- **Entity extraction & resolution**: Identifies entities from unstructured conversational/business data, resolves mentions to canonical forms (e.g., "React", "ReactJS", "react" → single entity node)
|
|
169
|
+
- **Dynamic knowledge integration**: Unlike static RAG, continuously incorporates new information from ongoing conversations
|
|
170
|
+
- **Temporal relationship tracking**: Records when facts/relationships were first observed, last confirmed, and whether they've been superseded
|
|
171
|
+
- **Community detection**: Clusters related entities into communities and generates summaries at different granularity levels
|
|
172
|
+
- **Hierarchical retrieval**: Can answer at entity level, community level, or global level
|
|
173
|
+
|
|
174
|
+
**Benchmark results:**
|
|
175
|
+
- DMR Benchmark: 94.8% accuracy vs. MemGPT's 93.4%
|
|
176
|
+
- LongMemEval: Up to 18.5% accuracy improvement with 90% latency reduction
|
|
177
|
+
- Excels at cross-session information synthesis and long-term context maintenance
|
|
178
|
+
|
|
179
|
+
**What we take from this:**
|
|
180
|
+
- **Entity resolution** is important — when an agent writes about "TS", "TypeScript", and "typescript", these should resolve to the same entity note. Our entity-level files in `knowledge/entities/` serve this purpose, but we should consider an alias system.
|
|
181
|
+
- **Community summaries** map directly to our domain summaries — periodically generated overviews of clustered knowledge.
|
|
182
|
+
- **Temporal tracking** (when observed, last confirmed) maps to our `created`/`updated` timestamps and confidence decay model.
|
|
183
|
+
- The production focus validates our file-based approach — Zep chose a similar "lightweight persistence + graph overlay" pattern, just with a different storage backend.
|
|
184
|
+
|
|
185
|
+
---
|
|
186
|
+
|
|
187
|
+
### 3.3 AriGraph: Learning Knowledge Graphs from Agent Interaction (IJCAI 2025)
|
|
188
|
+
|
|
189
|
+
> [ijcai.org/proceedings/2025/0002.pdf](https://www.ijcai.org/proceedings/2025/0002.pdf)
|
|
190
|
+
|
|
191
|
+
Demonstrates how knowledge graphs can be **incrementally built** during agent interaction, rather than constructed offline from a corpus.
|
|
192
|
+
|
|
193
|
+
**Incremental construction process:**
|
|
194
|
+
At each timestep:
|
|
195
|
+
1. A new episodic vertex is added (recording the specific observation)
|
|
196
|
+
2. An LLM parses the observation to extract relationship triplets (entity-relation-entity)
|
|
197
|
+
3. Triplets update the semantic graph (consolidation from episodic → semantic)
|
|
198
|
+
4. Existing semantic nodes may be updated if new information refines understanding
|
|
199
|
+
|
|
200
|
+
This creates a dual-layer graph:
|
|
201
|
+
- **Episodic layer**: Specific observations anchored in time (what happened)
|
|
202
|
+
- **Semantic layer**: Generalized knowledge derived from episodes (what is true)
|
|
203
|
+
|
|
204
|
+
**What we take from this:**
|
|
205
|
+
- This is the **formation mechanism** for our knowledge bank. AriGraph's episodic→semantic consolidation directly parallels our trajectory→observation→entity pipeline.
|
|
206
|
+
- The dual-layer approach validates having both observations (episodic-flavored, anchored to trajectories) and entity notes (semantic, generalized from observations).
|
|
207
|
+
- Incremental construction (per-trajectory extraction, not just batch) is the right approach — our design already supports this.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
### 3.4 Knowledge Graph Tuning (May 2024)
|
|
212
|
+
|
|
213
|
+
> [arxiv.org/abs/2405.19686](https://arxiv.org/abs/2405.19686)
|
|
214
|
+
|
|
215
|
+
Focuses on personalizing LLMs using knowledge graphs built from human feedback. The key idea: knowledge graphs serve as a "cognitive middle layer" between raw data and the LLM.
|
|
216
|
+
|
|
217
|
+
**Relevance:** Reinforces the concept that knowledge graphs are not just storage — they're an active layer that shapes how information is presented to the model. Our graph overlay + knowledge surfacing serves this same role.
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## 4. Event-Centric & Hierarchical Memory
|
|
222
|
+
|
|
223
|
+
### 4.1 CompassMem: Event-Centric Memory as Logic Maps (Jan 2026)
|
|
224
|
+
|
|
225
|
+
> [arxiv.org/abs/2601.04726](https://arxiv.org/abs/2601.04726)
|
|
226
|
+
|
|
227
|
+
Based on **Event Segmentation Theory** from cognitive science. Rather than storing flat text chunks, CompassMem segments experiences into discrete events connected by explicit logical relationships.
|
|
228
|
+
|
|
229
|
+
**Core architecture:**
|
|
230
|
+
- Memory organized as an **Event Graph**
|
|
231
|
+
- Experiences are segmented into meaningful event units (not arbitrary text chunks)
|
|
232
|
+
- Events are connected by logical relationships (causal, temporal, thematic)
|
|
233
|
+
- The graph functions as a "logic map" — agents navigate it strategically rather than relying on surface similarity
|
|
234
|
+
|
|
235
|
+
**Key innovation — goal-directed navigation:**
|
|
236
|
+
Rather than "find the most similar memory," agents can:
|
|
237
|
+
- Follow causal chains backward to understand why something happened
|
|
238
|
+
- Follow temporal chains forward to predict consequences
|
|
239
|
+
- Navigate thematic connections to gather relevant context for a decision
|
|
240
|
+
|
|
241
|
+
**Benchmark results:**
|
|
242
|
+
- Tested on LoCoMo and NarrativeQA benchmarks
|
|
243
|
+
- "Consistently improves both retrieval and reasoning performance across multiple backbone models"
|
|
244
|
+
|
|
245
|
+
**What we take from this:**
|
|
246
|
+
- The event segmentation concept applies to our trajectory processing — rather than treating trajectories as flat step sequences, we could segment them into meaningful "events" (setup → discovery → fix → verification) before extracting knowledge.
|
|
247
|
+
- The goal-directed navigation concept is relevant for Phase 4 retrieval — when surfacing knowledge for a task, the agent could traverse causal chains ("what typically goes wrong when doing X?") rather than just finding similar facts.
|
|
248
|
+
- The logical relationship types (causal, temporal, thematic) align with our `LinkRelation` types.
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
### 4.2 EverMemOS: Self-Organizing Memory Operating System (Jan 2026)
|
|
253
|
+
|
|
254
|
+
> [arxiv.org/abs/2601.02163](https://arxiv.org/abs/2601.02163)
|
|
255
|
+
|
|
256
|
+
Treats memory as a full operating system with hierarchical organization that emerges from usage patterns.
|
|
257
|
+
|
|
258
|
+
**Key idea:** Memory should self-organize based on access patterns and relationships, not be manually curated. Frequently co-accessed memories cluster together; rarely accessed ones get compressed or archived.
|
|
259
|
+
|
|
260
|
+
**Relevance:** Our defragmentation process serves a similar role — it's the "memory OS" that reorganizes knowledge based on usage and relationships. The self-organizing principle is important: we shouldn't over-engineer the initial taxonomy. Let the directory structure evolve as knowledge accumulates.
|
|
261
|
+
|
|
262
|
+
---
|
|
263
|
+
|
|
264
|
+
### 4.3 Dynamic Tree Memory Representation (Oct 2024)
|
|
265
|
+
|
|
266
|
+
> [arxiv.org/abs/2410.14052](https://arxiv.org/abs/2410.14052)
|
|
267
|
+
|
|
268
|
+
Moves from flat conversation history to hierarchical tree representations. Conversations are organized into schemas — recurring patterns get lifted into abstract nodes, with specific instances as leaves.
|
|
269
|
+
|
|
270
|
+
**Relevance:** The observation → entity → domain hierarchy in our design is essentially a three-level tree. This paper validates the intuition that memories should be organized at multiple levels of abstraction.
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
### 4.4 G-Memory: Hierarchical Memory for Multi-Agent Systems (Jun 2025)
|
|
275
|
+
|
|
276
|
+
> [arxiv.org/abs/2506.07398](https://arxiv.org/abs/2506.07398)
|
|
277
|
+
|
|
278
|
+
Extends hierarchical memory to multi-agent settings. Each agent maintains local memory, but there's also a shared global memory layer with visibility controls.
|
|
279
|
+
|
|
280
|
+
**Relevance:** For cognitive-core's team learning features, this suggests that the knowledge bank could have both per-agent knowledge and shared team knowledge. A team-level entity note about "our API conventions" could be distinct from individual-agent observations.
|
|
281
|
+
|
|
282
|
+
---
|
|
283
|
+
|
|
284
|
+
## 5. Memory Consolidation & Organization
|
|
285
|
+
|
|
286
|
+
### 5.1 Nemori: Self-Organizing Agent Memory (Sep 2025)
|
|
287
|
+
|
|
288
|
+
> [arxiv.org/abs/2508.03341](https://arxiv.org/abs/2508.03341)
|
|
289
|
+
|
|
290
|
+
Draws from cognitive science models of memory consolidation. Key mechanism: memories undergo a consolidation process where recent episodic memories are gradually transformed into stable semantic knowledge.
|
|
291
|
+
|
|
292
|
+
**Consolidation stages:**
|
|
293
|
+
1. **Encoding**: Initial storage of raw experience
|
|
294
|
+
2. **Short-term consolidation**: Extraction of key facts, initial linking
|
|
295
|
+
3. **Long-term consolidation**: Integration with existing knowledge, abstraction, schema formation
|
|
296
|
+
4. **Retrieval-induced reconsolidation**: Memories are updated when accessed (not just passively stored)
|
|
297
|
+
|
|
298
|
+
**What we take from this:**
|
|
299
|
+
- Our three-stage lifecycle (observation → entity → domain summary) mirrors the consolidation pathway.
|
|
300
|
+
- The "retrieval-induced reconsolidation" concept is interesting — when an agent accesses a knowledge note during a task, and that task succeeds, the note's confidence should be reinforced. We capture this via the reinforcement mechanism.
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
### 5.2 Semantic Anchoring in Agentic Memory (Sep 2025)
|
|
305
|
+
|
|
306
|
+
> [arxiv.org/abs/2508.12630](https://arxiv.org/abs/2508.12630)
|
|
307
|
+
|
|
308
|
+
Uses linguistic structures (discourse units, semantic frames) as anchors for persistent memory. Rather than arbitrary text chunking, memories are segmented along meaningful linguistic boundaries.
|
|
309
|
+
|
|
310
|
+
**Relevance:** Our knowledge notes are already structured around meaningful semantic units (one fact per observation, one entity per entity note). This paper validates the principle of meaning-based chunking over arbitrary splitting.
|
|
311
|
+
|
|
312
|
+
---
|
|
313
|
+
|
|
314
|
+
### 5.3 ComoRAG: Cognitive-Inspired Memory-Organized RAG (Sep 2025)
|
|
315
|
+
|
|
316
|
+
> [arxiv.org/abs/2508.10419](https://arxiv.org/abs/2508.10419)
|
|
317
|
+
|
|
318
|
+
Applies cognitive memory organization principles to RAG systems. Introduces "memory-organized" retrieval where the retrieval system mirrors how human memory works — clustering related information, maintaining hierarchical access, and supporting both specific recall and general recognition.
|
|
319
|
+
|
|
320
|
+
**Relevance:** Validates the hybrid retrieval approach (semantic search + structured browse + graph traversal) that our design proposes. No single retrieval mechanism is sufficient.
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
### 5.4 MemEvolve: Meta-Evolution of Agent Memory Systems (Dec 2025)
|
|
325
|
+
|
|
326
|
+
> [arxiv.org/abs/2512.18746](https://arxiv.org/abs/2512.18746)
|
|
327
|
+
|
|
328
|
+
Takes a meta-learning approach: rather than designing a fixed memory system, let the memory architecture itself evolve based on task performance. The system discovers which memory organization patterns work best for which task types.
|
|
329
|
+
|
|
330
|
+
**Relevance:** Our meta-learning layer (MetaMemory, MetaLearner) could eventually extend to the knowledge bank — learning which knowledge organization patterns are most effective. For now, this is aspirational, but the architecture should allow for it.
|
|
331
|
+
|
|
332
|
+
---
|
|
333
|
+
|
|
334
|
+
## 6. Graph-Based Retrieval
|
|
335
|
+
|
|
336
|
+
### 6.1 GraphRAG: Graph-Based Retrieval-Augmented Generation (Apr 2024, Microsoft)
|
|
337
|
+
|
|
338
|
+
> [arxiv.org/abs/2404.16130](https://arxiv.org/abs/2404.16130)
|
|
339
|
+
|
|
340
|
+
Microsoft's influential work on using knowledge graphs to enhance RAG. Introduces the distinction between **local queries** (about specific entities) and **global queries** (about themes/patterns across a corpus).
|
|
341
|
+
|
|
342
|
+
**How it works:**
|
|
343
|
+
1. LLM extracts entities and relationships from source documents → knowledge graph
|
|
344
|
+
2. Community detection groups closely related entities into clusters
|
|
345
|
+
3. Pre-generated community summaries provide different granularity levels
|
|
346
|
+
4. For queries: each relevant community summary generates a partial response → consolidated into final answer
|
|
347
|
+
|
|
348
|
+
**Key insight — local vs. global:**
|
|
349
|
+
- Standard RAG only handles local queries well ("What is X?")
|
|
350
|
+
- GraphRAG enables global queries ("What are the main themes in this dataset?") by leveraging community summaries
|
|
351
|
+
- Scales to 1M+ token datasets where standard RAG fails
|
|
352
|
+
|
|
353
|
+
**What we take from this:**
|
|
354
|
+
- The community detection → summary pattern directly maps to our domain summaries. Entity notes cluster within domains; domain summaries provide the "global view."
|
|
355
|
+
- For knowledge bank queries like "What do I know about our database stack?", a domain summary is more useful than returning individual observations.
|
|
356
|
+
- The graph construction approach (LLM extracts entities + relationships from text) could augment our knowledge extraction pipeline.
|
|
357
|
+
|
|
358
|
+
---
|
|
359
|
+
|
|
360
|
+
### 6.2 HippoRAG: Neurobiologically Inspired Long-Term Memory (May 2024)
|
|
361
|
+
|
|
362
|
+
> [arxiv.org/abs/2405.14831](https://arxiv.org/abs/2405.14831)
|
|
363
|
+
|
|
364
|
+
Inspired by the hippocampal indexing theory of human memory. The hippocampus doesn't store memories directly — it stores an index of pointers to memory traces distributed across the neocortex.
|
|
365
|
+
|
|
366
|
+
**Architecture:**
|
|
367
|
+
- **Neocortex analog**: LLM's parametric knowledge (base model weights)
|
|
368
|
+
- **Hippocampal index**: Knowledge graph that indexes relationships between concepts
|
|
369
|
+
- **Pattern completion**: Given a partial cue, the index activates related memories
|
|
370
|
+
|
|
371
|
+
**Retrieval process:**
|
|
372
|
+
1. Query triggers entity recognition
|
|
373
|
+
2. Recognized entities activate related nodes in the knowledge graph
|
|
374
|
+
3. Graph traversal expands to connected concepts (pattern completion)
|
|
375
|
+
4. Activated memory traces are retrieved and assembled
|
|
376
|
+
|
|
377
|
+
**What we take from this:**
|
|
378
|
+
- The "index of pointers" metaphor is exactly what our graph overlay does — it doesn't store the knowledge itself (that's in the markdown files), it indexes relationships to accelerate retrieval.
|
|
379
|
+
- Pattern completion (start from a cue, expand via graph) is a powerful retrieval strategy for our graph traversal operations.
|
|
380
|
+
|
|
381
|
+
---
|
|
382
|
+
|
|
383
|
+
### 6.3 Hierarchical Aggregate Tree for RAG (Jun 2024)
|
|
384
|
+
|
|
385
|
+
> [arxiv.org/abs/2406.06124](https://arxiv.org/abs/2406.06124)
|
|
386
|
+
|
|
387
|
+
Organizes memories in a tree structure where leaf nodes are specific memories and internal nodes are aggregated summaries. Retrieval starts at the root and navigates down to relevant branches.
|
|
388
|
+
|
|
389
|
+
**Relevance:** Another validation of the multi-level hierarchy approach. Our `domain-summary → entity → observation` is a three-level aggregate tree.
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## 7. Additional Notable Work
|
|
394
|
+
|
|
395
|
+
### 7.1 SGMem: Sentence Graph Memory for Conversational Agents (Sep 2025)
|
|
396
|
+
|
|
397
|
+
> [arxiv.org/abs/2509.21212](https://arxiv.org/abs/2509.21212)
|
|
398
|
+
|
|
399
|
+
Fine-grained memory at the sentence level, with graph connections between sentences. Useful for conversational agents where individual statements carry independent significance.
|
|
400
|
+
|
|
401
|
+
**Relevance:** Our observation-level notes are conceptually similar to sentence-level memory — atomic, independently linkable units of knowledge.
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
405
|
+
### 7.2 MIRIX: Multi-Agent Memory System (Jul 2025)
|
|
406
|
+
|
|
407
|
+
> [arxiv.org/abs/2507.07957](https://arxiv.org/abs/2507.07957)
|
|
408
|
+
|
|
409
|
+
Memory system designed for multi-agent collaboration. Addresses the challenge of multiple agents contributing to a shared knowledge base while maintaining coherence.
|
|
410
|
+
|
|
411
|
+
**Relevance:** Relevant for cognitive-core's team learning features. When multiple agents operate on the same knowledge bank, conflict resolution and merge strategies become critical.
|
|
412
|
+
|
|
413
|
+
---
|
|
414
|
+
|
|
415
|
+
### 7.3 Editable Memory Graphs for Personalized Agents (Sep 2024)
|
|
416
|
+
|
|
417
|
+
> [arxiv.org/abs/2409.19401](https://arxiv.org/abs/2409.19401)
|
|
418
|
+
|
|
419
|
+
Focuses on making knowledge graphs editable — agents can propose changes, verify consistency, and update relationships. Includes rollback mechanisms for incorrect updates.
|
|
420
|
+
|
|
421
|
+
**Relevance:** Our evolution model (reinforcement, contradiction, supersession) needs similar editability guarantees. The rollback concept is interesting — if a supersession was wrong, can we restore the previous knowledge?
|
|
422
|
+
|
|
423
|
+
---
|
|
424
|
+
|
|
425
|
+
### 7.4 Memory-augmented Query Reconstruction for KG Reasoning (Mar 2025)
|
|
426
|
+
|
|
427
|
+
> [arxiv.org/abs/2503.05193](https://arxiv.org/abs/2503.05193)
|
|
428
|
+
|
|
429
|
+
Uses memory to improve how queries are formulated against knowledge graphs. Past successful queries inform future query construction.
|
|
430
|
+
|
|
431
|
+
**Relevance:** Meta-learning for retrieval — tracking which query patterns against the knowledge bank work best. Could inform our retrieval strategy selection in Phase 4.
|
|
432
|
+
|
|
433
|
+
---
|
|
434
|
+
|
|
435
|
+
### 7.5 LLM-empowered Knowledge Graph Construction Survey (Oct 2025)
|
|
436
|
+
|
|
437
|
+
> [arxiv.org/abs/2510.20345](https://arxiv.org/abs/2510.20345)
|
|
438
|
+
|
|
439
|
+
Comprehensive survey on using LLMs to build knowledge graphs. Describes KGs as "cognitive middle layer" and "living cognitive infrastructure." Covers entity extraction, relation identification, schema induction, and graph completion.
|
|
440
|
+
|
|
441
|
+
**Relevance:** If we decide to enrich our graph overlay with LLM-extracted relationships (Phase 2 extraction pipeline), this survey provides the technical foundation for how to prompt LLMs for entity/relation extraction.
|
|
442
|
+
|
|
443
|
+
---
|
|
444
|
+
|
|
445
|
+
## 8. Synthesis: Key Themes Across Papers
|
|
446
|
+
|
|
447
|
+
### Theme 1: Multi-Level Abstraction is Essential
|
|
448
|
+
|
|
449
|
+
Nearly every paper organizes knowledge at multiple granularity levels:
|
|
450
|
+
- AriGraph: episodic vertices → semantic graph
|
|
451
|
+
- GraphRAG: entities → communities → global summaries
|
|
452
|
+
- A-MEM: individual notes → topic clusters → hierarchical organization
|
|
453
|
+
- Nemori: raw encoding → consolidated facts → abstract schemas
|
|
454
|
+
|
|
455
|
+
**Our design:** observations → entity notes → domain summaries (three-level hierarchy).
|
|
456
|
+
|
|
457
|
+
### Theme 2: Graphs Beat Flat Vector Search
|
|
458
|
+
|
|
459
|
+
Papers consistently show that graph-structured memory outperforms flat embedding-based retrieval, especially for:
|
|
460
|
+
- Multi-hop reasoning ("What caused X which led to Y?")
|
|
461
|
+
- Global queries ("What do I know about this domain?")
|
|
462
|
+
- Relationship discovery ("How are X and Y connected?")
|
|
463
|
+
|
|
464
|
+
**Our design:** Graph overlay with typed edges, supporting traversal alongside semantic search.
|
|
465
|
+
|
|
466
|
+
### Theme 3: Memory Should Evolve, Not Just Accumulate
|
|
467
|
+
|
|
468
|
+
Static memory stores degrade over time. Effective systems need:
|
|
469
|
+
- Consolidation (episodic → semantic)
|
|
470
|
+
- Contradiction detection and resolution
|
|
471
|
+
- Confidence tracking and staleness decay
|
|
472
|
+
- Periodic reorganization
|
|
473
|
+
|
|
474
|
+
**Our design:** Knowledge evolution with reinforcement, contradiction detection, confidence decay, and defragmentation.
|
|
475
|
+
|
|
476
|
+
### Theme 4: The Agent Should Participate in Memory Management
|
|
477
|
+
|
|
478
|
+
A-MEM, EverMemOS, and MemEvolve all show that letting the agent (or a meta-learning process) make decisions about memory organization outperforms fixed heuristics.
|
|
479
|
+
|
|
480
|
+
**Our design:** Dual-path creation (extraction pipeline + agent direct writes), agentic defragmentation option, agent can browse and edit knowledge directly.
|
|
481
|
+
|
|
482
|
+
### Theme 5: Cross-Reference Between Memory Types is Underexplored but Valuable
|
|
483
|
+
|
|
484
|
+
The survey papers identify this as a gap. Few systems link factual knowledge to procedures, or episodes to concepts. Those that do (AriGraph's dual layer, MAGMA's multi-graph) show significant benefits.
|
|
485
|
+
|
|
486
|
+
**Our design:** Explicit cross-system links between knowledge notes and playbooks via `source.playbooks` and graph edges with `crossSystem: 'playbook'`.
|
|
487
|
+
|
|
488
|
+
### Theme 6: File/Text-Based Storage Remains Practical
|
|
489
|
+
|
|
490
|
+
Despite the sophistication of graph-based approaches, several production systems (Zep, A-MEM) use lightweight persistence (JSON, text files) rather than full graph databases. The graph structure can be maintained as an overlay/index rather than requiring specialized infrastructure.
|
|
491
|
+
|
|
492
|
+
**Our design:** Markdown files as source of truth, JSON graph overlay, SQLite only for search acceleration (via minimem).
|
|
493
|
+
|
|
494
|
+
---
|
|
495
|
+
|
|
496
|
+
## Reading Priority
|
|
497
|
+
|
|
498
|
+
For anyone working on this feature, recommended reading order:
|
|
499
|
+
|
|
500
|
+
| Priority | Paper | Why |
|
|
501
|
+
|---|---|---|
|
|
502
|
+
| 1 | [Memory Survey](https://arxiv.org/abs/2512.13564) | Comprehensive taxonomy and gap analysis |
|
|
503
|
+
| 2 | [A-MEM](https://arxiv.org/abs/2502.12110) | Most directly applicable architecture |
|
|
504
|
+
| 3 | [AriGraph](https://www.ijcai.org/proceedings/2025/0002.pdf) | Best model for episodic→semantic extraction |
|
|
505
|
+
| 4 | [MAGMA](https://arxiv.org/abs/2601.03236) | Multi-graph design for future evolution |
|
|
506
|
+
| 5 | [GraphRAG](https://arxiv.org/abs/2404.16130) | Community detection and global queries |
|
|
507
|
+
| 6 | [Zep/Graphiti](https://arxiv.org/abs/2501.13956) | Production temporal KG reference |
|
|
508
|
+
| 7 | [CompassMem](https://arxiv.org/abs/2601.04726) | Event segmentation and logic maps |
|
|
509
|
+
| 8 | [Nemori](https://arxiv.org/abs/2508.03341) | Cognitive science-inspired consolidation |
|
|
510
|
+
| 9 | [HippoRAG](https://arxiv.org/abs/2405.14831) | Graph-as-index retrieval model |
|
|
511
|
+
| 10 | [Agent Memory Paper List](https://github.com/Shichun-Liu/Agent-Memory-Paper-List) | Ongoing curated list (100+ papers) |
|
|
512
|
+
|
|
513
|
+
---
|
|
514
|
+
|
|
515
|
+
## Source Repository
|
|
516
|
+
|
|
517
|
+
The [Agent Memory Paper List](https://github.com/Shichun-Liu/Agent-Memory-Paper-List) on GitHub maintains a curated, categorized list of 100+ papers on agent memory, organized by memory form (token-level, embedding-level, text-level) and function (factual, experiential, procedural). It is actively maintained and a good resource for tracking new publications in this space.
|