bid-loans/bid-loan builtins clamp to ±cap like every other path (Closes #126) #135

Merged
robertismo merged 2 commits from 126-negbuiltin into master 2026-10-01 15:52:09 +00:00
Owner

The two action builtins clamped loan bids to [0, cap] while the hook-return path, the engine, and the wizard's documented contract all use ±cap — brains using the action API could never submit the negative undercut bids the v0.5.0 negative-rates feature exists for. Both builtins now clamp to ±cap.

Verified: a brain bidding (bid-loans -0.05) books loans at −5.00% and wins them, where it previously clamped to 0. Full suite + vet clean.

The two action builtins clamped loan bids to [0, cap] while the hook-return path, the engine, and the wizard's documented contract all use ±cap — brains using the action API could never submit the negative undercut bids the v0.5.0 negative-rates feature exists for. Both builtins now clamp to ±cap. Verified: a brain bidding (bid-loans -0.05) books loans at −5.00% and wins them, where it previously clamped to 0. Full suite + vet clean.
bid-loans/bid-loan builtins clamp to +-cap like every other path (Closes #126)
All checks were successful
build / build (push) Successful in 30s
36e0543101
The two action builtins clamped loan bids to [0, cap] while the
hook-return path, the engine, and the wizard's documented contract all
use +-cap, so brains using the action API could never submit the
negative undercut bids the v0.5.0 negative-rates feature exists for
(the human per-loan path was already widened in #120). Both builtins
now clamp to +-cap.

Verified: a brain bidding (bid-loans -0.05) books loans at -5.00% and
wins them, where it previously clamped to 0.
Merge branch 'master' into 126-negbuiltin
All checks were successful
build / build (push) Successful in 28s
a9341a7a00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
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!135
No description provided.