Repository navigation
fix(import): import a live row whose content was only forgotten (#1689) - #1690
Merged
Merged
Conversation
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.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Nov 8, 2026
Closed
Merged
ajianaz
added a commit
that referenced
this pull request
Nov 8, 2026
This was referenced Nov 9, 2026
This was referenced Nov 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
forgetsoft-deletes (deprecated=1) and is recoverable; onlyforget --reason "wrong ..."writesrejected_valuesand permanently rejects (feat(core): rejected-value tombstone, so a value forgotten as wrong cannot be written again #1627, untouched).deprecatedin the file (Cloud round-trip), and exact duplicates of live rows.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 --confirmafter 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 newmetadata.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
benchmarks/longmemeval/results/default-500q-fix32a5cf3b.jsonl.cargo test --workspacegreen (uteke-core 1107 + all suites, 0 failures),cargo fmt+cargo clippy --workspace --all-targetsclean.an_anonymous_row_matching_a_forgotten_one_imports_as_a_new_live_row,a_deprecated_row_over_a_forgotten_copy_is_skipped; updateda_row_soft_deleted_in_the_target_is_not_resurrected(now same-id only).forget --reason+ import still refused).Closes #1689