Skip to content

fix(import): import a live row whose content was only forgotten (#1689) - #1690

Merged
ajianaz merged 2 commits into
developfrom
fix/import-tombstone-skip
Nov 8, 2026
Merged

ajianaz merged 2 commits into
developfrom
fix/import-tombstone-skip

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

What

Why

LongMemEval-S 500Q regressed on v0.23.0 vs the committed v0.20.0 baseline: any@5 0.9820 -> 0.9740, strict@5 0.8800 -> 0.8580, misses@50 0 -> 5, strict@5 flips 11 down / 0 up (issue #1689). Root cause (empirically confirmed): the benchmark harness runs forget --all --confirm after EVERY question on a shared store; every gold session whose content byte-matches a session of an earlier question (verified for all 11 regressed qids) was then skipped by the #1636 import dedup and never stored under its new metadata.session_id.

Deterministic 3-arm repro (import Q14 -> forget --all -> import Q17 containing the byte-identical gold session): v0.20.0 PRESENT, develop ABSENT, this fix PRESENT.

Testing

  • Full LongMemEval-S 500Q run on Modal (akun ajianaz, app ap-HNerZq2X0lO17WJ0CytCfb, 10 shards, strategy default, binary built from this exact SHA, ORT lib from v0.23.0): any@5 0.9820, strict@5 0.8800, strict@10 0.9540, misses@50 0, strict@5 flips -0/+0 vs the committed v0.20.0 baseline - all audit gates of Plan: restore LME-S any@5 >= 0.982 (v0.23.0 regression) - hypotheses H1-H7, forensics-first bisect, audit-amended gates #1689 pass. Receipts committed: benchmarks/longmemeval/results/default-500q-fix32a5cf3b.jsonl.
  • cargo test --workspace green (uteke-core 1107 + all suites, 0 failures), cargo fmt + cargo clippy --workspace --all-targets clean.
  • New tests: an_anonymous_row_matching_a_forgotten_one_imports_as_a_new_live_row, a_deprecated_row_over_a_forgotten_copy_is_skipped; updated a_row_soft_deleted_in_the_target_is_not_resurrected (now same-id only).
  • rejected_values gate regression-covered by existing tombstone.rs tests (forget --reason + import still refused).

Closes #1689

A plain forget soft-deletes (deprecated=1) and is recoverable; only
forget --reason writes rejected_values and rejects (#1627, untouched).
#1633/#1636 made import skip any row whose content matched a soft-deleted
one, so re-importing after a forget (restored backup, the LongMemEval
harness forgetting after each question) dropped the rows.

An anonymous live row over a forgotten copy now inserts as a new live row.
Still skipped: a row carrying the forgotten memory's own id, a row marked
deprecated in the file, and exact duplicates of live rows.
…1689)

Full 500-question run on Modal (10 shards, strategy default, binary built
from 32a5cf3, ORT lib from v0.23.0), app ap-HNerZq2X0lO17WJ0CytCfb, 28129s
wall clock. any@5 0.9820, strict@5 0.8800, misses@50 0, strict@5 flips
-0/+0 vs the committed v0.20.0 baseline - all audit gates of #1689 pass.
@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit 3bc72c1 into develop Nov 8, 2026
15 checks passed
@ajianaz
ajianaz deleted the fix/import-tombstone-skip branch November 8, 2026 10:11
ajianaz added a commit that referenced this pull request Nov 9, 2026
… (#1701)

32a5cf3, the commit measured in the post-regression LongMemEval run, is the pre-squash branch commit of the #1690 fix, which landed in develop as 3bc72c1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Plan: restore LME-S any@5 >= 0.982 (v0.23.0 regression) - hypotheses H1-H7, forensics-first bisect, audit-amended gates

1 participant