Votre agent a-t-il déjà prétendu avoir fait quelque chose qui ne s'est pas réellement produit ?

Pas une erreur. Pas un plantage. L’agent dit « email envoyé » ou « remboursement traité », la trace est propre, aucune exception nulle part — et la chose ne s’est jamais produite. Une fois que c’est arrivé quelques fois, ça me gêne que chaque outil d’observabilité que j’ai essayé le signale comme un succès, parce que du point de vue de la trace, c’en est un.

Deux questions pour ceux qui exécutent des agents ou des workflows en production :

Cela t’est-il arrivé ?

Si oui — comment l’as-tu découvert ? Plainte d’un client, ou quelque chose l’a-t-il détecté ?

J’aimerais vraiment savoir si c’est courant ou si j’ai simplement mal construit les choses.

Bonjour Aditya,

C’est un problème courant connu sous le nom de Silent Agent Failure (Défaillance silencieuse de l’agent). Il se produit quand l’LLM suppose qu’un outil a réussi en se basant sur une sortie textuelle, ou quand un outil échoue silencieusement sans générer de code d’erreur.

Voici comment le prévenir et le détecter :

  1. Vérification déterministe : Ajoutez une étape immédiatement après l’agent pour vérifier indépendamment le résultat via une API/Base de données (par exemple, vérifier dans Stripe que le remboursement est effectivement enregistré).

  2. Exiger des preuves d’exécution : Forcez les outils à retourner un JSON strict avec des identifiants spécifiques (transaction_id, message_id). Si l’identifiant manque, traitez l’étape comme un échec.

  3. Erreurs strictes de sous-flux : Assurez-vous que les sous-flux des outils lèvent des erreurs explicites (On Error: Stop Workflow) sur les réponses non-200 pour que les défaillances ne soient pas masquées par un texte lisible.

  4. Tâches Cron d’audit : Exécutez des vérifications périodiques pour mettre en correspondance les actions demandées avec les journaux de backend réels afin de détecter les écarts au plus tôt.

Merci — le point de vérification déterministe est celui sur lequel je reviens aussi constamment.

Mais pour revenir à ma question initiale : en as-tu eu un de ces cas en production toi-même ? Je m’intéresse moins aux schémas de prévention qu’à ce que ça a ressemblé quand c’est arrivé — ce que l’exécution a signalé, et combien de temps avant que quelqu’un s’en aperçoive.

Je pose la question parce que tout le monde à qui je parle s’accorde à dire que c’est un problème en principe, et presque personne n’a l’histoire.

Bonne question ! Pour être transparent, je n’ai personnellement jamais perdu d’argent à cause d’une défaillance silencieuse d’un agent dans ma propre configuration de production en direct—principalement parce qu’on nous avait avertis tôt de mettre en place des étapes de vérification.

Cependant, un collègue dans l’espace de l’automatisation a vécu ce scénario exact avec un agent d’assistance émettant des remboursements :

  • La configuration : L’agent a déclenché un outil pour appeler Stripe pour des remboursements partiels.

  • Ce que l’exécution a signalé : La trace d’exécution n8n était complètement verte (200 OK), et le LLM a répondu avec assurance : « J’ai émis un remboursement de 20 dollars. »

  • Ce qui s’est réellement passé : Le sous-workflow a rencontré une erreur de code de devise invalide, mais l’outil API a attrapé l’erreur correctement et a renvoyé { "success": false } à l’intérieur d’un statut 200 OK. Le LLM a vu la réponse textuelle, a ignoré le flag false, et a halluciné que l’action avait réussi.

  • Combien de temps avant d’être remarqué ? 3 jours plus tard, lorsque le client a fait un suivi en demandant où était son argent.

Donc bien que ce soit une histoire simulée basée sur les modèles de l’industrie, le problème du masquage d’erreur 200 OK dans n8n est très réel !

1 « J'aime »

