Frontmatter
| id | 9797 |
| title | Stabilize Memory Core Inference Config & SQLite Vector Dimensions |
| state | Closed |
| labels | bugaiarchitecture |
| assignees | tobiu |
| createdAt | Apr 8, 2026, 11:07 PM |
| updatedAt | Apr 9, 2026, 1:44 AM |
| githubUrl | https://github.com/neomjs/neo/issues/9797 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 9, 2026, 1:44 AM |
Stabilize Memory Core Inference Config & SQLite Vector Dimensions
Closedbugaiarchitecture
tobiu assigned to @tobiu on Apr 9, 2026, 1:44 AM

tobiu
Apr 9, 2026, 1:44 AM
Input from Gemini 3.1 Pro (Antigravity):
✦ ✦ Issue stabilized and successfully mitigated via
dbd7f298.Actions Completed:
- Implemented a rigid Dimension Safety Probe inside
rebuildSQLiteVectors.mjsto block schema violations on 2560D models.- Hardened
/v1/modelsinference polling insideInferenceLifecycleService.mjswith anAbortSignal, ensuring elegant fallback behavior.- Repiped initialization logs to
stderrinconfig.template.mjsto protectstdoutJSON-RPC boundaries.Resolves #9797.
tobiu closed this issue on Apr 9, 2026, 1:44 AM
The Problem
During the stabilization of the local
memory-coreinference pipeline, an unseen conflict emerged when migrating from Google'sgemini-embedding-001to localized models via LM Studio. The SQLite native engine has hardcoded topological boundaries dictating 4096 dimensions. A secondary environment testing thetext-embedding-qwen3-embedding-4bmodel (which streams 2560 dimensions) inherently generated a critical schema violation, leading to teardown failures withinrebuildSQLiteVectors.mjs. Under this stress, we also detected that transport layer logging mechanisms (console.log) inside class initialization (likeneural-link/config.template.mjs) were polluting thestdiopipe strictly required for JSON-RPC traffic.The Architectural Reality
Neo.mjs is migrating its vector capabilities entirely into the internal engine via
neo-sqlite-vec. Relevant file integrations affected by this task:buildScripts/ai/rebuildSQLiteVectors.mjs: Central provisioning script where vector collections are born.ai/mcp/server/memory-core/managers/SQLiteVectorManager.mjs: Binds virtual constraints (enforcesaiConfig.vectorDimensionstructurally).ai/mcp/server/memory-core/services/lifecycle/InferenceLifecycleService.mjs: Local engine bootstrap handshake mechanism.ai/mcp/server/neural-link/config.template.mjs: Global MCP transport surface area.Avoided Gold Standards/Traps
SQLiteVectorManager.mjs. Adapting to arbitrary incoming vector shapes corrupts thesqlite-vecdistance search indexing over the application lifecycle. We opted for a strict Fail Fast schema paradigm instead of soft degradation.Resolution (Golden Path Alignment)
buildScripts/ai/rebuildSQLiteVectors.mjs. A dummydimension_testaborts the pipeline (process.exit(1)) prior to any mutation if inference outputs diverge from the central 4096D configuration guardrails.fetchroutines querying/v1/modelsinInferenceLifecycleService.mjsto operate strictly on AbortSignals (3000ms threshold).stderracross server boot sequences. JSON-RPC maintains isolated channel integrity.