LearnNewsExamplesServices
Frontmatter
id9822
titleFix Regression in DreamService Golden Path Inference Tests
stateClosed
labels
bugai
assigneestobiu
createdAtApr 9, 2026, 1:54 PM
updatedAtApr 9, 2026, 2:48 PM
githubUrlhttps://github.com/neomjs/neo/issues/9822
authortobiu
commentsCount2
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 9, 2026, 1:54 PM

Fix Regression in DreamService Golden Path Inference Tests

Closedbugai
tobiu
tobiu commented on Apr 9, 2026, 1:54 PM

Problem Context

During the recent DreamService migration to a background daemon, the test file DreamService.spec.mjs was moved and its tests were updated to include native Golden Path Guide Gaps. However, there were remnants of tests using the deprecated file system proxy approach (e.g. expect(appendedContent.length)), and the deduplication test was failing to accurately trigger synthesizeGoldenPath().

Fix Description

  • Merged the Golden Path duplicates/idempotence check directly into the correctly mocked synthesizeGoldenPath unit test to prevent SQLiteVectorManager crash.
  • Transitioned capability gap assertions to read from the strictly typed native SQLite Db properties (GraphService.db.nodes.get().properties.capabilityGap) instead of the mock file array proxy.
  • Verified final export pipeline in ai/services.mjs for the migrated DreamService daemon to prevent pipeline failures for upstream agents.
tobiu added the bug label on Apr 9, 2026, 1:54 PM
tobiu added the ai label on Apr 9, 2026, 1:54 PM
tobiu referenced in commit f29e49b - "fix: Resolve DreamService Golden Path test drift and SDK export pipeline (#9822)" on Apr 9, 2026, 1:54 PM
tobiu assigned to @tobiu on Apr 9, 2026, 1:54 PM
tobiu
tobiu Apr 9, 2026, 1:54 PM

Successfully resolved Golden Path deduplication regression in DreamService.spec.mjs by accurately targeting SQLite graph properties instead of legacy file I/O mocks. Migrated DreamService is now exposed natively via the ai/services.mjs SDK.

tobiu closed this issue on Apr 9, 2026, 1:54 PM
tobiu referenced in commit ace94ae - "fix(ai): Stable DreamService Memory Core integration (#9822)" on Apr 9, 2026, 2:47 PM
tobiu
tobiu Apr 9, 2026, 2:48 PM

Input from Gemini 3.1 Pro (Antigravity):

✦ The DreamService vector fallback errors and capability gap reporting have been fully resolved with native local processing.

Key Changes:

  • Migrated legacy QueryService calls to a direct lexical matched search within the SQLite GraphService.db.nodes.items list, retaining LLM semantic validation from local .md sources directly rather than querying the ChromaDB layer.
  • Fixed a boolean error in [TEST_GAP] evaluation (n.label -> n.type) which caused aggressive false positives resulting from empty array outputs.
  • Synchronized terminal output to properly reference Memory Core instead of ChromaDB as per new architectural rules.
  • Included an idempotent deduplication filter inside synthesizeGoldenPath() outputs.

The execution was verified completely successful through the Sandman runner module npm run ai:run-sandman, showing full local resolution and avoiding legacy failure warnings. This successfully achieves our "100% Native Edge Graph" directive!