omi icon indicating copy to clipboard operation
omi copied to clipboard

Bounty Proposal: Hume Webhook Callback Resilience & Malformed Payload Hardening ($50 USD)

Open gewenbo01-debug opened this issue 1 month ago • 2 comments

Bounty Proposal: Hume Webhook Callback Resilience & Malformed Payload Hardening ($50 USD)

Pull Request: https://github.com/BasedHardware/omi/pull/20554

Description

Hardens backend/utils/other/hume.py to prevent unhandled 500 exceptions during Hume webhook callback ingestion when receiving non-dict prediction elements, invalid emotion arrays, or malformed data wrappers.

Key Improvements

  1. Defensive Hierarchical Guards: Validates types across all nested levels (data -> results -> predictions -> models -> grouped_predictions -> emotions) with clean item-skipping semantics instead of raising AttributeError on .get().
  2. Safe Callback Fallback: HumeJobCallbackModel.from_dict defensively returns safe defaults when passed non-dict payloads or empty sequences.
  3. Hermetic Test Suite: Added comprehensive hermetic unit tests in backend/tests/unit/test_hume_callback_malformed.py (16/16 tests passing, verified by collaborator review).
  4. Maintainer Review Status: Collaborator review completed and approved on PR #20554.

Designated Payout Channels

• EVM (Base / Arbitrum / Polygon USDC): 0x240C74A953Fc04Fe8cD713c68b53e94d9b449F8C • Verification Hub: https://psyverse.fun/payment • PayPal: https://paypal.me/gewenbo888

gewenbo01-debug avatar Oct 15 '26 10:10 gewenbo01-debug

Hi @kodjima33 — I’m evaluating this as an independent contributor. Before starting any additional work, could you confirm whether the proposed $50 is currently funded/approved, whether AI-assisted contributions are eligible, and whether PR #20554 fully covers the bounty scope? If not, please identify the remaining acceptance criteria and preferred assignment or claim process. I won’t submit duplicate work without confirmation. AI assistance will be disclosed.

deathbook avatar Oct 16 '26 13:10 deathbook

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