LearnNewsExamplesServices
Frontmatter
id9946
titleFix Topology Hallucination Regression in DreamService Hybrid GraphRAG
stateClosed
labels
bugaiarchitecture
assigneestobiu
createdAtApr 13, 2026, 9:23 AM
updatedAtApr 14, 2026, 12:33 AM
githubUrlhttps://github.com/neomjs/neo/issues/9946
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 13, 2026, 9:24 AM

Fix Topology Hallucination Regression in DreamService Hybrid GraphRAG

Closed v13.0.0/archive-v13-0-0-chunk-4 bugaiarchitecture
tobiu
tobiu commented on Apr 13, 2026, 9:23 AM

Problem

The Native Edge Graph is hallucinating priorities. Specifically, blocked issues (like #9299 which is blocked by #9915) are incorrectly surfacing in the Golden Path despite explicit BLOCKED_BY attributes. This represents a critical regression from the intended topological discounting algorithms designed in #9910.

Architectural Root Cause: Following the shift to the localized SQLite neo_graph_nodes architecture, the Graph layer was migrated to heavily rely on Lazy Vicinity Loading (loadNodeVicinitySync) rather than a full upfront RAM boot, to protect Node.js V8 memory limits. However, the logic evaluating edge weights within DreamService.mjs directly queries the raw RAM stores (GraphService.db.edges.items and getByIndex()) without first invoking GraphService.db.getAdjacentNodes().

Since the cache remained completely cold organically, the BLOCKS edges inserted into SQLite were NEVER mapped into RAM during synthesizeGoldenPath(). This caused blockers arrays to evaluate as completely empty, silently bypassing the isBlocked circuit-breaker logic.

Solution

  1. Ensure GraphService.db.getAdjacentNodes(issueId, 'both') is executed immediately prior to querying GraphService.db.edges.items in ingestIssueStates() to guarantee the active topological bounds are mapped into Neo.data.Store.
  2. Similarly, invoke GraphService.db.getAdjacentNodes(issueId, 'both') before the getByIndex block inside synthesizeGoldenPath().
  3. Validating the Golden Path re-calculates #9299 accurately as structurally rejected.
tobiu added the bug label on Apr 13, 2026, 9:23 AM
tobiu added the ai label on Apr 13, 2026, 9:23 AM
tobiu added the architecture label on Apr 13, 2026, 9:23 AM
tobiu referenced in commit f5f95ab - "fix: Stabilize DreamService hybrid graph topology cohesion (#9946)" on Apr 13, 2026, 9:24 AM
tobiu cross-referenced by PR #9947 on Apr 13, 2026, 9:24 AM
tobiu referenced in commit 5e98aef - "fix: Stabilize DreamService hybrid graph topology cohesion (#9946) (#9947)" on Apr 13, 2026, 9:24 AM
tobiu closed this issue on Apr 13, 2026, 9:24 AM
tobiu assigned to @tobiu on Apr 14, 2026, 12:33 AM