⚠️ Critical: Timestamp Corruption in v8.25.0-v8.27.0 Hybrid Backend - Recovery Guide #231
doobidoo
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
A critical bug in the hybrid backend's drift detection caused timestamp corruption during Cloudflare synchronization. All
created_attimestamps were overwritten with the sync time instead of preserving original creation dates.Affected Versions: v8.25.0, v8.26.0, v8.27.0
Fixed In: v8.27.1
Impact: Up to 86% of memories may show incorrect creation dates
How to Check If You're Affected
Run this diagnostic query on your SQLite database:
Signs of Corruption:
Recovery Options
Option A: Restore from Dashboard Export (Recommended)
If you have a JSON export from before the corruption occurred:
Export from clean source (if available):
Run recovery script:
Option B: Restore from Cloudflare
If your Cloudflare backend has correct timestamps:
Prevention
Technical Details
Root Cause:
The hybrid backend's drift detection (
hybrid.pylines 924-936) updated metadata without includingcreated_atfields, causing them to be reset to current time duringupdate_memory_metadata().Fix in v8.27.1:
hybrid.py: Drift detection now includescreated_atandcreated_at_isoin updatessqlite_vec.py:update_memory_metadata()respectspreserve_timestampsflagcloudflare.py: Consistent timestamp handlingRelated:
scripts/maintenance/restore_from_json_export.pyNeed Help?
If you're affected and need assistance with recovery:
We apologize for any inconvenience caused by this bug.
Beta Was this translation helpful? Give feedback.
All reactions