# goose · Budget enforcement

> Levels are per column and must not be summed, averaged or ranked. A level states which written criterion the runtime's source meets. It is not a measure of quality or task success. Higher is not always preferable.

Source: "Agent runtime comparison: ten open-source agent runtimes, source review", study of 2026-11-28. Mark notation: `3` is the level in the default deployment; `1→4 [opt: …]` is level 1 by default and level 4 in the named configuration; `s` source-verified, `d` documented or test only. Service dependencies are classes (E embedded, O on demand, R resident service, X external server required), not levels.

- Runtime: [goose](https://ai-agents-review.com/runtime/goose.md)
- Column: [Budget enforcement](https://ai-agents-review.com/column/budget-enforcement.md) (Execution controls)
- Mark: 1→2 [opt: lower GOOSE_MAX_TURNS] s
- Default deployment: 1
- Best supported configuration: 2 (opt: lower GOOSE_MAX_TURNS)
- Page: https://ai-agents-review.com/cell/goose/budget-enforcement

## Rationale

Default 1000-turn ceiling is coarse (L1); a practical turn cap via the named setting is a level-2 work limit (R3)

## Rubric criteria for this column

- 0: No limits of any unit, and no usage reporting
- 1: Usage or cost reported only, **or** only coarse safety caps (retry counts, iteration ceilings ≥1000, wall-clock timeouts ≥ hours)
- 2: An enforced work limit (turns/steps/iterations at a practical default) **or** a $/token limit checked after each step, per run
- 3: A $ or token limit checked **before** the model call (admission) for a run, **or** a post-step $ limit covering descendants
- 4: Pre-call admission across the whole delegation tree, with stated settlement of in-flight calls

## Review finding

Turn count only: `GOOSE_MAX_TURNS` defaults to 1000 assistant turns per user turn, checked after each turn; children have separate caps. Per-call tokens and $ are written to a usage ledger (provider price, then user config, then bundled registry) for reporting only. No $/token admission check, no cumulative or descendant cap. [X29][X30][X31][X32]

## Evidence cited by the mark

- [X29] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/oi-kit-agent/src/max_turns.rs#L16-L77 — MaxTurns: ResourceExhausted once assistant turn count >= max_turns; checked after turn — [S]
- [X30] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/config/base.rs#L1373-L1375 — GOOSE_MAX_TURNS default 1000 — [S]
- [X31] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/state_machine/usage.rs#L34-L71 — per-call usage enriched with cost and recorded (reporting) — [S]

## Evidence also cited by the review finding

- [X32] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/providers/canonical_cost.rs#L1-L22 — price precedence provider, user config, bundled registry — [S]

## Grading record

- Grader A (default / best): 1 / 1
- Grader B (default / best): 1 / 1
- Adjudication: R3 (agreed cell changed from 1/1). Default 1000-turn ceiling is coarse (L1); a practical turn cap via the named setting is a level-2 work limit (R3)
