omi icon indicating copy to clipboard operation
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)

Open Booshdag-io opened this issue 1 month ago • 1 comments

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:

  1. Prevents TypeError when items is None.
  2. Clamps max_items to non-negative integers, preventing negative Python slicing bugs.
  3. Guards bounded_result against None string inputs.
  4. 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)

Booshdag-io avatar Oct 21 '26 21:10 Booshdag-io

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! 🙏

undivisible avatar Oct 22 '26 11:10 undivisible