recall scoring: recency from day zero, neutral abandoned weight, release 6.10.0 #28
No reviewers
Labels
No labels
upstream-feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
tim/omnimem!28
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/recall-scoring-23"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #23. Lands as its own release so the ranking move can be attributed.
Benchmark first
The existing benches cannot see this change: the embedding bench measures speed and vector equivalence, and the LongMemEval harness ingests everything "now" with no outcomes (every age is ~0, nothing is abandoned), and costs about $30 per 60-question run. So the first commit adds
scripts/recall_scoring_bench.py: seeded scenarios with controlled ages and recorded outcomes, the realRecallPipeline, a throwaway valkey-search and the real model.docs/recall-scoring.mdhas the method and how to run it.Upstream's 7.0.3 notes give no numbers, so I read the Rust (
recall.rsat v7.0.5) for the exact change: recency declines linearly from 1.0 at day 0 to 0.9 at the cliff, then continues at the old rate; abandoned weight 0.1 -> 1.0; no auto-suppression on abandonment.Results (6.9.4 vs this branch, 3 paired seeds, mean; range is the per-seed change)
Things the numbers say that I did not expect:
Changes
recency_weight()replaces the two inline copies inmemory/recall.py.RECENCY_DECAY_DAYS <= 0keeps the old behaviour (old rate from day zero).compute_experience_weight: abandoned 1.0 (effort still never amplifies it).experience_weight, so changing the formula alone would leave every existing dead end at 0.1.migrate_abandoned_weightruns at startup, idempotent, does not touchupdated_at(the skill compiler reads that as "source changed").record_experience: auto-suppression removed,auto_suppressedkey gone from the result. Suppressions made by earlier versions stay (a set cannot tell them from manual ones): CHANGELOG tells the operator to review withlist_suppressions().test_abandoned_weight_ignores_effort(0.1 -> 1.0) andtest_no_ranking_effect(two identical memories written milliseconds apart no longer tie exactly because recency counts from day zero; the test now pinscreated_at, the provenance assertion is unchanged).docs/recall-scoring.md;memory-episodic.md,configuration.md,features.md,CLAUDE.mdupdated. Version 6.10.0 (minor: behaviour change) + CHANGELOG.Checks
ruff check,ruff format --check, ASCII check, bandit on the changed files (no findings, no suppressions added),pytest: 2086 passed, 1 skipped (was 2071).🤖 Generated with Claude Code