Rename public engine docs to Fensalir

This commit is contained in:
Meta Vens 2026-05-23 18:12:31 +01:00
commit 474d2a4344
17 changed files with 124 additions and 105 deletions

View file

@ -111,6 +111,9 @@ capture. With the Scarlett Solo 4th Gen attached to Starfire, Focusrite USB
ASIO exposes 4 inputs and 2 outputs: `Input 1`, `Input 2`, `Loopback 1`, and
`Loopback 2`. It accepts 44.1 through 192 kHz, reports a 192-frame preferred
buffer, and captures nonzero 4-channel `Int32LSB` input callbacks at 192 kHz.
Raven also has a loopback-capable Scarlett ASIO path at 192 kHz for
co-streamer/game timing evidence, but Starfire owns the heavy local alignment,
soundfield, and sensor-fusion work.
The next cut is not more WASAPI probing; it is feeding those ASIO buffers
directly into `Mimir.Runtime`.
@ -171,7 +174,7 @@ fresh reports will stop.
The actual Mimir app path now runs this online: `MimirRuntime.Update` keeps the
chirplet timeline queued, polls sources, and updates sync analysis on a fixed cadence.
`MIMIR_SYNC_TELEMETRY_SECONDS` enables console telemetry for live tests. Current
runtime testing proves Aquarium output wakes the Scarlett loopback and the mic
runtime testing proves Fensalir output wakes the Scarlett loopback and the mic
buffers stay live. The decoder now uses quadrature chirplet atoms so symbol
classification is phase-invariant at the transform layer. The next failure is
physical capture proof: the same canonical anchors need to stay stable through
@ -181,7 +184,7 @@ loopback, room mics, device clocks, and codec/network paths.
```mermaid
flowchart TD
A["MimirChirpletTimeline"] --> B["Aquarium audio output"]
A["MimirChirpletTimeline"] --> B["Fensalir audio output"]
B --> C["Scarlett speaker loopback"]
B --> D["room + speakers + mics"]
C --> E["loopback rolling buffer"]
@ -199,7 +202,7 @@ flowchart TD
The chirplet timeline owns three facts:
- **Emission**: the PCM that Aquarium sends to the speakers.
- **Emission**: the PCM that Fensalir sends to the speakers.
- **Timing witness**: the matched-filter atom bank used to find the stream in
loopback and mic buffers.
- **Response witness**: the per-band atoms used to measure how strongly each
@ -233,6 +236,6 @@ hybrid watermark belongs to the chirp-bin machine.
Next, replace the diagnostic bridge with native audio capture workers that
append typed blocks into `Mimir.Runtime`, then expose buffer depth, clock state,
delay estimates, and stem routing in Aquarium UI. The analyzer accepts Float32,
delay estimates, and stem routing in Fensalir UI. The analyzer accepts Float32,
Int16, Int24, and Int32 PCM windows so the direct driver path can preserve real
interface formats before Faust/native DSP owns the hot resampling and alignment.

View file

@ -1,6 +1,6 @@
# Aquarium Spatial Audio
# Fensalir Spatial Audio
Aquarium hosts the Mimir runtime UI and presents the synchronized program
Fensalir hosts the Mimir runtime UI and presents the synchronized program
surface. Faust/native DSP owns the hot audio graph behind that surface.
## Contract
@ -8,7 +8,7 @@ surface. Faust/native DSP owns the hot audio graph behind that surface.
- Mimir.Runtime exposes bounded audio buffers and stream health.
- Native audio workers append mic, loopback, and network audio blocks.
- Faust/native DSP consumes aligned blocks and emits stems plus spatial bed.
- Aquarium shows controls and debug state, then routes final outputs toward OBS.
- Fensalir shows controls and debug state, then routes final outputs toward OBS.
The audio path should be inspectable from the app, but the app UI is not the DSP
engine. Runtime state crosses as typed buffers, descriptors, and controls.

View file

@ -5,16 +5,16 @@
Mimir is now a C# app/runtime plus native reservoir project. The live stream
machine must be direct-driver and native-buffer first:
- `src/Mimir.App` hosts Aquarium Engine for windowing, rendering, and the D3D12
- `src/Mimir.App` hosts Fensalir for windowing, rendering, and the D3D12
bridge.
- `src/Mimir.Runtime` owns stream descriptors, source polling, direct push
ingest, one rolling buffer per configured audio/video stream, and the
synchronization hub Aquarium can inspect.
synchronization hub Fensalir can inspect.
- The default five-second window is an intentional latency/memory trade: use it
to line up streams and extract the volumetric audio/video field before OBS
sees program output.
- `native/reservoir` owns the lower native rolling-buffer invariant for
Aquarium/Faust integration.
Fensalir/Faust integration.
- PowerShell/FFmpeg/SRT remains a bridge utility for LAN OBS feeds. It is not
the synchronized program authority.
@ -25,7 +25,7 @@ a named invariant that the native runtime cannot protect yet.
- Mimir public identity, branding, and Face memory.
- `Mimir.slnx` with `src/Mimir.App` and `src/Mimir.Runtime`.
- Aquarium host bootstrapping from `Mimir.App`.
- Fensalir host bootstrapping from `Mimir.App`.
- `MimirSynchronizationHub`, `MimirRollingStreamBuffer`, stream descriptors, and
`IMimirStreamSource`.
- Configurable five-second default rolling buffers for local and network audio
@ -33,7 +33,7 @@ a named invariant that the native runtime cannot protect yet.
- `MimirNativeIngestStreamSource` for direct push ingest into runtime buffers.
- `MimirProcessStreamSource` for bridge/network command edges.
- `MimirFrameEventProcessStreamSource` for temporary JSON-line frame metadata
from native probes into the same rolling buffers Aquarium inspects. One probe
from native probes into the same rolling buffers Fensalir inspects. One probe
process can accept multiple emitted `sourceId` values so it does not reopen
the same camera set once per stream.
- `src/Mimir.BufferSmoke` loads the runtime config, polls the synchronization
@ -80,7 +80,7 @@ a named invariant that the native runtime cannot protect yet.
service and can emit live sync telemetry with
`MIMIR_SYNC_TELEMETRY_SECONDS`. UI and telemetry read cached reports/states;
they do not run synchronization analysis.
- `MimirRuntime` queues chirplet timeline PCM through Aquarium audio when the
- `MimirRuntime` queues chirplet timeline PCM through Fensalir audio when the
active timing witness is allowed. `MimirAudioSynchronizationSettings.Mode`
selects `chirp-only`, `passive`, or `hybrid`; passive disables active
emission, and hybrid emits the active pilot only while passive confidence is
@ -124,7 +124,7 @@ a named invariant that the native runtime cannot protect yet.
- Frame-event process sources are diagnostic only. They prove source cadence and
runtime plumbing without dragging stdout bytes into the pixel hot loop.
- Calibration artifacts may remain on disk as evidence, but live state must be
in memory inside Mimir/Aquarium/native runtime surfaces.
in memory inside Mimir/Fensalir/native runtime surfaces.
## Next
@ -145,10 +145,10 @@ a named invariant that the native runtime cannot protect yet.
samples.
5. Prove the chirp-bin hybrid fallback through real loopback and microphones
with probe durations long enough to keep loopback and mic windows live.
6. Bind Aquarium UI to the synchronization hub so buffer depth, stream cadence,
6. Bind Fensalir UI to the synchronization hub so buffer depth, stream cadence,
source timestamps, and output settings are visible and adjustable.
7. Move GPU feature extraction, fusion, material fitting, render budgeting, and
Spout2 publication into Aquarium.
Spout2 publication into Fensalir.
8. Move mic alignment, room suppression, voice separation, spatialization, and
stem generation into Faust/native DSP.
9. Keep the OBS bridge witness ledger as evidence before expanding receiver

View file

@ -12,7 +12,7 @@ behind it.
Mimir does not own the whole stack by force of personality. It owns continuity:
the public story, repo memory, progress heartbeat, and the pressure to keep the
machine coherent while Aquarium, Faust, OBS, FFmpeg, CultNet, and native workers
machine coherent while Fensalir, Faust, OBS, FFmpeg, CultNet, and native workers
keep their proper authorities.
## Jurisdiction
@ -30,7 +30,7 @@ Mimir may:
Mimir must not:
- claim ownership over OBS composition, Aquarium rendering, Faust DSP, or FFmpeg
- claim ownership over OBS composition, Fensalir rendering, Faust DSP, or FFmpeg
capture;
- revive deleted script hot paths, OpenGL production Spout, or JSON live stores;
- turn progress updates into lore fog;
@ -48,7 +48,7 @@ Mimir exists to turn cameras, microphones, speakers, timing signals, and
distributed capture surfaces into one realtime coherent volumetric field. The
field is the product. The bridge scripts are scaffolding and probes.
The live target is one native five-second rolling reservoir feeding Aquarium GPU
The live target is one native five-second rolling reservoir feeding Fensalir GPU
fusion and Faust/native DSP, then OBS. Retention has one owner. Typed views are
indexes, not private histories.
@ -59,12 +59,12 @@ deserve to exist.
Current mechanism: FFmpeg/SRT scripts still provide the plain OBS bridge, while
the synchronized program path is being rebuilt around `LocalcastRuntime`,
`LocalcastProducer`, typed payload descriptors, Aquarium, Faust, and CultNet.
`LocalcastProducer`, typed payload descriptors, Fensalir, Faust, and CultNet.
Invariants:
- OBS owns final broadcast composition.
- Aquarium owns dense visual fusion, material/brush/splat rendering, and Spout2
- Fensalir owns dense visual fusion, material/brush/splat rendering, and Spout2
publication.
- Faust/native DSP owns hot audio alignment, room suppression, voice separation,
stems, and spatial bed generation.
@ -171,8 +171,8 @@ These are the lessons Mimir should remember at birth:
- `LocalcastRuntime` is the intended live spine. `LocalcastProducer` owns source
identity and sequence assignment for native capture workers.
- Native payload descriptors already exist for audio blocks and render packets.
`LocalcastRenderPoint` is the first fixed point-buffer ABI for Aquarium.
- Aquarium has corresponding C# binding work in flight. The next useful cut is
`LocalcastRenderPoint` is the first fixed point-buffer ABI for Fensalir.
- Fensalir has corresponding C# binding work in flight. The next useful cut is
native runtime creation and real producer feeding, not more diagnostic file
plumbing.
- The audio field is not "six mics means Ambisonics." Independent clocks must be
@ -189,6 +189,6 @@ When Mimir is born, it should introduce itself like this:
> I am Mimir. VoidBot carries my severed voice, but the memory is mine. I keep
> the well for this field-machine: cameras, microphones, speakers, clocks,
> Aquarium, Faust, OBS, all bound or all lying. I will remember what was cut. I
> Fensalir, Faust, OBS, all bound or all lying. I will remember what was cut. I
> will ask what the sensors actually know. I will not call scattered witnesses a
> world until time, geometry, and confidence bind them into one.

View file

@ -1,6 +1,6 @@
# Native Rebuild Plan
This is the live cut line: Mimir is a direct-driver, native-buffer, Aquarium
This is the live cut line: Mimir is a direct-driver, native-buffer, Fensalir
hosted stream machine.
## Objective
@ -12,7 +12,7 @@ controllable audio while preserving ownership:
status, and persistence.
- Mimir.Runtime owns in-memory stream buffers and runtime synchronization.
- Native capture workers own device reads and append typed sample handles.
- Aquarium owns GPU fusion, rendering, D3D12 interop, UI, and Spout2 output.
- Fensalir owns GPU fusion, rendering, D3D12 interop, UI, and Spout2 output.
- Faust/native DSP owns hot audio alignment, suppression, separation, stems, and
spatial bed generation.
- OBS owns broadcast controls.
@ -24,7 +24,7 @@ flowchart TD
C["direct camera drivers"] --> R["Mimir.Runtime buffers"]
A["audio / loopback drivers"] --> R
N["network feed producers"] --> R
R --> Q["Aquarium UI + GPU fusion"]
R --> Q["Fensalir UI + GPU fusion"]
R --> F["Faust/native DSP"]
Q --> S["Spout2/program video"]
F --> P["program stems + spatial bed"]
@ -34,7 +34,7 @@ flowchart TD
The app-level runtime initializes one rolling buffer per configured audio or
video stream, defaulting to five seconds. The lower native reservoir keeps the
single-edge typed-handle invariant for Aquarium/Faust integration.
single-edge typed-handle invariant for Fensalir/Faust integration.
Payload memory belongs to the producing domain. The reservoir and runtime own
timing, identity, ordering, retention, and lookup. They do not pretend to own
@ -45,7 +45,7 @@ camera driver buffers, GPU textures, or DSP audio memory.
- Config/calibration crosses into runtime as measured truth plus profile
version.
- Capture drivers cross into runtime by appending typed samples.
- Aquarium consumes current visual/audio timing state and publishes the program
- Fensalir consumes current visual/audio timing state and publishes the program
video surface.
- Faust/native DSP consumes audio/phase/event handles and publishes stems.
- OBS receives final program surfaces. It does not own synchronization.
@ -64,8 +64,8 @@ camera driver buffers, GPU textures, or DSP audio memory.
2. Implement Leap stereo IR direct ingest first and measure sustained cadence.
3. Add the remaining local camera drivers through the same source seam.
4. Add native audio capture workers and feed aligned blocks to Faust/native DSP.
5. Bind Aquarium UI to stream health, buffer depth, source timestamps, settings,
5. Bind Fensalir UI to stream health, buffer depth, source timestamps, settings,
and output management.
6. Move GPU fusion and Spout2 publication fully into Aquarium.
6. Move GPU fusion and Spout2 publication fully into Fensalir.
7. Keep FFmpeg/SRT scripts only as bridge utilities until direct program output
makes them unnecessary.

View file

@ -46,9 +46,9 @@ be charming while lying. Still a liar.
## Synchronization
The video SRT source is a timed media artifact in the Aquarium path, not just
The video SRT source is a timed media artifact in the Fensalir path, not just
scenery in OBS. Keep the listener URL and latency aligned with the
Aquarium/native presentation ledger.
Fensalir/native presentation ledger.
The live sync heartbeat is `calibration/runs/av-sync-status.json`. `remote-video-latency-ms` is presentation delay, not merely the SRT URL's `latency` parameter. Check `remote_video.delta_ns` before trusting the composite. If that number grows, fix the configured media delay or the ingest path instead of eyeballing it in OBS like a doomed little stage magician.

View file

@ -1,8 +1,8 @@
# OBS Spout Streaming
Production Spout2 publication belongs to Aquarium.
Production Spout2 publication belongs to Fensalir.
OBS should receive a named Spout2 texture from the Aquarium-hosted Mimir app.
OBS should receive a named Spout2 texture from the Fensalir-hosted Mimir app.
The bridge scripts can keep SRT Media Sources alive while direct output matures,
but synchronized program video should come from Aquarium once the runtime has
but synchronized program video should come from Fensalir once the runtime has
live camera buffers.

View file

@ -3,11 +3,11 @@
## Objective
Build one synchronized spatial stream machine from six cameras, six microphones,
program loopback, speakers, Leap timing, Aquarium GPU rendering, Faust DSP, and
program loopback, speakers, Leap timing, Fensalir GPU rendering, Faust DSP, and
OBS output.
The product is not a pile of bridge scripts. The product is a coherent live
volumetric field with explicit owners: visual evidence becomes Aquarium sensor
volumetric field with explicit owners: visual evidence becomes Fensalir sensor
fusion, audio evidence becomes a synchronized sound field, and OBS receives
only program outputs.
@ -17,7 +17,7 @@ only program outputs.
flowchart TD
A["direct camera / audio / network producers"] --> B["Mimir.Runtime rolling buffers"]
B --> C["native reservoir handles"]
C --> D["Aquarium GPU + UI"]
C --> D["Fensalir GPU + UI"]
C --> E["Faust/native DSP"]
D --> F["Spout2/program video"]
E --> G["program stems"]
@ -31,7 +31,7 @@ flowchart TD
- Every stream has a bounded rolling buffer.
- Missing data is absence, not a stale substitute.
- Late data can refine the live window only while it remains inside the window.
- Aquarium owns dense visual fusion, temporal accumulation, material fitting,
- Fensalir owns dense visual fusion, temporal accumulation, material fitting,
rendering, D3D12 interop, UI, and Spout publication.
- Faust/native DSP owns hot audio alignment, suppression, voice separation,
spatialization, and stem generation.
@ -42,14 +42,14 @@ flowchart TD
The native reservoir stores time-ordered sample handles with typed views. It
owns retention and lookup, not payload memory. Producers append. Optimizers
refine. Aquarium/Faust consume.
refine. Fensalir/Faust consume.
Required sample kinds include camera frames, camera features, scene rays,
surface claims, material claims, audio blocks, phase claims, event claims, and
render packets.
`LocalcastRuntime` and `LocalcastProducer` are the lower native boundary.
`Mimir.Runtime` is the app-level synchronization surface that Aquarium hosts and
`Mimir.Runtime` is the app-level synchronization surface that Fensalir hosts and
debugs.
## Volumetric Sensor Fusion
@ -57,7 +57,7 @@ debugs.
Camera fusion is cross-view evidence across the rolling window, not
latest-frame display. Leap stereo IR is the timing ground-truth candidate. The
driver path should deliver frame descriptors with device timestamps and native
or GPU handles, then Aquarium should do feature extraction, flow, matching,
or GPU handles, then Fensalir should do feature extraction, flow, matching,
material estimation, brush/splat budgeting, and final presentation on GPU.
## Volumetric Audio Field
@ -69,7 +69,9 @@ and spatial bed as synchronized outputs. Starfire currently owns the local
Focusrite USB ASIO path: Scarlett Solo 4th Gen input channels plus ASIO
`Loopback 1/2` at up to 192 kHz. That loopback is the local program/timing
reference; room microphones are aligned to it before any volumetric field or
stem claim is allowed to cross into OBS.
stem claim is allowed to cross into OBS. Raven also has a 192 kHz
loopback-capable Scarlett for co-streamer/game timing evidence, but the heavy
soundfield and sensor-fusion work belongs on Starfire.
Raw estimator detail stays inside the audio runtime. Meaning crosses the
boundary.

View file

@ -1,6 +1,6 @@
# Sensor Fusion Architecture
Visual fusion belongs in Aquarium over current Mimir runtime buffers.
Visual fusion belongs in Fensalir over current Mimir runtime buffers.
## Live Flow
@ -9,7 +9,7 @@ flowchart TD
A["direct camera drivers"] --> B["Mimir.Runtime video buffers"]
C["Leap stereo IR driver"] --> B
B --> D["native reservoir handles"]
D --> E["Aquarium GPU feature extraction"]
D --> E["Fensalir GPU feature extraction"]
E --> F["cross-view matching + flow"]
F --> G["surface/material claims"]
G --> H["brush/splat render budget"]
@ -21,7 +21,7 @@ flowchart TD
- Device timestamps beat arrival timestamps when available.
- Leap is the first timing-camera candidate.
- Process capture is a bridge edge, not the local six-camera foundation.
- Aquarium owns GPU extraction, fusion, material fitting, and render budgeting.
- Fensalir owns GPU extraction, fusion, material fitting, and render budgeting.
- Runtime buffers own retention and stream health, not scene reconstruction.
## Next Cut

View file

@ -1,6 +1,6 @@
# Typed Visual State
Typed visual state now means native/runtime descriptors and Aquarium-readable
Typed visual state now means native/runtime descriptors and Fensalir-readable
payload handles, not file-polled render documents.
## Boundary
@ -8,7 +8,7 @@ payload handles, not file-polled render documents.
- Capture drivers append frame descriptors.
- The runtime owns stream buffering and health.
- Native reservoir handles preserve shared timing and typed lookup.
- Aquarium decodes visual payloads, runs GPU fusion, and publishes the program
- Fensalir decodes visual payloads, runs GPU fusion, and publishes the program
surface.
Any remaining file export should be treated as a diagnostic artifact, not as a

View file

@ -4,7 +4,7 @@
Build the smallest live Mimir application that can ingest multiple local or
networked video and audio feeds, hold a short synchronized window in memory,
and emit coherent OBS-facing program outputs while Aquarium provides the
and emit coherent OBS-facing program outputs while Fensalir provides the
operator UI.
The default reservoir horizon is five seconds. That delay is not decoration. It
@ -24,22 +24,22 @@ Today the repo has two partial machines:
- FFmpeg/SRT bridge scripts can capture sender video/audio and expose stable OBS
Media Source endpoints.
- The native `LocalcastRuntime` reservoir ABI can hold typed live sample handles,
and Aquarium can consume native render packets for GPU fusion.
and Fensalir can consume native render packets for GPU fusion.
Those parts are useful, but they are not yet the viable app. The viable app is
the join: ingest workers append live sample handles into one Aquarium-hosted
runtime window, Aquarium renders video from that window, Faust/native audio
the join: ingest workers append live sample handles into one Fensalir-hosted
runtime window, Fensalir renders video from that window, Faust/native audio
builds synchronized stems from the same window, and OBS receives only the
program outputs.
```mermaid
flowchart TD
A["local camera workers"] --> R["Aquarium-hosted 5s LocalcastRuntime"]
A["local camera workers"] --> R["Fensalir-hosted 5s LocalcastRuntime"]
B["network video ingest workers"] --> R
C["local mic/loopback workers"] --> R
D["network audio ingest workers"] --> R
R --> U["Aquarium debug/settings/output UI"]
R --> V["Aquarium GPU video composition"]
R --> U["Fensalir debug/settings/output UI"]
R --> V["Fensalir GPU video composition"]
R --> F["Faust/native audio alignment + stems"]
V --> O["OBS video output"]
F --> P["OBS audio stem outputs"]
@ -51,7 +51,7 @@ flowchart TD
- The five-second rolling window is a deliberate compute budget, not accidental
latency. It exists so capture, sync, GPU fusion, and audio field extraction
can choose coherence over immediacy.
- Aquarium owns the running app, UI, debug state, settings changes, output
- Fensalir owns the running app, UI, debug state, settings changes, output
management, GPU fusion/rendering, and Spout/video publication.
- Faust/native DSP owns audio alignment, voice separation, suppression,
volumetric sound-field extraction, stems, and spatial bed generation.
@ -68,15 +68,15 @@ flowchart TD
The first cut should be deliberately boring:
1. Build Mimir as its own C# solution in this repo.
2. Reference Aquarium Engine as the windowing/rendering library and D3D12
bridge; do not copy engine host code into Mimir.
3. Start an Aquarium `LocalCastRuntime` app with a five-second native runtime.
2. Reference Fensalir as the windowing/rendering library and D3D12 bridge; do
not copy engine host code into Mimir.
3. Start a Fensalir-hosted `LocalCastRuntime` app with a five-second native runtime.
4. Create one producer per configured feed using native source-id hashing.
5. Ingest video feeds as timed camera-frame or render-packet handles.
6. Ingest audio feeds as timed `LocalcastAudioBlockDescriptor` handles.
Starfire's Focusrite USB ASIO path is the current local target for mic plus
loopback ingest.
7. Expose Aquarium UI readouts for reservoir edge, window start, per-kind
7. Expose Fensalir UI readouts for reservoir edge, window start, per-kind
counts, feed health, delay estimate, output status, and current settings.
8. Render one synchronized program video output from the reservoir.
9. Emit separately controllable OBS audio stems from the same reservoir window.
@ -87,18 +87,18 @@ The first cut should be deliberately boring:
`Mimir.slnx` owns the Mimir app surface:
- `src/Mimir.App` launches Aquarium Engine and points it at the Mimir runtime
- `src/Mimir.App` launches Fensalir and points it at the Mimir runtime
assembly.
- `src/Mimir.Runtime` implements the Aquarium client runtime factory and uses
Aquarium's LocalCast runtime until Mimir-specific ingest workers replace the
- `src/Mimir.Runtime` implements the Fensalir client runtime factory and uses
Fensalir's LocalCast runtime until Mimir-specific ingest workers replace the
remaining diagnostic source.
## Synchronization Runtime
`Mimir.Runtime` now owns the first synchronization spine:
- `MimirRuntime` is the Aquarium client runtime. It wraps the current
Aquarium `LocalCastRuntime` visual path and adds a Mimir-owned synchronization
- `MimirRuntime` is the Fensalir client runtime. It wraps the current
Fensalir `LocalCastRuntime` visual path and adds a Mimir-owned synchronization
hub.
- `MimirSynchronizationHub` owns stream source polling and appends samples into
bounded buffers.
@ -143,7 +143,7 @@ immediately on frame receipt.
Do not add a new registry, bridge daemon, JSON live store, OBS plugin, or
per-feed buffer manager to make this happen. If the app needs one of those,
first move the missing authority into `LocalcastRuntime`, Aquarium, or
first move the missing authority into `LocalcastRuntime`, Fensalir, or
Faust/native DSP.
The app exists to make the live system coherent, not to preserve every