Expose runtime rolling window reads

This commit is contained in:
Meta Vens 2026-05-19 10:20:15 +01:00
commit caec14cbf2
7 changed files with 211 additions and 4 deletions

View file

@ -26,8 +26,8 @@ shape removes independent per-kind storage from the live foundation.
edge/window queries, ring counts, and latest sample lookup by sensor hash.
The ABI now exposes total rolling-buffer length and typed-view length.
- `LocalcastRuntime` wraps the current reservoir with typed native producer
calls. It is the intended live spine, but must be rebuilt on the single
rolling-buffer invariant before new runtime work.
calls and total/typed read functions. It is the intended live spine for
Aquarium/Faust bindings.
- Repo-local persistence machinery.
- First architecture map.
- Example config for one video source plus two audio sources.

View file

@ -91,6 +91,8 @@ sample. No stage owns a private history that can outlive the reservoir.
typed producer calls for each sample kind so camera capture, audio capture,
phase estimation, material fitting, event detection, and render planning all
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.
## Visual Fusion
@ -181,7 +183,9 @@ in `native/reservoir/include/localcast_reservoir.h`:
- create/destroy an opaque `LocalcastRuntime`;
- 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.
count, and typed-view counts;
- read runtime samples by total rolling-buffer index, typed-view index, and
latest sensor hash.
The ABI carries `payload_handle`, not payload bytes. Aquarium owns image,
feature, surface, material, and GPU memory interpretation. Faust/native DSP owns