## Phase 132: Sovereign Audio Runtime & Plugin Platform

Foundational audio infrastructure closing the most immediate sovereignty gap
identified in the audit: without native audio drivers and plugin hosts, the
Composer DAW (Phase 44.3) cannot connect to any real audio interface or load any
third-party instrument/effect. This phase delivers the sovereign audio stack —
drivers, plugin formats, MIDI I/O, network audio, hardware controller
integration, transport/clock sync, file I/O, and validation — that every other
audio-producing domain depends on (Composer, Euterpe, Uzume, Veritas dialogue,
Yemaya production sound, Metaverse spatial audio, Neith Engine game audio).

Target: industry-grade <5 ms round-trip latency, sample-accurate sync, and
complete parity with CoreAudio / ASIO / JACK / WASAPI / PipeWire / AAudio driver
expectations. Plugin host must pass the standard VST3, AU, LV2, and CLAP
validator suites.

---

### 132.1 @neith/audio-runtime — Sovereign Audio Driver Abstraction

Unified cross-platform audio HAL with driver selection, device enumeration,
buffer management, and hot-plug handling.

#### 132.1.1 Driver Abstraction Core

- [x] **132.1.1.1** Define AudioDriver trait (enumerate, open, stream, close)
- [x] **132.1.1.2** Implement device enumeration with capabilities (rates,
      buffer sizes, channel counts)
- [x] **132.1.1.3** Create device capability negotiation (preferred vs
      supported)
- [x] **132.1.1.4** Implement stream lifecycle (prepare, start, stop, release)
- [x] **132.1.1.5** Create sample format abstraction (i16, i24, i32, f32, f64)
- [x] **132.1.1.6** Implement interleaved and planar buffer layouts
- [x] **132.1.1.7** Create channel mapping and reordering
- [x] **132.1.1.8** Implement hot-plug detection and device change notification
- [x] **132.1.1.9** Create exclusive vs shared mode support
- [x] **132.1.1.10** Implement duplex (input+output) streaming
- [x] **132.1.1.11** Create multi-device aggregation (aggregate device)
- [x] **132.1.1.12** Implement xrun (underrun/overrun) detection and recovery
- [x] **132.1.1.13** Create driver-level buffer prefill and priming
- [x] **132.1.1.14** Implement sample-rate drift correction with resampler
- [x] **132.1.1.15** Create driver diagnostics (latency measurement, capability
      report)

#### 132.1.2 CoreAudio Driver (macOS / iOS)

- [x] **132.1.2.1** Implement AudioHardwarePlugIn discovery
- [x] **132.1.2.2** Create AUHAL unit wiring with kAudioUnitType_Output
- [x] **132.1.2.3** Implement IOProc render callback with AudioBufferList
- [x] **132.1.2.4** Create AudioDeviceIOProcIDWithBlock for dispatch integration
- [x] **132.1.2.5** Implement HAL property listeners (device/stream property
      changes)
- [x] **132.1.2.6** Create aggregate device management via
      kAudioAggregateDeviceClassID
- [x] **132.1.2.7** Implement nominal sample rate negotiation
- [x] **132.1.2.8** Create IO buffer frame size negotiation
- [x] **132.1.2.9** Implement device safety offset and latency reporting
- [x] **132.1.2.10** Create AudioFormat conversion for PCM/CAF/AAC sources
- [x] **132.1.2.11** Implement Voice Processing IO unit for echo cancellation
- [x] **132.1.2.12** Create exclusive access via kAudioDevicePropertyHogMode
- [x] **132.1.2.13** Implement iOS AVAudioSession category/option management
- [x] **132.1.2.14** Create iOS inter-app audio (IAA) and AudioUnit v3
      extensions
- [x] **132.1.2.15** Implement workgroup/join for thread priority on Apple
      Silicon

#### 132.1.3 ASIO Driver (Windows)

- [x] **132.1.3.1** Implement Steinberg ASIO SDK COM loader
- [x] **132.1.3.2** Create driver discovery via registry and UUID resolution
- [x] **132.1.3.3** Implement IASIO::createBuffers and releaseBuffers lifecycle
- [x] **132.1.3.4** Create ASIOBufferSwitch callback with double-buffer handoff
- [x] **132.1.3.5** Implement ASIOSampleType mapping (Int16/24/32, Float32/64
      MSB/LSB)
- [x] **132.1.3.6** Create ASIOBufferInfo channel routing
- [x] **132.1.3.7** Implement sample rate set/get with driver rejection handling
- [x] **132.1.3.8** Create buffer size negotiation
      (minimum/maximum/preferred/granularity)
- [x] **132.1.3.9** Implement ASIOTimeInfo and ASIOTimeCode for host sync
- [x] **132.1.3.10** Create latency reporting (input/output in samples)
- [x] **132.1.3.11** Implement clock source selection
      (internal/external/ADAT/word)
