A completed AI batch can contain successful attempts, errors, duplicate records or work that went to the wrong destination. To prove delivery, join each expected input ID from a frozen manifest to its result and to the corresponding authoritative destination record. Account for every input in a terminal state only after checking the identity and version on each side of the join.
Keep job status and input dispositions separate
The manifest should contain a stable business input ID, source revision, expected destination and eligibility. Track each attempt separately so repeated work cannot inflate the count of delivered items. Preserve both the provider-level result and the destination readback. A generator may return a valid object that an exporter later ignores or routes incorrectly.
For example, the OpenAI Batch API requires a unique custom_id on each input request and explains that output lines can arrive in a different order from input lines. Use the ID to join results to requests within the submitted batch, then connect that request ID back to your own stable business input. OpenAI Batch API documentation
Follow six synthetic catalog items through delivery
A team asks a job to write catalog descriptions to a review queue. Items A through E are eligible. Item F is intentionally excluded because its source revision was withdrawn. The provider reports successful results for A through D and a terminal processing failure for E. At the destination the queue has two records for A, one for B, and one for C in a different queue than the manifest specifies. There is no record for D.
| Expected input | Observed disposition | Next action |
|---|---|---|
| A | Duplicate at the intended destination | Resolve against the approved source revision and preserve the occurrence in the audit |
| B | One matching record in the expected queue | Mark delivered |
| C | Misrouted output | Reconcile the incorrect placement before a repair |
| D | Successful provider result without a destination row | Inspect the writer outcome and recover the intended delivery if eligible |
| E | Terminal processing failure | Record its failure and hand off for disposition |
| F | Prior intentional exclusion | Keep the exclusion reason visible |
The eligible set is A, B, C, D and E. The exactly-correct delivery set is B. Their set difference is A, C, D and E. Counting destination rows would suggest four deliveries, and counting provider successes would also suggest four. Only one input satisfies the full delivery criterion. The remaining rows still support specific operator decisions because the reconciliation preserves the reason for each mismatch. sinc-LLM guide to joining paired workflow outcomes
Treat ambiguity as an explicit result
Choose how the program handles reprocessed versions, a second write to a valid destination, and a success record that cannot be read back. Preserve reversals or repairs on the original input ID, while keeping each repair attempt distinguishable. If the job cannot observe the destination, give the input an unresolved status and surface the missing evidence as a closeout blocker. A job can stop executing with unresolved inputs still open.
Assign each disposition one reason and one owner. A missing readback should keep the batch open for reconciliation even if every provider attempt is terminal. Compare the published disposition report against a fresh destination read before clearing the exception.
Before your next batch, freeze a small manifest and seed one duplicate, one misroute and one missing destination row in an isolated environment. Reconcile against the destination using the same read path operators would use in production. Close the exercise once every planned input can be explained by exactly one disposition, and keep any actual delivery failure explicit in the summary.
sinc-LLM