✨ WP2: update-integrity benchmark — supersession scenario suite - #9
Merged
Conversation
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.
Summary
Executes the WP2 packet (lane B, ungated): a small, honest, reproducible test of the core claim — when a fact changes, the engine returns the current truth and keeps the old one queryable.
bench/update_integrity.py: ten scripted scenarios through the public API only (Memory.add→Memory.search) — employer change, identity change (mem0#4896's class of case), city move, preference flip, additive "also" EXTENDS, replacement-after-additive retire-all, multi-valued preservation, as-of-before-everything, restart persistence, verbatim-restatement no-dup (WP11 pin). Per scenario: top-1 is the new fact, superseded fact hasis_latest=False+superseded_by,as_of=<t before update>returns the old fact.--markdownrenders the results table from a single command (26/26 assertions PASS, exit 0); table pasted into the new appendix indocs/competitive-landscape.md.tests/test_update_integrity_scenarios.py(bench-import via thetest_phase2_*sys.path precedent; excluded from the sdist like its peers).src/changes (git diff --stat main -- src/is empty).Test plan
PYTHONPATH=src .venv/bin/python bench/update_integrity.py --markdown→ ALL PASS, exit 0.🤖 Generated with Claude Code
https://claude.ai/code/session_01YRU73aDWiYUqgaL5UETUMp