- [x] **132.1.3.12** Create ASIO Control Panel invocation
- [x] **132.1.3.13** Implement ASIO-to-COM apartment threading isolation
- [x] **132.1.3.14** Create ASIO4ALL interop for consumer hardware
- [x] **132.1.3.15** Implement crash-safe driver unload on session end

#### 132.1.4 WASAPI Driver (Windows)

- [x] **132.1.4.1** Implement IMMDeviceEnumerator discovery
- [x] **132.1.4.2** Create IAudioClient initialization in shared and exclusive
      modes
- [x] **132.1.4.3** Implement event-driven callback with SetEventHandle
- [x] **132.1.4.4** Create IAudioRenderClient and IAudioCaptureClient buffer
      access
- [x] **132.1.4.5** Implement WAVEFORMATEXTENSIBLE with
      KSDATAFORMAT_SUBTYPE_IEEE_FLOAT
- [x] **132.1.4.6** Create exclusive-mode format negotiation (IsFormatSupported)
- [x] **132.1.4.7** Implement Windows Audio Session Manager category assignment
- [x] **132.1.4.8** Create loopback capture for system audio recording
- [x] **132.1.4.9** Implement MMCSS (Pro Audio) thread priority
- [x] **132.1.4.10** Create IAudioClock/IAudioClock2 position tracking
- [x] **132.1.4.11** Implement buffer size in REFERENCE_TIME with drift
      adaptation
- [x] **132.1.4.12** Create endpoint volume and mute abstraction
      (IAudioEndpointVolume)
- [x] **132.1.4.13** Implement default-device change notification
- [x] **132.1.4.14** Create AAC/MP3 offload support where device-capable
- [x] **132.1.4.15** Implement fallback to DirectSound / MME when WASAPI
      unavailable

#### 132.1.5 JACK Driver (Linux / macOS / Windows)

- [x] **132.1.5.1** Implement libjack client registration (jack_client_open)
- [x] **132.1.5.2** Create port registration (input/output, audio/MIDI)
- [x] **132.1.5.3** Implement jack_set_process_callback realtime handler
- [x] **132.1.5.4** Create port connection/disconnection API
- [x] **132.1.5.5** Implement jack_activate / jack_deactivate lifecycle
- [x] **132.1.5.6** Create JACK transport state master/slave sync
- [x] **132.1.5.7** Implement BBT (bar/beat/tick) timebase callback
- [x] **132.1.5.8** Create JACK MIDI buffer read/write
- [x] **132.1.5.9** Implement session management (jack_session_event)
- [x] **132.1.5.10** Create JACK2 metadata API usage
- [x] **132.1.5.11** Implement JACK-in-WASAPI bridge on Windows
- [x] **132.1.5.12** Create jackd auto-start detection
- [x] **132.1.5.13** Implement latency callback reporting
- [x] **132.1.5.14** Create buffer-size change callback handling
- [x] **132.1.5.15** Implement graceful shutdown on jack_shutdown

#### 132.1.6 PipeWire / PulseAudio / ALSA Driver (Linux)

- [x] **132.1.6.1** Implement PipeWire pw_main_loop integration
- [x] **132.1.6.2** Create PipeWire node/stream registration
- [x] **132.1.6.3** Implement SPA pod format negotiation
- [x] **132.1.6.4** Create PipeWire filter graph interop
- [x] **132.1.6.5** Implement PulseAudio simple API fallback
- [x] **132.1.6.6** Create PulseAudio context + stream for pro scenarios
- [x] **132.1.6.7** Implement ALSA PCM device open/prepare/start
- [x] **132.1.6.8** Create snd_pcm_hw_params capability negotiation
- [x] **132.1.6.9** Implement ALSA snd_pcm_writei / readi loops
- [x] **132.1.6.10** Create ALSA MMAP access mode for low latency
- [x] **132.1.6.11** Implement ALSA sequencer for MIDI
- [x] **132.1.6.12** Create UCM (Use Case Manager) profile loading
- [x] **132.1.6.13** Implement dmix/dsnoop plug integration
- [x] **132.1.6.14** Create xrun recovery with snd_pcm_prepare
- [x] **132.1.6.15** Implement ALSA control API for hardware mixer

#### 132.1.7 AAudio / OpenSL ES Driver (Android)

- [x] **132.1.7.1** Implement AAudioStreamBuilder and stream creation
- [x] **132.1.7.2** Create performance-mode LOW_LATENCY and POWER_SAVING
      selection
