AuthorityLayer exposes three runtime controls:
Use budget to halt a run after a configured spend threshold.
budget: { dailyUSD: 25 }Use loopGuard to stop repeated tool execution within a single run.
loopGuard: { maxToolCallsPerRun: 12 }Use toolThrottle to enforce per-minute limits for tool usage.
toolThrottle: { maxCallsPerMinute: 30 }- Limits are opt-in and only apply when the corresponding configuration block is provided.
wrap()defines the runtime boundary that is measured.tool()is the tracked execution path for tool calls and rate limits.recordSpend()applies explicit provider cost data to budget enforcement.