Commit Graph

19 Commits

Author SHA1 Message Date
Dandaedre c812af52ee
feat(M7.4): make runtime polling configurable
Add validated profile runtime.poll_interval_ms settings with a 10 ms default and 1..=100 ms range. Apply the interval to both the server state-owner wait and Pulse notification/command loop, expose it in startup output, and document it in shipped profiles.

Tests: full workspace fmt/check/test/doc/clippy/release gates; default/no-default backend matrix; profile validation and Pulse owner-loop interval regression tests.
2026-10-15 03:54:10 +02:00
Dandaedre 3a75e24003
fix(M7.4): keep fader pickup tracking through Pulse echoes
Correlate subscription notifications that match confirmed Pulse writes with their originating operation. This prevents server-generated echoes from being treated as external edits and re-arming pickup during continuous physical motion, while differing observations still re-arm it.

Tests: full workspace fmt/check/test/doc/clippy/release gates; default/no-default backend matrix; isolated real Pulse/PipeWire stream fixture.
2026-10-15 03:48:30 +02:00
Dandaedre f029304cf4
fix(M7.4): preserve Pulse snapshot capacity
Separate the one-slot worker command lane from the 256-event snapshot lane so command backpressure cannot overflow startup metadata. Report event overflow distinctly and cover one-slot command startup with a regression test.\n\nLive verification: PipeWire-Pulse server reached status=ready with Browser, Media, Master, and APC MINI snapshots.\n\nTests: cargo fmt --all -- --check; cargo check --workspace --all-targets --all-features; cargo test --workspace --all-targets --all-features; cargo test --workspace --doc --all-features; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo build --workspace --release --all-features; volume_lib no-default and pulse feature checks (all pass).
2026-10-15 03:28:39 +02:00
Dandaedre 977f7452b1
feat(M7.4): buffer interactive volume updates
Move blocking TUI IPC onto a joined worker, coalesce pending volume writes, preserve mute edges, and publish optimistic local snapshots until server confirmation. Add bounded server-side dispatch ahead of the Pulse worker and batch ready events so slow native round trips cannot stall MIDI handling.\n\nTests: cargo fmt --all -- --check; cargo check --workspace --all-targets --all-features; cargo test --workspace --all-targets --all-features; cargo test --workspace --doc --all-features; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo build --workspace --release --all-features; default/no-default/backend feature matrix (all pass).
2026-10-15 03:10:20 +02:00
Dandaedre fda38f6f17
feat(M4.5): control the default output master
Add a first-class default-output target across the profile, Pulse worker, live mixer, IPC, and TUI. Route APC CC 56 / Note 98 to Master and move Media to CC 50 / Note 66.\n\nTests: cargo test --workspace --all-targets --all-features\nTests: cargo test --workspace --doc --all-features\nTests: cargo clippy --workspace --all-targets --all-features -- -D warnings\nTests: cargo build --workspace --release --all-features\nTests: default, no-default-feature, and individual backend matrix passed
2026-10-15 03:01:45 +02:00
Dandaedre ef4b63d4f8
test(M4.4): exercise a real Pulse daemon
Add opt-in fixtures that isolate control to a uniquely named silent paplay stream, verify worker and independent-client convergence plus stream churn, and explicitly gate disruptive PipeWire restart/resnapshot coverage. Detect failed or terminated Pulse contexts while polling.

Tests: cargo test -p volume_lib --all-targets --all-features; cargo clippy -p volume_lib --all-targets --all-features -- -D warnings; cargo check -p volume_lib --all-targets --no-default-features; cargo test --locked -p volume_lib --test pulse_daemon --all-features real_stream_commands_external_edits_and_churn_converge -- --ignored --nocapture (PipeWire 1.6.9)
2026-10-14 22:18:22 +02:00
Dandaedre eff5fece91
feat(M4.3): wire profile and session audio choices
Expose validated profile audio policy, translate it at the executable boundary, preserve session override precedence without persistence, and add a diagnostic backend probe command with server identity output.

Tests: cargo test -p fader_master --test audio_policy --all-features; cargo test -p volume_lib --all-targets --all-features; cargo check --workspace --all-targets --no-default-features; cargo clippy --workspace --all-targets --all-features -- -D warnings; cargo run --locked -p volume_lib --example pulse_fixture -- probe auto (PipeWire 1.6.9)
2026-10-14 21:51:46 +02:00
Dandaedre ff23a1aa7b
feat(M4.3): select one capable audio authority
Add typed manual/auto backend selection, capability diagnostics, compiled-feature probes, Pulse server identity reporting, and bounded same-authority reconnect scheduling. Prevent hardware-only adapters from satisfying application-stream requirements.

Tests: cargo test -p volume_lib --all-targets --all-features; cargo check -p volume_lib --all-targets --no-default-features; cargo fmt --all -- --check
2026-10-14 21:50:32 +02:00
Dandaedre 35a50e06e4
feat(M4.2): own Pulse sessions in a worker
Rust CI fader_master failed CI.
MadGobblins/fader_master/pipeline/head There was a failure building this commit Details
Keep libpulse handles on a dedicated owner thread, bound command and event lanes, frame subscribe-before-enumerate snapshots, copy metadata and observations, and protect reused sink-input IDs with per-epoch incarnations. Add hardware-free contract coverage and a real-session worker-watch checklist.

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --all-features --locked; cargo test --workspace --all-targets --all-features --locked; cargo test --workspace --doc --all-features --locked; cargo clippy --workspace --all-targets --all-features --locked -- -D warnings; cargo build --workspace --release --all-features --locked; cargo check --workspace --all-targets --no-default-features --locked; cargo test --workspace --all-targets --no-default-features --locked; cargo run --locked -p volume_lib --example pulse_fixture -- worker-watch 1 (PipeWire 1.6.9)
2026-10-14 21:46:39 +02:00
Dandaedre bb12fb14b1
docs(M4): add the real-audio acceptance checklist
Document the hands-on discovery, confirmed volume/mute, external-change, churn, and daemon lifecycle checks for the functional Pulse fixture. Restrict the fixture to unity-or-lower writes and link the checklist from the README.

