Add lazy Muninn telemetry organ
This commit is contained in:
parent
6ad39e776e
commit
b63f8e4241
21 changed files with 863 additions and 44 deletions
|
|
@ -97,8 +97,24 @@ schema truth, provider dashboards, identity grants, Discord delivery, owner-DM
|
|||
delivery, or renderer layout. Keepalive loops belong in Idunn, not Odin's
|
||||
coordinator or individual daemons.
|
||||
|
||||
Muninn is the portable local telemetry Verse assembler. Its Rust body lives in
|
||||
`crates/muninn-daemon` and publishes `muninn.telemetry_surface.v1` through
|
||||
CultMesh/CultCache. Muninn may run on Raven, Nightwing, Starfire, or any future
|
||||
device body. It names locally accessible telemetry affordances: screen capture,
|
||||
loopback audio, microphones, cameras, and future sensors. Muninn does not start
|
||||
expensive capture streams merely because the daemon is alive. The default
|
||||
`serve` posture publishes an idle typed surface; explicit activation, such as
|
||||
`muninn activate` for Raven A/V over SRT, is the only path that starts FFmpeg,
|
||||
WASAPI loopback, video capture, or similar resource-consuming workers.
|
||||
|
||||
Muninn owns local telemetry discovery and stream activation boundaries. It does
|
||||
not own Mimir's normalized ingest ledger, OBS rendering, Gjallar composition,
|
||||
Odin discovery truth, or Idunn keepalive policy. Active stream records such as
|
||||
`muninn.capture_stream.v1` are evidence of requested streams, not permission for
|
||||
startup to burn capture resources.
|
||||
|
||||
Bifrost is the bridge for Persona speech and other public/owner-facing
|
||||
crossings. When a Persona interpreter decides a Face speaks, the accepted
|
||||
crossings. When a Persona interpreter decides a Persona speaks, the accepted
|
||||
side effect is a Bifrost CultMesh command or document that names actor,
|
||||
authority, target surface, context, policy result, and receipt path. VoidBot
|
||||
observes Discord, preserves room cognition, moderates, and may provide
|
||||
|
|
@ -124,6 +140,8 @@ Verse announcement
|
|||
- Odin owns the accepted registry of known Verses.
|
||||
- A Verse owns its own schemas and authority model; Odin indexes and translates, it does not silently rewrite local truth.
|
||||
- Device clients own sensor and media capture; Mimir owns the normalized ingest ledger; Odin owns the aggregate operator projection.
|
||||
- Muninn advertises local telemetry affordances cheaply and starts capture only
|
||||
after an explicit activation request.
|
||||
- Translation paths must name source schema, target schema, lossiness, authority, and version.
|
||||
- Service presentation flows are CultMesh/Eve/CultUI interface projections. Odin aggregates those projection graphs; it does not replace them with nameplate summaries.
|
||||
- Renderers lower surfaces only. If a renderer fixes network truth, the machine is split-brained.
|
||||
|
|
|
|||
|
|
@ -49,9 +49,8 @@ Idunn now shares Odin's Rust body:
|
|||
- `src/Idunn/README.md` is the user-facing introduction for developers,
|
||||
operators, and daemon authors.
|
||||
- `scripts/start-idunn-local.ps1` starts resident local watchdogs, including
|
||||
VoidBot through `health-voidbot.cmd` and `restart-voidbot.cmd`, and Raven's
|
||||
capture mux through `health-raven-capture-mux.cmd` and
|
||||
`restart-raven-capture-mux.cmd`.
|
||||
VoidBot through `health-voidbot.cmd` and `restart-voidbot.cmd`, and Muninn
|
||||
through `health-muninn.cmd` and `restart-muninn.cmd`.
|
||||
- `scripts/notify-idunn-operator-alarm.ps1` is the local operator crossing:
|
||||
Idunn invokes it only after raising an operator alarm, and it asks Bifrost to
|
||||
publish a typed `gamecult.operator_dm_request.v1` CultMesh command document
|
||||
|
|
@ -104,10 +103,13 @@ idunn.operator_alarm.v1
|
|||
environment variables to `E:\Projects\Bifrost\tools\operator-notification.mjs
|
||||
publish-idunn-alarm`. Bifrost publishes the typed CultMesh command document;
|
||||
Idunn only decides that an alarm exists.
|
||||
- Raven capture continuity is a remote keepalive path. Idunn probes
|
||||
`http://127.0.0.1:8801/health` through SSH to Raven's WireGuard address
|
||||
`10.77.0.4` and restarts through Mimir's `start-raven-daemon.ps1` with
|
||||
Mimir and OBS SRT targets declared separately.
|
||||
- Muninn continuity on Raven is a remote keepalive path. Idunn probes the
|
||||
deployed Odin `muninn.exe --health` through the `raven` SSH alias and
|
||||
restarts Muninn's idle `serve` posture when needed. Raven is the host/body;
|
||||
Muninn is the local telemetry Verse assembler. Idunn must not activate
|
||||
screen/audio streams as part of keepalive. Raven A/V over SRT is an explicit
|
||||
activation path through `activate-muninn-raven-av-srt.ps1`, not daemon
|
||||
startup behavior.
|
||||
|
||||
## First Runtime Direction
|
||||
|
||||
|
|
|
|||
40
docs/muninn.md
Normal file
40
docs/muninn.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# Muninn
|
||||
|
||||
Muninn is Odin's portable local telemetry Verse assembler.
|
||||
|
||||
It runs on a device body and publishes a typed CultMesh/CultCache surface for
|
||||
what that body can sense or expose locally: screen capture, loopback audio,
|
||||
microphones, cameras, and future sensors.
|
||||
|
||||
## Authority
|
||||
|
||||
- Owner: Muninn owns local telemetry discovery, stream affordance publication,
|
||||
and explicit activation of requested local streams.
|
||||
- Inputs: cheap local probes, operator or Verse activation requests, and local
|
||||
capture tools such as FFmpeg or WASAPI helpers.
|
||||
- Outputs: `muninn.telemetry_surface.v1` and active `muninn.capture_stream.v1`
|
||||
records.
|
||||
- Forbidden writers: daemon startup, Idunn keepalive, Mimir ingest, OBS, Odin,
|
||||
Gjallar, and renderer bodies must not start capture by implication.
|
||||
|
||||
## Runtime
|
||||
|
||||
```powershell
|
||||
cargo build -p muninn-daemon
|
||||
muninn serve --store C:\Meta\Odin\state\muninn.telemetry.cc --interval-seconds 15
|
||||
muninn --health --store C:\Meta\Odin\state\muninn.telemetry.cc
|
||||
```
|
||||
|
||||
`serve` is cheap and idle. It publishes affordances and keeps the local Verse
|
||||
surface fresh without starting FFmpeg, screen capture, microphone capture, or
|
||||
loopback capture.
|
||||
|
||||
Activation is explicit:
|
||||
|
||||
```powershell
|
||||
.\scripts\activate-muninn-raven-av-srt.ps1
|
||||
```
|
||||
|
||||
That Raven activation starts the requested screen and Realtek loopback stream
|
||||
and publishes `muninn.capture_stream.v1`. Mimir and OBS are stream consumers;
|
||||
they do not own Muninn.
|
||||
Loading…
Reference in a new issue