Maintain a fixed-width beam of promising programs; expand one per step, prune by fitness+diversity.
# Beam Search — faithful port of SkyDiscover's BeamSearchDatabase defaults.
# Sections mirror the six core components.
seed: 0
general:
max_iterations: 100
inner_retry_times: 3 # SkyDiscover default controller retry_times=3: up to 3
# propose+eval attempts per iteration against the SAME
# sampled parent, first valid admitted; a failed iteration
# adds no child (iteration still advances by 1)
inner_retry_solution_chars: 1500 # _format_failed_attempts caps the failed solution/response at 1500
inner_retry_traceback_chars: 800 # ... and the traceback tail at 800 (SkyDiscover defaults)
population: # BeamPopulation
beam_width: 5 # number of candidates kept in the beam
beam_diversity_weight: 0.3 # weight of the diversity term, 0 = pure fitness
# (also read by selection_policy)
beam_depth_penalty: 0.0 # exponential fitness penalty per search-tree depth (0 = off)
selection_policy: # BeamSelectionPolicy
beam_selection_strategy: diversity_weighted # best | stochastic | round_robin | diversity_weighted
beam_temperature: 1.0 # softmax temperature for stochastic / diversity_weighted
num_inspirations: 4 # global top programs used as context (num_context_programs)