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

## Rationale

Hooks: exit 2 blocks, but errors and timeouts fail open; Stop-hook re-prompts have no stated cap

## 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: exit 2 blocks; errors and timeouts fail open. A Stop-hook block re-prompts only in the TUI, with no visible cap. Workflow `json` output that fails to parse is marked `failed`; `schema` and `response_format` are enforced by the server/SDK [D]. A memory pre-commit validator exists. [O47][O48][O50][O51][O53]

## Evidence cited by the mark

- [O47] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/hooks/executor.ts#L280-L296 — Hook exit mapping: 0 allow, 2 block, other/timeout/null = error — [S]
- [O48] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/hooks/executor.ts#L330-L390 — Aggregation: BLOCK stops; ERROR only appends feedback (fail-open); PreToolUse `updatedInput` — [S]
- [O50] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/cli/app/use-conversation-loop.ts#L1342-L1381 — Only Stop-hook call site (TUI): block re-enters conversation with system-reminder; no cap visible here — [S]

## Evidence also cited by the review finding

- [O51] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/tools/workflow/sdk-spawner.ts#L630-L653 — Workflow worker: `schema` returns SDK structuredOutput; `json` mode parse failure → `failed: true` — [S]
- [O53] letta-code — https://github.com/letta-ai/letta-code/blob/52a3bb3bc1999a2fd0f06b1dc2e4b0d94a925c21/src/agent/memory-git-hooks.ts#L181-L188 — Pre-commit validator blocks invalid memory commits — [S]

## Grading record

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