Commit 9b78546
Address program-sampling confusion (#452)
- Remove dead code openevolve/iteration.py (the single-process sample() path).
It was never imported or executed (the live path is ProcessParallelController
-> process_parallel.py), and it carried the hardcoded get_top_programs(5)/(3)
counts and the divergent sampling logic the issue flagged (#452 points 2 & 4).
- Size inspirations by num_diverse_programs instead of num_top_programs so that
config parameter actually controls the inspiration count (#452 point 1).
- Deduplicate inspirations against the top/diverse programs already shown in the
prompt so a program is not listed twice (#452 point 3); add tests.
- Rename secret_patterns -> redaction_patterns in the artifact security filter so
SAST tools do not misread the redaction table as a hardcoded secret.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent ccaf034 commit 9b78546
4 files changed
Lines changed: 171 additions & 245 deletions
File tree
- openevolve
- prompt
- tests
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
803 | 803 | | |
804 | 804 | | |
805 | 805 | | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
806 | 809 | | |
807 | | - | |
| 810 | + | |
| 811 | + | |
808 | 812 | | |
809 | 813 | | |
810 | 814 | | |
| |||
0 commit comments