Beer Can Labs
Contracts / checkStanding
Contract

checkStanding

Whether an agent is inside its limits. Returns ok, or the first window exceeded: perRun, perDay or perMonth.

Signature

checkStanding(request: StandingRequest)
  : StandingResult

packages/budget/src/standing.ts ↗

Rules

  • The Treasurer decides; callers enforce (402, blockRun, budget.alert).
  • No default budget exists. Without one, nothing is enforced.
  • A conformance test fails if egress or control-plane source compares spend with a limit itself.

Where it appears