5.6 KiB
5.6 KiB
Fresh Workspace Handoff
This is the short re-entry packet for E:\Projects\Mimir.
Do not trust this file for exact branch, HEAD, or dirty state. Ask git.
Rehydrate
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.
- Mimir's Face doctrine lives in
docs/mimir-face.md. - VoidBot persona/state live under
.voidbot/voice/and.voidbot/state/. Commit.voidbotdirt 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.slnxcontainssrc/Mimir.Appandsrc/Mimir.Runtime. src/Mimir.Apphosts Aquarium Engine as the windowing/rendering/D3D12 bridge.src/Mimir.RuntimeownsMimirSynchronizationHub, configurable five-second rolling buffers, stream descriptors, source adapters, direct native ingest, audio chirplet delay estimation, 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/reservoirowns 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
- 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.
- Turn the current loopback-referenced chirplet measurement into the real synchronization actuator: smooth delay/SRO, then drive fractional delay and variable-rate resampling.
- 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.
- Kiyo Pro has two UVC extension units. Moving it to a motherboard USB3 port
changed the descriptor path to
root_hub30/bcdUSB=0x0320and exposed 720p/1080p YUY2/MJPG/H264/NV12 at 60 fps, but Windows still reportsUsbHighSpeedrather thanUsbSuperSpeed; measured cadence remains about 25 fps across all tested formats. Verify cable/port SuperSpeed before poking writable vendor selectors. - First simultaneous local pull only saw LeapUVC, Kiyo Pro, and one PS3 Eye. The KS multi-stream harness and raw PS3 Eye probe can pull all three at once, but Leap drops hard under shared USB load: 40.12 fps when the PS3 Eye runs 640x480@60, and 81.10 fps when the PS3 Eye runs 320x240@187. The regular Kiyo and second PS3 Eye were absent, so six-camera viability is not proven.
- Current chirplet-backed smoke uses Scarlett speaker loopback as timing
authority.
MimirChirpletTimelineowns the structured birdsong-like timeline fingerprint: an order-3 de Bruijn sequence over 32 time/frequency constellation symbols. Start band, glide shape, duration, and following inter-chirp gap all carry code, so any three consecutive correctly detected symbols identify the event index inside the current operating horizon. The timeline owns Aquarium PCM segment rendering, transform-frame decoding, triplet anchor decoding, and per-band response hooks. Sync reports now include fractional delay and per-band matched energy.MimirAudioSynchronizationStatenow tracks smoothed delay and delay-slope/SRO ppm.MimirChirpletSymbolCodebookowns separable symbol definitions, andMimirChirpletStreamDecoderis the constrained chirplet-transform receiver: it emits transform frames with multiple phase-invariant symbol candidates and refined per-candidate sample offsets, selects code-valid triplet anchors through gap/clock coherence, and fits a source clock from a bounded PCM window. The canonical synthetic check isdotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --chirplet-self-test; it currently detects all 15 emitted chirps and recovers 13 anchors for events 0-12 with a 47999.999990 Hz clock fit and 0.000014 sample MAE.MimirRuntimeruns sync analysis as a bounded rotating service and caches reports/states for UI and telemetry; readouts must stay passive. Audio sync mode is runtime-owned:chirp-onlyemits active calibration,passivedisables emission and uses program-audio phase correlation, andhybridemits active pilot chunks only when passive confidence is weak. Actual Mimir.App testing proves Aquarium audio wakes Scarlett loopback, keeps mic buffers live, and produces confident online sync states, but the decoder still needs stronger symbol likelihoods/codebook distance before arbitrary real triplets can drive the actuator directly. PS3 Eye audio is enumeration/runtime-fragile: one run saw both mic buffers empty while both cameras were live, then a replug made both PS3 Eye mic buffers emit 480-frame WASAPI blocks again.
Immediate Re-entry Instruction
Prove the constrained chirplet-transform decoder through real loopback and mic paths, then turn decoded clock fits into the SRO/fractional-delay actuator. Keep loopback as timing authority. Do not call synchronization analysis from UI/telemetry readouts. Do not restore deleted script infrastructure because a stale doc once missed it.