Add Fensalir program control surface

This commit is contained in:
Meta Vens 2026-05-29 23:53:04 +01:00
commit 293fbd1cf8
8 changed files with 585 additions and 7 deletions

View file

@ -201,6 +201,15 @@ a named invariant that the native runtime cannot protect yet.
The display feed remains derived evidence, not an independent timing owner.
`Mimir.BufferSmoke --synchronized-buffer-planner-smoke` proves the aligned
local-camera, Raven-display, loopback, and mic buffer shape.
- `MimirPresentationControlState` owns operator intent for the Fensalir program
surface: video feed visibility/solo/opacity/layer order, audio mute/solo/gain,
and global LUT preset selection. The `Mimir Program` UI panel is deliberately
compact and fadeable. Video choices filter production surface intents before
Fensalir composition; audio choices modify Faust gain controls and the samples
sent through Fensalir streaming DSP. LUT presets are typed postprocess state
with preset paths and strength; until the renderer grows LUT texture sampling,
preset exposure and bloom are mapped into existing `GraphicsSettings`.
`Mimir.BufferSmoke --presentation-control-smoke` proves the state owner.
- `MimirRuntime` no longer submits the legacy direct `AquariumSplineFrame`
spectrum dashboard. Live spectrum visualization authority is the
`AquariumFieldEvidenceFrame`: Mimir declares the rolling resource, emits a

View file

@ -0,0 +1,42 @@
# Program Control Surface
Mimir now exposes a compact Fensalir-hosted program panel for final presentation
intent.
Authority map:
- Owner: `MimirPresentationControlState` owns operator intent for program video,
audio mix, and global color preset.
- Inputs: runtime rolling buffers, aligned audio lanes, LUT preset selection,
feed visibility, feed opacity, stem mute/solo, and stem gain.
- Outputs: filtered video surface intents, Faust/native DSP gain controls,
sample gain applied before Fensalir streaming DSP, and a postprocess control
snapshot.
- Derived state: feed lists are derived from active rolling buffers. LUT preset
exposure and bloom are currently mapped into `GraphicsSettings`.
- Forbidden writers: OBS, bridge endpoints, debug readouts, and network arrival
timestamps must not choose program composition.
- Shared paths: local cameras, Raven display capture, and future network video
feeds all enter rolling buffers first, then the presentation state decides
whether they contribute to production surface intent.
- Deletion line: direct compositor shortcuts outside Fensalir FieldEvidence and
audio DSP are diagnostic only.
The current UI lives in the `Mimir Program` panel:
- `Video`: select feed, visible, solo, opacity, layer ordering.
- `Audio`: select stem/source, mute, solo, gain.
- `Color`: LUT preset and LUT strength.
The shader-side LUT path is explicit state, not finished renderer authority yet.
`MimirLookupTablePreset` carries `LutPath`, strength, contrast, saturation,
temperature, and tint so Fensalir can consume the same contract when the global
post shader grows real LUT sampling. Until that renderer cut lands, Mimir maps
the preset exposure and bloom values into existing Fensalir `GraphicsSettings`.
Smoke proof:
```powershell
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --presentation-control-smoke
```