omi icon indicating copy to clipboard operation
omi copied to clipboard

[Bounty Proposal] Backend: Apple Health tools exception leak & unhandled crash prevention

Open gewenbo888 opened this issue 2 months ago • 1 comments

Bounty Proposal: Apple Health Tools Exception Leak & Crash Prevention

  • Target Component: backend/utils/retrieval/tools/apple_health_tools.py
  • Issue: All 5 Apple Health retrieval tools called prepare_apple_health_access outside exception handling and returned raw exception strings ({str(e)}), risking internal database path and diagnostic leaks (FC-secret-printed-to-plugin-logs) and unhandled crashes.
  • Implemented Fix: #15615
    • Wrapped prepare_apple_health_access within try: blocks across all 5 tools.
    • Sanitized return strings across all tools with generic user-friendly messages while retaining full debug tracebacks via logger.error(..., exc_info=True).
    • Added hermetic stdlib-compatible test suite backend/tests/unit/test_apple_health_tools_sanitization.py.
    • Passed all 29/29 manifest checks.
  • Proposed Bounty: $50.00 USDC
  • Payout Address: 0x240C74A953Fc04Fe8cD713c68b53e94d9b449F8C (ENS: gewenbo.eth, Network: Base / Arbitrum / Mainnet)

gewenbo888 avatar Sep 22 '26 02:09 gewenbo888

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