From 17b0299020cbd60dd560974226d03b706878bfd7 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 15 Nov 2026 07:34:07 +0700 Subject: [PATCH 1/7] feat(sonku): P8.5 world-locked music MID mode, native v6 and capability-gated A/B --- CMakeLists.txt | 10 ++++- engine/builtin_fx/SonKuSpatialProcessor.h | 17 ++++++++ .../builtin_fx/sonku/SonKuP83SpeakerScene.h | 6 +++ engine/builtin_fx/sonku/SonKuSpatialCore.h | 28 ++++++++++++- site/preview-v2/assets/mixer-native-sonku.js | 40 +++++++++++++------ src/Main.cpp | 8 +++- src/SonKuNativeBridgeContract.h | 8 +++- 7 files changed, 100 insertions(+), 17 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5d90da3b4..a7de6a8e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,6 +54,12 @@ if(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT AND NOT ARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT) message(FATAL_ERROR "P8.4 research requires P8.3 typed native host as transport; old P8.3 modes remain hidden/rejected") endif() +option(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT + "Enable opt-in P8.5 world-locked music scene for private headphone FAT" OFF) +if(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT AND + NOT ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) + message(FATAL_ERROR "P8.5 requires P8.4 native fusion research; production stays OFF") +endif() set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -258,7 +264,9 @@ target_compile_definitions(ARMixConsole PRIVATE $<$:ARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT=1> $<$:SONKU_P83_PHYSICAL_SPEAKER_RESEARCH=1> $<$:ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT=1> - $<$:SONKU_P84_SINGLE_CORE_FUSION_RESEARCH=1>) + $<$:SONKU_P84_SINGLE_CORE_FUSION_RESEARCH=1> + $<$:ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT=1> + $<$:SONKU_P85_WORLD_COHERENCE_RESEARCH=1>) if(WIN32) # Windows retains its proven ASIO-first / WASAPI / static WebView2 distribution. # Never link Windows loader or sound APIs into macOS/Linux builds. diff --git a/engine/builtin_fx/SonKuSpatialProcessor.h b/engine/builtin_fx/SonKuSpatialProcessor.h index 1df9ba678..9dcff61a9 100644 --- a/engine/builtin_fx/SonKuSpatialProcessor.h +++ b/engine/builtin_fx/SonKuSpatialProcessor.h @@ -158,7 +158,11 @@ class SonKuSpatialProcessor final : public juce::AudioProcessor, #if defined(ARMIX_SONKU_EXPERIMENTAL_NATIVE_XYZ_RT) && ARMIX_SONKU_EXPERIMENTAL_NATIVE_XYZ_RT #if defined(ARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT #if defined(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT +#if defined(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT + out.writeInt(6); // unchanged 59-byte state; P8.5 is opt-in mode 4 +#else out.writeInt(5); // same 59-byte layout as v4, new P8.4 mode +#endif #else out.writeInt(4); #endif @@ -210,6 +214,9 @@ class SonKuSpatialProcessor final : public juce::AudioProcessor, &&version!=4 #if defined(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT &&version!=5 +#if defined(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT + &&version!=6 +#endif #endif #endif #endif @@ -220,6 +227,9 @@ class SonKuSpatialProcessor final : public juce::AudioProcessor, ||(version==4&&size!=59) #if defined(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT ||(version==5&&size!=59) +#if defined(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT + ||(version==6&&size!=59) +#endif #endif #endif #endif @@ -272,6 +282,13 @@ class SonKuSpatialProcessor final : public juce::AudioProcessor, return false; if(version==5 && next.musicCompatibleLowFrequency) return false; +#if defined(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT + // Preserve legacy P8.4 mode=3 on v5 restore. Never revive v4 + // rejected physical modes; v6 permits only music modes 0/3/4. + if(version==6 && next.renderMode!=0 && next.renderMode!=3 && next.renderMode!=4) + return false; + if(version==6 && next.musicCompatibleLowFrequency)return false; +#endif #endif } #endif diff --git a/engine/builtin_fx/sonku/SonKuP83SpeakerScene.h b/engine/builtin_fx/sonku/SonKuP83SpeakerScene.h index c563cb59e..039372f17 100644 --- a/engine/builtin_fx/sonku/SonKuP83SpeakerScene.h +++ b/engine/builtin_fx/sonku/SonKuP83SpeakerScene.h @@ -10,6 +10,9 @@ enum class Mode : std::uint8_t { MusicBedP82=0, MonoObject=1, SpeakerMonitor=2, #if defined(SONKU_P84_SINGLE_CORE_FUSION_RESEARCH) && SONKU_P84_SINGLE_CORE_FUSION_RESEARCH MusicSpatialP84=3 +#if defined(SONKU_P85_WORLD_COHERENCE_RESEARCH) && SONKU_P85_WORLD_COHERENCE_RESEARCH + ,MusicSpatialP85=4 +#endif #endif }; enum class Stem : std::uint8_t { Combined=0, Direct=1, Early=2, Late=3 }; @@ -18,6 +21,9 @@ inline bool valid(Mode m) noexcept { m==Mode::SpeakerMonitor #if defined(SONKU_P84_SINGLE_CORE_FUSION_RESEARCH) && SONKU_P84_SINGLE_CORE_FUSION_RESEARCH || m==Mode::MusicSpatialP84 +#if defined(SONKU_P85_WORLD_COHERENCE_RESEARCH) && SONKU_P85_WORLD_COHERENCE_RESEARCH + || m==Mode::MusicSpatialP85 +#endif #endif ; } diff --git a/engine/builtin_fx/sonku/SonKuSpatialCore.h b/engine/builtin_fx/sonku/SonKuSpatialCore.h index 58864b81a..a2ca2cc27 100644 --- a/engine/builtin_fx/sonku/SonKuSpatialCore.h +++ b/engine/builtin_fx/sonku/SonKuSpatialCore.h @@ -88,7 +88,11 @@ inline bool valid(const Settings& s) noexcept { #if defined(SONKU_P83_PHYSICAL_SPEAKER_RESEARCH) && SONKU_P83_PHYSICAL_SPEAKER_RESEARCH s.renderMode>=0 && #if defined(SONKU_P84_SINGLE_CORE_FUSION_RESEARCH) && SONKU_P84_SINGLE_CORE_FUSION_RESEARCH +#if defined(SONKU_P85_WORLD_COHERENCE_RESEARCH) && SONKU_P85_WORLD_COHERENCE_RESEARCH + s.renderMode<=4 && ((s.renderMode!=3 && s.renderMode!=4) || !s.musicCompatibleLowFrequency) && +#else s.renderMode<=3 && (s.renderMode!=3 || !s.musicCompatibleLowFrequency) && +#endif #else s.renderMode<=2 && #endif @@ -425,6 +429,9 @@ class SonKuSpatialCore final { p83Mode_!=p83::Mode::MusicBedP82 #if defined(SONKU_P84_SINGLE_CORE_FUSION_RESEARCH) && SONKU_P84_SINGLE_CORE_FUSION_RESEARCH && p83Mode_!=p83::Mode::MusicSpatialP84 +#if defined(SONKU_P85_WORLD_COHERENCE_RESEARCH) && SONKU_P85_WORLD_COHERENCE_RESEARCH + && p83Mode_!=p83::Mode::MusicSpatialP85 +#endif #endif ; const bool monoObject=positionedMode && p83Mode_==p83::Mode::MonoObject; @@ -451,7 +458,11 @@ class SonKuSpatialCore final { #endif #if defined(SONKU_P84_SINGLE_CORE_FUSION_RESEARCH) && SONKU_P84_SINGLE_CORE_FUSION_RESEARCH const bool musicFused=musicSafe && - (p84FusedMusic_ || p83Mode_==p83::Mode::MusicSpatialP84); + (p84FusedMusic_ || p83Mode_==p83::Mode::MusicSpatialP84 +#if defined(SONKU_P85_WORLD_COHERENCE_RESEARCH) && SONKU_P85_WORLD_COHERENCE_RESEARCH + || p83Mode_==p83::Mode::MusicSpatialP85 +#endif + ); #else constexpr bool musicFused=false; #endif @@ -747,6 +758,9 @@ class SonKuSpatialCore final { if(p83Mode_!=p83::Mode::MusicBedP82 #if defined(SONKU_P84_SINGLE_CORE_FUSION_RESEARCH) && SONKU_P84_SINGLE_CORE_FUSION_RESEARCH && p83Mode_!=p83::Mode::MusicSpatialP84 +#if defined(SONKU_P85_WORLD_COHERENCE_RESEARCH) && SONKU_P85_WORLD_COHERENCE_RESEARCH + && p83Mode_!=p83::Mode::MusicSpatialP85 +#endif #endif && room_.preparedProfile()==SonKuReflectionProfile::SixSurfaceKemarResearch) { // 2x2 measured source-to-ear transfer. No MID center @@ -770,13 +784,25 @@ class SonKuSpatialCore final { #endif #if defined(SONKU_P84_SINGLE_CORE_FUSION_RESEARCH) && SONKU_P84_SINGLE_CORE_FUSION_RESEARCH if((p83Mode_==p83::Mode::MusicSpatialP84 || +#if defined(SONKU_P85_WORLD_COHERENCE_RESEARCH) && SONKU_P85_WORLD_COHERENCE_RESEARCH + p83Mode_==p83::Mode::MusicSpatialP85 || +#endif (p84FusedMusic_ && p83Mode_==p83::Mode::MusicBedP82)) && room_.preparedProfile()==SonKuReflectionProfile::SixSurfaceKemarResearch){ // One 2x2 FIR graph. Preserve the EXACT P8.2 mixed-channel // foundation while injecting only a bounded high-frequency // measured directional difference into each source HRIR. // Avoid LF480: no invented bass matrix or additional DSP core. +#if defined(SONKU_P85_WORLD_COHERENCE_RESEARCH) && SONKU_P85_WORLD_COHERENCE_RESEARCH + // P8.5: common music MID and both virtual speakers are in + // the same head-relative frame. Earlier musical modes remain + // byte-identical; only mode 4 uses this yaw-coherent anchor. + interpolate(centerTarget_,p83Mode_==p83::Mode::MusicSpatialP85 + ?static_cast(p83::toHead(static_cast(degrees_),p83HeadYaw_)) + :degrees_); +#else interpolate(centerTarget_,degrees_); +#endif const auto positions=p83::stereo(static_cast(degrees_), settings_.stereoSpreadDegrees,p83HeadYaw_); interpolate(targets_[0],positions.leftHead); diff --git a/site/preview-v2/assets/mixer-native-sonku.js b/site/preview-v2/assets/mixer-native-sonku.js index c2cf4deb5..77feefb6e 100644 --- a/site/preview-v2/assets/mixer-native-sonku.js +++ b/site/preview-v2/assets/mixer-native-sonku.js @@ -53,7 +53,7 @@ const valid=s=>s && Number.isFinite(s.startAzimuthDegrees) && 1.45+s.sourceDistanceMeters*Math.sin(s.directElevationDegrees*Math.PI/180)<= roomHeights[s.spacePreset]-.5)) && (s.renderMode===undefined || ( - Number.isInteger(s.renderMode)&&s.renderMode>=0&&s.renderMode<=3 && + Number.isInteger(s.renderMode)&&s.renderMode>=0&&s.renderMode<=4 && typeof s.musicCompatibleLowFrequency==="boolean" && Number.isFinite(s.headYawDegrees)&&Math.abs(s.headYawDegrees)<=360 && (s.renderMode!==2 || (s.stereoSpreadDegrees>=20&&s.stereoSpreadDegrees<=120)))); @@ -187,7 +187,7 @@ const depthLayers={far:$("skFarSources"),near:$("skNearSources")}; const mount=()=>{if(!root.isConnected)document.body.append(root)}; if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",mount,{once:true});else mount(); let current=null,accepted=defaults(),draft=defaults(),pending=null,latest=null, - xyzCapable=false,p83Capable=false,p84Capable=false,musicSafeStereo=false,p8TransparentBass=false,p82MultibandRoom=false, + xyzCapable=false,p83Capable=false,p84Capable=false,p85Capable=false,musicSafeStereo=false,p8TransparentBass=false,p82MultibandRoom=false, readId="",readSentAt=0,seq=1,clock=null,frame=null,observed=0,observedAt=0, drag=null,dialDrag=null,rangeEdits=new Set(),gestureStart=new Map(), visualPhase=0,visualAt=0,liveTimer=null,lastLiveAt=0; @@ -207,7 +207,13 @@ function render(){ const row=$("skRenderRow");row.hidden=!(p83Capable||p84Capable); if(p83Capable||p84Capable){ const picker=$("skRenderMode"); - if(p84Capable && picker.dataset.nativeModeSet!=="p84"){ + if(p85Capable && picker.dataset.nativeModeSet!=="p85"){ + picker.innerHTML=''+ + ''+ + ''; + picker.dataset.nativeModeSet="p85"; + root.querySelector(".sk-render-label").textContent="RENDER MODE · P8.5 HEADPHONE FAT"; + }else if(!p85Capable && p84Capable && picker.dataset.nativeModeSet!=="p84"){ picker.innerHTML=''+ ''; picker.dataset.nativeModeSet="p84"; @@ -220,7 +226,8 @@ function render(){ picker.dataset.nativeModeSet="p83"; root.querySelector(".sk-render-label").textContent="RENDER MODE · P8.3 TEST"; } - const v=p84Capable?(s.renderMode===3?"clarity":"music"): + const v=p85Capable?(s.renderMode===4?"coherence":s.renderMode===3?"clarity":"music"): + p84Capable?(s.renderMode===3?"clarity":"music"): s.renderMode===1?"mono":s.renderMode===2? (s.musicCompatibleLowFrequency?"musiclf":"physical"):"music"; $("skRenderMode").value=v; @@ -269,7 +276,9 @@ function render(){ if(!rangeEdits.has("skElevation"))elevation.value=String(s.directElevationDegrees); $("skElevationValue").textContent=s.directElevationDegrees.toFixed(1)+"°"; } - root.querySelector(".sk-stage-caption").textContent=p84Capable&&s.renderMode===3? + root.querySelector(".sk-stage-caption").textContent=p85Capable&&s.renderMode===4? + "P8.5 WORLD-LOCKED MUSIC MID · EXPERIMENT · HEADPHONE FAT REQUIRED": + p84Capable&&s.renderMode===3? "P8.4 FUSED HRIR · MUSIC-FIRST RESEARCH · NOT DEARVR QUALIFIED": p83Capable&&s.renderMode===2? (s.musicCompatibleLowFrequency?"P8.3 MUSIC LF480 · SOURCE-POSITIONED COMPROMISE": @@ -300,7 +309,8 @@ function render(){ // redrawn at 60 Hz. The native audio callback remains the time authority. drawSpeakers(); $("skMode").textContent=native()?(context()? - (p84Capable&&s.renderMode===3?"NATIVE P8.4 MUSIC FUSION · TEST": + (p85Capable&&s.renderMode===4?"NATIVE P8.5 WORLD COHERENCE · TEST": + p84Capable&&s.renderMode===3?"NATIVE P8.4 MUSIC FUSION · TEST": p83Capable&&s.renderMode!==0?"NATIVE P8.3 SPEAKERS · RESEARCH": p82MultibandRoom?"NATIVE P8.2 ROOM · RESEARCH": p8TransparentBass?"NATIVE P8 ACOUSTICS · RESEARCH": @@ -446,7 +456,7 @@ backend()?.addEventListener?.("arMixBuiltinSonKuSnapshot",r=>{ String(r.deviceEpoch)!==String(c.deviceEpoch)|| String(r.graphRevision)!==String(c.graphRevision))return; const measured=(r.schemaVersion===3 || r.schemaVersion===4 || - r.schemaVersion===5) && + r.schemaVersion===5 || r.schemaVersion===6) && Number.isFinite(r.settings?.directElevationDegrees); if(r.schemaVersion!==2&&!measured)return; const incoming=normalizeSettings(r.settings); @@ -458,9 +468,11 @@ backend()?.addEventListener?.("arMixBuiltinSonKuSnapshot",r=>{ Number.isInteger(incoming.renderMode) && typeof incoming.musicCompatibleLowFrequency==="boolean" && Number.isFinite(incoming.headYawDegrees); - p84Capable=r.schemaVersion===5 && r.p84MusicFusion===true && + p85Capable=r.schemaVersion===6 && r.p85AcousticCoherence===true; + p84Capable=(r.schemaVersion===5 || p85Capable) && r.p84MusicFusion===true && Number.isInteger(incoming.renderMode) && - (incoming.renderMode===0||incoming.renderMode===3) && + (incoming.renderMode===0||incoming.renderMode===3|| + (p85Capable&&incoming.renderMode===4)) && typeof incoming.musicCompatibleLowFrequency==="boolean" && incoming.musicCompatibleLowFrequency===false && Number.isFinite(incoming.headYawDegrees); @@ -494,7 +506,7 @@ backend()?.addEventListener?.("arMixBuiltinSonKuSnapshot",r=>{ } render(); }); -$("skClose").addEventListener("click",()=>{root.hidden=true;current=null;xyzCapable=false;musicSafeStereo=false;p8TransparentBass=false;p82MultibandRoom=false; +$("skClose").addEventListener("click",()=>{root.hidden=true;current=null;xyzCapable=false;p85Capable=false;musicSafeStereo=false;p8TransparentBass=false;p82MultibandRoom=false; cancelLiveTimer();pending=null;latest=null;readId="";readSentAt=0;dialDrag=null; drag=null;rangeEdits.clear();gestureStart.clear();lastLiveAt=0; if(clock!==null){clearInterval(clock);clock=null;} @@ -502,10 +514,12 @@ $("skClose").addEventListener("click",()=>{root.hidden=true;current=null;xyzCapa $("skRenderMode").addEventListener("change",()=>{ if(!(p83Capable||p84Capable))return; const v=$("skRenderMode").value; - const mode=p84Capable?(v==="clarity"?3:0): + const mode=p85Capable?(v==="coherence"?4:v==="clarity"?3:0): + p84Capable?(v==="clarity"?3:0): v==="mono"?1:v==="physical"||v==="musiclf"?2:0; const scene={...draft,renderMode:mode,musicCompatibleLowFrequency:v==="musiclf"}; - if(mode!==0){ + // Mode changes in v6 must not reset the owner scene, yaw or motion. + if(mode!==0 && !p85Capable){ scene.moving=false; scene.startAzimuthDegrees=0; if(mode===2 && (scene.stereoSpreadDegrees<20 || @@ -666,7 +680,7 @@ const api={ cancelLiveTimer();pending=null;latest=null;readId="";readSentAt=0;dialDrag=null; observedAt=0;visualAt=0;visualPhase=0;lastLiveAt=0; drag=null;rangeEdits.clear();gestureStart.clear(); - accepted=defaults();draft=defaults();xyzCapable=false;p83Capable=false;p84Capable=false;musicSafeStereo=false;p8TransparentBass=false; + accepted=defaults();draft=defaults();xyzCapable=false;p83Capable=false;p84Capable=false,p85Capable=false;musicSafeStereo=false;p8TransparentBass=false; current={track,slot,instanceId:null}; const s=snapshot(),id=window.__ARMIX_NATIVE_M2__?.nativeIdFor?.(track); const fx=s?.graph?.channels?.find(x=>x.id===id)?.inserts?.[slot]; diff --git a/src/Main.cpp b/src/Main.cpp index 443330ccf..13593ed95 100644 --- a/src/Main.cpp +++ b/src/Main.cpp @@ -3046,7 +3046,13 @@ class ConsoleWindow final : public juce::DocumentWindow, private juce::Timer, pr armix::sonku::SonKuReflectionProfile::SixSurfaceKemarResearch) reply->setProperty("p8TransparentBass",true); #endif -#if defined(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT +#if defined(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT + if(processor && processor->preparedReflectionProfile()== + armix::sonku::SonKuReflectionProfile::SixSurfaceKemarResearch) { + reply->setProperty("p84MusicFusion",true); + reply->setProperty("p85AcousticCoherence",true); + } +#elif defined(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT if(processor && processor->preparedReflectionProfile()== armix::sonku::SonKuReflectionProfile::SixSurfaceKemarResearch) reply->setProperty("p84MusicFusion",true); diff --git a/src/SonKuNativeBridgeContract.h b/src/SonKuNativeBridgeContract.h index c1f7beff6..4eff284a3 100644 --- a/src/SonKuNativeBridgeContract.h +++ b/src/SonKuNativeBridgeContract.h @@ -8,7 +8,9 @@ #include namespace armix::builtin_fx::sonku_bridge { inline constexpr int schemaVersion() noexcept { -#if defined(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT +#if defined(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT + return 6; +#elif defined(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT return 5; #elif defined(ARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT return 4; @@ -81,7 +83,11 @@ inline bool decodeSettings(const juce::var& values,armix::sonku::Settings& out) #if defined(ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT // Rejected P8.3 physical/mono path is not an exposed option in // the P8.4 research binary. A/B is only P8.2 golden vs fused. +#if defined(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) && ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT + if(proposed.renderMode!=0 && proposed.renderMode!=3 && proposed.renderMode!=4)return false; +#else if(proposed.renderMode!=0 && proposed.renderMode!=3)return false; +#endif if(proposed.musicCompatibleLowFrequency) return false; // P8.3 LF480 is forbidden throughout native v5. #endif From c0c40c55b35c1e845f772db941d286745fd761f8 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 15 Nov 2026 07:37:05 +0700 Subject: [PATCH 2/7] test(sonku): assert exact P8.4 musical parity and P8.5 world-head yaw correctness --- tests/sonku_p85_world_locked_source_test.cpp | 87 ++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 tests/sonku_p85_world_locked_source_test.cpp diff --git a/tests/sonku_p85_world_locked_source_test.cpp b/tests/sonku_p85_world_locked_source_test.cpp new file mode 100644 index 000000000..151bcfa42 --- /dev/null +++ b/tests/sonku_p85_world_locked_source_test.cpp @@ -0,0 +1,87 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// Source-native PCM proof for SonKu P8.5; NOT proof of headphone perception. +#if defined(NDEBUG) +#undef NDEBUG +#endif +#include "../engine/builtin_fx/sonku/SonKuSpatialCore.h" +#include +#include +#include +#include +#include +#include +using armix::sonku::SonKuSpatialCore; +using armix::sonku::SonKuReflectionProfile; +using armix::sonku::Settings; +struct Audio {std::vector l,r;}; +static Audio render(int mode,int rate,bool room,int block,float world,float yaw,bool antiphase=false) { + constexpr int frames=8192; + auto core=std::make_unique(); + assert(core->prepare(rate,SonKuReflectionProfile::SixSurfaceKemarResearch)); + Settings s{};s.moving=false;s.startAzimuthDegrees=world;s.headYawDegrees=yaw; + s.stereoSpreadDegrees=60.f;s.spatialMix=1.f;s.outputTrim=.75f; + s.spacePreset=room?1:0;s.sourceDistanceMeters=1.6f;s.roomAmount=.55f;s.ambience=.3f; + s.musicCompatibleLowFrequency=false;s.renderMode=mode; + assert(core->setSettings(s)); + Audio a{std::vector(frames),std::vector(frames)}; + for(int i=0;i(i)/rate; + const float mid=.10f*std::sin(6.283185307179586f*83.f*t) + +.05f*std::sin(6.283185307179586f*460.f*t); + const float side=.045f*std::sin(6.283185307179586f*1710.f*t); + const float impulse=(i==20)?.16f:0.f; + a.l[i]=mid+side+impulse; + a.r[i]=antiphase?(-mid-side-impulse):mid-side+impulse; + } + for(int i=0;iprocess(a.l.data()+i,a.r.data()+i,std::min(frames-i,block)); + return a; +} +static double energy(const Audio& a) { + double e=0; + for(std::size_t i=0;i(a.l[i])*a.l[i]+static_cast(a.r[i])*a.r[i]; + } + return e; +} +static double diff(const Audio& a,const Audio& b) { + assert(a.l.size()==b.l.size()); + double e=0; + for(std::size_t i=0;i.01); + assert(diff(p84,p85)==0.); // music must be EXACT at neutral yaw + assert(diff(p85,sliced)==0.); + } + const auto yaw90=render(4,rate,room,128,0.f,90.f); + const auto yaw90sliced=render(4,rate,room,64,0.f,90.f); + assert(diff(yaw90,yaw90sliced)==0.); + assert(energy(yaw90)>.01); + if(!room) { + // At world 180 and listener yaw 180 the effective HRTF is FRONT. + // P8.4 had used world 180 as the MID HRIR (wrong frame). + const auto front=render(3,rate,false,128,0.f,0.f); + const auto corrected=render(4,rate,false,128,180.f,180.f); + const auto legacy=render(3,rate,false,128,180.f,180.f); + assert(diff(front,corrected)==0.); + assert(diff(legacy,corrected)>1.e-7); + std::printf("P85_WORLD_LOCK,rate=%d,wrong_frame_energy=%.9f,corrected=%.9f\n", + rate,diff(legacy,front),diff(corrected,front)); + } + std::printf("P85_PCM,rate=%d,room=%d,P84_NEUTRAL_BYTE_PARITY=PASS,64_128=PASS\n", + rate,room?1:0); + } + std::puts("PASS P85 WORLD LOCK: real native MID yaw, P84 neutrality, antiphase and chunk parity"); +} From 0b47baf25b1b6e580813ce164fd9323ddc040d46 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 15 Nov 2026 07:37:19 +0700 Subject: [PATCH 3/7] test(sonku): native JUCE v6 PCM ACK, session compatibility and rejected-mode veto --- tests/sonku_p85_native_juce_v6_test.cpp | 206 ++++++++++++++++++++++++ 1 file changed, 206 insertions(+) create mode 100644 tests/sonku_p85_native_juce_v6_test.cpp diff --git a/tests/sonku_p85_native_juce_v6_test.cpp b/tests/sonku_p85_native_juce_v6_test.cpp new file mode 100644 index 000000000..ce751e651 --- /dev/null +++ b/tests/sonku_p85_native_juce_v6_test.cpp @@ -0,0 +1,206 @@ +// SPDX-License-Identifier: AGPL-3.0-only +// REAL native Windows JUCE v6 SonKu P8.4 headphone research: +// P8.2 -> native queued v6 -> fading -> AUDIO APPLIED ACK -> readback, +// v1..v6 .smix state, old v4 rejected physical rollback and no extra graph. +#if defined(NDEBUG) +#undef NDEBUG +#endif +#if !defined(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) || !ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT +#error Native JUCE v6 test requires explicit private P8.4 research build +#endif +#include "../engine/builtin_fx/SonKuSpatialProcessor.h" +#include "../src/SonKuNativeBridgeContract.h" +#include +#include +#include +#include +#include +using armix::builtin_fx::SonKuSpatialProcessor; +using armix::sonku::Settings; +using namespace armix::builtin_fx::sonku_bridge; +static constexpr float pi=3.14159265358979323846f; +static double render(SonKuSpatialProcessor& fx,int sampleOffset) { + juce::AudioBuffer pcm(2,128); + juce::MidiBuffer midi; + for(int i=0;i<128;++i){ + const float t=static_cast(sampleOffset+i)/48000.f; + const float main=.14f*std::sin(2*pi*311*t)+.08f*std::sin(2*pi*719*t); + const float side=.08f*std::sin(2*pi*1703*t); + pcm.setSample(0,i,main+side); + pcm.setSample(1,i,main-side); + } + fx.processBlock(pcm,midi); + double e=0; + for(int i=0;i<128;++i){ + const auto L=pcm.getSample(0,i),R=pcm.getSample(1,i); + assert(std::isfinite(L)&&std::isfinite(R)); + assert(std::abs(L)<1.f&&std::abs(R)<1.f); + e+=L*L+R*R; + } + return e; +} +static void complete(SonKuSpatialProcessor& fx,std::uint64_t id,int seed) { + SonKuSpatialProcessor::Completion ack{}; + bool ok=false; + for(int n=0;n<36;++n){ + render(fx,(seed+n)*128); + if(fx.pollCompletion(ack)){ + assert(ack.requestId==id && ack.applied); + ok=true;break; + } + } + assert(ok && "P85 must ACK only after native PCM applies settings"); + for(int n=0;n<20;++n) render(fx,(seed+40+n)*128); + assert(fx.stateSnapshotQuiescent()); +} +static juce::MemoryBlock legacy(int version,int oldMode=2){ + juce::MemoryBlock bytes; + { + juce::MemoryOutputStream o(bytes,false); + o.writeInt(0x534f4e4b);o.writeInt(version); + o.writeFloat(0.f);o.writeFloat(12.f);o.writeFloat(60.f); + o.writeFloat(1.f);o.writeFloat(.75f); + o.writeByte(0);o.writeByte(1); + if(version>=2){ + o.writeInt(1);o.writeFloat(1.6f);o.writeFloat(.55f); + o.writeFloat(.30f); + } + if(version>=3)o.writeFloat(0.f); + if(version>=4){ + o.writeInt(oldMode);o.writeByte(version==5?0:1);o.writeFloat(0.f); + } + } // MemoryOutputStream must flush byte count before asserting the block. + assert(bytes.getSize()==static_cast( + version==1?30:version==2?46:version==3?50:59)); + return bytes; +} +int main(){ + static_assert(schemaVersion()==6); + auto fx=std::make_unique(); + fx->prepareToPlay(48000.,128); + assert(fx->isReady()); + assert(fx->preparedReflectionProfile()== + armix::sonku::SonKuReflectionProfile::SixSurfaceKemarResearch); + fx->sealForRealtime(); + Settings s=fx->acceptedSettings(); + assert(s.renderMode==0); + s.moving=false;s.startAzimuthDegrees=0.f; + s.stereoSpreadDegrees=60.f;s.spatialMix=1.f;s.outputTrim=.75f; + s.spacePreset=1;s.sourceDistanceMeters=1.6f;s.roomAmount=.55f;s.ambience=.3f; + s.headYawDegrees=0.f;s.musicCompatibleLowFrequency=false;s.renderMode=4; + auto json=acceptedSettings(s); + Settings decoded{}; + assert(decodeSettings(json,decoded)&&decoded.renderMode==4); + for(int rejected:{-1,1,2,5,63}){ + auto bad=acceptedSettings(s); + bad.getDynamicObject()->setProperty("renderMode",rejected); + assert(!decodeSettings(bad,decoded)); + } + auto bad=acceptedSettings(s); + bad.getDynamicObject()->setProperty("musicCompatibleLowFrequency",true); + assert(!decodeSettings(bad,decoded)); + bad=acceptedSettings(s); + bad.getDynamicObject()->setProperty("headYawDegrees","invalid"); + assert(!decodeSettings(bad,decoded)); + assert(fx->queueSettings(s,801)); + SonKuSpatialProcessor::Completion ack{}; + assert(!fx->pollCompletion(ack)); + render(*fx,0); + assert(!fx->pollCompletion(ack)); + assert(!fx->stateSnapshotQuiescent()); + assert(fx->acceptedSettings().renderMode==0); + complete(*fx,801,1); + assert(fx->acceptedSettings().renderMode==4); + juce::MemoryBlock snapshot; + fx->getStateInformation(snapshot); + assert(snapshot.getSize()==59); + juce::MemoryInputStream input(snapshot.getData(),snapshot.getSize(),false); + assert(input.readInt()==0x534f4e4b&&input.readInt()==6); + auto restored=std::make_unique(); + restored->prepareToPlay(44100.,128); + assert(restored->restoreUnpublishedState( + snapshot.getData(),static_cast(snapshot.getSize()))); + assert(restored->acceptedSettings().renderMode==4); + restored->prepareToPlay(48000.,256); + assert(restored->isReady() && restored->acceptedSettings().renderMode==4); + // Actual direct FIR must distinguish P8.4 from P8.2 without double engine. + auto golden=std::make_unique(); + golden->prepareToPlay(48000.,128); + auto g=s;g.renderMode=0; + assert(golden->queueSettings(g,811)); + golden->consumeRealtimeEdits(); + assert(golden->pollCompletion(ack)&&ack.applied&&ack.requestId==811); + double reference=0,fused=0; + for(int n=0;n<50;++n){ + reference+=render(*golden,(n+200)*128); + fused+=render(*restored,(n+200)*128); + } + assert(reference>0.1 && fused>0.1); + assert(std::abs(fused-reference)>0.0002); + const double relativeDb=10.*std::log10(fused/reference); + assert(std::abs(relativeDb)<1.5); + // Audio-thread head-yaw change is a separate accepted v6 transaction. + s.headYawDegrees=60.f; + assert(fx->queueSettings(s,802)); + complete(*fx,802,400); + assert(fx->acceptedSettings().renderMode==4); + assert(fx->acceptedSettings().headYawDegrees==60.f); + s.renderMode=0;s.headYawDegrees=0.f; + assert(fx->queueSettings(s,803)); + complete(*fx,803,480); + assert(fx->acceptedSettings().renderMode==0); + // Unpublished workspace has no PCM clock: edits ACK without fade. + auto offline=std::make_unique(); + offline->prepareToPlay(48000.,128); + s.renderMode=4; + assert(offline->queueSettings(s,901)); + offline->consumeRealtimeEdits(); + assert(offline->pollCompletion(ack)&&ack.applied&&ack.requestId==901); + assert(offline->acceptedSettings().renderMode==4); + assert(offline->stateSnapshotQuiescent()); + // Old v4 SpeakerPhysical and music-LF480 are REJECTED acoustically. + // When migrated into a v6 research binary, they explicitly fall back P8.2. + // Backward-compatible v5 P8.4 session must keep exact mode 3. + { + const auto v5=legacy(5,3); + auto p84=std::make_unique(); + p84->prepareToPlay(48000.,128); + assert(p84->restoreUnpublishedState(v5.getData(),static_cast(v5.getSize()))); + assert(p84->acceptedSettings().renderMode==3); + } + for(int version:{1,2,3,4}){ + const auto old=legacy(version); + auto dest=std::make_unique(); + dest->prepareToPlay(48000.,128); + assert(dest->restoreUnpublishedState(old.getData(),static_cast(old.getSize()))); + assert(dest->acceptedSettings().renderMode==0); + if(version==4){ + assert(!dest->acceptedSettings().musicCompatibleLowFrequency); + assert(dest->acceptedSettings().headYawDegrees==0.f); + } + } + // Even legacy v4 MusicBed with a stale LF480 toggle must be sanitized + // so the new v6 research UI always discovers truthful P8.4 capability. + const auto v4GoldenWithLf=legacy(4,0); + auto downgrade=std::make_unique(); + downgrade->prepareToPlay(48000.,128); + assert(downgrade->restoreUnpublishedState( + v4GoldenWithLf.getData(),static_cast(v4GoldenWithLf.getSize()))); + assert(downgrade->acceptedSettings().renderMode==0); + assert(!downgrade->acceptedSettings().musicCompatibleLowFrequency); + auto broken=std::make_unique(); + broken->prepareToPlay(48000.,128); + assert(!broken->restoreUnpublishedState(snapshot.getData(),58)); + juce::MemoryBlock corrupt(snapshot); + auto* ptr=static_cast(corrupt.getData()); + ptr[54]=0xff; // signed JUCE bool, 0xff must never become true + assert(!broken->restoreUnpublishedState(corrupt.getData(),59)); + corrupt=snapshot;ptr=static_cast(corrupt.getData()); + ptr[50]=2;ptr[51]=ptr[52]=ptr[53]=0; // old physical mode in v6 forbidden + assert(!broken->restoreUnpublishedState(corrupt.getData(),59)); + restored->sealForRealtime(); + assert(!restored->restoreUnpublishedState(snapshot.getData(),59)); + std::printf("PASS P85 JUCE v6: audio ACK fade, single native graph A/B, " + "safe v1-v4 migration, v6 59-byte state and device reopen; " + "P85_vs_P82_RMS_dB=%.3f; ASIO/headphone NOT PROVEN\n",relativeDb); +} From a2467c6c9131c7361ba5ab21277b46b6207a2df3 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 15 Nov 2026 07:37:35 +0700 Subject: [PATCH 4/7] build(sonku): add isolated real P8.5 PCM and JUCE v6 CTests --- CMakeLists.txt | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7de6a8e6..96e38e0fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -501,6 +501,46 @@ if(BUILD_TESTING) SONKU_P84_SINGLE_CORE_FUSION_RESEARCH=1) add_test(NAME NativeSonKuP84JuceV5AudioAckLegacySafeRestore COMMAND ARMixSonKuP84NativeTests) + if(ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT) + add_executable(ARMixSonKuP85WorldSourceTests + tests/sonku_p85_world_locked_source_test.cpp) + target_compile_features(ARMixSonKuP85WorldSourceTests PRIVATE cxx_std_20) + target_compile_definitions(ARMixSonKuP85WorldSourceTests PRIVATE + SONKU_P7_MEASURED_ELEVATION_RESEARCH=1 + SONKU_P71_DIRECT_XYZ_RESEARCH=1 + SONKU_P72_NATIVE_XYZ_RT=1 + SONKU_P75_MUSIC_SAFE_RESEARCH=1 + SONKU_P80_TRANSPARENT_BASS_RESEARCH=1 + SONKU_P82_MULTIBAND_ROOM_RESEARCH=1 + SONKU_P83_PHYSICAL_SPEAKER_RESEARCH=1 + SONKU_P84_SINGLE_CORE_FUSION_RESEARCH=1 + SONKU_P85_WORLD_COHERENCE_RESEARCH=1) + add_test(NAME NativeSonKuP85WorldCoherentMidYawSourceAndFidelity + COMMAND ARMixSonKuP85WorldSourceTests) + juce_add_console_app(ARMixSonKuP85NativeTests + PRODUCT_NAME "ArSonMix SonKu P85 Native JUCE v6 Tests") + target_sources(ARMixSonKuP85NativeTests PRIVATE + tests/sonku_p85_native_juce_v6_test.cpp) + target_compile_features(ARMixSonKuP85NativeTests PRIVATE cxx_std_20) + target_link_libraries(ARMixSonKuP85NativeTests PRIVATE + juce::juce_audio_processors juce::juce_recommended_config_flags) + target_compile_definitions(ARMixSonKuP85NativeTests PRIVATE + ARMIX_SONKU_EXPERIMENTAL_NATIVE_XYZ_RT=1 + ARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT=1 + ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT=1 + ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT=1 + SONKU_P7_MEASURED_ELEVATION_RESEARCH=1 + SONKU_P71_DIRECT_XYZ_RESEARCH=1 + SONKU_P72_NATIVE_XYZ_RT=1 + SONKU_P75_MUSIC_SAFE_RESEARCH=1 + SONKU_P80_TRANSPARENT_BASS_RESEARCH=1 + SONKU_P82_MULTIBAND_ROOM_RESEARCH=1 + SONKU_P83_PHYSICAL_SPEAKER_RESEARCH=1 + SONKU_P84_SINGLE_CORE_FUSION_RESEARCH=1 + SONKU_P85_WORLD_COHERENCE_RESEARCH=1) + add_test(NAME NativeSonKuP85JuceV6AudioAckLegacySafeRestore + COMMAND ARMixSonKuP85NativeTests) + endif() endif() endif() endif() From d142d77a4a479c075ec39f7e9ca1583a126aad47 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 15 Nov 2026 07:38:02 +0700 Subject: [PATCH 5/7] docs(sonku): record P8.5 evidence, strict music rollback and headphone FAT criteria --- ...SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md diff --git a/docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md b/docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md new file mode 100644 index 000000000..2bf4e56df --- /dev/null +++ b/docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md @@ -0,0 +1,34 @@ +# 8D-SonKu P8.5 — world/head-coherent music anchor (research only) + +## Field feedback and causal audit + +The owner's Windows P8.4 headphone FAT (`641b4eae`, Actions `43653357348`) rated P8.4 slightly more musical than P8.2 but reported inadequate externalization, with the apparent source in front and above the head. P8.3 was *rejected* due to severe musical collapse; neither P8.3 nor its LF480 matrix is permitted as a native selectable mode in P8.5. + +In actual P8.4 `SonKuSpatialCore::updateKernels`, the common music MID anchor used `interpolate(centerTarget_, degrees_)`. Meanwhile its left/right virtual speaker HRIR used `p83::stereo(degrees_, spread, headYaw)`, and its early reflection paths used headYaw. This was a **verified reference-frame mismatch**, not proof that elevation or ceiling reflections are the perceptual cause. Strong head-locked SIDE, late FDN directionlessness, generic MIT KEMAR HRTF and actual headphone response remain competing factors. The owner FAT at yaw180/spread180/28.8m/reflections100% is not a neutral diagnostic. + +## Source implementation + +- `ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT` and `SONKU_P85_WORLD_COHERENCE_RESEARCH`, both default OFF in production. +- Mode 4 corrects **only** the P8.4 common MID anchor to `p83::toHead(worldAzimuth,headYaw)`; the two speaker HRIR and early reflections already use world/head separation. +- One authoritative native JUCE `SonKuSpatialCore`. The identical P8.4 fused FIR, bass crossover, music SIDE preservation, tonal correction, reflection gains and reverb remain active. No second engine, no unlicensed BRIR, no extra per-sample FIR, no dynamic allocation in the callback. +- Modes 0=P8.2, 3=P8.4 and 4=P8.5 are selectable in exact native schema-v6 capability-gated UI. Native state v6 remains the existing 59-byte layout; v1–v5 restore supported with explicit old P8.3 mode migration to 0. Real audio-side mode switch still uses 12ms fade-out/fade-in and ACK/readback, not browser-only labels. +- In v6 research UI, changing mode does not overwrite scene yaw, azimuth, distance, ROOM or motion parameters. Production/offline P8.2 and P8.4 processing code is unchanged. +- A v6 research branch is still stacked on the older P8.4 *research* code, which includes P8.3-era dormant implementation. **Do not merge this branch to main or publish until a clean P8.2-based extraction after physical FAT.** + +## Non-negotiable waveform gates + +Native source tests require: P8.4 and P8.5 **bit-identical** on neutral yaw0 (ROOM OFF/ON and correlated/anti-phase); block 64/128 parity; full direct PCM at world180+yaw180 in P8.5 identical to world0+yaw0 in P8.4 (ROOM OFF); and distinguishable erroneous P8.4 center transfer for the same world180+yaw180 test. JUCE v6 must separately confirm mode-4 SPSC queued audio-applied ACK, state v6, v1–v5 restoration and invalid old modes. The Windows field workflow verifies executable, embedded GUI files, full source SHA and portable ZIP. + +These gates can verify PCM geometry without establishing that headphones produce out-of-head localization. Do not relax checks after failure. + +## Headphone FAT + +Use identical song/headphones/Windows level, disable downstream spatial enhancements, and level-match the actual recorded output. First compare yaw0, 60° stereo, STATIC, 1.6–3m with ROOM OFF, then ROOM ON. **P8.4 and P8.5 yaw0 are intentionally identical**; improvement should not be claimed in that case. + +Then independently try yaw ±30/±60/±90/180 and angle 60°/180°, with FRONT, LEFT, RIGHT and REAR world positions, followed by the owner LARGE/100%-reflections case. Score bass, vocal openness, transient, fatigue, front/back and perceived elevation, source distance and stereo focus separately. Choose P8.2/P8.4 immediately if P8.5 sounds worse. True wide-angle world-locked SIDE and listener/headphone personalization are future separately measured hypotheses; **do not solve them using arbitrary crossfeed or aggressive side removal**. + +References (research only, no proprietary assets copied): [Sennheiser dearVR Clarity](https://help.sennheiser.com/hc/en-us/articles/27424692616594-How-to-produce-natural-immersive-music-with-the-CLARITY-modul-of-dearVR-PRO2), [SOFA / AES69](https://www.sofacoustics.org/), [2025 sound externalization and non-individual HRTFs](https://pubmed.ncbi.nlm.nih.gov/40748294/). + +## Release veto + +No claimed dearVR parity, no public release or merge, no physical ASIO/XRUN qualification, and no assertion of real externalization without the owner's headphone FAT. P8.4 continues as the current perceptual golden and P8.2 as fallback. From 435fcfb0da8fa5e22b51825868025faf237bc7d8 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 15 Nov 2026 07:39:12 +0700 Subject: [PATCH 6/7] ci(sonku): P8.5 fail-fast native PCM and exact-SHA Windows portable FAT qualification --- .github/workflows/sonku-p85-windows-field.yml | 684 ++++++++++++++++++ 1 file changed, 684 insertions(+) create mode 100644 .github/workflows/sonku-p85-windows-field.yml diff --git a/.github/workflows/sonku-p85-windows-field.yml b/.github/workflows/sonku-p85-windows-field.yml new file mode 100644 index 000000000..8a046c328 --- /dev/null +++ b/.github/workflows/sonku-p85-windows-field.yml @@ -0,0 +1,684 @@ +name: SonKu P8.5 world-coherence native mixer portable FAT x64 +# Private JUCE app; no public release. Real v5 P8.2/P8.4 A/B. +on: + pull_request: + paths: + - '.github/workflows/sonku-p85-windows-field.yml' + workflow_dispatch: +permissions: + contents: read +concurrency: + group: sonku-p85-field-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true +jobs: + preflight: + name: Isolated fast PCM and GUI preflight + runs-on: ubuntu-latest + timeout-minutes: 8 + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} + persist-credentials: false + - name: Strict P8.4 PCM timbre and spatial source qualification + run: | + set -euo pipefail + FLAGS="-std=c++20 -O2 -Wall -Wextra -Werror -pedantic -DSONKU_P7_MEASURED_ELEVATION_RESEARCH=1 -DSONKU_P71_DIRECT_XYZ_RESEARCH=1 -DSONKU_P72_NATIVE_XYZ_RT=1 -DSONKU_P75_MUSIC_SAFE_RESEARCH=1 -DSONKU_P80_TRANSPARENT_BASS_RESEARCH=1 -DSONKU_P82_MULTIBAND_ROOM_RESEARCH=1 -DSONKU_P83_PHYSICAL_SPEAKER_RESEARCH=1 -DSONKU_P84_SINGLE_CORE_FUSION_RESEARCH=1" + g++ $FLAGS tests/sonku_p84_fused_single_core_test.cpp -o /tmp/p84-native + /tmp/p84-native | tee /tmp/p84-source.log + grep -q '^PASS P84 SINGLE CORE:' /tmp/p84-source.log + g++ $FLAGS tests/sonku_p84_spatial_impulse_evidence_test.cpp -o /tmp/p84-spatial + /tmp/p84-spatial | tee /tmp/p84-spatial.log + grep -q '^PASS P84 SPATIAL SOURCE:' /tmp/p84-spatial.log + g++ $FLAGS tests/sonku_p84_live_v5_modes_source_test.cpp -o /tmp/p84-live-mode + /tmp/p84-live-mode | tee /tmp/p84-live-mode.log + grep -q '^PASS P84 V5 NATIVE SOURCE:' /tmp/p84-live-mode.log + g++ $FLAGS -DSONKU_P85_WORLD_COHERENCE_RESEARCH=1 tests/sonku_p85_world_locked_source_test.cpp -o /tmp/p85-source + /tmp/p85-source | tee /tmp/p85-source.log + grep -q '^PASS P85 WORLD LOCK:' /tmp/p85-source.log + - name: Native JS and source GUI capability checks + run: | + set -euo pipefail + node --check site/preview-v2/assets/mixer-native-sonku.js + node tests/sonku_p73_gui_contract_test.js + grep -q "'FIELD_PREVIEW_FULL_CTEST_NOT_RUN'" scripts/m3e_fat_evidence_gate.mjs + python -m unittest discover -s tests -p native_peq_assembly_test.py + - name: 44.1 and 48 kHz prepared PCM source regression + run: | + set -euo pipefail + g++ -std=c++20 -O2 -Wall -Wextra -Werror -pedantic \ + -DSONKU_P7_MEASURED_ELEVATION_RESEARCH=1 \ + -DSONKU_P71_DIRECT_XYZ_RESEARCH=1 \ + -DSONKU_P72_NATIVE_XYZ_RT=1 \ + tests/sonku_p72_realtime_xyz_test.cpp -o /tmp/sonku-p75-pcm + /tmp/sonku-p75-pcm + g++ -std=c++20 -O2 -Wall -Wextra -Werror -pedantic \ + -DSONKU_P7_MEASURED_ELEVATION_RESEARCH=1 \ + -DSONKU_P71_DIRECT_XYZ_RESEARCH=1 \ + -DSONKU_P72_NATIVE_XYZ_RT=1 \ + -DSONKU_P75_MUSIC_SAFE_RESEARCH=1 \ + tests/sonku_p75_stereo_integrity_test.cpp -o /tmp/sonku-p75-music + /tmp/sonku-p75-music + g++ -std=c++20 -O2 -Wall -Wextra -Werror -pedantic \ + -DSONKU_P7_MEASURED_ELEVATION_RESEARCH=1 \ + -DSONKU_P71_DIRECT_XYZ_RESEARCH=1 \ + -DSONKU_P72_NATIVE_XYZ_RT=1 \ + -DSONKU_P75_MUSIC_SAFE_RESEARCH=1 \ + -DSONKU_P80_TRANSPARENT_BASS_RESEARCH=1 \ + tests/sonku_p80_tonal_room_evidence_test.cpp -o /tmp/sonku-p80-evidence + /tmp/sonku-p80-evidence | tee /tmp/sonku-p80-acoustic-evidence.csv + grep -q '^PASS P8:' /tmp/sonku-p80-acoustic-evidence.csv + g++ -std=c++20 -O2 -Wall -Wextra -Werror -pedantic \ + -DSONKU_P7_MEASURED_ELEVATION_RESEARCH=1 \ + -DSONKU_P71_DIRECT_XYZ_RESEARCH=1 \ + -DSONKU_P72_NATIVE_XYZ_RT=1 \ + -DSONKU_P75_MUSIC_SAFE_RESEARCH=1 \ + -DSONKU_P80_TRANSPARENT_BASS_RESEARCH=1 \ + -DSONKU_P82_MULTIBAND_ROOM_RESEARCH=1 \ + tests/sonku_p82_sixsurface_multiband_room_test.cpp -o /tmp/sonku-p82-room + /tmp/sonku-p82-room | tee /tmp/sonku-p82-room-evidence.csv + grep -q '^PASS P8.2:' /tmp/sonku-p82-room-evidence.csv + windows-field: + name: Actual full Windows JUCE executable and verified portable field ZIP + needs: preflight + runs-on: windows-2022 + timeout-minutes: 55 + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha || github.sha }} + persist-credentials: false + - name: Verify immutable PR head and physical candidate identity + shell: pwsh + env: + EXPECTED_SHA: ${{ github.event.pull_request.head.sha || github.sha }} + run: | + $actual = (& git rev-parse HEAD).Trim() + if ($LASTEXITCODE -ne 0 -or $actual -ne $env:EXPECTED_SHA -or $actual -notmatch '^[0-9a-f]{40}$') { + throw "SONKU_P83_SOURCE_MISMATCH:$actual" + } + Write-Host "SONKU_P84_EXACT_SOURCE=$actual" + - uses: actions/checkout@v4 + with: + repository: juce-framework/JUCE + ref: 8.0.15 + path: third_party/JUCE + persist-credentials: false + - name: Obtain pinned WebView2 compilation SDK + shell: pwsh + run: | + nuget install Microsoft.Web.WebView2 -Version 1.0.3485.44 -OutputDirectory .deps -NonInteractive + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Configure full native app with research XYZ explicit ON + shell: pwsh + run: | + cmake -S . -B build -G "Visual Studio 17 2022" -A x64 ` + -DJUCE_ROOT="$env:GITHUB_WORKSPACE/third_party/JUCE" ` + -DJUCE_WEBVIEW2_PACKAGE_LOCATION="$env:GITHUB_WORKSPACE/.deps" ` + -DARMIX_SONKU_EXPERIMENTAL_NATIVE_XYZ_RT=ON ` + -DARMIX_SONKU_EXPERIMENTAL_MUSIC_SAFE=ON ` + -DARMIX_SONKU_EXPERIMENTAL_P8_TRANSPARENT_BASS=ON ` + -DARMIX_SONKU_EXPERIMENTAL_P82_ROOM=ON ` + -DARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT=ON ` + -DARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT=ON ` + -DARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT=ON ` + -DBUILD_TESTING=ON + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $cache = Get-Content -LiteralPath build/CMakeCache.txt -Raw + if ($cache -notmatch 'ARMIX_SONKU_EXPERIMENTAL_NATIVE_XYZ_RT:BOOL=ON' -or + $cache -notmatch 'ARMIX_SONKU_EXPERIMENTAL_MUSIC_SAFE:BOOL=ON' -or + $cache -notmatch 'ARMIX_SONKU_EXPERIMENTAL_P8_TRANSPARENT_BASS:BOOL=ON' -or + $cache -notmatch 'ARMIX_SONKU_EXPERIMENTAL_P82_ROOM:BOOL=ON' -or + $cache -notmatch 'ARMIX_SONKU_EXPERIMENTAL_P83_NATIVE_RT:BOOL=ON' -or + $cache -notmatch 'ARMIX_SONKU_EXPERIMENTAL_P84_NATIVE_RT:BOOL=ON' -or + $cache -notmatch 'ARMIX_SONKU_EXPERIMENTAL_P85_NATIVE_RT:BOOL=ON') { + throw "SONKU_P83_RESEARCH_NOT_ENABLED" + } + $tests = (& ctest --test-dir build -C Release --show-only=json-v1 | Out-String | ConvertFrom-Json) + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $required = @('NativeSonKuP72AtomicXyzLiveEditSource', + 'NativeSonKuP72JuceV3XyzLiveAckV1V2Restore', + 'NativeSonKuSessionV1V2AndAudioAppliedAck', + 'NativeSonKuP75MusicStereoPhaseNoNullAndChunkParity', + 'NativeSonKuP80TransparentBassStereoPhaseAndRoomDiagnostic', + 'NativeSonKuP82SixWallThreeBandRoomTimingDecayAndParity', + 'NativeSonKuP83RealtimeModeSourceAndMusicIntegrity', + 'NativeSonKuP83JuceV4AudioAckLegacyRestoreAndHeadYaw', + 'NativeSonKuP84SingleCoreMusicFidelityAndWorldYaw', + 'NativeSonKuP84JuceV5AudioAckLegacySafeRestore', + 'NativeSonKuP85WorldCoherentMidYawSourceAndFidelity', + 'NativeSonKuP85JuceV6AudioAckLegacySafeRestore') + $available = @($tests.tests | ForEach-Object { $_.name }) + foreach ($test in $required) { + if ($test -notin $available) { throw "SONKU_P82_MISSING_CTEST:$test" } + } + - name: Fail fast — compile and execute real JUCE v5 state + PCM ACK first + shell: pwsh + run: | + cmake --build build --config Release --parallel 2 --target ARMixSonKuP85NativeTests + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + ctest --test-dir build -C Release --output-on-failure -R '^NativeSonKuP85JuceV6AudioAckLegacySafeRestore + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Compile actual ARMixConsole Windows GUI and focused real JUCE tests + shell: pwsh + run: | + cmake --build build --config Release --parallel 2 --target ` + ARMixConsole ARMixSonKuP72SourceTests ARMixSonKuP72NativeTests ARMixSonKuNativeStateTests ARMixSonKuP75MusicIntegrityTests ARMixSonKuP80TonalEvidenceTests ARMixSonKuP82RoomTests ARMixSonKuP83LiveSourceTests ARMixSonKuP83NativeTests ARMixSonKuP84LiveSourceTests ARMixSonKuP84NativeTests ARMixSonKuP85WorldSourceTests ARMixSonKuP85NativeTests + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $exe = 'build/ARMixConsole_artefacts/Release/AR MIX Studio.exe' + if (-not (Test-Path -LiteralPath $exe -PathType Leaf)) { throw "SONKU_P83_NO_GUI_EXE" } + if ((Get-Item -LiteralPath $exe).Length -lt 4MB) { throw "SONKU_P83_WRONG_GUI_TARGET" } + - name: Scoped native XYZ state, callback ACK and legacy restoration + shell: pwsh + run: | + ctest --test-dir build -C Release --output-on-failure ` + -R '^NativeSonKu(P72AtomicXyzLiveEditSource|P72JuceV3XyzLiveAckV1V2Restore|SessionV1V2AndAudioAppliedAck|P75MusicStereoPhaseNoNullAndChunkParity|P80TransparentBassStereoPhaseAndRoomDiagnostic|P82SixWallThreeBandRoomTimingDecayAndParity|P83RealtimeModeSourceAndMusicIntegrity|P83JuceV4AudioAckLegacyRestoreAndHeadYaw|P84SingleCoreMusicFidelityAndWorldYaw|P84JuceV5AudioAckLegacySafeRestore|P85WorldCoherentMidYawSourceAndFidelity|P85JuceV6AudioAckLegacySafeRestore) + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Package real native portable mixer, never an installer + shell: pwsh + run: | + & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Record exact experiment and physical qualification pending + shell: pwsh + run: | + $path = 'dist/BUILD_PROVENANCE.json' + $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json + $sha = (& git rev-parse HEAD).Trim() + if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } + $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' + $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ + enabled = $true + nativeXYZ = $true + musicSafeStereo = $true + p8TransparentBass = $true + p82MultibandRoom = $true + p83NativeSpeakers = $false + p84FusedNative = $true + p85WorldLockedMid = $true + p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') + p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' + p84FusionDifferenceHighpassHz = 750 + p84MeasuredHrirContrast = 0.12 + legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' + p83AudioAppliedAck = $true + p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' + p82RoomBandsHz = @(250,4800) + p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' + p82Rt60StudioSeconds = @(0.717,0.392,0.231) + p82Rt60ChamberSeconds = @(0.933,0.802,0.483) + p82Rt60HallSeconds = @(1.716,1.219,0.650) + p8LowBandCrossoverHz = 220 + musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' + stateSchema = 6 + fullWindowsExecutable = $true + publicRelease = $false + physicalAsioQualified = $false + dearVrPerceptualParityProven = $false + qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' + licenseRedistributionApproval = $false + mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() + fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() + } -Force + $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 + - name: Independent GUI PE, approved resources, provenance and ZIP verification + shell: pwsh + run: | + & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + if (-not $p.sonkuExperiment.enabled -or + -not $p.sonkuExperiment.musicSafeStereo -or + -not $p.sonkuExperiment.p8TransparentBass -or + -not $p.sonkuExperiment.p82MultibandRoom -or + -not $p.sonkuExperiment.p84FusedNative -or + -not $p.sonkuExperiment.p85WorldLockedMid -or + $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { + throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' + } + - name: Include mandatory MIT KEMAR notice and physical FAT guide + shell: pwsh + run: | + # Standard distribution allowlist was verified above. Field-only notice. + Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md + Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + $checks = @{ + 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 + 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 + } + foreach ($item in $checks.GetEnumerator()) { + $file = Join-Path dist $item.Key + if ($item.Value -notmatch '^[0-9a-f]{64}$' -or + -not (Test-Path -LiteralPath $file -PathType Leaf)) { + throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" + } + $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() + if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } + } + if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } + Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' + - uses: actions/upload-artifact@v4 + name: Upload isolated SonKu Windows x64 field candidate + with: + name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} + path: dist/ + if-no-files-found: error + retention-days: 21 + compression-level: 0 + + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Compile actual ARMixConsole Windows GUI and focused real JUCE tests + shell: pwsh + run: | + cmake --build build --config Release --parallel 2 --target ` + ARMixConsole ARMixSonKuP72SourceTests ARMixSonKuP72NativeTests ARMixSonKuNativeStateTests ARMixSonKuP75MusicIntegrityTests ARMixSonKuP80TonalEvidenceTests ARMixSonKuP82RoomTests ARMixSonKuP83LiveSourceTests ARMixSonKuP83NativeTests ARMixSonKuP84LiveSourceTests ARMixSonKuP84NativeTests ARMixSonKuP85WorldSourceTests ARMixSonKuP85NativeTests + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $exe = 'build/ARMixConsole_artefacts/Release/AR MIX Studio.exe' + if (-not (Test-Path -LiteralPath $exe -PathType Leaf)) { throw "SONKU_P83_NO_GUI_EXE" } + if ((Get-Item -LiteralPath $exe).Length -lt 4MB) { throw "SONKU_P83_WRONG_GUI_TARGET" } + - name: Scoped native XYZ state, callback ACK and legacy restoration + shell: pwsh + run: | + ctest --test-dir build -C Release --output-on-failure ` + -R '^NativeSonKu(P72AtomicXyzLiveEditSource|P72JuceV3XyzLiveAckV1V2Restore|SessionV1V2AndAudioAppliedAck|P75MusicStereoPhaseNoNullAndChunkParity|P80TransparentBassStereoPhaseAndRoomDiagnostic|P82SixWallThreeBandRoomTimingDecayAndParity|P83RealtimeModeSourceAndMusicIntegrity|P83JuceV4AudioAckLegacyRestoreAndHeadYaw|P84SingleCoreMusicFidelityAndWorldYaw|P84JuceV5AudioAckLegacySafeRestore)$' + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Package real native portable mixer, never an installer + shell: pwsh + run: | + & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Record exact experiment and physical qualification pending + shell: pwsh + run: | + $path = 'dist/BUILD_PROVENANCE.json' + $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json + $sha = (& git rev-parse HEAD).Trim() + if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } + $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' + $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ + enabled = $true + nativeXYZ = $true + musicSafeStereo = $true + p8TransparentBass = $true + p82MultibandRoom = $true + p83NativeSpeakers = $false + p84FusedNative = $true + p85WorldLockedMid = $true + p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') + p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' + p84FusionDifferenceHighpassHz = 750 + p84MeasuredHrirContrast = 0.12 + legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' + p83AudioAppliedAck = $true + p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' + p82RoomBandsHz = @(250,4800) + p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' + p82Rt60StudioSeconds = @(0.717,0.392,0.231) + p82Rt60ChamberSeconds = @(0.933,0.802,0.483) + p82Rt60HallSeconds = @(1.716,1.219,0.650) + p8LowBandCrossoverHz = 220 + musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' + stateSchema = 6 + fullWindowsExecutable = $true + publicRelease = $false + physicalAsioQualified = $false + dearVrPerceptualParityProven = $false + qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' + licenseRedistributionApproval = $false + mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() + fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() + } -Force + $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 + - name: Independent GUI PE, approved resources, provenance and ZIP verification + shell: pwsh + run: | + & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + if (-not $p.sonkuExperiment.enabled -or + -not $p.sonkuExperiment.musicSafeStereo -or + -not $p.sonkuExperiment.p8TransparentBass -or + -not $p.sonkuExperiment.p82MultibandRoom -or + -not $p.sonkuExperiment.p84FusedNative -or + -not $p.sonkuExperiment.p85WorldLockedMid -or + $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { + throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' + } + - name: Include mandatory MIT KEMAR notice and physical FAT guide + shell: pwsh + run: | + # Standard distribution allowlist was verified above. Field-only notice. + Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md + Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + $checks = @{ + 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 + 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 + } + foreach ($item in $checks.GetEnumerator()) { + $file = Join-Path dist $item.Key + if ($item.Value -notmatch '^[0-9a-f]{64}$' -or + -not (Test-Path -LiteralPath $file -PathType Leaf)) { + throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" + } + $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() + if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } + } + if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } + Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' + - uses: actions/upload-artifact@v4 + name: Upload isolated SonKu Windows x64 field candidate + with: + name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} + path: dist/ + if-no-files-found: error + retention-days: 21 + compression-level: 0 + + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Package real native portable mixer, never an installer + shell: pwsh + run: | + & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Record exact experiment and physical qualification pending + shell: pwsh + run: | + $path = 'dist/BUILD_PROVENANCE.json' + $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json + $sha = (& git rev-parse HEAD).Trim() + if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } + $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' + $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ + enabled = $true + nativeXYZ = $true + musicSafeStereo = $true + p8TransparentBass = $true + p82MultibandRoom = $true + p83NativeSpeakers = $false + p84FusedNative = $true + p85WorldLockedMid = $true + p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') + p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' + p84FusionDifferenceHighpassHz = 750 + p84MeasuredHrirContrast = 0.12 + legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' + p83AudioAppliedAck = $true + p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' + p82RoomBandsHz = @(250,4800) + p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' + p82Rt60StudioSeconds = @(0.717,0.392,0.231) + p82Rt60ChamberSeconds = @(0.933,0.802,0.483) + p82Rt60HallSeconds = @(1.716,1.219,0.650) + p8LowBandCrossoverHz = 220 + musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' + stateSchema = 6 + fullWindowsExecutable = $true + publicRelease = $false + physicalAsioQualified = $false + dearVrPerceptualParityProven = $false + qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' + licenseRedistributionApproval = $false + mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() + fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() + } -Force + $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 + - name: Independent GUI PE, approved resources, provenance and ZIP verification + shell: pwsh + run: | + & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + if (-not $p.sonkuExperiment.enabled -or + -not $p.sonkuExperiment.musicSafeStereo -or + -not $p.sonkuExperiment.p8TransparentBass -or + -not $p.sonkuExperiment.p82MultibandRoom -or + -not $p.sonkuExperiment.p84FusedNative -or + -not $p.sonkuExperiment.p85WorldLockedMid -or + $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { + throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' + } + - name: Include mandatory MIT KEMAR notice and physical FAT guide + shell: pwsh + run: | + # Standard distribution allowlist was verified above. Field-only notice. + Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md + Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + $checks = @{ + 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 + 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 + } + foreach ($item in $checks.GetEnumerator()) { + $file = Join-Path dist $item.Key + if ($item.Value -notmatch '^[0-9a-f]{64}$' -or + -not (Test-Path -LiteralPath $file -PathType Leaf)) { + throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" + } + $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() + if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } + } + if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } + Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' + - uses: actions/upload-artifact@v4 + name: Upload isolated SonKu Windows x64 field candidate + with: + name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} + path: dist/ + if-no-files-found: error + retention-days: 21 + compression-level: 0 + + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Compile actual ARMixConsole Windows GUI and focused real JUCE tests + shell: pwsh + run: | + cmake --build build --config Release --parallel 2 --target ` + ARMixConsole ARMixSonKuP72SourceTests ARMixSonKuP72NativeTests ARMixSonKuNativeStateTests ARMixSonKuP75MusicIntegrityTests ARMixSonKuP80TonalEvidenceTests ARMixSonKuP82RoomTests ARMixSonKuP83LiveSourceTests ARMixSonKuP83NativeTests ARMixSonKuP84LiveSourceTests ARMixSonKuP84NativeTests ARMixSonKuP85WorldSourceTests ARMixSonKuP85NativeTests + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $exe = 'build/ARMixConsole_artefacts/Release/AR MIX Studio.exe' + if (-not (Test-Path -LiteralPath $exe -PathType Leaf)) { throw "SONKU_P83_NO_GUI_EXE" } + if ((Get-Item -LiteralPath $exe).Length -lt 4MB) { throw "SONKU_P83_WRONG_GUI_TARGET" } + - name: Scoped native XYZ state, callback ACK and legacy restoration + shell: pwsh + run: | + ctest --test-dir build -C Release --output-on-failure ` + -R '^NativeSonKu(P72AtomicXyzLiveEditSource|P72JuceV3XyzLiveAckV1V2Restore|SessionV1V2AndAudioAppliedAck|P75MusicStereoPhaseNoNullAndChunkParity|P80TransparentBassStereoPhaseAndRoomDiagnostic|P82SixWallThreeBandRoomTimingDecayAndParity|P83RealtimeModeSourceAndMusicIntegrity|P83JuceV4AudioAckLegacyRestoreAndHeadYaw|P84SingleCoreMusicFidelityAndWorldYaw|P84JuceV5AudioAckLegacySafeRestore|P85WorldCoherentMidYawSourceAndFidelity|P85JuceV6AudioAckLegacySafeRestore) + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Package real native portable mixer, never an installer + shell: pwsh + run: | + & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Record exact experiment and physical qualification pending + shell: pwsh + run: | + $path = 'dist/BUILD_PROVENANCE.json' + $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json + $sha = (& git rev-parse HEAD).Trim() + if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } + $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' + $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ + enabled = $true + nativeXYZ = $true + musicSafeStereo = $true + p8TransparentBass = $true + p82MultibandRoom = $true + p83NativeSpeakers = $false + p84FusedNative = $true + p85WorldLockedMid = $true + p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') + p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' + p84FusionDifferenceHighpassHz = 750 + p84MeasuredHrirContrast = 0.12 + legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' + p83AudioAppliedAck = $true + p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' + p82RoomBandsHz = @(250,4800) + p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' + p82Rt60StudioSeconds = @(0.717,0.392,0.231) + p82Rt60ChamberSeconds = @(0.933,0.802,0.483) + p82Rt60HallSeconds = @(1.716,1.219,0.650) + p8LowBandCrossoverHz = 220 + musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' + stateSchema = 6 + fullWindowsExecutable = $true + publicRelease = $false + physicalAsioQualified = $false + dearVrPerceptualParityProven = $false + qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' + licenseRedistributionApproval = $false + mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() + fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() + } -Force + $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 + - name: Independent GUI PE, approved resources, provenance and ZIP verification + shell: pwsh + run: | + & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + if (-not $p.sonkuExperiment.enabled -or + -not $p.sonkuExperiment.musicSafeStereo -or + -not $p.sonkuExperiment.p8TransparentBass -or + -not $p.sonkuExperiment.p82MultibandRoom -or + -not $p.sonkuExperiment.p84FusedNative -or + -not $p.sonkuExperiment.p85WorldLockedMid -or + $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { + throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' + } + - name: Include mandatory MIT KEMAR notice and physical FAT guide + shell: pwsh + run: | + # Standard distribution allowlist was verified above. Field-only notice. + Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md + Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + $checks = @{ + 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 + 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 + } + foreach ($item in $checks.GetEnumerator()) { + $file = Join-Path dist $item.Key + if ($item.Value -notmatch '^[0-9a-f]{64}$' -or + -not (Test-Path -LiteralPath $file -PathType Leaf)) { + throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" + } + $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() + if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } + } + if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } + Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' + - uses: actions/upload-artifact@v4 + name: Upload isolated SonKu Windows x64 field candidate + with: + name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} + path: dist/ + if-no-files-found: error + retention-days: 21 + compression-level: 0 + + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Package real native portable mixer, never an installer + shell: pwsh + run: | + & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + - name: Record exact experiment and physical qualification pending + shell: pwsh + run: | + $path = 'dist/BUILD_PROVENANCE.json' + $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json + $sha = (& git rev-parse HEAD).Trim() + if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } + $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' + $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ + enabled = $true + nativeXYZ = $true + musicSafeStereo = $true + p8TransparentBass = $true + p82MultibandRoom = $true + p83NativeSpeakers = $false + p84FusedNative = $true + p85WorldLockedMid = $true + p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') + p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' + p84FusionDifferenceHighpassHz = 750 + p84MeasuredHrirContrast = 0.12 + legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' + p83AudioAppliedAck = $true + p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' + p82RoomBandsHz = @(250,4800) + p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' + p82Rt60StudioSeconds = @(0.717,0.392,0.231) + p82Rt60ChamberSeconds = @(0.933,0.802,0.483) + p82Rt60HallSeconds = @(1.716,1.219,0.650) + p8LowBandCrossoverHz = 220 + musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' + stateSchema = 6 + fullWindowsExecutable = $true + publicRelease = $false + physicalAsioQualified = $false + dearVrPerceptualParityProven = $false + qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' + licenseRedistributionApproval = $false + mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() + fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() + } -Force + $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 + - name: Independent GUI PE, approved resources, provenance and ZIP verification + shell: pwsh + run: | + & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist + if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + if (-not $p.sonkuExperiment.enabled -or + -not $p.sonkuExperiment.musicSafeStereo -or + -not $p.sonkuExperiment.p8TransparentBass -or + -not $p.sonkuExperiment.p82MultibandRoom -or + -not $p.sonkuExperiment.p84FusedNative -or + -not $p.sonkuExperiment.p85WorldLockedMid -or + $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { + throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' + } + - name: Include mandatory MIT KEMAR notice and physical FAT guide + shell: pwsh + run: | + # Standard distribution allowlist was verified above. Field-only notice. + Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md + Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md + $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json + $checks = @{ + 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 + 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 + } + foreach ($item in $checks.GetEnumerator()) { + $file = Join-Path dist $item.Key + if ($item.Value -notmatch '^[0-9a-f]{64}$' -or + -not (Test-Path -LiteralPath $file -PathType Leaf)) { + throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" + } + $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() + if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } + } + if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } + Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' + - uses: actions/upload-artifact@v4 + name: Upload isolated SonKu Windows x64 field candidate + with: + name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} + path: dist/ + if-no-files-found: error + retention-days: 21 + compression-level: 0 From 121fcc514c660327e29054c32266d2ed5ba54600 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Sun, 15 Nov 2026 07:41:28 +0700 Subject: [PATCH 7/7] fix(ci): use one bounded P8.5 Windows FAT job without duplicate packaging steps --- .github/workflows/sonku-p85-windows-field.yml | 418 +----------------- 1 file changed, 2 insertions(+), 416 deletions(-) diff --git a/.github/workflows/sonku-p85-windows-field.yml b/.github/workflows/sonku-p85-windows-field.yml index 8a046c328..caa9d3ee3 100644 --- a/.github/workflows/sonku-p85-windows-field.yml +++ b/.github/workflows/sonku-p85-windows-field.yml @@ -157,7 +157,7 @@ jobs: run: | cmake --build build --config Release --parallel 2 --target ARMixSonKuP85NativeTests if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - ctest --test-dir build -C Release --output-on-failure -R '^NativeSonKuP85JuceV6AudioAckLegacySafeRestore + ctest --test-dir build -C Release --output-on-failure -R '^NativeSonKuP85JuceV6AudioAckLegacySafeRestore$' if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - name: Compile actual ARMixConsole Windows GUI and focused real JUCE tests shell: pwsh @@ -172,421 +172,7 @@ jobs: shell: pwsh run: | ctest --test-dir build -C Release --output-on-failure ` - -R '^NativeSonKu(P72AtomicXyzLiveEditSource|P72JuceV3XyzLiveAckV1V2Restore|SessionV1V2AndAudioAppliedAck|P75MusicStereoPhaseNoNullAndChunkParity|P80TransparentBassStereoPhaseAndRoomDiagnostic|P82SixWallThreeBandRoomTimingDecayAndParity|P83RealtimeModeSourceAndMusicIntegrity|P83JuceV4AudioAckLegacyRestoreAndHeadYaw|P84SingleCoreMusicFidelityAndWorldYaw|P84JuceV5AudioAckLegacySafeRestore|P85WorldCoherentMidYawSourceAndFidelity|P85JuceV6AudioAckLegacySafeRestore) - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Package real native portable mixer, never an installer - shell: pwsh - run: | - & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Record exact experiment and physical qualification pending - shell: pwsh - run: | - $path = 'dist/BUILD_PROVENANCE.json' - $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json - $sha = (& git rev-parse HEAD).Trim() - if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } - $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' - $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ - enabled = $true - nativeXYZ = $true - musicSafeStereo = $true - p8TransparentBass = $true - p82MultibandRoom = $true - p83NativeSpeakers = $false - p84FusedNative = $true - p85WorldLockedMid = $true - p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') - p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' - p84FusionDifferenceHighpassHz = 750 - p84MeasuredHrirContrast = 0.12 - legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' - p83AudioAppliedAck = $true - p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' - p82RoomBandsHz = @(250,4800) - p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' - p82Rt60StudioSeconds = @(0.717,0.392,0.231) - p82Rt60ChamberSeconds = @(0.933,0.802,0.483) - p82Rt60HallSeconds = @(1.716,1.219,0.650) - p8LowBandCrossoverHz = 220 - musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' - stateSchema = 6 - fullWindowsExecutable = $true - publicRelease = $false - physicalAsioQualified = $false - dearVrPerceptualParityProven = $false - qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' - licenseRedistributionApproval = $false - mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() - fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() - } -Force - $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 - - name: Independent GUI PE, approved resources, provenance and ZIP verification - shell: pwsh - run: | - & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json - if (-not $p.sonkuExperiment.enabled -or - -not $p.sonkuExperiment.musicSafeStereo -or - -not $p.sonkuExperiment.p8TransparentBass -or - -not $p.sonkuExperiment.p82MultibandRoom -or - -not $p.sonkuExperiment.p84FusedNative -or - -not $p.sonkuExperiment.p85WorldLockedMid -or - $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { - throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' - } - - name: Include mandatory MIT KEMAR notice and physical FAT guide - shell: pwsh - run: | - # Standard distribution allowlist was verified above. Field-only notice. - Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md - Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md - $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json - $checks = @{ - 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 - 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 - } - foreach ($item in $checks.GetEnumerator()) { - $file = Join-Path dist $item.Key - if ($item.Value -notmatch '^[0-9a-f]{64}$' -or - -not (Test-Path -LiteralPath $file -PathType Leaf)) { - throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" - } - $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() - if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } - } - if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } - Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' - - uses: actions/upload-artifact@v4 - name: Upload isolated SonKu Windows x64 field candidate - with: - name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} - path: dist/ - if-no-files-found: error - retention-days: 21 - compression-level: 0 - - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Compile actual ARMixConsole Windows GUI and focused real JUCE tests - shell: pwsh - run: | - cmake --build build --config Release --parallel 2 --target ` - ARMixConsole ARMixSonKuP72SourceTests ARMixSonKuP72NativeTests ARMixSonKuNativeStateTests ARMixSonKuP75MusicIntegrityTests ARMixSonKuP80TonalEvidenceTests ARMixSonKuP82RoomTests ARMixSonKuP83LiveSourceTests ARMixSonKuP83NativeTests ARMixSonKuP84LiveSourceTests ARMixSonKuP84NativeTests ARMixSonKuP85WorldSourceTests ARMixSonKuP85NativeTests - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - $exe = 'build/ARMixConsole_artefacts/Release/AR MIX Studio.exe' - if (-not (Test-Path -LiteralPath $exe -PathType Leaf)) { throw "SONKU_P83_NO_GUI_EXE" } - if ((Get-Item -LiteralPath $exe).Length -lt 4MB) { throw "SONKU_P83_WRONG_GUI_TARGET" } - - name: Scoped native XYZ state, callback ACK and legacy restoration - shell: pwsh - run: | - ctest --test-dir build -C Release --output-on-failure ` - -R '^NativeSonKu(P72AtomicXyzLiveEditSource|P72JuceV3XyzLiveAckV1V2Restore|SessionV1V2AndAudioAppliedAck|P75MusicStereoPhaseNoNullAndChunkParity|P80TransparentBassStereoPhaseAndRoomDiagnostic|P82SixWallThreeBandRoomTimingDecayAndParity|P83RealtimeModeSourceAndMusicIntegrity|P83JuceV4AudioAckLegacyRestoreAndHeadYaw|P84SingleCoreMusicFidelityAndWorldYaw|P84JuceV5AudioAckLegacySafeRestore)$' - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Package real native portable mixer, never an installer - shell: pwsh - run: | - & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Record exact experiment and physical qualification pending - shell: pwsh - run: | - $path = 'dist/BUILD_PROVENANCE.json' - $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json - $sha = (& git rev-parse HEAD).Trim() - if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } - $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' - $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ - enabled = $true - nativeXYZ = $true - musicSafeStereo = $true - p8TransparentBass = $true - p82MultibandRoom = $true - p83NativeSpeakers = $false - p84FusedNative = $true - p85WorldLockedMid = $true - p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') - p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' - p84FusionDifferenceHighpassHz = 750 - p84MeasuredHrirContrast = 0.12 - legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' - p83AudioAppliedAck = $true - p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' - p82RoomBandsHz = @(250,4800) - p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' - p82Rt60StudioSeconds = @(0.717,0.392,0.231) - p82Rt60ChamberSeconds = @(0.933,0.802,0.483) - p82Rt60HallSeconds = @(1.716,1.219,0.650) - p8LowBandCrossoverHz = 220 - musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' - stateSchema = 6 - fullWindowsExecutable = $true - publicRelease = $false - physicalAsioQualified = $false - dearVrPerceptualParityProven = $false - qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' - licenseRedistributionApproval = $false - mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() - fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() - } -Force - $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 - - name: Independent GUI PE, approved resources, provenance and ZIP verification - shell: pwsh - run: | - & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json - if (-not $p.sonkuExperiment.enabled -or - -not $p.sonkuExperiment.musicSafeStereo -or - -not $p.sonkuExperiment.p8TransparentBass -or - -not $p.sonkuExperiment.p82MultibandRoom -or - -not $p.sonkuExperiment.p84FusedNative -or - -not $p.sonkuExperiment.p85WorldLockedMid -or - $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { - throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' - } - - name: Include mandatory MIT KEMAR notice and physical FAT guide - shell: pwsh - run: | - # Standard distribution allowlist was verified above. Field-only notice. - Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md - Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md - $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json - $checks = @{ - 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 - 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 - } - foreach ($item in $checks.GetEnumerator()) { - $file = Join-Path dist $item.Key - if ($item.Value -notmatch '^[0-9a-f]{64}$' -or - -not (Test-Path -LiteralPath $file -PathType Leaf)) { - throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" - } - $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() - if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } - } - if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } - Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' - - uses: actions/upload-artifact@v4 - name: Upload isolated SonKu Windows x64 field candidate - with: - name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} - path: dist/ - if-no-files-found: error - retention-days: 21 - compression-level: 0 - - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Package real native portable mixer, never an installer - shell: pwsh - run: | - & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Record exact experiment and physical qualification pending - shell: pwsh - run: | - $path = 'dist/BUILD_PROVENANCE.json' - $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json - $sha = (& git rev-parse HEAD).Trim() - if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } - $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' - $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ - enabled = $true - nativeXYZ = $true - musicSafeStereo = $true - p8TransparentBass = $true - p82MultibandRoom = $true - p83NativeSpeakers = $false - p84FusedNative = $true - p85WorldLockedMid = $true - p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') - p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' - p84FusionDifferenceHighpassHz = 750 - p84MeasuredHrirContrast = 0.12 - legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' - p83AudioAppliedAck = $true - p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' - p82RoomBandsHz = @(250,4800) - p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' - p82Rt60StudioSeconds = @(0.717,0.392,0.231) - p82Rt60ChamberSeconds = @(0.933,0.802,0.483) - p82Rt60HallSeconds = @(1.716,1.219,0.650) - p8LowBandCrossoverHz = 220 - musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' - stateSchema = 6 - fullWindowsExecutable = $true - publicRelease = $false - physicalAsioQualified = $false - dearVrPerceptualParityProven = $false - qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' - licenseRedistributionApproval = $false - mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() - fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() - } -Force - $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 - - name: Independent GUI PE, approved resources, provenance and ZIP verification - shell: pwsh - run: | - & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json - if (-not $p.sonkuExperiment.enabled -or - -not $p.sonkuExperiment.musicSafeStereo -or - -not $p.sonkuExperiment.p8TransparentBass -or - -not $p.sonkuExperiment.p82MultibandRoom -or - -not $p.sonkuExperiment.p84FusedNative -or - -not $p.sonkuExperiment.p85WorldLockedMid -or - $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { - throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' - } - - name: Include mandatory MIT KEMAR notice and physical FAT guide - shell: pwsh - run: | - # Standard distribution allowlist was verified above. Field-only notice. - Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md - Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md - $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json - $checks = @{ - 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 - 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 - } - foreach ($item in $checks.GetEnumerator()) { - $file = Join-Path dist $item.Key - if ($item.Value -notmatch '^[0-9a-f]{64}$' -or - -not (Test-Path -LiteralPath $file -PathType Leaf)) { - throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" - } - $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() - if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } - } - if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } - Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' - - uses: actions/upload-artifact@v4 - name: Upload isolated SonKu Windows x64 field candidate - with: - name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} - path: dist/ - if-no-files-found: error - retention-days: 21 - compression-level: 0 - - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Compile actual ARMixConsole Windows GUI and focused real JUCE tests - shell: pwsh - run: | - cmake --build build --config Release --parallel 2 --target ` - ARMixConsole ARMixSonKuP72SourceTests ARMixSonKuP72NativeTests ARMixSonKuNativeStateTests ARMixSonKuP75MusicIntegrityTests ARMixSonKuP80TonalEvidenceTests ARMixSonKuP82RoomTests ARMixSonKuP83LiveSourceTests ARMixSonKuP83NativeTests ARMixSonKuP84LiveSourceTests ARMixSonKuP84NativeTests ARMixSonKuP85WorldSourceTests ARMixSonKuP85NativeTests - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - $exe = 'build/ARMixConsole_artefacts/Release/AR MIX Studio.exe' - if (-not (Test-Path -LiteralPath $exe -PathType Leaf)) { throw "SONKU_P83_NO_GUI_EXE" } - if ((Get-Item -LiteralPath $exe).Length -lt 4MB) { throw "SONKU_P83_WRONG_GUI_TARGET" } - - name: Scoped native XYZ state, callback ACK and legacy restoration - shell: pwsh - run: | - ctest --test-dir build -C Release --output-on-failure ` - -R '^NativeSonKu(P72AtomicXyzLiveEditSource|P72JuceV3XyzLiveAckV1V2Restore|SessionV1V2AndAudioAppliedAck|P75MusicStereoPhaseNoNullAndChunkParity|P80TransparentBassStereoPhaseAndRoomDiagnostic|P82SixWallThreeBandRoomTimingDecayAndParity|P83RealtimeModeSourceAndMusicIntegrity|P83JuceV4AudioAckLegacyRestoreAndHeadYaw|P84SingleCoreMusicFidelityAndWorldYaw|P84JuceV5AudioAckLegacySafeRestore|P85WorldCoherentMidYawSourceAndFidelity|P85JuceV6AudioAckLegacySafeRestore) - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Package real native portable mixer, never an installer - shell: pwsh - run: | - & ./scripts/package_native_windows.ps1 -BuildDir build -OutputDir dist - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - python scripts/factoryfx_release_bundle.py stage --lock config/factoryfx-approved-releases.json --output dist --best-effort - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - - name: Record exact experiment and physical qualification pending - shell: pwsh - run: | - $path = 'dist/BUILD_PROVENANCE.json' - $p = Get-Content -LiteralPath $path -Raw -Encoding utf8 | ConvertFrom-Json - $sha = (& git rev-parse HEAD).Trim() - if ($p.sourceCommit -ne $sha) { throw "SONKU_P83_ARTIFACT_SHA_MISMATCH" } - $p.fatStatus = 'FIELD_PREVIEW_FULL_CTEST_NOT_RUN' - $p | Add-Member -NotePropertyName sonkuExperiment -NotePropertyValue @{ - enabled = $true - nativeXYZ = $true - musicSafeStereo = $true - p8TransparentBass = $true - p82MultibandRoom = $true - p83NativeSpeakers = $false - p84FusedNative = $true - p85WorldLockedMid = $true - p84RenderModes = @('MusicBedP82','MusicSpatialP84','MusicSpatialP85') - p83HeadYaw = 'DETERMINISTIC_MANUAL_NO_SENSOR' - p84FusionDifferenceHighpassHz = 750 - p84MeasuredHrirContrast = 0.12 - legacyP83V4Migration = 'OLD_SPEAKER_TO_P82' - p83AudioAppliedAck = $true - p83RealtimeModeCrossfade = '12ms_OUT_AND_IN_NATIVE_SINGLE_PCM_GRAPH' - p82RoomBandsHz = @(250,4800) - p82MaterialCalibration = 'ORIGINAL_ILLUSTRATIVE_NOT_MEASURED_RIR' - p82Rt60StudioSeconds = @(0.717,0.392,0.231) - p82Rt60ChamberSeconds = @(0.933,0.802,0.483) - p82Rt60HallSeconds = @(1.716,1.219,0.650) - p8LowBandCrossoverHz = 220 - musicSafeAlgorithm = 'MEASURED_CENTER_MID_PLUS_UNCONDITIONAL_STEREO_SIDE_RESEARCH' - stateSchema = 6 - fullWindowsExecutable = $true - publicRelease = $false - physicalAsioQualified = $false - dearVrPerceptualParityProven = $false - qualification = 'SONKU_P85_SCOPED_NATIVE_PCM_AND_JUCE_SOFTWARE_ONLY_HEADPHONE_FAT_PENDING' - licenseRedistributionApproval = $false - mitKemarNoticeSha256 = (Get-FileHash -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Algorithm SHA256).Hash.ToLowerInvariant() - fieldFatGuideSha256 = (Get-FileHash -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Algorithm SHA256).Hash.ToLowerInvariant() - } -Force - $p | ConvertTo-Json -Depth 20 | Set-Content -LiteralPath $path -Encoding utf8 - - name: Independent GUI PE, approved resources, provenance and ZIP verification - shell: pwsh - run: | - & ./scripts/verify_native_windows_artifact.ps1 -OutputDir dist - if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json - if (-not $p.sonkuExperiment.enabled -or - -not $p.sonkuExperiment.musicSafeStereo -or - -not $p.sonkuExperiment.p8TransparentBass -or - -not $p.sonkuExperiment.p82MultibandRoom -or - -not $p.sonkuExperiment.p84FusedNative -or - -not $p.sonkuExperiment.p85WorldLockedMid -or - $p.sonkuExperiment.stateSchema -ne 6 -or $p.sonkuExperiment.publicRelease) { - throw 'SONKU_P85_WRONG_FIELD_ARTIFACT' - } - - name: Include mandatory MIT KEMAR notice and physical FAT guide - shell: pwsh - run: | - # Standard distribution allowlist was verified above. Field-only notice. - Copy-Item -LiteralPath docs/THIRD_PARTY_8D_SONKU_HRTF.md -Destination dist/THIRD_PARTY_8D_SONKU_HRTF.md - Copy-Item -LiteralPath docs/SONKU_P85_WORLD_HEAD_COHERENCE_20261115.md -Destination dist/SONKU_P85_FIELD_FAT.md - $p = Get-Content -LiteralPath dist/BUILD_PROVENANCE.json -Raw | ConvertFrom-Json - $checks = @{ - 'THIRD_PARTY_8D_SONKU_HRTF.md' = [string]$p.sonkuExperiment.mitKemarNoticeSha256 - 'SONKU_P85_FIELD_FAT.md' = [string]$p.sonkuExperiment.fieldFatGuideSha256 - } - foreach ($item in $checks.GetEnumerator()) { - $file = Join-Path dist $item.Key - if ($item.Value -notmatch '^[0-9a-f]{64}$' -or - -not (Test-Path -LiteralPath $file -PathType Leaf)) { - throw "SONKU_P83_FIELD_NOTICE_MISSING:$($item.Key)" - } - $actual = (Get-FileHash -LiteralPath $file -Algorithm SHA256).Hash.ToLowerInvariant() - if ($actual -ne $item.Value) { throw "SONKU_P83_FIELD_NOTICE_HASH_MISMATCH:$($item.Key)" } - } - if (Test-Path -LiteralPath dist/Studio) { throw 'SONKU_FIELD_USER_DATA_MUST_NOT_SHIP' } - Write-Host 'SONKU_P85_FIELD_READY: GUI EXE + verified MIT notice + FAT guide' - - uses: actions/upload-artifact@v4 - name: Upload isolated SonKu Windows x64 field candidate - with: - name: ArSonMix-SonKu-P85-World-Coherence-Windows-x64-${{ github.run_id }} - path: dist/ - if-no-files-found: error - retention-days: 21 - compression-level: 0 - + -R '^NativeSonKu(P72AtomicXyzLiveEditSource|P72JuceV3XyzLiveAckV1V2Restore|SessionV1V2AndAudioAppliedAck|P75MusicStereoPhaseNoNullAndChunkParity|P80TransparentBassStereoPhaseAndRoomDiagnostic|P82SixWallThreeBandRoomTimingDecayAndParity|P83RealtimeModeSourceAndMusicIntegrity|P83JuceV4AudioAckLegacyRestoreAndHeadYaw|P84SingleCoreMusicFidelityAndWorldYaw|P84JuceV5AudioAckLegacySafeRestore|P85WorldCoherentMidYawSourceAndFidelity|P85JuceV6AudioAckLegacySafeRestore)$' if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } - name: Package real native portable mixer, never an installer shell: pwsh