state: error with error_message set | Sandbox failed to provision (provider, template or secrets) | runtm-api template get <tmpl_id> and check has_all_required: false; verify team secrets with runtm-api secrets list --team. |
state: paused with no recent activity | Auto-paused after 20 minutes idle | runtm-api session resume <id> then re-prompt (exec, file and prompt commands also auto-resume). |
agent_status: awaiting_approval | The run hit an approval gate and is waiting for a decision, not broken | runtm-api session approvals list <id>, then approvals resolve <id> <approval_id> --approve or --reject. |
last_prompt.status: timed_out | Prompt hit the prompt_timeout_minutes cap | Re-run with runtm-api session prompt <id> "...", or split into smaller steps. |
last_prompt.status: error | Agent or model error | Read last_prompt.error; check runtm-api guardrails can-deploy for org policy issues. |
| Prompt running forever, no tool output | Stuck or hung | runtm-api session prompt-cancel <id>, then runtm-api session status to confirm. |
| Files modified but no PR | Agent did not push | runtm-api session git <id> status, then runtm-api session git <id> create_branch_and_pr --pr-title "...". |
| Build failing repeatedly | Template environment broken | runtm-api template fix-session <tmpl_id> opens a session on the template to repair it; save a snapshot only once verified. |
| Command blocked unexpectedly | A guardrail denied it | runtm-api template guardrails resolve <tmpl_id> shows the effective allowlist, hook and network set and which rule applies (Guardrails and approvals). |
| Deployed but the app is down | Deployment failed after the session finished | runtm-api deployments get <dep_id> and deployments logs <dep_id> --type runtime --lines 100; find dep_id with session get <id> | jq .last_deployment_id. |
| Run finished but was it any good? | Nothing wrong; you want the verdict | runtm-api session grade <id>; requires evaluation categories on the agent (Measure success). |
grade says grader_unavailable | No Anthropic key on the org, or a grader API error | Add a provider key, then re-run a seeded case; old runs are not regraded retroactively. |