From 90841af5895f9c6ba502e56bb425ef734bdba44e Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 1 Jun 2026 12:47:27 +0100 Subject: [PATCH] Show output buffer in center preview --- docs/implementation-plan.md | 4 ++++ notes/current-system-map.md | 9 ++++++--- notes/fresh-workspace-handoff.md | 8 +++++--- src/Mimir.Runtime/MimirRuntime.cs | 2 +- state/evidence.jsonl | 1 + state/map.yaml | 5 ++++- 6 files changed, 21 insertions(+), 8 deletions(-) diff --git a/docs/implementation-plan.md b/docs/implementation-plan.md index 0b93095..aa7a8f9 100644 --- a/docs/implementation-plan.md +++ b/docs/implementation-plan.md @@ -298,6 +298,10 @@ a named invariant that the native runtime cannot protect yet. commands, and grab/rotate/resize gizmo intent. `MimirRuntime` renders derived spline outlines and handle markers from that state, and the `Mimir Editor` panel exposes hierarchy, visibility, transform, creation, and reset controls. + The center preview now asks Fensalir's CultUI preview contract to blit the + current renderer output buffer behind Mimir's normalized placement overlays, + so the app preview is a live program-surface witness rather than a symbolic + rectangle diagram. See [[scene-editor-control-surface|Mimir Scene Editor Control Surface]]. `Mimir.BufferSmoke --scene-editor-smoke` proves the graph/control/gizmo owner path. World SDF text glyph rendering, ASSIMP-style mesh import/upload, and diff --git a/notes/current-system-map.md b/notes/current-system-map.md index 039a587..fddb20d 100644 --- a/notes/current-system-map.md +++ b/notes/current-system-map.md @@ -543,9 +543,12 @@ the editor camera, dynamic scene nodes, selected node, visibility/lock state, video buffers derive sensor-feed panel nodes; SDF text panels and model import requests create editor graph nodes. `MimirRuntime` presents that editor through the Fensalir camera plus derived spline outlines, selection handles, and the -`Mimir Editor` hierarchy/transform panel. This editor is not the OBS program -output. World SDF glyph rendering, ASSIMP-style mesh decoding/upload, and -pixel-accurate gizmo hit-testing are explicit Fensalir renderer cuts, mapped in +`Mimir Editor` hierarchy/transform panel. The center preview requests a +Fensalir-owned blit of the current output buffer, then draws Mimir's normalized +placement overlays on top. This editor is not the OBS program output authority; +it is a live program-surface witness. World SDF glyph rendering, ASSIMP-style +mesh decoding/upload, and pixel-accurate gizmo hit-testing are explicit +Fensalir renderer cuts, mapped in [[docs/scene-editor-control-surface|Mimir Scene Editor Control Surface]]. `Mimir.EveDashboard` is now a small native Eve dashboard broker. It serves `/eve/deck` plus the compatibility `/eve/dashboard` endpoint, exposes provider diff --git a/notes/fresh-workspace-handoff.md b/notes/fresh-workspace-handoff.md index 3a82d04..eb932c7 100644 --- a/notes/fresh-workspace-handoff.md +++ b/notes/fresh-workspace-handoff.md @@ -48,9 +48,11 @@ Get-Content .\state\evidence.jsonl -Tail 8 normalized placement; the Eve/CultUI surface is Video Sources on the left, a chrome-free program canvas in the center, Audio Mixer docked underneath that canvas, and a Unity-style Inspector on the right for the selected layer's - properties. Camera/SDF/model editor affordances have no live UI authority, - and editor camera/SDF/spline output no longer contributes to the runtime - frame. Smoke with `--scene-editor-smoke`. + properties. The center preview requests Fensalir's current output-buffer blit + as its background and overlays Mimir's normalized layer placements on top. + Camera/SDF/model editor affordances have no live UI authority, and editor + camera/SDF/spline output no longer contributes to the runtime frame. Smoke + with `--scene-editor-smoke`. - The Audio Mixer dock is a horizontal CultUI channel-strip bank, not a selected-stem inspector form. Six fixed slots read the live `presentationControls.AudioFeeds` order so Scarlett ASIO mono inputs, diff --git a/src/Mimir.Runtime/MimirRuntime.cs b/src/Mimir.Runtime/MimirRuntime.cs index 286c9f5..ca0593d 100644 --- a/src/Mimir.Runtime/MimirRuntime.cs +++ b/src/Mimir.Runtime/MimirRuntime.cs @@ -893,7 +893,7 @@ public sealed class MimirRuntime : IAquariumRuntime, IAquariumRuntimeServicesRec shell.Vertical("mimir.editor-center", center => { - center.Preview("scene.view-preview", "", () => sceneEditor.PreviewItems, weight: 2.2f); + center.Preview("scene.view-preview", "", () => sceneEditor.PreviewItems, weight: 2.2f, blitOutputBuffer: true); center.Pane("mimir.audio-mixer", "Audio Mixer", mixer => { mixer.Horizontal("audio.channel-bank", bank => diff --git a/state/evidence.jsonl b/state/evidence.jsonl index b1f5c18..7770dbd 100644 --- a/state/evidence.jsonl +++ b/state/evidence.jsonl @@ -326,3 +326,4 @@ {"ts": "2026-06-01T05:34:59+01:00", "type": "fix", "status": "ok", "note": "Fixed BufferSmoke NormalizePeak so offline audio receipts can amplify quiet Faust/C# diagnostic output instead of only attenuating hot samples. The earlier Kiyo+Faust receipt was valid DSP execution but the written WAV peaked around -38 dBFS because NormalizePeak returned quiet samples unchanged. Regenerated artifacts/runtime/kiyo-dual-mic-composite/kiyo-dual-mic-composite-latest.mp4 from run 20260601-051044; the Faust dialogue WAV now measures peak -0.724 dBFS and RMS -14.202 dBFS, with ffprobe verifying 10.000 s 640x480@30 H.264 plus 10.000 s 48 kHz mono AAC."} {"ts": "2026-06-01T12:19:43+01:00", "type": "implementation", "status": "ok", "note": "Added MimirProgramRecorder as the first app-owned recording feature. MimirRuntime now exposes Record/Stop in the Video Sources rail, tracks child-process status/output path, and stops the process tree. The current actuator delegates to scripts/record-kiyo-dual-mic-composite.ps1 so app recording produces the known Kiyo + Scarlett/Faust receipt under artifacts/runtime/mimir-app-recordings/ without making the script a second operator surface. Native program-output recording should replace that actuator behind the same owner."} {"ts": "2026-06-01T12:25:06+01:00", "type": "correction", "status": "ok", "note": "Corrected the app recording feature ownership after user rejected the isolated Kiyo/Faust mic receipt as half-assed. MimirProgramRecorder now delegates to scripts/record-stream-proof-output.ps1, writes artifacts/runtime/stream-proof/mimir-program-record-latest.mp4, and records the same Raven + Kiyo PIP + Starfire Scarlett NVENC/AAC composite used for Yggdrasil/public stream judgment. MIMIR_RECORD_START_RAVEN=1 asks the app recorder to launch Raven's sender; otherwise it records from an already-running feed. The earlier record-kiyo-dual-mic-composite delegate is no longer the app recorder actuator."} +{"ts": "2026-06-01T12:46:47+01:00", "type": "decision", "status": "ok", "note": "Mimir center preview now requests Fensalir's UI preview output-buffer blit and overlays MimirSceneEditorState placement items on top; Fensalir owns the backbuffer snapshot/draw, Mimir owns only preview intent and layer geometry."} diff --git a/state/map.yaml b/state/map.yaml index 52e0ceb..9f3858f 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -56,7 +56,10 @@ invariants: owns normalized video-layer placement for synced video streams and emits only video-source preview items; camera/SDF/model authoring has no live UI authority, and editor camera/SDF/spline output must not contribute to the - runtime frame. + runtime frame. The center preview requests a Fensalir-owned blit of the + current output buffer, then draws those normalized placement items on top; + the preview observes the program surface without becoming composition + authority. - `MimirProgramRecorder` owns the first app-level recording control. The Video Sources rail exposes `Record` / `Stop`, status text, latest output path, and process-tree shutdown. Its current actuator delegates to