Frontmatter
| id | 9814 |
| title | Fix "undefined" Agent OS Graph Nodes in DreamService Gap Analysis |
| state | Closed |
| labels | bugai |
| assignees | tobiu |
| createdAt | Apr 9, 2026, 11:49 AM |
| updatedAt | Apr 9, 2026, 11:49 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9814 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 9, 2026, 11:49 AM |
Fix "undefined" Agent OS Graph Nodes in DreamService Gap Analysis
Closedbugai
tobiu assigned to @tobiu on Apr 9, 2026, 11:49 AM

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
The Problem
The
sandman_handoff.mdfile was generatingundefinedidentifiers 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). TheDreamServicewas iterating overGraphService.db.nodes.itemsand accessingnode.name. Native nodes from SQLite map directly to an internal structure containingid,label, andproperties. There is no root-levelnameproperty (it is stored mapping toproperties.name).File fixed:
ai/mcp/server/memory-core/services/DreamService.mjsThe Fix & Avoided Traps
Instead of globally refactoring the graph schema to hoist
.nameor applying a generic fallback logic (a "Gold Standard" LLM trap that can clutter Neo.mjs core), I targeted the most architecturally stable identifier:node.idstring 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}\`.