Remove script-era Python stack
This commit is contained in:
parent
d1eca0776e
commit
6ca7915f2b
191 changed files with 442 additions and 126676 deletions
|
|
@ -1,34 +1,24 @@
|
|||
# Current System Map
|
||||
# Current System Map
|
||||
|
||||
Mimir is the public Face and product name for this repo. `localcast` remains
|
||||
the implementation surface where existing scripts, paths, schemas, and ABIs
|
||||
still use it.
|
||||
Mimir is the public Face and product name for this repo. A few lower native ABI
|
||||
names still use `localcast` until a deliberate rename cut exists.
|
||||
|
||||
The repo is intentionally thin. The target live machine is not the
|
||||
deadline bridge; it is the native rolling reservoir described in
|
||||
The live target is the native rolling field machine described in
|
||||
`docs/native-rebuild-plan.md`, `docs/perfect-machine.md`, and
|
||||
`config/perfect-machine.example.json`.
|
||||
|
||||
Mimir's persistent Face state is part of the operating machine:
|
||||
|
||||
- `docs/mimir-face.md` owns the Face doctrine, jurisdiction, heartbeat behavior,
|
||||
and inherited memory packet.
|
||||
- `.voidbot/voice/identity.json` and `.voidbot/voice/mimir.png` are the
|
||||
VoidBot-facing persona identity.
|
||||
- `.voidbot/state/mimir.cc` is typed persistent Face memory. VoidBot is the
|
||||
transport layer; Mimir owns continuity and repo-progress pressure.
|
||||
|
||||
## Perfect Machine Target
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["native camera workers"] --> R["single 5s rolling reservoir"]
|
||||
B["native mic/loopback workers"] --> R
|
||||
C["Leap timing/IR workers"] --> R
|
||||
D["remote video/audio workers"] --> R
|
||||
R --> E["Aquarium GPU fusion + material field"]
|
||||
R --> F["Faust DSP"]
|
||||
E --> G["Spout2 texture"]
|
||||
A["direct camera drivers"] --> R["Mimir.Runtime rolling buffers"]
|
||||
B["mic/loopback drivers"] --> R
|
||||
C["Leap timing/IR driver"] --> R
|
||||
D["network feed producers"] --> R
|
||||
R --> N["native reservoir handles"]
|
||||
N --> E["Aquarium GPU fusion + UI"]
|
||||
N --> F["Faust/native DSP"]
|
||||
E --> G["Spout2/program video"]
|
||||
F --> H["program stems + spatial bed"]
|
||||
G --> I["OBS"]
|
||||
H --> I
|
||||
|
|
@ -36,210 +26,77 @@ flowchart TD
|
|||
|
||||
Ownership:
|
||||
|
||||
- Mimir owns configuration, calibration, contract tests, launch, status, and persistence.
|
||||
- Aquarium owns dense visual fusion, material/brush/splat reconciliation, final render target, and Spout publication.
|
||||
- Faust owns hot audio DSP and program stem generation.
|
||||
- Mimir owns configuration, calibration truth, launch, status, persistence, and
|
||||
runtime contracts.
|
||||
- `Mimir.Runtime` owns app-level stream buffers and synchronization.
|
||||
- Native capture workers own device reads.
|
||||
- Aquarium owns dense visual fusion, material/brush/splat reconciliation,
|
||||
D3D12 interop, runtime UI, and Spout2 publication.
|
||||
- Faust/native DSP owns hot audio alignment, suppression, separation,
|
||||
spatialization, and stem generation.
|
||||
- OBS owns broadcast controls.
|
||||
- Python remains tooling only: calibration, contract tests, device discovery,
|
||||
offline analysis, and diagnostics. It is not the stream hot path.
|
||||
- OpenGL is not the production Spout sink. Aquarium owns production Spout2
|
||||
publication.
|
||||
- `native/reservoir` is the first native crate. It now uses one time-ordered
|
||||
rolling buffer with typed views. Retention has one owner.
|
||||
|
||||
Invariant: the five-second spatiotemporal reservoir is the live authority.
|
||||
Producers append sample handles through typed native calls, optimizers refine,
|
||||
Aquarium/Faust sample and interpret the pointed-to payloads. No private history
|
||||
outlives the reservoir, and typed views do not own retention. The reservoir does
|
||||
not pretend to own GPU image memory or Faust audio buffers. Edge JSON may
|
||||
declare schema or export diagnostics; live process/network data is typed
|
||||
CultNet documents.
|
||||
Invariant: the live window is bounded, in memory, and has one timing authority.
|
||||
No private history outlives the rolling buffer.
|
||||
|
||||
## Viable Stream App
|
||||
|
||||
`docs/viable-stream-app.md` defines the near-term app target while full native
|
||||
capture work continues. Aquarium hosts the running Mimir app, keeps the default
|
||||
five-second reservoir in memory, exposes debug/settings/output controls, and
|
||||
emits synchronized OBS program video plus separately controllable audio stems.
|
||||
Local and networked video/audio feeds are producers into that one runtime
|
||||
window; they do not own clocks or private synchronization buffers. Mimir owns
|
||||
`Mimir.slnx`; `src/Mimir.App` references Aquarium Engine as the host/windowing
|
||||
and D3D12 bridge, while `src/Mimir.Runtime` provides the Aquarium client runtime.
|
||||
`Mimir.Runtime` owns the first synchronization hub: one five-second default
|
||||
rolling buffer per configured audio/video stream, source polling through
|
||||
`IMimirStreamSource`, and runtime UI readouts for stream/buffer health.
|
||||
Local six-camera ingest should push native handles through
|
||||
`MimirNativeIngestStreamSource`; process-backed ingest remains a compatibility
|
||||
edge for network SRT or diagnostics. `MimirVideoFrameDescriptor` carries
|
||||
dimensions, pixel format, stride, device timestamp, and optional native/GPU
|
||||
handle metadata so Leap stereo IR can enter Mimir without OpenCV owning timing.
|
||||
`IMimirVideoCaptureDriver` is the driver-facing seam for LeapUVC/libusb, LeapC
|
||||
images, Media Foundation, DirectShow, or GPU shared textures. OpenCV is only an
|
||||
offline calibration or diagnostic library now.
|
||||
`docs/viable-stream-app.md` defines the near-term app target. Aquarium hosts the
|
||||
running Mimir app, keeps the default five-second runtime in memory, exposes
|
||||
debug/settings/output controls, and emits synchronized OBS program video plus
|
||||
separately controllable audio stems.
|
||||
|
||||
`Mimir.Runtime` currently provides:
|
||||
|
||||
- `MimirSynchronizationHub`;
|
||||
- `MimirRollingStreamBuffer`;
|
||||
- stream descriptors/settings;
|
||||
- `IMimirStreamSource`;
|
||||
- `MimirNativeIngestStreamSource`;
|
||||
- `MimirProcessStreamSource`;
|
||||
- `MimirVideoFrameDescriptor`;
|
||||
- `IMimirVideoCaptureDriver`;
|
||||
- `MimirVideoCaptureDriverSource`.
|
||||
|
||||
Process-backed sources are bridge/network edges. Local cameras should feed
|
||||
native descriptors with device timestamps and optional native/GPU handles.
|
||||
|
||||
## OBS Bridge Utility
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["config/localcast.json"] --> B["sender-start.ps1"]
|
||||
C["FFmpeg on sender"] --> D["Windows desktop capture"]
|
||||
C --> E["DirectShow audio capture"]
|
||||
D --> F["h264_nvenc encode"]
|
||||
E --> G["AAC encode"]
|
||||
F --> H["SRT MPEG-TS video endpoint"]
|
||||
G --> I["SRT MPEG-TS audio endpoint(s)"]
|
||||
D --> F["NVENC encode"]
|
||||
E --> G["audio encode"]
|
||||
F --> H["SRT video endpoint"]
|
||||
G --> I["SRT audio endpoint(s)"]
|
||||
H --> J["OBS Media Source"]
|
||||
I --> K["OBS Media Source per audio source"]
|
||||
J --> L["OBS scene composition"]
|
||||
K --> L
|
||||
```
|
||||
|
||||
## Ownership
|
||||
The bridge is useful because it is inspectable and already speaks OBS. It does
|
||||
not become the synchronized program authority.
|
||||
|
||||
- Config owns source identity, receiver address, ports, and encoding knobs.
|
||||
- FFmpeg owns capture, encoding, and network transport.
|
||||
- OBS owns source activation, layout, filters, monitoring, and recording/streaming.
|
||||
- This repo owns repeatability and memory.
|
||||
## Audio Field
|
||||
|
||||
## Why Not Plugin First
|
||||
The six-microphone path is separate from the bridge. The live version aligns mic
|
||||
and loopback blocks into one presentation timeline, feeds Faust/native DSP, and
|
||||
emits synchronized stems. Camera mics are spatial/context witnesses; Focusrite
|
||||
devices are dialogue anchors.
|
||||
|
||||
An OBS plugin would be justified if OBS could not ingest stable LAN streams, or if a plugin were needed to expose independent audio controls. V1 gets independent audio controls by making each source an OBS Media Source. That is boring. Boring is allowed to win when it is correct.
|
||||
## Visual Fusion
|
||||
|
||||
The next gate is not taste, it is evidence. `scripts/obs_smoke_test.py` and
|
||||
`localcast.obs_smoke` now define the v1 OBS smoke ledger:
|
||||
`calibration/runs/obs-v1-smoke-ledger.json`. Receiver/plugin/native expansion is
|
||||
blocked until each planned endpoint has `sender_capture`, `srt_receive`, and
|
||||
`obs_present` timestamp evidence, plus bounded drift, end-to-end latency, and
|
||||
confidence.
|
||||
Visual fusion belongs in Aquarium over current reservoir claims. Native capture
|
||||
workers provide frames; Aquarium owns feature extraction, matching, material
|
||||
fitting, render budgeting, and publication.
|
||||
|
||||
## Known Risks
|
||||
|
||||
- Windows audio source names vary by driver and localization.
|
||||
- Windows device names vary by driver and localization.
|
||||
- Some FFmpeg builds omit SRT or NVENC.
|
||||
- Separate endpoints can drift; local latency should be tuned before adding a synchronization layer.
|
||||
- OBS SRT reconnection behavior can be fussy. Use stable ports and source reactivation before treating port changes as a fix.
|
||||
|
||||
## Audio Field Sidecar
|
||||
|
||||
The six-microphone Ambisonic path is separate from the OBS endpoint path.
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["config/audio-field.json"] --> B["scripts/audio_field.py"]
|
||||
C["local Focusrite shielded cardioid"] --> D["local reference timeline"]
|
||||
E["neighbor Focusrite shotgun"] --> F["remote dialogue capture"]
|
||||
G["Kiyo + PS Eye camera mics"] --> H["spatial/context captures"]
|
||||
I["2 speaker outputs"] --> J["calibration sweep"]
|
||||
J --> D
|
||||
J --> F
|
||||
J --> H
|
||||
R["confidence probe optimizer"] --> P["known speaker chirplets"]
|
||||
P --> Q["runtime delay/SRO/phase estimator"]
|
||||
D --> Q
|
||||
F --> Q
|
||||
H --> Q
|
||||
Q --> S["phase-meaning extractor"]
|
||||
S --> T["audio-phase-field.msgpack"]
|
||||
S --> K["delay + SRO alignment"]
|
||||
K --> L["bounded field cache"]
|
||||
L --> M["aligned six-channel blocks"]
|
||||
M --> N["FOA encoder"]
|
||||
M --> V["native mic-field producer"]
|
||||
V --> W["localcast.audio.mic_field"]
|
||||
W --> X["Aquarium Faust voice-separation graph"]
|
||||
N --> O["AmbiX ACN/SN3D bus: W,Y,Z,X"]
|
||||
```
|
||||
|
||||
Ownership:
|
||||
|
||||
- `config/audio-field.json` owns mic/speaker identity, machine/device mapping, clock domains, field channel order, geometry, gain, delay, polarity, role/quality priority, capture policy, and Ambisonic bus format.
|
||||
- `scripts/audio_field.py` owns profile validation, local device checks, calibration stimulus generation, clock-domain planning, shared-input capture helpers, and FOA encoding of already aligned six-channel WAVs.
|
||||
- `audio_field/` owns unit-testable buffering, bounded-latency convergence, injectable port protocols, and pipeline orchestration.
|
||||
- Runtime sync owns per-block chirplet observations from known speaker output and updates delay/SRO/phase estimates with confidence gates before alignment.
|
||||
- `audio_field.phase_meaning` owns extracting usable meaning from internal phase/chirplet evidence. The live cache publishes delay correction, coherence, confidence, distance-equivalent delta, reference-bleed/suppression estimates, correction energy, and active-probe need; raw phase bands stay inside the estimator.
|
||||
- `localcast.diagnostics.audio_live_field`, `localcast.diagnostics.audio_phase_field`, `localcast.diagnostics.faust_mic_field`, and `localcast.diagnostics.spatial_audio` preserve the old Python audio publisher experiments as diagnostics only. Production mic, loopback, phase, stem, and spatial-bed ingest belongs in native/Faust workers that append typed sample handles through `LocalcastProducer`.
|
||||
- `audio-phase-field-status.json` is a diagnostic status export from the replay/experiment modules. The production phase runtime must report through typed CultNet/native status, not by making this JSON file the lifecycle authority.
|
||||
- Active probe optimization owns extra chirplet emission when confidence drops, bounded by level/spacing/audibility budget. `audio_field.active_probe` is the runtime join that converts phase-field confidence into emitted chirplet WAVs/manifests and playback. Probe WAVs rotate through fixed slots and the manifest rotates at a byte cap; calibration may be dense, but artifacts must stay bounded.
|
||||
- The camera/sensor-fusion pipeline may publish world poses later; it does not own audio clocks or channel timing.
|
||||
- OBS may ingest rendered output later; it is not the authority for the Ambisonic field.
|
||||
- Aquarium/Faust owns hot voice separation after Mimir publishes `localcast.audio.mic_field`; Mimir owns alignment, timing, mic roles, graph id, and controls.
|
||||
|
||||
Invariant: distributed camera/Focusrite microphones must be aligned and resampled into one reference timeline before FOA encoding. Latency is allowed as bounded buffering, but cache depth must converge toward real-time. Speaker output chirplets are live telemetry; delay/SRO/phase state must update during runtime, not only during setup. Extra chirplets may be emitted automatically when confidence drops, but only under the active probe optimizer's budget. The local shielded cardioid and neighbor shotgun are the high-quality dialogue anchors; camera mics provide spatial/context evidence.
|
||||
|
||||
## Visual Fusion Cut Line
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["native camera/Leap sample handles"] --> R["rolling reservoir"]
|
||||
B["audio/phase/event handles"] --> R
|
||||
R --> C["Aquarium GPU feature/fusion/material/brush"]
|
||||
C --> D["Aquarium Spout2 sender"]
|
||||
R --> E["typed CultNet status/docs"]
|
||||
D --> F["OBS Spout2 Capture"]
|
||||
```
|
||||
|
||||
Ownership:
|
||||
|
||||
- Native capture workers own device reads and append handles. They do not own
|
||||
scene reconstruction.
|
||||
- The rolling reservoir owns the live edge, retention, ordering, and typed
|
||||
lookup.
|
||||
- `LocalcastProducer` owns source identity and sequence assignment before native
|
||||
capture workers append sample handles into `LocalcastRuntime`.
|
||||
- `LocalcastRuntime` owns the one live rolling window and exposes both producer
|
||||
pushes and consumer reads for Aquarium/Faust.
|
||||
- Aquarium owns dense visual fusion, material fitting, point/brush/splat
|
||||
lowering, render budgeting, and Spout2 publication.
|
||||
- CultNet typed documents carry status/control/process state. JSON is schema or
|
||||
diagnostic export only.
|
||||
- `localcast.diagnostics.visual_producer` is now diagnostic orchestration only.
|
||||
Reservoir-window clipping, Leap packed transforms, RGB reference splats, and
|
||||
diagnostic clap calibration have named modules outside the producer monolith.
|
||||
Python fallback producers and diagnostic CultCache/JSON file adapters remain
|
||||
diagnostics/migration fossils. They must not be extended as production
|
||||
surfaces.
|
||||
- `localcast.diagnostics.render_frame_json` and
|
||||
`localcast.diagnostics.lod_json` are explicit compatibility adapters; model
|
||||
modules do not own file serialization.
|
||||
- `localcast.diagnostics.render_math` is the pure, testable diagnostic renderer
|
||||
math that survived deletion of the OpenGL publisher.
|
||||
|
||||
Invariant: fallback/demo evidence cannot enter ground-truth reservoir kinds.
|
||||
Render packets, LOD cells, brush packets, and overlays are derived from reservoir
|
||||
claims. The renderer cannot invent scene priority from string prefixes.
|
||||
|
||||
## OBS Program Surface
|
||||
|
||||
OBS should not expose raw unsynchronized ingest as broadcast controls once a synchronized audio/video program is available.
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["aligned audio program timeline"] --> B["setup_obs_synced_program.py"]
|
||||
B --> C["Host Voice stem"]
|
||||
B --> D["CoStreamer Voice stem"]
|
||||
B --> E["Ambient stem"]
|
||||
B --> F["Transients stem"]
|
||||
B --> G["CoStreamer Loopback stem"]
|
||||
B --> H["Local Loopback stem"]
|
||||
I["CultCache visual/audio timing"] --> J["Spout/Aquarium program video"]
|
||||
C --> K["OBS synchronized scene"]
|
||||
D --> K
|
||||
E --> K
|
||||
F --> K
|
||||
G --> K
|
||||
H --> K
|
||||
J --> K
|
||||
```
|
||||
|
||||
Ownership:
|
||||
|
||||
- `scripts/setup_obs_synced_program.py` owns packaging aligned program audio into OBS-controllable stems and muting/disabling raw unsynchronized OBS inputs.
|
||||
- `scripts/capture_co_streamer_surfaces.py` owns the late-arriving neighbor surface import: it captures neighbor Focusrite and neighbor loopback over SSH while recording local loopback, estimates the remote-family offset, and writes aligned co-streamer surfaces for the OBS stem packer.
|
||||
- `scripts/wasapi-loopback-capture.ps1` owns the direct primary-playback loopback path. It bypasses virtual mixers and asks Windows Core Audio for the default render endpoint loopback stream. It must run in the neighbor's interactive console session to receive render packets.
|
||||
- OBS owns final source volume, track assignment, filters, and stream/record output.
|
||||
- Aquarium/Spout owns synchronized program video, not raw remote desktop capture.
|
||||
|
||||
Invariant: raw SRT ingest, Desktop Audio, Mic/Aux, and other non-program scene items may exist for diagnostics, but they must be disabled or muted when broadcasting the synchronized program. Missing synchronized feeds should appear as explicit silent placeholders, not as live unsynchronized substitutes. The co-streamer Focusrite, co-streamer loopback, and remote video are the latest-arriving surface family; their measured delay should set the presentation buffer horizon instead of being patched in after the local field. Do not reintroduce Voicemeeter as the loopback authority without a concrete invariant; prefer direct WASAPI loopback or a sender FFmpeg build with native WASAPI input.
|
||||
|
||||
Smoke-test invariant: a visible stream in OBS is not proof of coherence. The v1
|
||||
bridge must leave a witness ledger with per-stage timestamps, endpoint drift,
|
||||
end-to-end latency, and confidence before the receiver surface grows new
|
||||
machinery.
|
||||
- Separate bridge endpoints can drift.
|
||||
- OBS SRT reconnection behavior can be fussy.
|
||||
- Direct driver work must prove sustained cadence before it becomes timing
|
||||
authority.
|
||||
|
|
|
|||
|
|
@ -1,162 +1,55 @@
|
|||
# Fresh Workspace Handoff
|
||||
# Fresh Workspace Handoff
|
||||
|
||||
This is the short re-entry packet for `E:\Projects\Mimir`.
|
||||
|
||||
Do not trust this file for the exact live HEAD. Exact branch, HEAD, and dirty state are volatile. Always ask git.
|
||||
Do not trust this file for exact branch, HEAD, or dirty state. Ask git.
|
||||
|
||||
## Rehydrate
|
||||
|
||||
```powershell
|
||||
& 'C:\Users\Meta\.cache\codex-runtimes\codex-primary-runtime\dependencies\python\python.exe' .\tools\localcast_state.py status
|
||||
Get-Content .\state\map.yaml
|
||||
Get-Content .\notes\fresh-workspace-handoff.md
|
||||
Get-Content .\notes\current-system-map.md
|
||||
Get-Content .\docs\implementation-plan.md
|
||||
git status --short --branch
|
||||
git log --oneline -5
|
||||
Get-Content .\state\map.yaml
|
||||
Get-Content .\notes\current-system-map.md
|
||||
Get-Content .\docs\implementation-plan.md
|
||||
Get-Content .\state\evidence.jsonl -Tail 8
|
||||
```
|
||||
|
||||
## Current Shape
|
||||
|
||||
- Public brand/Face is Mimir. Implementation surfaces still use `localcast`
|
||||
until a deliberate package/schema rename cut exists.
|
||||
- Public brand/Face is Mimir.
|
||||
- Mimir's Face doctrine lives in `docs/mimir-face.md`.
|
||||
- Mimir's 256px avatar source is `Mimir.png`; project copy is
|
||||
`assets/branding/mimir-avatar-256.png`; VoidBot persona copy is
|
||||
`.voidbot/voice/mimir.png`.
|
||||
- Mimir is registered in VoidBot's private repo-Face registry alongside Nibu and
|
||||
Aqua. Repo-local Face identity/state live at `.voidbot/voice/identity.json`
|
||||
and `.voidbot/state/mimir.cc`.
|
||||
- Birth runner completed in plan mode under `.voidbot/birth`; the typed
|
||||
repo-Face state has already been seeded with durable Mimir birth memories and
|
||||
a heartbeat agency pressure.
|
||||
- V1 uses FFmpeg plus OBS Media Source over SRT.
|
||||
- Sender-side video encoding is `h264_nvenc`.
|
||||
- Audio sources are separate SRT endpoints so OBS can mix them separately.
|
||||
- The live synchronized program path is being rebuilt. The Python/OpenGL
|
||||
deadline Spout bridge has been deleted.
|
||||
- `docs/native-rebuild-plan.md` is the current cut plan.
|
||||
- `docs/viable-stream-app.md` is the near-term stream target: Aquarium hosts
|
||||
the in-memory five-second runtime and operator UI, local/networked feeds append
|
||||
as producers, and OBS receives synchronized program outputs rather than raw
|
||||
feed sync.
|
||||
- `Mimir.slnx` is the repo-owned C# app surface. `src/Mimir.App` references
|
||||
Aquarium Engine as the windowing/rendering/D3D12 host and loads
|
||||
`src/Mimir.Runtime` as the Aquarium client runtime assembly.
|
||||
- `src/Mimir.Runtime` now wraps Aquarium's LocalCast visual runtime in
|
||||
`MimirRuntime` and owns `MimirSynchronizationHub`: one configurable rolling
|
||||
buffer per audio/video stream, defaulting to five seconds. Stream ids can be
|
||||
declared with `MIMIR_LOCAL_VIDEO_STREAMS`, `MIMIR_LOCAL_AUDIO_STREAMS`,
|
||||
`MIMIR_NETWORK_VIDEO_STREAMS`, and `MIMIR_NETWORK_AUDIO_STREAMS`; real capture
|
||||
adapters feed buffers through `IMimirStreamSource`. Local six-camera ingest
|
||||
should use native push adapters such as `MimirNativeIngestStreamSource`, not
|
||||
FFmpeg stdout/process capture except as a network or diagnostic edge.
|
||||
`MimirVideoFrameDescriptor` now carries video shape, pixel format, stride,
|
||||
device timestamp, and optional native/GPU handle metadata for close-to-metal
|
||||
frame ingest; Leap stereo IR is the timing-camera candidate for this path.
|
||||
`IMimirVideoCaptureDriver` and `MimirVideoCaptureDriverSource` are the live
|
||||
driver seam; future LeapUVC/libusb, LeapC image, Media Foundation, DirectShow,
|
||||
or GPU shared-texture adapters should plug in there. OpenCV is no longer a
|
||||
live ingest target.
|
||||
- The reservoir is now one native time-ordered rolling buffer with typed
|
||||
indexes/views. The previous typed-ring crate is gone.
|
||||
- Native reservoir samples carry provenance flags; diagnostic/fallback samples
|
||||
are rejected at both the raw reservoir push and `LocalcastRuntime` typed
|
||||
producer boundary.
|
||||
- `LocalcastRuntime` now exposes producer pushes and consumer reads.
|
||||
`LocalcastProducer` owns source identity and sequence assignment for native
|
||||
capture workers.
|
||||
- `localcast_hash_source_id` owns stable FNV-1a source-id hashing for native
|
||||
producer creation.
|
||||
- `localcast_producer_create_for_source` is the preferred producer constructor
|
||||
for adapters with source-id bytes.
|
||||
- `LocalcastAudioBlockDescriptor` is the first typed audio payload descriptor:
|
||||
caller-owned float32 interleaved audio blocks cross the ABI by descriptor
|
||||
pointer, while the reservoir still owns only timing/retention metadata.
|
||||
- `LocalcastRenderPacketDescriptor` now gives render packets the same typed
|
||||
descriptor boundary for caller-owned point buffers and presentation timing.
|
||||
- `LocalcastRenderPoint` is the fixed first point-buffer ABI for Aquarium
|
||||
decoding.
|
||||
- Aquarium-Engine commit `4d5aec7` adds the first safe-code C# binding layer for
|
||||
this native ABI. It is not yet wired into `LocalCastRuntime` as the live
|
||||
source.
|
||||
- Aquarium-Engine commit `8798908` makes `LocalCastRuntime` consume an injected
|
||||
`ILocalCastVisualFrameSource`; the remaining Aquarium cut is a native source
|
||||
implementation over the binding.
|
||||
- Aquarium-Engine commit `687845c` adds that native frame source. It still needs
|
||||
the real payload decoder/runtime creation path before file polling can be
|
||||
removed from the default runtime.
|
||||
- Aquarium-Engine commit `34694e6` adds the matching safe-code C# binding and
|
||||
layout tests for `LocalcastAudioBlockDescriptor` and the native audio-block
|
||||
producer helper.
|
||||
- Aquarium-Engine commit `9eb40cf` adds the matching safe-code C# binding and
|
||||
layout tests for `LocalcastRenderPacketDescriptor` and the native
|
||||
render-packet producer helper.
|
||||
- Aquarium-Engine commit `cfb48d7` adds `LocalCastNativeRenderDescriptorDecoder`,
|
||||
which reads render descriptor timing/target metadata from native payload
|
||||
handles while keeping point-buffer decoding injectable.
|
||||
- Aquarium-Engine commit `f4c5988` adds `LocalCastNativeRenderPoint` and native
|
||||
point-buffer decoding for the render descriptor decoder.
|
||||
- Aquarium-Engine commit `924aa2f` exposes `LocalCastNativeSourceId.HashUtf8`
|
||||
as the safe wrapper over native source-id hashing.
|
||||
- Aquarium-Engine commit `c06d4cb` makes `LocalCastNativeVisualFrameSource`
|
||||
use the descriptor plus native point-buffer decoder by default.
|
||||
- Aquarium-Engine commit `3316895` exposes `CreateProducer(kind, sourceId)` so
|
||||
producer source hashing goes through native `localcast_producer_create_for_source`.
|
||||
- Aquarium-Engine commit `0f610d0` makes native render packets a direct GPU
|
||||
fusion input: `LocalCastNativeVisualFrameSource` exposes caller-owned
|
||||
`LocalcastRenderPoint` buffers, `LocalCastRuntime` publishes that buffer
|
||||
instead of managed seeds when present, and D3D12 uploads the native point bytes
|
||||
for the LocalCast fusion compute shader.
|
||||
- Edge JSON is schema/diagnostic only. Runtime network/process data should remain typed CultNet documents.
|
||||
- Python live producers and diagnostic CultCache/JSON file adapters are
|
||||
diagnostics, not production foundations. The OpenGL Spout sink has been
|
||||
deleted. Aquarium owns production Spout publication.
|
||||
- Python audio phase/live/Faust publishers have been moved under
|
||||
`localcast.diagnostics.*`, their live PowerShell launchers have been deleted,
|
||||
and reusable mic-profile/probe-band helpers now live in `audio_field`.
|
||||
Production audio ingest must use native capture workers and
|
||||
`LocalcastProducer`.
|
||||
- The AmbiX spatial-audio Python publisher is also quarantined as
|
||||
`localcast.diagnostics.spatial_audio`.
|
||||
- Neighbor sender is deployed at `C:\Meta\Mimir` on `192.168.1.84`.
|
||||
- Madman's desktop has `Start Mimir Sender.cmd` and `Stop Mimir Sender.cmd`.
|
||||
- Receiver OBS scene collection has `Neighbor PC - Video`, `Neighbor PC - Focusrite`, and `Neighbor PC - System Audio` Media Sources added.
|
||||
- V1 OBS bridge expansion is now gated by
|
||||
`calibration/runs/obs-v1-smoke-ledger.json`. The harness is
|
||||
`scripts/obs_smoke_test.py`, pure summary logic lives in
|
||||
`localcast.obs_smoke`, and the runbook is `docs/obs-v1-smoke-test.md`.
|
||||
A passing ledger needs `sender_capture`, `srt_receive`, and `obs_present`
|
||||
evidence for every planned endpoint, with endpoint drift, end-to-end latency,
|
||||
and confidence.
|
||||
- Sender uses SoundVolumeView for default device selection. Voicemeeter is no longer the loopback authority; co-streamer playback loopback uses the direct WASAPI shim scheduled into the neighbor console session.
|
||||
- Sender script was patched after failed transmission: live FFmpeg commands now include `-nostdin`, logs go under `C:\Meta\Mimir\logs`, and interactive video capture size is `1920x1080`.
|
||||
- Madman's desktop launchers call PowerShell wrappers: `scripts\start-localcast-desktop.ps1` and `scripts\stop-localcast-desktop.ps1`.
|
||||
- SSH-launched video capture fails with `gdigrab` error 5; test video from Madman's interactive desktop launcher.
|
||||
- VoidBot persona/state live under `.voidbot/voice/` and `.voidbot/state/`.
|
||||
Commit `.voidbot` dirt in a separate state commit whenever it appears.
|
||||
- V1 still has FFmpeg/SRT/OBS bridge utilities for LAN ingest.
|
||||
- The live stream app is C# plus Aquarium: `Mimir.slnx` contains
|
||||
`src/Mimir.App` and `src/Mimir.Runtime`.
|
||||
- `src/Mimir.App` hosts Aquarium Engine as the windowing/rendering/D3D12 bridge.
|
||||
- `src/Mimir.Runtime` owns `MimirSynchronizationHub`, configurable five-second
|
||||
rolling buffers, stream descriptors, source adapters, direct native ingest,
|
||||
and the video capture driver seam.
|
||||
- Local six-camera ingest should use direct driver adapters. Process-backed
|
||||
sources are bridge/network edges only.
|
||||
- Leap stereo IR is the first timing-camera candidate for direct ingest.
|
||||
- `native/reservoir` owns the lower shared-edge typed-handle invariant for
|
||||
Aquarium/Faust binding work.
|
||||
- Aquarium owns production GPU fusion, UI, and Spout2 publication.
|
||||
- Faust/native DSP owns hot audio alignment, separation, spatialization, and
|
||||
synchronized stems.
|
||||
- OBS receives final program surfaces; it does not own synchronization.
|
||||
|
||||
## Current Pressure
|
||||
|
||||
The useful next work is foundation surgery, not hardware feature expansion:
|
||||
|
||||
- build native capture workers that fill typed audio/render buffers through
|
||||
`LocalcastProducer`
|
||||
- bind Faust/native audio workers to the rolling-buffer `LocalcastRuntime`
|
||||
- build native mic/loopback/phase producers over `LocalcastProducer`; do not
|
||||
restore Python audio live launchers
|
||||
- delete the remaining diagnostic `visual_producer` command once native/Aquarium
|
||||
producer paths cover it; core reservoir clipping, Leap packed transforms, RGB
|
||||
reference splats, and diagnostic clap calibration have already been split out
|
||||
- bind Aquarium/Faust against the native runtime/producer ABI instead of
|
||||
reviving the deleted Python/OpenGL publisher
|
||||
- route future visual/audio runtime work through Aquarium/Faust/native runtime plus typed CultNet docs
|
||||
- keep FFmpeg/SRT bridge scripts only as simple LAN ingest and capture utilities
|
||||
- run the v1 OBS smoke-test witness ledger against the real sender/receiver
|
||||
before adding any OBS plugin/native receiver expansion
|
||||
- Implement the first concrete Leap direct capture driver and measure cadence.
|
||||
- Add remaining camera drivers through `IMimirVideoCaptureDriver`.
|
||||
- Add native audio capture workers for mic, loopback, and network audio feeds.
|
||||
- Bind Aquarium UI to stream health, buffer depth, timestamps, settings, and
|
||||
output management.
|
||||
- Keep PowerShell/FFmpeg/SRT as bridge utilities until native program output
|
||||
replaces them.
|
||||
|
||||
## Immediate Re-entry Instruction
|
||||
|
||||
Do not revive the Python/OpenGL bridge. Rehydrate, read
|
||||
`docs/native-rebuild-plan.md`, then run the v1 OBS smoke-test witness ledger
|
||||
before receiver expansion. After that clock evidence exists, cut toward native
|
||||
workers, Aquarium/Faust bindings, and typed CultNet boundaries.
|
||||
Read `docs/native-rebuild-plan.md`, then make the smallest direct-driver or
|
||||
runtime-buffer cut that improves the live Mimir machine. Do not restore deleted
|
||||
script infrastructure because a stale doc once missed it.
|
||||
|
|
|
|||
Loading…
Reference in a new issue