You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
🐛 [BUG] SQLite/index inconsistency window on forget() #231
Two related concerns about SQLite-to-index consistency:
1. remember_precomputed: SQLite insert before index (line 84)
SQLite insert happens while index lock is held. If process crashes between SQLite commit and index insert, memory exists in SQLite but not in vector index. Currently acknowledged with comment — orphan is harmless, cleaned by verify/repair.
2. forget: SQLite delete before index remove (line 220)
SQLite delete happens BEFORE acquiring the index lock. If process crashes between SQLite delete and index removal, memory is gone from SQLite but remains as orphan in vector index. Again acknowledged with comment.
Both cases rely on verify/repair for cleanup, but the inconsistency windows could be narrowed.
Affected Code
crates/uteke-core/src/operations.rs lines 84, 220
Fix
For forget(): acquire index lock before store.delete() to narrow the inconsistency window.
For remember(): current approach is acceptable — index lock is acquired first.
Activity
release: v0.0.11 — audit fixes from Cora scan (#221-#231)
ajianaz commentedon Jun 7, 2026
Fixed in v0.0.11 (PR #234)
release: v0.0.11 — audit fixes from Cora scan (#221-#231)