# goose · Result checks

> 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: [Result checks](https://ai-agents-review.com/column/result-checks.md) (Operations and verification)
- Mark: 3 s
- Default deployment: 3
- Best supported configuration: 3
- Page: https://ai-agents-review.com/cell/goose/result-checks

## Rationale

Recipe `retry.checks` retry up to `max_retries`, then emit an error (fails closed). No default verifier, so not level 4

## Rubric criteria for this column

- 0: No result checks
- 1: Structural checks only (schema on tool args/output, or structured final output), with no hook for result checks
- 2: Owner-defined checks available (Stop/finalize hooks, check scripts), but on failure the answer is released after a cap or fails open
- 3: Owner-defined checks where failure either blocks release with an error **or** re-prompts with a stated cap and records the outcome
- 4: Level 3, plus checks available by default (a built-in verifier or default check) **and** retry/release policy configurable per check

## Review finding

Optional recipe/delegate `json_schema` adds a jsonschema-validated `final_output` tool; the model is nudged until it calls it. Recipe `retry.checks` (shell exit 0) retry up to `max_retries`, then emit an error. A Stop hook blocks at most 8 times, then releases. [O19][O21][O23][O24][O25]

## Evidence cited by the mark

- [O21] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/retry.rs#L14-L70 — Recipe success checks: `sh -c` commands, non-zero exit = failure; no `current_dir` set (runs in goose process cwd) — [S]
- [O23] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/state_machine/ops_retry.rs#L255-L313 — Checks pass → finish; fail → on_failure + reset/retry; at `max_retries` an error message "Maximum retry attempts … exceeded" is emitted — [S]
- [O25] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/services.rs#L157-L159 — Block cap from `GOOSE_STOP_HOOK_BLOCK_CAP`, default `DEFAULT_BLOCK_CAP` = 8 (ops_stop_hook.rs:16) — [S]

## Evidence also cited by the review finding

- [O19] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/oi-kit-agent/src/final_output.rs#L22-L57 — FinalOutputTool: jsonschema-validated `final_output` tool for recipe/delegate `response.json_schema` — [S]
- [O24] goose — https://github.com/aaif-goose/goose/blob/c546eaa1cd02696e4cd628e203df51429e158175/crates/goose/src/agents/state_machine/ops_stop_hook.rs#L77-L110 — Stop hook Deny injects hidden user message and continues; above block cap, yields with a warning (answer released) — [S]

## Grading record

- Grader A (default / best): 3 / 3
- Grader B (default / best): 3 / 3
