Bounty Proposal: Hume Webhook Callback Resilience & Malformed Payload Hardening ($50 USD)
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
- Defensive Hierarchical Guards: Validates types across all nested levels (
data->results->predictions->models->grouped_predictions->emotions) with clean item-skipping semantics instead of raisingAttributeErroron.get(). - Safe Callback Fallback:
HumeJobCallbackModel.from_dictdefensively returns safe defaults when passed non-dict payloads or empty sequences. - 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). - 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
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.
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! 🙏