Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
283cbc2
feat(lms): establish safe offline crossover-way, matrix and geometry …
masarray Nov 13, 2026
271b514
feat(lms): scoped compact five-workspace visual system
masarray Nov 13, 2026
c0d540a
feat(lms): five task-focused pages with crossover, patch, DSP and vis…
masarray Nov 13, 2026
14cd717
feat(lms): single approved Pages and native GUI composition seam
masarray Nov 13, 2026
b1d392a
fix(lms): validate canonical assets and scoped CSS ownership in both …
masarray Nov 13, 2026
6114f51
feat(lms): compose into one approved GUI and verify source-owned DOM/…
masarray Nov 13, 2026
177b38f
feat(lms): compose into one approved GUI and verify source-owned DOM/…
masarray Nov 13, 2026
bc6e03e
test(lms): section, route, hardware identity, geometry and fail-close…
masarray Nov 13, 2026
5b6f1ec
test(lms): assert composed UI, copy provenance, and run inexpensive m…
masarray Nov 13, 2026
0859656
fix(lms): unify crossover value validation contract for CI
masarray Nov 13, 2026
ba1a84c
fix(lms): reconstruct original CSS fixture with identical scoped LMS …
masarray Nov 13, 2026
043a96c
test(wire): sample actual SVG point resolution without weakening trav…
masarray Nov 13, 2026
033a180
Merge latest main V64 WIRE into scoped LMS milestone (no overlapping …
masarray Nov 13, 2026
b6db933
feat(lms): native LR4 multisection PCM kernel, verified sparse output…
masarray Nov 13, 2026
558a1d4
test(lms): native LR4 response, sparse physical output mapping, fan-o…
masarray Nov 13, 2026
bccca80
test(lms): 8 output stereo 4-way real DSP soak with zero callback all…
masarray Nov 13, 2026
6720b7c
build(lms): register two JUCE-free native CTest PCM and realtime allo…
masarray Nov 13, 2026
d8c4242
test(lms): keep native PCM assertions active in optimized Windows Rel…
masarray Nov 13, 2026
eb40053
test(lms): keep native PCM assertions active in optimized Windows Rel…
masarray Nov 13, 2026
139d6ee
feat(lms): prepared 8-band per-output parametric EQ after matrix, bef…
masarray Nov 13, 2026
aa5dd68
fix(lms): account EQ state in bounded memory budget and catch all con…
masarray Nov 13, 2026
879feed
test(lms): verify real per-output 6 dB PEQ PCM and invalid-Q transact…
masarray Nov 13, 2026
0c58e03
test(lms): stress 8 outputs with per-output 3-band real PEQ and no RT…
masarray Nov 13, 2026
d7b708c
ci(lms): fast Linux native PCM/equalizer/zero-heap gate before costly…
masarray Nov 13, 2026
7a0170c
Reconcile LMS five-workspace and native DSP M2 onto current Guitar FX…
masarray Nov 13, 2026
737c65a
feat(lms): compute native-matched LR4 and PEQ magnitude, editable DSP…
masarray Nov 13, 2026
c774eca
feat(lms): calculated LR4 curves, output EQ tab/graph, dedicated leve…
masarray Nov 13, 2026
63a9c02
fix(lms): maintain selected output and EQ band identity through port/…
masarray Nov 13, 2026
00167b6
test(lms): electrical LR4/PEQ parity, safe alignment draft and five-w…
masarray Nov 13, 2026
d7e8a9b
test(lms): real Chromium five-workspace UX with LR4/EQ curves, matrix…
masarray Nov 13, 2026
fe75de2
ci(lms): exact-source two-viewport Chromium FAT for five workspaces, …
masarray Nov 13, 2026
a15fb5c
test(ui): wait for re-rendered hardware key after FX toggles instead …
masarray Nov 13, 2026
3ea5495
feat(lms): fail-closed native port reservation preflight tied to acce…
masarray Nov 13, 2026
6e35d08
test(lms): accepted native graph, exact pin collision, source, epoch …
masarray Nov 13, 2026
026befd
build(lms): register native accepted-graph and exclusive ASIO output …
masarray Nov 13, 2026
2e0d42d
ci(lms): execute native MAIN/ASIO exclusive speaker pin safety gate b…
masarray Nov 13, 2026
847a558
fix(ci): keep LMS screenshot artifact glob inside YAML block scalar
masarray Nov 13, 2026
268c2a9
Reconcile LMS visual DSP and native output safety with latest main: p…
masarray Nov 13, 2026
50392f9
fix(test): assert actual PFL hardware identity instead of historical …
masarray Nov 13, 2026
3deac19
fix(ui): align PFL hardware SVG renderer and lamp with actual physica…
masarray Nov 13, 2026
93708f5
fix(ui): align PFL hardware SVG renderer and lamp with actual physica…
masarray Nov 13, 2026
dfc12fd
feat(lms): align native output polarity and per-EQ-band bypass with a…
masarray Nov 13, 2026
fc6e0c1
test(lms): verify native polarity inversion, EQ bypass and active ban…
masarray Nov 13, 2026
08e5cb6
feat(lms): expose one-pass read-only accepted MAIN PCM observer in so…
masarray Nov 13, 2026
3cf3c68
test(lms): accepted ChannelId post-FX MAIN to stereo 4-way PCM in sam…
masarray Nov 13, 2026
ed763cc
test(lms): reject zero quantum without out-of-bounds diagnostic buffe…
masarray Nov 13, 2026
10d40cf
ci(lms): compile and run accepted native MAIN-to-crossover PCM witnes…
masarray Nov 13, 2026
e0a2c30
ci(lms): compile and run accepted native MAIN-to-crossover PCM witnes…
masarray Nov 13, 2026
ff383a2
test(ui): assert real PFL/SOLO engraved SVG legend after hardware ren…
masarray Nov 13, 2026
f843a75
test(lms): keep portable heap interception without GCC's false mismat…
masarray Nov 13, 2026
b8124c7
Reconcile LMS real post-FX PCM witness, speaker safety and PFL hardwa…
masarray Nov 13, 2026
7f45472
test(ui): read SVG <text> with text_content, retain exact PFL/SOLO en…
masarray Nov 13, 2026
11258bd
feat(lms): native revisioned design ACK/readback transaction bound to…
masarray Nov 13, 2026
8192dd2
test(lms): native publisher accepted design ACK, readback, rejection …
masarray Nov 13, 2026
32de932
test(lms): run same-graph typed draft ACK, readback and stale-epoch s…
masarray Nov 13, 2026
6e0cc76
test(lms): run same-graph typed draft ACK, readback and stale-epoch s…
masarray Nov 13, 2026
b4575e3
test(css): preserve immutable V26/V25 ownership with exact audited PF…
masarray Nov 13, 2026
c8d1e4d
test(css): preserve immutable V26/V25 ownership with exact audited PF…
masarray Nov 13, 2026
f98530c
test(css): preserve immutable V26/V25 ownership with exact audited PF…
masarray Nov 13, 2026
c7773e4
feat(lms): device-mask-bound offline speaker design admission, discar…
masarray Nov 13, 2026
d5d07a0
test(lms): reject stale/forged output identity, main collisions and u…
masarray Nov 13, 2026
28ef0c6
test(lms): assert trusted offline mask state, not nonexistent invento…
masarray Nov 13, 2026
6bc2ea1
feat(lms): bind speaker design through actual JUCE ASIO mask and acce…
masarray Nov 13, 2026
e7c202e
feat(lms): validate offline speaker drafts using real ASIO device and…
masarray Nov 13, 2026
780d6eb
feat(lms): revoke native speaker draft on ASIO readback change mid-tr…
masarray Nov 13, 2026
ca8eed5
ci(lms): enforce real JUCE pin binder and browser-ordinal rejection i…
masarray Nov 13, 2026
7def74a
ci(lms): enforce real JUCE pin binder and browser-ordinal rejection i…
masarray Nov 13, 2026
1939e35
refactor(lms): single trusted JUCE device inventory provider shared b…
masarray Nov 13, 2026
beaa6c6
feat(lms): publish actual prepared native quantum in trusted speaker …
masarray Nov 13, 2026
a835b9a
feat(lms): publish actual prepared native quantum in trusted speaker …
masarray Nov 13, 2026
340ebcd
feat(lms): expose read-only actual ASIO inventory and accepted discon…
masarray Nov 13, 2026
7f2db2b
feat(lms): strict bounded JUCE WebView design parser and authoritativ…
masarray Nov 13, 2026
877b08a
build(lms): make native JUCE request/ACK projection header self-conta…
masarray Nov 13, 2026
0d5ebf1
feat(lms): real WebView inspect/validate handlers with native-only AC…
masarray Nov 13, 2026
7e20f2c
feat(lms): compact native-only ASIO inspection, explicit safe port bi…
masarray Nov 13, 2026
2247280
style(lms): compact native inspection/validation status strip matchin…
masarray Nov 13, 2026
35ef978
test(lms): actual WebView native inspection, muted design ACK/readbac…
masarray Nov 13, 2026
b987e5a
ci(lms): fast Node test of real WebView ASIO inspection and native AC…
masarray Nov 13, 2026
e3edb8e
test(lms): emulate browser addEventListener in isolated Node WebView …
masarray Nov 13, 2026
61408ff
test(lms): JUCE browser schema rejects malicious ids and never treats…
masarray Nov 13, 2026
228ecea
build(lms): JUCE CTest for exact WebView native intent decode and dis…
masarray Nov 13, 2026
36c6647
build(lms): deterministic JUCE String iteration and explicit native e…
masarray Nov 13, 2026
482bb22
build(lms): deterministic JUCE String iteration and explicit native e…
masarray Nov 13, 2026
141aa19
Reconcile LMS M6 real JUCE design ACK/readback with current Guitar FX…
masarray Nov 13, 2026
a5d7c8c
fix(lms): native readback includes full per-port PEQ, polarity, gain,…
masarray Nov 13, 2026
98e98fe
fix(lms): require full DSP/PEQ/polarity/delay native readback parity …
masarray Nov 13, 2026
c3bb59c
test(lms): reject forged DSP readbacks and armed device even after va…
masarray Nov 13, 2026
9d22970
test(lms): JUCE native inspection serializes every processing paramet…
masarray Nov 13, 2026
ce7ee21
feat(lms): process actual post-master ChannelId PCM in RT-safe isolat…
masarray Nov 13, 2026
6be7114
fix(lms): retain CONTROL DSP ownership and account full dual-prepare …
masarray Nov 13, 2026
34bf677
feat(lms): prepare measured-voltage speaker profile with DSP peak/RMS…
masarray Nov 13, 2026
7c983f8
test(lms): assert real PCM voltage-model peak/RMS limiting, HPF, reco…
masarray Nov 13, 2026
e2cbf3e
test(lms): exercise measured-voltage model through accepted ChannelId…
masarray Nov 13, 2026
ee94509
merge(lms): reconcile M9 speaker protection and M8 callback witness w…
masarray Nov 13, 2026
af10c67
fix(lms): run post-master diagnostic PCM in physical-disarmed meterin…
masarray Nov 13, 2026
6e6da14
feat(lms): expose per-output native peak/RMS gain-reduction readback …
masarray Nov 13, 2026
82ec6e5
test(lms): prove voltage-limited post-master section and atomic gain …
masarray Nov 13, 2026
6321f4f
fix(lms): enforce digital ceiling and hidden-voltage-profile parity f…
masarray Nov 13, 2026
406aaf0
fix(ci): eliminate Windows SonKu fixture stack overflow and reconcile…
masarray Nov 13, 2026
31b715a
fix(native): remove CONTROL restoreExact budget copy; retain full Har…
masarray Nov 13, 2026
c79f10e
fix(harmony): preserve exact mono pitch-synchronous grain parity acro…
masarray Nov 13, 2026
324c424
perf(lms): bound isolated post-master diagnostic DSP to two seconds w…
masarray Nov 13, 2026
5de6ba6
test(lms): isolate RT no-heap witness from explicitly allocating CONT…
masarray Nov 13, 2026
7e181af
merge(lms): preserve latest public alpha.23 main and document calibra…
masarray Nov 13, 2026
56dc5d9
test(gui): respect real two-key MASTER vs three-key channel PFL seman…
masarray Nov 13, 2026
6462002
feat(lms-m11): introduce strict portable disconnected speaker draft s…
masarray Nov 13, 2026
aef5604
feat(lms-m11): persist strictly disconnected speaker DSP drafts as op…
masarray Nov 13, 2026
1db2684
test(lms): retain JUCE var array owner during hostile .smix roundtrip…
masarray Nov 13, 2026
ba18ae6
feat(lms-m11): tie accepted native muted speaker draft to .smix captu…
masarray Nov 13, 2026
5407d39
feat(dlms): pure explicit safe port reassignment retaining tuning and…
masarray Nov 13, 2026
7bd6a9a
feat(dlms-ux): modal-free per-output ASIO reassignment review preserv…
masarray Nov 13, 2026
b6e63e2
test(dlms): browser-native staged ASIO remap preserves gain but never…
masarray Nov 13, 2026
8c082a4
ci(dlms): introduce strict speaker-only portable PCM/UI lane and stop…
masarray Nov 13, 2026
8e891e2
ci(dlms): exclude unrelated Harmonice DSP gate on speaker PR and expo…
masarray Nov 13, 2026
869a891
test(dlms): fix accidental literal escape in remap assertion diagnostic
masarray Nov 13, 2026
5aa704e
fix(dlms-ux): one render uses accepted muted reassignment status, pre…
masarray Nov 13, 2026
618ac54
docs(dlms): evidence-based Lake/R1/Armonia/Xilica UX and strict real …
masarray Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .github/workflows/dlms-fast.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: DLMS speaker processor (focused C++ and UX)
on:
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'engine/lms/**'
- 'engine/core/DynamicNativeSessionPublisher.h'
- 'src/NativeLmsWebIntent.h'
- 'src/NativeMixerSessionDocument.h'
- 'src/LiveDryRoutingLab.h'
- 'tests/lms_*'
- 'site/preview-v2/assets/lms-*.js'
- 'site/preview-v2/assets/lms-*.css'
- '.github/workflows/dlms-fast.yml'
- '.github/workflows/harmony-fast-dsp.yml'
- 'CMakeLists.txt'
workflow_dispatch:
permissions:
contents: read
concurrency:
group: dlms-fast-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
dlms:
name: DLMS only — native speaker PCM, safety and 5-page model
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
- name: One matrix of speaker-ONLY portable C++ tests (no JUCE, no hardware)
shell: bash
run: |
set -euo pipefail
for name in lms_prepared_speaker_pcm_test lms_synthetic_realtime_budget_test \
lms_native_output_reservation_test lms_native_postfx_main_witness_test \
lms_native_draft_ack_readback_test lms_verified_device_binder_test \
lms_offline_session_draft_test; do
printf 'DLMS C++ %s\\n' "$name"
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror \
"tests/${name}.cpp" -o "$RUNNER_TEMP/${name}"
"$RUNNER_TEMP/${name}"
done
- name: DLMS design UX, matrix, explicit port matching and native bridge
run: |
node --check site/preview-v2/assets/lms-system-model.js
node --check site/preview-v2/assets/lms-workspace.js
node --test tests/lms_system_model.test.cjs tests/lms_native_bridge.test.cjs
- name: DLMS scope contract (no vocal-harmony tests in this gate)
run: node --test tests/dlms_ci_scope_contract.test.cjs
7 changes: 6 additions & 1 deletion .github/workflows/harmony-fast-dsp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:
- 'engine/builtin_fx/Harmony*.h'
- 'tests/harmony*.cpp'
- 'tools/harmony_offline_ab.cpp'
- 'CMakeLists.txt'
# Shared CMake edits for DLMS or the mixer are NOT Harmonice DSP edits.
# Full native CTest qualifies shared build integration separately.
- '.github/workflows/harmony-fast-dsp.yml'
permissions:
contents: read
Expand All @@ -15,6 +16,10 @@ concurrency:
cancel-in-progress: true
jobs:
harmony-cpp:
# The LMS long-running PR contains historical shared Harmony commits.
# Revalidate dedicated Harmonice changes in its OWN vocal FX PR; the
# speaker-only PR is qualified by DLMS PCM + general native integration.
if: ${{ !startsWith(github.head_ref, 'feat/lms-') && !startsWith(github.head_ref, 'feat/dlms-') }}
name: Native DSP compile and PCM regression (Linux, no JUCE)
runs-on: ubuntu-latest
timeout-minutes: 7
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/p1-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,34 @@ jobs:
run: |
g++ -std=c++20 -O2 -Wall -Wextra -Werror tests/mixer_routing_plan_test.cpp -o "$RUNNER_TEMP/armix-native-routing-pcm"
"$RUNNER_TEMP/armix-native-routing-pcm"
# LMS has a portable JUCE-free DSP kernel. Catch an actual PCM or
# allocation regression in seconds before paying for Windows MSVC.
- name: LMS prepared crossover / EQ / speaker matrix PCM preflight
if: ${{ github.event_name == 'pull_request' && startsWith(github.head_ref, 'feat/lms-') }}
run: |
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror tests/lms_prepared_speaker_pcm_test.cpp -o "$RUNNER_TEMP/armix-lms-pcm"
"$RUNNER_TEMP/armix-lms-pcm"
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror tests/lms_synthetic_realtime_budget_test.cpp -o "$RUNNER_TEMP/armix-lms-rt"
"$RUNNER_TEMP/armix-lms-rt"
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror tests/lms_native_output_reservation_test.cpp -o "$RUNNER_TEMP/armix-lms-port-guard"
"$RUNNER_TEMP/armix-lms-port-guard"
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror tests/lms_native_postfx_main_witness_test.cpp -o "$RUNNER_TEMP/armix-lms-post-main"
"$RUNNER_TEMP/armix-lms-post-main"
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror tests/lms_native_draft_ack_readback_test.cpp -o "$RUNNER_TEMP/armix-lms-ack"
"$RUNNER_TEMP/armix-lms-ack"
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror tests/lms_verified_device_binder_test.cpp -o "$RUNNER_TEMP/armix-lms-device"
"$RUNNER_TEMP/armix-lms-device"
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror tests/lms_offline_session_draft_test.cpp -o "$RUNNER_TEMP/armix-lms-session"
"$RUNNER_TEMP/armix-lms-session"
# Windows MSVC CTest previously SIGSEGV'd before executing SonKu
# asserts: multiple ~192 KiB automatic DSP fixtures exhausted the
# bounded Windows test-thread stack. Run its REAL non-JUCE PCM
# fixture with a 1 MiB Linux stack limit before reserving MSVC.
- name: SonKu PCM parity with Windows-sized stack (LMS integration)
if: ${{ github.event_name == 'pull_request' && startsWith(github.head_ref, 'feat/lms-') }}
run: |
g++ -std=c++20 -O2 -DNDEBUG -fno-fast-math -Wall -Wextra -Werror tests/sonku_spatial_core_test.cpp -o "$RUNNER_TEMP/armix-sonku-stack"
(ulimit -s 1024; "$RUNNER_TEMP/armix-sonku-stack")
- name: WaveShell JUCE 8 class-index regression (source-aware)
shell: bash
run: |
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/ui-smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ jobs:
node --test tests/floating_window_workspace_contract.test.mjs
node --test tests/rc_operator_workflow_contract.test.mjs
node --test tests/workstream_coordination_contract.test.mjs tests/chat_ci_dispatch_contract.test.mjs tests/gui_workflow_contract_test.mjs tests/plugin_ui_contract_test.mjs tests/ci_workflow_efficiency_test.mjs tests/fx_drag_reorder_contract_test.mjs tests/mixer_io_operator_contract_test.mjs tests/mixer_shell_contract_test.mjs tests/approved_native_m2_contract.test.cjs
if [ -f tests/lms_native_bridge.test.cjs ]; then node --test tests/lms_system_model.test.cjs tests/lms_native_bridge.test.cjs; fi
node tests/wire_graph_canonical_model.test.cjs
node tests/wire_main_native_handoff_contract.test.cjs
- name: Verify single published /preview/ source offline
Expand Down Expand Up @@ -423,6 +424,11 @@ jobs:
python -m pip install --upgrade pip
python -m pip install playwright
python -m playwright install --with-deps chromium
# LMS Browser FAT is additive only when this feature exists in the
# exact checked-out source. Never test a separate or prototype renderer.
- name: LMS five-workspace crossover / matrix / EQ / geometry Chromium
if: ${{ hashFiles('tests/pages_lms_five_workspaces_smoke.py') != '' }}
run: python tests/pages_lms_five_workspaces_smoke.py
- name: Verify opt-in actual /preview/ GUI profiling, default OFF
run: python tests/approved_gui_perf_stage_a_smoke.py
- name: Validate Stage B native meter dirty-write / authoritative Pages parity
Expand Down Expand Up @@ -742,6 +748,7 @@ jobs:
name: arsonmix-gui-current-smoke
path: |
pages-wire-main-*.png
pages-lms-*.png
pages-v53-fx-rail-*.png
pages-v51-portrait-meter-*.png
pages-fader-rollback-*.png
Expand Down
56 changes: 56 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,62 @@ target_link_libraries(ARMixConsole PRIVATE

include(CTest)
if(BUILD_TESTING)
# LMS M2: portable native DSP kernel, prepared off-RT and exercised with
# actual PCM blocks. This is NOT a second mixer callback or device graph.
add_executable(ARMixSpeakerPcmTests tests/lms_prepared_speaker_pcm_test.cpp
engine/lms/PreparedSpeakerSystem.h)
target_compile_features(ARMixSpeakerPcmTests PRIVATE cxx_std_20)
add_test(NAME LMSNativeLR4MultisectionVerifiedOutputsAndDelay
COMMAND ARMixSpeakerPcmTests)
add_executable(ARMixSpeakerDeviceBinderTests
tests/lms_verified_device_binder_test.cpp
engine/lms/NativeSpeakerDeviceBinder.h)
target_compile_features(ARMixSpeakerDeviceBinderTests PRIVATE cxx_std_20)
add_test(NAME LMSNativeExactJuceOutputInventoryDiscardBrowserOrdinals
COMMAND ARMixSpeakerDeviceBinderTests)
add_executable(ARMixSpeakerDraftAckReadbackTests
tests/lms_native_draft_ack_readback_test.cpp
engine/core/DynamicNativeSessionPublisher.h
engine/lms/NativeSpeakerOutputReservation.h)
target_compile_features(ARMixSpeakerDraftAckReadbackTests PRIVATE cxx_std_20)
add_test(NAME LMSNativeSameGraphDesignAckReadbackAndStaleRevocation
COMMAND ARMixSpeakerDraftAckReadbackTests)
add_executable(ARMixSpeakerPostFxMainWitnessTests
tests/lms_native_postfx_main_witness_test.cpp
engine/lms/PreparedSpeakerSystem.h
engine/core/DynamicNativeSessionPublisher.h)
target_compile_features(ARMixSpeakerPostFxMainWitnessTests PRIVATE cxx_std_20)
add_test(NAME LMSOneAcceptedNativeMainFxToEightWayShadowPcm
COMMAND ARMixSpeakerPostFxMainWitnessTests)
add_executable(ARMixSpeakerOutputReservationTests
tests/lms_native_output_reservation_test.cpp
engine/lms/NativeSpeakerOutputReservation.h
engine/lms/PreparedSpeakerSystem.h)
target_compile_features(ARMixSpeakerOutputReservationTests PRIVATE cxx_std_20)
add_test(NAME LMSNativeAcceptedChannelIdExclusiveAsioOutputGuard
COMMAND ARMixSpeakerOutputReservationTests)
add_executable(ARMixSpeakerRealtimeTests tests/lms_synthetic_realtime_budget_test.cpp
engine/lms/PreparedSpeakerSystem.h)
target_compile_features(ARMixSpeakerRealtimeTests PRIVATE cxx_std_20)
add_test(NAME LMSNativeFourWayStereoZeroCallbackHeap
COMMAND ARMixSpeakerRealtimeTests)
# LMS M11 detached session draft: portable cold-open safety policy.
add_executable(ARMixSpeakerOfflineDraftTests
tests/lms_offline_session_draft_test.cpp
engine/lms/LmsOfflineDraft.h)
target_compile_features(ARMixSpeakerOfflineDraftTests PRIVATE cxx_std_20)
add_test(NAME LMSOfflineSmixDraftAlwaysUnassignedDisarmed
COMMAND ARMixSpeakerOfflineDraftTests)
# LMS M6 JUCE WebView control ABI tests: native schema only, no ASIO
# endpoint/driver opened, no second audio callback or render.
juce_add_console_app(ARMixSpeakerWebIntentTests PRODUCT_NAME "ArSonMix LMS Offline WebView Native Contract")
target_sources(ARMixSpeakerWebIntentTests PRIVATE tests/lms_juce_web_intent_test.cpp
src/NativeLmsWebIntent.h)
target_compile_features(ARMixSpeakerWebIntentTests PRIVATE cxx_std_20)
target_link_libraries(ARMixSpeakerWebIntentTests PRIVATE
juce::juce_core juce::juce_recommended_config_flags)
add_test(NAME LMSNativeJuceIntentSchemaAndDisconnectedReadback
COMMAND ARMixSpeakerWebIntentTests)
juce_add_console_app(ARMixFactoryFxRegistryTests PRODUCT_NAME "ArSonMix Factory FX Integrity Tests")
target_sources(ARMixFactoryFxRegistryTests PRIVATE tests/factory_fx_registry_test.cpp src/FactoryFxRegistry.h)
target_link_libraries(ARMixFactoryFxRegistryTests PRIVATE juce::juce_core juce::juce_cryptography juce::juce_recommended_config_flags)
Expand Down
74 changes: 74 additions & 0 deletions docs/DLMS_PRO_WORKFLOW_SAFETY_M12_20261114.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# DLMS Professional Workflow & Safety Contract — M12 (2026-11-14)

**Product**: ArSonMix — Digital Loudspeaker Management System (DLMS) workspace.
**Unrelated**: Harmonice is the built-in vocal-harmony audio FX in the channel FX Rack. Its DSP test does not qualify DLMS.

## Verified competitive patterns and what is actually adopted

| Professional reference | Verified published workflow | ArSonMix DLMS decision |
| --- | --- | --- |
| d&b R1 | Offline design without attached amplifiers, separate device and group views, device system check | Keep an always-visible *DESIGN ONLY* identity and five purposeful pages; never imitate hardware telemetry |
| Xilica Designer | Project is authored offline, then explicitly mapped to physical device identity, reviewed and deployed separately | Require operator-selected exact ASIO port identity; device epoch and graph changes invalidate pending review |
| Lake Controller | Recall Compare detects differences between saved and active configuration; bulk recall has a distinct high-impact confirmation | Preserve the previous DSP design until explicit mapping is accepted; do not silently map ordinal 1 to a different amplifier |
| Powersoft ArmoníaPlus | Device-aware speaker-way routing, per-way crossover/EQ/delay/gain/polarity, RMS and peak protection | Separate logical crossover sections from output DSP and physical port inventory; prioritize measured electrical calibration |
| Q-SYS | Loudspeaker protection requires manufacturer-derived RMS/peak voltages and high-pass constraints | Digital dBFS ceiling and a 'limiter on' checkbox never constitute safe speaker hardware authorization |

Reference links:
- https://www.dbaudio.com/global/en/products/software/r1/
- https://support.xilica.com/en/articles/3955586
- https://mediadl.musictribe.com/media/PLM/data/docs/Lake-Controller/Lake%20Controller%20Operation%20Manual_1.7.0.pdf
- https://www.powersoft.com/en/technologies/dsp-technology
- https://help.qsys.com/Content/Schematic_Library/lua_speaker.htm

## Owner and signal path: one native authority

```
ArSonMix native accepted MAIN (post FX and post master processing)
-> CONTROL prepared speaker DSP (HPF/LPF crossover, PEQ, delay, polarity, gain)
-> isolated offline diagnostic PCM and atomic readback
-> speaker output port intents (MUTED, not physical)
-> NATIVE binder checks actual JUCE/ASIO inventory + same device epoch
-> accepted speaker draft ACK + exact graph readback (hardwareApplied=false)
-X-> physical loudspeaker output [NOT AUTHORIZED]
```

No WebView JSON may declare trusted actual ASIO callback ordinals, DAC full-scale voltage, amplifier gain, or physical output authorization. The single existing native JUCE callback remains the future sole physical writer. The M10 diagnostic is bounded and isolated, not a parallel live sound path.

## Current M12 interaction rules (code implemented in branch)

1. **Design**: System → Crossover → Matrix → Processing → Alignment. Start offline, no auto-patched output.
2. **Inspect**: Obtain actual port identities from the native JUCE output inventory; MAIN/MONITOR/EXTERNAL occupied ports are not selectable as speaker destination.
3. **Option A — New hardware layout**: *Use verified ports* intentionally clears all prior routing/DSP and requires confirmation.
4. **Option B — Keep sound-system design**: *Reassign + keep DSP* opens a compact per-output review. Every connected/tuned/positioned old output requires an explicit unique new port. Unmapped untouched placeholders may be dropped. PEQ, delay, crossover, gain, polarity, limiter intent and geometry are preserved **only for selected ports**; every result is **MUTED**. No guessed ordinal, partial commit, or hidden auto-patch.
5. **Validate**: Reassignment invalidates old accepted design revision and needs a separate user-initiated native Validate; native ACK must be followed by a subsequent readback of every DSP field. Device epoch/graph or occupancy changes cancel pending mapping review.
6. **Save / Open**: The existing `.smix` codec stores a versioned, disconnected LMS draft with DSP values only. It strips port identity, graph epoch, hardware unmute, and claimed calibrated voltage values. Opening it cannot auto-arm a speaker. **Important limitation:** The GUI's direct restored-DLMS-editor presentation is not yet wired to the session import event; native session storage and offline model tests are separate completed contracts.

## Status taxonomy — never claim a capability that is not present

| Label | Allowed meaning |
| --- | --- |
| DESIGN ONLY | Editable offline data; no port authorization or acoustic measurement |
| INSPECTION REQUIRED | Port inventory absent/stale |
| REVIEW REQUIRED | Saved design needs explicit operator port mapping |
| ACK PENDING READBACK | CONTROL accepted a typed draft, but state not yet reconciled |
| VALIDATED DRAFT | Exact same epoch/graph/revision and DSP fields verified; hardwareApplied **false** |
| CALIBRATION UNVERIFIED | Actual DAC/amp/driver limit evidence missing; **no speaker LIVE** |
| LIVE | **Forbidden for this milestone**; requires independent FAT and typed native arm transaction |

### Tests and CI boundaries

- **DLMS focused** `.github/workflows/dlms-fast.yml`: seven portable C++20 tests for crossover/PCM, callback allocation, output reservation, post-MAIN witness, native ACK and stale revocation, real ASIO binder and disconnected session draft; two JS suites for the five pages, review transaction, stale inspection, and model math; job scope contract.
- **Shared integration**: native Windows MSVC/CTest tests JUCE session persistence, host/build ABI, and no regressions; full product Chromium ensures the rest of the mixer survives. A shared PAN test failure is **not** a failure of speaker DSP, but it must be resolved before full-product release.
- **Harmonice**: vocal harmony fast tests do not run for the DLMS feature branch. They remain in a distinct vocal-effect workflow and cannot be reported as DLMS PASS.

### Remaining gates for a physically usable professional DLMS

1. Read-only GUI session-recovery presentation with explicit `NEEDS_REMAP` and comparison to native device inventory; no automatic rematch by ordinal.
2. Separate **trusted measurement provenance**: DAC Vrms measured at a known gain setting, amplifier gain and voltage limits from a documented manufacturer profile, power handling/HPF, reviewable measurement date and instrument identity. Valid numeric fields alone are **not** proof.
3. Typed physical speaker admission lease, exclusive MAIN/MONITOR/EXTERNAL pin ownership, atomic device-change revocation, rollback, measured limiter readback and emergency mute through the **single** PCM callback. Avoid a second output engine.
4. Actual multichannel ASIO/amplifier/dummy-load FAT: calibration tolerance, silence on exception/stale epoch, crossover spectral analysis, latency, xrun/device restart, driver disconnect, channel polarity and physical pin labeling.
5. Only after these and full product qualification may production operator workflow expose LIVE. No estimate or simulated meter is a substitute for field evidence.

## Next implementation focus

Keep UI compact and operational, not a massive wizard: display `DESIGN`, `INSPECT`, `REVIEW`, `VALIDATED` as explicit states; one output map with selected source way, exact port label, mute and short status. A/B/compare changes before admission. No fake color-coded 'safe' LED, no optimism after stale ACK, and no redundant FX-specific CI gate.
Loading
Loading