diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 2bde354..4ee3f7f 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -7,6 +7,7 @@ | objc2 | 0.6.5 | MIT | [Upstream revision](https://github.com/madsmtm/objc2/tree/d7d2fa23ceaa5e6096c923b081040e5d81b3b9df), [upstream licensing notice](licenses/objc2-LICENSE.md). | | objc2-encode | 4.1.0 | MIT | [Upstream revision](https://github.com/madsmtm/objc2/tree/8d214f5477365ffcbcbb7de058c86ed9a518efb7), [upstream licensing notice](licenses/objc2-LICENSE.md). | | objc2-foundation | 0.3.2 | MIT | [Upstream revision](https://github.com/madsmtm/objc2/tree/7b1abfd750a2cacaea71d6a56ecfb83cb7de560b), [upstream licensing notice](licenses/objc2-LICENSE.md). | +| objc2-core-foundation | 0.3.2 | MIT selected | [Upstream revision](https://github.com/madsmtm/objc2/tree/7b1abfd750a2cacaea71d6a56ecfb83cb7de560b), [upstream licensing notice](licenses/objc2-LICENSE.md). | | objc2-metal | 0.3.2 | MIT selected | [Upstream revision](https://github.com/madsmtm/objc2/tree/7b1abfd750a2cacaea71d6a56ecfb83cb7de560b), [upstream licensing notice](licenses/objc2-LICENSE.md). | Cargo resolves the Rust packages from crates.io at the source checksums in [Cargo.lock](Cargo.lock). The upstream objc2 notice discusses the derivation of bindings from Apple SDKs and an open question about redistribution. No Apple SDK files or dependency crate archives ship in this repository. The [upstream MIT text](licenses/objc2-LICENSE-MIT.txt) is an unmodified copy from [objc2 commit ee9a7ad](https://github.com/madsmtm/objc2/blob/ee9a7ada2131f5944b8750428e265c15632f2a19/LICENSE-MIT.txt), added after the locked source revisions. Preserve it and the pinned licensing notice. See the [G11 review](docs/licenses.md#runtime-redistribution-review) for unresolved attribution and SDK questions. diff --git a/crates/ref/tests/gfx1030.rs b/crates/ref/tests/gfx1030.rs new file mode 100644 index 0000000..005a7dc --- /dev/null +++ b/crates/ref/tests/gfx1030.rs @@ -0,0 +1,186 @@ +// SPDX-License-Identifier: GPL-3.0-or-later + +use xenora_ref::{DecodedInstruction, Op, ReferenceError, Source, VectorAlu, decode, execute}; + +const ADD: &[u8] = include_bytes!("../../../fixtures/rdna2/add.bin"); +const WAIT_READ: [u8; 4] = [0x70, 0x3f, 0x8c, 0xbf]; + +fn bytes(words: &[u32]) -> Vec { + words.iter().flat_map(|word| word.to_le_bytes()).collect() +} + +#[test] +fn decodes_high_vop2_operands_and_integer_immediates() { + // AMD RDNA 2 ISA §13: VOP2 packs its second input and destination + // across byte boundaries. Selectors 195 and 208 encode -3 and -16. + // The original assembly operands were checked with gfx1030 llvm-mc. + let code = bytes(&[ + 0x37ff_fd81, // v_and_b32_e32 v255, v129, v254 + 0x7e04_02c3, // v_mov_b32_e32 v2, -3 + 0xbe88_03d0, // s_mov_b32 s8, -16 + 0xbf06_ff08, + 0x1234_5678, // s_cmp_eq_u32 s8, 0x12345678 + ]); + assert_eq!( + decode(&code), + Ok(vec![ + DecodedInstruction { + offset: 0, + byte_len: 4, + op: Op::Vector(VectorAlu::And, 255, 129, 254), + }, + DecodedInstruction { + offset: 4, + byte_len: 4, + op: Op::Move(2, Source::Immediate(0xffff_fffd)), + }, + DecodedInstruction { + offset: 8, + byte_len: 4, + op: Op::ScalarMove(8, Source::Immediate(0xffff_fff0)), + }, + DecodedInstruction { + offset: 12, + byte_len: 8, + op: Op::CompareEqual(Source::Register(8), Source::Immediate(0x1234_5678)), + }, + ]) + ); +} + +#[test] +fn enforces_inclusive_input_and_code_limits() { + let input_limit_error = ReferenceError { + offset: 0, + detail: "input word count outside reference limits", + }; + assert_eq!(execute(ADD, &[]), Err(input_limit_error)); + assert_eq!(execute(ADD, &[1; 4096]), Ok(vec![0x1234_5679; 4096])); + assert_eq!( + execute(ADD, &[1; 4097]), + Err(ReferenceError { + offset: 0, + detail: "input word count outside reference limits", + }) + ); + + let padding_words = (1024 - ADD.len()) / WAIT_READ.len(); + let padded = [WAIT_READ.repeat(padding_words), ADD.to_vec()].concat(); + assert_eq!(padded.len(), 1024); + assert_eq!(execute(&padded, &[1]), Ok(vec![0x1234_5679])); + let oversized = [WAIT_READ.as_slice(), &padded].concat(); + assert_eq!( + execute(&oversized, &[1]), + Err(ReferenceError { + offset: 0, + detail: "instruction stream exceeds reference limit", + }) + ); +} + +#[test] +fn rejects_valid_instruction_words_after_end_and_reports_their_offset() { + let end = &ADD[ADD.len() - 4..]; + let code = [ADD, &WAIT_READ, end].concat(); + let error = execute(&code, &[1]).unwrap_err(); + assert_eq!( + error, + ReferenceError { + offset: ADD.len(), + detail: "trailing code after s_endpgm", + } + ); + assert_eq!( + error.to_string(), + "reference byte 0x2c: trailing code after s_endpgm" + ); +} + +#[test] +fn preserves_the_index_register_and_rejects_overlapping_loads() { + let mut writes_index = ADD.to_vec(); + writes_index[5] = 0; // Load into v0, the fixture ABI's index register. + assert_eq!( + execute(&writes_index, &[1]), + Err(ReferenceError { + offset: 0, + detail: "invalid load destination or overlapping load", + }) + ); + + let mut second_load = ADD[..8].to_vec(); + second_load[5] = 2; // Distinct destination, still before the first load wait. + let overlaps = [&ADD[..8], &second_load, &ADD[8..]].concat(); + assert_eq!( + execute(&overlaps, &[1]), + Err(ReferenceError { + offset: 8, + detail: "invalid load destination or overlapping load", + }) + ); +} + +#[test] +fn rejects_a_second_output_store_before_and_after_the_wait() { + let store = &ADD[28..36]; + for offset in [36, 40] { + let code = [&ADD[..offset], store, &ADD[offset..]].concat(); + assert_eq!( + execute(&code, &[1]), + Err(ReferenceError { + offset, + detail: "multiple writes to the output", + }) + ); + } +} + +#[test] +fn protects_descriptor_sgprs_but_allows_ordinary_sgprs() { + let code = |dst_word: u32| [dst_word.to_le_bytes().as_slice(), ADD].concat(); + assert_eq!( + execute(&code(0xbe87_0381), &[1]), // s_mov_b32 s7, 1 + Err(ReferenceError { + offset: 0, + detail: "write to a reserved resource SGPR", + }) + ); + assert_eq!( + execute(&code(0xbe89_0381), &[1]), // s_mov_b32 s9, 1 + Ok(vec![0x1234_5679]) + ); +} + +#[test] +fn rejects_either_out_of_domain_operand_even_if_the_product_is_normal() { + fn multiply(a: u32, b: u32) -> Result, ReferenceError> { + let code = bytes(&[ + 0x7e04_02ff, + a, // v_mov_b32_e32 v2, + 0x7e06_02ff, + b, // v_mov_b32_e32 v3, + 0x1002_0702, // v_mul_f32_e32 v1, v2, v3 + ]); + execute(&[code.as_slice(), &ADD[28..]].concat(), &[0]) + } + + let one = 1.0f32.to_bits(); + let large_normal = 0x7e80_0000; // 2^126. + let subnormal = 0x0000_0001; // 2^-149, yielding exact 2^-23 with large_normal. + let negative_one = (-1.0f32).to_bits(); + assert_eq!(multiply(large_normal, one), Ok(vec![large_normal])); + for (a, b) in [ + (subnormal, large_normal), + (large_normal, subnormal), + (negative_one, one), + (one, negative_one), + ] { + assert_eq!( + multiply(a, b), + Err(ReferenceError { + offset: 16, + detail: "float operation outside positive, normal, exact binary32 domain", + }) + ); + } +} diff --git a/crates/shader/src/lib.rs b/crates/shader/src/lib.rs index c64e5f5..533a984 100644 --- a/crates/shader/src/lib.rs +++ b/crates/shader/src/lib.rs @@ -458,3 +458,48 @@ fn lift(decoded: &[DecodedInstruction], code_len: usize) -> Result = [ + 0x7e02_02ffu32, // v_mov_b32_e32 v1, 0x4e800000 (2^30) + 0x4e80_0000, + 0x7e04_02ff, // v_mov_b32_e32 v2, 0x40000000 (2.0) + 0x4000_0000, + 0x1006_0501, // v_mul_f32_e32 v3, v1, v2 + ] + .into_iter() + .flat_map(u32::to_le_bytes) + .collect(); + code.extend_from_slice(&FIXTURE[28..]); + code[25] = 3; // Store v3. + // The product 2^31 is exact, while 2^30 + 2 is not representable. + let shader = compile(Architecture::Gfx1030, &code).unwrap(); + assert!(shader.ir.contains("mul.f32 t0, t1")); + assert!( + shader + .msl + .contains("as_type(t0) * as_type(t1)") + ); +} + +#[test] +fn rejects_load_into_index_or_before_waiting_on_previous_load() { + let mut code = FIXTURE.to_vec(); + code[5] = 0; // Load into reserved v0. + assert!(matches!( + compile(Architecture::Gfx1030, &code), + Err(CompileError::Verify { offset: 0, .. }) + )); + let mut code = FIXTURE.to_vec(); + code.splice(8..8, FIXTURE[..8].iter().copied()); + assert!(matches!( + compile(Architecture::Gfx1030, &code), + Err(CompileError::Verify { offset: 8, .. }) + )); +} diff --git a/docs/interfaces.md b/docs/interfaces.md index 2132d81..c95ed72 100644 --- a/docs/interfaces.md +++ b/docs/interfaces.md @@ -1,6 +1,6 @@ # Phase 01 interfaces -The first input is little-endian gfx1030 machine code for a straight-line compute fixture. The synthetic ABI starts with full Wave32 EXEC and binds VGPR 0 to the lane index. Resource operands select documented synthetic bindings. The parser must require explicit target identification and validate all lengths before allocating. Console containers and AMDHSA initialization require separate contracts. +The first input is little-endian gfx1030 machine code for a compute fixture with optional statically resolved forward scalar branches. The synthetic ABI starts with full Wave32 EXEC and binds VGPR 0 to the lane index. Resource operands select documented synthetic bindings. The parser must require explicit target identification and validate all lengths before allocating. Console containers and AMDHSA initialization require separate contracts. The production decoder takes borrowed code bytes. Its output records typed instructions, operand classes, original offsets and byte lengths. Unknown encodings and unsupported forms fail with a byte offset. The reference interpreter takes the original bytes and input words and performs its own decoding. It shares no production instruction definitions. diff --git a/docs/licenses.md b/docs/licenses.md index 00402f7..92262f0 100644 --- a/docs/licenses.md +++ b/docs/licenses.md @@ -7,6 +7,7 @@ The workspace is GPL-3.0-or-later. The following is the lead's preliminary compa | objc2 | 0.6.5, `d7d2fa23ceaa5e6096c923b081040e5d81b3b9df` | MIT | Runtime bindings | | objc2-encode | 4.1.0, `8d214f5477365ffcbcbb7de058c86ed9a518efb7` | MIT | Runtime transitive dependency | | objc2-foundation | 0.3.2, `7b1abfd750a2cacaea71d6a56ecfb83cb7de560b` | MIT | Foundation bindings | +| objc2-core-foundation | 0.3.2, `7b1abfd750a2cacaea71d6a56ecfb83cb7de560b` | MIT from Zlib OR Apache-2.0 OR MIT | Core Foundation bindings | | objc2-metal | 0.3.2, `7b1abfd750a2cacaea71d6a56ecfb83cb7de560b` | MIT from Zlib OR Apache-2.0 OR MIT | Metal bindings | | bitflags | 2.13.2, `80ce9b545acb0bd42150695fc351889cac1d8eb4` | MIT from MIT OR Apache-2.0 | Runtime transitive dependency | | AMD RDNA 2 ISA XML | 2026-02-20, schema 1.1.1 | MIT | Source for generated decoder constants | @@ -15,14 +16,18 @@ The workspace is GPL-3.0-or-later. The following is the lead's preliminary compa ## Runtime redistribution review -Reviewed 2026-11-22 against the locked Apple Silicon graph. Run `cargo tree --locked --target aarch64-apple-darwin --edges normal,build` and `cargo metadata --locked --format-version 1` to reproduce the graph and declared licenses. The external runtime graph comprises exactly the five Cargo packages listed above. The reviewed registry packages identify their source revisions in `.cargo_vcs_info.json`. The four objc2 registry packages declare the listed licenses but contain no standalone license text. Each of the three pinned upstream `LICENSE.md` files matches the preserved copy byte for byte. +Reviewed 2026-11-22 against the locked Apple Silicon graph. Run `cargo tree --locked --target aarch64-apple-darwin --edges normal,build` and `cargo metadata --locked --format-version 1` to reproduce the graph and declared licenses. The external runtime graph comprises the six Cargo packages listed above. The reviewed registry packages identify their source revisions in `.cargo_vcs_info.json`. The five objc2 registry packages declare the listed licenses but contain no standalone license text. Each of the three pinned upstream `LICENSE.md` files matches the preserved copy byte for byte. -The declared MIT terms are compatible with GPL-3.0-or-later for code the upstream authors have rights to license. MIT remains the selected option for objc2-metal and bitflags. Distribution of copies or substantial portions subject to MIT requires retaining the applicable copyright and permission notice. Preserve the project GPL text, AMD's MIT notice, the bitflags MIT notice, and the objc2 notices. For a linked Xenora binary, also satisfy the GPLv3 section 6 Corresponding Source requirements for the shipped build, including applicable linked dependency source and build scripts, subject to the license's System Libraries exception. See the [project GPL text](../LICENSE). +The declared MIT terms are compatible with GPL-3.0-or-later for code the upstream authors have rights to license. MIT remains the selected option for objc2-core-foundation, objc2-metal and bitflags. Distribution of copies or substantial portions subject to MIT requires retaining the applicable copyright and permission notice. Preserve the project GPL text, AMD's MIT notice, the bitflags MIT notice, and the objc2 notices. For a linked Xenora binary, also satisfy the GPLv3 section 6 Corresponding Source requirements for the shipped build, including applicable linked dependency source and build scripts, subject to the license's System Libraries exception. See the [project GPL text](../LICENSE). The supplied objc2 MIT text comes from upstream commit `ee9a7ada2131f5944b8750428e265c15632f2a19`. Upstream confirms that the older crate versions use the license declared in their manifests, but did not confirm that the added copyright notice covers all earlier contributions. The text is preserved as upstream supplied it. Attribution completeness for the locked releases still requires review of applicable earlier notices. [Upstream MIT text](https://github.com/madsmtm/objc2/blob/ee9a7ada2131f5944b8750428e265c15632f2a19/LICENSE-MIT.txt) · [Maintainer discussion](https://github.com/madsmtm/objc2/issues/826) The source checkout references the crates through Cargo and contains no dependency archives or Apple SDK files. A linked macOS build can incorporate generated Rust binding code even when Apple frameworks are linked dynamically. Apple's Xcode agreement §2.4 permits distribution of macOS applications and libraries subject to the agreement. §2.7 restricts redistribution and derivative works of Apple Software, with stated exceptions. The pinned objc2 notice and maintainer clarification leave open how those terms apply to generated bindings in redistributed source or linked binaries. G11 remains open pending review of that question for the actual distributable and independent confirmation of attribution. [Apple's Xcode agreement](https://www.apple.com/legal/sla/docs/xcode.pdf) · [Pinned objc2 notice](https://github.com/madsmtm/objc2/blob/7b1abfd750a2cacaea71d6a56ecfb83cb7de560b/LICENSE.md) · [Maintainer clarification](https://github.com/madsmtm/objc2/issues/895) +The lockfile also lists optional dispatch2 0.3.1 (revision `8852b424193ca41602281b3d7540d7c8ed51e49a`, MIT selected). It is absent from the native normal/build graph, including with all workspace features enabled. + +On 2026-11-22 the objc2 maintainer explained that in their view the SDK-derived Foundation wrappers inline and leave calls to Apple functions in the final binary. Applicability to the linked Xenora artifact and downstream redistribution rights remain open. [Maintainer follow-up](https://github.com/madsmtm/objc2/issues/895#issuecomment-7079277040) + ## Fuzz development dependencies These packages are resolved only by the isolated fuzz workspace. Use MIT when it is an offered choice. The bundled LLVM libFuzzer source in `libfuzzer-sys` also carries NCSA terms. Fuzz executables are local test artifacts. diff --git a/docs/progress.md b/docs/progress.md index f5b2c68..f70c6c2 100644 --- a/docs/progress.md +++ b/docs/progress.md @@ -25,8 +25,8 @@ The independent CPU validation tests are part of the workspace. The native suite ## Remaining work -1. The automated G6 check covers all 15 decoded forms. R2 still needs to sign off on the [three-way evidence](shaders/instruction-coverage.md#automated-three-way-comparison) at the final candidate and finish G5 interpreter assurance. -2. Run `scripts/fuzz.sh instruction_stream`, `scripts/fuzz.sh fixture` and `scripts/fuzz.sh reference` serially. Each defaults to 600 seconds. The interrupted corpus is retained under ignored `artifacts/fuzz/` and no campaign remains running. -3. R2 owns source, semantic and oracle mutation execution and survivor triage. Recreate the source population with `cargo mutants --workspace --list --json --file 'crates/decoder/src/**' --file 'crates/shader/src/**' --file 'crates/ref/src/**'` before executing it. The first inventory has 373 entries. Resolve any new tests and reassess the denominator before reporting a gate result. -4. Implement benchmark coverage across the correctness corpus and execute on AC power with the machine idle. The checkout has verified correctness results and no benchmark measurements. -5. R1 owns the license, history, claim coverage and status audits. Confirm attribution completeness and the Apple SDK terms for the proposed linked distributable using the [runtime redistribution review](licenses.md#runtime-redistribution-review). Repeat both reviewer passes against the final candidate commit. +1. G7 is the immediate priority. The historical source campaign at `a34dadc` reported 387 mutants. The targeted rerun and accounting rules are in [mutation testing](testing/mutation.md). Run the complete source campaign after survivor triage, then complete the semantic and oracle campaigns with R2. +2. G5–G6 require independent R2 validation against the candidate. The automated three-way comparison covers all 15 decoded forms. Reproduce with the LLVM command above. +3. G9 has three successful historical 601-second transcripts in `artifacts/g9/`. Record candidate scope, nightly version and individual process exit codes on the confirmation run. Run `scripts/fuzz.sh instruction_stream`, `scripts/fuzz.sh fixture` and `scripts/fuzz.sh reference` serially. +4. G10 has a tracked [battery run](../benchmarks/results/apple-m5/run-1795338391/report.md). AC measurements and full corpus and protocol coverage remain open. +5. G11 remains open for objc2 SDK-derived binding redistribution and the pinned license inventory audit. See the [runtime redistribution review](licenses.md#runtime-redistribution-review). R1 also owns the claims, history and status audits. Both reviewers must review the final candidate. diff --git a/docs/risk-register.md b/docs/risk-register.md index 9bf5f9c..bceba07 100644 --- a/docs/risk-register.md +++ b/docs/risk-register.md @@ -6,3 +6,5 @@ | R2 | FP32 subnormal inputs can affect normal outputs. The historic V4 input-only probe reported four signed-zero mismatches. | Historical host observation, pending project reproduction | Metal and testing. Reproduce the original strict known answers in a bounded native Rust test. | | R3 | FP32 subnormal outputs can be flushed even with normal inputs. The historic V4 output-only probe reported three signed-zero mismatches. | Historical host observation, pending project reproduction | Metal and testing. Reproduce both signs and the boundary rounding case. | | R4 | The V3.1 exceptional arithmetic probe reported five subnormal mismatches and a canonical NaN payload. | Historical host observation, pending project reproduction | Compiler and reference. Keep the strict historical comparisons and establish the required guest policy before supporting float lowering. | +| R5 | Redistribution rights for SDK-derived Rust bindings and locked-version attribution require review before distributing linked binaries. | Pinned upstream license notices and maintainer comments | R1. Review the actual linked artifact and applicable terms. | +| R6 | The compiler skips unreachable instructions during verification. The reference also checks termination and the synthetic resource ABI on unreachable code, which can disagree with compiler acceptance. | R2 source inspection | Compiler and reference. Reproduce both cases and agree on a common acceptance policy. | diff --git a/docs/testing/mutation.md b/docs/testing/mutation.md new file mode 100644 index 0000000..78a8793 --- /dev/null +++ b/docs/testing/mutation.md @@ -0,0 +1,62 @@ +# Phase 01 mutation testing + +G7 remains open. The source campaign covers the decoder, fixture parser, +verifier, lowering and reference interpreter through the default CPU workspace +tests. The independent semantic and oracle campaigns are separate requirements. + +## Historical source campaign + +The raw outcomes and mutation diffs are under the ignored +`artifacts/mutation/campaign-20261122/mutants.out/`. The campaign used the +source at `a34dadc` with workspace tests, two workers and a 300-second timeout. + +| Crate | Generated | Caught | Missed | Unviable | Timeout | Conservative score before equivalence review | +|---|---:|---:|---:|---:|---:|---:| +| Decoder | 116 | 93 | 10 | 12 | 1 | 89.4% | +| Reference | 171 | 139 | 27 | 5 | 0 | 83.7% | +| Shader | 100 | 63 | 29 | 8 | 0 | 68.5% | +| Total | 387 | 295 | 66 | 25 | 1 | 81.5% | + +The decoder timeout changed `offset += byte_len` to multiplication. The +offset starts at zero and remains zero after each successful decode. The +historical test phase timed out after 300 seconds following a successful build. +It stays in the denominator as a timeout. + +## Reproduction + +The targeted rerun matches the exact identities in `missed.txt` and +`timeout.txt`. The full command and outputs are in +`artifacts/mutation/phase01-survivor-rerun/`. Its 30-second timeout distinguishes +the known non-progress case without waiting another five minutes. + +Run the full original scope with a fresh output directory after the targeted +rerun and review. + +```sh +CARGO_BUILD_JOBS=2 scripts/mutation.sh artifacts/mutation/final-source +``` + +Count kills over all eligible non-equivalent mutants, including timeouts and +unexecuted mutants. Record invalid mutants and independently reviewed +equivalences separately. A source score cannot substitute for the native +semantic campaign or the validation-fixture oracle campaign. + +## R2 review of the historical survivors + +Locations refer to each crate's `src/lib.rs` at `a34dadc`. The checked +identities and original outcomes remain in `outcomes.json`. R2 identified +53 genuine test gaps, 13 equivalent survivors and the separate timeout. + +| Crate and locations | Proof of equivalence | +|---|---| +| Decoder 352:17 | The descriptor base is a multiple of four. Equality with 102 is unreachable, so `> 102` and `>= 102` are identical. | +| Reference 192:40, 193:42, 197:42, 203:40, 204:47 | OR and XOR pack disjoint bit fields. At each site the shifted contribution occupies bits cleared in the unshifted field. | +| Shader 127:44, 128:42, 137:43 | A bit cannot be known both zero and one. The OR operands are disjoint in each case, including the two ways to establish an XOR output bit. | +| Shader 141:37 | Unknown bits complement the union of known-zero and known-one bits, so they share no bits with the known-one mask. | +| Shader 183:9 | For a singleton result the masks already fully specify its value. The fallback reconstructs the same two identical candidates that the deleted arm would store explicitly. | +| Shader 275:13, 279:13 | The removed arm and weakened predicate affect private defense-in-depth. The sole caller supplies decoder output, which independently rejects backward branches and targets outside instruction boundaries before calling the verifier. | + +R2 identified diagnostic, scalar and vector selector, fixture limit, transfer +ordering, reserved register and exact FP32 verifier regressions for the +remaining survivors. The targeted rerun records which tests actually +distinguish each mutant. diff --git a/scripts/mutation.sh b/scripts/mutation.sh index 160512f..25e2c4f 100755 --- a/scripts/mutation.sh +++ b/scripts/mutation.sh @@ -5,8 +5,8 @@ cd "$(dirname "$0")/.." # Source mutation campaign for the critical Phase 01 modules. # R2 owns execution and survivor triage; this script only reproduces the run. -# Tests run for the mutated package only (cargo-mutants default), so this stays -# CPU-only and never dispatches GPU work. +# Run the default workspace tests so downstream CPU validation can catch +# mutations. Native GPU tests and the LLVM oracle are opt-in. out=${1:-artifacts/mutation/campaign-$(date +%Y%m%d-%H%M%S)} mkdir -p "$out" export CARGO_BUILD_JOBS=${CARGO_BUILD_JOBS:-2}