# openclaw · 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: [openclaw](https://ai-agents-review.com/runtime/openclaw.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/openclaw/result-checks

## Rationale

`before_agent_finalize` forces up to 3 revisions, fails open, then releases

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

TypeBox validation of tool arguments; errors go back as tool results. `before_agent_finalize` hooks may force up to 3 revision passes and fail open; then the answer is released. Opt-in: `llm-task` (JSON schema; throws on mismatch), autoreview. No default check of correctness. [O73][O74][O75][O76][O77][O78]

## Evidence cited by the mark

- [O74] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/harness/lifecycle-hook-helpers.ts#L116-L142 — `before_agent_finalize` hook: throwing hook → `continue` (fail-open) — [S]
- [O75] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/embedded-agent-runner/run/terminal-resolution.ts#L374-L396 — Revision request activates hidden retry prompt and returns `retry`; otherwise completes run — [S]
- [O76] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/src/agents/embedded-agent-runner/run/terminal-retry-state.ts#L1 — `MAX_BEFORE_AGENT_FINALIZE_REVISIONS = 3` — [S]

## Evidence also cited by the review finding

- [O73] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/packages/agent-core/src/agent-loop-tool-execution.ts#L52-L58 — TypeBox tool-argument validation; errors returned as tool results — [S]
- [O77] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/extensions/llm-task/src/llm-task-tool.ts#L148-L168 — Opt-in llm-task: JSON parse + schema validation; throws on mismatch — [S]
- [O78] openclaw — https://github.com/openclaw/openclaw/blob/ac0771450bce15e44c3d4e3dda76ccf38f8b6c61/extensions/autoreview/index.ts#L10-L17 — Opt-in autoreview requires sandbox and Auto Review skill — [S]

## Grading record

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