EviCortex

Phase C: pinned semantic retrieval and external evaluation

Status: the offline dense-embedding path, core reranker seam, strict LongMemEval adapter, and reader-free comparison runner are implemented. A cached-model semantic smoke passes; the official LongMemEval-S artifact, shared reader, cross-encoder adapter, and ANN scale gates have not yet been run.

Purpose

Phase C tests whether the evidence-ledger/context-compiler design still helps when EviCortex and a metadata-aware hybrid chunk comparator use the same real semantic encoder. It is an evaluation phase, not a claim that EviCortex has replaced retrieval-augmented generation.

The comparison unit is original evidence. Both systems receive the same conversation turns, timestamps, namespace, encoder, query, candidate limits, and hard prompt budget. Metrics are computed after prompt packing so a system does not receive credit for evidence that would not actually fit in the reader context.

Implemented checkpoint

Reproduction

The bundled smoke fixture is deliberately synthetic and is never labelled as the official LongMemEval dataset:

$env:PYTHONPATH = "src"
python -m benchmarks.run_phase_c `
  --dataset benchmarks/fixtures/longmemeval_semantic_smoke.json `
  --model unsloth/bge-small-en-v1.5 `
  --revision 7382f1122c10708a1faa0bbe548674a14b1ffe7e `
  --pooling cls `
  --query-prefix="Represent this sentence for searching relevant passages: " `
  --document-prefix= `
  --max-length 128 `
  --budget-tokens 256 `
  --cutoffs 1,2

For a local filesystem model, compute and pin local_transformers_artifact_sha256(path) and pass the result as --local-artifact-sha256. For a provider that executes custom code, pass both --trust-remote-code and an audited --code-revision; a model commit alone is insufficient when auto_map points at another repository.

The machine-readable smoke report is prototype-c-semantic-smoke.json, with a concise result interpretation.

Remaining evidence gates

Until those gates pass, the only allowed claim is that the pinned local semantic plumbing and reader-free benchmark path execute end to end on the named fixture and configuration.