Yes, it’s definitely happened to me, and I don’t think it’s a sign you’ve built things badly. The trace only knows the steps ran. It has no idea whether the thing you wanted actually happened in the real world.

The first time, I found out from a user. Since then I’ve done two things:

  1. Check the result after every important action. For example, look up the refund or email by the ID the tool returned. If it isn’t there, throw an error with a Stop and Error node.
  2. Run a daily reconciliation workflow. It compares what the agent says it did with what the external system shows, and alerts on anything that doesn’t match.

Also worth checking: in some cases the agent never called the tool at all and just said it did. The execution log shows this right away.

Curious whether yours were mostly the agent hallucinating the action, or the API accepting the request and failing later?

This is the exact distinction that led me to build UAEP:

EXECUTION SUCCESS ≠ VERIFIED DESTINATION REALITY

A clean trace establishes what the workflow recorded. It does not necessarily establish that the authorised destination objective became true.

I would also be careful about treating a returned transaction_id or message_id as automatic proof. An authentic identifier can still belong to the wrong resource, version, execution or environment. A provider can accept an operation without the final destination satisfying the objective.

UAEP separates:

• the agent or workflow claim;
• the executor or tool result;
• independently observed destination reality;
• whether the evidence applies to the exact objective, execution, resource and authority;
• whether recovery actually closes and reverifies the original objective.

The result becomes VERIFIED only when the required destination facts are established. If an action may have committed but its response was lost—or the evidence is stale, incomplete or mismatched—the truthful result may remain UNKNOWN / NOT_VERIFIED rather than being forced into SUCCESS or FAILURE.

UAEP is not just a theory. Its current implementation is complete and internally qualified within its declared evaluation boundary. It has been exercised against false executor success, wrong destinations, stale and wrong-resource evidence, partial effects, ambiguous commits, unsafe retries, conflicting observations and recovery that ran without closing the original objective.

Within those bounded qualified demonstrations:

FALSE VERIFIED = 0

That is bounded evidence, not a claim that UAEP cannot fail. I have opened the implementation to a controlled falsification challenge:

For an n8n workflow, the key design question is:

What destination-connected observer can establish the required state independently of both the AI Agent node and the tool path that produced the success claim?

Yes, and it’s common. The pattern I’d suggest: never trust the agent’s own “done”. After each action, read the system of record back (Gmail sent folder, Stripe refund ID, the CRM field) and only mark success when it matches. A scheduled reconcile catches what slips through.

Curious what you ended up doing: did you add a read-back step, or catch these some other way?

Thanks @alexander_ko. I agree: reading back the system of record and running scheduled reconciliation are good engineering practices.

The hard part is defining what “matches” must prove. If an agent is authorised to refund $500 to Customer A, finding a genuine $500 refund is not enough if it belongs to another customer or execution—or if the required final state was never reached. The read-back can be truthful while the conclusion “the authorised objective is complete” is not.

That broader distinction led me to develop UAEP. It separates the execution claim from destination reality and asks whether the evidence applies to the exact objective and authority. If the evidence cannot establish that, the outcome remains unresolved; if it establishes that the objective was not met, it is NOT_VERIFIED.

Reconciliation can find a discrepancy later, but it cannot undo an unauthorised effect that already committed. Preventing that requires enforcement at the external execution boundary; UAEP should not claim that a read-back alone provides it.

I’m not suggesting these checks cannot be built in n8n. I’m interested in how you bind a read-back to the intended customer, execution and current authority before declaring the whole task successful.

— Adam Mangan

Adding one thing the thread hasn’t covered yet. Reading the record back catches “nothing happened”. The sneakier cases are “something happened, just not what was said”: the refund landed on a different order, the amount was off, or it went through for a user whose access had already been revoked. A read-back that only checks “a refund exists” passes all three.

What’s worked for me is writing the expected end state per case (exactly one refund, on this order, for this amount, by someone allowed to ask), then re-running the same cases after every prompt or model change and diffing the records, not the transcript. The agent’s words can stay identical while the state underneath changes.