diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index bc9d22d..ab57e93 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -151,9 +151,12 @@ a named invariant that the native runtime cannot protect yet. `AquariumStreamingDspProgram`, so Fensalir has both the persistent Faust DSP graph and the matching controls. The runtime now also queues sample-bearing `AquariumStreamingAudioBlock` lanes from the latest actuator source buffers, - using the bank-assigned Faust `sourceN` slot as channel authority. Durable - stem routing/publication is still the next cut before aligned audio becomes a - separately mixable program output. + using the bank-assigned Faust `sourceN` slot as channel authority. Fensalir + now publishes processed DSP output as `AquariumAudioStemFrame` records through + an engine-owned `IAquariumAudioStemBus`, and Mimir declares deterministic + aligned-source stem names with the actuator program. OBS-facing publication is + still the next cut before those stems become separately mixable program + outputs. - `MimirRuntime` no longer submits the legacy direct `AquariumSplineFrame` spectrum dashboard. Live spectrum visualization authority is the `AquariumFieldEvidenceFrame`: Mimir declares the rolling resource, emits a diff --git a/notes/current-system-map.md b/notes/current-system-map.md index e0dbbbf..416868c 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -312,8 +312,11 @@ control frame, declares `faust/mimir_alignment_actuator.dsp` as an Mimir also queues sample-bearing `AquariumStreamingAudioBlock` lanes from the latest actuator source buffers, using the bank-assigned Faust `sourceN` control path as channel authority. Fensalir can compile/host/process that persistent -Faust graph now; durable stem routing and OBS-facing publication still have to -turn processed output lanes into separately mixable program audio. +Faust graph now. The engine now publishes processed output lanes as +`AquariumAudioStemFrame` records through `IAquariumAudioStemBus`, with Mimir's +actuator program declaring deterministic aligned-source stem names. OBS-facing +publication still has to consume those stems as separately mixable program +audio. ## Visual Fusion diff --git a/src/Mimir.Runtime/MimirRuntime.cs b/src/Mimir.Runtime/MimirRuntime.cs index 1fe9d05..77ee36e 100644 --- a/src/Mimir.Runtime/MimirRuntime.cs +++ b/src/Mimir.Runtime/MimirRuntime.cs @@ -955,7 +955,13 @@ public sealed class MimirRuntime : IAquariumRuntime, IAquariumRuntimeServicesRec profile.Id, "mimir_alignment_actuator", File.ReadAllText(path), - unchecked((int)File.GetLastWriteTimeUtc(path).Ticks))); + unchecked((int)File.GetLastWriteTimeUtc(path).Ticks), + OutputStems: Enumerable.Range(0, profile.SourceCount) + .Select(index => new AquariumStreamingDspOutputStem( + index, + $"aligned_source_{index}", + $"Aligned source {index}")) + .ToArray())); audioActuatorProgramQueued = true; } diff --git a/state/evidence.jsonl b/state/evidence.jsonl index 11cad10..423336d 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -187,3 +187,4 @@ {"ts": "2026-05-27T18:06:41+01:00", "type": "decision", "status": "ok", "note": "MimirRuntime now queues the latest MimirAlignmentActuatorBank frame into AquariumAudioDocument as an engine audio control frame. This creates the Mimir-to-Fensalir control contract for Faust/native DSP targets, but remains control-plane only until a streaming DSP sample mover consumes it."} {"ts": "2026-05-27T18:54:28+01:00", "type": "decision", "status": "ok", "note": "Mimir now declares faust/mimir_alignment_actuator.dsp as an AquariumStreamingDspProgram before queuing actuator controls, giving Fensalir both the persistent Faust DSP graph and the control frames. Live sample alignment still waits on the next device I/O/stem-routing cut."} {"ts": "2026-05-27T20:18:50+01:00", "type": "verification", "status": "ok", "note": "MimirRuntime now queues sample-bearing AquariumStreamingAudioBlock lanes for actuator source buffers after publishing the control frame. Channel indices are derived from the bank-assigned Faust sourceN control path, so source disappearance does not reshuffle lanes. Mimir build passed; Fensalir tests prove declared blocks enter the streaming Faust DSP host."} +{"ts": "2026-05-27T20:28:43+01:00", "type": "verification", "status": "ok", "note": "Fensalir now publishes processed streaming Faust DSP output lanes as AquariumAudioStemFrame records through an engine-owned IAquariumAudioStemBus. Mimir declares deterministic aligned-source output stems when queuing faust/mimir_alignment_actuator.dsp, so processed actuator lanes have stable stem names before OBS-facing publication consumes them. Fensalir build and Aquarium.Engine.Tests passed; Mimir build and --audio-actuator-bank-smoke passed."} diff --git a/state/map.yaml b/state/map.yaml index aec9104..7bd40ef 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -189,8 +189,10 @@ accepted_design: controls. The same runtime cadence queues sample-bearing `AquariumStreamingAudioBlock` lanes from the latest actuator source buffers, with channel indices derived from the bank-assigned Faust `sourceN` control - path; live stem publication still waits on routing processed DSP output - lanes into program audio. The synthetic + path. Fensalir now publishes processed DSP output lanes as + `AquariumAudioStemFrame` records on an engine-owned audio stem bus, and + Mimir declares deterministic aligned-source stem names with the actuator + program; OBS-facing stem publication is the remaining program-audio cut. The synthetic codebook proof is `dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --bioacoustic-self-test`. `Mimir.BufferSmoke --render-chirp-bin-f32` plus