You submit summaries for three documents and receive three results. Pairing the first result with the first document can silently attach a correct summary to the wrong source if the service does not preserve request order.
Anthropic’s Message Batch results reference explicitly says results are not guaranteed to follow request order and uses custom_id to match them. Each request’s identifier must be unique within the batch. Other providers have their own result formats and matching rules.
Join by identity, not by row position
Consider an original test with identifiers doc-a-v1, doc-b-v1, and doc-c-v1. If results arrive in the order C, A, B, a lookup by identifier still attaches each response correctly. A simple row-by-row copy would not.
Keep a request manifest containing the identifier, source reference, task version, and expected result type. Avoid putting sensitive document content into the identifier itself. The identifier should locate the record without becoming an unnecessary disclosure in logs.
When processing results, check for unknown IDs, duplicate IDs, missing results, and failed requests. A batch with three submitted tasks does not necessarily contain three successful summaries. Preserve the status of each result instead of replacing a failure with an empty string that looks like valid output.
Test the matching code with deliberately shuffled results and one simulated failure before using it on a large collection. Confirm that rerunning the import does not create duplicate records or overwrite a reviewed result without the intended procedure.
Correct matching does not guarantee a faithful summary; content review is still necessary. But it removes an avoidable class of error in which the model’s answer is evaluated or published against a document it was never asked to summarise.

