LearnNewsExamplesServices
Frontmatter
id9803
titleHybrid GraphRAG Phase 2: Pipeline Tuning & Deterministic Topology
stateClosed
labels
epicaiarchitecture
assigneestobiu
createdAtApr 9, 2026, 10:11 AM
updatedAtApr 9, 2026, 10:32 AM
githubUrlhttps://github.com/neomjs/neo/issues/9803
authortobiu
commentsCount1
parentIssuenull
subIssues
9804 Implement Deterministic Edge Mapping for Document Gaps
9805 Centralize sandman_handoff.md generation in DreamService
9806 Enforce TTL Pruning for Graph Topology Gap Tracking
9807 Enforce Type-Aware Gap Targeting Constraints
9809 Ensure GitHub Discussions Surface Natively in the Golden Path
subIssuesCompleted5
subIssuesTotal5
blockedBy[]
blocking[]
closedAtApr 9, 2026, 10:32 AM

Hybrid GraphRAG Phase 2: Pipeline Tuning & Deterministic Topology

Closedepicaiarchitecture
tobiu
tobiu commented on Apr 9, 2026, 10:11 AM

Problem

The initial iteration of the Hybrid GraphRAG pipeline successfully stood up the Native Edge Graph (SQLite) and basic Tri-Vector synthesis (Issue #9673). However, the sandman_handoff.md file suffers from infinite bloat due to unpruned appending, and the Capability Gap Inference generates false positives (Docs/Test gaps) by relying heuristically on LLM text output rather than deterministic codebase artifacts (e.g., jsdocx.mjs). By shifting to deterministic graph edges (e.g., mapping MISSING_DOCS directly from valid structural paths), we bypass hallucinated gaps and secure strategic mapping.

Sub-Tasks

  • Implement Deterministic Edge Mapping for Document Gaps (docs/output/structure.json)
  • Implement Deterministic Edge Mapping for Playwright Test Gaps
  • Centralize sandman_handoff.md regeneration in DreamService.synthesizeGoldenPath
  • Enforce TTL (Time-to-Live) Pruning for historical Topological Conflicts
  • Refactor LLM ReAct Gap pass to strictly evaluate "Strategic Drift"

Definition of Done

  • sandman_handoff.md correctly scales, is overwritten idempotently, and cleanly organizes the Golden Path and Structural gaps.
  • executeCapabilityGapInference no longer flags adequately documented classes (e.g. MainContainer) as missing documentation.
  • All gaps are tracked natively as formal SQLite Edge relationships (MISSING_DOCS, MISSING_TESTS, CAUSES_CONFLICT).
tobiu added the epic label on Apr 9, 2026, 10:11 AM
tobiu added the ai label on Apr 9, 2026, 10:11 AM
tobiu added the architecture label on Apr 9, 2026, 10:11 AM
tobiu cross-referenced by #9804 on Apr 9, 2026, 10:12 AM
tobiu cross-referenced by #9805 on Apr 9, 2026, 10:12 AM
tobiu cross-referenced by #9806 on Apr 9, 2026, 10:12 AM
tobiu added sub-issue #9804 on Apr 9, 2026, 10:12 AM
tobiu added sub-issue #9805 on Apr 9, 2026, 10:12 AM
tobiu added sub-issue #9806 on Apr 9, 2026, 10:12 AM
tobiu cross-referenced by #9807 on Apr 9, 2026, 10:14 AM
tobiu added sub-issue #9807 on Apr 9, 2026, 10:14 AM
tobiu cross-referenced by #9809 on Apr 9, 2026, 10:22 AM
tobiu added sub-issue #9809 on Apr 9, 2026, 10:22 AM
tobiu referenced in commit 192f892 - "fix(memory-core): Resolve SystemLifecycleService race condition during Discussion ingestion and finalize idempotent sandman handoff creation (#9803)" on Apr 9, 2026, 10:31 AM
tobiu assigned to @tobiu on Apr 9, 2026, 10:32 AM
tobiu
tobiu Apr 9, 2026, 10:32 AM

Input from Antigravity (Gemini 3.1 Pro):

Epic Completed: Hybrid GraphRAG Phase 2

All objectives for transitioning the Neo.mjs Hybrid GraphRAG system to a production-ready pipeline have been finalized. The codebase was securely aligned with structural deterministic mapping:

  1. Eliminated LLM hallucination in Gap inference by enforcing Type-Aware mapping with SQLite Native Edge structures (no more abstract false-positives).
  2. Centralized and strictly bounded the sandman_handoff.md generation logic to ensure idempotent overwrite (preventing bloat/duplication).
  3. Hardcoded a localized 7-day TTL pruning loop inside the native graph traversal (eradicating outdated gaps).
  4. Securely pipelined GitHub Discussions as Native Edge [DISCUSSION] Nodes so high-level strategic topics appear cleanly without disruption.

The memory-core systems are highly aligned and autonomous pipeline operations are stabilized locally. Epic closed.

tobiu closed this issue on Apr 9, 2026, 10:32 AM