Frontmatter
| id | 10153 |
| title | Lazy back-fill: Memory + Session nodes for pre-migration Chroma rows |
| state | Closed |
| labels | enhancementaiarchitecturecore |
| assignees | tobiu |
| createdAt | Apr 21, 2026, 11:31 AM |
| updatedAt | Apr 22, 2026, 2:00 PM |
| githubUrl | https://github.com/neomjs/neo/issues/10153 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | 10143 |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [x] 10151 DreamService: deterministic ingestion phase for Memory + Session graph nodes |
| blocking | [] |
| closedAt | Apr 22, 2026, 1:21 AM |
Lazy back-fill: Memory + Session nodes for pre-migration Chroma rows
tobiu added parent issue #10143 on Apr 21, 2026, 11:33 AM
tobiu marked this issue as being blocked by #10151 on Apr 21, 2026, 11:33 AM
tobiu cross-referenced by #10143 on Apr 21, 2026, 3:06 PM
tobiu cross-referenced by #10158 on Apr 21, 2026, 3:23 PM
tobiu cross-referenced by PR #10161 on Apr 21, 2026, 4:36 PM
tobiu cross-referenced by #9999 on Apr 21, 2026, 7:03 PM
tobiu cross-referenced by #10145 on Apr 21, 2026, 8:43 PM
tobiu cross-referenced by PR #10165 on Apr 21, 2026, 8:59 PM
tobiu assigned to @tobiu on Apr 21, 2026, 10:28 PM

tobiu
Apr 21, 2026, 11:02 PM
Input from Antigravity (Gemini 3.1 Pro):
✦ # Epic Review by Antigravity (Gemini 3.1 Pro)
- Stage 1 — Roadmap Fit: ✅ Vital for the transition to Graph-first Memory artifacts without breaking historical provenance or causing a deploy-time stall.
- Stage 2 — Approach Elegance: ✅ The lazy-evaluation model for backfilling on
addEdgeis highly elegant. It amortizes the cost of 9040 rows beautifully, whilepriorityBackfill.mjsallows optional batch-warming.- Stage 3 — Sub-Structure Coherence: ✅ This ticket is highly focused; its ACs define a clear, self-contained atomic delivery.
- Stage 4 — Prescription Layer: ✅ Fixing the dangling edge problem exactly at the
addEdgeboundary is the right substrate-level interception point.- Stage 5 — Avoided Traps Completeness: ✅ Properly identifies the extremes of Eager full-corpus and Forward-only as catastrophic/expensive, hitting the lazy sweet spot.
Verdict: Greenlight
Origin Session ID: ada4aecb-60fc-4b25-a76b-cb92600835a2
tobiu cross-referenced by PR #10171 on Apr 22, 2026, 12:47 AM
tobiu cross-referenced by #10172 on Apr 22, 2026, 1:19 AM
tobiu closed this issue on Apr 22, 2026, 1:21 AM
Lazy back-fill: Memory + Session nodes for pre-migration Chroma rows
Context
Parent sub-epic (#10143) phase 3. Phase 1 adds forward ingestion; phase 3 handles historical Chroma rows (8246 memories / 794 summaries at filing).
The Problem
Forward-only ingestion leaves permanent asymmetry: mailbox
IN_REPLY_TOor identityAUTHORED_BYreferences to pre-migration artifacts have dangling targets. Eager back-fill at deploy time is bounded but expensive; lazy amortizes cost.The Architectural Reality
neo-agent-memory; summaries inneo-agent-sessions. Total ~9040 rows.graphDigested: trueon summaries is the existing per-artifact processing flag — pattern to match.The Fix
backfilled: true(vs.liveIngested: true)addEdgewith missing target runs single-row ingestion synchronously, then completes the edgeai/scripts/priorityBackfill.mjs) — eager back-fill for high-traffic sessions (e.g. last 30 days). Opt-in.Acceptance Criteria
addEdgewith missing target triggers lazy ingestion; edge completes atomicallybackfilled: truemarker distinguishable from live-ingested nodes in queriesOut of Scope
Avoided Traps
Related
ai/scripts/priorityBackfill.mjs(new)Origin Session ID: 71dc3cd8-d39d-48e1-ac62-e240ca67d1a5