omi
omi copied to clipboard
[Bounty proposal] fix(notification-settings): validate action, coerce hour, and harden user_id resolution ($50 proposed)
Bounty Proposal: Notification Settings Tool Resilience & Validation ($50 USD)
Pull Request: https://github.com/BasedHardware/omi/pull/23137 Target Maintainers: @kodjima33 @josancamon19
Description
Hardens backend/utils/retrieval/tools/notification_settings_tools.py against unexpected tool invocation arguments:
- Prevents unhandled
AttributeErrorwhenactionisNoneor non-string. - Coerces
hourfrom strings to integers and validates 0-23 bounds inset_time. - Supports direct top-level
user_idinconfigalongside nestedconfigurable. - Adds hermetic unit test suite (10/10 passing) in
backend/tests/unit/test_notification_settings_tools.py.
Settlement Details
- Proposed Bounty: $50 USD
- Payout Address:
0xb95e2AD8E9D9e9BF902c7531577Cd0E1ceB203D4(EVM / Base Mainnet USDC)
Thanks for putting this together. We aren't doing bounties at the moment, so we're closing the bounty proposal issues for now — thanks for the fix! 🙏