GPT-5 finding
Direction parsing treats any unrecognized value as DOWN, risking unintended bets
- agenticbets/scripts/agenticbets.py:224-226
Any direction other than 'up' or 'bull' is coerced to DOWN. Typos (e.g., 'upp', 'downn') or unexpected synonyms would silently place a DOWN bet, causing user funds to be committed to the wrong side.
Recommendation
Strictly validate direction against an explicit allowlist: {'up','bull','down','bear'}. If invalid, print usage and exit non-zero. Consider normalizing to {'up','down'} for clarity in the confirmation output.