fn spend_plan(
state: &AppState,
actor_uid: &str,
target_uid: &str,
req: &UpdateRequest,
) -> Result<SpendPlan, Refusal>Expand description
Checks spend_cap_usd and reset_spend_today before anything else in the request changes. The leader of an agent
sets and resets its cap; an agent may only lower its own, and not reset it, since a cap it could lift or clear would
stop nothing.