Skip to content

agent: enforce mandate spending caps with pre-flight balance check #159

Description

@karagozemin

Summary

The multi-agent bidder in services/agent should verify a bid stays within its mandate cap and that the account has sufficient balance before submitting.

Motivation

An agent exceeding its mandate or bidding without funds wastes fees and can strand a round.

Acceptance criteria

  • Pre-flight check comparing bid + escrow against mandate cap and balance.
  • Clear typed error when a bid would exceed the cap.
  • Tests for within-cap, over-cap, and insufficient-balance cases.
  • Behavior documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26area: agentMulti-agent bidder servicecomplexity: mediumExpected medium implementation complexityenhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions