Isolate an intermittent agent failure
Locate the first meaningful divergence in comparable runs and choose a diagnostic that isolates it.
Scenario
A warehouse assistant delegates stock and substitution lookups. It sometimes recommends a replacement that has already expired. The final answers vary between runs, and the team is about to replace the model.
Explanation
Distinguish an upstream processing error, a response stop, and a task failure. A model can refuse on a successful HTTP response. A tool can succeed and return stale data. The coordinator can drop fields even when every worker completes. Retain identifiers and versions so a trace can tell these cases apart.
Compare similar successful and unsuccessful runs in order. Check the first place where evidence differs and whether the divergence explains the user-visible outcome. Replay with a frozen input and stub or fixture for one boundary at a time. Repeat model-dependent trials to tell a recurring failure from random variation. Check outcome state as well as text.
Worked example
In a failed warehouse run, the stock worker returns the current item ID. The substitution worker returns a valid replacement and its expiration date. The coordinator's serialized handoff omits the expiration date. The final answer offers the expired replacement. A deterministic test with the two saved worker outputs can reproduce the missing field before another model call.