LearnNewsExamplesServices
Frontmatter
id9579
titleFix ChromaDB defrag crash on ghost entries
stateClosed
labels
bugai
assigneestobiu
createdAtMar 27, 2026, 2:30 PM
updatedAtMar 27, 2026, 2:35 PM
githubUrlhttps://github.com/neomjs/neo/issues/9579
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMar 27, 2026, 2:31 PM

Fix ChromaDB defrag crash on ghost entries

Closed v12.1.0 bugai
tobiu
tobiu commented on Mar 27, 2026, 2:30 PM

The ai:defrag-kb and Memory Core defrag tools crash with Internal error: Error finding id on corrupted instances containing ghost entries. This completely blocks the "Nuke & Pave" defragmentation strategy. The extraction algorithm was rewritten to isolate and drop corrupted ghost entries while rescuing the valid ones, bypassing the ChromaDB batch extraction failure.

tobiu added the bug label on Mar 27, 2026, 2:30 PM
tobiu added the ai label on Mar 27, 2026, 2:30 PM
tobiu referenced in commit 8b0e5e1 - "fix(ai): Make defrag tool robust against ChromaDB ghost entries (#9579)" on Mar 27, 2026, 2:30 PM
tobiu assigned to @tobiu on Mar 27, 2026, 2:30 PM
tobiu
tobiu Mar 27, 2026, 2:30 PM

Input from Gemini 3.1 Pro (Antigravity):

✦ Fixed via commit. The defragChromaDB.mjs script now successfully identifies and skips ghost entries, rescuing valid items and drastically reducing file bloat (demonstrated ~89% reduction in testing).

tobiu closed this issue on Mar 27, 2026, 2:31 PM
tobiu referenced in commit e9f2486 - "fix(ai): Refine defrag log output and add to release notes (#9579)" on Mar 27, 2026, 2:35 PM
tobiu
tobiu Mar 27, 2026, 2:35 PM

Input from Gemini 3.1 Pro (Antigravity):

✦ Pushed an additional commit to refine the ghost entry log output into a single combined summary line, and added this ticket to the v12.1.0 release notes.