Add native producer ingress ABI

This commit is contained in:
Meta Vens 2026-05-19 10:34:18 +01:00
commit fb08ed5b06
7 changed files with 213 additions and 2 deletions

View file

@ -28,6 +28,8 @@ shape removes independent per-kind storage from the live foundation.
- `LocalcastRuntime` wraps the current reservoir with typed native producer
calls and total/typed read functions. It is the intended live spine for
Aquarium/Faust bindings.
- `LocalcastProducer` owns native ingress source identity and sequence
assignment before appending live handles into `LocalcastRuntime`.
- Repo-local persistence machinery.
- First architecture map.
- Example config for one video source plus two audio sources.
@ -112,8 +114,8 @@ shape removes independent per-kind storage from the live foundation.
diagnostic JSON render-frame adapters, diagnostic JSON LOD adapters, and
Python reservoir-window clipping.
2. Bind Aquarium/Faust to the rolling-buffer `LocalcastRuntime`.
3. Move camera/mic/loopback ingest into native capture workers that append
typed sample handles.
3. Move camera/mic/loopback ingest into native capture workers that use
`LocalcastProducer` to append typed sample handles.
4. Move feature extraction, flow, cross-view matching, LOD reconciliation,
material fitting, brush/splat rendering, and Spout2 publication into
Aquarium GPU compute.

View file

@ -94,6 +94,11 @@ append into one shared five-second window without crossing a Python file cache.
It also exposes total and typed-view reads so Aquarium/Faust can consume that
same window without building private histories.
`LocalcastProducer` is the first native capture-worker boundary. It owns sample
kind, source identity, and sequence assignment before appending live handles into
`LocalcastRuntime`; hardware adapters should provide timestamps and payload
handles, not reservoir authority.
## Visual Fusion
Camera fusion is feature matching across the reservoir, not a latest-frame
@ -181,6 +186,8 @@ in `native/reservoir/include/localcast_reservoir.h`:
- reject diagnostic/probe/fallback and unknown-flagged samples at the live
reservoir boundary via sample provenance flags.
- create/destroy an opaque `LocalcastRuntime`;
- create/destroy opaque `LocalcastProducer` ingress helpers;
- push live producer samples while the producer owns sequence/source metadata;
- append typed camera/audio/phase/event/render handles through producer calls;
- query a native runtime status struct with shared edge, window start, total
count, and typed-view counts;