Errors & recovery · 2026-09-05

An agent processes a batch of 100 records.

Item 37 throws a fatal validation error. The other 99 processed fine.

  1. AKeep the 99 successes, isolate item 37, and report it for follow-up
  2. BRoll back all 100 and fail the entire batch
  3. CSilently drop item 37 and report full success
  4. DRetry the whole batch from item 1 with a longer timeout, since a clean rerun is simpler than tracking partial results

Answer: A

Keep the 99 successes, isolate item 37, and report it for follow-up

Why

Partial failure calls for partial success: preserve completed work, quarantine the one bad record, and surface it clearly. Discarding 99 good results or hiding the failure both destroy value.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path