Move program composition authority into Mimir
This commit is contained in:
parent
7a811ee329
commit
3dcc392080
23 changed files with 827 additions and 193 deletions
|
|
@ -2,11 +2,16 @@
|
|||
|
||||
## Objective
|
||||
|
||||
Make one local Windows computer available as OBS sources on another computer, with sender-side NVENC video encoding and independently mixable audio sources.
|
||||
Make one local Windows computer available as compatibility media sources on
|
||||
another computer, with sender-side NVENC video encoding and independently
|
||||
mixable audio sources. The current program target is Mimir-owned composition;
|
||||
this bridge is not the stream authority.
|
||||
|
||||
## Current Mechanism
|
||||
|
||||
The repo owns configuration and scripts. FFmpeg owns capture, encoding, and SRT transport. OBS owns scene composition.
|
||||
The repo owns configuration and scripts. FFmpeg owns capture, encoding, and SRT
|
||||
transport. Mimir owns scene composition; OBS may consume this bridge as a
|
||||
temporary compatibility sink.
|
||||
|
||||
Inputs become outputs like this:
|
||||
|
||||
|
|
@ -21,8 +26,10 @@ Inputs become outputs like this:
|
|||
## Invariants
|
||||
|
||||
- Video encoding happens on the sender.
|
||||
- OBS receives ordinary media-source URLs; it does not need a plugin for v1.
|
||||
- Audio remains separately mixable in OBS.
|
||||
- OBS can receive ordinary media-source URLs for compatibility; it does not need
|
||||
a plugin for this bridge path.
|
||||
- Audio remains separately mixable at the compatibility edge, but the durable
|
||||
control surface belongs to Mimir/Eve.
|
||||
- Ports are stable and derived from one base port plus explicit offsets.
|
||||
- Secrets, if used, stay in local config and are not committed.
|
||||
|
||||
|
|
|
|||
|
|
@ -15,8 +15,9 @@ Timestamp for this pass: 2026-05-23, starting at 23:24 Europe/London.
|
|||
|
||||
Mimir collects local and network audio/video samples into bounded rolling
|
||||
runtime buffers, uses active/passive timing evidence to place audio streams on a
|
||||
canonical timeline, and leaves Fensalir/Faust/OBS with clear ownership over
|
||||
rendering, DSP, and broadcast composition.
|
||||
canonical timeline, and lets Mimir own program composition while Fensalir lowers
|
||||
pixels, Faust/native DSP moves audio, Eve exposes operator surfaces, and
|
||||
Yggdrasil publishes the public feed.
|
||||
|
||||
## Current Mechanism
|
||||
|
||||
|
|
@ -54,11 +55,17 @@ reflection taps.
|
|||
- UI and telemetry read cached sync state; they do not run analysis.
|
||||
- Native capture owns hardware calls. Runtime owns sample identity and buffer
|
||||
placement.
|
||||
- Fensalir owns windowing, rendering, D3D12, UI, visual fusion, and program
|
||||
video output.
|
||||
- Mimir owns the program scene graph, subscription policy, preview/control
|
||||
state, stats, and publication intent.
|
||||
- Fensalir owns windowing, rendering, D3D12, UI lowering, visual fusion, and
|
||||
program video output.
|
||||
- Faust/native DSP will own hot resampling, fractional delay, separation,
|
||||
spatialization, and stems.
|
||||
- OBS owns broadcast composition.
|
||||
- Eve GUI/TUI lowerers render Mimir operator surfaces without owning scene
|
||||
truth.
|
||||
- The Yggdrasil-facing publisher daemon consumes Mimir program output without
|
||||
owning composition.
|
||||
- OBS is a compatibility sink only.
|
||||
|
||||
## Diagram
|
||||
|
||||
|
|
@ -83,6 +90,10 @@ flowchart TD
|
|||
AsioSource --> Sources
|
||||
Probes["native/probes/*"] --> FrameEvents["MimirFrameEventProcessStreamSource"]
|
||||
FrameEvents --> Sources
|
||||
Runtime --> Scene["Mimir program scene graph"]
|
||||
Scene --> Eve["Eve operator surfaces"]
|
||||
Scene --> Publisher["Yggdrasil site publisher"]
|
||||
Scene -. "compatibility" .-> Obs["OBS adapter"]
|
||||
Reservoir["native/reservoir"] -. "future lower ABI" .-> Hub
|
||||
```
|
||||
|
||||
|
|
@ -96,6 +107,9 @@ flowchart TD
|
|||
- `native/reservoir` is the lower native rolling-buffer ABI.
|
||||
- `native/probes/*` are measurement and diagnostic tools.
|
||||
- `scripts/*` are bridge utilities, not the final synchronized program path.
|
||||
- `docs/mimir-program-composition.md` is the authority map for Muninn capture
|
||||
hosts, Mimir composition, Eve operation, Yggdrasil publication, and OBS
|
||||
compatibility.
|
||||
|
||||
## Stage 0: Solution And App Host
|
||||
|
||||
|
|
|
|||
|
|
@ -13,12 +13,12 @@ For the source-level ownership map, read [[code-algorithm-map|Code Algorithm Map
|
|||
ingest, one rolling buffer per configured audio/video stream, and the
|
||||
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.
|
||||
to line up streams and extract the volumetric audio/video field before Mimir
|
||||
emits program output.
|
||||
- `native/reservoir` owns the lower native rolling-buffer invariant for
|
||||
Fensalir/Faust integration.
|
||||
- PowerShell/FFmpeg/SRT remains a bridge utility for LAN OBS feeds. It is not
|
||||
the synchronized program authority.
|
||||
- PowerShell/FFmpeg/SRT remains a bridge utility for LAN compatibility feeds.
|
||||
It is not the synchronized program or publication authority.
|
||||
|
||||
The old script stack is gone. Do not add a compatibility edge unless it protects
|
||||
a named invariant that the native runtime cannot protect yet.
|
||||
|
|
@ -184,7 +184,7 @@ a named invariant that the native runtime cannot protect yet.
|
|||
profiles, language/emission profiles, path-learning sessions, benchmark
|
||||
panels, audio actuator strategies, native capture profiles, camera ingest
|
||||
strategies, reservoir strategies, audio/visual field profiles, compute
|
||||
offload profiles, OBS publication profiles, CultMesh contracts, Fensalir
|
||||
offload profiles, program publication profiles, CultMesh contracts, Fensalir
|
||||
lowering, and assembly plans. Use
|
||||
`Mimir.BufferSmoke --perfect-machine-profile-smoke` to prove the catalog
|
||||
assembles, `--perfect-machine-contract-smoke` to write a CultCache contract
|
||||
|
|
@ -202,14 +202,40 @@ a named invariant that the native runtime cannot protect yet.
|
|||
source-id hashing, producer helpers, and typed audio/render payload
|
||||
descriptors.
|
||||
- Windows bridge scripts for sender discovery/start/stop and simple OBS Media
|
||||
Source ingest.
|
||||
Source compatibility ingest.
|
||||
- `src/Mimir.Runtime/Synchronization` now contains the first typed program
|
||||
composition contracts: `mimir.program_scene.v1`, `mimir.program_output.v1`,
|
||||
and `mimir.eve_operator_surface.v1`. These make Mimir's scene graph,
|
||||
Yggdrasil/site publication route, and Eve operator control/preview surface
|
||||
manifestable through CultMesh.
|
||||
- `docs/mimir-program-composition.md` is the current authority map for the new
|
||||
stream-program architecture: Muninn observes on Starfire/Nightwing/Raven-class
|
||||
hosts, Mimir consumes selected streams and composes the program, Eve lowers
|
||||
controls/previews/stats, Yggdrasil publishes to the site, and OBS is
|
||||
compatibility-only.
|
||||
- `src/Mimir.CultMeshMedia` is the first explicit CultMesh media/body bridge:
|
||||
`relay` hosts the document relay on CultNet UDP `3075`, `send` reads an
|
||||
MPEG-TS byte stream from stdin and publishes rolling
|
||||
`mimir.cultmesh_media_frame` documents, and `recv` subscribes to those
|
||||
documents and writes ordered MPEG-TS bytes to a Starfire-local UDP endpoint
|
||||
for compatibility sinks.
|
||||
- `scripts/start-raven-cultmesh-av-sender.ps1`,
|
||||
`scripts/start-yggdrasil-cultmesh-media-relay.ps1`, and
|
||||
`scripts/start-starfire-cultmesh-av-receiver.ps1` are the CultMesh bridge
|
||||
operators. Raven capture defaults to FFmpeg desktop frames plus Mimir's
|
||||
WASAPI loopback capture muxed as H.264/AAC MPEG-TS; DirectShow audio remains
|
||||
an explicit fallback.
|
||||
- Documentation for OBS receiver setup, native rebuild boundaries, the viable
|
||||
stream app, and the Mimir Face.
|
||||
|
||||
## Temporary
|
||||
|
||||
- Audio and video may still traverse separate OBS/SRT endpoints during bridge
|
||||
testing so OBS can preserve independent controls.
|
||||
testing, but Mimir/Eve owns independent controls.
|
||||
- The CultMesh media bridge still lowers to local UDP for compatibility sinks
|
||||
because OBS is not a CultMesh consumer. Network transit between Raven,
|
||||
Yggdrasil, and Starfire is the CultMesh/CultNet path; OBS-local UDP is an
|
||||
egress adapter only.
|
||||
- Process-backed stream sources are only acceptable for network bridge feeds or
|
||||
diagnostics. Six-camera local ingest belongs behind direct capture drivers.
|
||||
- Frame-event process sources are diagnostic only. They prove source cadence and
|
||||
|
|
@ -239,14 +265,20 @@ a named invariant that the native runtime cannot protect yet.
|
|||
with probe durations long enough to keep loopback and mic windows live.
|
||||
6. Bind Fensalir UI to the synchronization hub so buffer depth, stream cadence,
|
||||
source timestamps, and output settings are visible and adjustable.
|
||||
7. Lower `AquariumBufferFieldFrame` spline tube fields into Fensalir compute:
|
||||
7. Implement the Mimir program scene graph as the shared commit primitive for
|
||||
source subscription, transforms, crop, chroma key, visibility, layer order,
|
||||
preview, and output publication. Import the current OBS scene only as an
|
||||
initial mirror, then make Eve GUI/TUI the operator surface.
|
||||
8. Add the Yggdrasil-facing site publisher daemon that consumes the Mimir
|
||||
program output and publishes it without owning a second composition.
|
||||
9. Lower `AquariumBufferFieldFrame` spline tube fields into Fensalir compute:
|
||||
sample buffer-domain paths stochastically by visual contribution, emit SDF
|
||||
splat probes, write them into the spatiotemporal splat reservoir, and sample
|
||||
that reservoir in the temporally antialiased scene pass. The direct spline
|
||||
preview must stay a witness until this path owns rendering.
|
||||
8. Move GPU feature extraction, fusion, material fitting, render budgeting, and
|
||||
10. Move GPU feature extraction, fusion, material fitting, render budgeting, and
|
||||
Spout2 publication into Fensalir.
|
||||
9. Move mic alignment, room suppression, voice separation, spatialization, and
|
||||
11. Move mic alignment, room suppression, voice separation, spatialization, and
|
||||
stem generation into Faust/native DSP.
|
||||
10. Keep the OBS bridge witness ledger as evidence before expanding receiver
|
||||
12. Keep the OBS bridge witness ledger as evidence before expanding receiver
|
||||
machinery.
|
||||
|
|
|
|||
|
|
@ -48,9 +48,10 @@ 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 Fensalir GPU
|
||||
fusion and Faust/native DSP, then OBS. Retention has one owner. Typed views are
|
||||
indexes, not private histories.
|
||||
The live target is one native five-second rolling reservoir feeding Mimir-owned
|
||||
program composition, Fensalir GPU fusion, Faust/native DSP, Eve operator
|
||||
surfaces, and a Yggdrasil site publisher. OBS is compatibility only. Retention
|
||||
has one owner. Typed views are indexes, not private histories.
|
||||
|
||||
## Operating Doctrine
|
||||
|
||||
|
|
@ -63,11 +64,15 @@ the synchronized program path is being rebuilt around `LocalcastRuntime`,
|
|||
|
||||
Invariants:
|
||||
|
||||
- OBS owns final broadcast composition.
|
||||
- Fensalir owns dense visual fusion, material/brush/splat rendering, and Spout2
|
||||
publication.
|
||||
- Mimir owns final program composition, source subscription, preview/control
|
||||
state, stats, and publication intent.
|
||||
- Fensalir owns dense visual fusion, material/brush/splat rendering, and local
|
||||
program texture output.
|
||||
- Faust/native DSP owns hot audio alignment, room suppression, voice separation,
|
||||
stems, and spatial bed generation.
|
||||
- Eve lowerers render operator controls and preview without owning scene truth.
|
||||
- The Yggdrasil publisher daemon ships the Mimir program to the site without
|
||||
owning composition.
|
||||
- FFmpeg owns simple capture, encode, and transport in V1 bridge mode.
|
||||
- Mimir/this repo owns configuration, calibration, launch/status, typed
|
||||
contracts, memory, and operational repeatability.
|
||||
|
|
|
|||
111
docs/mimir-program-composition.md
Normal file
111
docs/mimir-program-composition.md
Normal file
|
|
@ -0,0 +1,111 @@
|
|||
# Mimir Program Composition
|
||||
|
||||
## Objective
|
||||
|
||||
Mimir owns the live stream program: selected capture feeds, calibration feeds,
|
||||
scene composition, preview/control surfaces, stats, and publication. OBS is a
|
||||
temporary compatibility sink only.
|
||||
|
||||
## Authority Map
|
||||
|
||||
- Owner: Mimir owns the program scene graph and subscription policy.
|
||||
- Inputs: Muninn-published local and remote monitor, window, camera, audio,
|
||||
loopback, and health streams.
|
||||
- Outputs: a Mimir program video surface, aligned audio stems or final bus, Eve
|
||||
GUI/TUI operator surfaces, and a Yggdrasil-facing site publication feed.
|
||||
- Derived state: OBS receives a compatibility feed when useful; it does not own
|
||||
scene truth, broadcast truth, preview truth, stats, source selection, or
|
||||
publication.
|
||||
- Forbidden writers: OBS scenes, browser dashboards, site daemons, and Muninn
|
||||
capture hosts must not independently decide the program composition.
|
||||
- Shared paths: direct operator edits, remote Eve commands, preset loads,
|
||||
calibration-driven source selection, and recovery scripts must commit through
|
||||
the same Mimir scene graph command surface.
|
||||
- Deletion line: old OBS-owned composition docs and config names are demoted to
|
||||
diagnostic bridge language. Any OBS adapter delegates to the Mimir program
|
||||
scene instead of carrying its own opinion.
|
||||
|
||||
## Machine Shape
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
A["Muninn on Starfire"] --> D["CultMesh stream catalog + media bodies"]
|
||||
B["Muninn on Nightwing"] --> D
|
||||
C["Muninn on Raven"] --> D
|
||||
D --> E["Mimir subscription policy"]
|
||||
E --> F["Mimir rolling buffers"]
|
||||
F --> G["Mimir program scene graph"]
|
||||
G --> H["Fensalir compositor"]
|
||||
F --> I["Faust/native DSP"]
|
||||
H --> J["program video surface"]
|
||||
I --> K["program audio stems/bus"]
|
||||
G --> L["Eve GUI/TUI operator surfaces"]
|
||||
J --> M["Yggdrasil site publisher daemon"]
|
||||
K --> M
|
||||
M --> N["GameCult site"]
|
||||
J -. "compatibility" .-> O["OBS adapter"]
|
||||
K -. "compatibility" .-> O
|
||||
```
|
||||
|
||||
## Composition Contract
|
||||
|
||||
The scene graph carries layers with:
|
||||
|
||||
- source reference, such as `muninn:starfire:monitor:primary` or
|
||||
`muninn:starfire:window:discord`;
|
||||
- source kind, such as monitor, window, camera, network monitor, or generated
|
||||
Mimir visual field;
|
||||
- visibility, layer order, transform, crop, and optional chroma key;
|
||||
- enough timing identity for Mimir to align media inside the rolling window.
|
||||
|
||||
The current OBS scene can be mirrored as an initial Mimir scene:
|
||||
|
||||
- Starfire monitor capture, cropped at the bottom when needed.
|
||||
- Discord window capture, cropped to chat and keyed with chroma filters.
|
||||
- Raven primary monitor plus Realtek loopback as a subscribed remote Muninn
|
||||
stream.
|
||||
- Mimir/Fensalir program texture as a generated layer when the field renderer is
|
||||
active.
|
||||
|
||||
After import, OBS is not the editor of record. It may display the Mimir program
|
||||
feed, but operator edits happen through Mimir/Eve command surfaces.
|
||||
|
||||
## Eve Operator Surface
|
||||
|
||||
Mimir publishes Eve GUI/TUI documents for:
|
||||
|
||||
- live program preview;
|
||||
- source catalog and subscription state;
|
||||
- layer transform, crop, chroma key, visibility, and ordering;
|
||||
- audio stem gain/mute/route controls;
|
||||
- stream health, latency, buffer depth, timing confidence, and publication
|
||||
status;
|
||||
- emergency scene selection and publisher recovery commands.
|
||||
|
||||
Eve lowerers render those controls on any device without owning the underlying
|
||||
scene graph.
|
||||
|
||||
## Site Publisher
|
||||
|
||||
The Yggdrasil-facing publisher consumes Mimir program output and publishes it to
|
||||
the GameCult site. It owns transport, encoding/session state, reconnect policy,
|
||||
and public edge health. It does not own composition.
|
||||
|
||||
The publisher's input contract is the same Mimir program output used by local
|
||||
preview and OBS compatibility adapters, so the public stream cannot silently
|
||||
diverge from the operator preview.
|
||||
|
||||
## Runtime Contracts
|
||||
|
||||
The first typed contracts live in `src/Mimir.Runtime/Synchronization`:
|
||||
|
||||
- `mimir.program_scene.v1`
|
||||
- `mimir.program_output.v1`
|
||||
- `mimir.eve_operator_surface.v1`
|
||||
|
||||
The proof path is:
|
||||
|
||||
```powershell
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --perfect-machine-contract-smoke
|
||||
dotnet run --project .\src\Mimir.BufferSmoke\Mimir.BufferSmoke.csproj -- --perfect-machine-profile-smoke
|
||||
```
|
||||
|
|
@ -5,17 +5,24 @@ hosted stream machine.
|
|||
|
||||
## Objective
|
||||
|
||||
Make the room available in OBS as synchronized program video plus separately
|
||||
Make the room available as a Mimir-owned synchronized program with separately
|
||||
controllable audio while preserving ownership:
|
||||
|
||||
- Mimir owns configuration, calibration truth, runtime contracts, launch,
|
||||
status, and persistence.
|
||||
- Mimir.Runtime owns in-memory stream buffers and runtime synchronization.
|
||||
- Native capture workers own device reads and append typed sample handles.
|
||||
- Fensalir owns GPU fusion, rendering, D3D12 interop, UI, and Spout2 output.
|
||||
- Mimir owns stream subscription, scene composition, preview/control state,
|
||||
stats, and program publication intent.
|
||||
- Fensalir owns GPU fusion, rendering, D3D12 interop, UI lowering, and local
|
||||
program texture output.
|
||||
- Faust/native DSP owns hot audio alignment, suppression, separation, stems, and
|
||||
spatial bed generation.
|
||||
- OBS owns broadcast controls.
|
||||
- Eve GUI/TUI lowerers expose operator controls and preview without owning
|
||||
scene truth.
|
||||
- The Yggdrasil-facing publisher daemon consumes Mimir program output and
|
||||
publishes it to the site without owning composition.
|
||||
- OBS is a temporary compatibility sink.
|
||||
|
||||
## Runtime State Model
|
||||
|
||||
|
|
@ -26,10 +33,13 @@ flowchart TD
|
|||
N["network feed producers"] --> R
|
||||
R --> Q["Fensalir UI + GPU fusion"]
|
||||
R --> F["Faust/native DSP"]
|
||||
Q --> S["Spout2/program video"]
|
||||
Q --> S["Mimir program video"]
|
||||
F --> P["program stems + spatial bed"]
|
||||
S --> O["OBS"]
|
||||
P --> O
|
||||
Q --> E["Eve operator surfaces"]
|
||||
S --> Y["Yggdrasil site publisher"]
|
||||
P --> Y
|
||||
S -. "compatibility" .-> O["OBS adapter"]
|
||||
P -. "compatibility" .-> O
|
||||
```
|
||||
|
||||
The app-level runtime initializes one rolling buffer per configured audio or
|
||||
|
|
@ -48,7 +58,8 @@ camera driver buffers, GPU textures, or DSP audio memory.
|
|||
- 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.
|
||||
- OBS compatibility adapters may receive final program surfaces. They do not
|
||||
own synchronization, composition, preview/control, or publication.
|
||||
|
||||
## Impossible By Construction
|
||||
|
||||
|
|
|
|||
|
|
@ -38,19 +38,23 @@ Read this with:
|
|||
|
||||
Mimir is a bounded-latency realtime field computer: it ingests many clocks,
|
||||
places their evidence inside one rolling temporal window, extracts audio/video
|
||||
geometry from that window, and emits an OBS-usable program surface without
|
||||
letting OBS become the synchronization authority.
|
||||
geometry from that window, owns the stream program scene, exposes Eve operator
|
||||
surfaces, and emits a publicable program feed without letting compatibility
|
||||
sinks become authority.
|
||||
|
||||
## Authority Index
|
||||
|
||||
| Authority | Owns | Must Not Own |
|
||||
| --- | --- | --- |
|
||||
| `Mimir.Runtime` | stream identity, buffers, sync reports, calibration model loading, source polling, telemetry state | hot DSP actuator, dense visual fusion, broadcast composition |
|
||||
| Native capture | direct driver callbacks, device timestamps, payload handles, low-jitter capture loops | runtime policy, UI state, OBS composition |
|
||||
| Mimir program composition | source subscription, scene graph, crop/key/transform state, preview/control state, stats, publication intent | local device reads, GPU shader internals, audio-rate DSP, site transport policy |
|
||||
| `Mimir.Runtime` | stream identity, buffers, sync reports, calibration model loading, source polling, telemetry state | hot DSP actuator, dense visual fusion, direct device capture |
|
||||
| Native capture / Muninn hosts | direct driver callbacks, device timestamps, payload handles, local stream capabilities/media | runtime policy, scene composition, publication |
|
||||
| `native/reservoir` | shared-edge retention and typed views | payload memory interpretation, rendering, DSP |
|
||||
| Fensalir | window, UI, D3D12 bridge, GPU fusion, program video publication | clock authority, audio actuator |
|
||||
| Fensalir | window, UI lowering, D3D12 bridge, GPU fusion, program video output | clock authority, audio actuator, scene ownership |
|
||||
| Faust/native DSP | fractional delay, resampling, separation, spatialization, stems | stream discovery, UI |
|
||||
| OBS | final broadcast composition | synchronization, capture timing |
|
||||
| Eve lowerers | operator GUI/TUI rendering, controls, previews, stats lowering | scene truth, stream truth, publication truth |
|
||||
| Yggdrasil site publisher | public transport, encoder/session state, reconnect policy, site edge health | scene composition |
|
||||
| OBS | compatibility preview/output sink | synchronization, capture timing, composition, publication |
|
||||
| Raven/phones | local decode of codebook/schedule observations | canonical clock authority |
|
||||
|
||||
## Evidence Taxonomy
|
||||
|
|
@ -241,7 +245,9 @@ Six optical sensors with high-rate Eyes and Leap IR mean:
|
|||
- Cut JSON/stdout local camera hot path when concrete direct drivers land.
|
||||
- Cut legacy chirplet path once chirp-bin decoder has equivalent docs/tests and
|
||||
physical path proof.
|
||||
- Cut bridge scripts only after OBS-facing direct output is real.
|
||||
- Cut bridge scripts only after Mimir program output, Eve operation, and
|
||||
Yggdrasil publication are real enough that OBS compatibility no longer earns
|
||||
its keep.
|
||||
- Cut ad hoc response weighting if a formal path model replaces it.
|
||||
|
||||
## Future Work Index
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ job-interview answer for why it belongs in the body of the machine.
|
|||
| Visual fusion configurations | `Mimir.Runtime` + Fensalir | Sensor roles and fusion modes from cadence proof through full hybrid evidence. | `src/Mimir.Runtime/Synchronization/MimirVisualFusionConfiguration.cs` |
|
||||
| Compute offload configurations | `Mimir.Runtime` + CultMesh | Local-heavy, distributed witness, and calibration sweep workload placement. | `src/Mimir.Runtime/Synchronization/MimirComputeOffloadConfiguration.cs` |
|
||||
| Assembly plans | `Mimir.Runtime` | Named combinations of modules that prove synthetic, Scarlett, meatspace, and distributed cuts. | `src/Mimir.Runtime/Synchronization/MimirMachineAssemblyPlan.cs` |
|
||||
| OBS publication profiles | Fensalir + Faust + OBS | Spout/shared-texture video and separately mixable Faust stem publication. | `src/Mimir.Runtime/Synchronization/MimirObsPublicationConfiguration.cs` |
|
||||
| Program publication profiles | Mimir + Fensalir + Faust + Eve + Yggdrasil | Mimir-owned scene publication, Eve operator surfaces, Yggdrasil site feed, and temporary OBS compatibility adapters. | `src/Mimir.Runtime/Synchronization/MimirProgramPublicationConfiguration.cs` |
|
||||
| Fensalir lowering | `Mimir.Runtime` -> Fensalir | Pure mapping from Mimir rolling/video/audio state into Fensalir GPU sensor and acoustic field frames. | `src/Mimir.Runtime/Synchronization/MimirFensalirFieldLowering.cs` |
|
||||
| Module catalog | `Mimir.Runtime` | Indexes the live module set and verification commands. | `src/Mimir.Runtime/Synchronization/MimirModuleLibrary.cs` |
|
||||
| Manifest factory | `Mimir.Runtime` | Produces an exportable JSON manifest for tools, docs, UI, and remote witnesses. | `src/Mimir.Runtime/Synchronization/MimirPerfectMachineManifest.cs` |
|
||||
|
|
@ -42,7 +42,8 @@ job-interview answer for why it belongs in the body of the machine.
|
|||
stem generation.
|
||||
- CultMesh carries typed state surfaces; remote nodes may observe and decode,
|
||||
but they do not become independent clock authorities.
|
||||
- OBS receives final program surfaces and stems. It does not own calibration.
|
||||
- OBS may receive compatibility program surfaces and stems. It does not own
|
||||
calibration, composition, preview/control, or publication.
|
||||
|
||||
## Verification Surface
|
||||
|
||||
|
|
|
|||
|
|
@ -4,12 +4,13 @@
|
|||
|
||||
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 Fensalir provides the
|
||||
operator UI.
|
||||
and emit coherent Mimir program outputs while Eve provides operator surfaces
|
||||
and Yggdrasil publishes the site feed.
|
||||
|
||||
The default reservoir horizon is five seconds. That delay is not decoration. It
|
||||
is the budget that lets late network packets, independent capture clocks,
|
||||
audio/video alignment, and debug controls converge before OBS sees the result.
|
||||
audio/video alignment, and debug controls converge before Mimir emits the
|
||||
program result.
|
||||
Mimir is explicitly trading latency and memory for throughput and extraction
|
||||
quality: the app may spend that buffered window lining streams up and crunching
|
||||
audio/video data to recover as much of the volumetric audio field and
|
||||
|
|
@ -21,16 +22,16 @@ alignment and field-reconstruction budget.
|
|||
|
||||
Today the repo has two partial machines:
|
||||
|
||||
- FFmpeg/SRT bridge scripts can capture sender video/audio and expose stable OBS
|
||||
Media Source endpoints.
|
||||
- FFmpeg/SRT bridge scripts can capture sender video/audio and expose stable
|
||||
compatibility endpoints.
|
||||
- The native `LocalcastRuntime` reservoir ABI can hold typed live sample handles,
|
||||
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 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.
|
||||
builds synchronized stems from the same window, Mimir commits the scene graph,
|
||||
Eve lowers the operator surface, and Yggdrasil publishes the program output.
|
||||
|
||||
```mermaid
|
||||
flowchart TD
|
||||
|
|
@ -39,10 +40,15 @@ flowchart TD
|
|||
C["local mic/loopback workers"] --> R
|
||||
D["network audio ingest workers"] --> R
|
||||
R --> U["Fensalir debug/settings/output UI"]
|
||||
R --> V["Fensalir GPU video composition"]
|
||||
R --> S["Mimir program scene graph"]
|
||||
S --> U
|
||||
S --> V["Fensalir GPU video composition"]
|
||||
R --> F["Faust/native audio alignment + stems"]
|
||||
V --> O["OBS video output"]
|
||||
F --> P["OBS audio stem outputs"]
|
||||
S --> E["Eve GUI/TUI operator surfaces"]
|
||||
V --> Y["Yggdrasil site publisher"]
|
||||
F --> Y
|
||||
V -. "compatibility" .-> O["OBS adapter"]
|
||||
F -. "compatibility" .-> O
|
||||
```
|
||||
|
||||
## Invariants
|
||||
|
|
@ -51,12 +57,17 @@ 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.
|
||||
- Fensalir owns the running app, UI, debug state, settings changes, output
|
||||
management, GPU fusion/rendering, and Spout/video publication.
|
||||
- Mimir owns the program scene graph, source subscription policy, preview/control
|
||||
state, stats, and publication intent.
|
||||
- Fensalir owns the running app host, UI lowering, debug state, GPU
|
||||
fusion/rendering, and local program texture output.
|
||||
- Faust/native DSP owns audio alignment, voice separation, suppression,
|
||||
volumetric sound-field extraction, stems, and spatial bed generation.
|
||||
- OBS receives synchronized program surfaces. Raw unsynchronized feeds may be
|
||||
diagnostic inputs, not broadcast truth.
|
||||
- Eve lowerers render controls and previews without owning scene truth.
|
||||
- The Yggdrasil publisher consumes synchronized program surfaces without owning
|
||||
a second composition.
|
||||
- OBS compatibility adapters may receive synchronized program surfaces. Raw
|
||||
unsynchronized feeds may be diagnostic inputs, not broadcast truth.
|
||||
- Networked feeds are producers into the same reservoir. They do not own clocks,
|
||||
private buffers, or a parallel synchronization model.
|
||||
- Missing feeds become explicit absence or silent/blank placeholders inside the
|
||||
|
|
@ -78,9 +89,14 @@ The first cut should be deliberately boring:
|
|||
loopback ingest.
|
||||
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.
|
||||
10. Keep the existing FFmpeg/SRT scripts as edge utilities for network capture
|
||||
8. Render one synchronized Mimir program video output from the reservoir.
|
||||
9. Emit separately controllable program audio stems from the same reservoir
|
||||
window.
|
||||
10. Publish Eve GUI/TUI operator surfaces for preview, source selection, scene
|
||||
edits, stats, and output state.
|
||||
11. Add the Yggdrasil-facing publisher daemon that consumes Mimir program
|
||||
output without owning composition.
|
||||
12. Keep the existing FFmpeg/SRT scripts as edge utilities for network capture
|
||||
and OBS compatibility, not as the stream authority.
|
||||
|
||||
## Repo Shape
|
||||
|
|
|
|||
Loading…
Reference in a new issue