Skip to main content

Module fix_outcomes

Module fix_outcomes 

Source

Structs§

FixOutcomeDaily
FixOutcomeInput
FixOutcomeReason
Top N most-common failed_reason values within the window. The reason text is used verbatim — fix.rs already strips the CoreError Internal error: prefix before inserting, so what comes back is the user-facing sentence.
FixOutcomeSplitSummary
Honest split of accepted=1 rows into real wins vs accepted patches that did not apply. Reporting raw accepted=1 conflates these cases; user-facing acceptance metrics should use accepted_and_applied.
FixOutcomeSummary

Functions§

accepted_signature_count
daily
record_many
resolve_rule_id_by_name
Best-effort rule_name → skills.id lookup. Used by both the fix_outcomes write path (to back-fill rule_id at insert time when the caller only knew the human name) and by the one-shot difflore skills backfill-attribution CLI command.
split_summary
Honest split of accepted=1 rows into real wins vs phantom accepts. See FixOutcomeSplitSummary for why this exists. days <= 0 is clamped to 1 to match the other window-scoped readers in this file.
summary
top_failure_reasons