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

## Rationale

Owner Stop hooks re-prompt with no stated cap. The schema is enforced provider-side only, so level 3's stated-cap/block condition is unmet

## 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

Hooks: command/MCP-tool hooks (on by default). A Stop-hook block re-prompts the turn, with no runtime cap (Note O-2). `--output-schema` goes to the provider as a strict schema; no local validation was found. `codex review` is an explicit review agent. No built-in check of task correctness. [O8][O9][O10][O11][O12]

## Evidence cited by the mark

- [O9] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/hooks/src/events/stop.rs#L283-L305 — Stop hook output parsed into stop / block (with reason) / invalid-block outcomes — [S]
- [O10] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/core/src/session/turn.rs#L862-L912 — Stop-hook block appends hook prompt and continues the turn with `stop_hook_active=true`; no runtime iteration cap at this site; block without prompt is ignored with a warning — [S]
- [O11] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/core/src/client_common.rs#L40-L58 — `output_schema` sent with `output_schema_strict: true` ("Responses API should strictly validate") — [S]

## Evidence also cited by the review finding

- [O8] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/hooks/src/engine/discovery.rs#L818-L837 — `prompt` and `agent` hook handlers skipped as "not supported yet" — [S]
- [O12] codex — https://github.com/openai/codex/blob/065e18b04021008e2e7d504db8dc50275f589f73/codex-rs/exec/src/cli.rs#L78-L79 — `--output-schema` flag on non-interactive exec — [S]

## Grading record

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