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

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardOfficial Campaign | FWC26Campaign: Official Campaign | FWC26Stellar WaveIssue proposed for the Drips Stellar Wave programarea: agentMulti-agent bidder servicecomplexity: mediumExpected medium implementation complexityenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions