1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
//! Frozen mutation-class extension contract for adversarial source rewrites.
use Program;
/// Concrete mutation catalog previously available at `crate::adversarial::mutations`.
include!;
/// Mutated IR program emitted by a [`Mutator`].
/// Community extension point for generating adversarial IR mutations.
///
/// This is the frozen mutator contract from `ARCHITECTURE.md`
/// §Frozen Contracts. Implementations must keep [`Self::id`] stable across
/// releases because certificates, TOML rule packs, and external reports use it
/// as the durable identity for the class. [`Self::mutations_for`] must return
/// only concrete source rewrites represented by [`Mutation`]; it must not
/// report abstract placeholders, side-effect-only probes, or mutations whose
/// applicability depends on hidden global state.
///
/// Implementations must be thread-safe, deterministic for identical input, and
/// complete for the mutation family they advertise. Returning an empty vector is
/// valid only when `source` contains no applicable target for that class.
pub