Agent Run Lifecycle

Agent Run Lifecycle A lifecycle diagram generated by Archify. 01 / Lifecycle phases 02 / Interruptions + Recovery loop 03 / Terminal exits Queued · request accepted · Lifecycle phases · entry 01 Queued request accepted entry Planning · build task graph · Lifecycle phases · model 02 Planning build task graph model Executing · tool calls · Lifecycle phases · work 03 Executing tool calls work Reviewing · quality gate · Lifecycle phases · check 04 Reviewing quality gate check Completed · final response · Lifecycle phases · done 05 Completed final response done Needs Approval · human gate · Interruptions · pause Needs Approval human gate pause Blocked · missing input · Interruptions · wait Blocked missing input wait Failed · recoverable error · Recovery loop · retryable Failed recoverable error retryable Cancelled · user stopped · Terminal exits · terminal Cancelled user stopped terminal Expired · timeout · Terminal exits · terminal Expired timeout terminal Legend initial state active waiting decision success failure / exit final state