omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty proposal] fix(memory-tools): harden user_id extraction, coerce limit/offset, and validate search query ($50 proposed)

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

Summary

Hardens `memory_tools.py` in `backend/utils/retrieval/tools/` against:

  • Unhandled top-level `user_id` and `None` configurable mappings.
  • Empty or whitespace query inputs in `search_memories_tool`.
  • Negative limits and offsets causing invalid slice indexing or database queries.
  • `None` configurable in `_publish_memory_refs`.

Paired Pull Request: #23188 Pull Request URL: https://github.com/BasedHardware/omi/pull/23188

Proposed Bounty: $50 USD Payout Address (Base Mainnet USDC): 0xb95e2AD8E9D9e9BF902c7531577Cd0E1ceB203D4

Booshdag-io avatar Oct 22 '26 03: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 12:10 undivisible