Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(retrieval): LongMemEval lever ablation foundation#284

Merged
jamby77 merged 1 commit into
masterfrom
feature/longmemeval-ablation-foundation
Jul 6, 2026
Merged

feat(retrieval): LongMemEval lever ablation foundation#284
jamby77 merged 1 commit into
masterfrom
feature/longmemeval-ablation-foundation

Conversation

@jamby77

@jamby77 jamby77 commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Part of the LongMemEval recall→QA epic (project board item 205255004). Stack 1/4 — base master.

Foundation the per-lever phases plug into:

  • eval/longmemeval/levers.ts: fixed LEVER_ORDER, resolveEnabledLevers flag resolution, createCostReport per-lever embed/llm/latency accumulator
  • thread levers + CostReport through runEval; surface them on EvalSummary/formatSummary
  • resolve LONGMEMEVAL_* flags in the run CLI

Baseline preserved byte-for-byte when no flags set. 6 tests; retrieval suite green.

Merge bottom-up; PRs 2–4 stack on this.


Note

Low Risk
Eval-only harness scaffolding; no production retrieval logic is altered and default runs remain baseline.

Overview
Adds LongMemEval ablation plumbing so later PRs can toggle retrieval levers via env flags without changing baseline behavior when none are set.

New eval/longmemeval/levers.ts defines canonical LEVER_ORDER, maps each lever to LONGMEMEVAL_* env flags (resolveEnabledLevers), and provides createCostReport to accumulate per-lever embed/LLM/latency totals. The eval CLI resolves flags, logs the enabled lever chain, and passes levers plus costReport into runEval. EvalSummary and formatSummary now include enabled levers and cost rows when any levers are on.

runEval accepts the new config and echoes levers/costs on the summary; retrieval behavior is unchanged until follow-up stacks wire levers into the query path. Six vitest cases cover flag ordering, cost aggregation, default inertness, and summary formatting.

Reviewed by Cursor Bugbot for commit d69774e. Bugbot is set up for automated code reviews on this repo. Configure here.

- add eval/longmemeval/levers.ts: fixed LEVER_ORDER, resolveEnabledLevers
  flag resolution, and createCostReport per-lever cost accumulator
- thread optional levers + CostReport through runEval; surface enabled
  levers and per-lever embed/llm/latency on EvalSummary and formatSummary
- resolve LONGMEMEVAL_* flags in the run CLI and print active levers
- baseline preserved byte-for-byte when no flags are set
@jamby77 jamby77 merged commit 3e15e0e into master Jul 6, 2026
3 checks passed
@jamby77 jamby77 deleted the feature/longmemeval-ablation-foundation branch July 6, 2026 16:02
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants