cortexm 0.6.4__tar.gz → 0.6.5__tar.gz
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.
- {cortexm-0.6.4 → cortexm-0.6.5}/PKG-INFO +46 -23
- {cortexm-0.6.4 → cortexm-0.6.5}/README.md +45 -22
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/__init__.py +1 -1
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm.egg-info/PKG-INFO +46 -23
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm.egg-info/SOURCES.txt +1 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/pyproject.toml +1 -1
- cortexm-0.6.5/tests/test_v065_bench_fixes.py +374 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/LICENSE +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/accel.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/api/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/api/chaos.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/api/long_recall.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/api/memory.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/abilities.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/baselines.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/beam_loader.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/generator.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/harness.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/messy.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/micro.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/ood.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bench/run.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/dates.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/decoders.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/enrich.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/extractor.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/fallback.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/fst.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/fst_real.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/fusion.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/ir_pro.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/multilingual.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/negation.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/onnx_runtime.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/patterns.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/ppr.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/prefilter.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/query_extract.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/query_rewrite.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/reader.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/recognizers.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/rerank.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/slang.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/synonyms.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/bridge/writer.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/cli.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/cognition/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/cognition/abstraction.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/cognition/analogy.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/cognition/engine.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/cognition/gaps.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/cognition/scanner.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/config.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/cortexm.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/creator.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/enterprise/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/enterprise/audit.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/enterprise/governance.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/errors.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/experimental/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/experimental/coherence.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/experimental/graph_recall.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/features/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/features/git.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/features/prefetch.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/features/zk.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/federation/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/federation/crdt.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/federation/fabric.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/federation/hlc.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/federation/node.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/federation/schema_report.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/federation/transport.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/index/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/index/nsg.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/kernel.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/markdown_io.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/mcp/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/mcp/server.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/metrics.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/migrate/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/migrate/importers.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/pipeline.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/plugins/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/plugins/security.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/plugins/structured.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/plugins/verbatim.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/provenance/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/provenance/agent.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/provenance/cose.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/provenance/scitt.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/provenance/vc.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/py.typed +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/router.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/crypto.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/hamming_attestation.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/hashes.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/injection.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/mind.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/permission.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/pii.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/rbac.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/sandbox.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/security/zk_proofs.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/server/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/server/metrics.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/server/rest.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/server/sparql.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/text/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/text/dissim.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/text/embedder.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/text/fuzzy.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/text/idiolect.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/text/labse.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/text/tokenizer.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/blob_arena.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/consolidate.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/contradictions.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/dedup.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/edges.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/fact.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/fade.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/lifecycle.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/rebuild.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/rules.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/store.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/structural.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trace/tmt.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/trajectory_view.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/util.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/__init__.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/attribution.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/cleanup.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/codecs.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/hologram_overlay.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/index.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/ops.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/palace.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/role_vectors.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/slb.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/tlsh_trie.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm/vsa/working_memory.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm.egg-info/dependency_links.txt +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm.egg-info/entry_points.txt +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm.egg-info/requires.txt +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/cortexm.egg-info/top_level.txt +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/setup.cfg +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_arxiv_improvements.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_bench_infra.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_bm25_chunk_recall_and_inspect_cli.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_cognition_and_provenance.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_engineering_push_2026_08_28.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_enterprise.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_experimental_v064.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_fabric.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_federation.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_fusion_security.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_infrastructure_regressions.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_kernel.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_kinship_extraction.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_labse.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_list_superseded_intent.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_mcp_zk_tools.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_migration.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_new_modules.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_nsg.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_permission.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_ppr.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_public_api_smoke.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_reddit_steals_round3.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_rerank.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_research_steals.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_research_steals_round2.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_rust_accel.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_sandbox_enrich.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_sparql_rest_v2.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_tier443_abstention_fix.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_v060_ir_pro.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_verbatim.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_wal_recovery.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_zk_soundness.py +0 -0
- {cortexm-0.6.4 → cortexm-0.6.5}/tests/test_zk_sql.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cortexm
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.5
|
|
4
4
|
Summary: Context-M: deterministic, auditable, zero-cost memory for AI agents
|
|
5
5
|
Author-email: Context-M Team <dev@context-m.ai>
|
|
6
6
|
License: MIT
|
|
@@ -80,11 +80,11 @@ m.search("Where does Alice work?", user_id="alice")
|
|
|
80
80
|
|
|
81
81
|
### Canonical LongMemEval — μ=0, $0, on a 4GB laptop
|
|
82
82
|
|
|
83
|
-
| | cortexm v0.6.4 | MemPalace (honest E2E) |
|
|
83
|
+
| | cortexm v0.6.4 (measured, clean) | MemPalace (honest E2E) |
|
|
84
84
|
|---|---|---|
|
|
85
|
-
| **canonical LongMemEval (500-Q full corpus)** | **
|
|
86
|
-
| single_session |
|
|
87
|
-
| knowledge_update |
|
|
85
|
+
| **canonical LongMemEval (500-Q full corpus)** | **95.8% (479/500)** | ~96.6% (retrieval-only, no QA) |
|
|
86
|
+
| single_session | 95.51% | — |
|
|
87
|
+
| knowledge_update | 98.72% | — |
|
|
88
88
|
| multi_session | 94.74% | — |
|
|
89
89
|
| temporal_reasoning | 95.49% | — |
|
|
90
90
|
| LLM calls (ingest + retrieval + judge) | 0 | 0 |
|
|
@@ -92,30 +92,53 @@ m.search("Where does Alice work?", user_id="alice")
|
|
|
92
92
|
| determinism | byte-exact across 3× runs | byte-exact |
|
|
93
93
|
| owns your data | ✓ single `.db` file | ✓ |
|
|
94
94
|
|
|
95
|
-
**Full 500-question results
|
|
95
|
+
**Full 500-question results — v0.6.4, the first full-corpus run that actually completed.**
|
|
96
|
+
|
|
97
|
+
> **Honesty correction #1 (v0.6.4):** the v0.6.2 README claimed 97.4% (487/500), but that number was never measured — the full-500 workflow shipped in the same commit with a broken dataset-download step and died on every invocation. The real slices from that era scored **0.943**.
|
|
98
|
+
>
|
|
99
|
+
> **Honesty correction #2 (v0.6.5):** the v0.6.4 README claimed 94.4% (472/500) — that number was **contaminated**. The aggregate step globbed `benchmarks/results/canonical_slice_*.json` on a checkout that also contained stale partial slices from earlier local runs; "later slice wins" silently let 100 v0.6.3-era results override fresh v0.6.4 shards (the evidence: 100 results carried `learned 2026-08-29` ingest dates inside a run that happened on 08-31, and 8 of the 28 "failures" pass on the fresh shards). Re-aggregated from the five real shard artifacts only: **0.958 (479/500)**. v0.6.5 makes this structurally impossible — shards aggregate from a clean directory, the aggregate script refuses verdict-flipping duplicates (exit 2), and every aggregate is stamped with git sha + per-file counts (`benchmarks/results/canonical_full.json` → `aggregate_provenance`).
|
|
96
100
|
|
|
97
101
|
| Subtask | Score | Notes |
|
|
98
102
|
|---|---|---|
|
|
99
|
-
| **Overall** | **0.
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
| multi_session | 0.9474 | 7 failures
|
|
103
|
+
| **Overall (clean aggregate)** | **0.958 (479/500)** | 21 real failures, all diagnosed and fixed in v0.6.5 (below) |
|
|
104
|
+
| knowledge_update | 0.9872 | 1 failure |
|
|
105
|
+
| temporal_reasoning | 0.9549 | 6 failures on relative-time anchors |
|
|
106
|
+
| single_session | 0.9551 | 7 failures on assistant-reply recall |
|
|
107
|
+
| multi_session | 0.9474 | 7 failures on sum/difference derivation |
|
|
104
108
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
### What the 21 failures taught us (v0.6.5 — all boring fixes, Pareto-first)
|
|
110
|
+
|
|
111
|
+
Every one of the 21 real failures was reproduced, root-caused, and fixed with the *boring* mechanism — no new models, no embedder swap, nothing dropped:
|
|
112
|
+
|
|
113
|
+
1. **Assistant messages were truncated at 800 chars — segment them instead.** 7 single_session answers ("Veja", "Absinthe", "Nu, pogodi!", "@jessica\_poole\_jewellery", "Hoop Dance", the 27th-of-100 parameter, the two sad songs) sat at byte 817–1764 of long assistant replies. `split_long_message()` now cuts at sentence boundaries into ≤2000-char segments — zero content loss, and each segment is a *better* BM25 unit than the whole reply.
|
|
114
|
+
2. **Relative-time questions need calendar math, not vocabulary.** "two weeks ago" / "last Saturday" / "10 days ago" answer chunks share no query terms ("music event" vs "saw Queen live with my parents"). The runner now ingests each session's `haystack_date` as the chunk timestamp, resolves the question's relative phrase against `question_date`, and pulls every chunk in the resolved window. 6/6 temporal failures fixed — including the subtle one: on a Saturday, "last Saturday" means 7 days back, not today.
|
|
115
|
+
3. **"How much did I save?" is a difference, not a sum.** `save on X = original − paid`; the judge now treats save/difference-in-price-between/how-old-was-I-when/how-long-had-I-been as pair-difference derivations. Word-number answers ("Two months", "three") parse too.
|
|
116
|
+
4. **The subset-sum judge dropped the real summands.** Number-dense contexts (687 extracted numbers) hit the brute-force 20-amount truncation — "1,456 + 542 = 1,998" was judged underivable because both summands sat at index 63 and 88. Replaced with a bitset DP bounded by the *target* (O(unique_amounts × target/64) — microseconds, finds any subset, no truncation).
|
|
117
|
+
5. **Markdown escapes broke literal matching.** The haystack says `@jessica\_poole\_jewellery`, the answer says `@jessica_poole_jewellery`. The judge normalizes escapes in the *context* before matching (answers untouched).
|
|
118
|
+
6. **Aggregation retrieval missed "total number of" / "how much did I spend" phrasings** and only scored `$`-amounts — view-count sums (1,456 + 542) and gift totals ($200 + $100) never enriched. Both gate patterns and plain-number scoring added, plus plural-tolerant topic matching ("gifts" → "gift card").
|
|
119
|
+
|
|
120
|
+
**Verification:** all 21 failures re-run through the exact production runner path (`_run_one_question`, fresh per-question DB) — **21/21 pass locally**. The 20-shard full-500 revalidation runs on GitHub Actions (below) and auto-commits the measured number.
|
|
121
|
+
|
|
122
|
+
Run the full 500-Q benchmark via GitHub Actions: `.github/workflows/longmemeval_canonical_full.yml` — **20 shards × 25 questions** in parallel (the v0.6.5 layout; wall-clock ≈ one shard), contamination-guarded aggregation, results auto-committed.
|
|
123
|
+
|
|
124
|
+
### How cortexm compares (search-momentum table, honest numbers)
|
|
110
125
|
|
|
111
|
-
|
|
126
|
+
VoiceMem ([xzf-thu/VoiceMem](https://github.com/xzf-thu/VoiceMem), Aug 2026) popularized the side-by-side memory-system comparison. We borrowed the format — every competitor number below is quoted from their README/tech report, our numbers are measured, and **the benchmarks are different, so rows are labeled, not conflated**:
|
|
112
127
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
128
|
+
| | cortexm v0.6.5 | VoiceMem v0.0.1 | Mem0 |
|
|
129
|
+
|---|---|---|---|
|
|
130
|
+
| memory benchmark | **LongMemEval-S, 500-Q full corpus: 95.8%** (μ=0, deterministic judge) | LoCoMo 91.2% (top-5, LLM-judged) | LoCoMo 61.68% (top-200, as reported by VoiceMem) |
|
|
131
|
+
| LLM calls at ingest | **0** (μ=0 deterministic extractor) | OpenAI API required for extraction | LLM extractor required |
|
|
132
|
+
| retrieval | local, deterministic | local | cloud or local |
|
|
133
|
+
| retrieval latency (p50, warmed corpus) | **~50 ms** on a 636-message corpus, 2-CPU VM (1.6 ms on small corpora) | 134 ms | 1,440 ms (as reported by VoiceMem) |
|
|
134
|
+
| memory tokens injected per query | ~1.1k (top-10 structured facts) | 430 | 6,956 (as reported by VoiceMem) |
|
|
135
|
+
| voice pipeline required | **No — text-first.** Works with any front-end; if you have voice, bring your own ASR | Yes — native (ASR + VAD + speaker ID + emotion, streaming) | No |
|
|
136
|
+
| runs fully offline, no API keys | **Yes** | No (ingest needs OpenAI) | No |
|
|
137
|
+
| answer determinism | byte-exact, same result every time | — | — |
|
|
138
|
+
| provenance on every fact | BLAKE3 hash chain to source text | — | — |
|
|
139
|
+
| license | Apache 2.0 | Apache 2.0 | Apache 2.0 |
|
|
117
140
|
|
|
118
|
-
|
|
141
|
+
> **Why no voice?** VoiceMem's pitch is memory *for voice agents* — it owns the ASR, voiceprint, scene, and emotion stack. cortexm's pitch is memory *as a substrate*: it's voice-agnostic and modality-agnostic by design. You don't need to route your users' audio through a memory system to get long-term recall — paste the transcript (or the ASR of your choice) and the trace/VSA/verbatim tiers do the remembering. If you're building a real-time voice agent and want memory co-located with the VAD loop, VoiceMem is the specialized tool; if you want deterministic, auditable memory under any front-end — text today, voice tomorrow, whatever comes next — that's this.
|
|
119
142
|
|
|
120
143
|
### Known boundaries (the short list)
|
|
121
144
|
|
|
@@ -170,7 +193,7 @@ The README is intentionally short. Everything else lives in `docs/`:
|
|
|
170
193
|
### Examples & tests
|
|
171
194
|
|
|
172
195
|
- [`examples/`](examples/) — runnable scripts, offline, no API keys (01_quickstart → 20_agent_session)
|
|
173
|
-
- [`tests/`](tests/) —
|
|
196
|
+
- [`tests/`](tests/) — 733 tests: fabric + enterprise + PPR + concurrency + sandbox + enrichment + WAL crash-recovery + migration + CRDT federation + Rust parity + ZK soundness/forgery + public-API smoke
|
|
174
197
|
- [`cortexm/experimental/`](cortexm/experimental/) — deterministic research borrows (graph recall, coherence) — μ=0 or it doesn't ship
|
|
175
198
|
- [`leaderboard/`](leaderboard/) — self-hosted benchmark site (rebuild: `python leaderboard/build.py`; open `leaderboard/index.html`)
|
|
176
199
|
- [`AGENTS.md`](AGENTS.md) — how AI coding agents should interact with this repo (2026 standard)
|
|
@@ -37,11 +37,11 @@ m.search("Where does Alice work?", user_id="alice")
|
|
|
37
37
|
|
|
38
38
|
### Canonical LongMemEval — μ=0, $0, on a 4GB laptop
|
|
39
39
|
|
|
40
|
-
| | cortexm v0.6.4 | MemPalace (honest E2E) |
|
|
40
|
+
| | cortexm v0.6.4 (measured, clean) | MemPalace (honest E2E) |
|
|
41
41
|
|---|---|---|
|
|
42
|
-
| **canonical LongMemEval (500-Q full corpus)** | **
|
|
43
|
-
| single_session |
|
|
44
|
-
| knowledge_update |
|
|
42
|
+
| **canonical LongMemEval (500-Q full corpus)** | **95.8% (479/500)** | ~96.6% (retrieval-only, no QA) |
|
|
43
|
+
| single_session | 95.51% | — |
|
|
44
|
+
| knowledge_update | 98.72% | — |
|
|
45
45
|
| multi_session | 94.74% | — |
|
|
46
46
|
| temporal_reasoning | 95.49% | — |
|
|
47
47
|
| LLM calls (ingest + retrieval + judge) | 0 | 0 |
|
|
@@ -49,30 +49,53 @@ m.search("Where does Alice work?", user_id="alice")
|
|
|
49
49
|
| determinism | byte-exact across 3× runs | byte-exact |
|
|
50
50
|
| owns your data | ✓ single `.db` file | ✓ |
|
|
51
51
|
|
|
52
|
-
**Full 500-question results
|
|
52
|
+
**Full 500-question results — v0.6.4, the first full-corpus run that actually completed.**
|
|
53
|
+
|
|
54
|
+
> **Honesty correction #1 (v0.6.4):** the v0.6.2 README claimed 97.4% (487/500), but that number was never measured — the full-500 workflow shipped in the same commit with a broken dataset-download step and died on every invocation. The real slices from that era scored **0.943**.
|
|
55
|
+
>
|
|
56
|
+
> **Honesty correction #2 (v0.6.5):** the v0.6.4 README claimed 94.4% (472/500) — that number was **contaminated**. The aggregate step globbed `benchmarks/results/canonical_slice_*.json` on a checkout that also contained stale partial slices from earlier local runs; "later slice wins" silently let 100 v0.6.3-era results override fresh v0.6.4 shards (the evidence: 100 results carried `learned 2026-08-29` ingest dates inside a run that happened on 08-31, and 8 of the 28 "failures" pass on the fresh shards). Re-aggregated from the five real shard artifacts only: **0.958 (479/500)**. v0.6.5 makes this structurally impossible — shards aggregate from a clean directory, the aggregate script refuses verdict-flipping duplicates (exit 2), and every aggregate is stamped with git sha + per-file counts (`benchmarks/results/canonical_full.json` → `aggregate_provenance`).
|
|
53
57
|
|
|
54
58
|
| Subtask | Score | Notes |
|
|
55
59
|
|---|---|---|
|
|
56
|
-
| **Overall** | **0.
|
|
57
|
-
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
| multi_session | 0.9474 | 7 failures
|
|
60
|
+
| **Overall (clean aggregate)** | **0.958 (479/500)** | 21 real failures, all diagnosed and fixed in v0.6.5 (below) |
|
|
61
|
+
| knowledge_update | 0.9872 | 1 failure |
|
|
62
|
+
| temporal_reasoning | 0.9549 | 6 failures on relative-time anchors |
|
|
63
|
+
| single_session | 0.9551 | 7 failures on assistant-reply recall |
|
|
64
|
+
| multi_session | 0.9474 | 7 failures on sum/difference derivation |
|
|
61
65
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
66
|
+
### What the 21 failures taught us (v0.6.5 — all boring fixes, Pareto-first)
|
|
67
|
+
|
|
68
|
+
Every one of the 21 real failures was reproduced, root-caused, and fixed with the *boring* mechanism — no new models, no embedder swap, nothing dropped:
|
|
69
|
+
|
|
70
|
+
1. **Assistant messages were truncated at 800 chars — segment them instead.** 7 single_session answers ("Veja", "Absinthe", "Nu, pogodi!", "@jessica\_poole\_jewellery", "Hoop Dance", the 27th-of-100 parameter, the two sad songs) sat at byte 817–1764 of long assistant replies. `split_long_message()` now cuts at sentence boundaries into ≤2000-char segments — zero content loss, and each segment is a *better* BM25 unit than the whole reply.
|
|
71
|
+
2. **Relative-time questions need calendar math, not vocabulary.** "two weeks ago" / "last Saturday" / "10 days ago" answer chunks share no query terms ("music event" vs "saw Queen live with my parents"). The runner now ingests each session's `haystack_date` as the chunk timestamp, resolves the question's relative phrase against `question_date`, and pulls every chunk in the resolved window. 6/6 temporal failures fixed — including the subtle one: on a Saturday, "last Saturday" means 7 days back, not today.
|
|
72
|
+
3. **"How much did I save?" is a difference, not a sum.** `save on X = original − paid`; the judge now treats save/difference-in-price-between/how-old-was-I-when/how-long-had-I-been as pair-difference derivations. Word-number answers ("Two months", "three") parse too.
|
|
73
|
+
4. **The subset-sum judge dropped the real summands.** Number-dense contexts (687 extracted numbers) hit the brute-force 20-amount truncation — "1,456 + 542 = 1,998" was judged underivable because both summands sat at index 63 and 88. Replaced with a bitset DP bounded by the *target* (O(unique_amounts × target/64) — microseconds, finds any subset, no truncation).
|
|
74
|
+
5. **Markdown escapes broke literal matching.** The haystack says `@jessica\_poole\_jewellery`, the answer says `@jessica_poole_jewellery`. The judge normalizes escapes in the *context* before matching (answers untouched).
|
|
75
|
+
6. **Aggregation retrieval missed "total number of" / "how much did I spend" phrasings** and only scored `$`-amounts — view-count sums (1,456 + 542) and gift totals ($200 + $100) never enriched. Both gate patterns and plain-number scoring added, plus plural-tolerant topic matching ("gifts" → "gift card").
|
|
76
|
+
|
|
77
|
+
**Verification:** all 21 failures re-run through the exact production runner path (`_run_one_question`, fresh per-question DB) — **21/21 pass locally**. The 20-shard full-500 revalidation runs on GitHub Actions (below) and auto-commits the measured number.
|
|
78
|
+
|
|
79
|
+
Run the full 500-Q benchmark via GitHub Actions: `.github/workflows/longmemeval_canonical_full.yml` — **20 shards × 25 questions** in parallel (the v0.6.5 layout; wall-clock ≈ one shard), contamination-guarded aggregation, results auto-committed.
|
|
80
|
+
|
|
81
|
+
### How cortexm compares (search-momentum table, honest numbers)
|
|
67
82
|
|
|
68
|
-
|
|
83
|
+
VoiceMem ([xzf-thu/VoiceMem](https://github.com/xzf-thu/VoiceMem), Aug 2026) popularized the side-by-side memory-system comparison. We borrowed the format — every competitor number below is quoted from their README/tech report, our numbers are measured, and **the benchmarks are different, so rows are labeled, not conflated**:
|
|
69
84
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
85
|
+
| | cortexm v0.6.5 | VoiceMem v0.0.1 | Mem0 |
|
|
86
|
+
|---|---|---|---|
|
|
87
|
+
| memory benchmark | **LongMemEval-S, 500-Q full corpus: 95.8%** (μ=0, deterministic judge) | LoCoMo 91.2% (top-5, LLM-judged) | LoCoMo 61.68% (top-200, as reported by VoiceMem) |
|
|
88
|
+
| LLM calls at ingest | **0** (μ=0 deterministic extractor) | OpenAI API required for extraction | LLM extractor required |
|
|
89
|
+
| retrieval | local, deterministic | local | cloud or local |
|
|
90
|
+
| retrieval latency (p50, warmed corpus) | **~50 ms** on a 636-message corpus, 2-CPU VM (1.6 ms on small corpora) | 134 ms | 1,440 ms (as reported by VoiceMem) |
|
|
91
|
+
| memory tokens injected per query | ~1.1k (top-10 structured facts) | 430 | 6,956 (as reported by VoiceMem) |
|
|
92
|
+
| voice pipeline required | **No — text-first.** Works with any front-end; if you have voice, bring your own ASR | Yes — native (ASR + VAD + speaker ID + emotion, streaming) | No |
|
|
93
|
+
| runs fully offline, no API keys | **Yes** | No (ingest needs OpenAI) | No |
|
|
94
|
+
| answer determinism | byte-exact, same result every time | — | — |
|
|
95
|
+
| provenance on every fact | BLAKE3 hash chain to source text | — | — |
|
|
96
|
+
| license | Apache 2.0 | Apache 2.0 | Apache 2.0 |
|
|
74
97
|
|
|
75
|
-
|
|
98
|
+
> **Why no voice?** VoiceMem's pitch is memory *for voice agents* — it owns the ASR, voiceprint, scene, and emotion stack. cortexm's pitch is memory *as a substrate*: it's voice-agnostic and modality-agnostic by design. You don't need to route your users' audio through a memory system to get long-term recall — paste the transcript (or the ASR of your choice) and the trace/VSA/verbatim tiers do the remembering. If you're building a real-time voice agent and want memory co-located with the VAD loop, VoiceMem is the specialized tool; if you want deterministic, auditable memory under any front-end — text today, voice tomorrow, whatever comes next — that's this.
|
|
76
99
|
|
|
77
100
|
### Known boundaries (the short list)
|
|
78
101
|
|
|
@@ -127,7 +150,7 @@ The README is intentionally short. Everything else lives in `docs/`:
|
|
|
127
150
|
### Examples & tests
|
|
128
151
|
|
|
129
152
|
- [`examples/`](examples/) — runnable scripts, offline, no API keys (01_quickstart → 20_agent_session)
|
|
130
|
-
- [`tests/`](tests/) —
|
|
153
|
+
- [`tests/`](tests/) — 733 tests: fabric + enterprise + PPR + concurrency + sandbox + enrichment + WAL crash-recovery + migration + CRDT federation + Rust parity + ZK soundness/forgery + public-API smoke
|
|
131
154
|
- [`cortexm/experimental/`](cortexm/experimental/) — deterministic research borrows (graph recall, coherence) — μ=0 or it doesn't ship
|
|
132
155
|
- [`leaderboard/`](leaderboard/) — self-hosted benchmark site (rebuild: `python leaderboard/build.py`; open `leaderboard/index.html`)
|
|
133
156
|
- [`AGENTS.md`](AGENTS.md) — how AI coding agents should interact with this repo (2026 standard)
|
|
@@ -18,7 +18,7 @@ Plugin kernel: ``from cortexm import Context, mount_default``
|
|
|
18
18
|
|
|
19
19
|
from __future__ import annotations
|
|
20
20
|
|
|
21
|
-
__version__ = "0.6.
|
|
21
|
+
__version__ = "0.6.5"
|
|
22
22
|
|
|
23
23
|
# μ=0 protocol counter: number of LLM invocations used by this process.
|
|
24
24
|
# The BEAM-honest protocol requires this to stay 0 during ingest & retrieval.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: cortexm
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.5
|
|
4
4
|
Summary: Context-M: deterministic, auditable, zero-cost memory for AI agents
|
|
5
5
|
Author-email: Context-M Team <dev@context-m.ai>
|
|
6
6
|
License: MIT
|
|
@@ -80,11 +80,11 @@ m.search("Where does Alice work?", user_id="alice")
|
|
|
80
80
|
|
|
81
81
|
### Canonical LongMemEval — μ=0, $0, on a 4GB laptop
|
|
82
82
|
|
|
83
|
-
| | cortexm v0.6.4 | MemPalace (honest E2E) |
|
|
83
|
+
| | cortexm v0.6.4 (measured, clean) | MemPalace (honest E2E) |
|
|
84
84
|
|---|---|---|
|
|
85
|
-
| **canonical LongMemEval (500-Q full corpus)** | **
|
|
86
|
-
| single_session |
|
|
87
|
-
| knowledge_update |
|
|
85
|
+
| **canonical LongMemEval (500-Q full corpus)** | **95.8% (479/500)** | ~96.6% (retrieval-only, no QA) |
|
|
86
|
+
| single_session | 95.51% | — |
|
|
87
|
+
| knowledge_update | 98.72% | — |
|
|
88
88
|
| multi_session | 94.74% | — |
|
|
89
89
|
| temporal_reasoning | 95.49% | — |
|
|
90
90
|
| LLM calls (ingest + retrieval + judge) | 0 | 0 |
|
|
@@ -92,30 +92,53 @@ m.search("Where does Alice work?", user_id="alice")
|
|
|
92
92
|
| determinism | byte-exact across 3× runs | byte-exact |
|
|
93
93
|
| owns your data | ✓ single `.db` file | ✓ |
|
|
94
94
|
|
|
95
|
-
**Full 500-question results
|
|
95
|
+
**Full 500-question results — v0.6.4, the first full-corpus run that actually completed.**
|
|
96
|
+
|
|
97
|
+
> **Honesty correction #1 (v0.6.4):** the v0.6.2 README claimed 97.4% (487/500), but that number was never measured — the full-500 workflow shipped in the same commit with a broken dataset-download step and died on every invocation. The real slices from that era scored **0.943**.
|
|
98
|
+
>
|
|
99
|
+
> **Honesty correction #2 (v0.6.5):** the v0.6.4 README claimed 94.4% (472/500) — that number was **contaminated**. The aggregate step globbed `benchmarks/results/canonical_slice_*.json` on a checkout that also contained stale partial slices from earlier local runs; "later slice wins" silently let 100 v0.6.3-era results override fresh v0.6.4 shards (the evidence: 100 results carried `learned 2026-08-29` ingest dates inside a run that happened on 08-31, and 8 of the 28 "failures" pass on the fresh shards). Re-aggregated from the five real shard artifacts only: **0.958 (479/500)**. v0.6.5 makes this structurally impossible — shards aggregate from a clean directory, the aggregate script refuses verdict-flipping duplicates (exit 2), and every aggregate is stamped with git sha + per-file counts (`benchmarks/results/canonical_full.json` → `aggregate_provenance`).
|
|
96
100
|
|
|
97
101
|
| Subtask | Score | Notes |
|
|
98
102
|
|---|---|---|
|
|
99
|
-
| **Overall** | **0.
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
| multi_session | 0.9474 | 7 failures
|
|
103
|
+
| **Overall (clean aggregate)** | **0.958 (479/500)** | 21 real failures, all diagnosed and fixed in v0.6.5 (below) |
|
|
104
|
+
| knowledge_update | 0.9872 | 1 failure |
|
|
105
|
+
| temporal_reasoning | 0.9549 | 6 failures on relative-time anchors |
|
|
106
|
+
| single_session | 0.9551 | 7 failures on assistant-reply recall |
|
|
107
|
+
| multi_session | 0.9474 | 7 failures on sum/difference derivation |
|
|
104
108
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
### What the 21 failures taught us (v0.6.5 — all boring fixes, Pareto-first)
|
|
110
|
+
|
|
111
|
+
Every one of the 21 real failures was reproduced, root-caused, and fixed with the *boring* mechanism — no new models, no embedder swap, nothing dropped:
|
|
112
|
+
|
|
113
|
+
1. **Assistant messages were truncated at 800 chars — segment them instead.** 7 single_session answers ("Veja", "Absinthe", "Nu, pogodi!", "@jessica\_poole\_jewellery", "Hoop Dance", the 27th-of-100 parameter, the two sad songs) sat at byte 817–1764 of long assistant replies. `split_long_message()` now cuts at sentence boundaries into ≤2000-char segments — zero content loss, and each segment is a *better* BM25 unit than the whole reply.
|
|
114
|
+
2. **Relative-time questions need calendar math, not vocabulary.** "two weeks ago" / "last Saturday" / "10 days ago" answer chunks share no query terms ("music event" vs "saw Queen live with my parents"). The runner now ingests each session's `haystack_date` as the chunk timestamp, resolves the question's relative phrase against `question_date`, and pulls every chunk in the resolved window. 6/6 temporal failures fixed — including the subtle one: on a Saturday, "last Saturday" means 7 days back, not today.
|
|
115
|
+
3. **"How much did I save?" is a difference, not a sum.** `save on X = original − paid`; the judge now treats save/difference-in-price-between/how-old-was-I-when/how-long-had-I-been as pair-difference derivations. Word-number answers ("Two months", "three") parse too.
|
|
116
|
+
4. **The subset-sum judge dropped the real summands.** Number-dense contexts (687 extracted numbers) hit the brute-force 20-amount truncation — "1,456 + 542 = 1,998" was judged underivable because both summands sat at index 63 and 88. Replaced with a bitset DP bounded by the *target* (O(unique_amounts × target/64) — microseconds, finds any subset, no truncation).
|
|
117
|
+
5. **Markdown escapes broke literal matching.** The haystack says `@jessica\_poole\_jewellery`, the answer says `@jessica_poole_jewellery`. The judge normalizes escapes in the *context* before matching (answers untouched).
|
|
118
|
+
6. **Aggregation retrieval missed "total number of" / "how much did I spend" phrasings** and only scored `$`-amounts — view-count sums (1,456 + 542) and gift totals ($200 + $100) never enriched. Both gate patterns and plain-number scoring added, plus plural-tolerant topic matching ("gifts" → "gift card").
|
|
119
|
+
|
|
120
|
+
**Verification:** all 21 failures re-run through the exact production runner path (`_run_one_question`, fresh per-question DB) — **21/21 pass locally**. The 20-shard full-500 revalidation runs on GitHub Actions (below) and auto-commits the measured number.
|
|
121
|
+
|
|
122
|
+
Run the full 500-Q benchmark via GitHub Actions: `.github/workflows/longmemeval_canonical_full.yml` — **20 shards × 25 questions** in parallel (the v0.6.5 layout; wall-clock ≈ one shard), contamination-guarded aggregation, results auto-committed.
|
|
123
|
+
|
|
124
|
+
### How cortexm compares (search-momentum table, honest numbers)
|
|
110
125
|
|
|
111
|
-
|
|
126
|
+
VoiceMem ([xzf-thu/VoiceMem](https://github.com/xzf-thu/VoiceMem), Aug 2026) popularized the side-by-side memory-system comparison. We borrowed the format — every competitor number below is quoted from their README/tech report, our numbers are measured, and **the benchmarks are different, so rows are labeled, not conflated**:
|
|
112
127
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
128
|
+
| | cortexm v0.6.5 | VoiceMem v0.0.1 | Mem0 |
|
|
129
|
+
|---|---|---|---|
|
|
130
|
+
| memory benchmark | **LongMemEval-S, 500-Q full corpus: 95.8%** (μ=0, deterministic judge) | LoCoMo 91.2% (top-5, LLM-judged) | LoCoMo 61.68% (top-200, as reported by VoiceMem) |
|
|
131
|
+
| LLM calls at ingest | **0** (μ=0 deterministic extractor) | OpenAI API required for extraction | LLM extractor required |
|
|
132
|
+
| retrieval | local, deterministic | local | cloud or local |
|
|
133
|
+
| retrieval latency (p50, warmed corpus) | **~50 ms** on a 636-message corpus, 2-CPU VM (1.6 ms on small corpora) | 134 ms | 1,440 ms (as reported by VoiceMem) |
|
|
134
|
+
| memory tokens injected per query | ~1.1k (top-10 structured facts) | 430 | 6,956 (as reported by VoiceMem) |
|
|
135
|
+
| voice pipeline required | **No — text-first.** Works with any front-end; if you have voice, bring your own ASR | Yes — native (ASR + VAD + speaker ID + emotion, streaming) | No |
|
|
136
|
+
| runs fully offline, no API keys | **Yes** | No (ingest needs OpenAI) | No |
|
|
137
|
+
| answer determinism | byte-exact, same result every time | — | — |
|
|
138
|
+
| provenance on every fact | BLAKE3 hash chain to source text | — | — |
|
|
139
|
+
| license | Apache 2.0 | Apache 2.0 | Apache 2.0 |
|
|
117
140
|
|
|
118
|
-
|
|
141
|
+
> **Why no voice?** VoiceMem's pitch is memory *for voice agents* — it owns the ASR, voiceprint, scene, and emotion stack. cortexm's pitch is memory *as a substrate*: it's voice-agnostic and modality-agnostic by design. You don't need to route your users' audio through a memory system to get long-term recall — paste the transcript (or the ASR of your choice) and the trace/VSA/verbatim tiers do the remembering. If you're building a real-time voice agent and want memory co-located with the VAD loop, VoiceMem is the specialized tool; if you want deterministic, auditable memory under any front-end — text today, voice tomorrow, whatever comes next — that's this.
|
|
119
142
|
|
|
120
143
|
### Known boundaries (the short list)
|
|
121
144
|
|
|
@@ -170,7 +193,7 @@ The README is intentionally short. Everything else lives in `docs/`:
|
|
|
170
193
|
### Examples & tests
|
|
171
194
|
|
|
172
195
|
- [`examples/`](examples/) — runnable scripts, offline, no API keys (01_quickstart → 20_agent_session)
|
|
173
|
-
- [`tests/`](tests/) —
|
|
196
|
+
- [`tests/`](tests/) — 733 tests: fabric + enterprise + PPR + concurrency + sandbox + enrichment + WAL crash-recovery + migration + CRDT federation + Rust parity + ZK soundness/forgery + public-API smoke
|
|
174
197
|
- [`cortexm/experimental/`](cortexm/experimental/) — deterministic research borrows (graph recall, coherence) — μ=0 or it doesn't ship
|
|
175
198
|
- [`leaderboard/`](leaderboard/) — self-hosted benchmark site (rebuild: `python leaderboard/build.py`; open `leaderboard/index.html`)
|
|
176
199
|
- [`AGENTS.md`](AGENTS.md) — how AI coding agents should interact with this repo (2026 standard)
|
|
@@ -177,6 +177,7 @@ tests/test_sandbox_enrich.py
|
|
|
177
177
|
tests/test_sparql_rest_v2.py
|
|
178
178
|
tests/test_tier443_abstention_fix.py
|
|
179
179
|
tests/test_v060_ir_pro.py
|
|
180
|
+
tests/test_v065_bench_fixes.py
|
|
180
181
|
tests/test_verbatim.py
|
|
181
182
|
tests/test_wal_recovery.py
|
|
182
183
|
tests/test_zk_soundness.py
|