The scene-9 embedding handler appends to a `points` array without
ever capping. The producer republishes its (stable, deterministic)
point set on a cycle so reconnecting browsers eventually see the
scatter; each cycle pushes the same N points again and the in-memory
count grows without bound. Browser slows after ~10 min.
Two complementary fixes proposed:
A. FIFO cap (1-line change in the handler — fixes the leak today)
B. embedding_batch event with replace=true (cleaner, pairs with
the snapshot/sticky-cache request for refresh-time hydration)
Producer side has already reduced cadence as a band-aid (200 pts
every 30 s, was 600 every 5 s) — 18x slower accumulation but still
unbounded.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| images | ||
| architecture.md | ||
| dashboard-request-embedding-persistence.md | ||
| dashboard-request-knn-cap-evict.md | ||
| data-model.md | ||
| deploy.md | ||
| lab-setup.md | ||
| project_brief.md | ||
| slide_planner.md | ||
| sources.md | ||
| threat-model.md | ||
| transport.md | ||