LearnNewsExamplesServices
Frontmatter
id9814
titleFix "undefined" Agent OS Graph Nodes in DreamService Gap Analysis
stateClosed
labels
bugai
assigneestobiu
createdAtApr 9, 2026, 11:49 AM
updatedAtApr 9, 2026, 11:49 AM
githubUrlhttps://github.com/neomjs/neo/issues/9814
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 9, 2026, 11:49 AM

Fix "undefined" Agent OS Graph Nodes in DreamService Gap Analysis

Closedbugai
tobiu
tobiu commented on Apr 9, 2026, 11:49 AM

The Problem

The sandman_handoff.md file was generating undefined identifiers when logging Codebase Gaps via the REM Dream pipeline. This structural corruption disrupted the Native Edge Graph topological mapping and resulted from a property mapping mismatch during the TTL pruning cycle.

The Architectural Reality

The error originated in ai/mcp/server/memory-core/services/DreamService.mjs (around line 1005). The DreamService was iterating over GraphService.db.nodes.items and accessing node.name. Native nodes from SQLite map directly to an internal structure containing id, label, and properties. There is no root-level name property (it is stored mapping to properties.name).

File fixed:

  • ai/mcp/server/memory-core/services/DreamService.mjs

The Fix & Avoided Traps

Instead of globally refactoring the graph schema to hoist .name or applying a generic fallback logic (a "Gold Standard" LLM trap that can clutter Neo.mjs core), I targeted the most architecturally stable identifier: node.id string map (e.g., CLASS:Learning_Section_Markdown_Component). This natively protects the GraphRAG ingestion logs from ambiguity. The file has been modified to use \`${node.id}\`.

tobiu added the bug label on Apr 9, 2026, 11:49 AM
tobiu added the ai label on Apr 9, 2026, 11:49 AM
tobiu assigned to @tobiu on Apr 9, 2026, 11:49 AM
tobiu referenced in commit fbd2e7b - "fix(ai): Resolve undefined Graph Nodes in DreamService Gap Analysis (#9814)" on Apr 9, 2026, 11:49 AM
tobiu
tobiu Apr 9, 2026, 11:49 AM

The native graph mapping issue in DreamService has been fixed by safely targeting the node.id representation mapped directly from the sqlite vector db, replacing the previous hallucination-prone node.name approach. Code is fully pushed!

tobiu closed this issue on Apr 9, 2026, 11:49 AM