- [x] **132.1.7.3** Implement data callback with onAudioReady
- [x] **132.1.7.4** Create AAudio timestamp and frame position tracking
- [x] **132.1.7.5** Implement session ID and audio usage/content type
- [x] **132.1.7.6** Create Oboe wrapper for API-level compatibility
- [x] **132.1.7.7** Implement OpenSL ES fallback on pre-Oreo devices
- [x] **132.1.7.8** Create disconnection event handling
- [x] **132.1.7.9** Implement MMAP NOIRQ path for sub-10ms latency
- [x] **132.1.7.10** Create bluetooth A2DP profile detection
- [x] **132.1.7.11** Implement USB audio class 2 device routing
- [x] **132.1.7.12** Create spatial audio (Android 13+ Spatializer)
- [x] **132.1.7.13** Implement ducking for voice-call interruption
- [x] **132.1.7.14** Create Android audio focus management
- [x] **132.1.7.15** Implement JNI bridge to Rust runtime

---

### 132.2 @neith/audio-graph — Low-Latency Real-Time Audio Graph

Lock-free deterministic audio graph that hosts the driver callback and routes
audio/MIDI between tracks, buses, sends, plugins, instruments, and outputs.

#### 132.2.1 Graph Topology

- [x] **132.2.1.1** Implement node graph with typed audio/MIDI/CV ports
- [x] **132.2.1.2** Create directed acyclic graph validation (cycle detection)
- [x] **132.2.1.3** Implement topological sort for execution order
- [x] **132.2.1.4** Create sub-graph (bus) nesting with render order
- [x] **132.2.1.5** Implement send/receive pre-fader and post-fader taps
- [x] **132.2.1.6** Create sidechain input routing
- [x] **132.2.1.7** Implement parallel compression split/merge
- [x] **132.2.1.8** Create multi-channel bus (stereo, 5.1, 7.1, 7.1.4, Atmos
      bed)
- [x] **132.2.1.9** Implement matrix mixer with arbitrary channel-count routing
- [x] **132.2.1.10** Create feedback-suppression loop detection
- [x] **132.2.1.11** Implement scene recall with atomic graph swap
- [x] **132.2.1.12** Create audio-rate parameter ports
- [x] **132.2.1.13** Implement block-size mismatch reconciliation
- [x] **132.2.1.14** Create graph checkpoint/snapshot for undo
- [x] **132.2.1.15** Implement graph diff and incremental recompilation

#### 132.2.2 Real-Time Scheduler

- [x] **132.2.2.1** Implement single-threaded audio callback executor
- [x] **132.2.2.2** Create multi-threaded parallel node execution via
      work-stealing
- [x] **132.2.2.3** Implement lock-free SPSC message queue from UI to audio
      thread
- [x] **132.2.2.4** Create atomic parameter fan-in with lock-free ring buffer
- [x] **132.2.2.5** Implement RT-safe memory allocator (pool, fixed-size)
- [x] **132.2.2.6** Create denormal/subnormal suppression (FTZ, DAZ)
- [x] **132.2.2.7** Implement RT thread affinity pinning and priority elevation
- [x] **132.2.2.8** Create audio thread watchdog and deadline tracking
- [x] **132.2.2.9** Implement spike/overrun telemetry with per-node timing
- [x] **132.2.2.10** Create RT assertion system (no-alloc, no-lock, no-syscall)
- [x] **132.2.2.11** Implement CPU-usage meter with per-plugin attribution
- [x] **132.2.2.12** Create audio-dropout recovery and resume
- [x] **132.2.2.13** Implement deterministic render mode for offline bounces
- [x] **132.2.2.14** Create SIMD-vectorized inner loops (SSE/AVX/NEON)
- [x] **132.2.2.15** Implement block-size sub-division for low-latency PDC

#### 132.2.3 Plugin Delay Compensation (PDC)

- [x] **132.2.3.1** Implement per-node latency reporting aggregation
- [x] **132.2.3.2** Create global PDC max-latency calculation
- [x] **132.2.3.3** Implement per-lane delay line insertion to align mix bus
- [x] **132.2.3.4** Create automation-lane delay compensation
- [x] **132.2.3.5** Implement sidechain PDC with look-ahead
- [x] **132.2.3.6** Create PDC disable mode for tracking/low-latency monitor
- [x] **132.2.3.7** Implement runtime PDC change with smooth transition
- [x] **132.2.3.8** Create PDC reporting UI and visualization
- [x] **132.2.3.9** Implement negative-delay (look-ahead) support in plugins
- [x] **132.2.3.10** Create automation pre-roll offset for PDC plugins

#### 132.2.4 Oversampling & Sample-Rate Conversion

- [x] **132.2.4.1** Implement polyphase FIR oversampler (2x/4x/8x/16x)
- [x] **132.2.4.2** Create linear-phase and minimum-phase filter variants
- [x] **132.2.4.3** Implement Kaiser-windowed sinc resampler
- [x] **132.2.4.4** Create fractional sample-rate conversion (asynchronous SRC)
- [x] **132.2.4.5** Implement per-plugin oversampling wrapper
- [x] **132.2.4.6** Create antialiasing filter design tool
- [x] **132.2.4.7** Implement HF saturation-aware oversampling
- [x] **132.2.4.8** Create listening-test harness for SRC quality (THD+N)
- [x] **132.2.4.9** Implement varispeed playback with pitch-preserving mode
- [x] **132.2.4.10** Create per-track sample-rate conversion for mixed-rate
      projects

