You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Handle invalid negative dynamic-cost rows without extraction panics #70
Opened issue from Codex when investigating this PR: #67.
with-dynamic-cost creates i64 cost tables, while the current extraction cost type and documented policy require nonnegative costs. A computed set-cost value or direct cost-table write can therefore store a negative row that later reaches DynamicCostModel, where assert!(cost >= 0) panics.
Follow-up work should ensure that extract, multi-extract, and keep-best never produce a Rust panic from these rows. The design should decide among write-time validation, an extraction error, ignoring invalid rows, or adopting signed costs.
Activity