Add native source id hashing

This commit is contained in:
Meta Vens 2026-05-19 12:35:26 +01:00
commit 22f643574e
7 changed files with 60 additions and 3 deletions

View file

@ -83,3 +83,6 @@
{"ts": "2026-05-19T11:21:55+00:00", "type": "implementation", "status": "ok", "note": "Aquarium-Engine commit cfb48d7 adds LocalCastNativeRenderDescriptorDecoder: Aquarium now reads LocalcastRenderPacketDescriptor timing/target metadata from native payload handles while keeping point-buffer decoding as an injected boundary."}
{"ts": "2026-05-19T11:25:11+00:00", "type": "decision", "status": "ok", "note": "Mimir is now the public brand for the LocalCastBridge/localcast implementation surfaces: local sensors become one coherent realtime volumetric field, while OBS, Aquarium, Faust, and FFmpeg retain their existing ownership boundaries."}
{"ts": "2026-05-19T11:25:59+00:00", "type": "implementation", "status": "ok", "note": "Native reservoir ABI now includes LocalcastRenderPoint, the fixed first point-buffer element for Aquarium render decoding: stable-key hash, source timestamp, position, radius, color/alpha, and confidence."}
{"ts": "2026-05-19T11:29:24+00:00", "type": "implementation", "status": "ok", "note": "Aquarium-Engine commit f4c5988 adds LocalCastNativeRenderPoint binding plus native point-buffer decoding for LocalCastNativeRenderDescriptorDecoder; LocalCast tests pass 20 tests no-build."}
{"ts": "2026-05-19T11:30:58+00:00", "type": "implementation", "status": "ok", "note": "Native reservoir ABI now owns source-id hashing through localcast_hash_source_id, a stable FNV-1a hash for producer source identity; null/empty sources hash to zero and producer creation still rejects zero."}
{"ts": "2026-05-19T11:34:44+00:00", "type": "implementation", "status": "ok", "note": "Aquarium-Engine commit 924aa2f exposes LocalCastNativeSourceId.HashUtf8 as a safe wrapper over native localcast_hash_source_id, avoiding managed reimplementation of source identity hashing."}

View file

@ -56,6 +56,8 @@ accepted_design:
- `LocalcastRuntime` exposes typed producer pushes plus total/typed window
reads. `LocalcastProducer` owns source identity and sequence assignment
before hardware adapters append live sample handles.
- `localcast_hash_source_id` owns stable native source-id hashing so capture
workers do not each invent incompatible sensor hashes.
- `LocalcastAudioBlockDescriptor` is the first typed payload descriptor for
caller-owned float32 interleaved audio blocks; the reservoir stores only the
descriptor pointer as a payload handle and does not own DSP memory.