Human input paths reject NaN/Inf; deposit rate clamped; per-loan bids ±cap (Closes #120) #129

Merged
robertismo merged 1 commit from 120-finite into master 2026-10-01 15:42:25 +00:00
Owner

Every human numeric entry now rejects non-finite input, matching the AI-side guard: promptRateDef (deposit rate, auction bid), the per-loan bid, the bond offer price/size, and the bond take amount. The deposit rate is clamped to [0, cap] instead of accepting anything non-negative, and the per-loan bid clamp is widened to ±cap so negative rates are expressible per loan (the #126 human half).

Verified with a scripted run typing NaN/Inf at every prompt: all seven rejected, zero NaN/Inf lines in the entire game, no divergences.

Every human numeric entry now rejects non-finite input, matching the AI-side guard: promptRateDef (deposit rate, auction bid), the per-loan bid, the bond offer price/size, and the bond take amount. The deposit rate is clamped to [0, cap] instead of accepting anything non-negative, and the per-loan bid clamp is widened to ±cap so negative rates are expressible per loan (the #126 human half). Verified with a scripted run typing NaN/Inf at every prompt: all seven rejected, zero NaN/Inf lines in the entire game, no divergences.
Every human numeric entry now rejects non-finite input, matching the
AI-side guard from ruling #91: promptRateDef (deposit rate, auction
bid), the per-loan bid, the bond offer price/size, and the bond take
amount. The deposit rate is also clamped to [0, cap] instead of
accepting anything non-negative, and the per-loan bid clamp widened to
+-cap so negative rates are expressible per loan, same as the "all"
command and the hook path (issue #126).

Verified by a scripted run typing NaN/Inf at every prompt: all
rejected, zero NaN/Inf lines in the whole game, no divergences.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Winnie/bankwars!129
No description provided.