omi
omi copied to clipboard
[Bounty proposal] fix(result-bounds): guard None collections, coerce non-negative limits, and protect bounded_result against None strings ($50 proposed)
Bounty Proposal: Retrieval Result Bounds Resilience & Safe Normalization ($50 USD)
Pull Request: https://github.com/BasedHardware/omi/pull/23142 Target Maintainers: @kodjima33 @josancamon19
Description
Hardens backend/utils/retrieval/tools/result_bounds.py used across all chat retrieval tools:
- Prevents
TypeErrorwhenitemsisNone. - Clamps
max_itemsto non-negative integers, preventing negative Python slicing bugs. - Guards
bounded_resultagainstNonestring inputs. - Adds hermetic unit test suite (10/10 passing) in
backend/tests/unit/test_result_bounds.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! 🙏