LearnNewsExamplesServices
Frontmatter
id9912
titlebug(ai): Prevent Vector Apoptosis from eradicating structural entities
stateClosed
labels
bugaicore
assigneestobiu
createdAtApr 12, 2026, 1:37 PM
updatedAtApr 12, 2026, 9:25 PM
githubUrlhttps://github.com/neomjs/neo/issues/9912
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[x] 9914 Epic: Native Edge Graph Auditing and Deduplication Pipeline
closedAtApr 12, 2026, 9:20 PM

bug(ai): Prevent Vector Apoptosis from eradicating structural entities

tobiu
tobiu commented on Apr 12, 2026, 1:37 PM

Context

runSandman.mjs is unnecessarily re-embedding every OPEN issue and discussion during the REM extraction pipeline. We originally suspected sqlite-vec metadata formatting, but the root cause is that GraphService.getOrphanedNodes() considers any node without edges to be "orphaned" and permanently deletes it via Vector Apoptosis.

Objective

Update GraphService.getOrphanedNodes() to explicitly protect structural entities like ISSUE, DISCUSSION, and PULL_REQUEST from apoptosis, so they remain in the Native Edge Graph and ChromaDB, successfully passing the hash equality bypass on subsequent runs.

tobiu added the bug label on Apr 12, 2026, 1:37 PM
tobiu added the ai label on Apr 12, 2026, 1:37 PM
tobiu added the core label on Apr 12, 2026, 1:37 PM
tobiu marked this issue as blocking #9914 on Apr 12, 2026, 1:40 PM
tobiu referenced in commit 24fcafc - "fix(ai): Protect structural graph nodes from Vector Apoptosis (#9912)" on Apr 12, 2026, 9:19 PM
tobiu cross-referenced by PR #9941 on Apr 12, 2026, 9:20 PM
tobiu referenced in commit 39c378a - "fix(ai): Protect structural graph nodes from Vector Apoptosis (#9912) (#9941)" on Apr 12, 2026, 9:20 PM
tobiu closed this issue on Apr 12, 2026, 9:20 PM
tobiu changed title from bug(ai): Debug sqlite-vec metadata schema to restore DreamService Hash Bypass to bug(ai): Prevent Vector Apoptosis from eradicating structural entities on Apr 12, 2026, 9:24 PM
tobiu assigned to @tobiu on Apr 12, 2026, 9:25 PM