---

### 132.3 @neith/vst3-host — VST3 Plugin Hosting

Full Steinberg VST3 SDK host implementation; passes Steinberg Validator.

#### 132.3.1 Plugin Discovery & Loading

- [x] **132.3.1.1** Implement VST3 bundle/module loading across macOS/Win/Linux
- [x] **132.3.1.2** Create plugin factory query (IPluginFactory3)
- [x] **132.3.1.3** Implement class enumeration and category filter
- [x] **132.3.1.4** Create plugin metadata extraction (name, vendor, version,
      SDK)
- [x] **132.3.1.5** Implement Moduleinfo.json manifest parsing
- [x] **132.3.1.6** Create out-of-process scan helper for crash isolation
- [x] **132.3.1.7** Implement validated-plugin cache with versioned invalidation
- [x] **132.3.1.8** Create blacklist for known-bad plugins
- [x] **132.3.1.9** Implement signature verification on macOS (codesign)
- [x] **132.3.1.10** Create scan progress UI with fail-fast timeouts

#### 132.3.2 Processing & Components

- [x] **132.3.2.1** Implement IComponent activation and setupProcessing
- [x] **132.3.2.2** Create IAudioProcessor process() call with ProcessData
- [x] **132.3.2.3** Implement ProcessContext (sampleRate, tempo, timeSig, PPQ,
      SMPTE)
- [x] **132.3.2.4** Create ProcessSetup mode switching
      (kRealtime/kOffline/kPrefetch)
- [x] **132.3.2.5** Implement symbolic sample size (kSample32/kSample64)
- [x] **132.3.2.6** Create IAudioProcessor::canProcessSampleSize query
- [x] **132.3.2.7** Implement getLatencySamples reporting into PDC
- [x] **132.3.2.8** Create getTailSamples for reverb/delay tail handling
- [x] **132.3.2.9** Implement bus arrangement negotiation (canBusesBeActivated)
- [x] **132.3.2.10** Create IAudioPresentationLatency for device compensation

#### 132.3.3 Parameters & State

- [x] **132.3.3.1** Implement IEditController parameter enumeration
- [x] **132.3.3.2** Create automation state (begin/perform/end edit)
- [x] **132.3.3.3** Implement getParamNormalized / setParamNormalized bridge
- [x] **132.3.3.4** Create parameter flags (canAutomate, isReadOnly, isBypass)
- [x] **132.3.3.5** Implement parameter ID mapping stability across versions
- [x] **132.3.3.6** Create IMidiMapping for CC-to-parameter learn
- [x] **132.3.3.7** Implement IUnitInfo for hierarchical parameter grouping
- [x] **132.3.3.8** Create program list / preset enumeration
- [x] **132.3.3.9** Implement state save/load via IBStream and Preset format
- [x] **132.3.3.10** Create full-chunk vs component state isolation

#### 132.3.4 Editor & UI

- [x] **132.3.4.1** Implement IPlugView creation and attached/removed lifecycle
- [x] **132.3.4.2** Create platform view parent (HWND/NSView/X11 Window)
- [x] **132.3.4.3** Implement IPlugFrame resizeView protocol
- [x] **132.3.4.4** Create DPI-aware size negotiation and scaling
- [x] **132.3.4.5** Implement IContextMenu for host-provided actions
- [x] **132.3.4.6** Create key handling pass-through
- [x] **132.3.4.7** Implement embedded view lifecycle safety (z-order, focus)
- [x] **132.3.4.8** Create headless/UI-less parameter-only mode

#### 132.3.5 Advanced Features

- [x] **132.3.5.1** Implement note expression (per-note pitch/volume/timbre)
- [x] **132.3.5.2** Create IKeyswitchController for sample-lib articulations
- [x] **132.3.5.3** Implement IProcessContextRequirements tempo/bar request
- [x] **132.3.5.4** Create side-chain input bus routing
- [x] **132.3.5.5** Implement IXmlRepresentation for host parameter trees
- [x] **132.3.5.6** Create NoteID tracking for polyphonic expression
- [x] **132.3.5.7** Implement event list input/output (MIDI, note-on/off, CC)
- [x] **132.3.5.8** Create remote-preset JSON format support
- [x] **132.3.5.9** Implement multi-channel output enumeration (N stereo pairs)
- [x] **132.3.5.10** Create IAutomationState (playing/writing/reading/none)

---

### 132.4 @neith/au-host — Audio Unit (AU) Hosting (macOS / iOS)

Apple Audio Unit host supporting AUv2 and AUv3 formats.

#### 132.4.1 Discovery

