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 start active state waiting decision terminal success failure / exit

Main Path + Waits

  • • The run has five ordered phases from queue to completion
  • • Approval and missing input pause the run without ending it

Recovery + Terminal Exits

  • • Failed loops back while retry budget remains
  • • Cancelled and Expired are terminal exits with no return path