@riddledc/riddle-proof-packs 0.2.2 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/index.cjs +1035 -6
- package/dist/index.js +1035 -6
- package/package.json +1 -1
- package/packs/audio-mix/README.md +30 -0
- package/packs/audio-mix/authoring-guide.md +35 -0
- package/packs/audio-mix/human-review-rubric.md +31 -0
- package/packs/audio-mix/metrics-schema.json +30 -0
- package/packs/audio-mix/profile.template.json +130 -0
- package/packs/audio-mix/ratchet-method.md +26 -0
- package/packs/neon-step-sequencer/README.md +41 -0
- package/packs/neon-step-sequencer/case-study/findings.md +102 -0
- package/packs/neon-step-sequencer/case-study/ratchet-card.md +39 -0
- package/packs/neon-step-sequencer/case-study/ratchet-log.md +203 -0
- package/packs/neon-step-sequencer/case-study/reusable-lessons.md +27 -0
- package/packs/neon-step-sequencer/examples/README.md +20 -0
- package/packs/neon-step-sequencer/examples/run-001-fast-mix-health/profile-result.json +5010 -0
- package/packs/neon-step-sequencer/examples/run-001-fast-mix-health/summary.md +37 -0
- package/packs/neon-step-sequencer/examples/run-002-mix-change/profile-result.json +6816 -0
- package/packs/neon-step-sequencer/examples/run-002-mix-change/summary.md +37 -0
- package/packs/neon-step-sequencer/examples/run-003-full-matrix/profile-result.json +18490 -0
- package/packs/neon-step-sequencer/examples/run-003-full-matrix/summary.md +33 -0
- package/packs/neon-step-sequencer/profile.template.json +75 -0
- package/packs/neon-step-sequencer/profiles/explore-songs-and-mixes.json +112 -0
- package/packs/neon-step-sequencer/profiles/fast-mix-health.json +181 -0
- package/packs/neon-step-sequencer/profiles/full-mix-health-matrix.json +154 -0
- package/packs/neon-step-sequencer/profiles/mix-change-before-after.json +202 -0
- package/packs/neon-step-sequencer/profiles/mobile-trainer-layout.json +109 -0
- package/packs/neon-step-sequencer/profiles/playback-sync.json +126 -0
- package/packs/neon-step-sequencer/profiles/source-readiness.json +114 -0
package/dist/index.cjs
CHANGED
|
@@ -730,6 +730,1018 @@ var profile_default6 = {
|
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
732
|
|
|
733
|
+
// packs/neon-step-sequencer/profiles/explore-songs-and-mixes.json
|
|
734
|
+
var explore_songs_and_mixes_default = {
|
|
735
|
+
version: "riddle-proof.profile.v1",
|
|
736
|
+
name: "neon-step-sequencer-explore-songs-and-mixes",
|
|
737
|
+
target: {
|
|
738
|
+
route: "/games/drum-sequencer?song=monkberry-moon-delight-tab&mix=profile&view=trainer&instrument=bass",
|
|
739
|
+
viewports: [
|
|
740
|
+
{
|
|
741
|
+
name: "desktop",
|
|
742
|
+
width: 1440,
|
|
743
|
+
height: 1e3
|
|
744
|
+
}
|
|
745
|
+
],
|
|
746
|
+
timeout_sec: 360,
|
|
747
|
+
wait_for_selector: ".drum-sequencer h1",
|
|
748
|
+
setup_actions: [
|
|
749
|
+
{
|
|
750
|
+
type: "window_eval",
|
|
751
|
+
label: "install-neon-exploration-proof",
|
|
752
|
+
timeout_ms: 1e4,
|
|
753
|
+
store_return_to: "__neonProof.install",
|
|
754
|
+
script: "window.__neonProofApi=()=>window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; window.__neonProofWindows=async()=>{const api=window.__neonProofApi(); if(api?.renderProofWindows) return await api.renderProofWindows({}); if(api?.renderOfflineMetrics) return {ok:true,proofKind:'offline-audio-window-set',windows:[await api.renderOfflineMetrics({bars:1,seed:'neon-explore-fallback',monitorProfile:'smallSpeaker'})]}; return {ok:false,error:'missing renderProofWindows'};}; const api=window.__neonProofApi(); const state=api?.getState?.()||api?.getSummary?.()||{}; return {available:Boolean(api),selectedSong:state.selectedSong||null};",
|
|
755
|
+
return_summary_fields: [
|
|
756
|
+
{
|
|
757
|
+
path: "available"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
path: "selectedSong"
|
|
761
|
+
}
|
|
762
|
+
]
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
type: "assert_window_value",
|
|
766
|
+
path: "__neonProof.install.available",
|
|
767
|
+
expected_value: true,
|
|
768
|
+
timeout_ms: 1e4
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
type: "window_call",
|
|
772
|
+
label: "render-proof-windows",
|
|
773
|
+
path: "__neonProofWindows",
|
|
774
|
+
store_return_to: "__neonProof.exploration",
|
|
775
|
+
capture_return: true,
|
|
776
|
+
timeout_ms: 18e4,
|
|
777
|
+
return_summary_fields: [
|
|
778
|
+
{
|
|
779
|
+
path: "ok"
|
|
780
|
+
},
|
|
781
|
+
{
|
|
782
|
+
path: "proofKind"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
path: "windows.length"
|
|
786
|
+
}
|
|
787
|
+
]
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
type: "assert_window_value",
|
|
791
|
+
path: "__neonProof.exploration.ok",
|
|
792
|
+
expected_value: true,
|
|
793
|
+
timeout_ms: 1e4
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
type: "screenshot",
|
|
797
|
+
label: "neon-explore-songs-and-mixes",
|
|
798
|
+
mode: "viewport"
|
|
799
|
+
}
|
|
800
|
+
]
|
|
801
|
+
},
|
|
802
|
+
checks: [
|
|
803
|
+
{
|
|
804
|
+
type: "route_loaded",
|
|
805
|
+
expected_path: "/games/drum-sequencer"
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
type: "selector_visible",
|
|
809
|
+
selector: ".drum-sequencer h1"
|
|
810
|
+
},
|
|
811
|
+
{
|
|
812
|
+
type: "no_fatal_console_errors"
|
|
813
|
+
}
|
|
814
|
+
],
|
|
815
|
+
artifacts: [
|
|
816
|
+
"screenshot",
|
|
817
|
+
"console",
|
|
818
|
+
"dom_summary",
|
|
819
|
+
"proof_json"
|
|
820
|
+
],
|
|
821
|
+
baseline_policy: "invariant_only",
|
|
822
|
+
failure_policy: {
|
|
823
|
+
environment_blocked: "neutral",
|
|
824
|
+
proof_insufficient: "review",
|
|
825
|
+
product_regression: "fail",
|
|
826
|
+
needs_human_review: "review"
|
|
827
|
+
},
|
|
828
|
+
metadata: {
|
|
829
|
+
pack_id: "neon_step_sequencer",
|
|
830
|
+
pack_public_name: "Neon Step Sequencer Pack",
|
|
831
|
+
evidence_role_pattern: "current_target",
|
|
832
|
+
purpose: "Exploration sweep over the app-provided proof windows for prioritizing the next weakest song/mix combination.",
|
|
833
|
+
required_receipts: [
|
|
834
|
+
"proof-window set returns ok",
|
|
835
|
+
"window receipts are captured",
|
|
836
|
+
"browser health is clean",
|
|
837
|
+
"screenshot is captured"
|
|
838
|
+
],
|
|
839
|
+
does_not_prove: [
|
|
840
|
+
"every possible song/mix combination",
|
|
841
|
+
"subjective listening quality",
|
|
842
|
+
"mobile layout"
|
|
843
|
+
]
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
|
|
847
|
+
// packs/neon-step-sequencer/profiles/fast-mix-health.json
|
|
848
|
+
var fast_mix_health_default = {
|
|
849
|
+
version: "riddle-proof.profile.v1",
|
|
850
|
+
name: "neon-step-sequencer-fast-mix-health",
|
|
851
|
+
target: {
|
|
852
|
+
route: "/games/drum-sequencer?song=monkberry-moon-delight-tab&mix=profile&view=trainer&instrument=bass",
|
|
853
|
+
viewports: [
|
|
854
|
+
{
|
|
855
|
+
name: "desktop",
|
|
856
|
+
width: 1440,
|
|
857
|
+
height: 1e3
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
timeout_sec: 240,
|
|
861
|
+
wait_for_selector: ".drum-sequencer h1",
|
|
862
|
+
setup_actions: [
|
|
863
|
+
{
|
|
864
|
+
type: "wait_for_selector",
|
|
865
|
+
selector: ".drum-sequencer h1",
|
|
866
|
+
timeout_ms: 2e4
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
type: "window_eval",
|
|
870
|
+
label: "install-neon-proof-helpers",
|
|
871
|
+
timeout_ms: 1e4,
|
|
872
|
+
store_return_to: "__neonProof.install",
|
|
873
|
+
script: "window.__neonProofApi=()=>window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; window.__neonProofRead=()=>{const api=window.__neonProofApi(); const diagnostic=api?.captureDiagnostic?.(); const state=api?.getState?.()||api?.getSummary?.()||diagnostic?.state||null; window.__neonProof={...(window.__neonProof||{}),state}; return {available:Boolean(api),route:state?.route||location.pathname,selectedSong:state?.selectedSong||state?.selected_song||null,hasMixer:Boolean(state?.profile?.mixerLevels||state?.mixerState?.levels)};}; window.__neonProofPrepare=async(options={})=>{const api=window.__neonProofApi(); return await (api?.prepareForAudioProof?.(options)||api?.prepareSampleSourcesForProof?.(options)||{ok:false,error:'missing prepareForAudioProof'});}; window.__neonProofRender=async(options={})=>{const api=window.__neonProofApi(); return await (api?.renderOfflineMetrics?.(options)||{ok:false,error:'missing renderOfflineMetrics'});}; return window.__neonProofRead();",
|
|
874
|
+
return_summary_fields: [
|
|
875
|
+
{
|
|
876
|
+
path: "available"
|
|
877
|
+
},
|
|
878
|
+
{
|
|
879
|
+
path: "selectedSong"
|
|
880
|
+
},
|
|
881
|
+
{
|
|
882
|
+
path: "hasMixer"
|
|
883
|
+
}
|
|
884
|
+
]
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
type: "assert_window_value",
|
|
888
|
+
path: "__neonProof.install.available",
|
|
889
|
+
expected_value: true,
|
|
890
|
+
timeout_ms: 1e4
|
|
891
|
+
},
|
|
892
|
+
{
|
|
893
|
+
type: "window_call",
|
|
894
|
+
label: "prepare-audio-proof",
|
|
895
|
+
path: "__neonProofPrepare",
|
|
896
|
+
args: [
|
|
897
|
+
{
|
|
898
|
+
loadAll: false
|
|
899
|
+
}
|
|
900
|
+
],
|
|
901
|
+
store_return_to: "__neonProof.sources",
|
|
902
|
+
capture_return: true,
|
|
903
|
+
timeout_ms: 9e4,
|
|
904
|
+
return_summary_fields: [
|
|
905
|
+
{
|
|
906
|
+
path: "ok"
|
|
907
|
+
},
|
|
908
|
+
{
|
|
909
|
+
path: "sources.drums"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
path: "sources.bass"
|
|
913
|
+
}
|
|
914
|
+
]
|
|
915
|
+
},
|
|
916
|
+
{
|
|
917
|
+
type: "window_call",
|
|
918
|
+
label: "render-baseline-metrics",
|
|
919
|
+
path: "__neonProofRender",
|
|
920
|
+
args: [
|
|
921
|
+
{
|
|
922
|
+
bars: 1,
|
|
923
|
+
seed: "neon-fast-mix-health",
|
|
924
|
+
monitorProfile: "smallSpeaker"
|
|
925
|
+
}
|
|
926
|
+
],
|
|
927
|
+
store_return_to: "__neonProof.baseline",
|
|
928
|
+
capture_return: true,
|
|
929
|
+
timeout_ms: 12e4,
|
|
930
|
+
return_summary_fields: [
|
|
931
|
+
{
|
|
932
|
+
path: "ok"
|
|
933
|
+
},
|
|
934
|
+
{
|
|
935
|
+
path: "mixHealth.peak"
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
path: "mixHealth.rms"
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
path: "mixHealth.clipping"
|
|
942
|
+
}
|
|
943
|
+
]
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
type: "assert_window_value",
|
|
947
|
+
path: "__neonProof.baseline.ok",
|
|
948
|
+
expected_value: true,
|
|
949
|
+
timeout_ms: 1e4
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
type: "assert_window_number",
|
|
953
|
+
path: "__neonProof.baseline.mixHealth.peak",
|
|
954
|
+
max_value: 0.98,
|
|
955
|
+
timeout_ms: 1e4
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
type: "assert_window_number",
|
|
959
|
+
path: "__neonProof.baseline.mixHealth.rms",
|
|
960
|
+
min_value: 5e-3,
|
|
961
|
+
timeout_ms: 1e4
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
type: "screenshot",
|
|
965
|
+
label: "neon-fast-mix-health",
|
|
966
|
+
mode: "viewport"
|
|
967
|
+
}
|
|
968
|
+
]
|
|
969
|
+
},
|
|
970
|
+
checks: [
|
|
971
|
+
{
|
|
972
|
+
type: "route_loaded",
|
|
973
|
+
expected_path: "/games/drum-sequencer"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
type: "selector_visible",
|
|
977
|
+
selector: ".drum-sequencer h1"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
type: "text_visible",
|
|
981
|
+
text: "Neon Step Sequencer"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
type: "selector_visible",
|
|
985
|
+
selector: ".drum-sequencer"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
type: "no_horizontal_overflow",
|
|
989
|
+
max_overflow_px: 1
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
type: "no_fatal_console_errors"
|
|
993
|
+
}
|
|
994
|
+
],
|
|
995
|
+
artifacts: [
|
|
996
|
+
"screenshot",
|
|
997
|
+
"console",
|
|
998
|
+
"dom_summary",
|
|
999
|
+
"proof_json"
|
|
1000
|
+
],
|
|
1001
|
+
baseline_policy: "invariant_only",
|
|
1002
|
+
failure_policy: {
|
|
1003
|
+
environment_blocked: "neutral",
|
|
1004
|
+
proof_insufficient: "review",
|
|
1005
|
+
product_regression: "fail",
|
|
1006
|
+
needs_human_review: "review"
|
|
1007
|
+
},
|
|
1008
|
+
metadata: {
|
|
1009
|
+
pack_id: "neon_step_sequencer",
|
|
1010
|
+
pack_public_name: "Neon Step Sequencer Pack",
|
|
1011
|
+
evidence_role_pattern: "current_target",
|
|
1012
|
+
purpose: "Fast current-target audit for Neon mixer state and one rendered audio-health receipt.",
|
|
1013
|
+
required_receipts: [
|
|
1014
|
+
"Neon route is loaded",
|
|
1015
|
+
"app proof contract is available",
|
|
1016
|
+
"selected song and mixer state are readable",
|
|
1017
|
+
"audio proof preparation returns a receipt",
|
|
1018
|
+
"offline render metrics return ok",
|
|
1019
|
+
"mix peak is below clipping threshold",
|
|
1020
|
+
"mix RMS is above silence threshold"
|
|
1021
|
+
],
|
|
1022
|
+
does_not_prove: [
|
|
1023
|
+
"subjective mix quality",
|
|
1024
|
+
"that a visible mix edit affects rendered audio",
|
|
1025
|
+
"full viewport or song/mix matrix coverage"
|
|
1026
|
+
]
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
|
|
1030
|
+
// packs/neon-step-sequencer/profiles/full-mix-health-matrix.json
|
|
1031
|
+
var full_mix_health_matrix_default = {
|
|
1032
|
+
version: "riddle-proof.profile.v1",
|
|
1033
|
+
name: "neon-step-sequencer-full-mix-health-matrix",
|
|
1034
|
+
target: {
|
|
1035
|
+
route: "/games/drum-sequencer?song=monkberry-moon-delight-tab&mix=profile&view=trainer&instrument=bass",
|
|
1036
|
+
viewports: [
|
|
1037
|
+
{
|
|
1038
|
+
name: "desktop",
|
|
1039
|
+
width: 1440,
|
|
1040
|
+
height: 1e3
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
name: "phone",
|
|
1044
|
+
width: 390,
|
|
1045
|
+
height: 844
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
name: "ipad-mini",
|
|
1049
|
+
width: 768,
|
|
1050
|
+
height: 1024
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
name: "ipad",
|
|
1054
|
+
width: 820,
|
|
1055
|
+
height: 1180
|
|
1056
|
+
}
|
|
1057
|
+
],
|
|
1058
|
+
timeout_sec: 300,
|
|
1059
|
+
wait_for_selector: ".drum-sequencer h1",
|
|
1060
|
+
setup_actions: [
|
|
1061
|
+
{
|
|
1062
|
+
type: "window_eval",
|
|
1063
|
+
label: "install-neon-matrix-proof",
|
|
1064
|
+
timeout_ms: 1e4,
|
|
1065
|
+
store_return_to: "__neonProof.install",
|
|
1066
|
+
script: "window.__neonProofApi=()=>window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; window.__neonProofRender=async(options={})=>{const api=window.__neonProofApi(); return await (api?.renderOfflineMetrics?.(options)||{ok:false,error:'missing renderOfflineMetrics'});}; const api=window.__neonProofApi(); const state=api?.getState?.()||api?.getSummary?.()||{}; window.__neonProof={...(window.__neonProof||{}),state}; return {available:Boolean(api),route:state.route||location.pathname,selectedSong:state.selectedSong||null};",
|
|
1067
|
+
return_summary_fields: [
|
|
1068
|
+
{
|
|
1069
|
+
path: "available"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
path: "selectedSong"
|
|
1073
|
+
}
|
|
1074
|
+
]
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
type: "assert_window_value",
|
|
1078
|
+
path: "__neonProof.install.available",
|
|
1079
|
+
expected_value: true,
|
|
1080
|
+
timeout_ms: 1e4
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
type: "window_call",
|
|
1084
|
+
label: "render-matrix-metrics",
|
|
1085
|
+
path: "__neonProofRender",
|
|
1086
|
+
args: [
|
|
1087
|
+
{
|
|
1088
|
+
bars: 1,
|
|
1089
|
+
seed: "neon-full-mix-health-matrix",
|
|
1090
|
+
monitorProfile: "smallSpeaker"
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
store_return_to: "__neonProof.matrixMetrics",
|
|
1094
|
+
capture_return: true,
|
|
1095
|
+
timeout_ms: 12e4,
|
|
1096
|
+
return_summary_fields: [
|
|
1097
|
+
{
|
|
1098
|
+
path: "ok"
|
|
1099
|
+
},
|
|
1100
|
+
{
|
|
1101
|
+
path: "mixHealth.peak"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
path: "mixHealth.rms"
|
|
1105
|
+
}
|
|
1106
|
+
]
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
type: "assert_window_value",
|
|
1110
|
+
path: "__neonProof.matrixMetrics.ok",
|
|
1111
|
+
expected_value: true,
|
|
1112
|
+
timeout_ms: 1e4
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
type: "assert_window_number",
|
|
1116
|
+
path: "__neonProof.matrixMetrics.mixHealth.peak",
|
|
1117
|
+
max_value: 0.98,
|
|
1118
|
+
timeout_ms: 1e4
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
type: "assert_window_number",
|
|
1122
|
+
path: "__neonProof.matrixMetrics.mixHealth.rms",
|
|
1123
|
+
min_value: 5e-3,
|
|
1124
|
+
timeout_ms: 1e4
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
type: "screenshot",
|
|
1128
|
+
label: "neon-full-mix-health-matrix",
|
|
1129
|
+
mode: "viewport"
|
|
1130
|
+
}
|
|
1131
|
+
]
|
|
1132
|
+
},
|
|
1133
|
+
checks: [
|
|
1134
|
+
{
|
|
1135
|
+
type: "route_loaded",
|
|
1136
|
+
expected_path: "/games/drum-sequencer"
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
type: "selector_visible",
|
|
1140
|
+
selector: ".drum-sequencer h1"
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
type: "selector_visible",
|
|
1144
|
+
selector: ".drum-sequencer"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
type: "no_mobile_horizontal_overflow"
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
type: "no_fatal_console_errors"
|
|
1151
|
+
}
|
|
1152
|
+
],
|
|
1153
|
+
artifacts: [
|
|
1154
|
+
"screenshot",
|
|
1155
|
+
"console",
|
|
1156
|
+
"dom_summary",
|
|
1157
|
+
"proof_json"
|
|
1158
|
+
],
|
|
1159
|
+
baseline_policy: "invariant_only",
|
|
1160
|
+
failure_policy: {
|
|
1161
|
+
environment_blocked: "neutral",
|
|
1162
|
+
proof_insufficient: "review",
|
|
1163
|
+
product_regression: "fail"
|
|
1164
|
+
},
|
|
1165
|
+
metadata: {
|
|
1166
|
+
pack_id: "neon_step_sequencer",
|
|
1167
|
+
pack_public_name: "Neon Step Sequencer Pack",
|
|
1168
|
+
evidence_role_pattern: "current_target",
|
|
1169
|
+
purpose: "Current-target matrix for Neon route, layout, proof contract, and one rendered mix-health receipt across device-shaped viewports.",
|
|
1170
|
+
required_receipts: [
|
|
1171
|
+
"desktop, phone, iPad Mini, and iPad viewport evidence",
|
|
1172
|
+
"proof contract available in every selected viewport",
|
|
1173
|
+
"offline render metrics ok",
|
|
1174
|
+
"no clipping",
|
|
1175
|
+
"no low-level/silence regression",
|
|
1176
|
+
"mobile overflow is clean"
|
|
1177
|
+
],
|
|
1178
|
+
does_not_prove: [
|
|
1179
|
+
"subjective listening quality",
|
|
1180
|
+
"every song/mix pair",
|
|
1181
|
+
"long-running transport behavior"
|
|
1182
|
+
]
|
|
1183
|
+
}
|
|
1184
|
+
};
|
|
1185
|
+
|
|
1186
|
+
// packs/neon-step-sequencer/profiles/mix-change-before-after.json
|
|
1187
|
+
var mix_change_before_after_default = {
|
|
1188
|
+
version: "riddle-proof.profile.v1",
|
|
1189
|
+
name: "neon-step-sequencer-mix-change-before-after",
|
|
1190
|
+
target: {
|
|
1191
|
+
route: "/games/drum-sequencer?song=monkberry-moon-delight-tab&mix=profile&view=trainer&instrument=bass",
|
|
1192
|
+
viewports: [
|
|
1193
|
+
{
|
|
1194
|
+
name: "desktop",
|
|
1195
|
+
width: 1440,
|
|
1196
|
+
height: 1e3
|
|
1197
|
+
}
|
|
1198
|
+
],
|
|
1199
|
+
timeout_sec: 300,
|
|
1200
|
+
wait_for_selector: ".drum-sequencer h1",
|
|
1201
|
+
setup_actions: [
|
|
1202
|
+
{
|
|
1203
|
+
type: "window_eval",
|
|
1204
|
+
label: "install-neon-mix-change-proof",
|
|
1205
|
+
timeout_ms: 1e4,
|
|
1206
|
+
store_return_to: "__neonProof.install",
|
|
1207
|
+
script: `window.__neonProofApi=()=>window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; window.__neonProofRead=()=>{const api=window.__neonProofApi(); const diagnostic=api?.captureDiagnostic?.(); return api?.getState?.()||api?.getSummary?.()||diagnostic?.state||null;}; window.__neonProofRender=async(options={})=>{const api=window.__neonProofApi(); return await (api?.renderOfflineMetrics?.(options)||{ok:false,error:'missing renderOfflineMetrics'});}; window.__neonProofSetMixer=async(track,value)=>{const api=window.__neonProofApi(); if(api?.setMixerLevelForProof){return await api.setMixerLevelForProof(track,value);} const selector='.instrument-lane-'+track+' .instrument-lane-slider input[type="range"]'; const input=document.querySelector(selector); if(!input) return {ok:false,track,value,error:'missing slider'}; const setter=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,'value')?.set; if(setter) setter.call(input,String(value)); else input.value=String(value); input.dispatchEvent(new Event('input',{bubbles:true})); input.dispatchEvent(new Event('change',{bubbles:true})); return {ok:true,track,value:Number(input.value)};}; return {available:Boolean(window.__neonProofApi())};`
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
type: "assert_window_value",
|
|
1211
|
+
path: "__neonProof.install.available",
|
|
1212
|
+
expected_value: true,
|
|
1213
|
+
timeout_ms: 1e4
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
type: "window_call",
|
|
1217
|
+
label: "render-pre-action-metrics",
|
|
1218
|
+
path: "__neonProofRender",
|
|
1219
|
+
args: [
|
|
1220
|
+
{
|
|
1221
|
+
bars: 1,
|
|
1222
|
+
seed: "neon-mix-change-pre-action",
|
|
1223
|
+
monitorProfile: "smallSpeaker"
|
|
1224
|
+
}
|
|
1225
|
+
],
|
|
1226
|
+
store_return_to: "__neonProof.preAction",
|
|
1227
|
+
capture_return: true,
|
|
1228
|
+
timeout_ms: 12e4,
|
|
1229
|
+
return_summary_fields: [
|
|
1230
|
+
{
|
|
1231
|
+
path: "ok"
|
|
1232
|
+
},
|
|
1233
|
+
{
|
|
1234
|
+
path: "mixHealth.peak"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
path: "mixHealth.rms"
|
|
1238
|
+
}
|
|
1239
|
+
]
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
type: "window_call",
|
|
1243
|
+
label: "apply-bass-focus-change",
|
|
1244
|
+
path: "__neonProofSetMixer",
|
|
1245
|
+
args: [
|
|
1246
|
+
"bass",
|
|
1247
|
+
1.35
|
|
1248
|
+
],
|
|
1249
|
+
store_return_to: "__neonProof.mixEdit",
|
|
1250
|
+
capture_return: true,
|
|
1251
|
+
timeout_ms: 1e4,
|
|
1252
|
+
return_summary_fields: [
|
|
1253
|
+
{
|
|
1254
|
+
path: "ok"
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
path: "track"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
path: "value"
|
|
1261
|
+
}
|
|
1262
|
+
]
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
type: "wait",
|
|
1266
|
+
ms: 400
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
type: "window_call",
|
|
1270
|
+
label: "render-post-action-metrics",
|
|
1271
|
+
path: "__neonProofRender",
|
|
1272
|
+
args: [
|
|
1273
|
+
{
|
|
1274
|
+
bars: 1,
|
|
1275
|
+
seed: "neon-mix-change-post-action",
|
|
1276
|
+
monitorProfile: "smallSpeaker"
|
|
1277
|
+
}
|
|
1278
|
+
],
|
|
1279
|
+
store_return_to: "__neonProof.postAction",
|
|
1280
|
+
capture_return: true,
|
|
1281
|
+
timeout_ms: 12e4,
|
|
1282
|
+
return_summary_fields: [
|
|
1283
|
+
{
|
|
1284
|
+
path: "ok"
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
path: "mixHealth.peak"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
path: "mixHealth.rms"
|
|
1291
|
+
}
|
|
1292
|
+
]
|
|
1293
|
+
},
|
|
1294
|
+
{
|
|
1295
|
+
type: "window_eval",
|
|
1296
|
+
label: "classify-mix-change",
|
|
1297
|
+
timeout_ms: 1e4,
|
|
1298
|
+
store_return_to: "__neonProof.mixChange",
|
|
1299
|
+
script: "const pre=window.__neonProof?.preAction||{}; const post=window.__neonProof?.postAction||{}; const edit=window.__neonProof?.mixEdit||{}; const preRms=Number(pre.mixHealth?.rms||0); const postRms=Number(post.mixHealth?.rms||0); const peak=Number(post.mixHealth?.peak||0); const metricMoved=Math.abs(postRms-preRms)>0.00001||Math.abs(Number(post.mixHealth?.peak||0)-Number(pre.mixHealth?.peak||0))>0.00001; const out={ok:Boolean(pre.ok&&post.ok&&edit.ok&&metricMoved&&peak<0.98),levelChanged:Boolean(edit.ok),metricMoved,preRms,postRms,postPeak:peak}; window.__neonProof.mixChange=out; return out;",
|
|
1300
|
+
return_summary_fields: [
|
|
1301
|
+
{
|
|
1302
|
+
path: "ok"
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
path: "levelChanged"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
path: "metricMoved"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
path: "postPeak"
|
|
1312
|
+
}
|
|
1313
|
+
]
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
type: "assert_window_value",
|
|
1317
|
+
path: "__neonProof.mixChange.levelChanged",
|
|
1318
|
+
expected_value: true,
|
|
1319
|
+
timeout_ms: 1e4
|
|
1320
|
+
},
|
|
1321
|
+
{
|
|
1322
|
+
type: "assert_window_value",
|
|
1323
|
+
path: "__neonProof.mixChange.metricMoved",
|
|
1324
|
+
expected_value: true,
|
|
1325
|
+
timeout_ms: 1e4
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
type: "assert_window_number",
|
|
1329
|
+
path: "__neonProof.mixChange.postPeak",
|
|
1330
|
+
max_value: 0.98,
|
|
1331
|
+
timeout_ms: 1e4
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
type: "screenshot",
|
|
1335
|
+
label: "neon-mix-change-post-action",
|
|
1336
|
+
mode: "viewport"
|
|
1337
|
+
}
|
|
1338
|
+
]
|
|
1339
|
+
},
|
|
1340
|
+
checks: [
|
|
1341
|
+
{
|
|
1342
|
+
type: "route_loaded",
|
|
1343
|
+
expected_path: "/games/drum-sequencer"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
type: "selector_visible",
|
|
1347
|
+
selector: ".drum-sequencer h1"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
type: "no_horizontal_overflow",
|
|
1351
|
+
max_overflow_px: 1
|
|
1352
|
+
},
|
|
1353
|
+
{
|
|
1354
|
+
type: "no_fatal_console_errors"
|
|
1355
|
+
}
|
|
1356
|
+
],
|
|
1357
|
+
artifacts: [
|
|
1358
|
+
"screenshot",
|
|
1359
|
+
"console",
|
|
1360
|
+
"dom_summary",
|
|
1361
|
+
"proof_json"
|
|
1362
|
+
],
|
|
1363
|
+
baseline_policy: "invariant_only",
|
|
1364
|
+
failure_policy: {
|
|
1365
|
+
environment_blocked: "neutral",
|
|
1366
|
+
proof_insufficient: "review",
|
|
1367
|
+
product_regression: "fail",
|
|
1368
|
+
needs_human_review: "review"
|
|
1369
|
+
},
|
|
1370
|
+
metadata: {
|
|
1371
|
+
pack_id: "neon_step_sequencer",
|
|
1372
|
+
pack_public_name: "Neon Step Sequencer Pack",
|
|
1373
|
+
evidence_role_pattern: "interaction_snapshots",
|
|
1374
|
+
purpose: "Interaction proof that a pre-action/post-action mix edit changes objective audio metrics without clipping.",
|
|
1375
|
+
required_receipts: [
|
|
1376
|
+
"pre-action offline render metrics",
|
|
1377
|
+
"visible/user-like bass mix change",
|
|
1378
|
+
"post-action offline render metrics",
|
|
1379
|
+
"metric movement classification",
|
|
1380
|
+
"post-action clipping guardrail"
|
|
1381
|
+
],
|
|
1382
|
+
does_not_prove: [
|
|
1383
|
+
"that the change sounds better",
|
|
1384
|
+
"that every mix control affects every render window",
|
|
1385
|
+
"cross-device control reachability"
|
|
1386
|
+
]
|
|
1387
|
+
}
|
|
1388
|
+
};
|
|
1389
|
+
|
|
1390
|
+
// packs/neon-step-sequencer/profiles/mobile-trainer-layout.json
|
|
1391
|
+
var mobile_trainer_layout_default = {
|
|
1392
|
+
version: "riddle-proof.profile.v1",
|
|
1393
|
+
name: "neon-step-sequencer-mobile-trainer-layout",
|
|
1394
|
+
target: {
|
|
1395
|
+
route: "/games/drum-sequencer?song=monkberry-moon-delight-tab&mix=profile&view=trainer&instrument=bass",
|
|
1396
|
+
viewports: [
|
|
1397
|
+
{
|
|
1398
|
+
name: "phone",
|
|
1399
|
+
width: 390,
|
|
1400
|
+
height: 844
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
name: "ipad-mini",
|
|
1404
|
+
width: 768,
|
|
1405
|
+
height: 1024
|
|
1406
|
+
}
|
|
1407
|
+
],
|
|
1408
|
+
timeout_sec: 180,
|
|
1409
|
+
wait_for_selector: ".drum-sequencer h1",
|
|
1410
|
+
setup_actions: [
|
|
1411
|
+
{
|
|
1412
|
+
type: "window_eval",
|
|
1413
|
+
label: "capture-mobile-trainer-state",
|
|
1414
|
+
timeout_ms: 1e4,
|
|
1415
|
+
store_return_to: "__neonProof.mobile",
|
|
1416
|
+
script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getState?.()||api?.getSummary?.()||{}; const trainer=document.querySelector('.instrument-trainer')||document.querySelector('[class*=trainer]'); const mix=document.querySelector('.mix-board')||document.querySelector('[class*=mix]'); const out={available:Boolean(api),route:state.route||location.pathname,selectedSong:state.selectedSong||null,trainerVisible:Boolean(trainer),mixVisible:Boolean(mix),scrollWidth:document.documentElement.scrollWidth,clientWidth:document.documentElement.clientWidth}; window.__neonProof={...(window.__neonProof||{}),mobile:out}; return out;",
|
|
1417
|
+
return_summary_fields: [
|
|
1418
|
+
{
|
|
1419
|
+
path: "available"
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
path: "trainerVisible"
|
|
1423
|
+
},
|
|
1424
|
+
{
|
|
1425
|
+
path: "mixVisible"
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
path: "scrollWidth"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
path: "clientWidth"
|
|
1432
|
+
}
|
|
1433
|
+
]
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
type: "assert_window_value",
|
|
1437
|
+
path: "__neonProof.mobile.available",
|
|
1438
|
+
expected_value: true,
|
|
1439
|
+
timeout_ms: 1e4
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
type: "assert_window_value",
|
|
1443
|
+
path: "__neonProof.mobile.trainerVisible",
|
|
1444
|
+
expected_value: true,
|
|
1445
|
+
timeout_ms: 1e4
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
type: "screenshot",
|
|
1449
|
+
label: "neon-mobile-trainer-layout",
|
|
1450
|
+
mode: "viewport"
|
|
1451
|
+
}
|
|
1452
|
+
]
|
|
1453
|
+
},
|
|
1454
|
+
checks: [
|
|
1455
|
+
{
|
|
1456
|
+
type: "route_loaded",
|
|
1457
|
+
expected_path: "/games/drum-sequencer"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
type: "selector_visible",
|
|
1461
|
+
selector: ".drum-sequencer h1"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
type: "no_mobile_horizontal_overflow"
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
type: "no_fatal_console_errors"
|
|
1468
|
+
}
|
|
1469
|
+
],
|
|
1470
|
+
artifacts: [
|
|
1471
|
+
"screenshot",
|
|
1472
|
+
"console",
|
|
1473
|
+
"dom_summary",
|
|
1474
|
+
"proof_json"
|
|
1475
|
+
],
|
|
1476
|
+
baseline_policy: "invariant_only",
|
|
1477
|
+
failure_policy: {
|
|
1478
|
+
environment_blocked: "neutral",
|
|
1479
|
+
proof_insufficient: "review",
|
|
1480
|
+
product_regression: "fail"
|
|
1481
|
+
},
|
|
1482
|
+
metadata: {
|
|
1483
|
+
pack_id: "neon_step_sequencer",
|
|
1484
|
+
pack_public_name: "Neon Step Sequencer Pack",
|
|
1485
|
+
evidence_role_pattern: "current_target",
|
|
1486
|
+
purpose: "Phone/tablet current-target audit for trainer reachability and overflow.",
|
|
1487
|
+
required_receipts: [
|
|
1488
|
+
"mobile trainer state is readable",
|
|
1489
|
+
"trainer surface is visible",
|
|
1490
|
+
"viewport screenshot is captured",
|
|
1491
|
+
"mobile overflow is clean"
|
|
1492
|
+
],
|
|
1493
|
+
does_not_prove: [
|
|
1494
|
+
"all mixer controls are comfortable to use",
|
|
1495
|
+
"audio output quality",
|
|
1496
|
+
"desktop layout"
|
|
1497
|
+
]
|
|
1498
|
+
}
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
// packs/neon-step-sequencer/profiles/playback-sync.json
|
|
1502
|
+
var playback_sync_default = {
|
|
1503
|
+
version: "riddle-proof.profile.v1",
|
|
1504
|
+
name: "neon-step-sequencer-playback-sync",
|
|
1505
|
+
target: {
|
|
1506
|
+
route: "/games/drum-sequencer?song=monkberry-moon-delight-tab&mix=profile&view=trainer&instrument=bass",
|
|
1507
|
+
viewports: [
|
|
1508
|
+
{
|
|
1509
|
+
name: "desktop",
|
|
1510
|
+
width: 1440,
|
|
1511
|
+
height: 1e3
|
|
1512
|
+
}
|
|
1513
|
+
],
|
|
1514
|
+
timeout_sec: 180,
|
|
1515
|
+
wait_for_selector: ".drum-sequencer h1",
|
|
1516
|
+
setup_actions: [
|
|
1517
|
+
{
|
|
1518
|
+
type: "window_eval",
|
|
1519
|
+
label: "capture-pre-playback-state",
|
|
1520
|
+
timeout_ms: 1e4,
|
|
1521
|
+
store_return_to: "__neonProof.prePlayback",
|
|
1522
|
+
script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getPlaybackState?.()||api?.getSummary?.()?.trainer||null; window.__neonProof={...(window.__neonProof||{}),prePlayback:{available:Boolean(api),state}}; return window.__neonProof.prePlayback;",
|
|
1523
|
+
return_summary_fields: [
|
|
1524
|
+
{
|
|
1525
|
+
path: "available"
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
path: "state.selectedInstrument"
|
|
1529
|
+
},
|
|
1530
|
+
{
|
|
1531
|
+
path: "state.currentStep"
|
|
1532
|
+
}
|
|
1533
|
+
]
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
type: "assert_window_value",
|
|
1537
|
+
path: "__neonProof.prePlayback.available",
|
|
1538
|
+
expected_value: true,
|
|
1539
|
+
timeout_ms: 1e4
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
type: "click",
|
|
1543
|
+
selector: "button.drum-play",
|
|
1544
|
+
timeout_ms: 1e4
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
type: "wait",
|
|
1548
|
+
ms: 900
|
|
1549
|
+
},
|
|
1550
|
+
{
|
|
1551
|
+
type: "window_eval",
|
|
1552
|
+
label: "capture-post-playback-state",
|
|
1553
|
+
timeout_ms: 1e4,
|
|
1554
|
+
store_return_to: "__neonProof.postPlayback",
|
|
1555
|
+
script: "const api=window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; const state=api?.getPlaybackState?.()||api?.getSummary?.()?.trainer||null; const summary=api?.getState?.()||api?.getSummary?.()||{}; const out={available:Boolean(api),isPlaying:Boolean(summary.isPlaying),state}; window.__neonProof={...(window.__neonProof||{}),postPlayback:out}; return out;",
|
|
1556
|
+
return_summary_fields: [
|
|
1557
|
+
{
|
|
1558
|
+
path: "isPlaying"
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
path: "state.currentStep"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
path: "state.selectedInstrument"
|
|
1565
|
+
}
|
|
1566
|
+
]
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
type: "assert_window_value",
|
|
1570
|
+
path: "__neonProof.postPlayback.available",
|
|
1571
|
+
expected_value: true,
|
|
1572
|
+
timeout_ms: 1e4
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
type: "screenshot",
|
|
1576
|
+
label: "neon-playback-sync",
|
|
1577
|
+
mode: "viewport"
|
|
1578
|
+
}
|
|
1579
|
+
]
|
|
1580
|
+
},
|
|
1581
|
+
checks: [
|
|
1582
|
+
{
|
|
1583
|
+
type: "route_loaded",
|
|
1584
|
+
expected_path: "/games/drum-sequencer"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
type: "selector_visible",
|
|
1588
|
+
selector: ".drum-sequencer h1"
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
type: "selector_visible",
|
|
1592
|
+
selector: "button.drum-play"
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
type: "no_fatal_console_errors"
|
|
1596
|
+
}
|
|
1597
|
+
],
|
|
1598
|
+
artifacts: [
|
|
1599
|
+
"screenshot",
|
|
1600
|
+
"console",
|
|
1601
|
+
"dom_summary",
|
|
1602
|
+
"proof_json"
|
|
1603
|
+
],
|
|
1604
|
+
baseline_policy: "invariant_only",
|
|
1605
|
+
failure_policy: {
|
|
1606
|
+
environment_blocked: "neutral",
|
|
1607
|
+
proof_insufficient: "review",
|
|
1608
|
+
product_regression: "fail"
|
|
1609
|
+
},
|
|
1610
|
+
metadata: {
|
|
1611
|
+
pack_id: "neon_step_sequencer",
|
|
1612
|
+
pack_public_name: "Neon Step Sequencer Pack",
|
|
1613
|
+
evidence_role_pattern: "interaction_snapshots",
|
|
1614
|
+
purpose: "Interaction proof that visible playback state and proof-contract playback state can be captured together.",
|
|
1615
|
+
required_receipts: [
|
|
1616
|
+
"pre-action playback state",
|
|
1617
|
+
"play button interaction",
|
|
1618
|
+
"post-action playback state",
|
|
1619
|
+
"screenshot after interaction"
|
|
1620
|
+
],
|
|
1621
|
+
does_not_prove: [
|
|
1622
|
+
"long-running transport timing",
|
|
1623
|
+
"audio output quality",
|
|
1624
|
+
"song-wide playback correctness"
|
|
1625
|
+
]
|
|
1626
|
+
}
|
|
1627
|
+
};
|
|
1628
|
+
|
|
1629
|
+
// packs/neon-step-sequencer/profiles/source-readiness.json
|
|
1630
|
+
var source_readiness_default = {
|
|
1631
|
+
version: "riddle-proof.profile.v1",
|
|
1632
|
+
name: "neon-step-sequencer-source-readiness",
|
|
1633
|
+
target: {
|
|
1634
|
+
route: "/games/drum-sequencer?song=monkberry-moon-delight-tab&mix=profile&view=trainer&instrument=bass",
|
|
1635
|
+
viewports: [
|
|
1636
|
+
{
|
|
1637
|
+
name: "desktop",
|
|
1638
|
+
width: 1440,
|
|
1639
|
+
height: 1e3
|
|
1640
|
+
}
|
|
1641
|
+
],
|
|
1642
|
+
timeout_sec: 300,
|
|
1643
|
+
wait_for_selector: ".drum-sequencer h1",
|
|
1644
|
+
setup_actions: [
|
|
1645
|
+
{
|
|
1646
|
+
type: "window_eval",
|
|
1647
|
+
label: "install-neon-source-proof",
|
|
1648
|
+
timeout_ms: 1e4,
|
|
1649
|
+
store_return_to: "__neonProof.install",
|
|
1650
|
+
script: "window.__neonProofApi=()=>window.__NEON_MIX_PROOF__||window.__RIDDLE_SEQUENCER_PROOF__; window.__neonProofPrepare=async(options={})=>{const api=window.__neonProofApi(); return await (api?.prepareForAudioProof?.(options)||api?.prepareSampleSourcesForProof?.(options)||{ok:false,error:'missing prepareForAudioProof'});}; return {available:Boolean(window.__neonProofApi())};"
|
|
1651
|
+
},
|
|
1652
|
+
{
|
|
1653
|
+
type: "assert_window_value",
|
|
1654
|
+
path: "__neonProof.install.available",
|
|
1655
|
+
expected_value: true,
|
|
1656
|
+
timeout_ms: 1e4
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
type: "window_call",
|
|
1660
|
+
label: "load-required-sources",
|
|
1661
|
+
path: "__neonProofPrepare",
|
|
1662
|
+
args: [
|
|
1663
|
+
{
|
|
1664
|
+
loadAll: true
|
|
1665
|
+
}
|
|
1666
|
+
],
|
|
1667
|
+
store_return_to: "__neonProof.sources",
|
|
1668
|
+
capture_return: true,
|
|
1669
|
+
timeout_ms: 12e4,
|
|
1670
|
+
return_summary_fields: [
|
|
1671
|
+
{
|
|
1672
|
+
path: "ok"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
path: "states.drums.status"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
path: "states.bass.status"
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
path: "states.guitar.status"
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
path: "states.vocal.status"
|
|
1685
|
+
}
|
|
1686
|
+
]
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
type: "assert_window_value",
|
|
1690
|
+
path: "__neonProof.sources.ok",
|
|
1691
|
+
expected_value: true,
|
|
1692
|
+
timeout_ms: 1e4
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
type: "screenshot",
|
|
1696
|
+
label: "neon-source-readiness",
|
|
1697
|
+
mode: "viewport"
|
|
1698
|
+
}
|
|
1699
|
+
]
|
|
1700
|
+
},
|
|
1701
|
+
checks: [
|
|
1702
|
+
{
|
|
1703
|
+
type: "route_loaded",
|
|
1704
|
+
expected_path: "/games/drum-sequencer"
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
type: "selector_visible",
|
|
1708
|
+
selector: ".drum-sequencer h1"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
type: "no_fatal_console_errors"
|
|
1712
|
+
}
|
|
1713
|
+
],
|
|
1714
|
+
artifacts: [
|
|
1715
|
+
"screenshot",
|
|
1716
|
+
"console",
|
|
1717
|
+
"dom_summary",
|
|
1718
|
+
"proof_json"
|
|
1719
|
+
],
|
|
1720
|
+
baseline_policy: "invariant_only",
|
|
1721
|
+
failure_policy: {
|
|
1722
|
+
environment_blocked: "neutral",
|
|
1723
|
+
proof_insufficient: "review",
|
|
1724
|
+
product_regression: "fail"
|
|
1725
|
+
},
|
|
1726
|
+
metadata: {
|
|
1727
|
+
pack_id: "neon_step_sequencer",
|
|
1728
|
+
pack_public_name: "Neon Step Sequencer Pack",
|
|
1729
|
+
evidence_role_pattern: "current_target",
|
|
1730
|
+
purpose: "Current-target audit for sample/source readiness before metric claims.",
|
|
1731
|
+
required_receipts: [
|
|
1732
|
+
"source proof helper is available",
|
|
1733
|
+
"required source loaders complete",
|
|
1734
|
+
"sample/source states are captured",
|
|
1735
|
+
"console health is clean"
|
|
1736
|
+
],
|
|
1737
|
+
does_not_prove: [
|
|
1738
|
+
"offline metric quality",
|
|
1739
|
+
"subjective source quality",
|
|
1740
|
+
"full song playback"
|
|
1741
|
+
]
|
|
1742
|
+
}
|
|
1743
|
+
};
|
|
1744
|
+
|
|
733
1745
|
// packs/page-content-basic/profile.json
|
|
734
1746
|
var profile_default7 = {
|
|
735
1747
|
version: "riddle-proof.profile.v1",
|
|
@@ -1036,8 +2048,24 @@ var rawProfiles = {
|
|
|
1036
2048
|
"terminal-result-partial-evidence": profile_default10,
|
|
1037
2049
|
"gameplay-window-call-until": profile_default3,
|
|
1038
2050
|
"canvas-gameplay": profile_default2,
|
|
1039
|
-
"auth-smoke": profile_default
|
|
2051
|
+
"auth-smoke": profile_default,
|
|
2052
|
+
"neon-step-sequencer-fast-mix-health": fast_mix_health_default,
|
|
2053
|
+
"neon-step-sequencer-source-readiness": source_readiness_default,
|
|
2054
|
+
"neon-step-sequencer-playback-sync": playback_sync_default,
|
|
2055
|
+
"neon-step-sequencer-mix-change-before-after": mix_change_before_after_default,
|
|
2056
|
+
"neon-step-sequencer-mobile-trainer-layout": mobile_trainer_layout_default,
|
|
2057
|
+
"neon-step-sequencer-full-mix-health-matrix": full_mix_health_matrix_default,
|
|
2058
|
+
"neon-step-sequencer-explore-songs-and-mixes": explore_songs_and_mixes_default
|
|
1040
2059
|
};
|
|
2060
|
+
var sourcePathOverrides = Object.freeze({
|
|
2061
|
+
"neon-step-sequencer-fast-mix-health": "packs/neon-step-sequencer/profiles/fast-mix-health.json",
|
|
2062
|
+
"neon-step-sequencer-source-readiness": "packs/neon-step-sequencer/profiles/source-readiness.json",
|
|
2063
|
+
"neon-step-sequencer-playback-sync": "packs/neon-step-sequencer/profiles/playback-sync.json",
|
|
2064
|
+
"neon-step-sequencer-mix-change-before-after": "packs/neon-step-sequencer/profiles/mix-change-before-after.json",
|
|
2065
|
+
"neon-step-sequencer-mobile-trainer-layout": "packs/neon-step-sequencer/profiles/mobile-trainer-layout.json",
|
|
2066
|
+
"neon-step-sequencer-full-mix-health-matrix": "packs/neon-step-sequencer/profiles/full-mix-health-matrix.json",
|
|
2067
|
+
"neon-step-sequencer-explore-songs-and-mixes": "packs/neon-step-sequencer/profiles/explore-songs-and-mixes.json"
|
|
2068
|
+
});
|
|
1041
2069
|
var RIDDLE_PROOF_PACK_PROFILES = Object.freeze(
|
|
1042
2070
|
Object.fromEntries(
|
|
1043
2071
|
Object.entries(rawProfiles).map(([slug, raw]) => {
|
|
@@ -1055,7 +2083,7 @@ var RIDDLE_PROOF_PACK_MANIFEST = Object.freeze(
|
|
|
1055
2083
|
name: profile.name,
|
|
1056
2084
|
profile,
|
|
1057
2085
|
slug,
|
|
1058
|
-
sourcePath: `packs/${slug}/profile.json`,
|
|
2086
|
+
sourcePath: sourcePathOverrides[slug] || `packs/${slug}/profile.json`,
|
|
1059
2087
|
...metadata
|
|
1060
2088
|
});
|
|
1061
2089
|
})
|
|
@@ -1101,14 +2129,15 @@ var import_riddle_proof2 = require("@riddledc/riddle-proof");
|
|
|
1101
2129
|
function instantiateRiddleProofProfile(profileName, options = {}) {
|
|
1102
2130
|
const manifest = getRiddleProofPackProfileManifest(profileName);
|
|
1103
2131
|
if (!manifest) throw new Error(`Unknown proof pack profile: ${profileName}`);
|
|
2132
|
+
const profile = JSON.parse(JSON.stringify(manifest.profile));
|
|
1104
2133
|
const targetOverride = {
|
|
1105
|
-
...
|
|
2134
|
+
...profile.target,
|
|
1106
2135
|
...options.target || {},
|
|
1107
|
-
url: options.url ??
|
|
1108
|
-
route: options.route ??
|
|
2136
|
+
url: options.url ?? profile.target.url,
|
|
2137
|
+
route: options.route ?? profile.target.route
|
|
1109
2138
|
};
|
|
1110
2139
|
return (0, import_riddle_proof2.normalizeRiddleProofProfile)(
|
|
1111
|
-
{ ...
|
|
2140
|
+
{ ...profile, target: targetOverride },
|
|
1112
2141
|
{
|
|
1113
2142
|
url: targetOverride.url,
|
|
1114
2143
|
route: targetOverride.route,
|