AgentFlow
Workflows

Récupération après échec

Rétablissement après une vérification, revue ratée ou exécution interrompue.

Récupération après échec

AgentFlow matérialise des états de tâches explicites plutôt qu’imaginer progression à partir fichiers perdus récupération propre exige suivre ces transitions ou utiliser surcharges orchestrateur (--force, helpers resume) où supporté.

Machine à états

Statuts forcés depuis workflow/state_machine.go:

stateDiagram-v2
  [*] --> pending
  pending --> planned
  planned --> enriched
  enriched --> running
  running --> implemented
  implemented --> verified
  verified --> reviewed
  reviewed --> ready_for_pr
  running --> failed
  implemented --> verify_failed
  verified --> review_failed
  verify_failed --> implemented
  review_failed --> verified

Transitions hors graphe erreur sauf commandes précises autorisées --force.

Recettes fréquentes

Échec verify

# corriger code dans worktree ensuite:
agentflow verify billing-v2 --force

Échec review

agentflow review billing-v2 --agent codex --force

Exécution interrompue

agentflow status
agentflow resume <run-id>          # affiche prochain étape possible plan|enrich|dev...
agentflow continue "resume billing-v2"   # continuation intentionnelle

Nettoyage worktrees

agentflow clean

Supprime suivant policy cleanup_policy (keep_failed conserve arbres erreur).

Rapports après incident

Pour relire pistes après coup ou aligner timelines reviews combinez rapport ID + investigative scans:

agentflow report <run-id>
agentflow investigate billing-v2

Voir aussi