When an agent fails, know why.
Coding agents do not fail in one generic way. MartinLoop uses 13 runtime classes so you can tell the difference between bad logic, hallucination, scope creep, no progress, verification failure, environment problems, budget pressure, and other recurring failure modes.

logic_errorThe change compiles and runs but implements the wrong behavior.
hallucinationThe agent references APIs, files, or symbols that do not exist.
syntax_errorEmitted code fails to parse.
type_errorEmitted code fails type checking.
test_regressionThe change breaks previously passing tests.
scope_creepThe agent edited files or systems outside the run contract.
no_progressIterations repeat without narrowing toward a passing state.
repo_grounding_failureThe agent misread the repository shape or conventions.
verification_failureThe verifier command itself failed to produce a signal.
environment_mismatchLocal environment differs from the assumed target.
budget_pressureRun stopped because the USD ceiling was reached.
safety_leash_blockedA policy or safety rule blocked the proposed action.
sandbox_write_blockedThe run produced a patch but could not persist writes inside the allowed workspace.
A failed run is only useful if the failure is understandable.
Related: Software receipts · Verification · Benchmarks