DEV Community

Debashish Ghosal
Debashish Ghosal

Posted on

We are all excited about bringing new agents online. I am thinking about retiring one, how do you go about it?

Sign in to view linked content

Top comments (1)

Collapse
 
reidmarlow profile image
Reid Marlow •

The failure mode that burned us was silent downstream consumers. You revoke the API keys and archive the prompt configs, but two cron jobs and an internal webhook were quietly consuming that agent's structured JSON. The moment the agent went dark, those downstream scripts started timing out and spamming retry queues.

Our rule now is a two-week tombstone phase before pulling the plug. We swap the model inference call for a static mock that returns empty valid schemas and logs the caller identity. That surfaces the forgotten dashboard widgets, personal curl scripts, and scheduled pipes without triggering production alerts. Once the caller logs stay clean for fourteen consecutive days, revoking the tokens and dropping the vector tables is safe.