Skip to content

[Bounty proposal] fix(demand-processing-tools): harden process_recent_conversations validation, numeric coercion, and config resilience ($50–$100 proposed) #23337

Closed as not planned

Description

@Dimank92

Bounty Proposal: Demand Processing Tools Resilience & Numeric Coercion ($50–$100 USD)

Pull Request: #23336
Target Maintainers: @kodjima33 @Git-on-my-level @josancamon19

Description

Hardens backend/utils/retrieval/tools/demand_processing_tools.py against edge cases, unhandled type mismatches, and runtime failures during conversation demand processing:

  1. Config Extraction Resilience: Guards against None configurable values (AttributeError prevention) and adds seamless fallback to agent_config_context.
  2. Numeric Coercion & Clamping: Safely coerces LLM string and float parameters to integer types and clamps them strictly to 1 <= hours <= 6 and 1 <= limit <= 20, preventing unhandled ValueError crashes from utils.conversations.demand_processing.process_recent.
  3. Graceful Error Handling: Catches downstream dependency/storage errors and returns structured JSON with ready=False rather than unhandled exceptions bubbling up to break the agent stream.
  4. Hermetic Test Suite: Adds 10 unit tests in backend/tests/unit/test_demand_processing_tools.py with 100% pass rate (39/39 across all demand processing tests).

Settlement Details

  • Proposed Bounty: $50–$100 USDC
  • Payout Wallet (Polygon / Base / Arbitrum / Stellar): 0xC345C07229307d4f1c7935aD2cAe48e390215808

Activity

  1. moved this from Someday to In progress in omi TODO / bountieson Oct 22, 2026
  2. aryanorastar commented on Oct 31, 2026

    @aryanorastar
    Collaborator

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

  3. moved this from In progress to In review in omi TODO / bountieson Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions