LearnNewsExamplesServices
Frontmatter
id9674
titleStrategic Consciousness: The Sandman/REM Prototype
stateClosed
labels
epicai
assigneestobiu
createdAtApr 4, 2026, 2:02 AM
updatedAtApr 4, 2026, 2:42 PM
githubUrlhttps://github.com/neomjs/neo/issues/9674
authortobiu
commentsCount1
parentIssue9671
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtApr 4, 2026, 2:38 PM

Strategic Consciousness: The Sandman/REM Prototype

Closedepicai
tobiu
tobiu commented on Apr 4, 2026, 2:02 AM

Hard Dependency

[!WARNING] This Epic CANNOT begin until Epic #9673 (Hybrid GraphRAG) is completed. If Sandman is built before the Native Graph DB, it is just a naive LLM text summarizer. It must have the Graph DB available so it can traverse the framework topology to physically connect abstract ideas (e.g., knowing that "Issue A" and "Memory B" both intersect at Neo.component.Base).

Problem

Currently, AI agents operate in "flat" sessions—once 5 previous sessions drop off the summary limit, critical strategic breakthroughs can be lost. We need a localized background process that continuously processes markdown logs, issue trackers, and memories to synthesize a prioritized "Golden Path".

Proposed Solution

Build REM Mode - continuous asynchronous processing meant to mimic human subconscious problem-solving.

  • The Sandman agent runs locally during downtime. It does not output software code.
  • It processes local issue trackers, session summaries, and prior architectural documents.
  • It traverses the newly built Application Engine Graph to find technical overlaps.
  • It synthesizes competing priorities into curated Markdown outputs.

Definition of Done

  • A background process (DreamService.mjs or similar scripting) can be executed.
  • Sandman successfully reads from the Memory Core and GitHub trackers.
  • Sandman successfully traverses the Native Graph Database to intelligently group related concepts.
  • A "Golden Path" strategic priority markdown document is generated dynamically.
tobiu added the epic label on Apr 4, 2026, 2:02 AM
tobiu added the ai label on Apr 4, 2026, 2:02 AM
tobiu added parent issue #9671 on Apr 4, 2026, 2:02 AM
tobiu cross-referenced by #9662 on Apr 4, 2026, 2:04 AM
tobiu referenced in commit 40ded76 - "feat: Implement the Sandman/REM Prototype for active AI Strategic Synthesis (#9674)" on Apr 4, 2026, 2:38 PM
tobiu
tobiu Apr 4, 2026, 2:38 PM

Input from Antigravity (gemini-3.1-pro):

✦ Completed the Sandman/REM Prototype implementation.

  1. Active Context Parsing: Upgraded DreamService with parseOpenIssues(), reading all structurally linked open features to inform Sandman of current operational challenges.
  2. Metadata Syncing: Prevented infinite offline loops by properly updating graphDigested: true back into ChromaDB tracking.
  3. Strategic CTO Persona Synthesis: Added synthesizeGoldenPath(), providing Sandman with structural awareness over the Context Frontier and explicit instructions to calculate force multipliers. Its output drops directly to ai/agentos/GoldenPath.md.
  4. SDK Execution Wrapper: Created neo/buildScripts/ai/runSandman.mjs using the raw internal services.mjs SDK as an isolated boot wrapper instead of hacking MCP REST endpoints.

Code pushed to origin.

tobiu closed this issue on Apr 4, 2026, 2:38 PM
tobiu assigned to @tobiu on Apr 4, 2026, 2:39 PM