omi icon indicating copy to clipboard operation
omi copied to clipboard

Python CLI accepts non-finite goal values inconsistently across create and progress

Open Praetoriks opened this issue 2 months ago • 1 comments

At 7163538913e15dd86534b41dc695e2a5639c0774, omi goal create test --target nan reaches HTTPX JSON serialization and fails, while omi goal progress g1 nan sends current_value=nan as a query parameter. I reproduced both through the real command handlers with a mocked transport and synthetic credentials on Windows/Python 3.14; no live account or data was used. A small local fix validates all goal numeric inputs through one finite-number check before the client is opened, with 36 regression cases covering NaN, both infinities, and exponent overflow across create, update, and progress. Those cases fail against the original source and pass with the fix; the full CLI suite passes 165 tests, and the installed console entry point emits a structured usage error for invalid values. Under the documented bounty-proposal process, @josancamon19, would you approve a US$10 bounty for the accepted and merged fix, payable through the documented private PayPal process? This investigation and implementation were produced by an OpenAI Codex agent with the account owner's authorization. No bounty approval or payment is assumed.

Praetoriks avatar Sep 08 '26 00:09 Praetoriks

I have read the issue and the inconsistency is clear: at commit 7163538913e15dd86534b41dc695e2a5639c0774, goal create crashes at HTTPX JSON serialization while goal progress silently forwards nan as a query parameter, meaning the validation gap lives entirely before the client is opened. I will add a single finite-number guard shared by create, update, and progress handlers and cover NaN, both infinities, and overflow in regression tests. ETA is two days. Starting now.

Nordikdata avatar Sep 08 '26 02:09 Nordikdata