Prioritize Leap evidence in LOD cache

This commit is contained in:
Meta Vens 2026-05-18 22:55:13 +01:00
commit a4b4473499
7 changed files with 183 additions and 24 deletions

View file

@ -91,16 +91,20 @@ flowchart TD
E --> F["ScreenBrushPacket lowering"]
F --> G["Spout sender"]
G --> H["OBS Spout2 Capture"]
I["Leap motion evidence"] --> J["multi-LOD scene cache"]
K["RGB/stochastic/synthetic evidence"] --> J
J --> L["Aquarium compute reconciliation"]
```
Ownership:
- `localcast.sensor_fusion.cultcache_docs` owns typed visual state documents.
- `scripts/live_sensor_fusion.py` currently owns the live producer and writes `localcast.visual.render_frame` into CultCache.
- The live producer also writes a multi-LOD scene cache with source kind and priority. Real Leap frames are the highest-priority timing/spatial evidence; Leap fallback frames are tagged as fallback and do not become ground truth.
- `scripts/stream_spout.py` consumes typed CultCache state and publishes Spout.
- CultNet document replication is the intended API boundary for other producers/consumers.
Invariant: JSON is not the visual-state authority. The current renderer can still write a JSON heartbeat for human inspection, but live visual state lives in typed CultCache MessagePack documents.
Invariant: JSON is not the visual-state authority. The current renderer can still write a JSON heartbeat for human inspection, but live visual state lives in typed CultCache MessagePack documents. Leap outranks camera surfaces only when the frame source is actual Leap capture; diagnostics must stay labeled as diagnostics.
## OBS Program Surface