- [x] **132.4.1.1** Implement AudioComponentFindNext enumeration
- [x] **132.4.1.2** Create AudioUnit component description filter
- [x] **132.4.1.3** Implement AUv3 app-extension discovery via NSExtension
- [x] **132.4.1.4** Create icon and metadata extraction from NSBundle
- [x] **132.4.1.5** Implement v2→v3 bridge detection

#### 132.4.2 Lifecycle

- [x] **132.4.2.1** Implement AudioComponentInstanceNew/Dispose
- [x] **132.4.2.2** Create AudioUnitInitialize/Uninitialize
- [x] **132.4.2.3** Implement stream format negotiation
      (kAudioUnitProperty_StreamFormat)
- [x] **132.4.2.4** Create AURenderCallbackStruct for pull-based rendering
- [x] **132.4.2.5** Implement kAudioUnitProperty_Latency query
- [x] **132.4.2.6** Create kAudioUnitProperty_TailTime query
- [x] **132.4.2.7** Implement offline rendering mode
- [x] **132.4.2.8** Create parameter enumeration (AudioUnitParameterInfo)
- [x] **132.4.2.9** Implement AUEventSampleTime automation stream
- [x] **132.4.2.10** Create preset save/load via AUPreset CFDictionary

#### 132.4.3 MIDI & Events

- [x] **132.4.3.1** Implement MusicDeviceMIDIEvent for AUv2 MIDI input
- [x] **132.4.3.2** Create MIDI output capture (AUMIDIEventListBlock AUv3)
- [x] **132.4.3.3** Implement scheduled event timeline
- [x] **132.4.3.4** Create MIDI-2.0 UMP forwarding to AUv3 hosts
- [x] **132.4.3.5** Implement MPE per-channel routing

#### 132.4.4 AUv3 App Extensions

- [x] **132.4.4.1** Implement NSExtension matching for auv3 extensions
- [x] **132.4.4.2** Create XPC-based out-of-process hosting
- [x] **132.4.4.3** Implement AUViewController embedding
- [x] **132.4.4.4** Create state restoration via fullState/fullStateForDocument
- [x] **132.4.4.5** Implement supportsUserPresets/factoryPresets
- [x] **132.4.4.6** Create iOS inter-app audio replacement (AUv3 only)
- [x] **132.4.4.7** Implement sandbox entitlement verification

---

### 132.5 @neith/lv2-host — LV2 Plugin Hosting (Linux / cross-platform)

LV2 is the sovereign, free-software-friendly plugin format. First-class host.

#### 132.5.1 Bundle Discovery

- [x] **132.5.1.1** Implement LV2_PATH environment resolution
- [x] **132.5.1.2** Create Turtle (.ttl) manifest parser (RDF)
- [x] **132.5.1.3** Implement lilv world creation and bundle loading
- [x] **132.5.1.4** Create plugin class taxonomy traversal
- [x] **132.5.1.5** Implement required/optional feature advertisement

#### 132.5.2 Runtime

- [x] **132.5.2.1** Implement lilv_plugin_instantiate with feature array
- [x] **132.5.2.2** Create port connection via lilv_instance_connect_port
- [x] **132.5.2.3** Implement atom-sequence event ports
- [x] **132.5.2.4** Create URID mapping table (LV2_URID\_\_map)
- [x] **132.5.2.5** Implement worker-thread extension (LV2_WORKER)
- [x] **132.5.2.6** Create state-save extension (LV2_STATE\_\_interface)
- [x] **132.5.2.7** Implement buffer-size extension (fixed, bounded, powerOf2)
- [x] **132.5.2.8** Create options extension for host-side feature flags
- [x] **132.5.2.9** Implement log extension routing plugin messages
- [x] **132.5.2.10** Create time-position atom for tempo/bar broadcast

#### 132.5.3 UI

- [x] **132.5.3.1** Implement Suil UI host wrapper
- [x] **132.5.3.2** Create Gtk/Qt/X11/WebKit UI binding
- [x] **132.5.3.3** Implement parent window embedding
- [x] **132.5.3.4** Create touch/resize event forwarding
- [x] **132.5.3.5** Implement headless parameter-only UI fallback

---

### 132.6 @neith/clap-host — CLAP Plugin Hosting

CLAP is the emerging modern, open, thread-safe plugin standard.

#### 132.6.1 Discovery & Lifecycle

- [x] **132.6.1.1** Implement .clap bundle loading (dylib/dll/so)
- [x] **132.6.1.2** Create clap_plugin_factory lookup
- [x] **132.6.1.3** Implement plugin descriptor enumeration
- [x] **132.6.1.4** Create clap_plugin_create and destroy lifecycle
- [x] **132.6.1.5** Implement
      init/activate/deactivate/start_processing/stop_processing
- [x] **132.6.1.6** Create audio port list query (input/output)
- [x] **132.6.1.7** Implement note port list query
- [x] **132.6.1.8** Create process() with clap_process struct
- [x] **132.6.1.9** Implement clap_host_latency update
- [x] **132.6.1.10** Create extension query via get_extension

