Skip to content

feat: retire and deprioritize parents whose mutations always score 0.0 - #874

Merged
devdanzin merged 1 commit into
mainfrom
feat/cold-parent-retirement
Jun 30, 2026
Merged

devdanzin merged 1 commit into
mainfrom
feat/cold-parent-retirement

Conversation

@devdanzin

Copy link
Copy Markdown
Owner

Summary

  • Distinguishes stone-cold parents (children always scoring exactly 0.0 — no coverage/timing/JIT-vitals signal, no gradient) from warm parents producing sub-threshold near-misses, which were previously treated identically.
  • Propagates the numeric score onto NoChangeResult (via new ScoringManager.evaluate_interestingness(); score_and_decide_interestingness kept as a thin bool wrapper) and tracks a per-parent consecutive_zero_score streak (reset by any warm child/find; untouched by non-measurements like duplicates or resource-kills).
  • Retires gradient-free parents early at COLD_STERILITY_LIMIT (100) instead of the blunt CORPUS_STERILITY_LIMIT (599), and adds a graduated coldness penalty (COLDNESS_PENALTY_*, Heuristic 6) to CorpusScheduler so cold parents are selected less often before retirement.
  • Docs: CHANGELOG entry, 02_the_evolutionary_loop.md + 05_state_and_data_formats.md updates, plus CLAUDE.md staleness fixes (missing jit_seeds.py/jit_bug_patterns.py/utils.py, native-seeding prerequisite).

Test plan

  • 16 new tests: scheduler coldness penalty (+ below-threshold no-op), cold-streak increment/reset/neutral/negative, early retirement (+ single-fire), score propagation through evaluate_interestingness, and _record_new_find reset.
  • Full suite green: 2160 passed, 492 subtests (pytest tests/).
  • ruff check + ruff format clean; mypy lafleur/ introduces zero new errors.

Closes #873

🤖 Generated with Claude Code

Previously the child's numeric interestingness score was discarded after
the keep/skip decision, so every non-find ticked the same
mutations_since_last_find counter. A parent producing warm near-misses
(score 8-9, real gradient) was indistinguishable from one producing only
stone-cold 0.0 children (no gradient at all); both burned the full
CORPUS_STERILITY_LIMIT (599) leash at full selection weight.

Now the score flows onto NoChangeResult via a new
ScoringManager.evaluate_interestingness() ((bool, float|None);
score_and_decide_interestingness is kept as a thin bool wrapper). The
orchestrator tracks a per-parent consecutive_zero_score streak (reset by
any warm child or find, untouched by non-measurements like duplicates or
resource-kills), retires parents early at COLD_STERILITY_LIMIT (100), and
CorpusScheduler applies a graduated coldness penalty so cold parents are
selected less often before retirement.

Closes #873

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@devdanzin
devdanzin merged commit 5cf42bf into main Jun 30, 2026
0 of 2 checks passed
@devdanzin
devdanzin deleted the feat/cold-parent-retirement branch June 30, 2026 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retire and deprioritize parents whose mutations always score 0.0

1 participant