Bounty proposal: reject non-finite translation timeout configuration
Would you fund US$10, payable privately via PayPal after acceptance and merge, for rejecting non-finite translation timeout values with focused regression coverage?
At current source blob 5b220d4b22a89b0b62aac4b91729531f470f7b25, backend/config/translation.py::_positive_float accepts any value for which value <= 0 is false. Python's float('nan') satisfies that condition because comparisons with NaN are false, while float('inf') is positive. As a result, TRANSLATION_NLLB_TIMEOUT_SECONDS=nan or inf passes startup/runtime profile validation and propagates a non-finite timeout to the translation client instead of failing at the configuration boundary.
The candidate requires math.isfinite(value) in addition to positivity. Ordinary positive integer/decimal values remain unchanged; zero, negatives, invalid text, NaN, and both infinities are rejected.
Focused exact-function validation across eight cases: current behavior 6 pass / 2 fail; candidate 8 pass / 0 fail. I have not run the full backend suite, an HTTP translation client, deployment manifests, or a live NLLB service.
Open/closed issue and all-PR searches for the environment key, _positive_float, NaN/infinity, and non-finite translation timeouts found no matching report or implementation. No reward or assignment is assumed. Please confirm scope and reward before repository integration.