#### 132.6.2 Extensions

- [x] **132.6.2.1** Implement clap.params (parameters)
- [x] **132.6.2.2** Create clap.state (state save/load)
- [x] **132.6.2.3** Implement clap.state-context (preset vs project state)
- [x] **132.6.2.4** Create clap.note-ports (typed MIDI/note-expression)
- [x] **132.6.2.5** Implement clap.audio-ports (port add/remove)
- [x] **132.6.2.6** Create clap.audio-ports-config for alternate configs
- [x] **132.6.2.7** Implement clap.gui (UI windowing)
- [x] **132.6.2.8** Create clap.timer-support for plugin UI animation
- [x] **132.6.2.9** Implement clap.posix-fd-support for plugin fd callbacks
- [x] **132.6.2.10** Create clap.thread-check and thread-pool extensions
- [x] **132.6.2.11** Implement clap.log routing
- [x] **132.6.2.12** Create clap.preset-load and preset-discovery-factory
- [x] **132.6.2.13** Implement clap.render (realtime/offline)
- [x] **132.6.2.14** Create clap.tail / clap.latency / clap.tuning
- [x] **132.6.2.15** Implement clap.voice-info and note-name extension

---

### 132.7 @neith/plugin-sandbox — Plugin Isolation & Crash Safety

Out-of-process plugin execution to isolate third-party code from the host.

#### 132.7.1 Sandbox Runtime

- [x] **132.7.1.1** Implement child-process spawn per plugin group
- [x] **132.7.1.2** Create shared-memory audio ring buffers (POSIX shm / Windows
      file mapping)
- [x] **132.7.1.3** Implement lock-free cross-process SPSC queues
- [x] **132.7.1.4** Create low-latency IPC with futex / event-pair signaling
- [x] **132.7.1.5** Implement deadline-bound wait with overrun detection
- [x] **132.7.1.6** Create parameter/MIDI event proxy serialization
- [x] **132.7.1.7** Implement graceful plugin-crash recovery
- [x] **132.7.1.8** Create auto-restart with state replay
- [x] **132.7.1.9** Implement sandboxed filesystem view for plugin resources
- [x] **132.7.1.10** Create per-plugin seccomp/AppContainer restriction profile

#### 132.7.2 UI Bridging

- [x] **132.7.2.1** Implement remote plugin UI host window
- [x] **132.7.2.2** Create platform-specific view reparenting across processes
- [x] **132.7.2.3** Implement keyboard/mouse forwarding across IPC
- [x] **132.7.2.4** Create DPI and color-space propagation
- [x] **132.7.2.5** Implement resize protocol with flicker avoidance

---

### 132.8 @neith/midi-io — MIDI I/O (1.0, 2.0, MPE, RTP-MIDI)

Comprehensive MIDI input/output stack beyond the sequencer-layer in 44.3.3.

#### 132.8.1 Platform MIDI Services

- [x] **132.8.1.1** Implement CoreMIDI (macOS / iOS)
- [x] **132.8.1.2** Create Windows MIDI (winmm + Windows MIDI Services preview)
- [x] **132.8.1.3** Implement ALSA seq (Linux)
- [x] **132.8.1.4** Create WebMIDI backend for browser runtime
- [x] **132.8.1.5** Implement Android MIDI (AMidi) service

#### 132.8.2 MIDI 2.0

- [x] **132.8.2.1** Implement Universal MIDI Packet (UMP) encode/decode
- [x] **132.8.2.2** Create Group/Channel voice message handling
- [x] **132.8.2.3** Implement per-note pitch and per-note attribute
- [x] **132.8.2.4** Create Property Exchange (PE) JSON transaction
- [x] **132.8.2.5** Implement MIDI-CI (Capability Inquiry) handshake
- [x] **132.8.2.6** Create Profile Configuration negotiation
- [x] **132.8.2.7** Implement 32-bit data resolution translation
- [x] **132.8.2.8** Create MIDI 2.0 → 1.0 downgrade path

#### 132.8.3 MPE & Routing

- [x] **132.8.3.1** Implement MPE zone (lower/upper) management
- [x] **132.8.3.2** Create master / member channel allocation
- [x] **132.8.3.3** Implement per-note pitch-bend / pressure / timbre
- [x] **132.8.3.4** Create MPE→MIDI2 UMP promotion
- [x] **132.8.3.5** Implement virtual MIDI ports for inter-app routing
- [x] **132.8.3.6** Create RTP-MIDI (AppleMIDI) network session
- [x] **132.8.3.7** Implement ipMIDI multicast
- [x] **132.8.3.8** Create MIDI filter / transform nodes in graph
- [x] **132.8.3.9** Implement MIDI clock / MTC transmit and receive
- [x] **132.8.3.10** Create SysEx dump / receive with flow control

---

### 132.9 @neith/net-audio — Network Audio (Dante / AES67 / AVB / NDI / RAVENNA)

