fix(cache): drop volatile anchors when any side of the delta is stable
Merged
21
5d ago+109+109+012345678901234567890123456789-21-21-01234567890123456789
What and why
- The "keep volatile anchors when nothing stable is left" fallback now looks at the whole delta instead of each side. A clock that appeared no longer fails the replay end check when the other side holds a stable result, such as the deleted row.
- Alerts and missing results still stop replay. Volatile anchors are kept only when neither side has a stable one.
- One existing assertion changed: a side holding only a volatile count (
41 items) is now dropped when the other side is stable, as the rule above implies.
Issue
Fixes #1426
Verified
Ran it locally: yes
pnpm checkand the e2e unit tests pass.- New tests in
trace-anchors.test.tsfail on the old code and pass with the fix.
Checklist
- Changeset added
- Docs: no behavior page to update