Validation: full locked workspace formatting, all-target/all-feature checks and tests, doctests, strict Clippy, release build, and no-default-feature checks/tests pass; real user-session audio remains checklist verification.
2026-10-14 19:42:06 +02:00
Dandaedre e7067e277f
feat(M4.1): subscribe to Pulse stream changes
Subscribe before enumeration, retain sink-input notifications across the snapshot window, and expose copied upsert/removal events. Add an opt-in Rust fixture for list, watch, volume, and mute verification without production shell parsing.

Tests: cargo fmt --all -- --check; cargo test -p volume_lib --all-targets --all-features --locked; cargo check -p volume_lib --all-targets --no-default-features --locked; cargo clippy -p volume_lib --all-targets --all-features --locked -- -D warnings (all pass)
2026-10-14 19:40:52 +02:00
Dandaedre 90ba84a802
feat(M4.1): establish the Pulse protocol boundary
Pin feature-gated libpulse bindings, document native prerequisites and MSRV/license checks, and add a no-autospawn client for sink-input enumeration, normalized metadata, linear multichannel conversion, volume/mute writes, and confirmed readback. Leave M4.1 open pending isolated-daemon subscription verification.

Tests: cargo fmt --all -- --check; cargo test -p volume_lib --all-targets --all-features --locked; cargo check -p volume_lib --all-targets --no-default-features --locked; cargo clippy -p volume_lib --all-targets --all-features --locked -- -D warnings (all pass)
2026-10-14 19:39:36 +02:00
Dandaedre 4f3eb4f279
feat(M3.4): complete the fake server lifecycle
Rust CI fader_master passed CI.
MadGobblins/fader_master/pipeline/head This commit looks good Details
Add adopt and ordered restore startup behavior, confirmed fake readback, unavailable and reconnect transitions, bounded exponential retry, disconnect invalidation, joined worker cancellation, and drain-before-checkpoint shutdown. Record the verified M3 hardware-free milestone.

Tests: cargo fmt --all -- --check; cargo check --workspace --all-targets --all-features --locked; cargo test --workspace --all-targets --all-features --locked; cargo test --workspace --doc --all-features --locked; cargo clippy --workspace --all-targets --all-features --locked -- -D warnings; cargo build --workspace --release --all-features --locked; cargo check --workspace --all-targets --no-default-features --locked; cargo test --workspace --all-targets --no-default-features --locked (all pass)
2026-10-14 15:42:50 +02:00
Dandaedre 58e08f3741
feat(M3.3): bound and order adapter dispatch
Add a fixed-capacity dispatch lane that coalesces only unsent volume writes, preserves mute edges in arrival order, and exposes overflow as an explicit resynchronization fault.

Tests: cargo fmt --all -- --check; cargo test -p volume_lib --all-targets --locked; cargo clippy -p volume_lib --all-targets --locked -- -D warnings (all pass)
2026-10-14 15:39:40 +02:00
Dandaedre 4e115b8562
feat(M3.2): add the fake audio worker contract
Add adapter capabilities, snapshot barriers with buffered race reconciliation, deterministic volume/mute writes and readback, and normal removal failures. Reject stale epochs and backend-ID incarnations while preserving newer pending reducer intent.

Tests: cargo fmt --all -- --check; cargo test -p fader-core -p volume_lib --all-targets --locked; cargo clippy -p fader-core -p volume_lib --all-targets --locked -- -D warnings (all pass)
2026-10-14 15:38:42 +02:00
Dandaedre 0beaee783c fix(build): reference the existing custom license
Preserve LICENSE by inheriting license-file instead of incorrectly claiming the project uses standard MIT. Validation: cargo metadata --offline --no-deps --format-version 1 --locked and git diff --cached --check passed.
2026-10-05 08:14:53 +02:00
Dandaedre 123a67732f refactor(M0.3): establish domain crate boundary
Add dependency-free fader-core and inward-only fader-config crates, wire existing adapters and clients toward the domain layer, and remove scaffold arithmetic tests.

Tests: cargo test -p fader-core -p fader-config --all-targets --locked (passed without device/runtime dependencies)

Tests: cargo check --workspace --all-targets --all-features --locked; cargo tree --workspace --locked --edges normal; git diff --check (passed)
2026-10-05 07:52:33 +02:00
Dandaedre 9711e6024c build(M0.1): pin reproducible Rust foundation
Select Rust 1.88.0 as the pinned toolchain and MSRV, centralize workspace package metadata and dependency versions, make Jenkins honor the same toolchain, and document Linux build prerequisites and locked commands.

Tests: cargo +1.88.0 fmt --all -- --check (passed)

Tests: cargo +1.88.0 check/test/clippy/doc/build workspace gates, release build, and no-default-features check with --locked (passed)

Tests: scripts/test-ci.sh; git diff --check (passed)
2026-10-05 07:47:49 +02:00
Dandaedre 7edc640adc Adds workspaces and basic example 2025-03-24 23:48:09 +01:00