Network audio beyond Uzume's show-control level — pro-audio streams into/out of
the sovereign DAW, mixer, and engine.

#### 132.9.1 Protocol Stack

- [x] **132.9.1.1** Implement RTP/AES67 sender and receiver
- [x] **132.9.1.2** Create SAP/SDP session announcement
- [x] **132.9.1.3** Implement PTP IEEE 1588-2019 slave and master clock
- [x] **132.9.1.4** Create PTPv2 BMCA (Best Master Clock Algorithm)
- [x] **132.9.1.5** Implement AVB/TSN gPTP and SRP streams (IEEE 802.1Qav)
- [x] **132.9.1.6** Create Milan-profile compliance
- [x] **132.9.1.7** Implement Dante Domain Manager API client
- [x] **132.9.1.8** Create Dante DDM enrollment and channel subscription
- [x] **132.9.1.9** Implement RAVENNA protocol parity with AES67
- [x] **132.9.1.10** Create NDI 5+ sender and receiver

#### 132.9.2 Discovery & Control

- [x] **132.9.2.1** Implement mDNS/Bonjour service discovery
- [x] **132.9.2.2** Create AES70 (OCA) device control
- [x] **132.9.2.3** Implement Ember+ broadcast-control bridge
- [x] **132.9.2.4** Create NMOS IS-04/IS-05/IS-08 for broadcast discovery
- [x] **132.9.2.5** Implement flow monitoring and PTP lock status dashboard

---

### 132.10 @neith/controllers — Hardware Controller Integration

First-class support for professional control surfaces.

#### 132.10.1 Protocols

- [x] **132.10.1.1** Implement Mackie Control Universal (MCU) protocol
- [x] **132.10.1.2** Create HUI protocol (Pro Tools legacy)
- [x] **132.10.1.3** Implement EuCon protocol (Avid S-series)
- [x] **132.10.1.4** Create OSC standard controller schema
- [x] **132.10.1.5** Implement custom Lua/WASM controller script engine
- [x] **132.10.1.6** Create generic HID MIDI controller templates

#### 132.10.2 Specific Hardware Profiles

- [x] **132.10.2.1** Ableton Push 2/3 integration (LED grid, pads, encoders)
- [x] **132.10.2.2** Native Instruments Maschine / Komplete Kontrol (NIHIA)
- [x] **132.10.2.3** Akai APC / MPK / MPC series
- [x] **132.10.2.4** Novation Launchpad / Launchkey / SL MK III
- [x] **132.10.2.5** ROLI Seaboard / LUMI (MPE)
- [x] **132.10.2.6** Expressive E Osmose / Touché (MPE)
- [x] **132.10.2.7** Presonus Faderport / Studio One surfaces
- [x] **132.10.2.8** Avid S1 / S3 / S4 / S6 via EuCon
- [x] **132.10.2.9** Behringer X-Touch / X32 control surface
- [x] **132.10.2.10** Stream Deck / Loupedeck integration

#### 132.10.3 Mapping & Learn

- [x] **132.10.3.1** Implement MIDI-learn (CC/note to parameter)
- [x] **132.10.3.2** Create template system with import/export
- [x] **132.10.3.3** Implement context-sensitive mapping (per plugin / track)
- [x] **132.10.3.4** Create macro control with multi-parameter mapping
- [x] **132.10.3.5** Implement feedback LED/motor-fader/display update
- [x] **132.10.3.6** Create pickup / jump / scale modes for parameter takeover

---

### 132.11 @neith/transport — Transport, Clock, and Sync

Project-wide transport and synchronization.

#### 132.11.1 Transport

- [x] **132.11.1.1** Implement play/stop/record/rewind/fast-forward state
      machine
- [x] **132.11.1.2** Create locator (cycle) markers
- [x] **132.11.1.3** Implement pre-roll / post-roll
- [x] **132.11.1.4** Create chase-lock modes
- [x] **132.11.1.5** Implement jog / shuttle / scrub playback
- [x] **132.11.1.6** Create loop recording with take management
- [x] **132.11.1.7** Implement punch in/out automation

#### 132.11.2 Clock & Sync

- [x] **132.11.2.1** Implement internal master clock (sample-accurate)
- [x] **132.11.2.2** Create MIDI clock master and slave
- [x] **132.11.2.3** Implement MTC (MIDI Time Code) Quarter Frame
- [x] **132.11.2.4** Create LTC (Linear Time Code) reader/writer
- [x] **132.11.2.5** Implement SMPTE 24/25/29.97/30 drop/non-drop
- [x] **132.11.2.6** Create Word Clock / SPDIF sync input
- [x] **132.11.2.7** Implement ADAT / MADI / AES3 clock input
- [x] **132.11.2.8** Create Ableton Link protocol (peer-to-peer tempo sync)
- [x] **132.11.2.9** Implement sample-accurate host sync to external clock
- [x] **132.11.2.10** Create drift correction with sample-rate conversion

