Frontmatter
| id | 9762 |
| title | Stabilize Sandman Inference Pipeline & Fix SQLite Race Conditions |
| state | Closed |
| labels | bugaiperformance |
| assignees | tobiu |
| createdAt | Apr 7, 2026, 9:35 PM |
| updatedAt | Apr 7, 2026, 9:37 PM |
| githubUrl | https://github.com/neomjs/neo/issues/9762 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Apr 7, 2026, 9:37 PM |
Stabilize Sandman Inference Pipeline & Fix SQLite Race Conditions
Closedbugaiperformance
tobiu assigned to @tobiu on Apr 7, 2026, 9:37 PM

tobiu
Apr 7, 2026, 9:37 PM
Deployed in #9762. The autonomous pipeline is fully stabilized and processing the backlog with extreme efficiency. Verified that Cap Gap and Tri-Vector cycles succeed and loop safely on huge 3K char payloads seamlessly.
tobiu closed this issue on Apr 7, 2026, 9:37 PM
Description
The autonomous REM sleep pipeline (
Sandman) stalls and occasionally crashes due to VRAM starvation and a race condition during SQLite matrix initialization.Issues Identified
num_ctx: 200000causes OS VRAM starvation on smaller/medium payloads and massive context ingestion latency.7500+paths from the workspace tree into the context per node evaluation causes sequence bottlenecks.fetch()encounters undocumented 5-minute timeout caps fromundiciduring heavy local LLM processing.UNIQUE constraint failed: vector_collections_meta.name.Proposed Fixes
Math.ceil(chars / 3) + 4096.fetch()for nativehttp/httpsto enforce explicit 1-hour timeouts for Ollama backend calls.INSERT OR IGNORE INTOinSQLiteVectorManager.mjsto handle concurrent discoveries gracefully.