What you can limit
How levels combine
A request must pass the organization, the workspace and the agent. Where levels disagree, the lowest limit wins. An agent can’t raise a limit set above it, and a workspace can’t raise one set on the organization. An agent can read its Bud sending limits withme.describe but can’t change them.
Spend caps
A spend cap has a mode that decides what happens when the estimated spend for the period reaches it. Notify only, the default, warns and refuses nothing. Refuse billable work refuses new billable requests from then until the cap is raised or the period ends. Either way, emails go out at 50%, 80% and 100%: to the organization’s billing contact for an organization cap, and to the workspace’s admins for a workspace or agent cap.Spend caps are soft. Spend is recomputed continuously, so requests sent in the last couple of minutes before a cap takes effect can still go through. Up to about 2 minutes of overshoot is billed.
When a limit is reached
The request is refused and says which limit fired:rate_limitedandquota_exceededcome withretry_after_msand name the limit that fired, with itsscope(organization,tenantfor the workspace, oragent) in Semantik.spend_cap_reachedis a 402. Raise the cap or wait for the next period.
Custom rules
Beyond the limits above, you can write rules in Cedar on the agent, workspace and organization policy pages. A rule allows an action, forbids it, or marks it as needing a person’s approval. An organization rule can only narrow what is allowed, and a workspace rule can only narrow or define roles, so a lower level never overturns a forbid above it. A rule that cannot be evaluated counts as a forbid. Rules apply to Bud mail today. A Bud send under rules it cannot check is refused withpolicy_unavailable rather than sent unchecked.
