Modify compute_allocation_weight() in exchange.py to include a diversity_bonus factor that rewards hypotheses targeting underexplored mechanisms.
_compute_diversity_bonus() helper function that:compute_allocation_weight() to multiply in the diversity bonus:allocation_weight = composite_score evidence_freshness gap_coverage * diversity_bonuscompute_allocation_weight() includes diversity_bonus factor in final calculation_compute_diversity_bonus() correctly computes bonus based on existing hypothesis count_compute_diversity_bonus() and integrated it into compute_allocation_weight(). Committed as 5dcf7f478._compute_diversity_bonus() helper function and integrated it into compute_allocation_weight(). The diversity bonus multiplier (0.4–1.2) is applied as a 4th factor in the allocation weight formula, rewarding hypotheses targeting underexplored mechanisms and penalizing those targeting already-heavily-studied areas.