In this article
A successful trace can support resumption inside a task; a failed helper does not establish that an external service performed no work.
The helper failed after a remote operation
An agent task calls a search service through a traced helper, then invokes a summarizer. A later failure triggers recovery. Reusing a recorded successful search can be valuable because repeating a changing search may produce different evidence. But an unsuccessful helper call creates another question: did the remote service accept the request before the local failure?
Separate a completed helper result from an attempted external operation. A checkpoint is evidence of recorded success, while a timeout can leave the remote outcome uncertain. These are different states even if the agent ultimately returns a response.
Successful traces create the replay boundary
The trace guide describes fine-grained resumption for helper operations and states that only successful trace executions are recorded in the checkpoint system. A failed helper propagates its exception to task code rather than supplying a successful checkpoint value.
Choose a boundary whose returned result contains the information downstream logic needs. Recording only a display message while later consulting mutable global state would leave the actual computational dependency outside that boundary.
Nondeterministic decisions need deliberate treatment
The execution caveats explain that changing runtime decisions can launch different downstream actions after recovery. A current-time branch or changing external lookup can therefore alter an agent’s path.
Preserve decision inputs intentionally when reproducible recovery is required. Random-state replay illustrates a related requirement: replaying a control path is not equivalent to resetting every source of nondeterministic behavior automatically.
Task caching is a separate scope
The caching guide describes caching complete task outputs. Trace checkpoints operate inside task logic. Explain which mechanism supplied a reused result before interpreting whether an external search or model call actually happened again.
This distinction also affects measurements. A returned cached answer is not a fresh latency observation for the original external operation. The evaluation record should identify reuse when comparing alternative agent implementations or estimating actual executed work.
Test recovery and side effects separately
Exercise a controlled failure after a successful helper, and verify which recorded value recovery uses. Then test the external failure window independently using the destination’s request identity and outcome evidence.
Terminal request consistency helps explain why the absence of a successful local checkpoint is not proof of no remote effect. Trace resumption makes agent control flow more observable, but the external system still defines its own completion and deduplication contract.
Earn rental income from GPUs
Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.