Add paired PS Move chirp actuator

This commit is contained in:
Meta Vens 2026-06-02 14:42:53 +01:00
commit fa555f3583
4 changed files with 630 additions and 0 deletions

View file

@ -348,3 +348,8 @@
{"ts": "2026-06-02T00:06:13+01:00", "type": "verification", "status": "degraded", "note": "2026-06-02: A short local online-verse daemon run proved recorder startup and session/body directory creation, but live Mimir.Well synchronized-frame planning degraded repeatedly with mixed timestamp-domain range errors such as camera/ASIO timestamps being compared before a shared canonical clock owner exists. Treat this as the known camera-clock/global-time correction scar, not a recorder storage failure."}
{"ts": "2026-06-02T00:25:02+01:00", "type": "implementation", "status": "ok", "note": "2026-06-02 shakedown: Fixed two data-loss/disk-pressure scars while leaving the long-running Well stack active. The supervisor now passes --seconds 0 to Mimir.Well for indefinite runs instead of a one-year CancelAfter delay that .NET rejects, and waits for relay /health before starting subscribers/producers so Nightwing does not race dotnet cold start. Mimir.Well capture pages now fall back to latest per-buffer samples with TimingEvidenceKind=unsynchronized-fallback when synchronized-frame planning degrades, so Recorder pages raw CPU bodies even before the canonical clock owner exists. Mimir.EveSensorReceiver still broadcasts full capture pages to subscribers but redacts capture-page bodies from diagnostic stdout to avoid duplicating the paged body store in verse-relay.out.log. Live run online-verse-daemons-20260602-002116 / VerseCaptures/20260602-002124 showed all four local workers alive, Recorder receiving 520 observations, 479 body refs, Nightwing observations flowing after manual restart, and capture-page stdout summaries with sampleCount/body-redacted."}
{"ts": "2026-06-02T00:46:28+01:00", "type": "implementation", "status": "ok", "note": "2026-06-02 live shakedown: Added provisional clock-domain edge-fit corrections through MimirSourceTimingCorrection, actual oldest-sample bounds for synchronized frame planning, Well clock-domain diagnostics, and mimir.well_stream_pressure.v1 snapshot telemetry for poll/publish pressure. Hot-swapped active run online-verse-daemons-20260602-002116 to the new build; latest VerseCaptures/20260602-002124 snapshot showed complete 6/6 Ready slices over Scarlett ASIO, Kiyo Pro, and Leap with zero slice distance. The same telemetry exposed the streaming-organ scar: ASIO had about 20 ms of actual buffered history against a five-second retention target, and WebSocket JSON capture-page publishing reached multi-MB messages with >100 ms publish spikes. Next transport cut should split CultMesh typed control/cursor state from CultCache page/shard body streaming and dashboard latest-state lanes."}
{"ts": "2026-06-02T12:54:25+01:00", "type": "decision", "status": "ok", "note": "Odin/Nightwing TUI sparsity was a projection/lowering ownership failure, not missing Well data: Mimir must publish rich Eve layout intent and music/Well metrics, Odin must merge provider layout pressure into accepted interface layout, and Nightwing must honor continuous/min/preferred height while collapsing lower-priority surfaces. 2026-06-02 verification showed Well metrics plus Move piano roll rendered on Nightwing without restarting the heavy Well stack."}
{"ts": "2026-06-02T13:44:08+01:00", "type": "decision", "status": "ok", "note": "Perfect Machine shakedown cut: Mimir.Well now treats --presentation-delay-ms as an adaptive latency ceiling, not the fixed owner. The Well publishes mimir.well_latency_policy.v1 metrics (current/floor/ceiling delay, retained overlap, edge skew, readiness, sync confidence, reason) and mimir.well_feature_signals.v1 normalized video feature signals with Faust control paths video/<source>/{confidence,motion_energy,centroid_x,centroid_y}. Next live Well run should use these fields to drive continuous latency/fidelity tuning and native/Faust lowering."}
{"ts": "2026-06-02T13:56:55+01:00", "type": "decision", "status": "ok", "note": "Imagination shakedown consensus 2026-06-02: saved Well data shows 97.8% full-frame readiness after warm-up at fixed 2500ms, but hundreds-of-seconds cross-domain edge skew proves timestamp domains are not canonical. Immediate cut implemented: multiplexed ASIO sources now declare logical stream count so hub drain budget cannot starve Focusrite channels. Next cuts: canonical clock-fit owner before planner overlap, bounded async Well publish/body lane, runtime-owned video-feature DSP control frame, and score tracker pitch/note-event fidelity beyond 512-bin f0."}
{"ts": "2026-06-02T14:13:56+01:00", "type": "decision", "status": "ok", "note": "Starfire USB PS Move shakedown: Mimir.PsMoveProbe sees three Sony VID_054C/PID_03D5 HID collections and can write report 0x06 to col01. Added --rgb/--pulse-ms/--pulse-count/--interval-ms/--event-log; proof wrote readable mimir.psmove_usb_pulse_event.v1 receipts and 49-byte on/off reports. This is a local fast visual timing witness primitive; precision scheduling should move into a persistent/native worker because CLI pulse proof showed requested 60ms pulse producing about 221ms on/off gap."}
{"ts": "2026-06-02T14:41:46+01:00", "type": "verification", "status": "ok", "note": "Starfire USB PS Move paired chirp train now derives audio samples and visual LED pulses from one event schedule. 2026-06-02 run artifacts/runtime/starfire-usb-move-paired-20260602-144135 emitted three WASAPI chirps and three Move LED pulses with shared event ids; receipt showed planned/observed LED onsets 150/400/650 ms at millisecond resolution after high-resolution wait cut."}

View file

@ -301,6 +301,19 @@ invariants:
audio renderer uses separate AquaSynth contestant renders with
role-specific durations/gains; true per-role physical timbre remains a
future AquaSynth/Faust renderer cut, not hidden scheduler behavior.
Starfire now has a USB-local PS Move paired chirp actuator in
`Mimir.PsMoveProbe`: `--paired-chirp-train` renders a mono Float32 chirp
train, emits it through `Mimir.WasapiLoopback`, and writes PS Move LED
pulses from the same `PairedChirpEvent` schedule. The invariant is that
audio chirp samples and visual LED phases share one event id and planned
offset; visual pulses must not be independent reactions. The
2026-06-02 receipt
`artifacts/runtime/starfire-usb-move-paired-20260602-144135/paired-events.jsonl`
proved three WASAPI chirps plus three USB Move LED pulses with observed LED
onsets matching planned 150/400/650 ms at millisecond receipt resolution.
This is a proven Starfire-local timing actuator, but the final production
cut should still move emission into a persistent native/Faust-owned worker
before claiming hard realtime physical sync.
MIDI keyboard notes should later enter as an explicit typed score source,
but today AquaSynth is observed through whatever audio channel carries its
rendered voice.