2: Strategy selection¶
flowchart TD
input(["*gguf.File<br/>parsed artifact"])
draws["1 + rng.IntN(3)<br/>1–3 draws"]
weighted{{"weighted category pick<br/>weights frozen at construction"}}
uniform{{"uniform strategy pick<br/>with replacement"}}
apply["Strategy.Mutate<br/>in-place change"]
more{"draws remain?"}
padding{"PaddingSkipper<br/>SkipPadding()?"}
counts{"CountKeeper<br/>KeepCounts()?"}
flags["batch-global flags<br/>skipPadding · keepCounts"]
sync{"keepCounts?"}
syncCounts["gguf.File.SyncCounts<br/>repair declared counts"]
marshal(["gguf.MarshalRaw<br/>(f, skipPadding)"])
input ==>|"*gguf.File"| draws
draws -->|"draw budget"| weighted
weighted --> cat0{{"Header<br/>weight 10% · 5 strategies<br/>2.00% each"}}
cat0 -->|"uniform candidate"| uniform
weighted --> cat1{{"Metadata<br/>weight 35% · 18 strategies<br/>1.94% each"}}
cat1 -->|"uniform candidate"| uniform
weighted --> cat2{{"TensorInfo<br/>weight 35% · 8 strategies<br/>4.38% each"}}
cat2 -->|"uniform candidate"| uniform
weighted --> cat3{{"Alignment<br/>weight 5% · 3 strategies<br/>1.67% each"}}
cat3 -->|"uniform candidate"| uniform
weighted --> cat4{{"Data<br/>weight 5% · 6 strategies<br/>0.83% each"}}
cat4 -->|"uniform candidate"| uniform
weighted --> cat5{{"Consistency<br/>weight 10% · 6 strategies<br/>1.67% each"}}
cat5 -->|"uniform candidate"| uniform
uniform -->|"Strategy"| apply
apply -->|"mutated *gguf.File"| padding
padding -->|"bool"| flags
apply -->|"mutated *gguf.File"| counts
counts -->|"bool"| flags
flags -->|"batch state"| more
more -->|"yes"| weighted
more -->|"no"| sync
sync -->|"no"| syncCounts
syncCounts -->|"*gguf.File"| marshal
sync -->|"yes"| marshal
dilution["model.*<br/>5 strategies share Metadata<br/>no separate category"]
dilution --- cat1
classDef gen fill:#3b3028,stroke:#b08a5a,stroke-width:1.5px,color:#f3ead7
classDef exec fill:#44372b,stroke:#c49a6c,stroke-width:1.5px,color:#f7edd9
classDef assess fill:#3c432d,stroke:#9a9b62,stroke-width:1.5px,color:#f2eddc
classDef record fill:#4b362c,stroke:#a86f4c,stroke-width:1.5px,color:#f5e6d3
classDef gate fill:#542f2b,stroke:#b96f5c,stroke-width:2px,color:#fae8dc
classDef hazard fill:#51452d,stroke:#b59658,stroke-width:2px,color:#f8edcf
classDef ghost fill:#302c28,stroke:#7f7668,stroke-width:1px,stroke-dasharray:5 3,color:#b9afa0
classDef io fill:#2f3832,stroke:#87927a,stroke-width:1.5px,color:#edf0e2
class input,draws,cat0,cat1,cat2,cat3,cat4,cat5,uniform,apply,dilution gen
class weighted hazard
class more,padding,counts,sync gate
class flags,syncCounts,marshal io Source: 6733034d; extracted: 2026-09-03.