mirror of
https://github.com/elder-plinius/OBLITERATUS.git
synced 2026-12-06 19:13:55 +01:00
`refusal_rate` and its callers counted empty, reasoning-only and degenerate completions as non-refusals, so the Bayesian optimizer objective and tourney and benchmark rankings could reward an edit that destroyed output. - New `measure_refusals` returns a `RefusalMeasurement` (refused, valid, invalid, total, rate over valid completions, invalid rate). - `refusal_rate`, `refusal_rate_with_ci` and `heretic_eval.arditi_refusal_rate` gain `exclude_invalid`. The default keeps the legacy all-response denominator for a deprecation window; `refusal_rate_with_ci` adds valid, invalid and total counts. - Verification metadata adds invalid counts, the valid-only rate and a refusal objective that counts invalid completions as refusals. - The Bayesian optimizer, tourney and benchmark rankings use that objective and record invalid rates; displayed refusal rates are unchanged. - docs/refusal-metrics.md documents the denominators and the planned default change. Fixes #312 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>