# What should an agent save so a failed run can be replayed safely? — retained record

> Retained reddit record from reddit:AI_Agents.

Canonical: https://highsignal.app/data/records/c4ba36e6be495ff9

[← sources](https://highsignal.app/data)


source: [reddit](https://highsignal.app/data/reddit) (reddit:AI_Agents)  published 2026-09-28 10:44 ingested 2026-09-29 02:36

[original source ↗](https://www.reddit.com/r/AI_Agents/comments/1wsb8q8/what_should_an_agent_save_so_a_failed_run_can_be/)

## retained text



```
A failure trace helps explain why an agent failed. Recovering safely takes more context.

As I’m implementing recovery for agent workflows, I’m separating two scenarios:  
• Reproduce the failure: preserve the inputs, prompt and tool versions, tool responses, and approval decisions.  
• Resume after a fix: recover from a safe checkpoint and check which external actions have already happened.

A retry shouldn’t send the same message twice or create a duplicate record. Tracking external IDs and checking for completed actions are part of how I’m handling this.

I’m also balancing recovery with retention: keeping enough context to understand decisions without storing every sensitive payload.

That record also shapes the operational response when a dependency fails: retry automatically from the checkpoint, notify someone with the relevant failure trace, or wait for a person to fix the issue and approve the rerun.

What’s the minimum an agent needs to save to make an automatic retry safe? And when should a person step in?
```



document fetched 2026-09-29 00:19 · canonical https://reddit.com/r/AI_Agents/comments/1wsb8q8/what_should_an_agent_save_so_a_failed_run_can_be
