Optional lab for recall-quality measurement. Normal Cortex use does not need this directory.
Manual evidence lab. Never a gate. Everything here is one-off, hand-run measurement: curated point-in-time snapshots, not a measurement program.
- No seed, no repeats, no variance (
cv_pct), not ratcheted. No row inresults/is baseline-eligible for the keep-gate or any other repo gate. - Every number in
results/is a point-in-time observation with no performance claim attached — one dev machine, one run, unverified variance. Do not cite these numbers as gates, baselines, or current-engine quality. - This lab sits outside the perf pillar (SPEC-086: no public LongMemEval
quality claim). Gate eligibility would require, per the
tests/fixtures/bench-history/convention: a fixed seed, repeated rounds per workload,cv_pct <= 5on every workload, and a median-ratio ratchet (warn 1.10 / critical 1.25) against a committed baseline. Until that is funded, this lab stays manual evidence only.
| File | Purpose |
|---|---|
run_longmemeval.py |
One-shot runner (~170 LOC): isolated daemon + pure adapter + AMB |
adapters/cortex_http_pure_provider.py |
Zero-tuning HTTP adapter (~95 LOC) |
benchmarks.lock.json |
Pinned AMB commit |
setup-benchmarks.sh / setup-benchmarks.ps1 |
Clone AMB into tools/ (gitignored) |
runs/ |
Raw run output (gitignored) |
results/ |
Saved headline summaries we keep in git |
# 1. Clone the harness
bash benchmarking/setup-benchmarks.sh
# 2. Install AMB deps (from repo root)
cd benchmarking/tools/agent-memory-benchmark && uv sync && cd -
# 3. Build cortex (or set CORTEX_BIN)
cargo build -p cortex-daemon --manifest-path Cargo.toml
# 4. Set a scorer LLM key (GEMINI_API_KEY, GROQ_API_KEY, or OPENAI_API_KEY)
export GROQ_API_KEY=...
# 5. Run LongMemEval-S (20 queries by default)
bash scripts/run-longmemeval.sh
# or: python benchmarking/run_longmemeval.py --query-limit 20Each run writes benchmarking/runs/<timestamp>/ with summary.json, run-manifest.json, and AMB outputs under outputs/.
cortex-http-pureis the only adapter. OneGET /recallper query; daemon ranking returned verbatim.- Runs use an isolated benchmark daemon so benchmark corpora never mix with live user memory.
- Scored runs need an answer/judge LLM key.
--oracleis diagnostics-only (gold-doc ceiling), not a headline score. - Until funded LongMemEval-S validation exists, do not claim recall-quality lifts in release copy.
tests/purity-gates/adapter-surface-check.sh keeps the pure adapter under 150 LOC and free of tuning patterns. This is a code-shape check on the adapter source only — it is not a performance or quality gate, and it says nothing about recall quality.