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

## Rationale

Opt-in critic and goal judge re-prompt up to `max_iterations` and record `capped` vs `complete`. No default check, 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

All opt-in. Tool `response_schema` (pydantic or JSON Schema) errors return to the model as an event (a retry in effect). Stop hooks can veto `finish`. Critic with iterative refinement re-prompts below a threshold. A `/goal` judge reports `complete` or `capped`. [O116][O117][O118][O119][O120][O121]

## Evidence cited by the mark

- [O119] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/critic/base.py#L20-L114 — IterativeRefinementConfig: re-prompt while critic score < success_threshold, up to max_iterations — [S]
- [O120] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/settings/model.py#L378-L420 — `critic_enabled` / `enable_iterative_refinement` settings default False — [S]
- [O121] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/conversation/goal/controller.py#L29-L38 — Goal result status `complete` vs `capped` — [S]

## Evidence also cited by the review finding

- [O116] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/conversation/impl/local_conversation.py#L2700-L2735 — Stop hook on FINISHED: denial injects feedback, status back to RUNNING, loop continues — [S]
- [O117] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/tool/tool.py#L554-L600 — `response_schema` validated via pydantic or Draft202012Validator — [S]
- [O118] software-agent-sdk — https://github.com/OpenHands/software-agent-sdk/blob/cf8158bc25f5552c50ad131a5f0ce2dbc297789b/openhands-sdk/openhands/sdk/agent/agent.py#L1608-L1625 — Argument/response validation errors caught and returned to the LLM as an error event — [S]

## Grading record

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