Crowbar::Evolution::Corpus
Population pool managing candidate test inputs scored by fitness, augmented with multi-feature coverage bucketing for novelty preservation.
Constructors
Instance methods
Adds a candidate to the population pool. If the candidate discovers an unseen feature or coverage hash, it is permanently bucketed.
all_unique_candidates
Returns the combined set of general population and novelty feature representatives
best
Sourcecandidates
Sourceclear
Sourcecoverage_buckets
Sourcecull_stagnant(keep_ratio : Float64 = 0.5)
Purges bottom half of population during stagnation to clear local minima Note: Novelty feature buckets are strictly preserved
empty?
Sourcefeature_buckets
Sourcemax_size
Sourceroulette_select(prng : PRNG) : Candidate | Nil
Fitness-proportional (Roulette Wheel) Selection
size
Source