---

### 132.12 @neith/audio-fileio — Audio File I/O

File-format layer feeding the graph and receiving bounces.

#### 132.12.1 Formats

- [x] **132.12.1.1** WAV (RIFF) up to 32-bit float
- [x] **132.12.1.2** BWF (Broadcast Wave) with bext chunk and iXML
- [x] **132.12.1.3** RF64 for >4 GB WAV files
- [x] **132.12.1.4** AIFF / AIFC
- [x] **132.12.1.5** CAF (Core Audio Format)
- [x] **132.12.1.6** FLAC (lossless, multichannel)
- [x] **132.12.1.7** Ogg Vorbis / Opus
- [x] **132.12.1.8** MP3 (LAME encoder, decode via libmpg123)
- [x] **132.12.1.9** AAC / HE-AAC (via sovereign FDK fork)
- [x] **132.12.1.10** WavPack hybrid lossless
- [x] **132.12.1.11** DSD (DSF, DFF) playback and conversion
- [x] **132.12.1.12** MXF audio essence (BWF in MXF)
- [x] **132.12.1.13** ADM BWF (Audio Definition Model) for Atmos/object audio
- [x] **132.12.1.14** IAMF (Immersive Audio Model and Formats)
- [x] **132.12.1.15** SoundFont2 / SFZ / DecentSampler format readers

#### 132.12.2 Metadata

- [x] **132.12.2.1** iXML metadata read/write
- [x] **132.12.2.2** BWF broadcast-wave chunk (originator, timecode)
- [x] **132.12.2.3** ID3v2 tag for MP3
- [x] **132.12.2.4** Vorbis Comment
- [x] **132.12.2.5** CAF kuki chunk for codec state
- [x] **132.12.2.6** ADM AudioPackFormat / AudioObject XML

---

### 132.13 @neith/plugin-validator — Plugin Scanning & Validation

Automated pre-flight and nightly plugin health checks.

- [x] **132.13.1** Implement Steinberg Validator test-suite runner for VST3
- [x] **132.13.2** Create Apple auval runner wrapper for AU
- [x] **132.13.3** Implement lv2lint integration for LV2 bundles
- [x] **132.13.4** Create clap-validator integration
- [x] **132.13.5** Implement latency self-test (DC-step and impulse)
- [x] **132.13.6** Create CPU cost profiling with synthesized workload
- [x] **132.13.7** Implement memory-leak detection via sanitizer adapter
- [x] **132.13.8** Create state round-trip test (save→load→bit-identical)
- [x] **132.13.9** Implement automation determinism test
- [x] **132.13.10** Create DAW-lock freeze detection with watchdog

---

### 132.14 @neith/audio-telemetry — Metering, Analysis, and Diagnostics

Shared meters/analyzers that all audio surfaces consume.

- [x] **132.14.1** Peak / RMS / VU / PPM / K-meter implementations
- [x] **132.14.2** EBU R128 Integrated / Short-term / Momentary LUFS
- [x] **132.14.3** ATSC A/85 and ITU-R BS.1770-5 loudness
- [x] **132.14.4** True-peak (ISP) estimation with 4x oversampling
- [x] **132.14.5** Loudness Range (LRA)
- [x] **132.14.6** Stereo correlation / phase meter
- [x] **132.14.7** Goniometer / vectorscope
- [x] **132.14.8** FFT spectrum analyzer with window selection
- [x] **132.14.9** Sonogram / waterfall display
- [x] **132.14.10** Per-frequency phase response
- [x] **132.14.11** Intelligibility / STI meter for dialogue
- [x] **132.14.12** Atmos binaural monitoring with individualized HRTF
- [x] **132.14.13** Tempo and key detection (offline analysis)
- [x] **132.14.14** Transient and onset detection
- [x] **132.14.15** Audio fingerprint hash (for originality/copyright gates)

---

### Phase 132 Summary — Sovereign Audio Runtime & Plugin Platform

| Library                 | Section | Tasks   |
| ----------------------- | ------- | ------- |
| @neith/audio-runtime    | 132.1   | 105     |
| @neith/audio-graph      | 132.2   | 50      |
| @neith/vst3-host        | 132.3   | 48      |
| @neith/au-host          | 132.4   | 27      |
| @neith/lv2-host         | 132.5   | 20      |
| @neith/clap-host        | 132.6   | 25      |
| @neith/plugin-sandbox   | 132.7   | 15      |
| @neith/midi-io          | 132.8   | 23      |
| @neith/net-audio        | 132.9   | 15      |
| @neith/controllers      | 132.10  | 22      |
| @neith/transport        | 132.11  | 17      |
| @neith/audio-fileio     | 132.12  | 21      |
| @neith/plugin-validator | 132.13  | 10      |
| @neith/audio-telemetry  | 132.14  | 15      |
| **Phase 132 Total**     |         | **413** |
